@multiversx/sdk-dapp 5.2.8 → 5.3.0-alpha.1
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-25G6565D.mjs +2 -0
- package/out/__chunks__/{chunk-KHK7HHMR.mjs → chunk-2UPWFRCA.mjs} +2 -2
- package/out/__chunks__/{chunk-W42RP7KL.mjs → chunk-2WAT3RZ3.mjs} +2 -2
- package/out/__chunks__/{chunk-H3U7BN2F.mjs → chunk-2ZW4LVVR.mjs} +2 -2
- package/out/__chunks__/{chunk-GDTOANYH.mjs → chunk-32DICVUK.mjs} +2 -2
- package/out/__chunks__/{chunk-3IMTI6JQ.mjs → chunk-4ZAZCOJD.mjs} +2 -2
- package/out/__chunks__/{chunk-U6N242A3.mjs → chunk-5DUIQBPR.mjs} +2 -2
- package/out/__chunks__/chunk-5F53ZQDO.mjs +2 -0
- package/out/__chunks__/{chunk-M44UOZ5O.mjs → chunk-5KY3OIFD.mjs} +2 -2
- package/out/__chunks__/chunk-5VQOOZQV.mjs +2 -0
- package/out/__chunks__/{chunk-KKC3NMW2.mjs → chunk-5WR632LR.mjs} +2 -2
- package/out/__chunks__/{chunk-YVAL3LZF.mjs → chunk-643FDBLR.mjs} +2 -2
- package/out/__chunks__/chunk-6C26F7JZ.mjs +2 -0
- package/out/__chunks__/chunk-6FRXGPOE.mjs +2 -0
- package/out/__chunks__/{chunk-3H5GYTLV.mjs → chunk-6VPMVY56.mjs} +2 -2
- package/out/__chunks__/chunk-73E7X7HK.mjs +2 -0
- package/out/__chunks__/chunk-7BZQYV6D.mjs +2 -0
- package/out/__chunks__/{chunk-HZRV27MM.mjs → chunk-7UUDW64Y.mjs} +2 -2
- package/out/__chunks__/{chunk-UJIIYWYI.mjs → chunk-A63UAQRB.mjs} +2 -2
- package/out/__chunks__/{chunk-NWV2L5R7.mjs → chunk-AGBY3WIQ.mjs} +2 -2
- package/out/__chunks__/{chunk-LAH3RNPH.mjs → chunk-ALBBGYHS.mjs} +2 -2
- package/out/__chunks__/{chunk-AOYKAITD.mjs → chunk-ALT4OKHK.mjs} +2 -2
- package/out/__chunks__/{chunk-NRBAAXUJ.mjs → chunk-AN4TQZVZ.mjs} +2 -2
- package/out/__chunks__/{chunk-BMJVOKCD.mjs → chunk-AVEMKF6Z.mjs} +2 -2
- package/out/__chunks__/{chunk-X5F7OCHT.mjs → chunk-B5YOJH7H.mjs} +2 -2
- package/out/__chunks__/{chunk-7NW5R435.mjs → chunk-BC5MT6WS.mjs} +2 -2
- package/out/__chunks__/chunk-BEXC6NB5.mjs +2 -0
- package/out/__chunks__/{chunk-6BQWDKWC.mjs.map → chunk-BEXC6NB5.mjs.map} +2 -2
- package/out/__chunks__/chunk-E5OMXZT7.mjs +2 -0
- package/out/__chunks__/{chunk-LCHJKRM5.mjs → chunk-ELCWJYQ7.mjs} +2 -2
- package/out/__chunks__/{chunk-753KDZIR.mjs → chunk-ET6MYYOM.mjs} +2 -2
- package/out/__chunks__/{chunk-FUOM6J37.mjs → chunk-ETH6P454.mjs} +2 -2
- package/out/__chunks__/{chunk-23KF5JXN.mjs → chunk-FFGJMR4Q.mjs} +2 -2
- package/out/__chunks__/chunk-G43Z243B.mjs +2 -0
- package/out/__chunks__/{chunk-6XHXG7HB.mjs.map → chunk-G43Z243B.mjs.map} +1 -1
- package/out/__chunks__/{chunk-NKAJB5TQ.mjs → chunk-GDMANS7S.mjs} +2 -2
- package/out/__chunks__/{chunk-4D3ZQTRN.mjs → chunk-GJ64B4SS.mjs} +2 -2
- package/out/__chunks__/{chunk-ASPVUU7R.mjs → chunk-GPUXJWA3.mjs} +2 -2
- package/out/__chunks__/{chunk-5PNQWHBP.mjs → chunk-GWXW3E7L.mjs} +2 -2
- package/out/__chunks__/{chunk-RVYA3BJD.mjs → chunk-H7YY4BCM.mjs} +2 -2
- package/out/__chunks__/{chunk-BZRPJAII.mjs → chunk-HBZ2RP7A.mjs} +2 -2
- package/out/__chunks__/chunk-HKVAAOC4.mjs +2 -0
- package/out/__chunks__/{chunk-Z3ZWRORQ.mjs → chunk-I2CW2O7M.mjs} +2 -2
- package/out/__chunks__/chunk-ILR4U7Q3.mjs +2 -0
- package/out/__chunks__/{chunk-7LP6TRTV.mjs → chunk-IXO75QXR.mjs} +2 -2
- package/out/__chunks__/{chunk-OHFXF2B5.mjs → chunk-J6MUGECP.mjs} +2 -2
- package/out/__chunks__/chunk-JFIQXGJ5.mjs +2 -0
- package/out/__chunks__/{chunk-YIZAB63A.mjs → chunk-JHYKMKMK.mjs} +2 -2
- package/out/__chunks__/{chunk-5SUCN4KU.mjs → chunk-JKFZERMM.mjs} +2 -2
- package/out/__chunks__/chunk-JM3JEGRV.mjs +2 -0
- package/out/__chunks__/chunk-JOPPHD4R.mjs +2 -0
- package/out/__chunks__/{chunk-DBMG6HQS.mjs → chunk-KTQD4DTE.mjs} +2 -2
- package/out/__chunks__/{chunk-QWU5MHP3.mjs → chunk-KZUPCFEG.mjs} +2 -2
- package/out/__chunks__/{chunk-GKZ2BSWS.mjs → chunk-MNIS55JL.mjs} +2 -2
- package/out/__chunks__/{chunk-DPWDWN6V.mjs → chunk-NO4FZ4M3.mjs} +2 -2
- package/out/__chunks__/{chunk-AXYA7YGQ.mjs → chunk-O462QL7Q.mjs} +2 -2
- package/out/__chunks__/{chunk-EJ3EBFAG.mjs → chunk-OI2AXS22.mjs} +2 -2
- package/out/__chunks__/{chunk-K23LCX54.mjs → chunk-PCGP4VVW.mjs} +2 -2
- package/out/__chunks__/{chunk-7PIS2F7G.mjs → chunk-PUCCTEN7.mjs} +2 -2
- package/out/__chunks__/{chunk-UL35YJX4.mjs → chunk-QJ6YLLBK.mjs} +2 -2
- package/out/__chunks__/{chunk-H6LOCVAD.mjs → chunk-QMFEYMZI.mjs} +2 -2
- package/out/__chunks__/chunk-QZDVKNF4.mjs +2 -0
- package/out/__chunks__/{chunk-HZCXNBGJ.mjs → chunk-RXE5QIE3.mjs} +2 -2
- package/out/__chunks__/chunk-SJLTVGKD.mjs +2 -0
- package/out/__chunks__/{chunk-3EVBWJRB.mjs → chunk-SLG55PDO.mjs} +2 -2
- package/out/__chunks__/{chunk-IGDWL5FF.mjs → chunk-T3RXRYP5.mjs} +2 -2
- package/out/__chunks__/{chunk-KAYZVBV4.mjs → chunk-TKIYJDS2.mjs} +2 -2
- package/out/__chunks__/chunk-TT7J5V3M.mjs +2 -0
- package/out/__chunks__/{chunk-DK6T6BEY.mjs.map → chunk-TT7J5V3M.mjs.map} +3 -3
- package/out/__chunks__/{chunk-EMSDNE45.mjs → chunk-UF2Y4P6U.mjs} +2 -2
- package/out/__chunks__/{chunk-NPF6FJT3.mjs → chunk-UUPS4KLW.mjs} +2 -2
- package/out/__chunks__/{chunk-EJHFAT42.mjs → chunk-UXBKGTA5.mjs} +2 -2
- package/out/__chunks__/{chunk-35AC7JEX.mjs → chunk-V322LMVG.mjs} +2 -2
- package/out/__chunks__/{chunk-W2TBID4H.mjs → chunk-V3GRSQIB.mjs} +2 -2
- package/out/__chunks__/{chunk-D4SYE2AU.mjs → chunk-VDAYN2HT.mjs} +2 -2
- package/out/__chunks__/{chunk-MBYIULNF.mjs → chunk-VY62CH5W.mjs} +2 -2
- package/out/__chunks__/chunk-WJJTA23D.mjs +2 -0
- package/out/__chunks__/{chunk-UKBPRQL6.mjs → chunk-X3AX4PFE.mjs} +2 -2
- package/out/__chunks__/{chunk-FMNY4EIM.mjs → chunk-YYVGE2ZU.mjs} +2 -2
- package/out/__chunks__/{chunk-EH3INPBE.mjs → chunk-ZAY5O7DE.mjs} +2 -2
- package/out/__chunks__/{chunk-YIEM5DGL.mjs → chunk-ZG6EULI2.mjs} +2 -2
- package/out/__chunks__/{chunk-YLJC7ZKD.mjs → chunk-ZJM5FGLA.mjs} +2 -2
- package/out/__chunks__/{chunk-EDVSRPEU.mjs → chunk-ZM77AGP5.mjs} +2 -2
- package/out/apiCalls/account/getAccountFromApi.cjs +59 -1
- package/out/apiCalls/account/getAccountFromApi.cjs.map +2 -2
- package/out/apiCalls/account/getScamAddressData.cjs +51 -1
- package/out/apiCalls/account/getScamAddressData.cjs.map +2 -2
- package/out/apiCalls/account/getScamAddressData.mjs +1 -1
- package/out/apiCalls/account/index.cjs +22 -1
- package/out/apiCalls/account/index.cjs.map +2 -2
- package/out/apiCalls/configuration/getCleanApiAddress.cjs +34 -1
- package/out/apiCalls/configuration/getCleanApiAddress.cjs.map +2 -2
- package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.cjs +64 -1
- package/out/apiCalls/configuration/getGasStationMetadata.cjs.map +2 -2
- package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
- package/out/apiCalls/configuration/getNetworkConfigFromApi.cjs +61 -1
- package/out/apiCalls/configuration/getNetworkConfigFromApi.cjs.map +2 -2
- package/out/apiCalls/configuration/getServerConfiguration.cjs +65 -1
- package/out/apiCalls/configuration/getServerConfiguration.cjs.map +2 -2
- package/out/apiCalls/configuration/index.cjs +24 -1
- package/out/apiCalls/configuration/index.cjs.map +2 -2
- package/out/apiCalls/economics/getEconomics.cjs +54 -1
- package/out/apiCalls/economics/getEconomics.cjs.map +2 -2
- package/out/apiCalls/endpoints.cjs +100 -1
- package/out/apiCalls/endpoints.cjs.map +2 -2
- package/out/apiCalls/index.cjs +32 -1
- package/out/apiCalls/index.cjs.map +2 -2
- package/out/apiCalls/index.mjs +1 -1
- package/out/apiCalls/tokens/getPersistedToken.cjs +42 -1
- package/out/apiCalls/tokens/getPersistedToken.cjs.map +2 -2
- package/out/apiCalls/tokens/getPersistedTokenDetails.cjs +72 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.cjs.map +2 -2
- package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.cjs +74 -1
- package/out/apiCalls/tokens/getTokenDetails.cjs.map +2 -2
- package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/index.cjs +22 -1
- package/out/apiCalls/tokens/index.cjs.map +2 -2
- package/out/apiCalls/tokens/index.mjs +1 -1
- package/out/apiCalls/tokens/tokenDataStorage.cjs +58 -1
- package/out/apiCalls/tokens/tokenDataStorage.cjs.map +2 -2
- package/out/apiCalls/transactions/getServerTransactionsByHashes.cjs +55 -1
- package/out/apiCalls/transactions/getServerTransactionsByHashes.cjs.map +2 -2
- package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.cjs +51 -1
- package/out/apiCalls/transactions/getTransactionByHash.cjs.map +2 -2
- package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
- package/out/apiCalls/transactions/getTransactions.cjs +76 -1
- package/out/apiCalls/transactions/getTransactions.cjs.map +2 -2
- package/out/apiCalls/transactions/getTransactionsByHashes.cjs +47 -1
- package/out/apiCalls/transactions/getTransactionsByHashes.cjs.map +2 -2
- package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/utils/axiosFetcher.cjs +29 -1
- package/out/apiCalls/utils/axiosFetcher.cjs.map +2 -2
- package/out/apiCalls/utils/axiosInstance.cjs +105 -1
- package/out/apiCalls/utils/axiosInstance.cjs.map +2 -2
- package/out/apiCalls/utils/getCleanApiAddress.cjs +30 -1
- package/out/apiCalls/utils/getCleanApiAddress.cjs.map +2 -2
- package/out/apiCalls/utils/index.cjs +26 -1
- package/out/apiCalls/utils/index.cjs.map +2 -2
- package/out/apiCalls/websocket/getWebsocketUrl.cjs +49 -1
- package/out/apiCalls/websocket/getWebsocketUrl.cjs.map +2 -2
- package/out/apiCalls/websocket/index.cjs +22 -1
- package/out/apiCalls/websocket/index.cjs.map +2 -2
- package/out/constants/UITags.enum.cjs +37 -1
- package/out/constants/UITags.enum.cjs.map +2 -2
- package/out/constants/browser.constants.cjs +34 -1
- package/out/constants/browser.constants.cjs.map +2 -2
- package/out/constants/browser.constants.mjs +1 -1
- package/out/constants/index.cjs +40 -1
- package/out/constants/index.cjs.map +2 -2
- package/out/constants/index.mjs +1 -1
- package/out/constants/ledger.constants.cjs +131 -1
- package/out/constants/ledger.constants.cjs.map +2 -2
- package/out/constants/mvx.constants.cjs +58 -1
- package/out/constants/mvx.constants.cjs.map +2 -2
- package/out/constants/network.constants.cjs +113 -1
- package/out/constants/network.constants.cjs.map +2 -2
- package/out/constants/placeholders.constants.cjs +34 -1
- package/out/constants/placeholders.constants.cjs.map +2 -2
- package/out/constants/providerFactory.constants.cjs +41 -1
- package/out/constants/providerFactory.constants.cjs.map +2 -2
- package/out/constants/storage.constants.cjs +43 -1
- package/out/constants/storage.constants.cjs.map +2 -2
- package/out/constants/storage.constants.mjs +1 -1
- package/out/constants/transactions.constants.cjs +64 -1
- package/out/constants/transactions.constants.cjs.map +2 -2
- package/out/constants/walletConnect.constants.cjs +32 -1
- package/out/constants/walletConnect.constants.cjs.map +2 -2
- package/out/constants/webWalletProvider.constants.cjs +46 -1
- package/out/constants/webWalletProvider.constants.cjs.map +2 -2
- package/out/constants/websocket.constants.cjs +39 -1
- package/out/constants/websocket.constants.cjs.map +2 -2
- package/out/constants/window.constants.cjs +31 -1
- package/out/constants/window.constants.cjs.map +3 -3
- package/out/constants/window.constants.mjs +1 -1
- package/out/controllers/FormatAmountController/FormatAmountController.cjs +57 -1
- package/out/controllers/FormatAmountController/FormatAmountController.cjs.map +2 -2
- package/out/controllers/FormatAmountController/index.cjs +22 -1
- package/out/controllers/FormatAmountController/index.cjs.map +2 -2
- package/out/controllers/FormatAmountController/types.cjs +16 -1
- package/out/controllers/FormatAmountController/types.cjs.map +2 -2
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.cjs +34 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.cjs.map +2 -2
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/index.cjs +22 -1
- package/out/controllers/TransactionsHistoryController/index.cjs.map +2 -2
- package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.cjs +133 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.cjs.map +2 -2
- package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
- package/out/controllers/TransactionsTableController/index.cjs +22 -1
- package/out/controllers/TransactionsTableController/index.cjs.map +2 -2
- package/out/controllers/TransactionsTableController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/transactionsTableController.types.cjs +16 -1
- package/out/controllers/TransactionsTableController/transactionsTableController.types.cjs.map +2 -2
- package/out/controllers/index.cjs +22 -1
- package/out/controllers/index.cjs.map +2 -2
- package/out/index.cjs +32 -1
- package/out/index.cjs.map +2 -2
- package/out/index.mjs +1 -1
- package/out/lib/sdkCore.cjs +46 -1
- package/out/lib/sdkCore.cjs.map +2 -2
- package/out/lib/sdkDappUi.cjs +53 -1
- package/out/lib/sdkDappUi.cjs.map +2 -2
- package/out/lib/sdkDappUi.mjs +1 -1
- package/out/lib/sdkDappUtils.cjs +44 -1
- package/out/lib/sdkDappUtils.cjs.map +2 -2
- package/out/lib/sdkWebWalletCrossWindowProvider.cjs +33 -1
- package/out/lib/sdkWebWalletCrossWindowProvider.cjs.map +2 -2
- package/out/lib/sdkWebWalletIframeProvider.cjs +28 -1
- package/out/lib/sdkWebWalletIframeProvider.cjs.map +2 -2
- package/out/lib/sdkWebviewProvider.cjs +28 -1
- package/out/lib/sdkWebviewProvider.cjs.map +2 -2
- package/out/managers/LogoutManager/LogoutManager.cjs +167 -1
- package/out/managers/LogoutManager/LogoutManager.cjs.map +2 -2
- package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
- package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.cjs +56 -1
- package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.cjs.map +2 -2
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.cjs +139 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.cjs.map +2 -2
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.cjs +24 -1
- package/out/managers/NotificationsFeedManager/index.cjs.map +2 -2
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/NotificationsFeedManager/types/index.cjs +22 -1
- package/out/managers/NotificationsFeedManager/types/index.cjs.map +2 -2
- package/out/managers/NotificationsFeedManager/types/notifications.types.cjs +35 -1
- package/out/managers/NotificationsFeedManager/types/notifications.types.cjs.map +2 -2
- package/out/managers/ToastManager/ToastManager.cjs +203 -1
- package/out/managers/ToastManager/ToastManager.cjs.map +2 -2
- package/out/managers/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/ToastManager/ToastUICoordinator.cjs +125 -1
- package/out/managers/ToastManager/ToastUICoordinator.cjs.map +2 -2
- package/out/managers/ToastManager/ToastUICoordinator.mjs +1 -1
- package/out/managers/ToastManager/helpers/LifetimeManager.cjs +71 -1
- package/out/managers/ToastManager/helpers/LifetimeManager.cjs.map +2 -2
- package/out/managers/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.cjs +88 -1
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.cjs.map +2 -2
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
- package/out/managers/ToastManager/helpers/createTransactionToast.cjs +66 -1
- package/out/managers/ToastManager/helpers/createTransactionToast.cjs.map +2 -2
- package/out/managers/ToastManager/helpers/getToastDataStateByStatus.cjs +104 -1
- package/out/managers/ToastManager/helpers/getToastDataStateByStatus.cjs.map +2 -2
- package/out/managers/ToastManager/helpers/getToastTransactionsStatus.cjs +40 -1
- package/out/managers/ToastManager/helpers/getToastTransactionsStatus.cjs.map +2 -2
- package/out/managers/ToastManager/index.cjs +22 -1
- package/out/managers/ToastManager/index.cjs.map +2 -2
- package/out/managers/ToastManager/index.mjs +1 -1
- package/out/managers/ToastManager/types/index.cjs +22 -1
- package/out/managers/ToastManager/types/index.cjs.map +2 -2
- package/out/managers/ToastManager/types/toast.types.cjs +47 -1
- package/out/managers/ToastManager/types/toast.types.cjs.map +2 -2
- package/out/managers/TransactionManager/TransactionManager.cjs +229 -1
- package/out/managers/TransactionManager/TransactionManager.cjs.map +2 -2
- package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.types.cjs +16 -1
- package/out/managers/TransactionManager/TransactionManager.types.cjs.map +2 -2
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.cjs +50 -1
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.cjs.map +2 -2
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.cjs +52 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.cjs.map +2 -2
- package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.cjs +53 -1
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.cjs.map +2 -2
- package/out/managers/TransactionManager/helpers/isBatchTransaction.cjs +30 -1
- package/out/managers/TransactionManager/helpers/isBatchTransaction.cjs.map +2 -2
- package/out/managers/TransactionManager/helpers/isCrossShardTransaction.cjs +47 -1
- package/out/managers/TransactionManager/helpers/isCrossShardTransaction.cjs.map +2 -2
- package/out/managers/TransactionManager/helpers/sessionCallbacks.cjs +54 -1
- package/out/managers/TransactionManager/helpers/sessionCallbacks.cjs.map +2 -2
- package/out/managers/TransactionManager/index.cjs +22 -1
- package/out/managers/TransactionManager/index.cjs.map +2 -2
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs +165 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs.map +2 -2
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.types.cjs +36 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.types.cjs.map +2 -2
- package/out/managers/UnlockPanelManager/index.cjs +22 -1
- package/out/managers/UnlockPanelManager/index.cjs.map +2 -2
- package/out/managers/UnlockPanelManager/index.mjs +1 -1
- package/out/managers/index.cjs +24 -1
- package/out/managers/index.cjs.map +2 -2
- package/out/managers/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.cjs +214 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.cjs.map +2 -2
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/index.cjs +24 -1
- package/out/managers/internal/LedgerConnectStateManager/index.cjs.map +2 -2
- package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/types/index.cjs +22 -1
- package/out/managers/internal/LedgerConnectStateManager/types/index.cjs.map +2 -2
- package/out/managers/internal/LedgerConnectStateManager/types/ledgerConnectEvents.enum.cjs +36 -1
- package/out/managers/internal/LedgerConnectStateManager/types/ledgerConnectEvents.enum.cjs.map +2 -2
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.cjs +124 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.cjs.map +2 -2
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.cjs +58 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.cjs.map +2 -2
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/index.cjs +24 -1
- package/out/managers/internal/PendingTransactionsStateManager/index.cjs.map +2 -2
- package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/types/index.cjs +22 -1
- package/out/managers/internal/PendingTransactionsStateManager/types/index.cjs.map +2 -2
- package/out/managers/internal/PendingTransactionsStateManager/types/pendingTransactions.types.cjs +32 -1
- package/out/managers/internal/PendingTransactionsStateManager/types/pendingTransactions.types.cjs.map +2 -2
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.cjs +67 -1
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.cjs.map +2 -2
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/index.cjs +22 -1
- package/out/managers/internal/SidePanelBaseManager/index.cjs.map +2 -2
- package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.cjs +138 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.cjs.map +2 -2
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/index.cjs +22 -1
- package/out/managers/internal/SignTransactionsStateManager/index.cjs.map +2 -2
- package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/types/index.cjs +22 -1
- package/out/managers/internal/SignTransactionsStateManager/types/index.cjs.map +2 -2
- package/out/managers/internal/SignTransactionsStateManager/types/signTransactionsPanel.types.cjs +36 -1
- package/out/managers/internal/SignTransactionsStateManager/types/signTransactionsPanel.types.cjs.map +2 -2
- package/out/managers/internal/UIBaseManager/UIBaseManager.cjs +102 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.cjs.map +2 -2
- package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.cjs +78 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.cjs.map +2 -2
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/index.cjs +22 -1
- package/out/managers/internal/WalletConnectStateManager/index.cjs.map +2 -2
- package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/index.cjs +34 -1
- package/out/managers/internal/index.cjs.map +2 -2
- package/out/managers/internal/index.mjs +1 -1
- package/out/methods/account/getAccount.cjs +32 -1
- package/out/methods/account/getAccount.cjs.map +2 -2
- package/out/methods/account/getAccount.mjs +1 -1
- package/out/methods/account/getAccountInfo.cjs +32 -1
- package/out/methods/account/getAccountInfo.cjs.map +2 -2
- package/out/methods/account/getAccountInfo.mjs +1 -1
- package/out/methods/account/getAddress.cjs +32 -1
- package/out/methods/account/getAddress.cjs.map +2 -2
- package/out/methods/account/getAddress.mjs +1 -1
- package/out/methods/account/getIsLoggedIn.cjs +32 -1
- package/out/methods/account/getIsLoggedIn.cjs.map +2 -2
- package/out/methods/account/getIsLoggedIn.mjs +1 -1
- package/out/methods/account/getLatestNonce.cjs +55 -1
- package/out/methods/account/getLatestNonce.cjs.map +2 -2
- package/out/methods/account/getLatestNonce.mjs +1 -1
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.cjs +61 -1
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.cjs.map +2 -2
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
- package/out/methods/initApp/initApp.cjs +136 -1
- package/out/methods/initApp/initApp.cjs.map +2 -2
- package/out/methods/initApp/initApp.mjs +1 -1
- package/out/methods/initApp/initApp.types.cjs +16 -1
- package/out/methods/initApp/initApp.types.cjs.map +2 -2
- package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs +126 -1
- package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs.map +2 -2
- package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
- package/out/methods/initApp/websocket/registerWebsocket.cjs +37 -1
- package/out/methods/initApp/websocket/registerWebsocket.cjs.map +2 -2
- package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
- package/out/methods/loginInfo/getLoginInfo.cjs +36 -1
- package/out/methods/loginInfo/getLoginInfo.cjs.map +2 -2
- package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
- package/out/methods/network/getEgldLabel.cjs +32 -1
- package/out/methods/network/getEgldLabel.cjs.map +2 -2
- package/out/methods/network/getEgldLabel.mjs +1 -1
- package/out/methods/network/getExplorerAddress.cjs +32 -1
- package/out/methods/network/getExplorerAddress.cjs.map +2 -2
- package/out/methods/network/getExplorerAddress.mjs +1 -1
- package/out/methods/network/getNetworkConfig.cjs +32 -1
- package/out/methods/network/getNetworkConfig.cjs.map +2 -2
- package/out/methods/network/getNetworkConfig.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.cjs +159 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.cjs.map +2 -2
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.cjs +43 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.cjs.map +2 -2
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/getPendingTransactions.cjs +40 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/getPendingTransactions.cjs.map +2 -2
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.cjs +22 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.cjs.map +2 -2
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.cjs +67 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.cjs.map +2 -2
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.cjs +49 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.cjs.map +2 -2
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/updateTransactionAndSessionStatus.cjs +49 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/updateTransactionAndSessionStatus.cjs.map +2 -2
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/updateTransactionAndSessionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.cjs +37 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.cjs.map +2 -2
- package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.cjs +117 -1
- package/out/methods/trackTransactions/trackTransactions.cjs.map +2 -2
- package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactions.cjs +32 -1
- package/out/methods/transactions/getFailedTransactions.cjs.map +2 -2
- package/out/methods/transactions/getFailedTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactionsSessions.cjs +32 -1
- package/out/methods/transactions/getFailedTransactionsSessions.cjs.map +2 -2
- package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactions.cjs +32 -1
- package/out/methods/transactions/getPendingTransactions.cjs.map +2 -2
- package/out/methods/transactions/getPendingTransactions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.cjs +32 -1
- package/out/methods/transactions/getPendingTransactionsSessions.cjs.map +2 -2
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.cjs +32 -1
- package/out/methods/transactions/getSuccessfulTransactions.cjs.map +2 -2
- package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.cjs +32 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.cjs.map +2 -2
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getTransactionSessions.cjs +32 -1
- package/out/methods/transactions/getTransactionSessions.cjs.map +2 -2
- package/out/methods/transactions/getTransactionSessions.mjs +1 -1
- package/out/providers/DappProvider/DappProvider.cjs +112 -1
- package/out/providers/DappProvider/DappProvider.cjs.map +2 -2
- package/out/providers/DappProvider/DappProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/computeNonces/computeNonce.cjs +36 -1
- package/out/providers/DappProvider/helpers/computeNonces/computeNonce.cjs.map +2 -2
- package/out/providers/DappProvider/helpers/computeNonces/computeNonces.cjs +46 -1
- package/out/providers/DappProvider/helpers/computeNonces/computeNonces.cjs.map +2 -2
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.cjs +66 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.cjs.map +2 -2
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.cjs +44 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.cjs.map +2 -2
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.cjs +44 -1
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.cjs.map +2 -2
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.cjs +55 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.cjs.map +2 -2
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.cjs +121 -1
- package/out/providers/DappProvider/helpers/login/login.cjs.map +2 -2
- package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.cjs +63 -1
- package/out/providers/DappProvider/helpers/logout/logout.cjs.map +2 -2
- package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.cjs +78 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.cjs.map +2 -2
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/getVerifier.cjs +32 -1
- package/out/providers/DappProvider/helpers/signMessage/getVerifier.cjs.map +2 -2
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.cjs +42 -1
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.cjs.map +2 -2
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/verifyMessage.cjs +60 -1
- package/out/providers/DappProvider/helpers/signMessage/verifyMessage.cjs.map +2 -2
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.cjs +58 -1
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.cjs.map +2 -2
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
- package/out/providers/DappProvider/index.cjs +22 -1
- package/out/providers/DappProvider/index.cjs.map +2 -2
- package/out/providers/DappProvider/index.mjs +1 -1
- package/out/providers/ProviderFactory.cjs +127 -1
- package/out/providers/ProviderFactory.cjs.map +2 -2
- package/out/providers/ProviderFactory.mjs +1 -1
- package/out/providers/helpers/accountProvider.cjs +38 -1
- package/out/providers/helpers/accountProvider.cjs.map +2 -2
- package/out/providers/helpers/accountProvider.mjs +1 -1
- package/out/providers/helpers/cancelCrossWindowAction.cjs +37 -1
- package/out/providers/helpers/cancelCrossWindowAction.cjs.map +2 -2
- package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
- package/out/providers/helpers/clearInitiatedLogins.cjs +48 -1
- package/out/providers/helpers/clearInitiatedLogins.cjs.map +2 -2
- package/out/providers/helpers/emptyProvider.cjs +106 -1
- package/out/providers/helpers/emptyProvider.cjs.map +2 -2
- package/out/providers/helpers/restoreProvider.cjs +60 -1
- package/out/providers/helpers/restoreProvider.cjs.map +3 -3
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/index.cjs +31 -1
- package/out/providers/index.cjs.map +2 -2
- package/out/providers/index.mjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs +129 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs.map +2 -2
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs +106 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs.map +2 -2
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.cjs +22 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.cjs.map +2 -2
- package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.cjs +96 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.cjs.map +2 -2
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/index.cjs +22 -1
- package/out/providers/strategies/ExtensionProviderStrategy/index.cjs.map +2 -2
- package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs +118 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs.map +2 -2
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/index.cjs +24 -1
- package/out/providers/strategies/IframeProviderStrategy/index.cjs.map +2 -2
- package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.cjs +16 -1
- package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.cjs.map +2 -2
- package/out/providers/strategies/IframeProviderStrategy/types/index.cjs +22 -1
- package/out/providers/strategies/IframeProviderStrategy/types/index.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs +181 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.cjs +124 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.cjs +68 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.cjs +37 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerErrorCodes.cjs +47 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerErrorCodes.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.cjs +80 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.cjs +82 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.cjs +32 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.cjs +65 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/secondsToTimeString.cjs +61 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/secondsToTimeString.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.cjs +46 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.cjs +22 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.cjs +122 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.types.cjs +16 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.types.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/index.cjs +24 -1
- package/out/providers/strategies/LedgerProviderStrategy/index.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/types/index.cjs +22 -1
- package/out/providers/strategies/LedgerProviderStrategy/types/index.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/types/ledger.types.cjs +37 -1
- package/out/providers/strategies/LedgerProviderStrategy/types/ledger.types.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/types/ledgerProvider.types.cjs +16 -1
- package/out/providers/strategies/LedgerProviderStrategy/types/ledgerProvider.types.cjs.map +2 -2
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs +280 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs.map +2 -2
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.cjs +24 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.cjs.map +2 -2
- package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/types/index.cjs +22 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/types/index.cjs.map +2 -2
- package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.cjs +48 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.cjs.map +2 -2
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.cjs +186 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.cjs.map +3 -3
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.cjs +22 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.cjs.map +2 -2
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.cjs +97 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.cjs.map +2 -2
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/index.cjs +22 -1
- package/out/providers/strategies/WebviewProviderStrategy/index.cjs.map +2 -2
- package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.cjs +41 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.cjs.map +2 -2
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
- package/out/providers/strategies/helpers/index.cjs +28 -1
- package/out/providers/strategies/helpers/index.cjs.map +2 -2
- package/out/providers/strategies/helpers/index.mjs +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.cjs +83 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.cjs.map +2 -2
- package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.cjs +50 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.cjs +84 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs +180 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.cjs +38 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.cjs +46 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.cjs +93 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getHighlight.cjs +33 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getHighlight.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.cjs +92 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.cjs +43 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getScCall.cjs +39 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getScCall.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTokenType.cjs +38 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTokenType.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTxInfoByDataField.cjs +50 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTxInfoByDataField.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.cjs +56 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.cjs +35 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getAllStringOccurrences.cjs +36 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getAllStringOccurrences.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.cjs +126 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferData.cjs +118 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferData.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs +86 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getCrossWindowProvider.cjs +46 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getCrossWindowProvider.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getTransactionsNeedGuardianSigning.cjs +39 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getTransactionsNeedGuardianSigning.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.cjs +50 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/isTokenTransfer.cjs +33 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/isTokenTransfer.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs +232 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
- package/out/providers/strategies/index.cjs +30 -1
- package/out/providers/strategies/index.cjs.map +2 -2
- package/out/providers/strategies/index.mjs +1 -1
- package/out/providers/types/providerFactory.types.cjs +37 -1
- package/out/providers/types/providerFactory.types.cjs.map +2 -2
- package/out/react/account/useGetAccount.cjs +32 -1
- package/out/react/account/useGetAccount.cjs.map +2 -2
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccountInfo.cjs +32 -1
- package/out/react/account/useGetAccountInfo.cjs.map +2 -2
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.cjs +33 -1
- package/out/react/account/useGetIsLoggedIn.cjs.map +2 -2
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetLatestNonce.cjs +34 -1
- package/out/react/account/useGetLatestNonce.cjs.map +2 -2
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/index.cjs +22 -1
- package/out/react/index.cjs.map +2 -2
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.cjs +35 -1
- package/out/react/loginInfo/useGetLoginInfo.cjs.map +2 -2
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.cjs +32 -1
- package/out/react/network/useGetNetworkConfig.cjs.map +2 -2
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/store/createBoundedStore.cjs +29 -1
- package/out/react/store/createBoundedStore.cjs.map +2 -2
- package/out/react/store/getReactStore.cjs +30 -1
- package/out/react/store/getReactStore.cjs.map +2 -2
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/useSelector.cjs +32 -1
- package/out/react/store/useSelector.cjs.map +2 -2
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactions.cjs +33 -1
- package/out/react/transactions/useGetFailedTransactions.cjs.map +2 -2
- package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.cjs +33 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.cjs.map +2 -2
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.cjs +33 -1
- package/out/react/transactions/useGetPendingTransactions.cjs.map +2 -2
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.cjs +33 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.cjs.map +2 -2
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactions.cjs +33 -1
- package/out/react/transactions/useGetSuccessfulTransactions.cjs.map +2 -2
- package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.cjs +35 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.cjs.map +2 -2
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.cjs +33 -1
- package/out/react/transactions/useGetTransactionSessions.cjs.map +2 -2
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/services/index.cjs +22 -1
- package/out/services/index.cjs.map +2 -2
- package/out/services/index.mjs +1 -1
- package/out/services/nativeAuth/helpers/decodeLoginToken.cjs +62 -1
- package/out/services/nativeAuth/helpers/decodeLoginToken.cjs.map +2 -2
- package/out/services/nativeAuth/helpers/decodeNativeAuthToken.cjs +72 -1
- package/out/services/nativeAuth/helpers/decodeNativeAuthToken.cjs.map +2 -2
- package/out/services/nativeAuth/helpers/getLatestBlockHash.cjs +100 -1
- package/out/services/nativeAuth/helpers/getLatestBlockHash.cjs.map +2 -2
- package/out/services/nativeAuth/helpers/index.cjs +26 -1
- package/out/services/nativeAuth/helpers/index.cjs.map +2 -2
- package/out/services/nativeAuth/index.cjs +22 -1
- package/out/services/nativeAuth/index.cjs.map +2 -2
- package/out/services/nativeAuth/index.mjs +1 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.cjs +41 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.cjs.map +2 -2
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.cjs +42 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.cjs.map +2 -2
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getTokenExpiration.cjs +51 -1
- package/out/services/nativeAuth/methods/getTokenExpiration.cjs.map +2 -2
- package/out/services/nativeAuth/methods/index.cjs +24 -1
- package/out/services/nativeAuth/methods/index.cjs.map +2 -2
- package/out/services/nativeAuth/methods/index.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.cjs +81 -1
- package/out/services/nativeAuth/nativeAuth.cjs.map +2 -2
- package/out/services/nativeAuth/nativeAuth.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.types.cjs +16 -1
- package/out/services/nativeAuth/nativeAuth.types.cjs.map +2 -2
- package/out/store/actions/account/accountActions.cjs +130 -1
- package/out/store/actions/account/accountActions.cjs.map +2 -2
- package/out/store/actions/account/accountActions.mjs +1 -1
- package/out/store/actions/account/index.cjs +22 -1
- package/out/store/actions/account/index.cjs.map +2 -2
- package/out/store/actions/account/index.mjs +1 -1
- package/out/store/actions/cache/cacheActions.cjs +73 -1
- package/out/store/actions/cache/cacheActions.cjs.map +2 -2
- package/out/store/actions/cache/cacheActions.mjs +1 -1
- package/out/store/actions/cache/index.cjs +22 -1
- package/out/store/actions/cache/index.cjs.map +2 -2
- package/out/store/actions/cache/index.mjs +1 -1
- package/out/store/actions/config/configActions.cjs +78 -1
- package/out/store/actions/config/configActions.cjs.map +2 -2
- package/out/store/actions/config/configActions.mjs +1 -1
- package/out/store/actions/config/index.cjs +22 -1
- package/out/store/actions/config/index.cjs.map +2 -2
- package/out/store/actions/config/index.mjs +1 -1
- package/out/store/actions/index.cjs +34 -1
- package/out/store/actions/index.cjs.map +2 -2
- package/out/store/actions/index.mjs +1 -1
- package/out/store/actions/loginInfo/loginInfoActions.cjs +169 -1
- package/out/store/actions/loginInfo/loginInfoActions.cjs.map +2 -2
- package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
- package/out/store/actions/network/index.cjs +22 -1
- package/out/store/actions/network/index.cjs.map +2 -2
- package/out/store/actions/network/index.mjs +1 -1
- package/out/store/actions/network/initializeNetwork.cjs +70 -1
- package/out/store/actions/network/initializeNetwork.cjs.map +2 -2
- package/out/store/actions/network/initializeNetwork.mjs +1 -1
- package/out/store/actions/network/networkActions.cjs +47 -1
- package/out/store/actions/network/networkActions.cjs.map +2 -2
- package/out/store/actions/network/networkActions.mjs +1 -1
- package/out/store/actions/sharedActions/index.cjs +22 -1
- package/out/store/actions/sharedActions/index.cjs.map +2 -2
- package/out/store/actions/sharedActions/index.mjs +1 -1
- package/out/store/actions/sharedActions/sharedActions.cjs +55 -1
- package/out/store/actions/sharedActions/sharedActions.cjs.map +2 -2
- package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
- package/out/store/actions/toasts/index.cjs +22 -1
- package/out/store/actions/toasts/index.cjs.map +2 -2
- package/out/store/actions/toasts/index.mjs +1 -1
- package/out/store/actions/toasts/toastsActions.cjs +195 -1
- package/out/store/actions/toasts/toastsActions.cjs.map +2 -2
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionStateByStatus.cjs +144 -1
- package/out/store/actions/transactions/transactionStateByStatus.cjs.map +2 -2
- package/out/store/actions/transactions/transactionsActions.cjs +158 -1
- package/out/store/actions/transactions/transactionsActions.cjs.map +2 -2
- package/out/store/actions/transactions/transactionsActions.mjs +1 -1
- package/out/store/actions/ui/index.cjs +22 -1
- package/out/store/actions/ui/index.cjs.map +2 -2
- package/out/store/actions/ui/index.mjs +1 -1
- package/out/store/actions/ui/uiActions.cjs +41 -1
- package/out/store/actions/ui/uiActions.cjs.map +2 -2
- package/out/store/actions/ui/uiActions.mjs +1 -1
- package/out/store/middleware/applyMiddlewares.cjs +31 -1
- package/out/store/middleware/applyMiddlewares.cjs.map +2 -2
- package/out/store/middleware/applyMiddlewares.mjs +1 -1
- package/out/store/middleware/index.cjs +22 -1
- package/out/store/middleware/index.cjs.map +2 -2
- package/out/store/middleware/index.mjs +1 -1
- package/out/store/middleware/logoutMiddleware.cjs +78 -1
- package/out/store/middleware/logoutMiddleware.cjs.map +2 -2
- package/out/store/middleware/logoutMiddleware.mjs +1 -1
- package/out/store/selectors/accountSelectors.cjs +60 -1
- package/out/store/selectors/accountSelectors.cjs.map +2 -2
- package/out/store/selectors/cacheSelector.cjs +31 -1
- package/out/store/selectors/cacheSelector.cjs.map +2 -2
- package/out/store/selectors/configSelectors.cjs +36 -1
- package/out/store/selectors/configSelectors.cjs.map +2 -2
- package/out/store/selectors/index.cjs +32 -1
- package/out/store/selectors/index.cjs.map +2 -2
- package/out/store/selectors/loginInfoSelectors.cjs +43 -1
- package/out/store/selectors/loginInfoSelectors.cjs.map +2 -2
- package/out/store/selectors/networkSelectors.cjs +51 -1
- package/out/store/selectors/networkSelectors.cjs.map +2 -2
- package/out/store/selectors/storeSelector.cjs +28 -1
- package/out/store/selectors/storeSelector.cjs.map +2 -2
- package/out/store/selectors/toastsSelectors.cjs +34 -1
- package/out/store/selectors/toastsSelectors.cjs.map +2 -2
- package/out/store/selectors/transactionsSelector.cjs +150 -1
- package/out/store/selectors/transactionsSelector.cjs.map +2 -2
- package/out/store/selectors/uiSelectors.cjs +31 -1
- package/out/store/selectors/uiSelectors.cjs.map +2 -2
- package/out/store/slices/account/account.types.cjs +16 -1
- package/out/store/slices/account/account.types.cjs.map +2 -2
- package/out/store/slices/account/accountSlice.cjs +43 -1
- package/out/store/slices/account/accountSlice.cjs.map +2 -2
- package/out/store/slices/account/emptyAccount.cjs +38 -1
- package/out/store/slices/account/emptyAccount.cjs.map +2 -2
- package/out/store/slices/account/index.cjs +28 -1
- package/out/store/slices/account/index.cjs.map +2 -2
- package/out/store/slices/cache/cacheSlice.cjs +34 -1
- package/out/store/slices/cache/cacheSlice.cjs.map +2 -2
- package/out/store/slices/cache/cacheSlice.types.cjs +16 -1
- package/out/store/slices/cache/cacheSlice.types.cjs.map +2 -2
- package/out/store/slices/cache/index.cjs +28 -1
- package/out/store/slices/cache/index.cjs.map +2 -2
- package/out/store/slices/config/config.types.cjs +16 -1
- package/out/store/slices/config/config.types.cjs.map +2 -2
- package/out/store/slices/config/configSlice.cjs +37 -1
- package/out/store/slices/config/configSlice.cjs.map +2 -2
- package/out/store/slices/config/index.cjs +28 -1
- package/out/store/slices/config/index.cjs.map +2 -2
- package/out/store/slices/index.cjs +34 -1
- package/out/store/slices/index.cjs.map +2 -2
- package/out/store/slices/loginInfo/index.cjs +28 -1
- package/out/store/slices/loginInfo/index.cjs.map +2 -2
- package/out/store/slices/loginInfo/loginInfo.types.cjs +16 -1
- package/out/store/slices/loginInfo/loginInfo.types.cjs.map +2 -2
- package/out/store/slices/loginInfo/loginInfoSlice.cjs +40 -1
- package/out/store/slices/loginInfo/loginInfoSlice.cjs.map +2 -2
- package/out/store/slices/network/emptyNetwork.cjs +41 -1
- package/out/store/slices/network/emptyNetwork.cjs.map +2 -2
- package/out/store/slices/network/index.cjs +28 -1
- package/out/store/slices/network/index.cjs.map +2 -2
- package/out/store/slices/network/network.types.cjs +16 -1
- package/out/store/slices/network/network.types.cjs.map +2 -2
- package/out/store/slices/network/networkSlice.cjs +35 -1
- package/out/store/slices/network/networkSlice.cjs.map +2 -2
- package/out/store/slices/network/networkSlice.types.cjs +16 -1
- package/out/store/slices/network/networkSlice.types.cjs.map +2 -2
- package/out/store/slices/toast/index.cjs +28 -1
- package/out/store/slices/toast/index.cjs.map +2 -2
- package/out/store/slices/toast/toastSlice.cjs +37 -1
- package/out/store/slices/toast/toastSlice.cjs.map +2 -2
- package/out/store/slices/toast/toastSlice.types.cjs +16 -1
- package/out/store/slices/toast/toastSlice.types.cjs.map +2 -2
- package/out/store/slices/transactions/index.cjs +28 -1
- package/out/store/slices/transactions/index.cjs.map +2 -2
- package/out/store/slices/transactions/transactionsSlice.cjs +34 -1
- package/out/store/slices/transactions/transactionsSlice.cjs.map +2 -2
- package/out/store/slices/transactions/transactionsSlice.types.cjs +16 -1
- package/out/store/slices/transactions/transactionsSlice.types.cjs.map +2 -2
- package/out/store/slices/ui/index.cjs +28 -1
- package/out/store/slices/ui/index.cjs.map +2 -2
- package/out/store/slices/ui/ui.types.cjs +16 -1
- package/out/store/slices/ui/ui.types.cjs.map +2 -2
- package/out/store/slices/ui/uiSlice.cjs +34 -1
- package/out/store/slices/ui/uiSlice.cjs.map +2 -2
- package/out/store/storage/inMemoryStorage.cjs +51 -1
- package/out/store/storage/inMemoryStorage.cjs.map +2 -2
- package/out/store/storage/index.cjs +24 -1
- package/out/store/storage/index.cjs.map +2 -2
- package/out/store/storage/index.mjs +1 -1
- package/out/store/storage/storageCallback.cjs +29 -1
- package/out/store/storage/storageCallback.cjs.map +2 -2
- package/out/store/storage/storageCallback.mjs +1 -1
- package/out/store/store.cjs +85 -1
- package/out/store/store.cjs.map +2 -2
- package/out/store/store.mjs +1 -1
- package/out/store/store.types.cjs +16 -1
- package/out/store/store.types.cjs.map +2 -2
- package/out/types/account.types.cjs +16 -1
- package/out/types/account.types.cjs.map +2 -2
- package/out/types/enums.types.cjs +119 -1
- package/out/types/enums.types.cjs.map +2 -2
- package/out/types/index.cjs +34 -1
- package/out/types/index.cjs.map +2 -2
- package/out/types/login.types.cjs +16 -1
- package/out/types/login.types.cjs.map +2 -2
- package/out/types/manager.types.cjs +16 -1
- package/out/types/manager.types.cjs.map +2 -2
- package/out/types/network.types.cjs +16 -1
- package/out/types/network.types.cjs.map +2 -2
- package/out/types/provider.types.cjs +34 -1
- package/out/types/provider.types.cjs.map +2 -2
- package/out/types/serverTransactions.types.cjs +154 -1
- package/out/types/serverTransactions.types.cjs.map +2 -2
- package/out/types/subscriptions.type.cjs +33 -1
- package/out/types/subscriptions.type.cjs.map +2 -2
- package/out/types/suspiciousLink.types.cjs +16 -1
- package/out/types/suspiciousLink.types.cjs.map +2 -2
- package/out/types/theme.types.cjs +33 -1
- package/out/types/theme.types.cjs.map +2 -2
- package/out/types/tokens.types.cjs +39 -1
- package/out/types/tokens.types.cjs.map +2 -2
- package/out/types/transaction-list-item.types.cjs +114 -1
- package/out/types/transaction-list-item.types.cjs.map +2 -2
- package/out/types/transactions.types.cjs +34 -1
- package/out/types/transactions.types.cjs.map +2 -2
- package/out/types/websocket.types.cjs +16 -1
- package/out/types/websocket.types.cjs.map +2 -2
- package/out/utils/ComponentFactory.cjs +50 -1
- package/out/utils/ComponentFactory.cjs.map +2 -2
- package/out/utils/ComponentFactory.mjs +1 -1
- package/out/utils/account/fetchAccount.cjs +29 -1
- package/out/utils/account/fetchAccount.cjs.map +2 -2
- package/out/utils/account/index.cjs +28 -1
- package/out/utils/account/index.cjs.map +2 -2
- package/out/utils/account/index.mjs +1 -1
- package/out/utils/account/refreshAccount.cjs +80 -1
- package/out/utils/account/refreshAccount.cjs.map +2 -2
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.cjs +65 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.cjs.map +2 -2
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
- package/out/utils/account/trimUsernameDomain.cjs +35 -1
- package/out/utils/account/trimUsernameDomain.cjs.map +2 -2
- package/out/utils/asyncActions/index.cjs +22 -1
- package/out/utils/asyncActions/index.cjs.map +2 -2
- package/out/utils/asyncActions/sleep.cjs +35 -1
- package/out/utils/asyncActions/sleep.cjs.map +2 -2
- package/out/utils/dateTime/getUnixTimestamp.cjs +30 -1
- package/out/utils/dateTime/getUnixTimestamp.cjs.map +2 -2
- package/out/utils/dateTime/getUnixTimestampWithAddedMilliseconds.cjs +32 -1
- package/out/utils/dateTime/getUnixTimestampWithAddedMilliseconds.cjs.map +2 -2
- package/out/utils/dateTime/getUnixTimestampWithAddedSeconds.cjs +30 -1
- package/out/utils/dateTime/getUnixTimestampWithAddedSeconds.cjs.map +2 -2
- package/out/utils/dateTime/index.cjs +26 -1
- package/out/utils/dateTime/index.cjs.map +2 -2
- package/out/utils/decoders/base64Utils.cjs +57 -1
- package/out/utils/decoders/base64Utils.cjs.map +2 -2
- package/out/utils/decoders/decodePart.cjs +39 -1
- package/out/utils/decoders/decodePart.cjs.map +2 -2
- package/out/utils/decoders/index.cjs +30 -1
- package/out/utils/decoders/index.cjs.map +2 -2
- package/out/utils/decoders/isAscii.cjs +28 -1
- package/out/utils/decoders/isAscii.cjs.map +2 -2
- package/out/utils/decoders/isUtf8.cjs +35 -1
- package/out/utils/decoders/isUtf8.cjs.map +2 -2
- package/out/utils/decoders/stringContainsNumbers.cjs +28 -1
- package/out/utils/decoders/stringContainsNumbers.cjs.map +2 -2
- package/out/utils/index.cjs +40 -1
- package/out/utils/index.cjs.map +2 -2
- package/out/utils/index.mjs +1 -1
- package/out/utils/network/index.cjs +22 -1
- package/out/utils/network/index.cjs.map +2 -2
- package/out/utils/network/setAxiosInterceptors.cjs +66 -1
- package/out/utils/network/setAxiosInterceptors.cjs.map +2 -2
- package/out/utils/operations/capitalize.cjs +28 -1
- package/out/utils/operations/capitalize.cjs.map +2 -2
- package/out/utils/operations/getUsdValue.cjs +45 -1
- package/out/utils/operations/getUsdValue.cjs.map +2 -2
- package/out/utils/operations/pluralize.cjs +28 -1
- package/out/utils/operations/pluralize.cjs.map +2 -2
- package/out/utils/operations/timeRemaining.cjs +109 -1
- package/out/utils/operations/timeRemaining.cjs.map +2 -2
- package/out/utils/operations/trimAmountDecimals.cjs +59 -1
- package/out/utils/operations/trimAmountDecimals.cjs.map +2 -2
- package/out/utils/retryMultipleTimes.cjs +44 -1
- package/out/utils/retryMultipleTimes.cjs.map +2 -2
- package/out/utils/transactions/explorerUrlBuilder.cjs +53 -1
- package/out/utils/transactions/explorerUrlBuilder.cjs.map +2 -2
- package/out/utils/transactions/getActiveTransactionsStatus.cjs +46 -1
- package/out/utils/transactions/getActiveTransactionsStatus.cjs.map +2 -2
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.cjs +110 -5
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.cjs.map +2 -2
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.cjs +89 -1
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.cjs.map +2 -2
- package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.cjs +47 -1
- package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.cjs.map +2 -2
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.cjs +44 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.cjs.map +2 -2
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.cjs +60 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.cjs.map +2 -2
- package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.cjs +38 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.cjs.map +2 -2
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.cjs +51 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.cjs.map +2 -2
- package/out/utils/transactions/getDecodedDataField/helpers/index.cjs +32 -1
- package/out/utils/transactions/getDecodedDataField/helpers/index.cjs.map +2 -2
- package/out/utils/transactions/getDecodedDataField/index.cjs +24 -1
- package/out/utils/transactions/getDecodedDataField/index.cjs.map +2 -2
- package/out/utils/transactions/getExplorerLink.cjs +49 -1
- package/out/utils/transactions/getExplorerLink.cjs.map +2 -2
- package/out/utils/transactions/getHumanReadableTimeFormat.cjs +46 -1
- package/out/utils/transactions/getHumanReadableTimeFormat.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.cjs +109 -1
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.cjs +49 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.cjs +106 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.cjs +35 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.cjs +54 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.cjs +70 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionTokens.cjs +40 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionTokens.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.cjs +53 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.cjs +59 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.cjs +52 -2
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.cjs +36 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.cjs +32 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.cjs +22 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/types.cjs +16 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/types.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.cjs +82 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getOperationsMessages.cjs +30 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getOperationsMessages.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.cjs +65 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getScResultsMessages.cjs +30 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getScResultsMessages.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.cjs +43 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.cjs +121 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.cjs +46 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.cjs +39 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.cjs +43 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiver.cjs +34 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiver.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiverAssets.cjs +32 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiverAssets.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionStatus.cjs +41 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionStatus.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.cjs +40 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.cjs +49 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.cjs +46 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/index.cjs +24 -1
- package/out/utils/transactions/getInterpretedTransaction/index.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
- package/out/utils/transactions/getScamFlag.cjs +87 -1
- package/out/utils/transactions/getScamFlag.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.cjs +50 -1
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/createTransactionsHistoryFromSessions.cjs +39 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/createTransactionsHistoryFromSessions.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.cjs +63 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.cjs +52 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.cjs +35 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getIsTransactionInvalidOrFailed.cjs +38 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getIsTransactionInvalidOrFailed.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/getReceiverData.cjs +36 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getReceiverData.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.cjs +112 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionDirectionLabel.cjs +58 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionDirectionLabel.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.cjs +74 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAmount.cjs +62 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAmount.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.cjs +90 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.cjs +65 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAvatar.cjs +37 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAvatar.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/index.cjs +49 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/index.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/isTransferNftOrSft.cjs +37 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/isTransferNftOrSft.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.cjs +115 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.cjs +80 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/index.cjs +24 -1
- package/out/utils/transactions/getTransactionsHistory/index.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
- package/out/utils/transactions/index.cjs +30 -1
- package/out/utils/transactions/index.cjs.map +2 -2
- package/out/utils/transactions/index.mjs +1 -1
- package/out/utils/transactions/isGuardianTx.cjs +42 -1
- package/out/utils/transactions/isGuardianTx.cjs.map +2 -2
- package/out/utils/validation/addressIsValid.cjs +39 -1
- package/out/utils/validation/addressIsValid.cjs.map +2 -2
- package/out/utils/validation/getIdentifierType.cjs +53 -1
- package/out/utils/validation/getIdentifierType.cjs.map +2 -2
- package/out/utils/validation/hex.cjs +35 -1
- package/out/utils/validation/hex.cjs.map +2 -2
- package/out/utils/validation/index.cjs +30 -1
- package/out/utils/validation/index.cjs.map +2 -2
- package/out/utils/validation/isContract.cjs +95 -1
- package/out/utils/validation/isContract.cjs.map +2 -2
- package/out/utils/validation/maxDecimals.cjs +33 -1
- package/out/utils/validation/maxDecimals.cjs.map +2 -2
- package/out/utils/visual/index.cjs +22 -1
- package/out/utils/visual/index.cjs.map +2 -2
- package/out/utils/visual/index.mjs +1 -1
- package/out/utils/visual/switchTheme.cjs +38 -1
- package/out/utils/visual/switchTheme.cjs.map +2 -2
- package/out/utils/visual/switchTheme.mjs +1 -1
- package/out/utils/walletconnect/__sdkWalletconnectProvider.cjs +33 -1
- package/out/utils/walletconnect/__sdkWalletconnectProvider.cjs.map +2 -2
- package/out/utils/window/buildUrlParams.cjs +36 -1
- package/out/utils/window/buildUrlParams.cjs.map +2 -2
- package/out/utils/window/getIsAuthRoute.cjs +37 -1
- package/out/utils/window/getIsAuthRoute.cjs.map +2 -2
- package/out/utils/window/getIsInIframe.cjs +43 -1
- package/out/utils/window/getIsInIframe.cjs.map +2 -2
- package/out/utils/window/getIsInIframe.mjs +1 -1
- package/out/utils/window/getWindowLocation.cjs +55 -1
- package/out/utils/window/getWindowLocation.cjs.map +2 -2
- package/out/utils/window/getWindowParentOrigin.cjs +43 -1
- package/out/utils/window/getWindowParentOrigin.cjs.map +2 -2
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/out/utils/window/index.cjs +32 -1
- package/out/utils/window/index.cjs.map +2 -2
- package/out/utils/window/index.mjs +1 -1
- package/out/utils/window/isWindowAvailable.cjs +28 -1
- package/out/utils/window/isWindowAvailable.cjs.map +2 -2
- package/out/utils/window/matchPath.cjs +113 -1
- package/out/utils/window/matchPath.cjs.map +2 -2
- package/out/utils/window/sanitizeCallbackUrl.cjs +38 -1
- package/out/utils/window/sanitizeCallbackUrl.cjs.map +2 -2
- package/package.json +2 -2
- package/out/__chunks__/chunk-32UBROSW.mjs +0 -2
- package/out/__chunks__/chunk-34SZ56FQ.mjs +0 -2
- package/out/__chunks__/chunk-3AT3N6U7.mjs +0 -2
- package/out/__chunks__/chunk-4WBXT7UF.mjs +0 -2
- package/out/__chunks__/chunk-4YLMDHUH.mjs +0 -2
- package/out/__chunks__/chunk-6BQWDKWC.mjs +0 -2
- package/out/__chunks__/chunk-6XHXG7HB.mjs +0 -2
- package/out/__chunks__/chunk-AHRQWA37.mjs +0 -2
- package/out/__chunks__/chunk-DBTVIN4S.mjs +0 -2
- package/out/__chunks__/chunk-DK6T6BEY.mjs +0 -2
- package/out/__chunks__/chunk-FGO6JGLQ.mjs +0 -2
- package/out/__chunks__/chunk-GRUQO4NQ.mjs +0 -2
- package/out/__chunks__/chunk-L45XDEGL.mjs +0 -2
- package/out/__chunks__/chunk-LDFQUMVY.mjs +0 -2
- package/out/__chunks__/chunk-LTXWZGXK.mjs +0 -2
- package/out/__chunks__/chunk-NAEWTITL.mjs +0 -2
- package/out/__chunks__/chunk-O4IUATY4.mjs +0 -2
- package/out/__chunks__/chunk-UYRCLUET.mjs +0 -2
- package/out/__chunks__/chunk-YGRMC52T.mjs +0 -2
- /package/out/__chunks__/{chunk-YGRMC52T.mjs.map → chunk-25G6565D.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KHK7HHMR.mjs.map → chunk-2UPWFRCA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-W42RP7KL.mjs.map → chunk-2WAT3RZ3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-H3U7BN2F.mjs.map → chunk-2ZW4LVVR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GDTOANYH.mjs.map → chunk-32DICVUK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3IMTI6JQ.mjs.map → chunk-4ZAZCOJD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-U6N242A3.mjs.map → chunk-5DUIQBPR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GRUQO4NQ.mjs.map → chunk-5F53ZQDO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-M44UOZ5O.mjs.map → chunk-5KY3OIFD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-L45XDEGL.mjs.map → chunk-5VQOOZQV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KKC3NMW2.mjs.map → chunk-5WR632LR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YVAL3LZF.mjs.map → chunk-643FDBLR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3AT3N6U7.mjs.map → chunk-6C26F7JZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AHRQWA37.mjs.map → chunk-6FRXGPOE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3H5GYTLV.mjs.map → chunk-6VPMVY56.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-32UBROSW.mjs.map → chunk-73E7X7HK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-O4IUATY4.mjs.map → chunk-7BZQYV6D.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HZRV27MM.mjs.map → chunk-7UUDW64Y.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UJIIYWYI.mjs.map → chunk-A63UAQRB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NWV2L5R7.mjs.map → chunk-AGBY3WIQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LAH3RNPH.mjs.map → chunk-ALBBGYHS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AOYKAITD.mjs.map → chunk-ALT4OKHK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NRBAAXUJ.mjs.map → chunk-AN4TQZVZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BMJVOKCD.mjs.map → chunk-AVEMKF6Z.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-X5F7OCHT.mjs.map → chunk-B5YOJH7H.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7NW5R435.mjs.map → chunk-BC5MT6WS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4WBXT7UF.mjs.map → chunk-E5OMXZT7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LCHJKRM5.mjs.map → chunk-ELCWJYQ7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-753KDZIR.mjs.map → chunk-ET6MYYOM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FUOM6J37.mjs.map → chunk-ETH6P454.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-23KF5JXN.mjs.map → chunk-FFGJMR4Q.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NKAJB5TQ.mjs.map → chunk-GDMANS7S.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4D3ZQTRN.mjs.map → chunk-GJ64B4SS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ASPVUU7R.mjs.map → chunk-GPUXJWA3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5PNQWHBP.mjs.map → chunk-GWXW3E7L.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RVYA3BJD.mjs.map → chunk-H7YY4BCM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BZRPJAII.mjs.map → chunk-HBZ2RP7A.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LTXWZGXK.mjs.map → chunk-HKVAAOC4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Z3ZWRORQ.mjs.map → chunk-I2CW2O7M.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UYRCLUET.mjs.map → chunk-ILR4U7Q3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7LP6TRTV.mjs.map → chunk-IXO75QXR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OHFXF2B5.mjs.map → chunk-J6MUGECP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LDFQUMVY.mjs.map → chunk-JFIQXGJ5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YIZAB63A.mjs.map → chunk-JHYKMKMK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5SUCN4KU.mjs.map → chunk-JKFZERMM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4YLMDHUH.mjs.map → chunk-JM3JEGRV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DBTVIN4S.mjs.map → chunk-JOPPHD4R.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DBMG6HQS.mjs.map → chunk-KTQD4DTE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QWU5MHP3.mjs.map → chunk-KZUPCFEG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GKZ2BSWS.mjs.map → chunk-MNIS55JL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DPWDWN6V.mjs.map → chunk-NO4FZ4M3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AXYA7YGQ.mjs.map → chunk-O462QL7Q.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EJ3EBFAG.mjs.map → chunk-OI2AXS22.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-K23LCX54.mjs.map → chunk-PCGP4VVW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7PIS2F7G.mjs.map → chunk-PUCCTEN7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UL35YJX4.mjs.map → chunk-QJ6YLLBK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-H6LOCVAD.mjs.map → chunk-QMFEYMZI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FGO6JGLQ.mjs.map → chunk-QZDVKNF4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HZCXNBGJ.mjs.map → chunk-RXE5QIE3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NAEWTITL.mjs.map → chunk-SJLTVGKD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3EVBWJRB.mjs.map → chunk-SLG55PDO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IGDWL5FF.mjs.map → chunk-T3RXRYP5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KAYZVBV4.mjs.map → chunk-TKIYJDS2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EMSDNE45.mjs.map → chunk-UF2Y4P6U.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NPF6FJT3.mjs.map → chunk-UUPS4KLW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EJHFAT42.mjs.map → chunk-UXBKGTA5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-35AC7JEX.mjs.map → chunk-V322LMVG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-W2TBID4H.mjs.map → chunk-V3GRSQIB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-D4SYE2AU.mjs.map → chunk-VDAYN2HT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MBYIULNF.mjs.map → chunk-VY62CH5W.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-34SZ56FQ.mjs.map → chunk-WJJTA23D.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UKBPRQL6.mjs.map → chunk-X3AX4PFE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FMNY4EIM.mjs.map → chunk-YYVGE2ZU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EH3INPBE.mjs.map → chunk-ZAY5O7DE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YIEM5DGL.mjs.map → chunk-ZG6EULI2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YLJC7ZKD.mjs.map → chunk-ZJM5FGLA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EDVSRPEU.mjs.map → chunk-ZM77AGP5.mjs.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as M}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as M}from"./chunk-5F53ZQDO.mjs";import{a as U}from"./chunk-OLPFN3HZ.mjs";import{a as j}from"./chunk-7Z7IX367.mjs";import{a as z}from"./chunk-VCQBYNNS.mjs";import{a as V}from"./chunk-LN5UXO64.mjs";import{a as B}from"./chunk-PHOF3Z5D.mjs";import{a as $}from"./chunk-RBZC4PEU.mjs";import{a as _}from"./chunk-ELQR4QMU.mjs";import{a as R}from"./chunk-URJQWHBM.mjs";import{a as w}from"./chunk-YGI3KXMZ.mjs";import{a as O}from"./chunk-ALBBGYHS.mjs";import{a as v}from"./chunk-RYIJWGFA.mjs";import{x}from"./chunk-ZM77AGP5.mjs";import{a as G}from"./chunk-BRJNX4JF.mjs";import{a as C,c as F,f}from"./chunk-PJWJZHIS.mjs";import{a as b}from"./chunk-KD2IQ32V.mjs";import{c as L}from"./chunk-TI37DKBT.mjs";import{k as h}from"./chunk-LHEH7L4L.mjs";import{a as A}from"./chunk-G43Z243B.mjs";import{BigNumber as Dt}from"bignumber.js";async function Kt({allTransactions:T,currentScreenIndex:s,egldLabel:n,network:e,gasPriceData:m,price:S,address:c,username:q,shard:H,signedIndexes:i,parsedTransactionsByDataField:K}){let p=T[s],W=p?.transaction?.sender.toString(),d=p?.transaction,o=d?.toPlainObject(),D=null,I=null,t=await _({egldLabel:n,sender:W,apiAddress:e.apiAddress,address:c,parsedTransactionsByDataField:K})(p),g=!t?.transactionTokenInfo?.tokenId,{tokenId:l,nonce:u,amount:y=""}=t?.transactionTokenInfo??{},Z=l&&u&&u.length>0?`${l}-${u}`:l,J=await O({tokenId:Z}),{esdtPrice:Q,tokenDecimals:X,type:r,identifier:a,tokenImageUrl:Y}=J;if(r==="SemiFungibleESDT"||r==="NonFungibleESDT")I={type:r,identifier:a,amount:y,imageURL:Y};else{let P=({addCommas:St})=>f({input:g?d.value.toString():y,decimals:g?Number(e.decimals):X,digits:Number(e.digits),showLastNonZeroDecimal:!1,addCommas:St}),lt=P({addCommas:!0}),ut=P({addCommas:!1}),ft=Number(g?S:Q),Tt=w({amount:ut,usd:ft,addEqualSign:!0});D={identifier:(a===h?n:a)??n,amount:lt,usdValue:Tt}}let{feeLimitFormatted:tt,feeInFiatLimit:ot}=R({transaction:d,price:S}),nt=V({shard:H,initialGasPrice:m.initialGasPrice,transaction:o,gasStationMetadata:e.gasStationMetadata}),et=B({transaction:o,gasPriceData:m}),it=x().getType(),rt=v(it),N=T.length,at=i.length>0?i[i.length-1]+1:0,k=L(o?.data??""),E=$(t?.transactionTokenInfo),st=U({data:k,identifier:a,highlight:E}),mt=M(),ct=G({to:`/${b}/${c}`,explorerAddress:mt}),pt=N===1||t?.needsSigning&&!i.includes(s),dt=f({input:et.toString(),decimals:F,addCommas:!0,digits:C}),gt=new Dt(o.gasLimit).toFormat({decimalSeparator:",",groupSeparator:".",groupSize:3});return{commonData:{receiver:o.receiver.toString(),data:k,decodedData:st,gasPrice:dt,gasLimit:gt,explorerLink:ct,ppu:m.ppu,ppuOptions:nt,egldLabel:n,tokenType:j(r),feeLimit:tt,feeInFiatLimit:ot,transactionsCount:N,currentIndex:s,currentIndexToSign:at,highlight:E,scCall:z(t?.transactionTokenInfo),needsSigning:pt,isEditable:t?.needsSigning,providerName:rt,address:c,username:q,origin:A.location?.origin},tokenTransaction:D,fungibleTransaction:I}}export{Kt as a};
|
|
2
|
+
//# sourceMappingURL=chunk-KTQD4DTE.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-G43Z243B.mjs";function r(t){try{if(!e)return;e.document.documentElement.dataset.mvxTheme=t}catch{console.log("Error switching the theme!")}}export{r as a};
|
|
2
|
+
//# sourceMappingURL=chunk-KZUPCFEG.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{j as n,q as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{j as n,q as o}from"./chunk-GWXW3E7L.mjs";import{c as p}from"./chunk-NTEMINYA.mjs";var s=()=>o().setState(n),l=({address:e,providerType:t})=>{o().setState(({account:r,loginInfo:i})=>{r.address=e,r.publicKey=new p(e).toHex(),i&&(i.providerType=t)},!1,{type:"loginAction",payload:{value:{address:e,providerType:t}}})};export{s as a,l as b};
|
|
2
|
+
//# sourceMappingURL=chunk-MNIS55JL.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-SLG55PDO.mjs";import{b as r}from"./chunk-AGBY3WIQ.mjs";import{s as i}from"./chunk-GWXW3E7L.mjs";import{b as o}from"./chunk-7VHTZYM2.mjs";async function M({shard:t,apiAddress:s}){if(t!=null)try{let a=await n(t,s);if(!a?.[t]?.lastBlock)return;let e=o(i());(!e.gasStationMetadata||!e.gasStationMetadata[t]||e.gasStationMetadata[t].lastBlock!==a[t].lastBlock)&&r({...e,gasStationMetadata:{...e.gasStationMetadata,...a}})}catch(a){console.error("Error fetching gas station metadata:",a)}}export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-NO4FZ4M3.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{q as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{q as o}from"./chunk-GWXW3E7L.mjs";import{a as c}from"./chunk-JMC7CMTU.mjs";var p=t=>{o().setState(({account:e})=>{let s=e.address===t.address;e.accounts={[e.address]:s?t:c}},!1,{type:"setAccount",payload:{value:t}})},r=t=>o().setState(({account:e})=>{e.ledgerAccount=t},!1,{type:"setLedgerAccount",payload:{value:t}}),u=t=>o().setState(({account:e})=>{e.walletConnectAccount=t},!1,{type:"setWalletConnectAccount",payload:{value:t}}),l=t=>o().setState(({account:e})=>{e.websocketEvent={timestamp:Date.now(),message:t}},!1,{type:"setWebsocketEvent",payload:{value:t}}),d=t=>o().setState(({account:e})=>{e.websocketBatchEvent={timestamp:Date.now(),data:t}},!1,{type:"setWebsocketBatchEvent",payload:{value:t}}),y=t=>{o().setState(({account:e})=>{e.accounts[e.address].nonce=t},!1,{type:"setAccountNonce",payload:{value:t}})};export{p as a,r as b,u as c,l as d,d as e,y as f};
|
|
2
|
+
//# sourceMappingURL=chunk-O462QL7Q.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-7UUDW64Y.mjs";var a=class{constructor({uiDataUpdateEvent:t,uiTag:e}){this.eventBus=null;this.uiElement=null;this.isCreatingElement=!1;this.unsubscribeFunctions=new Map;this.uiDataUpdateEvent=t,this.uiTag=e,this.data=this.getInitialData()}async init(t){this.anchor=t,await this.createUIElement(t),await this.setupEventListeners()}updateData(t){this.data={...this.data,...t},this.notifyDataUpdate()}subscribeToEventBus(t,e){if(!this.eventBus)throw new Error("eventBus is not initialized");let i=this.eventBus?.subscribe(t,e);if(i){let n=this.unsubscribeFunctions.get(t)||[];n.push(i),this.unsubscribeFunctions.set(t,n)}}notifyDataUpdate(){this.eventBus?.publish(this.uiDataUpdateEvent,this.data)}destroy(){this.unsubscribeFunctions.forEach(t=>t.forEach(e=>e())),this.unsubscribeFunctions.clear(),this.eventBus=null,this.uiElement?.remove?.(),this.uiElement=null}getInitialData(){return this.initialData}resetData(){this.data=this.getInitialData()}async createUIElement(t=this.anchor){if(this.isCreatingElement||this.uiElement)return this.uiElement;if(this.isCreatingElement=!0,this.uiElement=await s.create({name:this.uiTag,anchor:t}),this.isCreatingElement=!1,!this.uiElement)throw new Error(`Failed to create ${this.uiTag} element`);if(this.eventBus||(this.eventBus=await this.uiElement.getEventBus()),!this.eventBus)throw new Error("eventBus is not initialized");return this.uiElement}};export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-OI2AXS22.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-UUPS4KLW.mjs";var t={closeConnectionRef:void 0};async function c(n){let{closeConnection:o}=await e(n);t.closeConnectionRef=o}export{t as a,c as b};
|
|
2
|
+
//# sourceMappingURL=chunk-PCGP4VVW.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-SJLTVGKD.mjs";import{a as f}from"./chunk-643FDBLR.mjs";import{a as g}from"./chunk-ZG6EULI2.mjs";import{b as a}from"./chunk-GWXW3E7L.mjs";import{c as s,g as r}from"./chunk-NTEMINYA.mjs";var v=async({signMessageCallback:m,nativeAuthClientConfig:o})=>{let{address:t}=u(),c=g(),i=f(o||c),e=await i.initialize({noCache:!!o});if(!e)return null;let h=new r({address:new s(t),data:Buffer.from(`${t}${e}`)}),n=await m(h,{});if(!n?.signature)throw"Message not signed";return a({loginToken:e,signature:Buffer.from(n.signature).toString("hex")}),i.getToken({address:t,token:e,signature:Buffer.from(n.signature).toString("hex")})};export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-PUCCTEN7.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{d as s}from"./chunk-J6MUGECP.mjs";import{a as u}from"./chunk-IXO75QXR.mjs";import{s as c}from"./chunk-GWXW3E7L.mjs";import{b as d}from"./chunk-7VHTZYM2.mjs";import{a as v}from"./chunk-6R2WFQ7U.mjs";import{a}from"./chunk-LJX4MW7B.mjs";var i=class i extends u{constructor(){super({uiTag:"mvx-unlock-panel",uiDataUpdateEvent:"OPEN"});this.initialData={providers:null,walletAddress:null};this.openUnlockPanel=async()=>{let{walletAddress:e}=d(c());this.data={providers:this.getProvidersList(),walletAddress:e},await this.openUI(),this.notifyDataUpdate()};this.setupEventListeners=async()=>{this.eventBus&&(this.subscribeToEventBus("LOGIN",this.handleLogin),this.subscribeToEventBus("CANCEL_LOGIN",this.handleCancelLogin),this.subscribeToEventBus("CLOSE",this.handleCloseUI))};this.handleCloseUI=async e=>{!e?.isLoginFinished&&i.onClose&&i.onClose(),this.closeUI()};this.handleLogin=async({type:e,anchor:o})=>{if(!i.loginHandler)throw new Error("Login callback not initialized. Please call `init()` first.");try{this.isSimpleLoginCallback(i.loginHandler)?(await(await s.create({type:e,anchor:o})).login(),i.loginHandler()):i.loginHandler({type:e,anchor:o}),await this.handleCloseUI({isLoginFinished:!0})}catch(t){console.error(t),this.eventBus?.publish("CANCEL_IN_PROVIDER",this.data)}};this.handleCancelLogin=async()=>{await s.destroy()};this.isSimpleLoginCallback=e=>e.length===0;this.data=this.initialData}static getInstance(){return i.instance||(i.instance=new i),i.instance}static init(e){return this.loginHandler=e.loginHandler,this.allowedProviders=e.allowedProviders,e.onClose&&(this.onClose=e.onClose),this.getInstance()}getProvidersList(){let e=s.customProviders,t=[...Object.values(a).filter(n=>![a.none,a.webview].includes(n)),...e.map(n=>n.type)],P=e.reduce((n,r)=>(n[r.type]=r.name,n),{}),l={...v,...P};return(i.allowedProviders?i?.allowedProviders.filter(n=>t.includes(n)):t).map(n=>{let r=e.find(g=>g.type===n);return r||{name:n in l?l[n]:n,type:n}})}};i.loginHandler=null,i.onClose=null,i.allowedProviders=null;var p=i;export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-QJ6YLLBK.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-GPUXJWA3.mjs";import{a}from"./chunk-YUFPUG5O.mjs";import{a as c}from"./chunk-E5OMXZT7.mjs";var p="Check if the MultiversX App is open on Ledger";async function v({manager:e,resolve:n,reject:d,shouldInitProvider:s}){let i=!c(),t=()=>v({manager:e,resolve:n,reject:d,shouldInitProvider:s}),o=()=>d("Device unavailable");try{e?.updateAccountScreen({isLoading:!0}),e&&i&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o});let r=await l({shouldInitProvider:s});e&&i&&e.unsubscribeFromProviderInit({handleRetry:t,handleCancel:o}),n(r)}catch(r){if(!i)throw r;let{errorMessage:u,defaultErrorMessage:g}=a(r);e?.updateConnectScreen({error:u??g??p}),e&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o})}}export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-QMFEYMZI.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-OI2AXS22.mjs";var n=class t extends e{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE",uiTag:"mvx-wallet-connect"});this.initialData={wcURI:"",walletConnectDeepLink:""};this.data={...this.initialData}}static getInstance(){return t.instance||(t.instance=new t),t.instance}handleClose(a){a?.isLoginFinished||(this.anchor?this.anchor.dispatchEvent(new CustomEvent("ANCHOR_CLOSE",{composed:!1,bubbles:!1})):this.destroy())}async setupEventListeners(){this.eventBus&&(this.eventBus.subscribe("CLOSE",this.handleClose.bind(this)),this.eventBus.subscribe("UI_DISCONNECTED",this.destroy.bind(this)))}};export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-RXE5QIE3.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-6VPMVY56.mjs";import o from"axios";var n="transactions/ppu";async function l(a,s){let r=`${e(s)}/${n}/${a}`;try{let{data:t}=await o.get(r);return t?{[a]:{lastBlock:t.lastBlock,fast:t.fast,faster:t.faster}}:null}catch(t){return console.error("Error fetching gas station metadata from:",r,t),null}}export{l as a};
|
|
2
|
+
//# sourceMappingURL=chunk-SLG55PDO.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-G43Z243B.mjs";var t=()=>{if(!e)return"";try{let r=e.document?.referrer;return r?new URL(r).origin:""}catch(r){return console.error(r),""}};export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-T3RXRYP5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-A63UAQRB.mjs";async function g({originalLoginToken:i,extraInfoData:n,address:o}){let e=await t({loginToken:i,extraInfoData:n}),s=n.multisig||n.impersonate||o;return{address:e!=null?s:o,modifiedLoginToken:e}}export{g as a};
|
|
2
|
+
//# sourceMappingURL=chunk-TKIYJDS2.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"./chunk-DLWDO7M6.mjs";import{d as v}from"./chunk-J6MUGECP.mjs";import{w as m}from"./chunk-ZM77AGP5.mjs";import{s as n}from"./chunk-GWXW3E7L.mjs";import{d as s}from"./chunk-VNLGNNIL.mjs";import{a as i}from"./chunk-LJX4MW7B.mjs";import{a as p}from"./chunk-5KY3OIFD.mjs";async function g(){let t=a(),d=p(),r=s(n()),e=d||t?i.webview:r,c=Object.values(i).includes(r);if(r&&!c&&(e=r),!e)return;let o=await v.create({type:e});if(!o)throw new Error("Provider not found");(t||e===i.webview&&o.isInitialized())&&await o.login(),m(o)}export{g as a};
|
|
2
|
+
//# sourceMappingURL=chunk-TT7J5V3M.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/providers/helpers/restoreProvider.ts"],
|
|
4
|
-
"sourcesContent": ["import { isMobileWebview } from 'lib/sdkWebviewProvider';\nimport {\n ProviderBaseType,\n ProviderTypeEnum\n} from 'providers/types/providerFactory.types';\nimport { providerTypeSelector } from 'store/selectors';\nimport { getState } from 'store/store';\nimport { getIsInIframe } from 'utils/window/getIsInIframe';\nimport { setAccountProvider } from './accountProvider';\nimport { ProviderFactory } from '../ProviderFactory';\n\nexport async function restoreProvider() {\n const isMobileView = isMobileWebview();\n const isInIframe = getIsInIframe();\n const providerType = providerTypeSelector(getState());\n\n let type =\n isInIframe || isMobileView ? ProviderTypeEnum.webview : providerType;\n\n const isBaseProvider = Object.values(ProviderTypeEnum).includes(\n providerType as ProviderBaseType\n );\n // Check if provider exist and is not base\n const isCustomProvider = providerType && !isBaseProvider;\n\n // Prioritize customProvider if it serves as a provider inside an iframe\n if (isCustomProvider) {\n type = providerType;\n }\n\n if (!type) {\n return;\n }\n\n const provider = await ProviderFactory.create({\n type\n });\n\n if (!provider) {\n throw new Error('Provider not found');\n }\n\n /*\n Check if the app is running in webview and the provider is already initialized.\n - true: the app is embedded within another dApp (e.g., inside an iframe) and perform login using the provider.\n - false: the parent is not a dApp and proceed with initializing the current app as a standalone iframe.\n */\n
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["restoreProvider", "isMobileView", "isMobileWebview", "isInIframe", "getIsInIframe", "providerType", "providerTypeSelector", "getState", "type", "ProviderTypeEnum", "isBaseProvider", "provider", "ProviderFactory", "
|
|
4
|
+
"sourcesContent": ["import { isMobileWebview } from 'lib/sdkWebviewProvider';\nimport {\n ProviderBaseType,\n ProviderTypeEnum\n} from 'providers/types/providerFactory.types';\nimport { providerTypeSelector } from 'store/selectors';\nimport { getState } from 'store/store';\nimport { getIsInIframe } from 'utils/window/getIsInIframe';\nimport { setAccountProvider } from './accountProvider';\nimport { ProviderFactory } from '../ProviderFactory';\n\nexport async function restoreProvider() {\n const isMobileView = isMobileWebview();\n const isInIframe = getIsInIframe();\n const providerType = providerTypeSelector(getState());\n\n let type =\n isInIframe || isMobileView ? ProviderTypeEnum.webview : providerType;\n\n const isBaseProvider = Object.values(ProviderTypeEnum).includes(\n providerType as ProviderBaseType\n );\n // Check if provider exist and is not base\n const isCustomProvider = providerType && !isBaseProvider;\n\n // Prioritize customProvider if it serves as a provider inside an iframe\n if (isCustomProvider) {\n type = providerType;\n }\n\n if (!type) {\n return;\n }\n\n const provider = await ProviderFactory.create({\n type\n });\n\n if (!provider) {\n throw new Error('Provider not found');\n }\n\n /*\n Check if the app is running in webview and the provider is already initialized.\n - true: the app is embedded within another dApp (e.g., inside an iframe) and perform login using the provider.\n - false: the parent is not a dApp and proceed with initializing the current app as a standalone iframe.\n */\n if (\n isMobileView ||\n (type === ProviderTypeEnum.webview && provider.isInitialized())\n ) {\n await provider.login();\n }\n\n setAccountProvider(provider);\n}\n"],
|
|
5
|
+
"mappings": "0RAWA,eAAsBA,GAAkB,CACtC,IAAMC,EAAeC,EAAgB,EAC/BC,EAAaC,EAAc,EAC3BC,EAAeC,EAAqBC,EAAS,CAAC,EAEhDC,EACFL,GAAcF,EAAeQ,EAAiB,QAAUJ,EAEpDK,EAAiB,OAAO,OAAOD,CAAgB,EAAE,SACrDJ,CACF,EASA,GAPyBA,GAAgB,CAACK,IAIxCF,EAAOH,GAGL,CAACG,EACH,OAGF,IAAMG,EAAW,MAAMC,EAAgB,OAAO,CAC5C,KAAAJ,CACF,CAAC,EAED,GAAI,CAACG,EACH,MAAM,IAAI,MAAM,oBAAoB,GASpCV,GACCO,IAASC,EAAiB,SAAWE,EAAS,cAAc,IAE7D,MAAMA,EAAS,MAAM,EAGvBE,EAAmBF,CAAQ,CAC7B",
|
|
6
|
+
"names": ["restoreProvider", "isMobileView", "isMobileWebview", "isInIframe", "getIsInIframe", "providerType", "providerTypeSelector", "getState", "type", "ProviderTypeEnum", "isBaseProvider", "provider", "ProviderFactory", "setAccountProvider"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as p}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as p}from"./chunk-ZAY5O7DE.mjs";import{a as u}from"./chunk-EAXWH64Z.mjs";import{a as i}from"./chunk-W5MTQBQF.mjs";import{a as T}from"./chunk-JSSRK6RP.mjs";import{a as m}from"./chunk-U3UMCTU6.mjs";import{a as k}from"./chunk-BRJNX4JF.mjs";import{c as l}from"./chunk-PJWJZHIS.mjs";import{a as o}from"./chunk-7CELSV4S.mjs";var g=class{static async processTransactions({address:v,egldLabel:L,explorerAddress:a,transactions:h}){let f=h.map(e=>T({address:v,explorerAddress:a,transaction:e}));return await Promise.all(f.map(async e=>{let s=e.receiverAssets?.name.replace(/\p{Emoji}/gu,""),c=e.senderAssets?.name.replace(/\p{Emoji}/gu,""),{senderLockedAccount:D,receiverLockedAccount:x}=await p({receiver:e.receiver,sender:e.sender,tokenId:e.tokenIdentifier}),{egldValueData:t,tokenValueData:n,nftValueData:r}=u({transaction:e}),y=r?.token.type==="MetaESDT"?void 0:r?.badgeText,d=m.getData({input:t?.value??n?.value??r?.value??"",decimals:t?.decimals??n?.decimals??r?.decimals??l,digits:2}),S={badge:y??void 0,collection:n?.token.collection??r?.token.collection,egldLabel:t?L:"",link:k({explorerAddress:a,to:n?.tokenExplorerLink??r?.tokenExplorerLink??""}),linkText:n?.tokenLinkText??r?.tokenLinkText,name:n?.token.name??r?.token.name,showFormattedAmount:!!(t||n?.tokenFormattedAmount||r?.tokenFormattedAmount),svgUrl:n?.token.svgUrl??r?.token.svgUrl,ticker:n?.token.ticker??r?.token.ticker,titleText:n?.titleText??r?.titleText,valueDecimal:d.valueDecimal,valueInteger:d.valueInteger},w=i(e.receiverShard),A=i(e.senderShard);return{age:e.transactionDetails.age,direction:e.transactionDetails.direction,method:e.transactionDetails.method,iconInfo:e.transactionDetails.iconInfo,link:e.links.transactionLink??"",txHash:e.txHash,receiver:{address:e.receiver,name:s??"",description:`${s??e.receiver} (${e.receiver})`,isContract:o(e.receiver),isTokenLocked:!!x,link:e.links.receiverLink??"",shard:w,shardLink:e.links.receiverShardLink,showLink:e.transactionDetails.direction!=="In"},sender:{address:e.sender,name:c??"",description:`${c??e.sender} (${e.sender})`,isContract:o(e.sender),isTokenLocked:!!D,link:e.links.senderLink??"",shard:A,shardLink:e.links.senderShardLink,showLink:e.transactionDetails.direction!=="Out"},value:S}}))}};export{g as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UF2Y4P6U.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as T}from"./chunk-Q2Q4XN4M.mjs";import{b as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as T}from"./chunk-Q2Q4XN4M.mjs";import{b as u}from"./chunk-ETH6P454.mjs";import{d as m,e as l}from"./chunk-O462QL7Q.mjs";import{q as a}from"./chunk-GWXW3E7L.mjs";import{b as r}from"./chunk-7VHTZYM2.mjs";import{b as t}from"./chunk-GGBMHKR4.mjs";import{io as y}from"socket.io-client";var A=3e3,g=3,w=500,E=1e3,f="batchUpdated",p="connect",N="connect_error",b="disconnect";async function M(i){let{apiAddress:k,websocketUrl:I}=r(a().getState());if(!i)throw new Error("Websocket could not be initialized: address missing");let o=null,n=null,c=e=>{t.status=e,u(e)},d=e=>{o&&clearTimeout(o),o=setTimeout(()=>{m(e)},E)},C=e=>{n&&clearTimeout(n),n=setTimeout(()=>{l(e)},E)},W=()=>{let e=t.instance;e&&(e.off(N),e.off(p),e.off(f),e.off(b),e.close(),console.log("Websocket disconnected.")),c("not_initialized"),t.instance=null,o&&clearTimeout(o),n&&clearTimeout(n)},S=async()=>{c("pending");let e=I??await T(k);if(!e){c("not_initialized");return}t.instance=y(e,{forceNew:!0,reconnection:!0,reconnectionAttempts:g,reconnectionDelay:w,timeout:A,query:{address:i}}),t.instance.onAny(d),t.instance.on(f,C),t.instance.on(p,()=>{console.log("Websocket connected."),c("completed")}),t.instance.on(N,s=>{console.warn("Websocket connect error: ",s.message)}),t.instance.on(b,s=>{console.warn("Websocket disconnected: ",s),c("pending")})};return t.status==="not_initialized"&&!t.instance?.active&&await S(),{closeConnection:W}}export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UUPS4KLW.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as A}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as A}from"./chunk-BC5MT6WS.mjs";import{a as s}from"./chunk-5DUIQBPR.mjs";import{a as h}from"./chunk-B2RDSGON.mjs";import{a as k}from"./chunk-5F53ZQDO.mjs";import{b as L}from"./chunk-O462QL7Q.mjs";import{a as I}from"./chunk-BRJNX4JF.mjs";import{f as p}from"./chunk-GWXW3E7L.mjs";import{a as f}from"./chunk-KD2IQ32V.mjs";import{a as x}from"./chunk-LJX4MW7B.mjs";import{BigNumber as C}from"bignumber.js";async function M({options:d,config:i,provider:a,login:c}){let e=A.getInstance(),T=k(),b=h({loginToken:d?.token,version:i.version}),o={manager:e,provider:a};await s(o);let t=await new Promise(async function(E,w){async function g(r){let n=e?e.addressesPerPage??1:1,l=new C(r-1).times(n);e?.updateStartIndex(Math.max(0,parseInt(l.toString()))),await s(o)}async function u(r){if(!(!a||!c)){e?.updateConfirmScreen({...b,selectedAddress:r.selectedAddress,explorerLink:I({to:`/${f}/${r.selectedAddress}`,explorerAddress:T})});try{let n=d?.token?await a.tokenLogin({token:Buffer.from(`${d?.token}{}`),addressIndex:r.addressIndex}):await c({addressIndex:r.addressIndex});E({address:n.address,signature:n.signature?n.signature.toString("hex"):"",addressIndex:r.addressIndex})}catch(n){console.error("User rejected login:",n),!!e?.getConfirmScreenData()&&await s(o)}}}async function m(){await s(o),e.unsubscribeFromAuthEvents({handleCancel:m,handleAccessWallet:u,handleGoToPage:g}),w("User cancelled login")}e.subscribeToAuthEvents({handleCancel:m,handleAccessWallet:u,handleGoToPage:g})}),{version:P,dataEnabled:v}=i;return p({index:t.addressIndex,loginType:x.ledger}),L({address:t.address,index:t.addressIndex,version:P,hasContractDataEnabled:v}),{address:t.address,signature:t.signature}}export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UXBKGTA5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-ELCWJYQ7.mjs";import{a as o}from"./chunk-LJX4MW7B.mjs";import{a as e,b as t}from"./chunk-G43Z243B.mjs";import{WebviewProvider as a}from"@multiversx/sdk-webview-provider/out/WebviewProvider";var n=class extends s{constructor(r){super(r?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async r=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signTransactions(r)||[]}catch(i){throw this.cancelAction(),i}};this.signMessage=async r=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signMessage(r)}catch(i){throw this.cancelAction(),i}};this.provider=a.getInstance({resetStateCallback:()=>{e.localStorage?.clear?.(),e.sessionStorage?.clear?.()}}),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}logout(){return this.provider.logout()}getType(){return o.webview}getAddress(){throw new Error("Method not implemented.")}setAccount(r){return this.provider.setAccount(r)}isInitialized(){return this.provider.isInitialized()}async initializeProvider(){let r=await this.provider.init(t);return this.address&&this.setAccount({address:this.address}),r}};export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-V322LMVG.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-G43Z243B.mjs";import{MvxLedgerConnect as r}from"@multiversx/sdk-dapp-ui/web-components/mvx-ledger-connect";async function i(n){if(!(typeof t.navigator<"u"&&t.navigator.product==="ReactNative"))try{(await import("@multiversx/sdk-dapp-ui")).defineCustomElements(n)}catch(e){console.warn("@multiversx/sdk-dapp-ui not found"+e)}}export{i as a,r as b};
|
|
2
|
+
//# sourceMappingURL=chunk-V3GRSQIB.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-IXO75QXR.mjs";var e=class n extends t{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_PENDING_TRANSACTIONS",uiTag:"mvx-pending-transactions-panel"});this.initialData=null;this.data=this.initialData}static getInstance(){return n.instance||(n.instance=new n),n.instance}isPendingTransactionsOpen(){return this.isOpen}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",this.closeUI.bind(this))}};export{e as a};
|
|
2
|
+
//# sourceMappingURL=chunk-VDAYN2HT.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-VDAYN2HT.mjs";async function i(a){let n=e.getInstance();return await n.openUI(),{manager:n,onClose:async({shouldCancelAction:t=!0}={})=>{n.closeUI(),t&&a?.cancelAction&&await a.cancelAction()}}}export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-VY62CH5W.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-N55JEIM6.mjs";import{b as n,c as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-N55JEIM6.mjs";import{b as n,c as o}from"./chunk-B5YOJH7H.mjs";import{s}from"./chunk-GWXW3E7L.mjs";function T({sessionId:t,transaction:e}){o({sessionId:t,transaction:e});let i=s().transactions[t].transactions,a=r(i);return a&&n({sessionId:t,status:a}),a}export{T as a};
|
|
2
|
+
//# sourceMappingURL=chunk-X3AX4PFE.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-G43Z243B.mjs";var i=String(o?.navigator?.userAgent),t=/^((?!chrome|android).)*safari/i.test(i),r=/firefox/i.test(i)&&/windows/i.test(i),n=t||r;export{t as a,n as b};
|
|
2
|
+
//# sourceMappingURL=chunk-YYVGE2ZU.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-ALBBGYHS.mjs";import{a as c}from"./chunk-I3MK6KZJ.mjs";var f=async({receiver:n,sender:i,tokenId:s})=>{let t=null,r=null;if(!s)return{senderLockedAccount:t,receiverLockedAccount:r};try{let o=(await l({tokenId:s}))?.assets?.lockedAccounts;if(!o)return{senderLockedAccount:t,receiverLockedAccount:r};for(let e in o)if(c(e)&&(i===e&&(t=e),n===e&&(r=e)),c(o[e])&&(i===o[e]&&(t=o[e]),n===o[e]&&(r=o[e])),t&&r)return{senderLockedAccount:t,receiverLockedAccount:r}}catch(a){console.error("Error getting token details",a)}return{senderLockedAccount:t,receiverLockedAccount:r}};export{f as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZAY5O7DE.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{s as e}from"./chunk-GWXW3E7L.mjs";import{b as o}from"./chunk-7VHTZYM2.mjs";import{a as i}from"./chunk-CKTFPRJS.mjs";var n="https://api.multiversx.com",s=60*60*24,a=5*60,d=t=>{let r=o(e());return{origin:t?.origin||i().origin,apiAddress:t?.apiAddress||r.apiAddress||n,expirySeconds:t?.expirySeconds||s,tokenExpirationToastWarningSeconds:t?.tokenExpirationToastWarningSeconds||a}};export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZG6EULI2.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-ZG6EULI2.mjs";var i=e=>{let t=a();return{origin:e?.origin??t.origin,blockHashShard:e?.blockHashShard,expirySeconds:e?.expirySeconds??t.expirySeconds,apiAddress:e?.apiAddress??t.apiAddress,tokenExpirationToastWarningSeconds:e?.tokenExpirationToastWarningSeconds??t.tokenExpirationToastWarningSeconds,extraInfo:e?.extraInfo??{},gatewayUrl:e?.gatewayUrl,extraRequestHeaders:e?.extraRequestHeaders??{}}};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZJM5FGLA.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as wt}from"./chunk-23KF5JXN.mjs";import{a as vt}from"./chunk-LTXWZGXK.mjs";import{a as O}from"./chunk-KHK7HHMR.mjs";import{a as Ct}from"./chunk-6UZHM5LW.mjs";import{a as xt}from"./chunk-DPWDWN6V.mjs";import{a as Et}from"./chunk-4WBXT7UF.mjs";import{a as Nt}from"./chunk-34SZ56FQ.mjs";import{a as At}from"./chunk-4YLMDHUH.mjs";import{a as q}from"./chunk-UKBPRQL6.mjs";import{a as S}from"./chunk-KDWLSBQB.mjs";import{a as Lt}from"./chunk-VRLS225Q.mjs";import{a as Bt}from"./chunk-4ODPAHHA.mjs";import{a as kt}from"./chunk-H3U7BN2F.mjs";import{b as k}from"./chunk-K23LCX54.mjs";import{a as Ft}from"./chunk-O4IUATY4.mjs";import{a as Pt}from"./chunk-MDVI45IV.mjs";import{a as Mt}from"./chunk-W42RP7KL.mjs";import{a as b}from"./chunk-AHRQWA37.mjs";import{a as mt}from"./chunk-LDFQUMVY.mjs";import{a as St}from"./chunk-7LP6TRTV.mjs";import{a as N}from"./chunk-NKAJB5TQ.mjs";import{a as F,f as It}from"./chunk-AXYA7YGQ.mjs";import{b as h,d as yt}from"./chunk-X5F7OCHT.mjs";import{k as ft,l as x,n as ht}from"./chunk-E2GGD7D4.mjs";import{b as Ot}from"./chunk-GKZ2BSWS.mjs";import{a as M}from"./chunk-HORSXVIV.mjs";import{a as Rt}from"./chunk-NAEWTITL.mjs";import{a as ut}from"./chunk-YVAL3LZF.mjs";import{a as L}from"./chunk-QTKK6OSJ.mjs";import{a as ct}from"./chunk-6ACLOUQ3.mjs";import{a as A}from"./chunk-G7GU37XI.mjs";import{a as rt}from"./chunk-YSCND2MX.mjs";import{a as Ut}from"./chunk-NJN53MJV.mjs";import{a as pt,b as Tt,g as dt,l as gt}from"./chunk-M6MN4RXG.mjs";import{b as lt}from"./chunk-NGM3AVCY.mjs";import{a as it,b as at,q as u,s as f}from"./chunk-5PNQWHBP.mjs";import{c as X,d as tt,f as et}from"./chunk-UERJ6AKK.mjs";import{b as y}from"./chunk-VNLGNNIL.mjs";import{b as I}from"./chunk-6JM4DPOH.mjs";import{b as ot,c as st,f as nt}from"./chunk-NTEMINYA.mjs";import{b as Dt}from"./chunk-UCRVRBTA.mjs";import{a as bt}from"./chunk-HZRV27MM.mjs";import{c as w}from"./chunk-3IMTI6JQ.mjs";import{b as z}from"./chunk-GGBMHKR4.mjs";import{a as E}from"./chunk-LJX4MW7B.mjs";import Y from"bignumber.js";import V from"lodash.isequal";var _t=1e4,P=class{constructor(){this.timeoutIntervals=new Map;this.successfulToastLifetime=_t;this.start=t=>{if(this.stop(t),this.successfulToastLifetime<=0)return;let e=setTimeout(()=>{B(t)},this.successfulToastLifetime);this.timeoutIntervals.set(t,e)};this.startWithCustomDuration=(t,e)=>{if(this.stop(t),e<=0)return;let s=setTimeout(()=>{R(t);let n=v[t];n?.()},e);this.timeoutIntervals.set(t,s)};this.stop=t=>{let e=this.timeoutIntervals.get(t);e&&(clearTimeout(e),this.timeoutIntervals.delete(t))}}init({successfulToastLifetime:t}){this.successfulToastLifetime=t??_t}destroy(){this.timeoutIntervals.forEach(t=>clearTimeout(t)),this.timeoutIntervals.clear()}};import Wt from"lodash.isequal";var Jt="NOTIFICATIONS_FEED_STORE_SUBSCRIBE",D=class o extends St{constructor(e){super({uiDataUpdateEvent:"OPEN_NOTIFICATIONS_FEED",uiTag:"mvx-notifications-feed"});this.initialData={pendingTransactions:[],historicTransactions:[]};this.store=e||u(),this.data={...this.initialData}}static getInstance(){return o.instance||(o.instance=new o),o.instance}isNotificationsFeedOpen(){return this.isOpen}async openNotificationsFeed(){d.getInstance().hideToasts(),await this.openUI(),await this.updateDataAndNotifications();let s=this.store.subscribe(async({toasts:n,transactions:i},{toasts:r,transactions:c})=>{(!Wt(r.transactionToasts,n.transactionToasts)||!Wt(c,i))&&await this.updateDataAndNotifications()});this.unsubscribeFunctions.set(Jt,[s]),this.eventBus?.publish("OPEN_NOTIFICATIONS_FEED"),await this.updateDataAndNotifications()}async handleCloseUI(){let e=d.getInstance();this.closeUI(),await e.showToasts()}async setupEventListeners(){this.eventBus&&(this.subscribeToEventBus("CLOSE_NOTIFICATIONS_FEED",this.handleCloseUI.bind(this)),this.subscribeToEventBus("CLEAR_NOTIFICATIONS_FEED_HISTORY",this.handleClearNotificationsFeedHistory.bind(this)))}async updateDataAndNotifications(){let{transactions:e}=this.store.getState(),{pendingTransactionToasts:s}=await O({});this.data.pendingTransactions=s,this.data.historicTransactions=await vt.getTransactionsHistory({transactionsSessions:e}),await this.updateNotificationsFeed()}handleClearNotificationsFeedHistory(){yt(),this.resetData(),this.updateNotificationsFeed()}async updateNotificationsFeed(){this.eventBus&&(this.eventBus.publish("PENDING_TRANSACTIONS_UPDATE",this.data.pendingTransactions),this.eventBus.publish("TRANSACTIONS_HISTORY_UPDATE",this.data.historicTransactions))}};var U=class{constructor(t){this.toastsElement=null;this.eventBus=null;this.isCreatingElement=!1;this.eventBusUnsubscribeFunctions=[];this.onCloseToast=t.onCloseToast,this.store=t.store||u(),this.notificationsFeedManager=t.notificationsFeedManager||D.getInstance()}async init(){await this.subscribeToEventBusNotifications()}showToasts(){this.eventBus?.publish("SHOW_TOAST_LIST",null)}hideToasts(){this.eventBus?.publish("HIDE_TOAST_LIST",null)}async publishTransactionToasts(t){if(this.notificationsFeedManager.isNotificationsFeedOpen()&&this.eventBus){this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",t),this.hideToasts();return}if(!this.eventBus){let e=await this.createToastListElement();if(!e)return;this.eventBus=await e.getEventBus()}this.eventBus?.publish("TRANSACTION_TOAST_DATA_UPDATE",t)}async publishCustomToasts(t){this.eventBus?.publish("CUSTOM_TOAST_DATA_UPDATE",t)}handleOpenNotificationsFeed(){this.notificationsFeedManager.openNotificationsFeed()}destroy(){this.eventBusUnsubscribeFunctions.forEach(t=>t()),this.eventBusUnsubscribeFunctions=[],this.notificationsFeedManager?.destroy()}async createToastListElement(){return this.toastsElement?this.toastsElement:(this.isCreatingElement||(this.isCreatingElement=!0,this.toastsElement=await bt.create({name:"mvx-toast-list"}),this.isCreatingElement=!1),this.toastsElement)}async subscribeToEventBusNotifications(){let t=await this.createToastListElement();if(t){if(this.eventBus=await t.getEventBus(),!this.eventBus)throw new Error("eventBus is not initialized");this.eventBus.subscribe("CLOSE_TOAST",this.onCloseToast),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("CLOSE_TOAST",this.onCloseToast)}),this.eventBus.subscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this))})}}};var d=class o{constructor(t){this.transactionToasts=[];this.customToasts=[];this.unsubscribeFromStore=()=>null;this.uiCoordinator=null;this.destroy(),this.store=t?.store||u(),this.lifetimeManager=t?.lifetimeManager??new P,this.uiCoordinator=t?.uiCoordinator??new U({onCloseToast:this.closeToast.bind(this)})}async init({successfulToastLifetime:t=5e3}={}){this.successfulToastLifetime=t,this.lifetimeManager.init({successfulToastLifetime:t}),await this.updateTransactionToastsList(),await this.updateCustomToastList(),await this.uiCoordinator?.init(),this.unsubscribeFromStore=this.store.subscribe(async({toasts:e,transactions:s},{toasts:n,transactions:i})=>{let r=!V(n.transactionToasts,e.transactionToasts),c=!V(i,s);(r||c)&&await this.updateTransactionToastsList({skipFetchingTransactions:c}),!V(n.customToasts,e.customToasts)&&await this.updateCustomToastList()})}static getInstance(){return o.instance||(o.instance=new o),o.instance}handleCompletedTransaction(t){let{transactions:e}=this.store.getState(),s=e[t];if(!s)return!1;let{status:n}=s,i=ht(n),r=x(n),c=ft(n),a=r||c||i;return a?(this.successfulToastLifetime&&this.lifetimeManager.start(t),a):(this.lifetimeManager.stop(t),a)}async createTransactionToast(t,e){let s=Gt({toastId:t,totalDuration:e});return this.handleCompletedTransaction(t),await this.updateTransactionToastsList(),s}async createCustomToast(t){let e=W(t);return await this.updateCustomToastList(),e}async updateTransactionToastsList(t){let e=this.store.getState(),{toasts:s}=e,{pendingTransactionToasts:n,completedTransactionToasts:i}=await O({skipFetchingTransactions:t?.skipFetchingTransactions,store:e});this.transactionToasts=[...n,...i];for(let r of s.transactionToasts)this.handleCompletedTransaction(r.toastId);await this.publishTransactionToasts()}async updateCustomToastList(){let{toasts:t}=this.store.getState();this.customToasts=[];for(let e of t.customToasts){let n="message"in e?{...e}:{...e,instantiateToastElement:_[e.toastId]};this.customToasts.push(n),e.duration&&this.lifetimeManager.startWithCustomDuration(e.toastId,e.duration)}await this.uiCoordinator?.publishCustomToasts(this.customToasts)}handleTransactionToastClose(t){return this.handleCompletedTransaction(t)?(B(t),!0):!1}async showToasts(){this.uiCoordinator?.showToasts(),await this.updateCustomToastList(),await this.updateTransactionToastsList()}hideToasts(){this.uiCoordinator?.hideToasts()}closeToast(t){if(this.customToasts.find(s=>s.toastId===t)){this.lifetimeManager.stop(t);let s=v[t];return s?.(),R(t),!0}return this.handleTransactionToastClose(t)}async publishTransactionToasts(){await this.uiCoordinator?.publishTransactionToasts(this.transactionToasts)}destroy(){this.unsubscribeFromStore(),this.lifetimeManager?.destroy(),this.uiCoordinator?.destroy(),Ht()}};var H=class o{constructor(){this.store=u();this.warningLogoutTimeoutRef=null;this.actualLogoutTimeoutRef=null;this.plannedLogoutTimeoutRef=null;this.plannedLogoutKey=null;this.init=async()=>{if(!this.shouldStart())return;let t=this.store.getState(),e=y(t),{isExpired:s}=L(e?.nativeAuthToken);s?C().logout():this.addPlannedLogout()};this.stop=()=>{clearTimeout(this.warningLogoutTimeoutRef??0),clearTimeout(this.plannedLogoutTimeoutRef??0),clearTimeout(this.actualLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=null,this.plannedLogoutTimeoutRef=null,this.actualLogoutTimeoutRef=null,this.plannedLogoutKey=null};this.shouldStart=()=>{let t=this.store.getState(),e=y(t),s=et(t);return!!(e?.nativeAuthToken&&s)};this.addPlannedLogout=()=>{let t=C(),e=X(this.store.getState()),s=t.getType()===E.webview;if(!e||s)return;this.addLogoutWarning();let n=y(this.store.getState()),{secondsUntilExpires:i,expiresAt:r}=L(n?.nativeAuthToken),c=new Y(String(i)),a=`${e}_${r}`,m=this.plannedLogoutKey===a;if(!(i&&c.isGreaterThan(0))||m)return;this.plannedLogoutKey=a,clearTimeout(this.plannedLogoutTimeoutRef??0);let T=c.times(1e3);this.actualLogoutTimeoutRef=setTimeout(()=>{d.getInstance().createCustomToast({toastId:"native-auth-logout",iconClassName:"warning",title:"Logging out",icon:"times",message:"Your session has expired!"}),this.actualLogoutTimeoutRef=null},T.toNumber()-3e3),this.plannedLogoutTimeoutRef=setTimeout(()=>{t.logout(),this.plannedLogoutTimeoutRef=null,this.plannedLogoutKey=null},T.toNumber())};this.addLogoutWarning=()=>{if(this.warningLogoutTimeoutRef)return;let t=I(this.store.getState()),e=y(this.store.getState()),{secondsUntilExpires:s}=L(e?.nativeAuthToken),n=new Y(String(s)),i=n.times(1e3);if(!s||n.isLessThanOrEqualTo(0)||!t?.tokenExpirationToastWarningSeconds)return;let c=new Y(t?.tokenExpirationToastWarningSeconds??0).times(1e3),a=n.times(1e3).minus(c),m=Ct(i.toNumber()),l=a.isLessThanOrEqualTo(0)?0:a.toNumber();clearTimeout(this.warningLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=setTimeout(()=>{d.getInstance().createCustomToast({toastId:"native-auth-expired",iconClassName:"warning",title:"Session Expiration Warning",icon:"hourglass",message:`Your session will expire in ${m}!`}),this.warningLogoutTimeoutRef=null},l)}}static getInstance(){return o.instance||(o.instance=new o),o.instance}};var G={};async function Xt({serverTransaction:o,sessionId:t,isSequential:e}){let{hash:s,status:n,results:i,invalidTransaction:r,hasStatusChanged:c}=o;try{if(G[s]>30){h({sessionId:t,status:"timedOut"}),await S({sessionId:t,status:"timedOut"});return}if(r&&!e||n==="sent"){G[s]=G[s]?G[s]+1:1;return}if(e&&!n){let m=q({sessionId:t,transaction:o});await S({sessionId:t,status:m});return}if(c){let m=q({sessionId:t,transaction:o});await S({sessionId:t,status:m})}x(n)&&await At({sessionId:t,hash:s,results:i})}catch(a){console.error(a),h({sessionId:t,status:"timedOut"}),await S({sessionId:t,status:"timedOut"})}}async function $t({sessionId:o,transactionBatch:t,isSequential:e}){try{if(t==null)return;let s=Et(),n=Lt(t),i=await wt(n);for(let p of i)await Xt({serverTransaction:p,sessionId:o,isSequential:e});if(!i.every(p=>p.status!=="pending"))return;s&&await $();let{transactions:c}=f(),a=c[o];if(a.transactions.every(p=>p.status==="success"))return h({sessionId:o,status:"success"});if(a.transactions.some(p=>p.status==="fail"))return h({sessionId:o,status:"fail"});if(a.transactions.every(p=>p.status==="not executed"))return h({sessionId:o,status:"invalid"})}catch(s){console.error(s)}}async function Kt(){let o=lt(f());if(Object.keys(o).length>0)for(let[t,{transactions:e}]of Object.entries(o))await $t({sessionId:t,transactionBatch:e})}async function K(){let o=u(),t=Nt(),e=null,s=null,n=tt(o.getState())?.timestamp,i=()=>{Kt()},r=()=>{e??=setInterval(i,t)},c=()=>{e&&(clearInterval(e),e=null)},a=()=>{c();let p=o.subscribe(({account:{websocketEvent:g}})=>{g?.message&&n!==g.timestamp&&(n=g.timestamp,i())});w.set("websocketEventReceived",p)},m=()=>{z.status!=="not_initialized"||s||(s=setInterval(()=>{z.status==="completed"&&(clearInterval(s),s=null,a())},1e3))};i();let l=()=>{c(),s&&(clearInterval(s),s=null)},T=o.subscribe(({account:{address:p},config:{websocketStatus:g}},Yt)=>{if(Yt.config.websocketStatus!==g)switch(g){case"completed":a();break;case"pending":r(),m();break;default:p?r():l();break}});return w.set("websocketStatusChanged",T),w.set("websocketEventReceived",l),{stopTransactionsTracking:l}}async function Z({address:o,provider:t,apiAddress:e}){let s=await A({address:o,baseURL:e});if(!s)throw new Error("Account not found");Ot({address:o,providerType:t.getType()});let n={...s,username:M(s.username),nonce:N(s)};F(n),await k(o),K(),s.shard!=null&&await xt({shard:Number(s.shard),apiAddress:e})}async function te(o){let{network:{apiAddress:t}}=b();await o.login();let e=await o.getAddress();if(!e)throw new Error("Address not found");return await Z({address:e,provider:o,apiAddress:t}),{address:e}}async function ee({provider:o,nativeAuthConfig:t,token:e}){let{network:{apiAddress:s}}=b(),n=ut(t),i=e;i||(i=await n.initialize({noCache:!0}));let{address:r,signature:c,...a}=await o.login({token:i});if(!r)return console.warn("Login cancelled."),null;if(!c)return console.error("Failed to sign login token"),null;let l=ct(a?.accessToken)?a.accessToken:n.getToken({address:r,token:i,signature:c});at({loginToken:i,signature:c,nativeAuthToken:l});let T=await Ft({loginToken:i,extraInfoData:{multisig:a?.multisig,impersonate:a?.impersonate},address:r});return await Z({address:T,provider:o,apiAddress:s}),{address:T,signature:c}}async function jt(o,t){let e=I(f());if(e)return await ee({provider:o,nativeAuthConfig:e,token:t?.token});let{address:s}=await te(o);return await k(s),K(),{address:s,signature:""}}var J={error:{title:"Error when signing".toString(),iconClassName:"danger",toastId:`${Tt}-${Date.now()}`},warning:{title:"Signing canceled".toString(),iconClassName:"warning",toastId:`${pt}-${Date.now()}`}},oe={extensionResponse:"Unable to sign transactions","Transaction canceled":"Transaction canceled","cancelled by user":"Transaction signing cancelled by user","denied by the user":"Transaction signing denied by the user"},se=o=>{for(let[t,e]of Object.entries(oe))if(o.includes(t))return e;return"Error when signing"};function Q(o,t="error"){let e=o?.message,s=se(e),i=s!=="Error when signing"?"warning":t,r=Object.keys(J).includes(i)?J[i]:J.error,{toastId:c,iconClassName:a,title:m}=r;return W({toastId:c,duration:1e4,icon:"times",iconClassName:a,message:s,title:m}),s}async function zt({provider:o,transactions:t,options:e={}}){await $();let{isGuarded:s,activeGuardianAddress:n,nonce:i}=Rt(),r=o.getType()===E.ledger,c=Bt({latestNonce:i,transactions:t}),a=n&&s&&!e.skipGuardian?c?.map(l=>(l.version=ot.withTxOptions().valueOf(),l.options=nt.withOptions({guarded:!0,...r?{hashSign:!0}:{}}).valueOf(),l.guardian=st.newFromBech32(n),l)):c,m=await o.signTransactions(a)??[];return It(i+m.length),m}var j=class{constructor(t){this._isLoggingOut=!1;this.provider=t}init(){return this.provider.init()}async login(t){let e=await jt(this.provider,t);return it(this.provider.getType()),qt(this),H.getInstance().init(),e}isInitialized(){return this.provider.isInitialized()}async logout(t={shouldBroadcastLogoutAcrossTabs:!0}){if(this._isLoggingOut)return console.warn("Logout already in progress"),!1;this._isLoggingOut=!0;let e=await kt({provider:this.provider,options:t});return this._isLoggingOut=!1,e}getType(){return this.provider.getType()}getProvider(){return this.provider}async signTransactions(t,e){try{return await zt({provider:this.provider,transactions:t,options:e})}catch(s){let n=Q(s);throw new Error(n)}}async signMessage(t,e){try{return await Mt({provider:this.provider,message:t,options:e})}catch(s){let n=Q(s,"warning");throw new Error(n)}}async verifyMessage(t){return await Pt(t)}cancelLogin(){this.provider.cancelLogin?.()}};var Vt=null;function qt(o){Vt=o}function C(){return Vt||new j(Dt)}var ne=async()=>{try{let o=mt(),{network:t}=b();try{let e=await A({address:o,baseURL:t.apiAddress});if(e!=null){let s={...e,username:M(e.username),nonce:N(e)};return F(s),s}}catch(e){console.error("Failed getting account ",e)}}catch(o){console.error("Failed getting address ",o)}return null};async function $(){let o=C();if(o==null)throw"Provider not initialized";try{if(!o.init)throw"Current provider does not have init() function";return await o.init()?await ne():void 0}catch(t){console.error("Failed initializing provider ",t)}}var _={},v={},ie=(o,t)=>{u().setState(({toasts:e})=>{let s=e.customToasts.length>0?Math.max(...e.customToasts.map(a=>parseInt(a.toastId.split("-").pop()??"0"))):0,n=t??`custom-toast-${s+1}`,i=e.customToasts.findIndex(a=>a.toastId===n),r={...o,toastId:n};if(i!==-1){e.customToasts[i]=r;return}e.customToasts.push({...r,toastId:n})},!1,{type:"addCustomToast",payload:{value:{customToast:o,currentToastId:t}}})},R=o=>{u().setState(({toasts:t})=>{t.customToasts=t.customToasts.filter(e=>e.toastId!==o)},!1,{type:"removeCustomToast",payload:{value:o}})},Ht=()=>{u().setState(({toasts:o})=>{o.customToasts=[]},!1,{type:"removeAllCustomToasts",payload:{value:null}})},ln=()=>{u().setState(({toasts:o})=>{o.transactionToasts=[]})},Gt=({toastId:o,totalDuration:t})=>{let e="";return u().setState(({toasts:s})=>{let n=s.transactionToasts.length>0?Math.max(...s.transactionToasts.map(i=>parseInt(i.toastId.split("-").pop()??"0"))):0;e=o??`transaction-toast-${n+1}`,s.transactionToasts.push({startTime:rt(),endTime:Ut(t),toastId:e})},!1,"addTransactionToast"),e},B=o=>{u().setState(({toasts:t})=>{t.transactionToasts=t.transactionToasts.filter(e=>e.toastId!==o)},!1,"removeTransactionToast"),delete v[o],delete _[o]},W=o=>{let{toasts:t}=u().getState(),e=t.customToasts.length>0?Math.max(...t.customToasts.map(n=>parseInt(n.toastId.split("-").pop()??"0"))):0,s=o.toastId||`custom-toast-${e+1}`;return o.onClose&&(v[s]=o.onClose),o.instantiateToastElement?(_[s]=o.instantiateToastElement,u().setState(({toasts:n})=>{let i=n.customToasts.findIndex(a=>a.toastId===s),r={...o,instantiateToastElement:null,toastId:s};i!==-1?n.customToasts[i]=r:n.customToasts.push(r)},!1,"createCustomToast"),s):(ie(o,s),s)};export{_ as a,v as b,ie as c,R as d,Ht as e,ln as f,Gt as g,B as h,W as i,P as j,D as k,U as l,d as m,H as n,$t as o,Kt as p,K as q,Z as r,jt as s,Q as t,zt as u,j as v,qt as w,C as x,$ as y};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as wt}from"./chunk-FFGJMR4Q.mjs";import{a as vt}from"./chunk-HKVAAOC4.mjs";import{a as O}from"./chunk-2UPWFRCA.mjs";import{a as Ct}from"./chunk-6UZHM5LW.mjs";import{a as xt}from"./chunk-NO4FZ4M3.mjs";import{a as Et}from"./chunk-E5OMXZT7.mjs";import{a as Nt}from"./chunk-WJJTA23D.mjs";import{a as At}from"./chunk-JM3JEGRV.mjs";import{a as q}from"./chunk-X3AX4PFE.mjs";import{a as S}from"./chunk-KDWLSBQB.mjs";import{a as Lt}from"./chunk-VRLS225Q.mjs";import{a as Bt}from"./chunk-4ODPAHHA.mjs";import{a as kt}from"./chunk-2ZW4LVVR.mjs";import{b as k}from"./chunk-PCGP4VVW.mjs";import{a as Ft}from"./chunk-7BZQYV6D.mjs";import{a as Pt}from"./chunk-MDVI45IV.mjs";import{a as Mt}from"./chunk-2WAT3RZ3.mjs";import{a as b}from"./chunk-6FRXGPOE.mjs";import{a as mt}from"./chunk-JFIQXGJ5.mjs";import{a as St}from"./chunk-IXO75QXR.mjs";import{a as N}from"./chunk-GDMANS7S.mjs";import{a as F,f as It}from"./chunk-O462QL7Q.mjs";import{b as h,d as yt}from"./chunk-B5YOJH7H.mjs";import{k as ft,l as x,n as ht}from"./chunk-E2GGD7D4.mjs";import{b as Ot}from"./chunk-MNIS55JL.mjs";import{a as M}from"./chunk-HORSXVIV.mjs";import{a as Rt}from"./chunk-SJLTVGKD.mjs";import{a as ut}from"./chunk-643FDBLR.mjs";import{a as L}from"./chunk-QTKK6OSJ.mjs";import{a as ct}from"./chunk-6ACLOUQ3.mjs";import{a as A}from"./chunk-G7GU37XI.mjs";import{a as rt}from"./chunk-YSCND2MX.mjs";import{a as Ut}from"./chunk-NJN53MJV.mjs";import{a as pt,b as Tt,g as dt,l as gt}from"./chunk-M6MN4RXG.mjs";import{b as lt}from"./chunk-NGM3AVCY.mjs";import{a as it,b as at,q as u,s as f}from"./chunk-GWXW3E7L.mjs";import{c as X,d as tt,f as et}from"./chunk-UERJ6AKK.mjs";import{b as y}from"./chunk-VNLGNNIL.mjs";import{b as I}from"./chunk-6JM4DPOH.mjs";import{b as ot,c as st,f as nt}from"./chunk-NTEMINYA.mjs";import{b as Dt}from"./chunk-UCRVRBTA.mjs";import{a as bt}from"./chunk-7UUDW64Y.mjs";import{c as w}from"./chunk-4ZAZCOJD.mjs";import{b as z}from"./chunk-GGBMHKR4.mjs";import{a as E}from"./chunk-LJX4MW7B.mjs";import Y from"bignumber.js";import V from"lodash.isequal";var _t=1e4,P=class{constructor(){this.timeoutIntervals=new Map;this.successfulToastLifetime=_t;this.start=t=>{if(this.stop(t),this.successfulToastLifetime<=0)return;let e=setTimeout(()=>{B(t)},this.successfulToastLifetime);this.timeoutIntervals.set(t,e)};this.startWithCustomDuration=(t,e)=>{if(this.stop(t),e<=0)return;let s=setTimeout(()=>{R(t);let n=v[t];n?.()},e);this.timeoutIntervals.set(t,s)};this.stop=t=>{let e=this.timeoutIntervals.get(t);e&&(clearTimeout(e),this.timeoutIntervals.delete(t))}}init({successfulToastLifetime:t}){this.successfulToastLifetime=t??_t}destroy(){this.timeoutIntervals.forEach(t=>clearTimeout(t)),this.timeoutIntervals.clear()}};import Wt from"lodash.isequal";var Jt="NOTIFICATIONS_FEED_STORE_SUBSCRIBE",D=class o extends St{constructor(e){super({uiDataUpdateEvent:"OPEN_NOTIFICATIONS_FEED",uiTag:"mvx-notifications-feed"});this.initialData={pendingTransactions:[],historicTransactions:[]};this.store=e||u(),this.data={...this.initialData}}static getInstance(){return o.instance||(o.instance=new o),o.instance}isNotificationsFeedOpen(){return this.isOpen}async openNotificationsFeed(){d.getInstance().hideToasts(),await this.openUI(),await this.updateDataAndNotifications();let s=this.store.subscribe(async({toasts:n,transactions:i},{toasts:r,transactions:c})=>{(!Wt(r.transactionToasts,n.transactionToasts)||!Wt(c,i))&&await this.updateDataAndNotifications()});this.unsubscribeFunctions.set(Jt,[s]),this.eventBus?.publish("OPEN_NOTIFICATIONS_FEED"),await this.updateDataAndNotifications()}async handleCloseUI(){let e=d.getInstance();this.closeUI(),await e.showToasts()}async setupEventListeners(){this.eventBus&&(this.subscribeToEventBus("CLOSE_NOTIFICATIONS_FEED",this.handleCloseUI.bind(this)),this.subscribeToEventBus("CLEAR_NOTIFICATIONS_FEED_HISTORY",this.handleClearNotificationsFeedHistory.bind(this)))}async updateDataAndNotifications(){let{transactions:e}=this.store.getState(),{pendingTransactionToasts:s}=await O({});this.data.pendingTransactions=s,this.data.historicTransactions=await vt.getTransactionsHistory({transactionsSessions:e}),await this.updateNotificationsFeed()}handleClearNotificationsFeedHistory(){yt(),this.resetData(),this.updateNotificationsFeed()}async updateNotificationsFeed(){this.eventBus&&(this.eventBus.publish("PENDING_TRANSACTIONS_UPDATE",this.data.pendingTransactions),this.eventBus.publish("TRANSACTIONS_HISTORY_UPDATE",this.data.historicTransactions))}};var U=class{constructor(t){this.toastsElement=null;this.eventBus=null;this.isCreatingElement=!1;this.eventBusUnsubscribeFunctions=[];this.onCloseToast=t.onCloseToast,this.store=t.store||u(),this.notificationsFeedManager=t.notificationsFeedManager||D.getInstance()}async init(){await this.subscribeToEventBusNotifications()}showToasts(){this.eventBus?.publish("SHOW_TOAST_LIST",null)}hideToasts(){this.eventBus?.publish("HIDE_TOAST_LIST",null)}async publishTransactionToasts(t){if(this.notificationsFeedManager.isNotificationsFeedOpen()&&this.eventBus){this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",t),this.hideToasts();return}if(!this.eventBus){let e=await this.createToastListElement();if(!e)return;this.eventBus=await e.getEventBus()}this.eventBus?.publish("TRANSACTION_TOAST_DATA_UPDATE",t)}async publishCustomToasts(t){this.eventBus?.publish("CUSTOM_TOAST_DATA_UPDATE",t)}handleOpenNotificationsFeed(){this.notificationsFeedManager.openNotificationsFeed()}destroy(){this.eventBusUnsubscribeFunctions.forEach(t=>t()),this.eventBusUnsubscribeFunctions=[],this.notificationsFeedManager?.destroy()}async createToastListElement(){return this.toastsElement?this.toastsElement:(this.isCreatingElement||(this.isCreatingElement=!0,this.toastsElement=await bt.create({name:"mvx-toast-list"}),this.isCreatingElement=!1),this.toastsElement)}async subscribeToEventBusNotifications(){let t=await this.createToastListElement();if(t){if(this.eventBus=await t.getEventBus(),!this.eventBus)throw new Error("eventBus is not initialized");this.eventBus.subscribe("CLOSE_TOAST",this.onCloseToast),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("CLOSE_TOAST",this.onCloseToast)}),this.eventBus.subscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this))})}}};var d=class o{constructor(t){this.transactionToasts=[];this.customToasts=[];this.unsubscribeFromStore=()=>null;this.uiCoordinator=null;this.destroy(),this.store=t?.store||u(),this.lifetimeManager=t?.lifetimeManager??new P,this.uiCoordinator=t?.uiCoordinator??new U({onCloseToast:this.closeToast.bind(this)})}async init({successfulToastLifetime:t=5e3}={}){this.successfulToastLifetime=t,this.lifetimeManager.init({successfulToastLifetime:t}),await this.updateTransactionToastsList(),await this.updateCustomToastList(),await this.uiCoordinator?.init(),this.unsubscribeFromStore=this.store.subscribe(async({toasts:e,transactions:s},{toasts:n,transactions:i})=>{let r=!V(n.transactionToasts,e.transactionToasts),c=!V(i,s);(r||c)&&await this.updateTransactionToastsList({skipFetchingTransactions:c}),!V(n.customToasts,e.customToasts)&&await this.updateCustomToastList()})}static getInstance(){return o.instance||(o.instance=new o),o.instance}handleCompletedTransaction(t){let{transactions:e}=this.store.getState(),s=e[t];if(!s)return!1;let{status:n}=s,i=ht(n),r=x(n),c=ft(n),a=r||c||i;return a?(this.successfulToastLifetime&&this.lifetimeManager.start(t),a):(this.lifetimeManager.stop(t),a)}async createTransactionToast(t,e){let s=Gt({toastId:t,totalDuration:e});return this.handleCompletedTransaction(t),await this.updateTransactionToastsList(),s}async createCustomToast(t){let e=W(t);return await this.updateCustomToastList(),e}async updateTransactionToastsList(t){let e=this.store.getState(),{toasts:s}=e,{pendingTransactionToasts:n,completedTransactionToasts:i}=await O({skipFetchingTransactions:t?.skipFetchingTransactions,store:e});this.transactionToasts=[...n,...i];for(let r of s.transactionToasts)this.handleCompletedTransaction(r.toastId);await this.publishTransactionToasts()}async updateCustomToastList(){let{toasts:t}=this.store.getState();this.customToasts=[];for(let e of t.customToasts){let n="message"in e?{...e}:{...e,instantiateToastElement:_[e.toastId]};this.customToasts.push(n),e.duration&&this.lifetimeManager.startWithCustomDuration(e.toastId,e.duration)}await this.uiCoordinator?.publishCustomToasts(this.customToasts)}handleTransactionToastClose(t){return this.handleCompletedTransaction(t)?(B(t),!0):!1}async showToasts(){this.uiCoordinator?.showToasts(),await this.updateCustomToastList(),await this.updateTransactionToastsList()}hideToasts(){this.uiCoordinator?.hideToasts()}closeToast(t){if(this.customToasts.find(s=>s.toastId===t)){this.lifetimeManager.stop(t);let s=v[t];return s?.(),R(t),!0}return this.handleTransactionToastClose(t)}async publishTransactionToasts(){await this.uiCoordinator?.publishTransactionToasts(this.transactionToasts)}destroy(){this.unsubscribeFromStore(),this.lifetimeManager?.destroy(),this.uiCoordinator?.destroy(),Ht()}};var H=class o{constructor(){this.store=u();this.warningLogoutTimeoutRef=null;this.actualLogoutTimeoutRef=null;this.plannedLogoutTimeoutRef=null;this.plannedLogoutKey=null;this.init=async()=>{if(!this.shouldStart())return;let t=this.store.getState(),e=y(t),{isExpired:s}=L(e?.nativeAuthToken);s?C().logout():this.addPlannedLogout()};this.stop=()=>{clearTimeout(this.warningLogoutTimeoutRef??0),clearTimeout(this.plannedLogoutTimeoutRef??0),clearTimeout(this.actualLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=null,this.plannedLogoutTimeoutRef=null,this.actualLogoutTimeoutRef=null,this.plannedLogoutKey=null};this.shouldStart=()=>{let t=this.store.getState(),e=y(t),s=et(t);return!!(e?.nativeAuthToken&&s)};this.addPlannedLogout=()=>{let t=C(),e=X(this.store.getState()),s=t.getType()===E.webview;if(!e||s)return;this.addLogoutWarning();let n=y(this.store.getState()),{secondsUntilExpires:i,expiresAt:r}=L(n?.nativeAuthToken),c=new Y(String(i)),a=`${e}_${r}`,m=this.plannedLogoutKey===a;if(!(i&&c.isGreaterThan(0))||m)return;this.plannedLogoutKey=a,clearTimeout(this.plannedLogoutTimeoutRef??0);let T=c.times(1e3);this.actualLogoutTimeoutRef=setTimeout(()=>{d.getInstance().createCustomToast({toastId:"native-auth-logout",iconClassName:"warning",title:"Logging out",icon:"times",message:"Your session has expired!"}),this.actualLogoutTimeoutRef=null},T.toNumber()-3e3),this.plannedLogoutTimeoutRef=setTimeout(()=>{t.logout(),this.plannedLogoutTimeoutRef=null,this.plannedLogoutKey=null},T.toNumber())};this.addLogoutWarning=()=>{if(this.warningLogoutTimeoutRef)return;let t=I(this.store.getState()),e=y(this.store.getState()),{secondsUntilExpires:s}=L(e?.nativeAuthToken),n=new Y(String(s)),i=n.times(1e3);if(!s||n.isLessThanOrEqualTo(0)||!t?.tokenExpirationToastWarningSeconds)return;let c=new Y(t?.tokenExpirationToastWarningSeconds??0).times(1e3),a=n.times(1e3).minus(c),m=Ct(i.toNumber()),l=a.isLessThanOrEqualTo(0)?0:a.toNumber();clearTimeout(this.warningLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=setTimeout(()=>{d.getInstance().createCustomToast({toastId:"native-auth-expired",iconClassName:"warning",title:"Session Expiration Warning",icon:"hourglass",message:`Your session will expire in ${m}!`}),this.warningLogoutTimeoutRef=null},l)}}static getInstance(){return o.instance||(o.instance=new o),o.instance}};var G={};async function Xt({serverTransaction:o,sessionId:t,isSequential:e}){let{hash:s,status:n,results:i,invalidTransaction:r,hasStatusChanged:c}=o;try{if(G[s]>30){h({sessionId:t,status:"timedOut"}),await S({sessionId:t,status:"timedOut"});return}if(r&&!e||n==="sent"){G[s]=G[s]?G[s]+1:1;return}if(e&&!n){let m=q({sessionId:t,transaction:o});await S({sessionId:t,status:m});return}if(c){let m=q({sessionId:t,transaction:o});await S({sessionId:t,status:m})}x(n)&&await At({sessionId:t,hash:s,results:i})}catch(a){console.error(a),h({sessionId:t,status:"timedOut"}),await S({sessionId:t,status:"timedOut"})}}async function $t({sessionId:o,transactionBatch:t,isSequential:e}){try{if(t==null)return;let s=Et(),n=Lt(t),i=await wt(n);for(let p of i)await Xt({serverTransaction:p,sessionId:o,isSequential:e});if(!i.every(p=>p.status!=="pending"))return;s&&await $();let{transactions:c}=f(),a=c[o];if(a.transactions.every(p=>p.status==="success"))return h({sessionId:o,status:"success"});if(a.transactions.some(p=>p.status==="fail"))return h({sessionId:o,status:"fail"});if(a.transactions.every(p=>p.status==="not executed"))return h({sessionId:o,status:"invalid"})}catch(s){console.error(s)}}async function Kt(){let o=lt(f());if(Object.keys(o).length>0)for(let[t,{transactions:e}]of Object.entries(o))await $t({sessionId:t,transactionBatch:e})}async function K(){let o=u(),t=Nt(),e=null,s=null,n=tt(o.getState())?.timestamp,i=()=>{Kt()},r=()=>{e??=setInterval(i,t)},c=()=>{e&&(clearInterval(e),e=null)},a=()=>{c();let p=o.subscribe(({account:{websocketEvent:g}})=>{g?.message&&n!==g.timestamp&&(n=g.timestamp,i())});w.set("websocketEventReceived",p)},m=()=>{z.status!=="not_initialized"||s||(s=setInterval(()=>{z.status==="completed"&&(clearInterval(s),s=null,a())},1e3))};i();let l=()=>{c(),s&&(clearInterval(s),s=null)},T=o.subscribe(({account:{address:p},config:{websocketStatus:g}},Yt)=>{if(Yt.config.websocketStatus!==g)switch(g){case"completed":a();break;case"pending":r(),m();break;default:p?r():l();break}});return w.set("websocketStatusChanged",T),w.set("websocketEventReceived",l),{stopTransactionsTracking:l}}async function Z({address:o,provider:t,apiAddress:e}){let s=await A({address:o,baseURL:e});if(!s)throw new Error("Account not found");Ot({address:o,providerType:t.getType()});let n={...s,username:M(s.username),nonce:N(s)};F(n),await k(o),K(),s.shard!=null&&await xt({shard:Number(s.shard),apiAddress:e})}async function te(o){let{network:{apiAddress:t}}=b();await o.login();let e=await o.getAddress();if(!e)throw new Error("Address not found");return await Z({address:e,provider:o,apiAddress:t}),{address:e}}async function ee({provider:o,nativeAuthConfig:t,token:e}){let{network:{apiAddress:s}}=b(),n=ut(t),i=e;i||(i=await n.initialize({noCache:!0}));let{address:r,signature:c,...a}=await o.login({token:i});if(!r)return console.warn("Login cancelled."),null;if(!c)return console.error("Failed to sign login token"),null;let l=ct(a?.accessToken)?a.accessToken:n.getToken({address:r,token:i,signature:c});at({loginToken:i,signature:c,nativeAuthToken:l});let T=await Ft({loginToken:i,extraInfoData:{multisig:a?.multisig,impersonate:a?.impersonate},address:r});return await Z({address:T,provider:o,apiAddress:s}),{address:T,signature:c}}async function jt(o,t){let e=I(f());if(e)return await ee({provider:o,nativeAuthConfig:e,token:t?.token});let{address:s}=await te(o);return await k(s),K(),{address:s,signature:""}}var J={error:{title:"Error when signing".toString(),iconClassName:"danger",toastId:`${Tt}-${Date.now()}`},warning:{title:"Signing canceled".toString(),iconClassName:"warning",toastId:`${pt}-${Date.now()}`}},oe={extensionResponse:"Unable to sign transactions","Transaction canceled":"Transaction canceled","cancelled by user":"Transaction signing cancelled by user","denied by the user":"Transaction signing denied by the user"},se=o=>{for(let[t,e]of Object.entries(oe))if(o.includes(t))return e;return"Error when signing"};function Q(o,t="error"){let e=o?.message,s=se(e),i=s!=="Error when signing"?"warning":t,r=Object.keys(J).includes(i)?J[i]:J.error,{toastId:c,iconClassName:a,title:m}=r;return W({toastId:c,duration:1e4,icon:"times",iconClassName:a,message:s,title:m}),s}async function zt({provider:o,transactions:t,options:e={}}){await $();let{isGuarded:s,activeGuardianAddress:n,nonce:i}=Rt(),r=o.getType()===E.ledger,c=Bt({latestNonce:i,transactions:t}),a=n&&s&&!e.skipGuardian?c?.map(l=>(l.version=ot.withTxOptions().valueOf(),l.options=nt.withOptions({guarded:!0,...r?{hashSign:!0}:{}}).valueOf(),l.guardian=st.newFromBech32(n),l)):c,m=await o.signTransactions(a)??[];return It(i+m.length),m}var j=class{constructor(t){this._isLoggingOut=!1;this.provider=t}init(){return this.provider.init()}async login(t){let e=await jt(this.provider,t);return it(this.provider.getType()),qt(this),H.getInstance().init(),e}isInitialized(){return this.provider.isInitialized()}async logout(t={shouldBroadcastLogoutAcrossTabs:!0}){if(this._isLoggingOut)return console.warn("Logout already in progress"),!1;this._isLoggingOut=!0;let e=await kt({provider:this.provider,options:t});return this._isLoggingOut=!1,e}getType(){return this.provider.getType()}getProvider(){return this.provider}async signTransactions(t,e){try{return await zt({provider:this.provider,transactions:t,options:e})}catch(s){let n=Q(s);throw new Error(n)}}async signMessage(t,e){try{return await Mt({provider:this.provider,message:t,options:e})}catch(s){let n=Q(s,"warning");throw new Error(n)}}async verifyMessage(t){return await Pt(t)}cancelLogin(){this.provider.cancelLogin?.()}};var Vt=null;function qt(o){Vt=o}function C(){return Vt||new j(Dt)}var ne=async()=>{try{let o=mt(),{network:t}=b();try{let e=await A({address:o,baseURL:t.apiAddress});if(e!=null){let s={...e,username:M(e.username),nonce:N(e)};return F(s),s}}catch(e){console.error("Failed getting account ",e)}}catch(o){console.error("Failed getting address ",o)}return null};async function $(){let o=C();if(o==null)throw"Provider not initialized";try{if(!o.init)throw"Current provider does not have init() function";return await o.init()?await ne():void 0}catch(t){console.error("Failed initializing provider ",t)}}var _={},v={},ie=(o,t)=>{u().setState(({toasts:e})=>{let s=e.customToasts.length>0?Math.max(...e.customToasts.map(a=>parseInt(a.toastId.split("-").pop()??"0"))):0,n=t??`custom-toast-${s+1}`,i=e.customToasts.findIndex(a=>a.toastId===n),r={...o,toastId:n};if(i!==-1){e.customToasts[i]=r;return}e.customToasts.push({...r,toastId:n})},!1,{type:"addCustomToast",payload:{value:{customToast:o,currentToastId:t}}})},R=o=>{u().setState(({toasts:t})=>{t.customToasts=t.customToasts.filter(e=>e.toastId!==o)},!1,{type:"removeCustomToast",payload:{value:o}})},Ht=()=>{u().setState(({toasts:o})=>{o.customToasts=[]},!1,{type:"removeAllCustomToasts",payload:{value:null}})},ln=()=>{u().setState(({toasts:o})=>{o.transactionToasts=[]})},Gt=({toastId:o,totalDuration:t})=>{let e="";return u().setState(({toasts:s})=>{let n=s.transactionToasts.length>0?Math.max(...s.transactionToasts.map(i=>parseInt(i.toastId.split("-").pop()??"0"))):0;e=o??`transaction-toast-${n+1}`,s.transactionToasts.push({startTime:rt(),endTime:Ut(t),toastId:e})},!1,"addTransactionToast"),e},B=o=>{u().setState(({toasts:t})=>{t.transactionToasts=t.transactionToasts.filter(e=>e.toastId!==o)},!1,"removeTransactionToast"),delete v[o],delete _[o]},W=o=>{let{toasts:t}=u().getState(),e=t.customToasts.length>0?Math.max(...t.customToasts.map(n=>parseInt(n.toastId.split("-").pop()??"0"))):0,s=o.toastId||`custom-toast-${e+1}`;return o.onClose&&(v[s]=o.onClose),o.instantiateToastElement?(_[s]=o.instantiateToastElement,u().setState(({toasts:n})=>{let i=n.customToasts.findIndex(a=>a.toastId===s),r={...o,instantiateToastElement:null,toastId:s};i!==-1?n.customToasts[i]=r:n.customToasts.push(r)},!1,"createCustomToast"),s):(ie(o,s),s)};export{_ as a,v as b,ie as c,R as d,Ht as e,ln as f,Gt as g,B as h,W as i,P as j,D as k,U as l,d as m,H as n,$t as o,Kt as p,K as q,Z as r,jt as s,Q as t,zt as u,j as v,qt as w,C as x,$ as y};
|
|
2
|
+
//# sourceMappingURL=chunk-ZM77AGP5.mjs.map
|
|
@@ -1,2 +1,60 @@
|
|
|
1
|
-
"use strict";
|
|
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 getAccountFromApi_exports = {};
|
|
20
|
+
__export(getAccountFromApi_exports, {
|
|
21
|
+
accountFetcher: () => accountFetcher,
|
|
22
|
+
getAccountFromApi: () => getAccountFromApi
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(getAccountFromApi_exports);
|
|
25
|
+
var import_endpoints = require("../../apiCalls/endpoints");
|
|
26
|
+
var import_axiosInstance = require("../../apiCalls/utils/axiosInstance");
|
|
27
|
+
var import_getCleanApiAddress = require("../../apiCalls/utils/getCleanApiAddress");
|
|
28
|
+
var import_network = require("../../constants/network.constants");
|
|
29
|
+
const accountFetcher = ({
|
|
30
|
+
address,
|
|
31
|
+
baseURL
|
|
32
|
+
}) => {
|
|
33
|
+
const apiAddress = (0, import_getCleanApiAddress.getCleanApiAddress)(baseURL);
|
|
34
|
+
const url = `${apiAddress}/${import_endpoints.ACCOUNTS_ENDPOINT}/${address}?withGuardianInfo=true`;
|
|
35
|
+
return import_axiosInstance.axiosInstance.get(url, {
|
|
36
|
+
baseURL: apiAddress,
|
|
37
|
+
timeout: import_network.TIMEOUT
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
const getAccountFromApi = async ({
|
|
41
|
+
address,
|
|
42
|
+
baseURL
|
|
43
|
+
}) => {
|
|
44
|
+
if (!address) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
try {
|
|
48
|
+
const { data } = await accountFetcher({ address, baseURL });
|
|
49
|
+
return data;
|
|
50
|
+
} catch (_err) {
|
|
51
|
+
console.error("error fetching configuration for ", address);
|
|
52
|
+
}
|
|
53
|
+
return null;
|
|
54
|
+
};
|
|
55
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
+
0 && (module.exports = {
|
|
57
|
+
accountFetcher,
|
|
58
|
+
getAccountFromApi
|
|
59
|
+
});
|
|
2
60
|
//# sourceMappingURL=getAccountFromApi.cjs.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/apiCalls/account/getAccountFromApi.ts"],
|
|
4
4
|
"sourcesContent": ["import { ACCOUNTS_ENDPOINT } from 'apiCalls/endpoints';\nimport { axiosInstance } from 'apiCalls/utils/axiosInstance';\nimport { getCleanApiAddress } from 'apiCalls/utils/getCleanApiAddress';\nimport { TIMEOUT } from 'constants/network.constants';\nimport { AccountType } from 'types/account.types';\n\nexport const accountFetcher = ({\n address,\n baseURL\n}: {\n address: string | null;\n baseURL: string;\n}) => {\n const apiAddress = getCleanApiAddress(baseURL);\n const url = `${apiAddress}/${ACCOUNTS_ENDPOINT}/${address}?withGuardianInfo=true`;\n // we need to get it with an axios instance because of cross-window user interaction issues\n return axiosInstance.get(url, {\n baseURL: apiAddress,\n timeout: TIMEOUT\n });\n};\n\nexport const getAccountFromApi = async ({\n address,\n baseURL\n}: {\n address?: string;\n baseURL: string;\n}) => {\n if (!address) {\n return null;\n }\n\n try {\n const { data } = await accountFetcher({ address, baseURL });\n return data as AccountType;\n } catch (_err) {\n console.error('error fetching configuration for ', address);\n }\n\n return null;\n};\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAkC;AAClC,2BAA8B;AAC9B,gCAAmC;AACnC,qBAAwB;AAGjB,MAAM,iBAAiB,CAAC;AAAA,EAC7B;AAAA,EACA;AACF,MAGM;AACJ,QAAM,iBAAa,8CAAmB,OAAO;AAC7C,QAAM,MAAM,GAAG,UAAU,IAAI,kCAAiB,IAAI,OAAO;AAEzD,SAAO,mCAAc,IAAI,KAAK;AAAA,IAC5B,SAAS;AAAA,IACT,SAAS;AAAA,EACX,CAAC;AACH;AAEO,MAAM,oBAAoB,OAAO;AAAA,EACtC;AAAA,EACA;AACF,MAGM;AACJ,MAAI,CAAC,SAAS;AACZ,WAAO;AAAA,EACT;AAEA,MAAI;AACF,UAAM,EAAE,KAAK,IAAI,MAAM,eAAe,EAAE,SAAS,QAAQ,CAAC;AAC1D,WAAO;AAAA,EACT,SAAS,MAAM;AACb,YAAQ,MAAM,qCAAqC,OAAO;AAAA,EAC5D;AAEA,SAAO;AACT;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,52 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var getScamAddressData_exports = {};
|
|
30
|
+
__export(getScamAddressData_exports, {
|
|
31
|
+
getScamAddressData: () => getScamAddressData
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(getScamAddressData_exports);
|
|
34
|
+
var import_axios = __toESM(require("axios"));
|
|
35
|
+
var import_utils = require("../../apiCalls/utils");
|
|
36
|
+
var import_constants = require("../../constants/index");
|
|
37
|
+
var import_endpoints = require("../endpoints");
|
|
38
|
+
async function getScamAddressData({
|
|
39
|
+
addressToVerify,
|
|
40
|
+
baseURL
|
|
41
|
+
}) {
|
|
42
|
+
const apiAddress = (0, import_utils.getCleanApiAddress)(baseURL);
|
|
43
|
+
const { data } = await import_axios.default.get(`${apiAddress}/${import_endpoints.ACCOUNTS_ENDPOINT}/${addressToVerify}`, {
|
|
44
|
+
timeout: import_constants.TIMEOUT
|
|
45
|
+
});
|
|
46
|
+
return data;
|
|
47
|
+
}
|
|
48
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
49
|
+
0 && (module.exports = {
|
|
50
|
+
getScamAddressData
|
|
51
|
+
});
|
|
2
52
|
//# sourceMappingURL=getScamAddressData.cjs.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/apiCalls/account/getScamAddressData.ts"],
|
|
4
4
|
"sourcesContent": ["import axios from 'axios';\nimport { getCleanApiAddress } from 'apiCalls/utils';\nimport { TIMEOUT } from 'constants/index';\nimport { ScamInfoType } from 'types/account.types';\nimport { ACCOUNTS_ENDPOINT } from '../endpoints';\n\nexport async function getScamAddressData({\n addressToVerify,\n baseURL\n}: {\n addressToVerify: string;\n baseURL: string;\n}) {\n const apiAddress = getCleanApiAddress(baseURL);\n\n const { data } = await axios.get<{\n scamInfo?: ScamInfoType;\n code?: string;\n }>(`${apiAddress}/${ACCOUNTS_ENDPOINT}/${addressToVerify}`, {\n timeout: TIMEOUT\n });\n\n return data;\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,mBAAmC;AACnC,uBAAwB;AAExB,uBAAkC;AAElC,eAAsB,mBAAmB;AAAA,EACvC;AAAA,EACA;AACF,GAGG;AACD,QAAM,iBAAa,iCAAmB,OAAO;AAE7C,QAAM,EAAE,KAAK,IAAI,MAAM,aAAAA,QAAM,IAG1B,GAAG,UAAU,IAAI,kCAAiB,IAAI,eAAe,IAAI;AAAA,IAC1D,SAAS;AAAA,EACX,CAAC;AAED,SAAO;AACT;",
|
|
6
|
+
"names": ["axios"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-VJGOUAZ2.mjs";import"../../__chunks__/chunk-6ET5BDZH.mjs";import"../../__chunks__/chunk-D2JYGLAC.mjs";import"../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../__chunks__/chunk-O7LCTC4K.mjs";import"../../__chunks__/chunk-KD2IQ32V.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-LHEH7L4L.mjs";import"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-VJGOUAZ2.mjs";import"../../__chunks__/chunk-6ET5BDZH.mjs";import"../../__chunks__/chunk-D2JYGLAC.mjs";import"../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../__chunks__/chunk-O7LCTC4K.mjs";import"../../__chunks__/chunk-KD2IQ32V.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-LHEH7L4L.mjs";import"../../__chunks__/chunk-YYVGE2ZU.mjs";import"../../__chunks__/chunk-EJV4VNJG.mjs";import"../../__chunks__/chunk-6R2WFQ7U.mjs";import"../../__chunks__/chunk-4ZAZCOJD.mjs";import"../../__chunks__/chunk-FI444OX3.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-GLXG5BES.mjs";import"../../__chunks__/chunk-LJX4MW7B.mjs";import"../../__chunks__/chunk-G43Z243B.mjs";export{a as getScamAddressData};
|
|
2
2
|
//# sourceMappingURL=getScamAddressData.mjs.map
|