@multiversx/sdk-dapp 5.0.0-alpha.8 → 5.0.0-alpha.9
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/README.md +2 -0
- package/out/__chunks__/{chunk-WVB4VPRI.mjs → chunk-24NXU72Y.mjs} +2 -2
- package/out/__chunks__/{chunk-IXJOO5U4.mjs → chunk-266T724O.mjs} +2 -2
- package/out/__chunks__/{chunk-675ZW4IF.mjs → chunk-2SOS3KAT.mjs} +2 -2
- package/out/__chunks__/{chunk-QYYNCJPD.mjs → chunk-3MWXXTQQ.mjs} +2 -2
- package/out/__chunks__/{chunk-BVKOA6WH.mjs → chunk-3RRSLNNU.mjs} +2 -2
- package/out/__chunks__/{chunk-3IMDPLG5.mjs → chunk-426U6FXN.mjs} +2 -2
- package/out/__chunks__/{chunk-IYS5W63R.mjs → chunk-43DKHDU2.mjs} +2 -2
- package/out/__chunks__/{chunk-GZAY7BOI.mjs → chunk-4CJBDKYR.mjs} +2 -2
- package/out/__chunks__/chunk-4MQGFX5E.mjs +2 -0
- package/out/__chunks__/{chunk-BEUXUWCR.mjs → chunk-4OEPT2V4.mjs} +2 -2
- package/out/__chunks__/{chunk-JENO4O6P.mjs → chunk-4PHZ25O4.mjs} +2 -2
- package/out/__chunks__/{chunk-M6IVW6AN.mjs → chunk-4ROJWFSB.mjs} +2 -2
- package/out/__chunks__/{chunk-6L56KRO6.mjs → chunk-4TSUWSFU.mjs} +2 -2
- package/out/__chunks__/{chunk-K7WAPWQA.mjs → chunk-5N755C2P.mjs} +2 -2
- package/out/__chunks__/{chunk-5L474T4X.mjs → chunk-5RVSN75H.mjs} +2 -2
- package/out/__chunks__/{chunk-YMME2BFO.mjs → chunk-762K2LVS.mjs} +2 -2
- package/out/__chunks__/{chunk-TYYA6E7F.mjs → chunk-7BP53CXF.mjs} +2 -2
- package/out/__chunks__/{chunk-2AAKENSP.mjs → chunk-A5EXECZV.mjs} +2 -2
- package/out/__chunks__/chunk-A5M7ZH6X.mjs +2 -0
- package/out/__chunks__/{chunk-PPA7AFVD.mjs → chunk-A64HMPMV.mjs} +2 -2
- package/out/__chunks__/{chunk-IJEPA3W2.mjs → chunk-ABKSM4D4.mjs} +2 -2
- package/out/__chunks__/{chunk-LKWCLZTU.mjs → chunk-AJOTPFJL.mjs} +2 -2
- package/out/__chunks__/{chunk-LETBBKOK.mjs → chunk-ASWTHX52.mjs} +2 -2
- package/out/__chunks__/{chunk-PDT22D2C.mjs → chunk-AV4HSXYZ.mjs} +2 -2
- package/out/__chunks__/{chunk-KMFYDHOY.mjs → chunk-BRBIUWAW.mjs} +2 -2
- package/out/__chunks__/chunk-CG25USRH.mjs +2 -0
- package/out/__chunks__/chunk-CG25USRH.mjs.map +7 -0
- package/out/__chunks__/{chunk-35YS2DV5.mjs → chunk-CTUOKFTQ.mjs} +2 -2
- package/out/__chunks__/{chunk-2WB5WD5K.mjs → chunk-CUZ44CDY.mjs} +2 -2
- package/out/__chunks__/chunk-DEAM4WOQ.mjs +2 -0
- package/out/__chunks__/{chunk-RVW2ZWCR.mjs → chunk-DGBTQM4A.mjs} +2 -2
- package/out/__chunks__/{chunk-SNKFFCSF.mjs → chunk-DHPD6E7P.mjs} +2 -2
- package/out/__chunks__/{chunk-2G6DWPQU.mjs → chunk-DKGAK7SX.mjs} +2 -2
- package/out/__chunks__/{chunk-M6ATGCOM.mjs → chunk-DNHKXKYY.mjs} +2 -2
- package/out/__chunks__/chunk-DQKFSHIR.mjs +2 -0
- package/out/__chunks__/chunk-DQKFSHIR.mjs.map +7 -0
- package/out/__chunks__/{chunk-OF6HBWFR.mjs → chunk-DV3XIKOX.mjs} +2 -2
- package/out/__chunks__/{chunk-GVKHWWIS.mjs → chunk-EA6KZGPV.mjs} +2 -2
- package/out/__chunks__/{chunk-LNABNVAO.mjs → chunk-EOX35D4L.mjs} +2 -2
- package/out/__chunks__/chunk-ETES5ZQ7.mjs +2 -0
- package/out/__chunks__/{chunk-SKEL25G3.mjs → chunk-ETHHR4HF.mjs} +2 -2
- package/out/__chunks__/{chunk-XPX7PTGI.mjs → chunk-EXEJDQ3E.mjs} +2 -2
- package/out/__chunks__/chunk-FEFZKA2B.mjs +2 -0
- package/out/__chunks__/chunk-FP2LZG6I.mjs +2 -0
- package/out/__chunks__/chunk-FP2LZG6I.mjs.map +7 -0
- package/out/__chunks__/chunk-GGJ4EA5D.mjs +2 -0
- package/out/__chunks__/{chunk-YRHMGKLM.mjs → chunk-GZLK5ERT.mjs} +2 -2
- package/out/__chunks__/{chunk-W5W6YGA5.mjs → chunk-HO3JCUZA.mjs} +2 -2
- package/out/__chunks__/chunk-HOYYQCKG.mjs +2 -0
- package/out/__chunks__/{chunk-TO3DGAQU.mjs → chunk-I7BB2JJP.mjs} +2 -2
- package/out/__chunks__/{chunk-KY7KOSJJ.mjs → chunk-IMEJ3BE5.mjs} +2 -2
- package/out/__chunks__/{chunk-CUSKOIRI.mjs → chunk-ITYCILLF.mjs} +2 -2
- package/out/__chunks__/chunk-J4CPYFK6.mjs +2 -0
- package/out/__chunks__/{chunk-K3G3SPRT.mjs.map → chunk-J4CPYFK6.mjs.map} +1 -1
- package/out/__chunks__/{chunk-OLYQNOEP.mjs → chunk-JIECCAME.mjs} +2 -2
- package/out/__chunks__/{chunk-6ZDBHK76.mjs → chunk-JIJSBQEU.mjs} +2 -2
- package/out/__chunks__/{chunk-C4CJOZ4L.mjs → chunk-JZLYRNNP.mjs} +2 -2
- package/out/__chunks__/{chunk-QDIXBYIO.mjs → chunk-KN7QMGWV.mjs} +2 -2
- package/out/__chunks__/{chunk-QQNYMMUM.mjs → chunk-KSKOSHYV.mjs} +2 -2
- package/out/__chunks__/{chunk-QFWMIF3L.mjs → chunk-LDOKRGUQ.mjs} +2 -2
- package/out/__chunks__/{chunk-UQXXWVTL.mjs → chunk-LTFLMSOC.mjs} +2 -2
- package/out/__chunks__/{chunk-YWBC3WTI.mjs → chunk-LYC7ERBA.mjs} +2 -2
- package/out/__chunks__/chunk-LYTBUMNM.mjs +2 -0
- package/out/__chunks__/{chunk-F3AMNJ5K.mjs → chunk-MIQ3KCUL.mjs} +2 -2
- package/out/__chunks__/chunk-MIQ3KCUL.mjs.map +7 -0
- package/out/__chunks__/{chunk-U52ITGAN.mjs → chunk-MZNVCQVB.mjs} +2 -2
- package/out/__chunks__/{chunk-MHCIV2K5.mjs → chunk-N2V7UF7S.mjs} +2 -2
- package/out/__chunks__/{chunk-HR6GP43Q.mjs → chunk-N6FJMYEB.mjs} +2 -2
- package/out/__chunks__/chunk-NXKEIB75.mjs +2 -0
- package/out/__chunks__/{chunk-73EXR25L.mjs → chunk-O3V4TGXK.mjs} +2 -2
- package/out/__chunks__/{chunk-KUQH2ZBR.mjs → chunk-P3EYUM5Z.mjs} +2 -2
- package/out/__chunks__/{chunk-2KAOFKX4.mjs → chunk-PCPDM6RD.mjs} +2 -2
- package/out/__chunks__/{chunk-2KAOFKX4.mjs.map → chunk-PCPDM6RD.mjs.map} +1 -1
- package/out/__chunks__/{chunk-G7XIDD62.mjs → chunk-PNT4VF66.mjs} +2 -2
- package/out/__chunks__/{chunk-Y574J2OK.mjs → chunk-PVEKU2X3.mjs} +2 -2
- package/out/__chunks__/chunk-PVEKU2X3.mjs.map +7 -0
- package/out/__chunks__/{chunk-4I2FE6NE.mjs → chunk-QAVA2C6Y.mjs} +2 -2
- package/out/__chunks__/chunk-QCXM7FCT.mjs +2 -0
- package/out/__chunks__/{chunk-LTF535HP.mjs → chunk-QJSB5NX4.mjs} +2 -2
- package/out/__chunks__/{chunk-X5OSPJKQ.mjs → chunk-QMCJDKKV.mjs} +2 -2
- package/out/__chunks__/{chunk-VIJUIJ4V.mjs → chunk-QSBLXZFC.mjs} +2 -2
- package/out/__chunks__/{chunk-YMUUG42I.mjs → chunk-QVQGVVKN.mjs} +2 -2
- package/out/__chunks__/chunk-R3TQP7YH.mjs +2 -0
- package/out/__chunks__/chunk-RBN5PDCE.mjs +2 -0
- package/out/__chunks__/{chunk-55RBZAD6.mjs → chunk-RDMU5LTQ.mjs} +2 -2
- package/out/__chunks__/{chunk-J4MZNYDR.mjs → chunk-RHFDU5Y4.mjs} +2 -2
- package/out/__chunks__/{chunk-ZOGJGVPP.mjs → chunk-RMF4WLMK.mjs} +2 -2
- package/out/__chunks__/chunk-RNZEARAQ.mjs +2 -0
- package/out/__chunks__/{chunk-53BZNNVL.mjs → chunk-RUPRP5GS.mjs} +2 -2
- package/out/__chunks__/{chunk-AJEWAECH.mjs → chunk-RXAVE5OL.mjs} +2 -2
- package/out/__chunks__/{chunk-6BGPH7MV.mjs → chunk-SB35K4FJ.mjs} +2 -2
- package/out/__chunks__/{chunk-YAO67FPP.mjs → chunk-SJYCKFH4.mjs} +2 -2
- package/out/__chunks__/{chunk-OTQRFI3T.mjs → chunk-ST4GGUZM.mjs} +2 -2
- package/out/__chunks__/{chunk-ZZOHAMTX.mjs → chunk-T3HV6CCC.mjs} +2 -2
- package/out/__chunks__/chunk-T3HV6CCC.mjs.map +7 -0
- package/out/__chunks__/chunk-UAZVYE3I.mjs +2 -0
- package/out/__chunks__/chunk-UHDDSK3N.mjs +2 -0
- package/out/__chunks__/{chunk-OOPHCYRC.mjs → chunk-V6GKT3ZN.mjs} +2 -2
- package/out/__chunks__/{chunk-QQ4OPT5A.mjs → chunk-VJ2DAL5M.mjs} +2 -2
- package/out/__chunks__/{chunk-3IXTYHAU.mjs → chunk-WO6GJTV2.mjs} +2 -2
- package/out/__chunks__/{chunk-J7MZZ2X2.mjs → chunk-WZWDFTW3.mjs} +2 -2
- package/out/__chunks__/{chunk-EPMXW255.mjs → chunk-XDXMB6H5.mjs} +2 -2
- package/out/__chunks__/{chunk-EPMXW255.mjs.map → chunk-XDXMB6H5.mjs.map} +1 -1
- package/out/__chunks__/{chunk-TWWYWBJH.mjs → chunk-XNPY3DUJ.mjs} +2 -2
- package/out/__chunks__/{chunk-ZJOTHYI2.mjs → chunk-YB7AHPBR.mjs} +2 -2
- package/out/__chunks__/{chunk-4AOTLDWS.mjs → chunk-YPCJBYUY.mjs} +2 -2
- package/out/__chunks__/{chunk-CTMAC553.mjs → chunk-YTFYVPZO.mjs} +2 -2
- package/out/__chunks__/{chunk-3JNON2SM.mjs → chunk-Z3IZ47ZD.mjs} +2 -2
- package/out/__chunks__/{chunk-4YETXBJD.mjs → chunk-ZGRKIA6G.mjs} +2 -2
- package/out/__chunks__/{chunk-VQIWENYE.mjs → chunk-ZNZKP2Z7.mjs} +2 -2
- package/out/__chunks__/chunk-ZTSNKYSA.mjs +2 -0
- package/out/__chunks__/{chunk-3Z3DQFG6.mjs → chunk-ZWISUUBJ.mjs} +2 -2
- package/out/apiCalls/account/getScamAddressData.mjs +1 -1
- package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
- package/out/apiCalls/index.mjs +1 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/index.mjs +1 -1
- package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
- package/out/constants/browser.constants.mjs +1 -1
- package/out/constants/index.mjs +1 -1
- package/out/constants/storage.constants.mjs +1 -1
- package/out/constants/window.constants.d.ts +1 -0
- package/out/constants/window.constants.js +2 -1
- package/out/constants/window.constants.js.map +1 -1
- package/out/constants/window.constants.mjs +1 -1
- package/out/controllers/FormatAmountController/FormatAmountController.mjs +1 -1
- package/out/controllers/FormatAmountController/index.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
- package/out/controllers/TransactionsTableController/index.mjs +1 -1
- package/out/controllers/index.mjs +1 -1
- package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.mjs +1 -1
- package/out/index.mjs +1 -1
- package/out/lib/sdkDappUtils.d.ts +1 -1
- package/out/lib/sdkDappUtils.mjs +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.js.map +1 -1
- package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/index.mjs +1 -1
- package/out/managers/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.d.ts +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.js +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.js.map +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.js.map +1 -1
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/index.mjs +1 -1
- package/out/methods/account/getAccount.mjs +1 -1
- package/out/methods/account/getAccountInfo.mjs +1 -1
- package/out/methods/account/getAddress.mjs +1 -1
- package/out/methods/account/getIsLoggedIn.mjs +1 -1
- package/out/methods/account/getLatestNonce.mjs +1 -1
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
- package/out/methods/initApp/initApp.js +5 -15
- package/out/methods/initApp/initApp.js.map +1 -1
- package/out/methods/initApp/initApp.mjs +1 -1
- package/out/methods/initApp/initApp.mjs.map +3 -3
- package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
- package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
- package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
- package/out/methods/network/getEgldLabel.mjs +1 -1
- package/out/methods/network/getExplorerAddress.mjs +1 -1
- package/out/methods/network/getNetworkConfig.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getTransactionSessions.mjs +1 -1
- package/out/providers/DappProvider/DappProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
- package/out/providers/DappProvider/index.mjs +1 -1
- package/out/providers/ProviderFactory.mjs +1 -1
- package/out/providers/helpers/accountProvider.mjs +1 -1
- package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
- package/out/providers/helpers/restoreProvider.js +11 -1
- package/out/providers/helpers/restoreProvider.js.map +1 -1
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/index.mjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.d.ts +4 -5
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.js.map +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.d.ts +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.js.map +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.d.ts +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.js.map +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.d.ts +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.js.map +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.d.ts +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.js.map +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.d.ts +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.js.map +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.d.ts +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.js +2 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.js.map +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
- package/out/providers/strategies/helpers/index.mjs +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
- package/out/providers/strategies/index.mjs +1 -1
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/store/actions/account/accountActions.mjs +1 -1
- package/out/store/actions/account/index.mjs +1 -1
- package/out/store/actions/cache/cacheActions.mjs +1 -1
- package/out/store/actions/cache/index.mjs +1 -1
- package/out/store/actions/config/configActions.mjs +1 -1
- package/out/store/actions/config/index.mjs +1 -1
- package/out/store/actions/index.mjs +1 -1
- package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
- package/out/store/actions/network/index.mjs +1 -1
- package/out/store/actions/network/initializeNetwork.mjs +1 -1
- package/out/store/actions/network/networkActions.mjs +1 -1
- package/out/store/actions/sharedActions/index.mjs +1 -1
- package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
- package/out/store/actions/toasts/index.mjs +1 -1
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionsActions.mjs +1 -1
- package/out/store/actions/ui/index.mjs +1 -1
- package/out/store/actions/ui/uiActions.mjs +1 -1
- package/out/store/middleware/applyMiddlewares.mjs +1 -1
- package/out/store/middleware/index.mjs +1 -1
- package/out/store/middleware/logoutMiddleware.mjs +1 -1
- package/out/store/selectors/accountSelectors.mjs +1 -1
- package/out/store/selectors/index.mjs +1 -1
- package/out/store/slices/account/accountSlice.mjs +1 -1
- package/out/store/slices/account/emptyAccount.mjs +1 -1
- package/out/store/slices/account/index.mjs +1 -1
- package/out/store/slices/index.mjs +1 -1
- package/out/store/storage/index.mjs +1 -1
- package/out/store/storage/storageCallback.mjs +1 -1
- package/out/store/store.mjs +1 -1
- package/out/utils/account/index.mjs +1 -1
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/createUIElement.mjs +1 -1
- package/out/utils/index.mjs +1 -1
- package/out/utils/operations/trimAmountDecimals.mjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
- package/out/utils/transactions/index.mjs +1 -1
- package/out/utils/window/getIsInIframe.mjs +1 -1
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/out/utils/window/index.mjs +1 -1
- package/package.json +7 -6
- package/out/__chunks__/chunk-7QCBLUWB.mjs +0 -2
- package/out/__chunks__/chunk-7QCBLUWB.mjs.map +0 -7
- package/out/__chunks__/chunk-AC2L3PV3.mjs +0 -2
- package/out/__chunks__/chunk-AJJVMOJF.mjs +0 -2
- package/out/__chunks__/chunk-AJJVMOJF.mjs.map +0 -7
- package/out/__chunks__/chunk-BXUBAIBU.mjs +0 -2
- package/out/__chunks__/chunk-CT6RFJJM.mjs +0 -2
- package/out/__chunks__/chunk-DTI4TQ2I.mjs +0 -2
- package/out/__chunks__/chunk-EVL6UUJJ.mjs +0 -2
- package/out/__chunks__/chunk-F3AMNJ5K.mjs.map +0 -7
- package/out/__chunks__/chunk-K3G3SPRT.mjs +0 -2
- package/out/__chunks__/chunk-M7R5JSEH.mjs +0 -2
- package/out/__chunks__/chunk-MAT2WHLY.mjs +0 -2
- package/out/__chunks__/chunk-OH6SHSQZ.mjs +0 -2
- package/out/__chunks__/chunk-P5YASUQH.mjs +0 -2
- package/out/__chunks__/chunk-RIXZPR7R.mjs +0 -2
- package/out/__chunks__/chunk-UWNXZP4Z.mjs +0 -2
- package/out/__chunks__/chunk-V7QVBIYB.mjs +0 -2
- package/out/__chunks__/chunk-V7QVBIYB.mjs.map +0 -7
- package/out/__chunks__/chunk-V7ZVI2WS.mjs +0 -2
- package/out/__chunks__/chunk-VK47SZJ2.mjs +0 -2
- package/out/__chunks__/chunk-VPZ3QEMD.mjs +0 -2
- package/out/__chunks__/chunk-WGH5AERA.mjs +0 -2
- package/out/__chunks__/chunk-Y574J2OK.mjs.map +0 -7
- package/out/__chunks__/chunk-Y62KWXTT.mjs +0 -2
- package/out/__chunks__/chunk-ZZOHAMTX.mjs.map +0 -7
- /package/out/__chunks__/{chunk-WVB4VPRI.mjs.map → chunk-24NXU72Y.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IXJOO5U4.mjs.map → chunk-266T724O.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-675ZW4IF.mjs.map → chunk-2SOS3KAT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QYYNCJPD.mjs.map → chunk-3MWXXTQQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BVKOA6WH.mjs.map → chunk-3RRSLNNU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3IMDPLG5.mjs.map → chunk-426U6FXN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IYS5W63R.mjs.map → chunk-43DKHDU2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GZAY7BOI.mjs.map → chunk-4CJBDKYR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VK47SZJ2.mjs.map → chunk-4MQGFX5E.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BEUXUWCR.mjs.map → chunk-4OEPT2V4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JENO4O6P.mjs.map → chunk-4PHZ25O4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-M6IVW6AN.mjs.map → chunk-4ROJWFSB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6L56KRO6.mjs.map → chunk-4TSUWSFU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-K7WAPWQA.mjs.map → chunk-5N755C2P.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5L474T4X.mjs.map → chunk-5RVSN75H.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YMME2BFO.mjs.map → chunk-762K2LVS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TYYA6E7F.mjs.map → chunk-7BP53CXF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2AAKENSP.mjs.map → chunk-A5EXECZV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RIXZPR7R.mjs.map → chunk-A5M7ZH6X.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PPA7AFVD.mjs.map → chunk-A64HMPMV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IJEPA3W2.mjs.map → chunk-ABKSM4D4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LKWCLZTU.mjs.map → chunk-AJOTPFJL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LETBBKOK.mjs.map → chunk-ASWTHX52.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PDT22D2C.mjs.map → chunk-AV4HSXYZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KMFYDHOY.mjs.map → chunk-BRBIUWAW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-35YS2DV5.mjs.map → chunk-CTUOKFTQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2WB5WD5K.mjs.map → chunk-CUZ44CDY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-P5YASUQH.mjs.map → chunk-DEAM4WOQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RVW2ZWCR.mjs.map → chunk-DGBTQM4A.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SNKFFCSF.mjs.map → chunk-DHPD6E7P.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2G6DWPQU.mjs.map → chunk-DKGAK7SX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-M6ATGCOM.mjs.map → chunk-DNHKXKYY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OF6HBWFR.mjs.map → chunk-DV3XIKOX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GVKHWWIS.mjs.map → chunk-EA6KZGPV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LNABNVAO.mjs.map → chunk-EOX35D4L.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-M7R5JSEH.mjs.map → chunk-ETES5ZQ7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SKEL25G3.mjs.map → chunk-ETHHR4HF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XPX7PTGI.mjs.map → chunk-EXEJDQ3E.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BXUBAIBU.mjs.map → chunk-FEFZKA2B.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DTI4TQ2I.mjs.map → chunk-GGJ4EA5D.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YRHMGKLM.mjs.map → chunk-GZLK5ERT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-W5W6YGA5.mjs.map → chunk-HO3JCUZA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EVL6UUJJ.mjs.map → chunk-HOYYQCKG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TO3DGAQU.mjs.map → chunk-I7BB2JJP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KY7KOSJJ.mjs.map → chunk-IMEJ3BE5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CUSKOIRI.mjs.map → chunk-ITYCILLF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OLYQNOEP.mjs.map → chunk-JIECCAME.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6ZDBHK76.mjs.map → chunk-JIJSBQEU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-C4CJOZ4L.mjs.map → chunk-JZLYRNNP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QDIXBYIO.mjs.map → chunk-KN7QMGWV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QQNYMMUM.mjs.map → chunk-KSKOSHYV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QFWMIF3L.mjs.map → chunk-LDOKRGUQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UQXXWVTL.mjs.map → chunk-LTFLMSOC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YWBC3WTI.mjs.map → chunk-LYC7ERBA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VPZ3QEMD.mjs.map → chunk-LYTBUMNM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-U52ITGAN.mjs.map → chunk-MZNVCQVB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MHCIV2K5.mjs.map → chunk-N2V7UF7S.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HR6GP43Q.mjs.map → chunk-N6FJMYEB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UWNXZP4Z.mjs.map → chunk-NXKEIB75.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-73EXR25L.mjs.map → chunk-O3V4TGXK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KUQH2ZBR.mjs.map → chunk-P3EYUM5Z.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-G7XIDD62.mjs.map → chunk-PNT4VF66.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4I2FE6NE.mjs.map → chunk-QAVA2C6Y.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MAT2WHLY.mjs.map → chunk-QCXM7FCT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LTF535HP.mjs.map → chunk-QJSB5NX4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-X5OSPJKQ.mjs.map → chunk-QMCJDKKV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VIJUIJ4V.mjs.map → chunk-QSBLXZFC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YMUUG42I.mjs.map → chunk-QVQGVVKN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WGH5AERA.mjs.map → chunk-R3TQP7YH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AC2L3PV3.mjs.map → chunk-RBN5PDCE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-55RBZAD6.mjs.map → chunk-RDMU5LTQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-J4MZNYDR.mjs.map → chunk-RHFDU5Y4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZOGJGVPP.mjs.map → chunk-RMF4WLMK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OH6SHSQZ.mjs.map → chunk-RNZEARAQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-53BZNNVL.mjs.map → chunk-RUPRP5GS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AJEWAECH.mjs.map → chunk-RXAVE5OL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6BGPH7MV.mjs.map → chunk-SB35K4FJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YAO67FPP.mjs.map → chunk-SJYCKFH4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OTQRFI3T.mjs.map → chunk-ST4GGUZM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Y62KWXTT.mjs.map → chunk-UAZVYE3I.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CT6RFJJM.mjs.map → chunk-UHDDSK3N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OOPHCYRC.mjs.map → chunk-V6GKT3ZN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QQ4OPT5A.mjs.map → chunk-VJ2DAL5M.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3IXTYHAU.mjs.map → chunk-WO6GJTV2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-J7MZZ2X2.mjs.map → chunk-WZWDFTW3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TWWYWBJH.mjs.map → chunk-XNPY3DUJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZJOTHYI2.mjs.map → chunk-YB7AHPBR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4AOTLDWS.mjs.map → chunk-YPCJBYUY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CTMAC553.mjs.map → chunk-YTFYVPZO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3JNON2SM.mjs.map → chunk-Z3IZ47ZD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4YETXBJD.mjs.map → chunk-ZGRKIA6G.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VQIWENYE.mjs.map → chunk-ZNZKP2Z7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-V7ZVI2WS.mjs.map → chunk-ZTSNKYSA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3Z3DQFG6.mjs.map → chunk-ZWISUUBJ.mjs.map} +0 -0
package/README.md
CHANGED
|
@@ -176,6 +176,8 @@ const provider = await ProviderFactory.create({
|
|
|
176
176
|
await provider.login();
|
|
177
177
|
```
|
|
178
178
|
|
|
179
|
+
> **Note:** Extension and Ledger login will only work if dApp is served over HTTPS protocol
|
|
180
|
+
|
|
179
181
|
### 3. Displaying app data
|
|
180
182
|
|
|
181
183
|
Depending on the framework, you can either use hooks or selectors to get the user details:
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-RDMU5LTQ.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-24NXU72Y.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-FEFZKA2B.mjs";import a from"bignumber.js";var t=!1;function i(e){return new a(e.action?.arguments?.value).isNaN()?(t||(console.error(`Unable to interpret ${e.action?.name} data for txHash: ${e.txHash}`),t=!0),r(e.value)):r(e.action?.arguments?.value)}export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-266T724O.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i,c as o,f as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i,c as o,f as s}from"./chunk-J4CPYFK6.mjs";import{j as u}from"./chunk-LHEH7L4L.mjs";import m from"bignumber.js";var p=e=>{if(!e.receipt?.value)return"";if(e.receipt?.data===u){let r=s({input:e.receipt.value,decimals:o,digits:i,showLastNonZeroDecimal:!0});return new m(r).times(e.gasPrice).times(100).toFixed()}return e.receipt.value};function d(e){let r=e.receipt?.data;if(!r)return"";let t=p(e),a=t?`: ${t}`:"";return`${r}${a}`}export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2SOS3KAT.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-KSKOSHYV.mjs";import{a as e}from"./chunk-YB7AHPBR.mjs";import{c}from"./chunk-J4CPYFK6.mjs";var y=({transaction:r,userIsReceiver:m,egldLabel:A})=>{let n=r.action,t=n&&n.arguments,a=t&&Array.isArray(t.transfers)?t.transfers:[],p=a.length===0,i=A??"EGLD",o=m?"+":"-",T={assetPrefix:o,type:i,assetTicker:i,assetAmount:e({value:r.value,decimals:String(c)})},l=a.map(s=>({assetPrefix:o,type:s.type,assetTicker:s.ticker,assetImage:s.svgUrl,assetAmount:e(s),assetPrice:g(s)}));return p?[T]:l};export{y as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3MWXXTQQ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as s,d as i,h as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as s,d as i,h as o}from"./chunk-DKGAK7SX.mjs";var r=1e4,u=class{constructor(){this.timeoutIntervals=new Map;this.successfulToastLifetime=r;this.start=t=>{if(this.stop(t),this.successfulToastLifetime<=0)return;let e=setTimeout(()=>{o(t)},this.successfulToastLifetime);this.timeoutIntervals.set(t,e)};this.startWithCustomDuration=(t,e)=>{if(this.stop(t),e<=0)return;let a=setTimeout(()=>{i(t);let n=s[t];n?.()},e);this.timeoutIntervals.set(t,a)};this.stop=t=>{let e=this.timeoutIntervals.get(t);e&&(clearTimeout(e),this.timeoutIntervals.delete(t))}}init({successfulToastLifetime:t}){this.successfulToastLifetime=t||r}destroy(){this.timeoutIntervals.forEach(t=>clearTimeout(t)),this.timeoutIntervals.clear()}};export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3RRSLNNU.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-ITYCILLF.mjs";var i=async a=>{let r=a.map(s=>s.hash),n=await e(r);return a.map(s=>{let t=n.find(o=>o?.txHash===s.hash);return{...s,status:t?.status,invalidTransaction:t==null,results:t?.results??[],previousStatus:s.status?.toString()||"",hasStatusChanged:!!(t&&t.status!==s.status)}})};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-426U6FXN.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-LYC7ERBA.mjs";import{c as e}from"./chunk-MGFIOCA4.mjs";var o=class i extends s{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_SIGN_TRANSACTIONS",uiTag:"mvx-sign-transactions-panel"});this.addressesPerPage=10;this._ppuMap={};this.initialData={commonData:{transactionsCount:0,currentIndexToSign:0,egldLabel:"",currentIndex:0,ppuOptions:[],address:"",origin:""},tokenTransaction:null,nftTransaction:null,sftTransaction:null};this.data={...this.initialData}}static getInstance(){return i.instance||(i.instance=new i),i.instance}get transactionsCount(){return this.data.commonData.transactionsCount}initializeGasPriceMap(a){let t=0;a.filter(n=>n!=null).forEach(n=>{let r=n?Number(n.gasPrice):0;this.updateGasPriceMap({nonce:Number(n.nonce),ppu:t,initialGasPrice:r})}),this.updateCommonData({ppu:t})}updateGasPriceMap({nonce:a,ppu:t,initialGasPrice:n}){this._ppuMap[a]={...this._ppuMap[a],ppu:t},n&&(this._ppuMap[a].initialGasPrice=n)}updateCommonData(a){this.data.commonData={...this.data.commonData,...a},this.notifyDataUpdate()}updateIsLoading(a){this.data.isLoading=a,this.notifyDataUpdate()}updateTokenTransaction(a){this.data.tokenTransaction=a,this.data.sftTransaction=null,this.data.nftTransaction=null,this.notifyDataUpdate()}updateNonFungibleTransaction(a,t){switch(a){case"NonFungibleESDT":this.data.nftTransaction=t,this.data.tokenTransaction=null,this.data.sftTransaction=null;break;case"SemiFungibleESDT":this.data.sftTransaction=t,this.data.nftTransaction=null,this.data.tokenTransaction=null;break;default:break}this.notifyDataUpdate()}get currentScreenIndex(){return this.data.commonData.currentIndex}get ppuMap(){return this._ppuMap}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_SIGN_TRANSACTIONS",this.closeUI.bind(this))}};export{o as a};
|
|
2
|
+
//# sourceMappingURL=chunk-43DKHDU2.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-4PHZ25O4.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-4CJBDKYR.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as D}from"./chunk-O6VPG7AF.mjs";import{a as m,b as p,c as s,d as c}from"./chunk-I2YHVWIX.mjs";import{a as k}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as D}from"./chunk-O6VPG7AF.mjs";import{a as m,b as p,c as s,d as c}from"./chunk-I2YHVWIX.mjs";import{a as k}from"./chunk-266T724O.mjs";import{a as f}from"./chunk-A5EXECZV.mjs";import{a as d}from"./chunk-JIJSBQEU.mjs";import{a as A}from"./chunk-SJYCKFH4.mjs";import{a as V}from"./chunk-DHPD6E7P.mjs";import{a as l}from"./chunk-FEFZKA2B.mjs";import{b as T}from"./chunk-UQU2VWPJ.mjs";import{c as o,f as i}from"./chunk-J4CPYFK6.mjs";import{a as u}from"./chunk-DBIIY2TX.mjs";var H=({transaction:t,hideMultipleBadge:g})=>{if(t.action){if(p.includes(t.action.name))return l(t.value);if(s.includes(t.action.name))return V(t);if(m.includes(t.action.name))return A(t);if(c.includes(t.action.name))return k(t);let a=D(t);if(a.length){let e=a[0],I=Object.values(T).includes(e.type),r=!g&&a.length>1?f(a):"";if(I){let{badgeText:E,tokenFormattedAmount:n,tokenExplorerLink:_,tokenLinkText:y}=d({token:e});return{nftValueData:{badgeText:E,tokenFormattedAmount:n,tokenExplorerLink:_,tokenLinkText:y,transactionTokens:a,token:e,value:n!=null?e.value:null,decimals:n!=null?e.decimals:null,titleText:r}}}let x=e.value?i({input:e.value,decimals:e.decimals??o,digits:2,addCommas:!0}):null;return{tokenValueData:{tokenExplorerLink:u.tokenDetails(String(e.token)),showFormattedAmount:!1,tokenFormattedAmount:x,tokenLinkText:e.ticker,transactionTokens:a,token:e,value:e.value,decimals:e.decimals??o,titleText:r}}}}return l(t.value)};export{H as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4OEPT2V4.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{u as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{u as r}from"./chunk-ZGRKIA6G.mjs";import{b as e}from"./chunk-SAAOQW7P.mjs";var d=s=>{let o=e(r()),t=s??o.apiAddress;return t.endsWith("/")?t.slice(0,-1):t};export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4PHZ25O4.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{p as n}from"./chunk-DKGAK7SX.mjs";import{a as i}from"./chunk-NHXPNROG.mjs";var e=async()=>{let o=n();if(o.getType()===i.crossWindow){let r=o;await r.cancelAction(),await r.dispose()}};export{e as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4ROJWFSB.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as T}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as T}from"./chunk-ITYCILLF.mjs";import{a as h}from"./chunk-QVQGVVKN.mjs";import{a as d}from"./chunk-HOYYQCKG.mjs";import{a as p}from"./chunk-YPCJBYUY.mjs";var f=a=>a.sort((i,o)=>o.timestamp-i.timestamp),H=async({transactions:a,address:i,explorerAddress:o,egldLabel:g})=>{let e=[],r=[];if(a.forEach(s=>{let t=d(s.hash);t?e.push(t):r.push(s.hash)}),r.length===0)return f(e);let c=await T(r),I=c.map(s=>s.txHash),m=r.filter(s=>!I.includes(s));if(m.length>0){let t=a.filter(n=>m.includes(n.hash)).map(n=>({...n,txHash:n.hash,price:0,status:"pending",gasUsed:0,miniBlockHash:"",receiverShard:0,round:0,senderShard:0,timestamp:Date.now()}));c.push(...t)}return c.forEach(s=>{let t=p({transaction:s,address:i,explorerAddress:o,egldLabel:g});t.status!=="pending"&&h({key:`transaction-${s.txHash}`,value:t}),e.push(t)}),f(e)};export{H as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4TSUWSFU.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g}from"./chunk-HBQQS6GA.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";import{u as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-HBQQS6GA.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";import{u as m}from"./chunk-ZGRKIA6G.mjs";import{b as a}from"./chunk-SAAOQW7P.mjs";import{o as s,u as o}from"./chunk-KD2IQ32V.mjs";async function I({tokenId:n}){let t=a(m()),r={tokenDecimals:Number(t.decimals),tokenLabel:"",tokenImageUrl:""},{isNft:k}=c(n),i=n,p=k?s:o;if(!i)return r;try{let e=await g(`${t.apiAddress}/${p}/${i}`),l=e?e?.decimals:Number(t.decimals),f=e?e?.name:"",T=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:l,tokenLabel:f,type:e?.type,tokenImageUrl:T,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{...r,error:`${e}`}}}export{I as a};
|
|
2
|
+
//# sourceMappingURL=chunk-5N755C2P.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-X6MN67NW.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";import{u as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-X6MN67NW.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";import{u as m}from"./chunk-ZGRKIA6G.mjs";import{b as a}from"./chunk-SAAOQW7P.mjs";import{o as r,u as i}from"./chunk-KD2IQ32V.mjs";async function b({tokenId:o}){let t=a(m()),{isNft:k}=c(o),n=o,p=k?r:i;if(!n)return{tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:""};try{let{data:e}=await s.get(`${t.apiAddress}/${p}/${n}`),f=e?e?.decimals:Number(t.decimals),l=e?e?.name:"",d=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:f,tokenLabel:l,type:e?.type,tokenAvatar:d,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{error:`Error fetching token ${n}: ${e.toString()}`,tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:"",identifier:n}}}export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-5RVSN75H.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-VMFJUT3G.mjs";import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-VMFJUT3G.mjs";import{a as e}from"./chunk-FP2LZG6I.mjs";var E=async({name:t,anchor:o})=>{if(await m(e),!e.document)return{};let n=e.document.createElement(t);return(o||e.document.body).appendChild(n),await customElements.whenDefined(t),n};export{E as a};
|
|
2
|
+
//# sourceMappingURL=chunk-762K2LVS.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-BRBIUWAW.mjs";var e={address:"",websocketEvent:null,websocketBatchEvent:null,accounts:{"":t},ledgerAccount:null,publicKey:"",walletConnectAccount:null};function c(){return()=>e}var n=c();export{e as a,n as b};
|
|
2
|
+
//# sourceMappingURL=chunk-7BP53CXF.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-JIJSBQEU.mjs";import{a as n}from"./chunk-3FXHIV6O.mjs";import{c as a,f as o}from"./chunk-J4CPYFK6.mjs";var k=u=>{let i=u.map(e=>{let{isNft:l}=n(e.type);if(l){let{badgeText:t,tokenFormattedAmount:p,tokenLinkText:T}=r({token:e});return`${t!=null?`(${t}) `:""}${p} ${T}`}let m=e.value?o({input:e.value,decimals:e.decimals??a,digits:2,addCommas:!0}):null,d=e.collection?e.identifier:e.token;return`${m} ${e.ticker} (${d})`});return decodeURI(i.join("%0A"))};export{k as a};
|
|
2
|
+
//# sourceMappingURL=chunk-A5EXECZV.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-FP2LZG6I.mjs";import{createJSONStorage as o}from"zustand/middleware";var r={persistReducersStorageType:"localStorage"},i=e?o(()=>e[r.persistReducersStorageType]):void 0,p=new Map;export{r as a,i as b,p as c};
|
|
2
|
+
//# sourceMappingURL=chunk-A64HMPMV.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{d as s}from"./chunk-MIQ3KCUL.mjs";import{a as p}from"./chunk-LYC7ERBA.mjs";import{u as c}from"./chunk-ZGRKIA6G.mjs";import{b as d}from"./chunk-SAAOQW7P.mjs";import{a as v}from"./chunk-I7ODJJY3.mjs";import{a}from"./chunk-NHXPNROG.mjs";var n=class n extends p{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&&n.onClose&&n.onClose(),this.closeUI()};this.handleLogin=async({type:e,anchor:o})=>{if(!n.loginHandler)throw new Error("Login callback not initialized. Please call `init()` first.");try{this.isSimpleLoginCallback(n.loginHandler)?(await(await s.create({type:e,anchor:o})).login(),n.loginHandler()):n.loginHandler({type:e,anchor:o}),await this.handleCloseUI({isLoginFinished:!0})}catch(r){console.error(r),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 n.instance||(n.instance=new n),n.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,r=[...Object.values(a).filter(i=>i!==a.none&&i!==a.webview),...e.map(i=>i.type)],P=e.reduce((i,t)=>(i[t.type]=t.name,i),{}),l={...v,...P};return(n.allowedProviders?n?.allowedProviders.map(i=>i.type).filter(i=>r.includes(i)):r).map(i=>{let t=e.find(g=>g.type===i);return t||{name:i in l?l[i]:i,type:i}})}};n.loginHandler=null,n.onClose=null,n.allowedProviders=null;var u=n;export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ABKSM4D4.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as T}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as T}from"./chunk-4OEPT2V4.mjs";import{a as i}from"./chunk-W5MTQBQF.mjs";import{a as k}from"./chunk-WZWDFTW3.mjs";import{a as m}from"./chunk-QAVA2C6Y.mjs";import{a as l}from"./chunk-VJ2DAL5M.mjs";import{c as d}from"./chunk-J4CPYFK6.mjs";import{a as o}from"./chunk-BSWV5MEC.mjs";var p=class{static async processTransactions({address:u,egldLabel:v,explorerAddress:g,transactions:L}){let f=L.map(e=>m({address:u,explorerAddress:g,transaction:e}));return await Promise.all(f.map(async e=>{let s=e.receiverAssets?.name.replace(/\p{Emoji}/gu,""),a=e.senderAssets?.name.replace(/\p{Emoji}/gu,""),{senderLockedAccount:h,receiverLockedAccount:D}=await k({receiver:e.receiver,sender:e.sender,tokenId:e.tokenIdentifier}),{egldValueData:t,tokenValueData:n,nftValueData:r}=T({transaction:e}),x=r?.token.type==="MetaESDT"?void 0:r?.badgeText,c=l.getData({input:t?.value??n?.value??r?.value??"",decimals:t?.decimals??n?.decimals??r?.decimals??d,digits:2}),y={badge:x??void 0,collection:n?.token.collection??r?.token.collection,egldLabel:t?v:"",link: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:c.valueDecimal,valueInteger:c.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:!!D,link:e.links.receiverLink??"",shard:w,shardLink:e.links.receiverLink,showLink:e.transactionDetails.direction!=="In"},sender:{address:e.sender,name:a??"",description:`${a??e.sender} (${e.sender})`,isContract:o(e.sender),isTokenLocked:!!h,link:e.links.senderLink??"",shard:A,shardLink:e.links.senderShardLink,showLink:e.transactionDetails.direction!=="Out"},value:y}}))}};export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-AJOTPFJL.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-GMBSZ4AZ.mjs";import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-GMBSZ4AZ.mjs";import{a as o}from"./chunk-2SOS3KAT.mjs";import{a as r}from"./chunk-XKOORMTN.mjs";function p(e){return Array.from(new Set([...s(e),...r(e),o(e)])).filter(t=>!!t)}export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ASWTHX52.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{h as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{h as i}from"./chunk-J4CPYFK6.mjs";function c({transaction:n,gasPriceData:e}){if(!e)throw new Error("Gas price not found for nonce: "+n.nonce);let{initialGasPrice:r,ppu:a}=e;return a?i({transactionDataLength:String(n?.data||"").length,transactionGasLimit:n.gasLimit,ppu:a}):r}export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-AV4HSXYZ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as t}from"./chunk-J4CPYFK6.mjs";import{b as o}from"./chunk-MGFIOCA4.mjs";var r={balance:o,address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:t};export{r as a};
|
|
2
|
+
//# sourceMappingURL=chunk-BRBIUWAW.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{d as p}from"./chunk-MIQ3KCUL.mjs";import{a as f}from"./chunk-ETES5ZQ7.mjs";import{o as n}from"./chunk-DKGAK7SX.mjs";import{u as i}from"./chunk-ZGRKIA6G.mjs";import{d as t}from"./chunk-VNLGNNIL.mjs";import{a as e}from"./chunk-NHXPNROG.mjs";import{a as m}from"./chunk-RXAVE5OL.mjs";async function y(){let c=m(),s=f(),r=c?e.webview:t(i());if(!r)return;let o=await p.create({type:r});if(!o)throw new Error("Provider not found");!s&&r===e.webview&&await o.login(),n(o)}export{y as a};
|
|
2
|
+
//# sourceMappingURL=chunk-CG25USRH.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/providers/helpers/restoreProvider.ts"],
|
|
4
|
+
"sourcesContent": ["import { getIsLoggedIn } from 'methods/account/getIsLoggedIn';\nimport { ProviderTypeEnum } 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 isInIframe = getIsInIframe();\n const isLoggedIn = getIsLoggedIn();\n\n const type = isInIframe\n ? ProviderTypeEnum.webview\n : providerTypeSelector(getState());\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 if (!isLoggedIn && type === ProviderTypeEnum.webview) {\n await provider.login();\n }\n\n setAccountProvider(provider);\n}\n"],
|
|
5
|
+
"mappings": "+RAQA,eAAsBA,GAAkB,CACtC,IAAMC,EAAaC,EAAc,EAC3BC,EAAaC,EAAc,EAE3BC,EAAOJ,EACTK,EAAiB,QACjBC,EAAqBC,EAAS,CAAC,EAEnC,GAAI,CAACH,EACH,OAGF,IAAMI,EAAW,MAAMC,EAAgB,OAAO,CAC5C,KAAAL,CACF,CAAC,EAED,GAAI,CAACI,EACH,MAAM,IAAI,MAAM,oBAAoB,EAGlC,CAACN,GAAcE,IAASC,EAAiB,SAC3C,MAAMG,EAAS,MAAM,EAGvBE,EAAmBF,CAAQ,CAC7B",
|
|
6
|
+
"names": ["restoreProvider", "isInIframe", "getIsInIframe", "isLoggedIn", "getIsLoggedIn", "type", "ProviderTypeEnum", "providerTypeSelector", "getState", "provider", "ProviderFactory", "setAccountProvider"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-4TBVQD27.mjs";import{s as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-4TBVQD27.mjs";import{s as o}from"./chunk-ZGRKIA6G.mjs";var l=t=>o().setState(({config:e})=>{e.nativeAuthConfig=t},!1,"setNativeAuthConfig"),c=t=>o().setState(({config:e})=>{e.websocketStatus=t},!1,"setWebsocketStatus"),f=t=>o().setState(({config:e})=>{let s=t.walletConnectV2RelayAddress||n.walletConnectV2RelayAddress,i=t.walletConnectDeepLink||n.walletConnectDeepLink;e.walletConnectConfig={...t,walletConnectDeepLink:i,walletConnectV2RelayAddress:s}},!1,"setWalletConnectConfig"),r=t=>o().setState(({config:e})=>{e.crossWindowConfig=t},!1,"setCrossWindowConfig");export{l as a,c as b,f as c,r as d};
|
|
2
|
+
//# sourceMappingURL=chunk-CTUOKFTQ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as a,c as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as a,c as n}from"./chunk-RMF4WLMK.mjs";function m({results:r,hash:e,sessionId:s}){let t=r?.find(i=>i?.returnMessage!=="");n({sessionId:s,transaction:{...t,hash:e,status:"fail",inTransit:!1}}),a({sessionId:s,status:"fail",errorMessage:t?.returnMessage})}export{m as a};
|
|
2
|
+
//# sourceMappingURL=chunk-CUZ44CDY.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-FP2LZG6I.mjs";function t(){if(!e)return"";try{if(e.document.referrer)return new URL(e.document.referrer).origin;let r=e.location.ancestorOrigins;return r.length<1?"":new URL(r[r.length-1]).origin}catch(r){return console.error(r),""}}export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DGBTQM4A.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-FEFZKA2B.mjs";import{c as a}from"./chunk-TI37DKBT.mjs";import l from"bignumber.js";var o=!1;function u(e){try{let n=a(e.data).replace(`${e.action?.name}@`,""),r=new l(n,16);if(!r.isNaN())return t(r.toString(10))}catch{o||(console.error(`Unable to extract value for txHash: ${e.txHash}`),o=!0)}return t(e.value)}export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DHPD6E7P.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as U}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as U}from"./chunk-XNPY3DUJ.mjs";import{a as v}from"./chunk-MZNVCQVB.mjs";import{a as D,b as R,g as F}from"./chunk-QD3CFFVT.mjs";import{a as z}from"./chunk-WO6GJTV2.mjs";import{b as f}from"./chunk-24NXU72Y.mjs";import{a as _}from"./chunk-HO3JCUZA.mjs";import{a as j}from"./chunk-4ODPAHHA.mjs";import{a as $}from"./chunk-Z5CDCI3Y.mjs";import{a as G}from"./chunk-EXEJDQ3E.mjs";import{a as u}from"./chunk-LYTBUMNM.mjs";import{a as L}from"./chunk-RNZEARAQ.mjs";import{a as V}from"./chunk-DEAM4WOQ.mjs";import{a as T}from"./chunk-P3EYUM5Z.mjs";import{a as l,f as O}from"./chunk-ZNZKP2Z7.mjs";import{a as M}from"./chunk-45WVS4H5.mjs";import{b as W}from"./chunk-ETHHR4HF.mjs";import{a as h}from"./chunk-HORSXVIV.mjs";import{a as g}from"./chunk-6FXEHNGW.mjs";import{a as K}from"./chunk-NJN53MJV.mjs";import{a as b}from"./chunk-YSCND2MX.mjs";import{b as k,s as m,u as N}from"./chunk-ZGRKIA6G.mjs";import{b as I}from"./chunk-IEJTMYFW.mjs";import{b as C,c as P,f as S}from"./chunk-R53MCZI6.mjs";import{b as B}from"./chunk-YEXBSKXL.mjs";import{a as E}from"./chunk-NHXPNROG.mjs";async function w({address:t,provider:o,apiAddress:r}){let e=await g({address:t,baseURL:r});if(!e)throw new Error("Account not found");W({address:t,providerType:o.getType()});let n={...e,username:h(e.username),nonce:T(e)};l(n),await f(t),v(),e.shard!=null&&await U({shard:Number(e.shard),apiAddress:r})}async function ot(t){let{network:{apiAddress:o}}=u();await t.login();let r=await t.getAddress();if(!r)throw new Error("Address not found");return await w({address:r,provider:t,apiAddress:o}),{address:r}}async function rt({provider:t,nativeAuthConfig:o,token:r}){let{network:{apiAddress:e}}=u(),n=M(o),s=r;s||(s=await n.initialize({noCache:!0}));let{address:i,signature:c,...a}=await t.login({token:s});if(!i)return console.warn("Login cancelled."),null;if(!c)return console.error("Failed to sign login token"),null;let p=n.getToken({address:i,token:s,signature:c});k({loginToken:s,signature:c,nativeAuthToken:p});let d=await _({loginToken:s,extraInfoData:{multisig:a?.multisig,impersonate:a?.impersonate},address:i});return await w({address:d,provider:t,apiAddress:e}),{address:d,signature:c}}async function H(t,o){let r=I(N());if(r)return await rt({provider:t,nativeAuthConfig:r,token:o?.token});let{address:e}=await ot(t);return await f(e),v(),{address:e}}var y={error:{title:"Error when signing".toString(),iconClassName:"danger",toastId:`${R}-${Date.now()}`},warning:{title:"Signing canceled".toString(),iconClassName:"warning",toastId:`${D}-${Date.now()}`}},et={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"},nt=t=>{for(let[o,r]of Object.entries(et))if(t.includes(o))return r;return"Error when signing"};function A(t,o="error"){let r=t?.message,e=nt(r),s=e!=="Error when signing"?"warning":o,i=Object.keys(y).includes(s)?y[s]:y.error,{toastId:c,iconClassName:a,title:p}=i;return q({toastId:c,duration:1e4,icon:"times",iconClassName:a,message:e,title:p}),e}async function J({provider:t,transactions:o,options:r={}}){await Q();let{isGuarded:e,activeGuardianAddress:n,nonce:s}=V(),i=t.getType()===E.ledger,c=j({latestNonce:s,transactions:o}),a=n&&e&&!r.skipGuardian?c?.map(d=>(d.version=C.withTxOptions().valueOf(),d.options=S.withOptions({guarded:!0,...i?{hashSign:!0}:{}}).valueOf(),d.guardian=P.newFromBech32(n),d)):c,p=await t.signTransactions(a)??[];return O(s+p.length),p}var x=class{constructor(o){this.provider=o}init(){return this.provider.init()}async login(o){return await H(this.provider,o)}isInitialized(){return this.provider.isInitialized()}async logout(o={shouldBroadcastLogoutAcrossTabs:!0,hasConsentPopup:!1}){return await z({provider:this.provider,options:o})}setShouldShowConsentPopup(o){this.provider.setShouldShowConsentPopup?.(o)}getType(){return this.provider.getType()}getProvider(){return this.provider}async signTransactions(o,r){try{return await J({provider:this.provider,transactions:o,options:r})}catch(e){let n=A(e);throw new Error(n)}}async signMessage(o,r){try{return await G({provider:this.provider,message:o,options:r})}catch(e){let n=A(e,"warning");throw new Error(n)}}async verifyMessage(o){return await $(o)}cancelLogin(){this.provider.cancelLogin?.()}};var X=null;function go(t){X=t}function Y(){return X||new x(B)}var st=async()=>{try{let t=L(),{network:o}=u();try{let r=await g({address:t,baseURL:o.apiAddress});if(r!=null){let e={...r,username:h(r.username),nonce:T(r)};return l(e),e}}catch(r){console.error("Failed getting account ",r)}}catch(t){console.error("Failed getting address ",t)}return null};async function Q(){let t=Y();if(t==null)throw"Provider not initialized";try{if(!t.init)throw"Current provider does not have init() function";return await t.init()?st():void 0}catch(o){console.error("Failed initializing provider ",o)}}var Z={},tt={},it=(t,o)=>{m().setState(({toasts:r})=>{let e=r.customToasts.length>0?Math.max(...r.customToasts.map(a=>parseInt(a.toastId.split("-").pop()??"0"))):0,n=o??`custom-toast-${e+1}`,s=r.customToasts.findIndex(a=>a.toastId===n),i={...t,toastId:n};if(s!==-1){r.customToasts[s]=i;return}r.customToasts.push({...i,toastId:n})},!1,"addCustomToast")},_o=t=>{m().setState(({toasts:o})=>{o.customToasts=o.customToasts.filter(r=>r.toastId!==t)},!1,"removeCustomToast")},zo=()=>{m().setState(({toasts:t})=>{t.customToasts=[]},!1,"removeAllCustomToasts")},Go=()=>{m().setState(({toasts:t})=>{t.transactionToasts=[]})},$o=({toastId:t,totalDuration:o})=>{m().setState(({toasts:r})=>{let e=r.transactionToasts.length>0?Math.max(...r.transactionToasts.map(s=>parseInt(s.toastId.split("-").pop()??"0"))):0,n=t||`transaction-toast-${e+1}`;r.transactionToasts.push({startTime:b(),endTime:K(o),toastId:n})},!1,"addTransactionToast")},Vo=t=>{m().setState(({toasts:o})=>{o.transactionToasts=o.transactionToasts.filter(r=>r.toastId!==t)},!1,"removeTransactionToast"),delete tt[t],delete Z[t]},q=t=>{let{toasts:o}=m().getState(),r=o.customToasts.length>0?Math.max(...o.customToasts.map(n=>parseInt(n.toastId.split("-").pop()??"0"))):0,e=t.toastId||`custom-toast-${r+1}`;return t.onClose&&(tt[e]=t.onClose),t.instantiateToastElement?(Z[e]=t.instantiateToastElement,m().setState(({toasts:n})=>{let s=n.customToasts.findIndex(a=>a.toastId===e),i={...t,instantiateToastElement:null,toastId:e};s!==-1?n.customToasts[s]=i:n.customToasts.push(i)},!1,"createCustomToast"),e):(it(t,e),e)};export{Z as a,tt as b,it as c,_o as d,zo as e,Go as f,$o as g,Vo as h,q as i,w as j,H as k,A as l,J as m,x as n,go as o,Y as p,Q as q};
|
|
2
|
+
//# sourceMappingURL=chunk-DKGAK7SX.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as n}from"./chunk-J4CPYFK6.mjs";import l from"bignumber.js";var P=({amount:c,minimumPositiveDecimals:e})=>{let[i,t]=c.split("."),m=(t?t.split(""):[]).reduce((r,o,s)=>{let a=new l(r).isGreaterThan(n),u=s>e-1;return a&&u&&e>0?r:r.concat(o)},"");return m?`${i}.${m}`:i};export{P as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DNHKXKYY.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as o}from"./chunk-PVEKU2X3.mjs";import{a as t}from"./chunk-NHXPNROG.mjs";import{b as e}from"./chunk-FP2LZG6I.mjs";import{WebviewProvider as n}from"@multiversx/sdk-webview-provider/out/WebviewProvider";var s=class extends o{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=n.getInstance(),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}logout(){return this.provider.logout()}getType(){return t.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(e);return this.address&&this.setAccount({address:this.address}),r}};export{s as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DQKFSHIR.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.ts"],
|
|
4
|
+
"sourcesContent": ["import { WebviewProvider } from '@multiversx/sdk-webview-provider/out/WebviewProvider';\nimport { version } from 'constants/window.constants';\nimport { Message, Transaction } from 'lib/sdkCore';\nimport { IDAppProviderAccount } from 'lib/sdkDappUtils';\nimport {\n ProviderTypeEnum,\n ProviderType\n} from 'providers/types/providerFactory.types';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport { BaseProviderStrategy } from '../BaseProviderStrategy/BaseProviderStrategy';\n\ntype WebviewProviderProps = {\n address?: string;\n};\n\nexport class WebviewProviderStrategy extends BaseProviderStrategy {\n private readonly provider: WebviewProvider;\n\n constructor(config?: WebviewProviderProps) {\n super(config?.address);\n this.provider = WebviewProvider.getInstance();\n this._login = this.provider.login.bind(this.provider);\n }\n\n async init(): Promise<boolean> {\n this.initializeAddress();\n return this.initializeProvider();\n }\n\n logout(): Promise<boolean> {\n return this.provider.logout();\n }\n\n getType(): ProviderType {\n return ProviderTypeEnum.webview;\n }\n\n getAddress(): Promise<string | undefined> {\n throw new Error('Method not implemented.');\n }\n\n setAccount(account: IDAppProviderAccount): void {\n return this.provider.setAccount(account);\n }\n\n isInitialized(): boolean {\n return this.provider.isInitialized();\n }\n\n private async initializeProvider() {\n const isInitialized = await this.provider.init(version);\n\n if (this.address) {\n this.setAccount({ address: this.address });\n }\n\n return isInitialized;\n }\n\n cancelAction = async () => {\n this.provider.cancelAction();\n };\n\n signTransactions = async (transactions: Transaction[]) => {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n try {\n const signedTransactions =\n await this.provider.signTransactions(transactions);\n return signedTransactions || [];\n } catch (error) {\n this.cancelAction();\n throw error;\n }\n };\n\n signMessage = async (message: Message) => {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n try {\n const signedMessage = await this.provider.signMessage(message);\n return signedMessage;\n } catch (error) {\n this.cancelAction();\n throw error;\n }\n };\n}\n"],
|
|
5
|
+
"mappings": "2HAAA,OAAS,mBAAAA,MAAuB,uDAezB,IAAMC,EAAN,cAAsCC,CAAqB,CAGhE,YAAYC,EAA+B,CACzC,MAAMA,GAAQ,OAAO,EAwCvB,kBAAe,SAAY,CACzB,KAAK,SAAS,aAAa,CAC7B,EAEA,sBAAmB,MAAOC,GAAgC,CACxD,GAAI,CAAC,KAAK,SACR,MAAM,IAAI,oCAAuC,EAGnD,GAAI,CAGF,OADE,MAAM,KAAK,SAAS,iBAAiBA,CAAY,GACtB,CAAC,CAChC,OAASC,EAAO,CACd,WAAK,aAAa,EACZA,CACR,CACF,EAEA,iBAAc,MAAOC,GAAqB,CACxC,GAAI,CAAC,KAAK,SACR,MAAM,IAAI,oCAAuC,EAGnD,GAAI,CAEF,OADsB,MAAM,KAAK,SAAS,YAAYA,CAAO,CAE/D,OAASD,EAAO,CACd,WAAK,aAAa,EACZA,CACR,CACF,EAtEE,KAAK,SAAWE,EAAgB,YAAY,EAC5C,KAAK,OAAS,KAAK,SAAS,MAAM,KAAK,KAAK,QAAQ,CACtD,CAEA,MAAM,MAAyB,CAC7B,YAAK,kBAAkB,EAChB,KAAK,mBAAmB,CACjC,CAEA,QAA2B,CACzB,OAAO,KAAK,SAAS,OAAO,CAC9B,CAEA,SAAwB,CACtB,OAAOC,EAAiB,OAC1B,CAEA,YAA0C,CACxC,MAAM,IAAI,MAAM,yBAAyB,CAC3C,CAEA,WAAWC,EAAqC,CAC9C,OAAO,KAAK,SAAS,WAAWA,CAAO,CACzC,CAEA,eAAyB,CACvB,OAAO,KAAK,SAAS,cAAc,CACrC,CAEA,MAAc,oBAAqB,CACjC,IAAMC,EAAgB,MAAM,KAAK,SAAS,KAAKC,CAAO,EAEtD,OAAI,KAAK,SACP,KAAK,WAAW,CAAE,QAAS,KAAK,OAAQ,CAAC,EAGpCD,CACT,CAkCF",
|
|
6
|
+
"names": ["WebviewProvider", "WebviewProviderStrategy", "BaseProviderStrategy", "config", "transactions", "error", "message", "WebviewProvider", "ProviderTypeEnum", "account", "isInitialized", "version"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-YGI3KXMZ.mjs";import{a as e,c as a,f as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-YGI3KXMZ.mjs";import{a as e,c as a,f as i}from"./chunk-J4CPYFK6.mjs";var m=({feeLimit:o,egldPriceInUsd:r,hideEqualSign:l})=>{let s=i({input:o,decimals:a,digits:e,showLastNonZeroDecimal:!0}),t=n({amount:s,usd:r,decimals:e});return l?t:`\u2248 ${t}`};export{m as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DV3XIKOX.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as w}from"./chunk-QXC4D3AC.mjs";import{a as g}from"./chunk-YGI3KXMZ.mjs";import{a as b}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as w}from"./chunk-QXC4D3AC.mjs";import{a as g}from"./chunk-YGI3KXMZ.mjs";import{a as b}from"./chunk-LYTBUMNM.mjs";import{a as f}from"./chunk-6FXEHNGW.mjs";import{f as m}from"./chunk-J4CPYFK6.mjs";import x from"bignumber.js";var v=async({manager:e,provider:d})=>{if(!e||!d)throw new Error("Provider is not initialized.");let{network:u}=b(),n=e.getAccountScreenData()?.startIndex||0,r=e.getAllAccounts(),a=await w({baseURL:u.apiAddress}),l=c=>c.index>=n&&c.index<n+e.addressesPerPage,I=r.reduce((c,s)=>Object.assign(c,{[s.index]:s}),{}),A=r.filter(l),y=!!I[n];if(e.updateAccountScreen({isLoading:!y}),A.length>0){e.updateAccountScreen({accounts:A});return}try{let c=await d.getAccounts(n,e.addressesPerPage),s=c.map((t,o)=>({address:t,balance:"...",index:o+n})),L=[...r,...s],j=c.map(t=>f({address:t,baseURL:u.apiAddress})),O=await Promise.all(j),i=L.reduce((t,o)=>Object.assign(t,{[o.address]:o}),{});O.forEach(t=>{if(!t||!a||!a.price)return;let o=new x(t.balance),U=o.dividedBy(x(10).pow(18)).toFormat(4).toString();if(o.isNaN())return;let h=g({amount:m({input:t.balance}),usd:a?.price});i[t.address].balance=U,i[t.address].usdValue=h});let p=Object.values(i).sort((t,o)=>t.index-o.index),S=p.filter(l);e.updateAllAccounts(p),e.updateAccountScreen({accounts:S,isLoading:!1})}catch(c){console.error("Failed to fetch accounts:",c)}};export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-EA6KZGPV.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as T}from"./chunk-HMHP5DPL.mjs";import{a as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as T}from"./chunk-HMHP5DPL.mjs";import{a as u}from"./chunk-QSBLXZFC.mjs";import{a as d}from"./chunk-TX7PTLVP.mjs";import I from"lodash.startcase";import C from"lodash.uniq";var M=(e=>(e.mex="mex",e.stake="stake",e))(M||{}),R=({currentUserAddress:g,transaction:t,egldLabel:e,isPending:A=!1})=>{if(A)return{name:"Pending..."};let l={},y=Object.entries(T).reduce((s,[x,D])=>Object.assign(s,{[x]:D}),l),n=t.action,r=n&&n.arguments,i=n&&n.category?n.category:null,b=r&&n.name==="transfer",a=r&&Array.isArray(r.transfers)?r.transfers:[],c=a.map(s=>s.type),[m]=C(c),L=e??"EGLD",p=d({transaction:t,transferType:m,currentUserAddress:g}),E=u({allTransferTypes:c,transferType:m,transactionTransfers:a}),h=i&&["mex","stake"].includes(i),o=n&&h?n.description:void 0,f=t.function&&t.function!=="transfer"?y[t.function]??I(t.function):null;return b&&r?{name:`${p} ${E}`,description:o}:f?{name:f,description:o}:{name:`${p} ${L}`,description:o}};export{M as a,R as b};
|
|
2
|
+
//# sourceMappingURL=chunk-EOX35D4L.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{l as p,s as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{l as p,s as e}from"./chunk-ZGRKIA6G.mjs";import{c as i}from"./chunk-R53MCZI6.mjs";var T=()=>e().setState(p),m=({address:o,providerType:d})=>{e().setState(({account:r,loginInfo:t})=>{r.address=o,r.publicKey=new i(o).hex(),t&&(t.providerType=d)},!1,"loginAction")};export{T as a,m as b};
|
|
2
|
+
//# sourceMappingURL=chunk-ETHHR4HF.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-RNZEARAQ.mjs";import{c as o,g as n}from"./chunk-R53MCZI6.mjs";import{a as r}from"./chunk-NHXPNROG.mjs";async function M({message:i,provider:s,options:e}){let t=a(),d=new n({address:new o(t),data:i.data});return e?.hasConsentPopup&&s.getType()===r.crossWindow&&s.setShouldShowConsentPopup(!0),await s.signMessage(d,e)}export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-EXEJDQ3E.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/constants/window.constants.ts"],
|
|
4
|
+
"sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n\nexport const version = '5.0.0-alpha.9'; // will be replaced at build time\n"],
|
|
5
|
+
"mappings": "AAAO,IAAMA,EACX,OAAO,OAAW,IAAc,OAAU,CAAC,EAEhCC,EAAU",
|
|
6
|
+
"names": ["safeWindow", "version"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-I7BB2JJP.mjs";var n=class t extends e{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE",uiTag:"mvx-wallet-connect"});this.initialData={wcURI:""};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-GZLK5ERT.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-K3WBBSXJ.mjs";import{c as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-K3WBBSXJ.mjs";import{c as n}from"./chunk-ZGRKIA6G.mjs";async function c({loginToken:r,extraInfoData:i,address:e}){let o=await t({originalLoginToken:r,extraInfoData:i,address:e});return o.modifiedLoginToken&&n(o.modifiedLoginToken),o.address}export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-HO3JCUZA.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-762K2LVS.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({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-I7BB2JJP.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-FKBLKOLI.mjs";import{a as s}from"./chunk-SPSO2A53.mjs";import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-FKBLKOLI.mjs";import{a as s}from"./chunk-SPSO2A53.mjs";import{a as t}from"./chunk-DEAM4WOQ.mjs";import{u as n}from"./chunk-ZGRKIA6G.mjs";import{b as e}from"./chunk-SAAOQW7P.mjs";var S=async r=>{let{isGuarded:i}=t();if(!a({isGuarded:i,transactions:r}))return r;let d=r[0].getSender().bech32().toString(),{walletAddress:c}=e(n()),o=await s({address:d,walletUrl:c});return o?.setShouldShowConsentPopup(!1),await o?.guardTransactions(r)||[]};export{S as a};
|
|
2
|
+
//# sourceMappingURL=chunk-IMEJ3BE5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{u as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{u as e}from"./chunk-ZGRKIA6G.mjs";import{b as t}from"./chunk-SAAOQW7P.mjs";import{x as r}from"./chunk-KD2IQ32V.mjs";import i from"axios";var T=async o=>{let{apiAddress:s}=t(e()),{data:a}=await i.get(`${s}/${r}`,{params:{hashes:o.join(","),withScResults:!0}});return a};export{T as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ITYCILLF.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{DIGITS as t,ZERO as e,DECIMALS as p}from"@multiversx/sdk-dapp-utils/out/constants";import{stringIsInteger as s}from"@multiversx/sdk-dapp-utils/out/helpers/stringIsInteger";import{stringIsFloat as d}from"@multiversx/sdk-dapp-utils/out/helpers/stringIsFloat";import{formatAmount as I,FormatAmountPropsType as a}from"@multiversx/sdk-dapp-utils/out/helpers/formatAmount";import{recommendGasPrice as x}from"@multiversx/sdk-dapp-utils/out/helpers/recommendGasPrice";export{t as a,e as b,p as c,s as d,d as e,I as f,a as g,x as h};
|
|
2
|
+
//# sourceMappingURL=chunk-J4CPYFK6.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/lib/sdkDappUtils.ts"],
|
|
4
|
-
"sourcesContent": ["export {\n DIGITS,\n ZERO,\n DECIMALS\n} from '@multiversx/sdk-dapp-utils/out/constants';\nexport { stringIsInteger } from '@multiversx/sdk-dapp-utils/out/helpers/stringIsInteger';\nexport { stringIsFloat } from '@multiversx/sdk-dapp-utils/out/helpers/stringIsFloat';\nexport {\n formatAmount,\n FormatAmountPropsType\n} from '@multiversx/sdk-dapp-utils/out/helpers/formatAmount';\nexport { recommendGasPrice } from '@multiversx/sdk-dapp-utils/out/helpers/recommendGasPrice';\nexport type {
|
|
4
|
+
"sourcesContent": ["export {\n DIGITS,\n ZERO,\n DECIMALS\n} from '@multiversx/sdk-dapp-utils/out/constants';\nexport { stringIsInteger } from '@multiversx/sdk-dapp-utils/out/helpers/stringIsInteger';\nexport { stringIsFloat } from '@multiversx/sdk-dapp-utils/out/helpers/stringIsFloat';\nexport {\n formatAmount,\n FormatAmountPropsType\n} from '@multiversx/sdk-dapp-utils/out/helpers/formatAmount';\nexport { recommendGasPrice } from '@multiversx/sdk-dapp-utils/out/helpers/recommendGasPrice';\nexport type {\n IDAppProviderOptions,\n IDAppProviderAccount\n} from '@multiversx/sdk-dapp-utils/out/models/dappProviderBase';\n"],
|
|
5
5
|
"mappings": "AAAA,OACE,UAAAA,EACA,QAAAC,EACA,YAAAC,MACK,2CACP,OAAS,mBAAAC,MAAuB,yDAChC,OAAS,iBAAAC,MAAqB,uDAC9B,OACE,gBAAAC,EACA,yBAAAC,MACK,sDACP,OAAS,qBAAAC,MAAyB",
|
|
6
6
|
"names": ["DIGITS", "ZERO", "DECIMALS", "stringIsInteger", "stringIsFloat", "formatAmount", "FormatAmountPropsType", "recommendGasPrice"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as S}from"./chunk-EAJBSX6Y.mjs";import{a as s}from"./chunk-DT6YLEPL.mjs";import{c as r,d as a}from"./chunk-QD3CFFVT.mjs";import{u as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as S}from"./chunk-EAJBSX6Y.mjs";import{a as s}from"./chunk-DT6YLEPL.mjs";import{c as r,d as a}from"./chunk-QD3CFFVT.mjs";import{u as e}from"./chunk-ZGRKIA6G.mjs";import{a as n}from"./chunk-QJSB5NX4.mjs";var u=t=>{let o=0,i=n(e())?.shard;return S(t)?(t.forEach(c=>{let m=s(c,i);o+=m?5*6e3:6e3}),o):(o=s(t,i)?5*6e3:6e3,o)};export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-JIECCAME.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{f as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{f as l}from"./chunk-J4CPYFK6.mjs";import{a as m}from"./chunk-DBIIY2TX.mjs";function g({token:t,noValue:n,showLastNonZeroDecimal:i}){let o=!n&&t.value&&t.type!=="NonFungibleESDT",r=t.decimals!=null,e="";t.type==="NonFungibleESDT"&&(e="NFT"),t.type==="SemiFungibleESDT"&&(e="SFT"),t.type==="MetaESDT"&&(e="Meta-ESDT");let a="";o&&r&&(a=r?l({input:t.value,decimals:t.decimals,digits:2,showLastNonZeroDecimal:i}):Number(t.value).toLocaleString("en"));let T=m.nftDetails(String(t.identifier)),c=t.ticker===t.collection?t.identifier??t.ticker:t.ticker;return{badgeText:e,tokenFormattedAmount:o?a:null,tokenExplorerLink:T,tokenLinkText:c,token:t,noValue:n,showLastNonZeroDecimal:i}}export{g as a};
|
|
2
|
+
//# sourceMappingURL=chunk-JIJSBQEU.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-FP2LZG6I.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-JZLYRNNP.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as p}from"./chunk-Y3BNMQFP.mjs";import{b as o,d as c,e as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as p}from"./chunk-Y3BNMQFP.mjs";import{b as o,d as c,e as g}from"./chunk-J4CPYFK6.mjs";import{a as m,c as t,e as d}from"./chunk-R53MCZI6.mjs";import{c as u,d as f,e as l}from"./chunk-LHEH7L4L.mjs";import P from"bignumber.js";var I={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function _({minGasLimit:r=String(5e4),gasLimit:e,gasPrice:i,data:k,gasPerDataByte:v,gasPriceModifier:G,defaultGasPrice:h=String(1e9),chainId:a}){let n=k||"",B=c(e)?e:r,L=p({data:n})?5e4:0,T=new P(B).plus(L).toNumber(),y=g(i)?i:h,x=new m({nonce:BigInt(0),value:BigInt(0),receiver:new t(I.to),sender:new t(I.to),gasPrice:BigInt(y),gasLimit:BigInt(T),data:Buffer.from(n.trim()),chainID:a,version:1});try{return new d().computeTransactionFee(x,{gasPerDataByte:BigInt(v),minGasLimit:BigInt(r),gasPriceModifier:parseFloat(G),chainID:a}).toString(10)}catch(s){return console.error(s),o}}export{_ as a};
|
|
2
|
+
//# sourceMappingURL=chunk-KN7QMGWV.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-HQQMSHTW.mjs";import{b as e,c as r,f as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-HQQMSHTW.mjs";import{b as e,c as r,f as i}from"./chunk-J4CPYFK6.mjs";import s from"bignumber.js";var n=t=>{if(m(t))return;let o=i({input:String(t.value??e),decimals:Number(t.decimals??r),showLastNonZeroDecimal:!0});return new s(t.usdPrice??"1").times(o).toString()};export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-KSKOSHYV.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-V6GKT3ZN.mjs";import{a as c}from"./chunk-ETES5ZQ7.mjs";import{a}from"./chunk-YUFPUG5O.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-LDOKRGUQ.mjs.map
|