@multiversx/sdk-dapp 5.3.1 → 5.3.3
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 +1 -1
- package/out/__chunks__/chunk-2JFN726G.mjs +2 -0
- package/out/__chunks__/chunk-2JFN726G.mjs.map +7 -0
- package/out/__chunks__/chunk-2JKCBTYK.mjs +2 -0
- package/out/__chunks__/chunk-2JKCBTYK.mjs.map +7 -0
- package/out/__chunks__/chunk-2QIUCSYX.mjs +2 -0
- package/out/__chunks__/chunk-2QIUCSYX.mjs.map +7 -0
- package/out/__chunks__/chunk-2XIBNXVY.mjs +2 -0
- package/out/__chunks__/chunk-2XIBNXVY.mjs.map +7 -0
- package/out/__chunks__/chunk-3EKM2Y4K.mjs +2 -0
- package/out/__chunks__/chunk-3EKM2Y4K.mjs.map +7 -0
- package/out/__chunks__/chunk-3G2Q2LCB.mjs +2 -0
- package/out/__chunks__/chunk-3GRRAVW4.mjs +2 -0
- package/out/__chunks__/chunk-3GRRAVW4.mjs.map +7 -0
- package/out/__chunks__/chunk-3IYTFWEN.mjs +2 -0
- package/out/__chunks__/chunk-3KJMEECV.mjs +2 -0
- package/out/__chunks__/chunk-3NSS3FT6.mjs +2 -0
- package/out/__chunks__/chunk-3VIMQHXJ.mjs +2 -0
- package/out/__chunks__/chunk-3VIMQHXJ.mjs.map +7 -0
- package/out/__chunks__/chunk-4PRJNNSH.mjs +2 -0
- package/out/__chunks__/chunk-4PRJNNSH.mjs.map +7 -0
- package/out/__chunks__/chunk-53NQH7NR.mjs +2 -0
- package/out/__chunks__/chunk-53NQH7NR.mjs.map +7 -0
- package/out/__chunks__/chunk-5HEWN34K.mjs +2 -0
- package/out/__chunks__/chunk-5HEWN34K.mjs.map +7 -0
- package/out/__chunks__/chunk-5P3UEE7C.mjs +1 -0
- package/out/__chunks__/chunk-5R7MHTVH.mjs +2 -0
- package/out/__chunks__/chunk-5R7MHTVH.mjs.map +7 -0
- package/out/__chunks__/chunk-5WJQ2KWS.mjs +2 -0
- package/out/__chunks__/chunk-65F23E3Q.mjs +2 -0
- package/out/__chunks__/chunk-6M3IQXQF.mjs +2 -0
- package/out/__chunks__/chunk-6PCK2RPQ.mjs +2 -0
- package/out/__chunks__/chunk-6QPOPWIN.mjs +2 -0
- package/out/__chunks__/chunk-6RCSIT2P.mjs +2 -0
- package/out/__chunks__/chunk-6RCSIT2P.mjs.map +7 -0
- package/out/__chunks__/chunk-6RYKBAUE.mjs +2 -0
- package/out/__chunks__/chunk-7BESPSVI.mjs +2 -0
- package/out/__chunks__/chunk-7BESPSVI.mjs.map +7 -0
- package/out/__chunks__/chunk-7FV6DEQX.mjs +2 -0
- package/out/__chunks__/chunk-7GWD5XR7.mjs +2 -0
- package/out/__chunks__/chunk-7GWD5XR7.mjs.map +7 -0
- package/out/__chunks__/chunk-7TH3QSCV.mjs +2 -0
- package/out/__chunks__/chunk-7TH3QSCV.mjs.map +7 -0
- package/out/__chunks__/chunk-AFOS3Q4N.mjs +2 -0
- package/out/__chunks__/chunk-AIQTIXFV.mjs +2 -0
- package/out/__chunks__/chunk-AMXCV2YT.mjs +2 -0
- package/out/__chunks__/chunk-AMXCV2YT.mjs.map +7 -0
- package/out/__chunks__/chunk-AOLW46E4.mjs +6 -0
- package/out/__chunks__/chunk-APCGI2A5.mjs +2 -0
- package/out/__chunks__/chunk-AWH3CO5C.mjs +2 -0
- package/out/__chunks__/chunk-BE5OKL3L.mjs +2 -0
- package/out/__chunks__/chunk-BE5OKL3L.mjs.map +7 -0
- package/out/__chunks__/chunk-BFD5ZJOK.mjs +1 -0
- package/out/__chunks__/chunk-BHWSBAMZ.mjs +2 -0
- package/out/__chunks__/chunk-BJSQMG6V.mjs +2 -0
- package/out/__chunks__/chunk-BJSQMG6V.mjs.map +7 -0
- package/out/__chunks__/chunk-BODQ3QWR.mjs +2 -0
- package/out/__chunks__/chunk-BODQ3QWR.mjs.map +7 -0
- package/out/__chunks__/chunk-BSA3IGL6.mjs +2 -0
- package/out/__chunks__/chunk-C4FY7JBD.mjs +2 -0
- package/out/__chunks__/chunk-C4FY7JBD.mjs.map +7 -0
- package/out/__chunks__/chunk-C4SERLP4.mjs +1 -0
- package/out/__chunks__/chunk-CAOL6XLD.mjs +2 -0
- package/out/__chunks__/chunk-CMERGCP7.mjs +2 -0
- package/out/__chunks__/chunk-CUDPQDXY.mjs +1 -0
- package/out/__chunks__/chunk-D27ZK232.mjs +2 -0
- package/out/__chunks__/chunk-D4JFV2LM.mjs +2 -0
- package/out/__chunks__/chunk-D6CXZV4Y.mjs +2 -0
- package/out/__chunks__/chunk-D6CXZV4Y.mjs.map +7 -0
- package/out/__chunks__/chunk-DCLI63KS.mjs +2 -0
- package/out/__chunks__/chunk-DCLI63KS.mjs.map +7 -0
- package/out/__chunks__/chunk-DIHGGV4M.mjs +2 -0
- package/out/__chunks__/chunk-DIHGGV4M.mjs.map +7 -0
- package/out/__chunks__/chunk-DNYE6AJI.mjs +2 -0
- package/out/__chunks__/chunk-EPB4JKWX.mjs +2 -0
- package/out/__chunks__/chunk-EPB4JKWX.mjs.map +7 -0
- package/out/__chunks__/chunk-ERDTZ52C.mjs +2 -0
- package/out/__chunks__/chunk-F2W755EK.mjs +2 -0
- package/out/__chunks__/chunk-FDR5TTUS.mjs +2 -0
- package/out/__chunks__/chunk-FE54XZXM.mjs +2 -0
- package/out/__chunks__/chunk-FE54XZXM.mjs.map +7 -0
- package/out/__chunks__/chunk-FK6DWWZF.mjs +2 -0
- package/out/__chunks__/chunk-FKUMHDP5.mjs +2 -0
- package/out/__chunks__/chunk-FNEL7WRG.mjs +2 -0
- package/out/__chunks__/chunk-FNEL7WRG.mjs.map +7 -0
- package/out/__chunks__/chunk-GBDHEWNQ.mjs +2 -0
- package/out/__chunks__/chunk-GEB2W7CV.mjs +1 -0
- package/out/__chunks__/chunk-GYYGYOIE.mjs +2 -0
- package/out/__chunks__/chunk-HSF3JATH.mjs +2 -0
- package/out/__chunks__/chunk-HTT67LH3.mjs +2 -0
- package/out/__chunks__/chunk-HX3JKALT.mjs +2 -0
- package/out/__chunks__/chunk-HX3JKALT.mjs.map +7 -0
- package/out/__chunks__/chunk-I3ILB737.mjs +2 -0
- package/out/__chunks__/chunk-IAN3XFXS.mjs +2 -0
- package/out/__chunks__/chunk-IHAZNPKL.mjs +2 -0
- package/out/__chunks__/chunk-IHAZNPKL.mjs.map +7 -0
- package/out/__chunks__/chunk-IHSJITVR.mjs +2 -0
- package/out/__chunks__/chunk-IRFXPRDX.mjs +2 -0
- package/out/__chunks__/chunk-IRFXPRDX.mjs.map +7 -0
- package/out/__chunks__/chunk-IVMRBKXP.mjs +2 -0
- package/out/__chunks__/chunk-IVMRBKXP.mjs.map +7 -0
- package/out/__chunks__/chunk-IWP36NOU.mjs +2 -0
- package/out/__chunks__/chunk-IZTW4MG5.mjs +2 -0
- package/out/__chunks__/chunk-IZTW4MG5.mjs.map +7 -0
- package/out/__chunks__/chunk-JA27GJYB.mjs +2 -0
- package/out/__chunks__/chunk-JA27GJYB.mjs.map +7 -0
- package/out/__chunks__/chunk-JJUR63EV.mjs +2 -0
- package/out/__chunks__/chunk-JMK6YN6B.mjs +2 -0
- package/out/__chunks__/chunk-JO7KFAZC.mjs +2 -0
- package/out/__chunks__/chunk-JQ3KV55D.mjs +2 -0
- package/out/__chunks__/chunk-K4E7GCWI.mjs +2 -0
- package/out/__chunks__/chunk-KDTDQL52.mjs +2 -0
- package/out/__chunks__/chunk-KDTDQL52.mjs.map +7 -0
- package/out/__chunks__/chunk-KKQKER7U.mjs +2 -0
- package/out/__chunks__/chunk-KKQKER7U.mjs.map +7 -0
- package/out/__chunks__/chunk-KLI5H35D.mjs +2 -0
- package/out/__chunks__/chunk-KMITMS2L.mjs +2 -0
- package/out/__chunks__/chunk-KMITMS2L.mjs.map +7 -0
- package/out/__chunks__/chunk-KOUT2Y7O.mjs +2 -0
- package/out/__chunks__/chunk-KOUT2Y7O.mjs.map +7 -0
- package/out/__chunks__/chunk-KYQ5IP6W.mjs +2 -0
- package/out/__chunks__/chunk-LASOW7GT.mjs +2 -0
- package/out/__chunks__/chunk-LASOW7GT.mjs.map +7 -0
- package/out/__chunks__/chunk-LFMHK4UE.mjs +2 -0
- package/out/__chunks__/chunk-LFMHK4UE.mjs.map +7 -0
- package/out/__chunks__/chunk-LGGG3HW7.mjs +2 -0
- package/out/__chunks__/chunk-LQAAQV3I.mjs +2 -0
- package/out/__chunks__/chunk-LW6KBFPA.mjs +2 -0
- package/out/__chunks__/chunk-LW6KBFPA.mjs.map +7 -0
- package/out/__chunks__/chunk-LZWEL473.mjs +2 -0
- package/out/__chunks__/chunk-LZWEL473.mjs.map +7 -0
- package/out/__chunks__/chunk-M3F2J3PW.mjs +2 -0
- package/out/__chunks__/chunk-M3F2J3PW.mjs.map +7 -0
- package/out/__chunks__/chunk-MTGS435F.mjs +2 -0
- package/out/__chunks__/chunk-N56SMVGU.mjs +2 -0
- package/out/__chunks__/chunk-N56SMVGU.mjs.map +7 -0
- package/out/__chunks__/chunk-NGJIMP5Y.mjs +2 -0
- package/out/__chunks__/chunk-NQE5YCZP.mjs +2 -0
- package/out/__chunks__/chunk-NWRCQLFI.mjs +2 -0
- package/out/__chunks__/chunk-NYZ726DG.mjs +2 -0
- package/out/__chunks__/chunk-O3F75VWG.mjs +2 -0
- package/out/__chunks__/chunk-O3F75VWG.mjs.map +7 -0
- package/out/__chunks__/chunk-OBIQ63DJ.mjs +2 -0
- package/out/__chunks__/chunk-ONT6BGYB.mjs +2 -0
- package/out/__chunks__/chunk-ONT6BGYB.mjs.map +7 -0
- package/out/__chunks__/chunk-OSV2GCKV.mjs +2 -0
- package/out/__chunks__/chunk-PCPUKFTJ.mjs +2 -0
- package/out/__chunks__/chunk-PCPUKFTJ.mjs.map +7 -0
- package/out/__chunks__/chunk-PGPTO2Q4.mjs +2 -0
- package/out/__chunks__/chunk-PGPTO2Q4.mjs.map +7 -0
- package/out/__chunks__/chunk-PIFCCIF3.mjs +2 -0
- package/out/__chunks__/chunk-PJ5TKZD5.mjs +2 -0
- package/out/__chunks__/chunk-PN7JDWSZ.mjs +2 -0
- package/out/__chunks__/chunk-PS3SWN5M.mjs +2 -0
- package/out/__chunks__/chunk-PS3SWN5M.mjs.map +7 -0
- package/out/__chunks__/chunk-PWAP64SN.mjs +2 -0
- package/out/__chunks__/chunk-PWAP64SN.mjs.map +7 -0
- package/out/__chunks__/chunk-PWOYKKUY.mjs +2 -0
- package/out/__chunks__/chunk-PWOYKKUY.mjs.map +7 -0
- package/out/__chunks__/chunk-PYRTFEMB.mjs +2 -0
- package/out/__chunks__/chunk-PYRTFEMB.mjs.map +7 -0
- package/out/__chunks__/chunk-Q7YFEWWK.mjs +2 -0
- package/out/__chunks__/chunk-Q7YFEWWK.mjs.map +7 -0
- package/out/__chunks__/chunk-QFXS7HGL.mjs +2 -0
- package/out/__chunks__/chunk-QMZJNNU4.mjs +2 -0
- package/out/__chunks__/chunk-QMZJNNU4.mjs.map +7 -0
- package/out/__chunks__/chunk-QNELH2S2.mjs +2 -0
- package/out/__chunks__/chunk-QNYO7NI5.mjs +2 -0
- package/out/__chunks__/chunk-QNYO7NI5.mjs.map +7 -0
- package/out/__chunks__/chunk-QX32V6TT.mjs +2 -0
- package/out/__chunks__/chunk-QX32V6TT.mjs.map +7 -0
- package/out/__chunks__/chunk-QZC64RDG.mjs +2 -0
- package/out/__chunks__/chunk-RDEVBV56.mjs +2 -0
- package/out/__chunks__/chunk-RDEVBV56.mjs.map +7 -0
- package/out/__chunks__/chunk-RIPIZH54.mjs +2 -0
- package/out/__chunks__/chunk-RMLVJDCQ.mjs +2 -0
- package/out/__chunks__/chunk-RVBZZQS2.mjs +2 -0
- package/out/__chunks__/chunk-RXRVBUAX.mjs +3 -0
- package/out/__chunks__/chunk-SBCXU7OA.mjs +2 -0
- package/out/__chunks__/chunk-SBCXU7OA.mjs.map +7 -0
- package/out/__chunks__/chunk-SFXZJSEY.mjs +2 -0
- package/out/__chunks__/chunk-SNPF3BD2.mjs +2 -0
- package/out/__chunks__/chunk-SNPF3BD2.mjs.map +7 -0
- package/out/__chunks__/chunk-SYHILLXA.mjs +2 -0
- package/out/__chunks__/chunk-TD26OL6Y.mjs +2 -0
- package/out/__chunks__/chunk-TD26OL6Y.mjs.map +7 -0
- package/out/__chunks__/chunk-TRUOISVH.mjs +2 -0
- package/out/__chunks__/chunk-TWLO2IAN.mjs +2 -0
- package/out/__chunks__/chunk-TWLO2IAN.mjs.map +7 -0
- package/out/__chunks__/chunk-TWYGNEQS.mjs +2 -0
- package/out/__chunks__/chunk-TWYGNEQS.mjs.map +7 -0
- package/out/__chunks__/chunk-U6RAWQXO.mjs +1 -0
- package/out/__chunks__/chunk-UJTYOT5N.mjs +2 -0
- package/out/__chunks__/chunk-UJTYOT5N.mjs.map +7 -0
- package/out/__chunks__/chunk-UWWAVJFM.mjs +2 -0
- package/out/__chunks__/chunk-V5ZSFCKJ.mjs +2 -0
- package/out/__chunks__/chunk-V5ZSFCKJ.mjs.map +7 -0
- package/out/__chunks__/chunk-V7K77GSE.mjs +2 -0
- package/out/__chunks__/chunk-VC74WYUB.mjs +2 -0
- package/out/__chunks__/chunk-VCPH27TY.mjs +2 -0
- package/out/__chunks__/chunk-VCPH27TY.mjs.map +7 -0
- package/out/__chunks__/chunk-VGDWWBLN.mjs +2 -0
- package/out/__chunks__/chunk-VSMFXZJI.mjs +2 -0
- package/out/__chunks__/chunk-VSMFXZJI.mjs.map +7 -0
- package/out/__chunks__/chunk-W2A2N772.mjs +2 -0
- package/out/__chunks__/chunk-W3S6I34V.mjs +2 -0
- package/out/__chunks__/chunk-W3S6I34V.mjs.map +7 -0
- package/out/__chunks__/chunk-WFMBEYKX.mjs +2 -0
- package/out/__chunks__/chunk-WFMBEYKX.mjs.map +7 -0
- package/out/__chunks__/chunk-WMRVRNAI.mjs +2 -0
- package/out/__chunks__/chunk-WMRVRNAI.mjs.map +7 -0
- package/out/__chunks__/chunk-WYE5FJIJ.mjs +2 -0
- package/out/__chunks__/chunk-WYE5FJIJ.mjs.map +7 -0
- package/out/__chunks__/chunk-WZEDZF3Q.mjs +2 -0
- package/out/__chunks__/chunk-X6D2T4UF.mjs +2 -0
- package/out/__chunks__/chunk-X6D2T4UF.mjs.map +7 -0
- package/out/__chunks__/chunk-XA4YS4GK.mjs +2 -0
- package/out/__chunks__/chunk-XA4YS4GK.mjs.map +7 -0
- package/out/__chunks__/chunk-XA6ZDGIQ.mjs +2 -0
- package/out/__chunks__/chunk-XA6ZDGIQ.mjs.map +7 -0
- package/out/__chunks__/chunk-XHCLYR42.mjs +2 -0
- package/out/__chunks__/chunk-XHCLYR42.mjs.map +7 -0
- package/out/__chunks__/chunk-XLMQWFKS.mjs +2 -0
- package/out/__chunks__/chunk-XLMQWFKS.mjs.map +7 -0
- package/out/__chunks__/chunk-Y6QPE6SZ.mjs +2 -0
- package/out/__chunks__/chunk-YGHJRPPY.mjs +2 -0
- package/out/__chunks__/chunk-YGHJRPPY.mjs.map +7 -0
- package/out/__chunks__/chunk-YMDS57T6.mjs +2 -0
- package/out/__chunks__/chunk-YMDS57T6.mjs.map +7 -0
- package/out/__chunks__/chunk-YXNJS4KL.mjs +2 -0
- package/out/__chunks__/chunk-Z6OAKBWP.mjs +2 -0
- package/out/__chunks__/chunk-Z6OAKBWP.mjs.map +7 -0
- package/out/__chunks__/chunk-ZOYJTXNI.mjs +2 -0
- package/out/__chunks__/chunk-ZOYJTXNI.mjs.map +7 -0
- package/out/apiCalls/account/getAccountFromApi.cjs +1 -1
- package/out/apiCalls/account/getAccountFromApi.cjs.map +3 -3
- package/out/apiCalls/account/getAccountFromApi.mjs +1 -1
- package/out/apiCalls/account/getScamAddressData.cjs +1 -1
- package/out/apiCalls/account/getScamAddressData.cjs.map +3 -3
- package/out/apiCalls/account/getScamAddressData.mjs +1 -1
- package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.cjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.cjs.map +3 -3
- package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
- package/out/apiCalls/configuration/getNetworkConfigFromApi.mjs +1 -1
- package/out/apiCalls/configuration/getServerConfiguration.mjs +1 -1
- package/out/apiCalls/economics/getEconomics.cjs +1 -1
- package/out/apiCalls/economics/getEconomics.cjs.map +3 -3
- package/out/apiCalls/economics/getEconomics.mjs +1 -1
- package/out/apiCalls/endpoints.cjs +1 -1
- package/out/apiCalls/endpoints.cjs.map +3 -3
- package/out/apiCalls/endpoints.d.ts +1 -0
- package/out/apiCalls/endpoints.mjs +1 -1
- package/out/apiCalls/tokens/getPersistedToken.mjs +1 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.cjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.cjs.map +3 -3
- package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.mjs.map +4 -4
- package/out/apiCalls/tokens/tokenDataStorage.cjs +1 -1
- package/out/apiCalls/tokens/tokenDataStorage.cjs.map +3 -3
- package/out/apiCalls/tokens/tokenDataStorage.d.ts +1 -3
- package/out/apiCalls/tokens/tokenDataStorage.mjs +1 -1
- package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.cjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.cjs.map +3 -3
- package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.mjs.map +2 -2
- package/out/apiCalls/transactions/getTransactions.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/utils/axiosFetcher.mjs +1 -1
- package/out/apiCalls/utils/axiosFetcher.mjs.map +4 -4
- package/out/apiCalls/utils/axiosInstance.cjs +1 -1
- package/out/apiCalls/utils/axiosInstance.cjs.map +3 -3
- package/out/apiCalls/utils/axiosInstance.mjs +1 -1
- package/out/constants/browser.constants.mjs +1 -1
- package/out/constants/browser.constants.mjs.map +4 -4
- package/out/constants/mvx.constants.cjs +1 -1
- package/out/constants/mvx.constants.cjs.map +3 -3
- package/out/constants/mvx.constants.d.ts +1 -0
- package/out/constants/mvx.constants.mjs +1 -1
- package/out/constants/storage.constants.cjs.map +1 -1
- package/out/constants/storage.constants.d.ts +1 -1
- package/out/constants/storage.constants.mjs +1 -1
- package/out/constants/webWalletProvider.constants.mjs +1 -1
- package/out/constants/webWalletProvider.constants.mjs.map +4 -4
- package/out/constants/window.constants.cjs +1 -1
- package/out/constants/window.constants.cjs.map +1 -1
- package/out/constants/window.constants.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.cjs +1 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.cjs.map +3 -3
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.cjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.cjs.map +3 -3
- package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
- package/out/controllers/TransactionsTableController/index.mjs +1 -1
- package/out/lib/sdkDappUi.mjs +1 -1
- package/out/managers/LogoutManager/LogoutManager.cjs +1 -1
- package/out/managers/LogoutManager/LogoutManager.cjs.map +3 -3
- package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/ToastManager/ToastUICoordinator.mjs +1 -1
- package/out/managers/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.cjs +1 -1
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.cjs.map +3 -3
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
- package/out/managers/ToastManager/helpers/createTransactionToast.mjs +1 -1
- package/out/managers/ToastManager/helpers/getToastDataStateByStatus.cjs +1 -1
- package/out/managers/ToastManager/helpers/getToastDataStateByStatus.cjs.map +3 -3
- package/out/managers/ToastManager/helpers/getToastDataStateByStatus.mjs +1 -1
- package/out/managers/ToastManager/helpers/getToastTransactionsStatus.cjs.map +1 -1
- package/out/managers/ToastManager/helpers/getToastTransactionsStatus.mjs +1 -1
- package/out/managers/ToastManager/index.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.cjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.cjs.map +3 -3
- package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.cjs +1 -1
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.cjs.map +3 -3
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.cjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.cjs.map +3 -3
- package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.cjs +1 -1
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.cjs.map +3 -3
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.d.ts +1 -1
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.mjs +1 -1
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs.map +3 -3
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/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.cjs +1 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.cjs.map +3 -3
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +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/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/methods/account/getAccount.cjs +1 -1
- package/out/methods/account/getAccount.cjs.map +3 -3
- package/out/methods/account/getAccount.mjs +1 -1
- package/out/methods/account/getAccountInfo.cjs +1 -1
- package/out/methods/account/getAccountInfo.cjs.map +3 -3
- package/out/methods/account/getAccountInfo.d.ts +1 -1
- package/out/methods/account/getAccountInfo.mjs +1 -1
- package/out/methods/account/getAccountInfo.mjs.map +2 -2
- package/out/methods/account/getAddress.cjs +1 -1
- package/out/methods/account/getAddress.cjs.map +3 -3
- 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/gasStationMetadata/setGasStationMetadata.cjs.map +7 -0
- package/out/methods/initApp/gasStationMetadata/setGasStationMetadata.mjs +2 -0
- package/out/methods/initApp/helpers/waitForStoreRehydration.cjs +2 -0
- package/out/methods/initApp/helpers/waitForStoreRehydration.cjs.map +7 -0
- package/out/methods/initApp/helpers/waitForStoreRehydration.d.ts +6 -0
- package/out/methods/initApp/helpers/waitForStoreRehydration.mjs +2 -0
- package/out/methods/initApp/initApp.cjs +1 -1
- package/out/methods/initApp/initApp.cjs.map +3 -3
- package/out/methods/initApp/initApp.d.ts +5 -0
- package/out/methods/initApp/initApp.mjs +1 -1
- package/out/methods/initApp/initApp.mjs.map +3 -3
- package/out/methods/initApp/initApp.types.cjs.map +1 -1
- package/out/methods/initApp/initApp.types.d.ts +2 -0
- package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs +1 -1
- package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs.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/loginInfo/getLoginInfo.mjs.map +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/checkTransactionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.cjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.cjs.map +3 -3
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionFailure.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionStatusUpdate.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/updateTransactionAndSessionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.cjs +1 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.cjs.map +3 -3
- package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactions.mjs.map +1 -1
- package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactionsSessions.mjs.map +1 -1
- package/out/methods/transactions/getPendingTransactions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactions.mjs.map +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.mjs.map +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.mjs.map +1 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs.map +1 -1
- package/out/methods/transactions/getTransactionSessions.mjs +1 -1
- package/out/methods/transactions/getTransactionSessions.mjs.map +1 -1
- package/out/providers/DappProvider/DappProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.cjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.cjs.map +3 -3
- 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/helpers/getAccountFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getMultisigLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/loginWithNativeToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/loginWithoutNativeToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.cjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.cjs.map +3 -3
- 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.cjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.cjs.map +3 -3
- 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.cjs +1 -1
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.cjs.map +3 -3
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
- package/out/providers/DappProvider/index.mjs +1 -1
- package/out/providers/ProviderFactory.cjs +1 -1
- package/out/providers/ProviderFactory.cjs.map +3 -3
- 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.cjs +1 -1
- package/out/providers/helpers/restoreProvider.cjs.map +3 -3
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs.map +3 -3
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.d.ts +3 -0
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs.map +2 -2
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.cjs +1 -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.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs +1 -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.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs.map +3 -3
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/authenticateLedgerAccount.cjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/authenticateLedgerAccount.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/authenticateLedgerAccount.d.ts +16 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/authenticateLedgerAccount.mjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/getAuthTokenText.cjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/getAuthTokenText.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/getAuthTokenText.mjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/getLedgerVersionOptions.cjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/getLedgerVersionOptions.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/getLedgerVersionOptions.mjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/secondsToTimeString.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/secondsToTimeString.mjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/index.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/index.mjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.cjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.mjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.types.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.types.d.ts +8 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/waitForLedgerSelection.cjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/waitForLedgerSelection.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/waitForLedgerSelection.d.ts +19 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/waitForLedgerSelection.mjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/index.cjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/index.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/index.d.ts +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/index.mjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/getLedgerProvider.cjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/getLedgerProvider.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/getLedgerProvider.d.ts +8 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/getLedgerProvider.mjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/getLedgerConfiguration.cjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/getLedgerConfiguration.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/getLedgerConfiguration.mjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/initHwProvider.cjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/initHwProvider.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/initHwProvider.d.ts +12 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/initHwProvider.mjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/index.cjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/index.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/index.d.ts +1 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/index.mjs +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.d.ts +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/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs.map +3 -3
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.cjs +1 -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.mjs +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.cjs +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.cjs.map +3 -3
- package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.cjs.map +3 -3
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs.map +3 -3
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.cjs.map +3 -3
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.cjs.map +3 -3
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getGasPriceOptions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.cjs.map +3 -3
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs.map +3 -3
- package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccount.mjs.map +1 -1
- package/out/react/account/useGetAccountInfo.d.ts +1 -1
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetAccountInfo.mjs.map +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs.map +1 -1
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/account/useGetLatestNonce.mjs.map +1 -1
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs.map +1 -1
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.mjs.map +1 -1
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactions.mjs.map +1 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs.map +1 -1
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.mjs.map +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs.map +1 -1
- package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactions.mjs.map +1 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs.map +1 -1
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.mjs.map +1 -1
- package/out/services/nativeAuth/helpers/decodeLoginToken.mjs +1 -1
- package/out/services/nativeAuth/helpers/decodeNativeAuthToken.mjs +1 -1
- package/out/services/nativeAuth/helpers/getLatestBlockHash.mjs +1 -1
- package/out/services/nativeAuth/helpers/index.mjs +1 -1
- package/out/services/nativeAuth/index.mjs +1 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.cjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.cjs.map +3 -3
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getTokenExpiration.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.cjs +1 -1
- package/out/services/nativeAuth/nativeAuth.cjs.map +3 -3
- package/out/services/nativeAuth/nativeAuth.d.ts +1 -1
- package/out/services/nativeAuth/nativeAuth.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.cjs +1 -1
- package/out/store/actions/config/configActions.cjs.map +3 -3
- package/out/store/actions/config/configActions.d.ts +4 -2
- package/out/store/actions/config/configActions.mjs +1 -1
- package/out/store/actions/config/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.cjs +1 -1
- package/out/store/actions/toasts/toastsActions.cjs.map +3 -3
- 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.cjs +1 -1
- package/out/store/middleware/logoutMiddleware.cjs.map +3 -3
- package/out/store/middleware/logoutMiddleware.mjs +1 -1
- package/out/store/selectors/accountSelectors.d.ts +1 -1
- package/out/store/selectors/accountSelectors.mjs +1 -1
- package/out/store/selectors/configSelectors.cjs +1 -1
- package/out/store/selectors/configSelectors.cjs.map +3 -3
- package/out/store/selectors/configSelectors.d.ts +2 -1
- package/out/store/selectors/configSelectors.mjs +1 -1
- package/out/store/selectors/networkSelectors.d.ts +1 -1
- package/out/store/selectors/storeSelector.mjs +1 -1
- package/out/store/selectors/storeSelector.mjs.map +4 -4
- 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/config/config.types.cjs +1 -1
- package/out/store/slices/config/config.types.cjs.map +1 -1
- package/out/store/slices/config/config.types.d.ts +8 -0
- package/out/store/slices/config/configSlice.cjs +1 -1
- package/out/store/slices/config/configSlice.cjs.map +2 -2
- package/out/store/slices/config/configSlice.mjs +1 -1
- package/out/store/slices/config/index.mjs +1 -1
- package/out/store/storage/index.mjs +1 -1
- package/out/store/storage/storageCallback.mjs +1 -1
- package/out/store/store.cjs +1 -1
- package/out/store/store.cjs.map +3 -3
- package/out/store/store.mjs +1 -1
- package/out/types/network.types.mjs +0 -1
- package/out/types/suspiciousLink.types.mjs +0 -1
- package/out/types/websocket.types.mjs +0 -1
- package/out/utils/ComponentFactory.cjs +1 -1
- package/out/utils/ComponentFactory.cjs.map +3 -3
- package/out/utils/ComponentFactory.mjs +1 -1
- package/out/utils/account/fetchAccount.mjs +1 -1
- package/out/utils/account/refreshAccount.cjs +1 -1
- package/out/utils/account/refreshAccount.cjs.map +3 -3
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs.map +4 -4
- package/out/utils/dateTime/index.mjs +1 -1
- package/out/utils/decoders/base64Utils.cjs +1 -1
- package/out/utils/decoders/base64Utils.cjs.map +2 -2
- package/out/utils/decoders/base64Utils.mjs +1 -1
- package/out/utils/decoders/isAscii.mjs +1 -1
- package/out/utils/decoders/isAscii.mjs.map +4 -4
- package/out/utils/decoders/stringContainsNumbers.mjs +1 -1
- package/out/utils/decoders/stringContainsNumbers.mjs.map +4 -4
- package/out/utils/network/index.mjs +1 -1
- package/out/utils/transactions/explorerUrlBuilder.mjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.cjs.map +2 -2
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.mjs.map +4 -4
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.cjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.cjs.map +3 -3
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/index.cjs +1 -1
- package/out/utils/transactions/getDecodedDataField/index.cjs.map +2 -2
- package/out/utils/transactions/getDecodedDataField/index.d.ts +0 -1
- package/out/utils/transactions/getDecodedDataField/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.cjs.map +3 -3
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.cjs.map +3 -3
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.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/getValueFromDataField.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.cjs.map +3 -3
- 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/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.cjs.map +3 -3
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.cjs.map +3 -3
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.cjs.map +3 -3
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.cjs.map +3 -3
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.d.ts +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/tests/baseTransactionMock.d.ts +27 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/extendedTransactionMock.d.ts +2 -0
- package/out/utils/transactions/getInterpretedTransaction/index.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/index.cjs.map +2 -2
- package/out/utils/transactions/getInterpretedTransaction/index.d.ts +0 -1
- package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
- package/out/utils/transactions/getScamFlag.cjs.map +1 -1
- package/out/utils/transactions/getScamFlag.d.ts +1 -1
- package/out/utils/transactions/getScamFlag.mjs.map +1 -1
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.cjs.map +3 -3
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.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.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/index.cjs.map +2 -2
- package/out/utils/transactions/getTransactionsHistory/index.d.ts +0 -1
- package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
- package/out/utils/validation/isContract.cjs +1 -1
- package/out/utils/validation/isContract.cjs.map +3 -3
- package/out/utils/validation/isContract.mjs +1 -1
- package/out/utils/validation/maxDecimals.mjs +1 -1
- package/out/utils/validation/maxDecimals.mjs.map +4 -4
- package/out/utils/visual/switchTheme.cjs.map +1 -1
- package/out/utils/visual/switchTheme.d.ts +1 -1
- package/out/utils/visual/switchTheme.mjs +1 -1
- package/out/utils/window/buildUrlParams.mjs +1 -1
- package/out/utils/window/buildUrlParams.mjs.map +4 -4
- package/out/utils/window/getIsAuthRoute.mjs +1 -1
- package/out/utils/window/getIsAuthRoute.mjs.map +4 -4
- package/out/utils/window/getIsInIframe.mjs +1 -1
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/out/utils/window/sanitizeCallbackUrl.mjs +1 -1
- package/out/utils/window/sanitizeCallbackUrl.mjs.map +4 -4
- package/package.json +2 -5
- package/out/__chunks__/chunk-22ELCCFJ.mjs +0 -2
- package/out/__chunks__/chunk-22ELCCFJ.mjs.map +0 -7
- package/out/__chunks__/chunk-2BSPSW6X.mjs +0 -1
- package/out/__chunks__/chunk-2ON3KLCT.mjs +0 -2
- package/out/__chunks__/chunk-2RAULLHL.mjs +0 -2
- package/out/__chunks__/chunk-2RAULLHL.mjs.map +0 -7
- package/out/__chunks__/chunk-2XGXXRSH.mjs +0 -2
- package/out/__chunks__/chunk-2XGXXRSH.mjs.map +0 -7
- package/out/__chunks__/chunk-33MSDZAP.mjs +0 -2
- package/out/__chunks__/chunk-33MSDZAP.mjs.map +0 -7
- package/out/__chunks__/chunk-3GGBXXXJ.mjs +0 -2
- package/out/__chunks__/chunk-3GGBXXXJ.mjs.map +0 -7
- package/out/__chunks__/chunk-3KUTPB2M.mjs +0 -2
- package/out/__chunks__/chunk-3KUTPB2M.mjs.map +0 -7
- package/out/__chunks__/chunk-3PAZABVI.mjs +0 -2
- package/out/__chunks__/chunk-3RLAFHQ5.mjs +0 -2
- package/out/__chunks__/chunk-3RLAFHQ5.mjs.map +0 -7
- package/out/__chunks__/chunk-3S57OP4Z.mjs +0 -2
- package/out/__chunks__/chunk-3XTYIGW5.mjs +0 -2
- package/out/__chunks__/chunk-3ZT74S43.mjs +0 -2
- package/out/__chunks__/chunk-442O3UMZ.mjs +0 -1
- package/out/__chunks__/chunk-4FXREOAU.mjs +0 -2
- package/out/__chunks__/chunk-4G7O2SEH.mjs +0 -2
- package/out/__chunks__/chunk-4G7O2SEH.mjs.map +0 -7
- package/out/__chunks__/chunk-4SS6EY66.mjs +0 -2
- package/out/__chunks__/chunk-4US7HVCR.mjs +0 -1
- package/out/__chunks__/chunk-4VA2SULD.mjs +0 -2
- package/out/__chunks__/chunk-4VA2SULD.mjs.map +0 -7
- package/out/__chunks__/chunk-4VUMAG4J.mjs +0 -2
- package/out/__chunks__/chunk-4VUMAG4J.mjs.map +0 -7
- package/out/__chunks__/chunk-4Y3336TP.mjs +0 -2
- package/out/__chunks__/chunk-4YBGCRDP.mjs +0 -2
- package/out/__chunks__/chunk-4YBGCRDP.mjs.map +0 -7
- package/out/__chunks__/chunk-4ZWPXO55.mjs +0 -2
- package/out/__chunks__/chunk-4ZWPXO55.mjs.map +0 -7
- package/out/__chunks__/chunk-57EQXIYJ.mjs +0 -2
- package/out/__chunks__/chunk-5DILKRFV.mjs +0 -2
- package/out/__chunks__/chunk-5E32AO3E.mjs +0 -2
- package/out/__chunks__/chunk-5E32AO3E.mjs.map +0 -7
- package/out/__chunks__/chunk-5FPUK3PA.mjs +0 -2
- package/out/__chunks__/chunk-5FPUK3PA.mjs.map +0 -7
- package/out/__chunks__/chunk-5KCP7UJT.mjs +0 -2
- package/out/__chunks__/chunk-5KVNYLOM.mjs +0 -2
- package/out/__chunks__/chunk-5KVNYLOM.mjs.map +0 -7
- package/out/__chunks__/chunk-5Y2ZDPP6.mjs +0 -1
- package/out/__chunks__/chunk-6DHK4ZHY.mjs +0 -2
- package/out/__chunks__/chunk-6DHK4ZHY.mjs.map +0 -7
- package/out/__chunks__/chunk-6ET5BDZH.mjs +0 -1
- package/out/__chunks__/chunk-6GREKTLP.mjs +0 -2
- package/out/__chunks__/chunk-6GREKTLP.mjs.map +0 -7
- package/out/__chunks__/chunk-6JM4DPOH.mjs +0 -2
- package/out/__chunks__/chunk-6JM4DPOH.mjs.map +0 -7
- package/out/__chunks__/chunk-6UIF2KFV.mjs +0 -2
- package/out/__chunks__/chunk-6UIF2KFV.mjs.map +0 -7
- package/out/__chunks__/chunk-7BRIA6SS.mjs +0 -1
- package/out/__chunks__/chunk-7JDTQFLQ.mjs +0 -2
- package/out/__chunks__/chunk-7JDTQFLQ.mjs.map +0 -7
- package/out/__chunks__/chunk-7UA7QAEF.mjs +0 -2
- package/out/__chunks__/chunk-7UA7QAEF.mjs.map +0 -7
- package/out/__chunks__/chunk-A5TUOLPV.mjs +0 -2
- package/out/__chunks__/chunk-A5TUOLPV.mjs.map +0 -7
- package/out/__chunks__/chunk-ABMG4JL2.mjs +0 -2
- package/out/__chunks__/chunk-ABMG4JL2.mjs.map +0 -7
- package/out/__chunks__/chunk-B7YCKWDU.mjs +0 -1
- package/out/__chunks__/chunk-BFNJ4VYH.mjs +0 -2
- package/out/__chunks__/chunk-BFNJ4VYH.mjs.map +0 -7
- package/out/__chunks__/chunk-BKKXLEQ6.mjs +0 -1
- package/out/__chunks__/chunk-C2CYALD3.mjs +0 -2
- package/out/__chunks__/chunk-C4TBDJVT.mjs +0 -2
- package/out/__chunks__/chunk-C4TBDJVT.mjs.map +0 -7
- package/out/__chunks__/chunk-C5SRSULA.mjs +0 -2
- package/out/__chunks__/chunk-C5SRSULA.mjs.map +0 -7
- package/out/__chunks__/chunk-CA5CSAGL.mjs +0 -2
- package/out/__chunks__/chunk-CA5CSAGL.mjs.map +0 -7
- package/out/__chunks__/chunk-CDTYHGXZ.mjs +0 -1
- package/out/__chunks__/chunk-CDWODCD7.mjs +0 -2
- package/out/__chunks__/chunk-CDWODCD7.mjs.map +0 -7
- package/out/__chunks__/chunk-CMIVBHXU.mjs +0 -2
- package/out/__chunks__/chunk-CMIVBHXU.mjs.map +0 -7
- package/out/__chunks__/chunk-CXE2WQJS.mjs +0 -1
- package/out/__chunks__/chunk-CXE2WQJS.mjs.map +0 -7
- package/out/__chunks__/chunk-CYCS3K6Q.mjs +0 -2
- package/out/__chunks__/chunk-CYCS3K6Q.mjs.map +0 -7
- package/out/__chunks__/chunk-D2ULWBRR.mjs +0 -2
- package/out/__chunks__/chunk-D4UL2EWH.mjs +0 -2
- package/out/__chunks__/chunk-DBIIY2TX.mjs +0 -2
- package/out/__chunks__/chunk-DDLTXUQG.mjs +0 -2
- package/out/__chunks__/chunk-DDLTXUQG.mjs.map +0 -7
- package/out/__chunks__/chunk-DFSBS3PX.mjs +0 -2
- package/out/__chunks__/chunk-DJXCXSJM.mjs +0 -2
- package/out/__chunks__/chunk-DJXCXSJM.mjs.map +0 -7
- package/out/__chunks__/chunk-DLCBEPEX.mjs +0 -2
- package/out/__chunks__/chunk-DLCBEPEX.mjs.map +0 -7
- package/out/__chunks__/chunk-DTQL3IDP.mjs +0 -1
- package/out/__chunks__/chunk-DTQL3IDP.mjs.map +0 -7
- package/out/__chunks__/chunk-DXRSXWLQ.mjs +0 -1
- package/out/__chunks__/chunk-DXRSXWLQ.mjs.map +0 -7
- package/out/__chunks__/chunk-E7M6PNMF.mjs +0 -2
- package/out/__chunks__/chunk-E7M6PNMF.mjs.map +0 -7
- package/out/__chunks__/chunk-EBENRM2R.mjs +0 -2
- package/out/__chunks__/chunk-EDLHXC66.mjs +0 -2
- package/out/__chunks__/chunk-EGNCDLPF.mjs +0 -2
- package/out/__chunks__/chunk-EHDGJUEU.mjs +0 -2
- package/out/__chunks__/chunk-EHDGJUEU.mjs.map +0 -7
- package/out/__chunks__/chunk-EJV4VNJG.mjs +0 -2
- package/out/__chunks__/chunk-EJV4VNJG.mjs.map +0 -7
- package/out/__chunks__/chunk-F6HFPLKF.mjs +0 -2
- package/out/__chunks__/chunk-FGEC7ZXX.mjs +0 -2
- package/out/__chunks__/chunk-FGEC7ZXX.mjs.map +0 -7
- package/out/__chunks__/chunk-FPKFAJNW.mjs +0 -3
- package/out/__chunks__/chunk-FRDR4A7Z.mjs +0 -2
- package/out/__chunks__/chunk-FRDR4A7Z.mjs.map +0 -7
- package/out/__chunks__/chunk-FTJF3Q3P.mjs +0 -2
- package/out/__chunks__/chunk-FTJF3Q3P.mjs.map +0 -7
- package/out/__chunks__/chunk-FUCA6PDM.mjs +0 -2
- package/out/__chunks__/chunk-G2YMMIV4.mjs +0 -2
- package/out/__chunks__/chunk-G2YMMIV4.mjs.map +0 -7
- package/out/__chunks__/chunk-G5DKGX73.mjs +0 -1
- package/out/__chunks__/chunk-G5DKGX73.mjs.map +0 -7
- package/out/__chunks__/chunk-GAYDJQDV.mjs +0 -1
- package/out/__chunks__/chunk-GAYDJQDV.mjs.map +0 -7
- package/out/__chunks__/chunk-GIRFQWT3.mjs +0 -2
- package/out/__chunks__/chunk-GIRFQWT3.mjs.map +0 -7
- package/out/__chunks__/chunk-GIZSIYH4.mjs +0 -2
- package/out/__chunks__/chunk-GIZSIYH4.mjs.map +0 -7
- package/out/__chunks__/chunk-GNHD56P3.mjs +0 -2
- package/out/__chunks__/chunk-GNNYBI7B.mjs +0 -2
- package/out/__chunks__/chunk-GQ4CPGZ3.mjs +0 -2
- package/out/__chunks__/chunk-GQ4CPGZ3.mjs.map +0 -7
- package/out/__chunks__/chunk-GUAXMODN.mjs +0 -2
- package/out/__chunks__/chunk-GUIXE5XC.mjs +0 -2
- package/out/__chunks__/chunk-GUIXE5XC.mjs.map +0 -7
- package/out/__chunks__/chunk-H3NKXQQF.mjs +0 -2
- package/out/__chunks__/chunk-H3NKXQQF.mjs.map +0 -7
- package/out/__chunks__/chunk-H5NVCCUR.mjs +0 -2
- package/out/__chunks__/chunk-HOCSCRJF.mjs +0 -2
- package/out/__chunks__/chunk-HOCSCRJF.mjs.map +0 -7
- package/out/__chunks__/chunk-HZGRS7HG.mjs +0 -2
- package/out/__chunks__/chunk-I4PVZY6G.mjs +0 -2
- package/out/__chunks__/chunk-ICXBMZJS.mjs +0 -2
- package/out/__chunks__/chunk-IE3A2COQ.mjs +0 -2
- package/out/__chunks__/chunk-INRKVOET.mjs +0 -1
- package/out/__chunks__/chunk-INRKVOET.mjs.map +0 -7
- package/out/__chunks__/chunk-IS3TZ43F.mjs +0 -2
- package/out/__chunks__/chunk-IS3TZ43F.mjs.map +0 -7
- package/out/__chunks__/chunk-IXBWD6BF.mjs +0 -1
- package/out/__chunks__/chunk-IXBWD6BF.mjs.map +0 -7
- package/out/__chunks__/chunk-J32T6OAP.mjs +0 -1
- package/out/__chunks__/chunk-J32T6OAP.mjs.map +0 -7
- package/out/__chunks__/chunk-JKR5DRPM.mjs +0 -1
- package/out/__chunks__/chunk-JKR5DRPM.mjs.map +0 -7
- package/out/__chunks__/chunk-JMC7CMTU.mjs +0 -2
- package/out/__chunks__/chunk-JNGJJQUL.mjs +0 -2
- package/out/__chunks__/chunk-JTV664SG.mjs +0 -2
- package/out/__chunks__/chunk-K272J46W.mjs +0 -2
- package/out/__chunks__/chunk-K5MJ4FMD.mjs +0 -1
- package/out/__chunks__/chunk-K5MJ4FMD.mjs.map +0 -7
- package/out/__chunks__/chunk-K6FICN7B.mjs +0 -2
- package/out/__chunks__/chunk-K6FICN7B.mjs.map +0 -7
- package/out/__chunks__/chunk-KD2IQ32V.mjs +0 -2
- package/out/__chunks__/chunk-KD2IQ32V.mjs.map +0 -7
- package/out/__chunks__/chunk-KDMYDO7R.mjs +0 -2
- package/out/__chunks__/chunk-KDMYDO7R.mjs.map +0 -7
- package/out/__chunks__/chunk-KIOUFP5Q.mjs +0 -1
- package/out/__chunks__/chunk-KIOUFP5Q.mjs.map +0 -7
- package/out/__chunks__/chunk-KLLFGRPB.mjs +0 -2
- package/out/__chunks__/chunk-KMJMQEXI.mjs +0 -2
- package/out/__chunks__/chunk-KPK72MOE.mjs +0 -2
- package/out/__chunks__/chunk-KPK72MOE.mjs.map +0 -7
- package/out/__chunks__/chunk-KPOZLV3Y.mjs +0 -2
- package/out/__chunks__/chunk-L3YPAYXZ.mjs +0 -1
- package/out/__chunks__/chunk-L3YPAYXZ.mjs.map +0 -7
- package/out/__chunks__/chunk-L5XHA5J3.mjs +0 -2
- package/out/__chunks__/chunk-L6A73MU7.mjs +0 -2
- package/out/__chunks__/chunk-LHEH7L4L.mjs +0 -2
- package/out/__chunks__/chunk-LHEH7L4L.mjs.map +0 -7
- package/out/__chunks__/chunk-LNXZQGLV.mjs +0 -2
- package/out/__chunks__/chunk-LNXZQGLV.mjs.map +0 -7
- package/out/__chunks__/chunk-M3GFSV3G.mjs +0 -1
- package/out/__chunks__/chunk-M3GFSV3G.mjs.map +0 -7
- package/out/__chunks__/chunk-M65GJGER.mjs +0 -2
- package/out/__chunks__/chunk-MDXLOX7I.mjs +0 -2
- package/out/__chunks__/chunk-MH3RDOC5.mjs +0 -2
- package/out/__chunks__/chunk-MH3RDOC5.mjs.map +0 -7
- package/out/__chunks__/chunk-MJKL37SY.mjs +0 -2
- package/out/__chunks__/chunk-MODSKR2X.mjs +0 -2
- package/out/__chunks__/chunk-MODSKR2X.mjs.map +0 -7
- package/out/__chunks__/chunk-MPGHQVDQ.mjs +0 -2
- package/out/__chunks__/chunk-MSM6OHIC.mjs +0 -2
- package/out/__chunks__/chunk-MSM6OHIC.mjs.map +0 -7
- package/out/__chunks__/chunk-N42HH2XN.mjs +0 -2
- package/out/__chunks__/chunk-N42HH2XN.mjs.map +0 -7
- package/out/__chunks__/chunk-N55JEIM6.mjs +0 -2
- package/out/__chunks__/chunk-N55JEIM6.mjs.map +0 -7
- package/out/__chunks__/chunk-NBHRZSLS.mjs +0 -2
- package/out/__chunks__/chunk-NBHRZSLS.mjs.map +0 -7
- package/out/__chunks__/chunk-NT3OYOP5.mjs +0 -2
- package/out/__chunks__/chunk-NTPPBM7T.mjs +0 -2
- package/out/__chunks__/chunk-NZA7KOCG.mjs +0 -2
- package/out/__chunks__/chunk-NZA7KOCG.mjs.map +0 -7
- package/out/__chunks__/chunk-O4V2ADKJ.mjs +0 -2
- package/out/__chunks__/chunk-O4V2ADKJ.mjs.map +0 -7
- package/out/__chunks__/chunk-O7AQPRYI.mjs +0 -2
- package/out/__chunks__/chunk-O7AQPRYI.mjs.map +0 -7
- package/out/__chunks__/chunk-OA5BWGGO.mjs +0 -2
- package/out/__chunks__/chunk-OA5BWGGO.mjs.map +0 -7
- package/out/__chunks__/chunk-OFVUWY2K.mjs +0 -2
- package/out/__chunks__/chunk-OFVUWY2K.mjs.map +0 -7
- package/out/__chunks__/chunk-OJX2TSAZ.mjs +0 -1
- package/out/__chunks__/chunk-OJX2TSAZ.mjs.map +0 -7
- package/out/__chunks__/chunk-OL6LWUIJ.mjs +0 -1
- package/out/__chunks__/chunk-OL6LWUIJ.mjs.map +0 -7
- package/out/__chunks__/chunk-OVXVICF7.mjs +0 -1
- package/out/__chunks__/chunk-OVXVICF7.mjs.map +0 -7
- package/out/__chunks__/chunk-PJZO5KQR.mjs +0 -2
- package/out/__chunks__/chunk-PJZO5KQR.mjs.map +0 -7
- package/out/__chunks__/chunk-PMATTOPD.mjs +0 -2
- package/out/__chunks__/chunk-PQVNWTWJ.mjs +0 -2
- package/out/__chunks__/chunk-PQVNWTWJ.mjs.map +0 -7
- package/out/__chunks__/chunk-PX3TRYOX.mjs +0 -2
- package/out/__chunks__/chunk-PY6RWCON.mjs +0 -2
- package/out/__chunks__/chunk-PY6RWCON.mjs.map +0 -7
- package/out/__chunks__/chunk-Q6ALT7RT.mjs +0 -2
- package/out/__chunks__/chunk-Q6ALT7RT.mjs.map +0 -7
- package/out/__chunks__/chunk-QFZ4YW5F.mjs +0 -2
- package/out/__chunks__/chunk-QFZ4YW5F.mjs.map +0 -7
- package/out/__chunks__/chunk-QLMVT5AQ.mjs +0 -2
- package/out/__chunks__/chunk-QLMVT5AQ.mjs.map +0 -7
- package/out/__chunks__/chunk-QXC4D3AC.mjs +0 -2
- package/out/__chunks__/chunk-QXC4D3AC.mjs.map +0 -7
- package/out/__chunks__/chunk-QZQDLLQR.mjs +0 -2
- package/out/__chunks__/chunk-QZQDLLQR.mjs.map +0 -7
- package/out/__chunks__/chunk-R6F66MUM.mjs +0 -2
- package/out/__chunks__/chunk-RFQ62EWT.mjs +0 -2
- package/out/__chunks__/chunk-RHG5XPRM.mjs +0 -2
- package/out/__chunks__/chunk-RNABCWXS.mjs +0 -2
- package/out/__chunks__/chunk-S2PZQQCM.mjs +0 -2
- package/out/__chunks__/chunk-S2PZQQCM.mjs.map +0 -7
- package/out/__chunks__/chunk-SFGNJYRD.mjs +0 -2
- package/out/__chunks__/chunk-SFGNJYRD.mjs.map +0 -7
- package/out/__chunks__/chunk-STSC5Q3L.mjs +0 -2
- package/out/__chunks__/chunk-STSC5Q3L.mjs.map +0 -7
- package/out/__chunks__/chunk-T4FRQ4JG.mjs +0 -1
- package/out/__chunks__/chunk-T4FRQ4JG.mjs.map +0 -7
- package/out/__chunks__/chunk-TFZ46GCB.mjs +0 -1
- package/out/__chunks__/chunk-TFZ46GCB.mjs.map +0 -7
- package/out/__chunks__/chunk-TRMQFQOQ.mjs +0 -1
- package/out/__chunks__/chunk-TRMQFQOQ.mjs.map +0 -7
- package/out/__chunks__/chunk-TYA2A7P3.mjs +0 -2
- package/out/__chunks__/chunk-U3MIDVR7.mjs +0 -2
- package/out/__chunks__/chunk-U3MIDVR7.mjs.map +0 -7
- package/out/__chunks__/chunk-U4NSAQRJ.mjs +0 -2
- package/out/__chunks__/chunk-UCNKEHLJ.mjs +0 -2
- package/out/__chunks__/chunk-UD7MOR6P.mjs +0 -1
- package/out/__chunks__/chunk-UD7MOR6P.mjs.map +0 -7
- package/out/__chunks__/chunk-UE3IBKCO.mjs +0 -2
- package/out/__chunks__/chunk-UE3IBKCO.mjs.map +0 -7
- package/out/__chunks__/chunk-UEKNE7II.mjs +0 -2
- package/out/__chunks__/chunk-UERJ6AKK.mjs +0 -2
- package/out/__chunks__/chunk-UFDELD3B.mjs +0 -2
- package/out/__chunks__/chunk-UFDELD3B.mjs.map +0 -7
- package/out/__chunks__/chunk-UNSFOHDG.mjs +0 -2
- package/out/__chunks__/chunk-VAJX46E4.mjs +0 -2
- package/out/__chunks__/chunk-VCAWVAO5.mjs +0 -1
- package/out/__chunks__/chunk-VCAWVAO5.mjs.map +0 -7
- package/out/__chunks__/chunk-VJGOUAZ2.mjs +0 -2
- package/out/__chunks__/chunk-VJGOUAZ2.mjs.map +0 -7
- package/out/__chunks__/chunk-VJLG26AF.mjs +0 -2
- package/out/__chunks__/chunk-VOBUIF7F.mjs +0 -1
- package/out/__chunks__/chunk-VOBUIF7F.mjs.map +0 -7
- package/out/__chunks__/chunk-VWRNBA3H.mjs +0 -2
- package/out/__chunks__/chunk-W5MTQBQF.mjs +0 -2
- package/out/__chunks__/chunk-W5MTQBQF.mjs.map +0 -7
- package/out/__chunks__/chunk-WBMIRF47.mjs +0 -2
- package/out/__chunks__/chunk-WBMIRF47.mjs.map +0 -7
- package/out/__chunks__/chunk-WG5ONYK4.mjs +0 -2
- package/out/__chunks__/chunk-WHEXX3BD.mjs +0 -1
- package/out/__chunks__/chunk-WHEXX3BD.mjs.map +0 -7
- package/out/__chunks__/chunk-WS2MTQIC.mjs +0 -2
- package/out/__chunks__/chunk-WVAP3V3E.mjs +0 -2
- package/out/__chunks__/chunk-WVAP3V3E.mjs.map +0 -7
- package/out/__chunks__/chunk-WZGG2YKQ.mjs +0 -2
- package/out/__chunks__/chunk-XDBKPKTG.mjs +0 -2
- package/out/__chunks__/chunk-XX6UOMVH.mjs +0 -2
- package/out/__chunks__/chunk-XX6UOMVH.mjs.map +0 -7
- package/out/__chunks__/chunk-Y5FXVEPD.mjs +0 -2
- package/out/__chunks__/chunk-YFPMAZOS.mjs +0 -1
- package/out/__chunks__/chunk-YFPMAZOS.mjs.map +0 -7
- package/out/__chunks__/chunk-YJK5FPW4.mjs +0 -1
- package/out/__chunks__/chunk-YJK5FPW4.mjs.map +0 -7
- package/out/__chunks__/chunk-YK7T6MBD.mjs +0 -2
- package/out/__chunks__/chunk-YUITECZ5.mjs +0 -1
- package/out/__chunks__/chunk-YUITECZ5.mjs.map +0 -7
- package/out/__chunks__/chunk-YV7ZJBAY.mjs +0 -1
- package/out/__chunks__/chunk-YV7ZJBAY.mjs.map +0 -7
- package/out/__chunks__/chunk-YZ6E6GLF.mjs +0 -2
- package/out/__chunks__/chunk-YZ6E6GLF.mjs.map +0 -7
- package/out/__chunks__/chunk-Z2XKLZOJ.mjs +0 -2
- package/out/__chunks__/chunk-Z4PL2VDB.mjs +0 -1
- package/out/__chunks__/chunk-Z4PL2VDB.mjs.map +0 -7
- package/out/__chunks__/chunk-ZAPRDHIW.mjs +0 -1
- package/out/__chunks__/chunk-ZAPRDHIW.mjs.map +0 -7
- package/out/__chunks__/chunk-ZATPIKZ2.mjs +0 -2
- package/out/__chunks__/chunk-ZBQOFCLH.mjs +0 -2
- package/out/__chunks__/chunk-ZBQOFCLH.mjs.map +0 -7
- package/out/__chunks__/chunk-ZC5QSQE4.mjs +0 -1
- package/out/__chunks__/chunk-ZC5QSQE4.mjs.map +0 -7
- package/out/__chunks__/chunk-ZFKTQNIP.mjs +0 -2
- package/out/__chunks__/chunk-ZFXAT6MD.mjs +0 -1
- package/out/__chunks__/chunk-ZFXAT6MD.mjs.map +0 -7
- package/out/__chunks__/chunk-ZKBKYLAP.mjs +0 -2
- package/out/__chunks__/chunk-ZNPHUPAP.mjs +0 -2
- package/out/__chunks__/chunk-ZNYD34VT.mjs +0 -2
- package/out/__chunks__/chunk-ZRSYQ3MT.mjs +0 -6
- package/out/apiCalls/account/index.cjs +0 -2
- package/out/apiCalls/account/index.cjs.map +0 -7
- package/out/apiCalls/account/index.d.ts +0 -1
- package/out/apiCalls/account/index.mjs +0 -2
- package/out/apiCalls/configuration/index.cjs +0 -2
- package/out/apiCalls/configuration/index.cjs.map +0 -7
- package/out/apiCalls/configuration/index.d.ts +0 -2
- package/out/apiCalls/configuration/index.mjs +0 -2
- package/out/apiCalls/index.cjs +0 -2
- package/out/apiCalls/index.cjs.map +0 -7
- package/out/apiCalls/index.d.ts +0 -6
- package/out/apiCalls/index.mjs +0 -2
- package/out/apiCalls/tokens/index.cjs +0 -2
- package/out/apiCalls/tokens/index.cjs.map +0 -7
- package/out/apiCalls/tokens/index.d.ts +0 -1
- package/out/apiCalls/tokens/index.mjs +0 -2
- package/out/apiCalls/tokens/index.mjs.map +0 -7
- package/out/apiCalls/utils/getCleanApiAddress.cjs +0 -2
- package/out/apiCalls/utils/getCleanApiAddress.cjs.map +0 -7
- package/out/apiCalls/utils/getCleanApiAddress.d.ts +0 -1
- package/out/apiCalls/utils/getCleanApiAddress.mjs +0 -2
- package/out/apiCalls/utils/getCleanApiAddress.mjs.map +0 -7
- package/out/apiCalls/utils/index.cjs +0 -2
- package/out/apiCalls/utils/index.cjs.map +0 -7
- package/out/apiCalls/utils/index.d.ts +0 -3
- package/out/apiCalls/utils/index.mjs +0 -2
- package/out/apiCalls/utils/index.mjs.map +0 -7
- package/out/apiCalls/websocket/index.cjs +0 -2
- package/out/apiCalls/websocket/index.cjs.map +0 -7
- package/out/apiCalls/websocket/index.d.ts +0 -1
- package/out/apiCalls/websocket/index.mjs +0 -2
- package/out/apiCalls/websocket/index.mjs.map +0 -7
- package/out/constants/index.cjs +0 -2
- package/out/constants/index.cjs.map +0 -7
- package/out/constants/index.d.ts +0 -10
- package/out/constants/index.mjs +0 -2
- package/out/constants/index.mjs.map +0 -7
- package/out/controllers/index.cjs +0 -2
- package/out/controllers/index.cjs.map +0 -7
- package/out/controllers/index.d.ts +0 -1
- package/out/controllers/index.mjs +0 -2
- package/out/controllers/index.mjs.map +0 -7
- package/out/index.cjs +0 -2
- package/out/index.cjs.map +0 -7
- package/out/index.d.ts +0 -6
- package/out/index.mjs +0 -2
- package/out/index.mjs.map +0 -7
- package/out/managers/index.cjs +0 -2
- package/out/managers/index.cjs.map +0 -7
- package/out/managers/index.d.ts +0 -2
- package/out/managers/index.mjs +0 -2
- package/out/managers/index.mjs.map +0 -7
- package/out/managers/internal/index.cjs +0 -2
- package/out/managers/internal/index.cjs.map +0 -7
- package/out/managers/internal/index.d.ts +0 -3
- package/out/managers/internal/index.mjs +0 -2
- package/out/managers/internal/index.mjs.map +0 -7
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.cjs.map +0 -7
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +0 -2
- package/out/providers/index.cjs +0 -2
- package/out/providers/index.cjs.map +0 -7
- package/out/providers/index.d.ts +0 -2
- package/out/providers/index.mjs +0 -2
- package/out/providers/index.mjs.map +0 -7
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.cjs +0 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.cjs.map +0 -7
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.d.ts +0 -18
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +0 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.cjs +0 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.cjs.map +0 -7
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +0 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.cjs +0 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.cjs.map +0 -7
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +0 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.cjs +0 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.cjs.map +0 -7
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.d.ts +0 -10
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +0 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.cjs +0 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.cjs.map +0 -7
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +0 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.cjs +0 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.cjs.map +0 -7
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.d.ts +0 -6
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +0 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs.map +0 -7
- package/out/providers/strategies/LedgerProviderStrategy/helpers/secondsToTimeString.cjs.map +0 -7
- package/out/providers/strategies/LedgerProviderStrategy/helpers/secondsToTimeString.mjs +0 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.cjs.map +0 -7
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +0 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs.map +0 -7
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.cjs +0 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.cjs.map +0 -7
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +0 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.types.cjs.map +0 -7
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.types.d.ts +0 -8
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.cjs +0 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.cjs.map +0 -7
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.d.ts +0 -8
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.mjs +0 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.mjs.map +0 -7
- package/out/providers/strategies/index.cjs +0 -2
- package/out/providers/strategies/index.cjs.map +0 -7
- package/out/providers/strategies/index.d.ts +0 -5
- package/out/providers/strategies/index.mjs +0 -2
- package/out/providers/strategies/index.mjs.map +0 -7
- package/out/services/index.cjs +0 -2
- package/out/services/index.cjs.map +0 -7
- package/out/services/index.d.ts +0 -1
- package/out/services/index.mjs +0 -2
- package/out/services/index.mjs.map +0 -7
- package/out/services/nativeAuth/methods/index.cjs +0 -2
- package/out/services/nativeAuth/methods/index.cjs.map +0 -7
- package/out/services/nativeAuth/methods/index.d.ts +0 -2
- package/out/services/nativeAuth/methods/index.mjs +0 -2
- package/out/services/nativeAuth/methods/index.mjs.map +0 -7
- package/out/store/actions/index.cjs +0 -2
- package/out/store/actions/index.cjs.map +0 -7
- package/out/store/actions/index.d.ts +0 -7
- package/out/store/actions/index.mjs +0 -2
- package/out/store/actions/index.mjs.map +0 -7
- package/out/store/selectors/index.cjs +0 -2
- package/out/store/selectors/index.cjs.map +0 -7
- package/out/store/selectors/index.d.ts +0 -6
- package/out/store/selectors/index.mjs +0 -2
- package/out/store/selectors/index.mjs.map +0 -7
- package/out/store/slices/index.cjs +0 -2
- package/out/store/slices/index.cjs.map +0 -7
- package/out/store/slices/index.d.ts +0 -7
- package/out/store/slices/index.mjs +0 -2
- package/out/store/slices/index.mjs.map +0 -7
- package/out/types/index.cjs +0 -2
- package/out/types/index.cjs.map +0 -7
- package/out/types/index.d.ts +0 -7
- package/out/types/index.mjs +0 -2
- package/out/types/index.mjs.map +0 -7
- package/out/utils/account/index.cjs +0 -2
- package/out/utils/account/index.cjs.map +0 -7
- package/out/utils/account/index.d.ts +0 -4
- package/out/utils/account/index.mjs +0 -2
- package/out/utils/account/index.mjs.map +0 -7
- package/out/utils/decoders/index.cjs +0 -2
- package/out/utils/decoders/index.cjs.map +0 -7
- package/out/utils/decoders/index.d.ts +0 -5
- package/out/utils/decoders/index.mjs +0 -2
- package/out/utils/decoders/index.mjs.map +0 -7
- package/out/utils/index.cjs +0 -2
- package/out/utils/index.cjs.map +0 -7
- package/out/utils/index.d.ts +0 -10
- package/out/utils/index.mjs +0 -2
- package/out/utils/index.mjs.map +0 -7
- package/out/utils/transactions/getDecodedDataField/helpers/index.cjs +0 -2
- package/out/utils/transactions/getDecodedDataField/helpers/index.cjs.map +0 -7
- package/out/utils/transactions/getDecodedDataField/helpers/index.d.ts +0 -6
- package/out/utils/transactions/getDecodedDataField/helpers/index.mjs +0 -2
- package/out/utils/transactions/getDecodedDataField/helpers/index.mjs.map +0 -7
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.cjs +0 -2
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.cjs.map +0 -7
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.d.ts +0 -6
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.mjs +0 -2
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.mjs.map +0 -7
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.cjs +0 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.cjs.map +0 -7
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.d.ts +0 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.mjs +0 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.mjs.map +0 -7
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.cjs +0 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.cjs.map +0 -7
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.d.ts +0 -13
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +0 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs.map +0 -7
- package/out/utils/transactions/getTransactionsHistory/helpers/index.cjs +0 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/index.cjs.map +0 -7
- package/out/utils/transactions/getTransactionsHistory/helpers/index.d.ts +0 -8
- package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +0 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs.map +0 -7
- package/out/utils/transactions/index.cjs +0 -2
- package/out/utils/transactions/index.cjs.map +0 -7
- package/out/utils/transactions/index.d.ts +0 -5
- package/out/utils/transactions/index.mjs +0 -2
- package/out/utils/transactions/index.mjs.map +0 -7
- package/out/utils/validation/index.cjs +0 -2
- package/out/utils/validation/index.cjs.map +0 -7
- package/out/utils/validation/index.d.ts +0 -5
- package/out/utils/validation/index.mjs +0 -2
- package/out/utils/validation/index.mjs.map +0 -7
- package/out/utils/visual/index.cjs +0 -2
- package/out/utils/visual/index.cjs.map +0 -7
- package/out/utils/visual/index.d.ts +0 -1
- package/out/utils/visual/index.mjs +0 -2
- package/out/utils/visual/index.mjs.map +0 -7
- package/out/utils/window/index.cjs +0 -2
- package/out/utils/window/index.cjs.map +0 -7
- package/out/utils/window/index.d.ts +0 -6
- package/out/utils/window/index.mjs +0 -2
- package/out/utils/window/index.mjs.map +0 -7
- /package/out/__chunks__/{chunk-EBENRM2R.mjs.map → chunk-3G2Q2LCB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IE3A2COQ.mjs.map → chunk-3IYTFWEN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZNPHUPAP.mjs.map → chunk-3KJMEECV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-K272J46W.mjs.map → chunk-3NSS3FT6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2BSPSW6X.mjs.map → chunk-5P3UEE7C.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FUCA6PDM.mjs.map → chunk-5WJQ2KWS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JNGJJQUL.mjs.map → chunk-65F23E3Q.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-C2CYALD3.mjs.map → chunk-6M3IQXQF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NT3OYOP5.mjs.map → chunk-6PCK2RPQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Y5FXVEPD.mjs.map → chunk-6QPOPWIN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2ON3KLCT.mjs.map → chunk-6RYKBAUE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RHG5XPRM.mjs.map → chunk-7FV6DEQX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4Y3336TP.mjs.map → chunk-AFOS3Q4N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-L6A73MU7.mjs.map → chunk-AIQTIXFV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZRSYQ3MT.mjs.map → chunk-AOLW46E4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JMC7CMTU.mjs.map → chunk-APCGI2A5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Z2XKLZOJ.mjs.map → chunk-AWH3CO5C.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-442O3UMZ.mjs.map → chunk-BFD5ZJOK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DFSBS3PX.mjs.map → chunk-BHWSBAMZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XDBKPKTG.mjs.map → chunk-BSA3IGL6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4US7HVCR.mjs.map → chunk-C4SERLP4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KPOZLV3Y.mjs.map → chunk-CAOL6XLD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ICXBMZJS.mjs.map → chunk-CMERGCP7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5Y2ZDPP6.mjs.map → chunk-CUDPQDXY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EGNCDLPF.mjs.map → chunk-D27ZK232.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-57EQXIYJ.mjs.map → chunk-D4JFV2LM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-D2ULWBRR.mjs.map → chunk-DNYE6AJI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZKBKYLAP.mjs.map → chunk-ERDTZ52C.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-L5XHA5J3.mjs.map → chunk-F2W755EK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MJKL37SY.mjs.map → chunk-FDR5TTUS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UERJ6AKK.mjs.map → chunk-FK6DWWZF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VAJX46E4.mjs.map → chunk-FKUMHDP5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3XTYIGW5.mjs.map → chunk-GBDHEWNQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6ET5BDZH.mjs.map → chunk-GEB2W7CV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WS2MTQIC.mjs.map → chunk-GYYGYOIE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PMATTOPD.mjs.map → chunk-HSF3JATH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5DILKRFV.mjs.map → chunk-HTT67LH3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NTPPBM7T.mjs.map → chunk-I3ILB737.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VWRNBA3H.mjs.map → chunk-IAN3XFXS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JTV664SG.mjs.map → chunk-IHSJITVR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YK7T6MBD.mjs.map → chunk-IWP36NOU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZNYD34VT.mjs.map → chunk-JJUR63EV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GNNYBI7B.mjs.map → chunk-JMK6YN6B.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MPGHQVDQ.mjs.map → chunk-JO7KFAZC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3PAZABVI.mjs.map → chunk-JQ3KV55D.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I4PVZY6G.mjs.map → chunk-K4E7GCWI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3ZT74S43.mjs.map → chunk-KLI5H35D.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GUAXMODN.mjs.map → chunk-KYQ5IP6W.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KMJMQEXI.mjs.map → chunk-LGGG3HW7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EDLHXC66.mjs.map → chunk-LQAAQV3I.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZFKTQNIP.mjs.map → chunk-MTGS435F.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KLLFGRPB.mjs.map → chunk-NGJIMP5Y.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TYA2A7P3.mjs.map → chunk-NQE5YCZP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-H5NVCCUR.mjs.map → chunk-NWRCQLFI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WG5ONYK4.mjs.map → chunk-NYZ726DG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3S57OP4Z.mjs.map → chunk-OBIQ63DJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RFQ62EWT.mjs.map → chunk-OSV2GCKV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VJLG26AF.mjs.map → chunk-PIFCCIF3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RNABCWXS.mjs.map → chunk-PJ5TKZD5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4SS6EY66.mjs.map → chunk-PN7JDWSZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZATPIKZ2.mjs.map → chunk-QFXS7HGL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DBIIY2TX.mjs.map → chunk-QNELH2S2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UEKNE7II.mjs.map → chunk-QZC64RDG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WZGG2YKQ.mjs.map → chunk-RIPIZH54.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UCNKEHLJ.mjs.map → chunk-RMLVJDCQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-U4NSAQRJ.mjs.map → chunk-RVBZZQS2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FPKFAJNW.mjs.map → chunk-RXRVBUAX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GNHD56P3.mjs.map → chunk-SFXZJSEY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5KCP7UJT.mjs.map → chunk-SYHILLXA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-D4UL2EWH.mjs.map → chunk-TRUOISVH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7BRIA6SS.mjs.map → chunk-U6RAWQXO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4FXREOAU.mjs.map → chunk-UWWAVJFM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MDXLOX7I.mjs.map → chunk-V7K77GSE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-M65GJGER.mjs.map → chunk-VC74WYUB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HZGRS7HG.mjs.map → chunk-VGDWWBLN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-R6F66MUM.mjs.map → chunk-W2A2N772.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UNSFOHDG.mjs.map → chunk-WZEDZF3Q.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PX3TRYOX.mjs.map → chunk-Y6QPE6SZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-F6HFPLKF.mjs.map → chunk-YXNJS4KL.mjs.map} +0 -0
- /package/out/methods/initApp/{gastStationMetadata → gasStationMetadata}/setGasStationMetadata.cjs +0 -0
- /package/out/methods/initApp/{gastStationMetadata → gasStationMetadata}/setGasStationMetadata.d.ts +0 -0
- /package/out/methods/initApp/{gastStationMetadata → gasStationMetadata}/setGasStationMetadata.mjs.map +0 -0
- /package/out/{__chunks__/chunk-B7YCKWDU.mjs.map → methods/initApp/helpers/waitForStoreRehydration.mjs.map} +0 -0
- /package/out/providers/strategies/LedgerProviderStrategy/helpers/{authenticateLedgerAccount.mjs.map → authenticateLedgerAccount/authenticateLedgerAccount.mjs.map} +0 -0
- /package/out/providers/strategies/LedgerProviderStrategy/helpers/{getAuthTokenText.d.ts → authenticateLedgerAccount/helpers/getAuthTokenText.d.ts} +0 -0
- /package/out/providers/strategies/LedgerProviderStrategy/helpers/{getAuthTokenText.mjs.map → authenticateLedgerAccount/helpers/getAuthTokenText.mjs.map} +0 -0
- /package/out/providers/strategies/LedgerProviderStrategy/helpers/{getLedgerVersionOptions.d.ts → authenticateLedgerAccount/helpers/getLedgerVersionOptions.d.ts} +0 -0
- /package/out/providers/strategies/LedgerProviderStrategy/helpers/{getLedgerVersionOptions.mjs.map → authenticateLedgerAccount/helpers/getLedgerVersionOptions.mjs.map} +0 -0
- /package/out/providers/strategies/LedgerProviderStrategy/helpers/{secondsToTimeString.cjs → authenticateLedgerAccount/helpers/secondsToTimeString.cjs} +0 -0
- /package/out/providers/strategies/LedgerProviderStrategy/helpers/{secondsToTimeString.d.ts → authenticateLedgerAccount/helpers/secondsToTimeString.d.ts} +0 -0
- /package/out/providers/strategies/LedgerProviderStrategy/helpers/{secondsToTimeString.mjs.map → authenticateLedgerAccount/helpers/secondsToTimeString.mjs.map} +0 -0
- /package/out/providers/strategies/LedgerProviderStrategy/helpers/{updateAccountsList → authenticateLedgerAccount/helpers/updateAccountsList}/index.cjs +0 -0
- /package/out/providers/strategies/LedgerProviderStrategy/helpers/{updateAccountsList → authenticateLedgerAccount/helpers/updateAccountsList}/index.d.ts +0 -0
- /package/out/{apiCalls/account → providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList}/index.mjs.map +0 -0
- /package/out/providers/strategies/LedgerProviderStrategy/helpers/{updateAccountsList → authenticateLedgerAccount/helpers/updateAccountsList}/updateAccountsList.d.ts +0 -0
- /package/out/providers/strategies/LedgerProviderStrategy/helpers/{updateAccountsList → authenticateLedgerAccount/helpers/updateAccountsList}/updateAccountsList.mjs.map +0 -0
- /package/out/providers/strategies/LedgerProviderStrategy/helpers/{updateAccountsList → authenticateLedgerAccount/helpers/updateAccountsList}/updateAccountsList.types.cjs +0 -0
- /package/out/providers/strategies/LedgerProviderStrategy/helpers/{updateAccountsList → authenticateLedgerAccount/helpers/updateAccountsList}/updateAccountsList.types.mjs +0 -0
- /package/out/providers/strategies/LedgerProviderStrategy/helpers/{updateAccountsList → authenticateLedgerAccount/helpers/updateAccountsList}/updateAccountsList.types.mjs.map +0 -0
- /package/out/{__chunks__/chunk-BKKXLEQ6.mjs.map → providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/waitForLedgerSelection.mjs.map} +0 -0
- /package/out/{apiCalls/configuration → providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount}/index.mjs.map +0 -0
- /package/out/providers/strategies/LedgerProviderStrategy/helpers/{getLedgerProvider.mjs.map → getLedgerProvider/getLedgerProvider.mjs.map} +0 -0
- /package/out/providers/strategies/LedgerProviderStrategy/helpers/{getLedgerConfiguration.d.ts → getLedgerProvider/helpers/getLedgerConfiguration.d.ts} +0 -0
- /package/out/providers/strategies/LedgerProviderStrategy/helpers/{getLedgerConfiguration.mjs.map → getLedgerProvider/helpers/getLedgerConfiguration.mjs.map} +0 -0
- /package/out/{__chunks__/chunk-CDTYHGXZ.mjs.map → providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/initHwProvider.mjs.map} +0 -0
- /package/out/{apiCalls → providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider}/index.mjs.map +0 -0
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# MultiversX SDK for Front-End DApps
|
|
2
2
|
|
|
3
3
|
[](https://github.com/multiversx/mx-sdk-dapp/actions/workflows/pre-merge-unit-tests.yml)
|
|
4
|
+
[](https://raw.githubusercontent.com/multiversx/mx-sdk-dapp/main/coverage-total.json)
|
|
4
5
|
[](https://github.com/multiversx/mx-sdk-dapp/actions/workflows/run-template-dapps-integration.yml)
|
|
5
|
-
[](https://raw.githubusercontent.com/multiversx/mx-sdk-dapp/main/coverage-total.json)
|
|
6
6
|
[](https://deepwiki.com/multiversx/mx-sdk-dapp)
|
|
7
7
|
|
|
8
8
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/__mocks__/accountConfig.ts"],
|
|
4
|
+
"sourcesContent": ["import { fallbackNetworkConfigurations } from 'constants/network.constants';\nimport { EnvironmentsEnum } from 'types/enums.types';\n\nexport const testAddress =\n 'erd1dm9uxpf5awkn7uhju7zjn9lde0dhahy0qaxqqlu26xcuuw27qqrsqfmej3';\n\nexport const testNetwork =\n fallbackNetworkConfigurations[EnvironmentsEnum.devnet];\n\nexport const testReceiver =\n 'erd1qqqqqqqqqqqqqpgqp699jngundfqw07d8jzkepucvpzush6k3wvqyc44rx';\n"],
|
|
5
|
+
"mappings": "yCAGO,IAAMA,EACX,iEAEWC,EACXC,EAA8B,OAEnBC,EACX",
|
|
6
|
+
"names": ["testAddress", "testNetwork", "fallbackNetworkConfigurations", "testReceiver"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var o="accounts",t="address",N="blocks",s="code",O="collections",c="dapp/config",T="contracts",n="economics",e="identities",E="keys",I="locked-accounts",r="logs",D="miniblocks",p="network/config",S="nfts",_="nodes",x="providers",P="roles",C="sc-results",A="stake",a="tokens",i="transactions/ppu",R="transactions/count",d="batch",l="transactions",L="transfers";export{o as a,t as b,N as c,s as d,O as e,c as f,T as g,n as h,e as i,E as j,I as k,r as l,D as m,p as n,S as o,_ as p,x as q,P as r,C as s,A as t,a as u,i as v,R as w,d as x,l as y,L as z};
|
|
2
|
+
//# sourceMappingURL=chunk-2JKCBTYK.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/apiCalls/endpoints.ts"],
|
|
4
|
+
"sourcesContent": ["export const ACCOUNTS_ENDPOINT = 'accounts';\nexport const ADDRESS_ENDPOINT = 'address';\nexport const BLOCKS_ENDPOINT = 'blocks';\nexport const CODE_ENDPOINT = 'code';\nexport const COLLECTIONS_ENDPOINT = 'collections';\nexport const CONFIG_ENDPOINT = 'dapp/config';\nexport const CONTRACTS_ENDPOINT = 'contracts';\nexport const ECONOMICS_ENDPOINT = 'economics';\nexport const IDENTITIES_ENDPOINT = 'identities';\nexport const KEYS_ENDPOINT = 'keys';\nexport const LOCKED_ACCOUNTS_ENDPOINT = 'locked-accounts';\nexport const LOGS_ENDPOINT = 'logs';\nexport const MINIBLOCKS_ENDPOINT = 'miniblocks';\nexport const NETWORK_CONFIG_ENDPOINT = 'network/config';\nexport const NFTS_ENDPOINT = 'nfts';\nexport const NODES_ENDPOINT = 'nodes';\nexport const PROVIDERS_ENDPOINT = 'providers';\nexport const ROLES_ENDPOINT = 'roles';\nexport const SC_RESULTS_ENDPOINT = 'sc-results';\nexport const STAKE_ENDPOINT = 'stake';\nexport const TOKENS_ENDPOINT = 'tokens';\nexport const GAS_STATION_ENDPOINT = 'transactions/ppu';\nexport const TRANSACTIONS_COUNT_ENDPOINT = 'transactions/count';\nexport const TRANSACTIONS_BATCH = 'batch';\nexport const TRANSACTIONS_ENDPOINT = 'transactions';\nexport const TRANSFERS_ENDPOINT = 'transfers';\n"],
|
|
5
|
+
"mappings": "AAAO,IAAMA,EAAoB,WACpBC,EAAmB,UACnBC,EAAkB,SAClBC,EAAgB,OAChBC,EAAuB,cACvBC,EAAkB,cAClBC,EAAqB,YACrBC,EAAqB,YACrBC,EAAsB,aACtBC,EAAgB,OAChBC,EAA2B,kBAC3BC,EAAgB,OAChBC,EAAsB,aACtBC,EAA0B,iBAC1BC,EAAgB,OAChBC,EAAiB,QACjBC,EAAqB,YACrBC,EAAiB,QACjBC,EAAsB,aACtBC,EAAiB,QACjBC,EAAkB,SAClBC,EAAuB,mBACvBC,EAA8B,qBAC9BC,EAAqB,QACrBC,EAAwB,eACxBC,EAAqB",
|
|
6
|
+
"names": ["ACCOUNTS_ENDPOINT", "ADDRESS_ENDPOINT", "BLOCKS_ENDPOINT", "CODE_ENDPOINT", "COLLECTIONS_ENDPOINT", "CONFIG_ENDPOINT", "CONTRACTS_ENDPOINT", "ECONOMICS_ENDPOINT", "IDENTITIES_ENDPOINT", "KEYS_ENDPOINT", "LOCKED_ACCOUNTS_ENDPOINT", "LOGS_ENDPOINT", "MINIBLOCKS_ENDPOINT", "NETWORK_CONFIG_ENDPOINT", "NFTS_ENDPOINT", "NODES_ENDPOINT", "PROVIDERS_ENDPOINT", "ROLES_ENDPOINT", "SC_RESULTS_ENDPOINT", "STAKE_ENDPOINT", "TOKENS_ENDPOINT", "GAS_STATION_ENDPOINT", "TRANSACTIONS_COUNT_ENDPOINT", "TRANSACTIONS_BATCH", "TRANSACTIONS_ENDPOINT", "TRANSFERS_ENDPOINT"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as p,f as l}from"./chunk-FK6DWWZF.mjs";import{f as s}from"./chunk-VNLGNNIL.mjs";import{b as x}from"./chunk-A7FTKX2A.mjs";import{a as m,b as c}from"./chunk-RIPIZH54.mjs";import{a as T}from"./chunk-2DNGCNYM.mjs";import{a as f,b as g}from"./chunk-M7BM6QPB.mjs";import{a as L}from"./chunk-ONT6BGYB.mjs";import{a as d,b as y}from"./chunk-NLRDRI7Q.mjs";import{a as S,b as u}from"./chunk-VKEESSBI.mjs";import{a as I}from"./chunk-F2W755EK.mjs";import{a as k}from"./chunk-KRWR77QE.mjs";import{a as v}from"./chunk-NB7A4C7L.mjs";import{c as a}from"./chunk-NTEMINYA.mjs";import{createJSONStorage as O,devtools as V,persist as h}from"zustand/middleware";import{immer as N}from"zustand/middleware/immer";import{createStore as J}from"zustand/vanilla";var A=e=>{e.account=m,e.loginInfo=f,e.transactions=d,e.toasts=S};function H(){return new Date().setHours(new Date().getHours()+24)}function w(e){if(e==null){E();return}b(e)}var C=e=>{let t=l(e),r=s(e),{address:i,publicKey:M}=p(e);if(i&&M!==new a(i).toHex()&&A(e),!t)return;if(r==null){w(H());return}let P=Date.now();r-P<0&&(w(null),o().setState(A))};var W=(e,t)=>{C(e)};var z=e=>{let t=J(V(h(N((...r)=>({network:T(...r),account:c(...r),loginInfo:g(...r),config:L(...r),transactions:y(...r),toasts:u(...r),cache:x(...r),ui:v(...r)})),{name:"sdk-dapp-store",storage:O(e)}),{name:"sdk-dapp"}));return t.subscribe(W),t},n,D=e=>{n=e},o=()=>(n||D(z(()=>new k)),n),ue=(e=I)=>{let t=z(e);return D(t),t},de=()=>o().getState();var Le=e=>o().setState(({loginInfo:t})=>{t.providerType=e},!1,{type:"setProviderType",payload:{value:e}}),Te=e=>o().setState(({loginInfo:t})=>{t.tokenLogin=e},!1,{type:"setTokenLogin",payload:{value:e}}),ve=e=>o().setState(({loginInfo:t})=>{if(t.tokenLogin!=null){t.tokenLogin.loginToken=e;return}t.tokenLogin={loginToken:e}},!1,{type:"setLoginToken",payload:{value:e}}),Ie=e=>o().setState(({loginInfo:t})=>{t?.tokenLogin!=null&&(t.tokenLogin.signature=e)},!1,{type:"setTokenLoginSignature",payload:{value:e}}),ke=e=>o().setState(({loginInfo:t})=>{t.walletConnectLogin=e},!1,{type:"setWalletConnectLogin",payload:{value:e}}),Ae=e=>o().setState(({loginInfo:t})=>{t.ledgerLogin=e},!1,{type:"setLedgerLogin",payload:{value:e}}),we=e=>o().setState(({loginInfo:t})=>{t.isWalletConnectV2Initialized=e},!1,{type:"setIsWalletConnectV2Initialized",payload:{value:e}}),E=()=>o().setState(({loginInfo:e})=>{e.loginExpiresAt=null},!1,{type:"removeLoginExpiresAt",payload:{value:null}}),b=e=>o().setState(({loginInfo:t})=>{t.loginExpiresAt=e},!1,{type:"addLoginExpiresAt",payload:{value:e}});export{Le as a,Te as b,ve as c,Ie as d,ke as e,Ae as f,we as g,E as h,b as i,A as j,H as k,w as l,C as m,W as n,z as o,D as p,o as q,ue as r,de as s};
|
|
2
|
+
//# sourceMappingURL=chunk-2QIUCSYX.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/store/store.ts", "../../src/store/middleware/logoutMiddleware.ts", "../../src/store/middleware/applyMiddlewares.ts", "../../src/store/actions/loginInfo/loginInfoActions.ts"],
|
|
4
|
+
"sourcesContent": ["import { createJSONStorage, devtools, persist } from 'zustand/middleware';\nimport { immer } from 'zustand/middleware/immer';\nimport { createStore } from 'zustand/vanilla';\nimport { applyMiddlewares } from './middleware';\nimport { accountSlice } from './slices/account';\nimport { cacheSlice } from './slices/cache';\nimport { configSlice } from './slices/config';\nimport { loginInfoSlice } from './slices/loginInfo';\nimport { networkSlice } from './slices/network';\nimport { toastSlice } from './slices/toast';\nimport { transactionsSlice } from './slices/transactions';\nimport { uiSlice } from './slices/ui';\nimport {\n InMemoryStorage,\n defaultStorageCallback,\n StorageCallback\n} from './storage';\nimport { StoreType } from './store.types';\n\nexport type MutatorsIn = [\n ['zustand/devtools', never],\n ['zustand/persist', unknown],\n ['zustand/immer', never]\n];\n\nexport type MutatorsOut = [\n ['zustand/devtools', never],\n ['zustand/persist', StoreType],\n ['zustand/immer', never]\n];\n\nexport const createDAppStore = (getStorageCallback: StorageCallback) => {\n const store = createStore<StoreType, MutatorsOut>(\n devtools(\n persist(\n immer((...args) => ({\n network: networkSlice(...args),\n account: accountSlice(...args),\n loginInfo: loginInfoSlice(...args),\n config: configSlice(...args),\n transactions: transactionsSlice(...args),\n toasts: toastSlice(...args),\n cache: cacheSlice(...args),\n ui: uiSlice(...args)\n })),\n {\n name: 'sdk-dapp-store',\n storage: createJSONStorage(getStorageCallback)\n }\n ),\n {\n name: 'sdk-dapp'\n }\n )\n );\n store.subscribe(applyMiddlewares);\n return store;\n};\n\nexport type StoreApi = ReturnType<typeof createDAppStore>;\n\nlet store: StoreApi;\n\nexport const setDAppStore = (_store: StoreApi) => {\n store = _store;\n};\n\nexport const getStore = () => {\n if (!store) {\n setDAppStore(createDAppStore(() => new InMemoryStorage()));\n }\n return store;\n};\n\n/**\n * Initialize store with the preferred storage by passing a callback.\n * Default storage is localStorage.\n * You can pass your own storage.\n * Call this function before using store, ideally before app bootstrapping.\n * @param getStorageCallback\n * @default () => localStorage\n * @returns persistent store instance\n * @example\n * initStore(() => window.localStorage);\n * initStore(() => window.sessionStorage);\n * initStore(() => new InMemoryStorage());\n * */\nexport const initStore = (getStorageCallback = defaultStorageCallback) => {\n const dappStore = createDAppStore(getStorageCallback);\n setDAppStore(dappStore);\n return dappStore;\n};\n\nexport const getState = () => getStore().getState();\n", "import { WritableDraft } from 'immer';\nimport { Address } from 'lib/sdkCore';\nimport {\n addLoginExpiresAt,\n removeLoginExpiresAt\n} from 'store/actions/loginInfo/loginInfoActions';\nimport {\n accountInfoSelector,\n isLoggedInSelector\n} from 'store/selectors/accountSelectors';\nimport { loginExpiresAtSelector } from 'store/selectors/loginInfoSelectors';\nimport { initialState as initialAccountState } from 'store/slices/account/accountSlice';\nimport { initialState as initialLoginInfoState } from 'store/slices/loginInfo/loginInfoSlice';\nimport { initialState as initialToastState } from 'store/slices/toast/toastSlice';\nimport { initialState as initialTransactionsState } from 'store/slices/transactions/transactionsSlice';\nimport { getStore } from 'store/store';\nimport { StoreType } from '../store.types';\n\nexport const resetStore = (store: WritableDraft<StoreType>) => {\n store.account = initialAccountState;\n store.loginInfo = initialLoginInfoState;\n store.transactions = initialTransactionsState;\n store.toasts = initialToastState;\n};\n\nexport function getNewLoginExpiresTimestamp() {\n return new Date().setHours(new Date().getHours() + 24);\n}\n\nexport function setLoginExpiresAt(expiresAt: number | null) {\n if (expiresAt == null) {\n removeLoginExpiresAt();\n return;\n }\n addLoginExpiresAt(expiresAt);\n}\n\nexport const logoutMiddleware = (state: StoreType) => {\n const isLoggedIn = isLoggedInSelector(state);\n const loginTimestamp = loginExpiresAtSelector(state);\n const { address, publicKey } = accountInfoSelector(state);\n\n if (address && publicKey !== new Address(address).toHex()) {\n resetStore(state);\n }\n\n if (!isLoggedIn) {\n return;\n }\n\n if (loginTimestamp == null) {\n setLoginExpiresAt(getNewLoginExpiresTimestamp());\n return;\n }\n\n const now = Date.now();\n const isExpired = loginTimestamp - now < 0;\n\n if (isExpired) {\n // logout\n setLoginExpiresAt(null);\n getStore().setState(resetStore);\n }\n};\n", "import { StoreType } from '../store.types';\nimport { logoutMiddleware } from './logoutMiddleware';\n\nexport const applyMiddlewares = (state: StoreType, _prevState: StoreType) => {\n logoutMiddleware(state);\n};\n", "import { ProviderType } from 'providers/types/providerFactory.types';\nimport {\n LedgerLoginType,\n WalletConnectLoginType\n} from 'store/slices/loginInfo/loginInfo.types';\nimport { getStore } from 'store/store';\nimport { TokenLoginType } from 'types/login.types';\n\nexport const setProviderType = <T extends ProviderType = ProviderType>(\n providerType: T\n) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.providerType = providerType;\n },\n false,\n {\n type: 'setProviderType',\n // @ts-ignore\n payload: {\n value: providerType\n }\n }\n );\n\nexport const setTokenLogin = (tokenLogin: TokenLoginType) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.tokenLogin = tokenLogin;\n },\n false,\n {\n type: 'setTokenLogin',\n // @ts-ignore\n payload: {\n value: tokenLogin\n }\n }\n );\n\nexport const setLoginToken = (loginToken: string) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n if (state.tokenLogin != null) {\n state.tokenLogin.loginToken = loginToken;\n return;\n }\n state.tokenLogin = {\n loginToken\n };\n },\n false,\n {\n type: 'setLoginToken',\n // @ts-ignore\n payload: {\n value: loginToken\n }\n }\n );\n\nexport const setTokenLoginSignature = (signature: string) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n if (state?.tokenLogin != null) {\n state.tokenLogin.signature = signature;\n }\n },\n false,\n {\n type: 'setTokenLoginSignature',\n // @ts-ignore\n payload: {\n value: signature\n }\n }\n );\n\nexport const setWalletConnectLogin = (\n walletConnectLogin: WalletConnectLoginType | null\n) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.walletConnectLogin = walletConnectLogin;\n },\n false,\n {\n type: 'setWalletConnectLogin',\n // @ts-ignore\n payload: {\n value: walletConnectLogin\n }\n }\n );\n\nexport const setLedgerLogin = (ledgerLogin: LedgerLoginType | null) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.ledgerLogin = ledgerLogin;\n },\n false,\n {\n type: 'setLedgerLogin',\n // @ts-ignore\n payload: {\n value: ledgerLogin\n }\n }\n );\n\nexport const setIsWalletConnectV2Initialized = (isInitialized: boolean) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.isWalletConnectV2Initialized = isInitialized;\n },\n false,\n {\n type: 'setIsWalletConnectV2Initialized',\n // @ts-ignore\n payload: {\n value: isInitialized\n }\n }\n );\n\nexport const removeLoginExpiresAt = () =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.loginExpiresAt = null;\n },\n false,\n {\n type: 'removeLoginExpiresAt',\n // @ts-ignore\n payload: {\n value: null\n }\n }\n );\n\nexport const addLoginExpiresAt = (expiresAt: number) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.loginExpiresAt = expiresAt;\n },\n false,\n {\n type: 'addLoginExpiresAt',\n // @ts-ignore\n payload: {\n value: expiresAt\n }\n }\n );\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["createJSONStorage", "devtools", "persist", "immer", "createStore", "resetStore", "store", "initialState", "getNewLoginExpiresTimestamp", "setLoginExpiresAt", "expiresAt", "removeLoginExpiresAt", "addLoginExpiresAt", "logoutMiddleware", "state", "isLoggedIn", "isLoggedInSelector", "loginTimestamp", "loginExpiresAtSelector", "address", "publicKey", "accountInfoSelector", "Address", "now", "getStore", "applyMiddlewares", "state", "_prevState", "logoutMiddleware", "createDAppStore", "getStorageCallback", "store", "createStore", "devtools", "persist", "immer", "args", "networkSlice", "accountSlice", "loginInfoSlice", "configSlice", "transactionsSlice", "toastSlice", "cacheSlice", "uiSlice", "createJSONStorage", "applyMiddlewares", "setDAppStore", "_store", "getStore", "InMemoryStorage", "initStore", "defaultStorageCallback", "dappStore", "getState", "setProviderType", "providerType", "getStore", "state", "setTokenLogin", "tokenLogin", "setLoginToken", "loginToken", "setTokenLoginSignature", "signature", "setWalletConnectLogin", "walletConnectLogin", "setLedgerLogin", "ledgerLogin", "setIsWalletConnectV2Initialized", "isInitialized", "removeLoginExpiresAt", "addLoginExpiresAt", "expiresAt"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as n}from"./chunk-6RCSIT2P.mjs";import{b as r}from"./chunk-UWWAVJFM.mjs";import{b as i}from"./chunk-7VHTZYM2.mjs";import{s as o}from"./chunk-2QIUCSYX.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=i(o());(!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-2XIBNXVY.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/methods/initApp/gasStationMetadata/setGasStationMetadata.ts"],
|
|
4
|
+
"sourcesContent": ["import { getGasStationMetadataFromApi } from 'apiCalls/configuration/getGasStationMetadata';\nimport { initializeNetworkConfig } from 'store/actions/network/networkActions';\nimport { networkSelector } from 'store/selectors/networkSelectors';\nimport { getState } from 'store/store';\n\ninterface ISetGasStationMetadataParams {\n shard: number;\n apiAddress: string;\n}\n\nexport async function setGasStationMetadata({\n shard,\n apiAddress\n}: ISetGasStationMetadataParams) {\n if (shard == null) {\n return;\n }\n\n try {\n const fetchedGasMetadata = await getGasStationMetadataFromApi(\n shard,\n apiAddress\n );\n\n if (!fetchedGasMetadata?.[shard]?.lastBlock) {\n return;\n }\n\n const network = networkSelector(getState());\n\n const hasDifferentGasStationMetadata =\n !network.gasStationMetadata ||\n !network.gasStationMetadata[shard] ||\n network.gasStationMetadata[shard].lastBlock !==\n fetchedGasMetadata[shard].lastBlock;\n\n if (hasDifferentGasStationMetadata) {\n initializeNetworkConfig({\n ...network,\n gasStationMetadata: {\n ...network.gasStationMetadata,\n ...fetchedGasMetadata\n }\n });\n }\n } catch (err) {\n console.error('Error fetching gas station metadata:', err);\n }\n}\n"],
|
|
5
|
+
"mappings": "oKAUA,eAAsBA,EAAsB,CAC1C,MAAAC,EACA,WAAAC,CACF,EAAiC,CAC/B,GAAID,GAAS,KAIb,GAAI,CACF,IAAME,EAAqB,MAAMC,EAC/BH,EACAC,CACF,EAEA,GAAI,CAACC,IAAqBF,CAAK,GAAG,UAChC,OAGF,IAAMI,EAAUC,EAAgBC,EAAS,CAAC,GAGxC,CAACF,EAAQ,oBACT,CAACA,EAAQ,mBAAmBJ,CAAK,GACjCI,EAAQ,mBAAmBJ,CAAK,EAAE,YAChCE,EAAmBF,CAAK,EAAE,YAG5BO,EAAwB,CACtB,GAAGH,EACH,mBAAoB,CAClB,GAAGA,EAAQ,mBACX,GAAGF,CACL,CACF,CAAC,CAEL,OAASM,EAAK,CACZ,QAAQ,MAAM,uCAAwCA,CAAG,CAC3D,CACF",
|
|
6
|
+
"names": ["setGasStationMetadata", "shard", "apiAddress", "fetchedGasMetadata", "getGasStationMetadataFromApi", "network", "networkSelector", "getState", "initializeNetworkConfig", "err"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as c}from"./chunk-DLWDO7M6.mjs";import{i as v}from"./chunk-LASOW7GT.mjs";import{k as d}from"./chunk-XA4YS4GK.mjs";import{s as a}from"./chunk-2QIUCSYX.mjs";import{d as n}from"./chunk-VNLGNNIL.mjs";import{a as i}from"./chunk-LJX4MW7B.mjs";import{a as s}from"./chunk-CMERGCP7.mjs";async function S(){let t=c(),m=s(),e=n(a()),o=m||t?i.webview:e,p=Object.values(i).includes(e);if(e&&!p&&(o=e),!o)return;let r=await v.create({type:o});if(!r)throw new Error("Provider not found");if(t||o===i.webview&&r.isInitialized())try{await r.login()}catch(f){console.warn("Failed to login with provider",r.getType(),f)}d(r)}export{S as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3EKM2Y4K.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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/loginInfoSelectors';\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 const shouldStartWebviewLogin =\n isMobileView ||\n (type === ProviderTypeEnum.webview && provider.isInitialized());\n\n if (shouldStartWebviewLogin) {\n try {\n await provider.login();\n } catch (error) {\n console.warn('Failed to login with provider', provider.getType(), error);\n }\n }\n\n setAccountProvider(provider);\n}\n"],
|
|
5
|
+
"mappings": "+RAWA,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,EAYtC,GAHEV,GACCO,IAASC,EAAiB,SAAWE,EAAS,cAAc,EAG7D,GAAI,CACF,MAAMA,EAAS,MAAM,CACvB,OAASE,EAAO,CACd,QAAQ,KAAK,gCAAiCF,EAAS,QAAQ,EAAGE,CAAK,CACzE,CAGFC,EAAmBH,CAAQ,CAC7B",
|
|
6
|
+
"names": ["restoreProvider", "isMobileView", "isMobileWebview", "isInIframe", "getIsInIframe", "providerType", "providerTypeSelector", "getState", "type", "ProviderTypeEnum", "isBaseProvider", "provider", "ProviderFactory", "error", "setAccountProvider"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as u}from"./chunk-HX3JKALT.mjs";import{a as g}from"./chunk-HSF3JATH.mjs";import l from"lodash.isequal";async function C({loginData:f,nativeAuthConfig:r,loginToken:s}){let{address:m,signature:d,...n}=f,a=Object.keys(n).reduce((i,t)=>{let o=["multisig","impersonate"].includes(t)&&n[t]!=null?String(n[t]):null;return o!=null&&(i[t]=o.toString()),i},{}),e={...r};if(Object.keys(a).length>0&&(e.extraInfo=a),!l(r,e)){let i=g(s);return await u(e).initialize({noCache:!0,latestBlockInfo:{hash:i?.blockHash??"",timestamp:i?.extraInfo?.timestamp??0}})}return s}export{C as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3G2Q2LCB.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{g as r}from"./chunk-QNYO7NI5.mjs";async function p(o){if(!o.isInitialized())throw new Error("Unable to get version. Provider not initialized");let t=o.hwApp,{contractData:n,version:a}=await t.getAppConfiguration();return{version:a,dataEnabled:n===1}}export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3GRRAVW4.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/getLedgerConfiguration.ts"],
|
|
4
|
+
"sourcesContent": ["import { HWProvider } from '@multiversx/sdk-hw-provider';\nimport { IHWWalletApp } from '@multiversx/sdk-hw-provider/out/interface';\n\nimport { LEDGER_CONTRACT_DATA_ENABLED_VALUE } from 'constants/mvx.constants';\n\nexport async function getLedgerConfiguration(initializedHwWalletP: HWProvider) {\n if (!initializedHwWalletP.isInitialized()) {\n throw new Error('Unable to get version. Provider not initialized');\n }\n const hwApp: IHWWalletApp = (initializedHwWalletP as any).hwApp;\n const { contractData, version } = await hwApp.getAppConfiguration();\n const dataEnabled = contractData === LEDGER_CONTRACT_DATA_ENABLED_VALUE;\n return { version, dataEnabled };\n}\n"],
|
|
5
|
+
"mappings": "yCAKA,eAAsBA,EAAuBC,EAAkC,CAC7E,GAAI,CAACA,EAAqB,cAAc,EACtC,MAAM,IAAI,MAAM,iDAAiD,EAEnE,IAAMC,EAAuBD,EAA6B,MACpD,CAAE,aAAAE,EAAc,QAAAC,CAAQ,EAAI,MAAMF,EAAM,oBAAoB,EAElE,MAAO,CAAE,QAAAE,EAAS,YADED,IAAiB,CACP,CAChC",
|
|
6
|
+
"names": ["getLedgerConfiguration", "initializedHwWalletP", "hwApp", "contractData", "version"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{f as l}from"./chunk-PJWJZHIS.mjs";import{a as m}from"./chunk-QNELH2S2.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-3IYTFWEN.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as o}from"./chunk-IHSJITVR.mjs";import{a as e}from"./chunk-6LOIZTC6.mjs";import{a as r}from"./chunk-EZKCZPIE.mjs";import{a as t}from"./chunk-FE54XZXM.mjs";var a={network:{network:e},account:o,loginInfo:r,config:t,transactions:{},toasts:{customToasts:[],transactionToasts:[]},cache:{},ui:{isSidePanelOpen:!1}};export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-3KJMEECV.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as f}from"./chunk-L3EOHIBG.mjs";import{a as c}from"./chunk-FROSOADM.mjs";import{a as g}from"./chunk-VJBLHJYB.mjs";import{a as o}from"./chunk-RRK6GTWZ.mjs";import{a as p}from"./chunk-RWQNLK3I.mjs";import{a as n}from"./chunk-IPMSVHGJ.mjs";import{a as d}from"./chunk-IHAZNPKL.mjs";import{a as m}from"./chunk-PSJI2G34.mjs";import{a}from"./chunk-2CG6PNPJ.mjs";import{a as r,b as e}from"./chunk-2JFN726G.mjs";import{rest as s}from"msw";import{setupServer as k}from"msw/node";var t=$=>(R,u,i)=>u(i.status(200),i.json($)),A=[s.get(`${e.apiAddress}/dapp/config`,t(c)),s.get(`${e.apiAddress}/network/config`,t(a)),s.get(`https://${n.url}/socket.io/`,t(m)),s.get(`${e.apiAddress}/websocket/config`,t(n)),s.get(`${e.apiAddress}/economics`,t(f)),s.get(`${e.apiAddress}/accounts/${r}`,t({...o,address:r})),s.get(`${e.apiAddress}/accounts/${o.address}`,t(o)),s.get(`${e.apiAddress}/tokens/${d.identifier}`,t(d)),s.get(`${e.apiAddress}/accounts/${p.address}`,t(p)),s.get(`${e.apiAddress}/blocks`,t(g))],B=k(...A);export{s as a,t as b,B as c};
|
|
2
|
+
//# sourceMappingURL=chunk-3VIMQHXJ.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/__mocks__/server.ts"],
|
|
4
|
+
"sourcesContent": ["import {\n DefaultBodyType,\n PathParams,\n ResponseComposition,\n rest,\n RestContext,\n RestRequest\n} from 'msw';\nimport { setupServer } from 'msw/node';\nimport { testAddress, testNetwork } from './accountConfig';\nimport {\n account,\n blocks,\n dappConfig,\n economics,\n networkConfig,\n socketResponse,\n websocketConfig\n} from './data';\nimport { testToken } from './data/testToken';\nimport { wrapEgldContract } from './data/wrapEgldContract';\n\nexport const mockResponse =\n <T extends DefaultBodyType>(body: T) =>\n (\n _req: RestRequest<never, PathParams<string>>,\n res: ResponseComposition<DefaultBodyType>,\n ctx: RestContext\n ) => {\n return res(ctx.status(200), ctx.json(body));\n };\n\nconst handlers = [\n rest.get(`${testNetwork.apiAddress}/dapp/config`, mockResponse(dappConfig)),\n\n rest.get(\n `${testNetwork.apiAddress}/network/config`,\n mockResponse(networkConfig)\n ),\n rest.get(\n `https://${websocketConfig.url}/socket.io/`,\n mockResponse(socketResponse)\n ),\n rest.get(\n `${testNetwork.apiAddress}/websocket/config`,\n mockResponse(websocketConfig)\n ),\n rest.get(`${testNetwork.apiAddress}/economics`, mockResponse(economics)),\n rest.get(\n `${testNetwork.apiAddress}/accounts/${testAddress}`,\n mockResponse({ ...account, address: testAddress })\n ),\n rest.get(\n `${testNetwork.apiAddress}/accounts/${account.address}`,\n mockResponse(account)\n ),\n rest.get(\n `${testNetwork.apiAddress}/tokens/${testToken.identifier}`,\n mockResponse(testToken)\n ),\n rest.get(\n `${testNetwork.apiAddress}/accounts/${wrapEgldContract.address}`,\n mockResponse(wrapEgldContract)\n ),\n rest.get(`${testNetwork.apiAddress}/blocks`, mockResponse(blocks))\n];\n\n// This configures a request mocking server with the given request handlers.\nconst server = setupServer(...handlers);\n\nexport { server, rest };\n"],
|
|
5
|
+
"mappings": "4ZAAA,OAIE,QAAAA,MAGK,MACP,OAAS,eAAAC,MAAmB,WAcrB,IAAMC,EACiBC,GAC5B,CACEC,EACAC,EACAC,IAEOD,EAAIC,EAAI,OAAO,GAAG,EAAGA,EAAI,KAAKH,CAAI,CAAC,EAGxCI,EAAW,CACfC,EAAK,IAAI,GAAGC,EAAY,UAAU,eAAgBP,EAAaQ,CAAU,CAAC,EAE1EF,EAAK,IACH,GAAGC,EAAY,UAAU,kBACzBP,EAAaS,CAAa,CAC5B,EACAH,EAAK,IACH,WAAWI,EAAgB,GAAG,cAC9BV,EAAaW,CAAc,CAC7B,EACAL,EAAK,IACH,GAAGC,EAAY,UAAU,oBACzBP,EAAaU,CAAe,CAC9B,EACAJ,EAAK,IAAI,GAAGC,EAAY,UAAU,aAAcP,EAAaY,CAAS,CAAC,EACvEN,EAAK,IACH,GAAGC,EAAY,UAAU,aAAaM,CAAW,GACjDb,EAAa,CAAE,GAAGc,EAAS,QAASD,CAAY,CAAC,CACnD,EACAP,EAAK,IACH,GAAGC,EAAY,UAAU,aAAaO,EAAQ,OAAO,GACrDd,EAAac,CAAO,CACtB,EACAR,EAAK,IACH,GAAGC,EAAY,UAAU,WAAWQ,EAAU,UAAU,GACxDf,EAAae,CAAS,CACxB,EACAT,EAAK,IACH,GAAGC,EAAY,UAAU,aAAaS,EAAiB,OAAO,GAC9DhB,EAAagB,CAAgB,CAC/B,EACAV,EAAK,IAAI,GAAGC,EAAY,UAAU,UAAWP,EAAaiB,CAAM,CAAC,CACnE,EAGMC,EAASC,EAAY,GAAGd,CAAQ",
|
|
6
|
+
"names": ["rest", "setupServer", "mockResponse", "body", "_req", "res", "ctx", "handlers", "rest", "testNetwork", "dappConfig", "networkConfig", "websocketConfig", "socketResponse", "economics", "testAddress", "account", "testToken", "wrapEgldContract", "blocks", "server", "setupServer"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utils/visual/switchTheme.ts"],
|
|
4
|
+
"sourcesContent": ["import { safeWindow } from 'constants/window.constants';\nimport { ThemesEnum } from 'types/theme.types';\n\nexport function switchTheme(theme: `${ThemesEnum}`) {\n try {\n if (!safeWindow) {\n return;\n }\n safeWindow.document.documentElement.dataset.mvxTheme = theme;\n } catch (_err) {\n console.log('Error switching the theme!');\n }\n}\n"],
|
|
5
|
+
"mappings": "yCAGO,SAASA,EAAYC,EAAwB,CAClD,GAAI,CACF,GAAI,CAACC,EACH,OAEFA,EAAW,SAAS,gBAAgB,QAAQ,SAAWD,CACzD,MAAe,CACb,QAAQ,IAAI,4BAA4B,CAC1C,CACF",
|
|
6
|
+
"names": ["switchTheme", "theme", "safeWindow"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as t}from"./chunk-PCPUKFTJ.mjs";var n=class{static get create(){return this.createComponent}static set create(e){this.createComponent=e}};n.createComponent=async({name:e,anchor:m})=>{if(!t?.customElements?.get(e))return null;let o=t.document.createElement(e);return(m||t.document.body).appendChild(o),await customElements.whenDefined(e),o};export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-53NQH7NR.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utils/ComponentFactory.ts"],
|
|
4
|
+
"sourcesContent": ["import { UITagsEnum } from 'constants/UITags.enum';\nimport { safeWindow } from 'constants/window.constants';\nimport type { IEventBus } from 'lib/sdkDappUi';\n\nexport interface CreateEventBusUIElementType extends HTMLElement {\n getEventBus: () => Promise<IEventBus | null>;\n}\n\nexport type CreateComponentType = <T = CreateEventBusUIElementType>({\n name,\n anchor\n}: {\n name: `${UITagsEnum}`;\n anchor?: HTMLElement;\n}) => Promise<T>;\n\nexport class ComponentFactory {\n private static createComponent: CreateComponentType = async <\n T = CreateEventBusUIElementType\n >({\n name,\n anchor\n }: {\n name: `${UITagsEnum}`;\n anchor?: HTMLElement;\n }) => {\n const webComponent = safeWindow?.customElements?.get(name);\n\n if (!webComponent) {\n return null as T;\n }\n\n const element = safeWindow.document.createElement(name);\n const rootElement = anchor || safeWindow.document.body;\n rootElement.appendChild(element);\n await customElements.whenDefined(name);\n\n return element as T;\n };\n\n static get create() {\n return this.createComponent;\n }\n\n static set create(customCreateFunction: CreateComponentType) {\n this.createComponent = customCreateFunction;\n }\n}\n"],
|
|
5
|
+
"mappings": "yCAgBO,IAAMA,EAAN,KAAuB,CAwB5B,WAAW,QAAS,CAClB,OAAO,KAAK,eACd,CAEA,WAAW,OAAOC,EAA2C,CAC3D,KAAK,gBAAkBA,CACzB,CACF,EA/BaD,EACI,gBAAuC,MAEpD,CACA,KAAAE,EACA,OAAAC,CACF,IAGM,CAGJ,GAAI,CAFiBC,GAAY,gBAAgB,IAAIF,CAAI,EAGvD,OAAO,KAGT,IAAMG,EAAUD,EAAW,SAAS,cAAcF,CAAI,EAEtD,OADoBC,GAAUC,EAAW,SAAS,MACtC,YAAYC,CAAO,EAC/B,MAAM,eAAe,YAAYH,CAAI,EAE9BG,CACT",
|
|
6
|
+
"names": ["ComponentFactory", "customCreateFunction", "name", "anchor", "safeWindow", "element"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{HWProvider as d}from"@multiversx/sdk-hw-provider";async function s({provider:i,ledgerProvider:r,ledgerLogin:e,shouldInitProvider:t}){let n=e?.index!=null;if(i instanceof d&&i.isInitialized())return n&&await i.setAddressIndex(e.index),i;if(t&&!await r.init())throw new Error("Failed to initialize Ledger Provider");return n&&await r.setAddressIndex(e.index),r}export{s as a};
|
|
2
|
+
//# sourceMappingURL=chunk-5HEWN34K.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/initHwProvider.ts"],
|
|
4
|
+
"sourcesContent": ["import { HWProvider } from '@multiversx/sdk-hw-provider';\nimport { DappProvider } from 'providers/DappProvider/DappProvider';\n\ntype InitHwProviderParams = {\n provider: DappProvider | HWProvider;\n ledgerProvider: HWProvider;\n ledgerLogin?: { index?: number | null } | null;\n shouldInitProvider: boolean;\n};\n\nexport async function initHwProvider({\n provider,\n ledgerProvider,\n ledgerLogin,\n shouldInitProvider\n}: InitHwProviderParams): Promise<HWProvider> {\n const hasAddressIndex = ledgerLogin?.index != null;\n\n if (provider instanceof HWProvider && provider.isInitialized()) {\n if (hasAddressIndex) {\n await provider.setAddressIndex(ledgerLogin!.index as number);\n }\n return provider;\n }\n\n if (shouldInitProvider) {\n const isInitialized = await ledgerProvider.init();\n if (!isInitialized) {\n throw new Error('Failed to initialize Ledger Provider');\n }\n }\n\n if (hasAddressIndex) {\n await ledgerProvider.setAddressIndex(ledgerLogin!.index as number);\n }\n\n return ledgerProvider;\n}\n"],
|
|
5
|
+
"mappings": "AAAA,OAAS,cAAAA,MAAkB,8BAU3B,eAAsBC,EAAe,CACnC,SAAAC,EACA,eAAAC,EACA,YAAAC,EACA,mBAAAC,CACF,EAA8C,CAC5C,IAAMC,EAAkBF,GAAa,OAAS,KAE9C,GAAIF,aAAoBF,GAAcE,EAAS,cAAc,EAC3D,OAAII,GACF,MAAMJ,EAAS,gBAAgBE,EAAa,KAAe,EAEtDF,EAGT,GAAIG,GAEE,CADkB,MAAMF,EAAe,KAAK,EAE9C,MAAM,IAAI,MAAM,sCAAsC,EAI1D,OAAIG,GACF,MAAMH,EAAe,gBAAgBC,EAAa,KAAe,EAG5DD,CACT",
|
|
6
|
+
"names": ["HWProvider", "initHwProvider", "provider", "ledgerProvider", "ledgerLogin", "shouldInitProvider", "hasAddressIndex"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-5P3UEE7C.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c as I,d as p,e as d}from"./chunk-QNYO7NI5.mjs";import{a as g}from"./chunk-NI7XCWV5.mjs";import{b as m,d as u,e as f}from"./chunk-PJWJZHIS.mjs";import{a as o,c as t,e as c}from"./chunk-NTEMINYA.mjs";import _ from"bignumber.js";function M({from:l,to:G,minGasLimit:r=String(5e4),gasLimit:i,gasPrice:e,data:B,gasPerDataByte:L,gasPriceModifier:T,defaultGasPrice:P=String(1e9),chainId:n}){let a=B||"",A=u(i)?i:r,C=g({data:a})?5e4:0,D=new _(A).plus(C).toNumber(),F=f(e)?e:P,S=new o({nonce:BigInt(0),value:BigInt(0),receiver:new t(G),sender:new t(l),gasPrice:BigInt(F),gasLimit:BigInt(D),data:Buffer.from(a.trim()),chainID:n,version:1});try{return new c().computeTransactionFee(S,{gasPerDataByte:BigInt(L),minGasLimit:BigInt(r),gasPriceModifier:parseFloat(T),chainID:n}).toString(10)}catch(s){return console.error(s),m}}export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-5R7MHTVH.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.ts"],
|
|
4
|
+
"sourcesContent": ["import BigNumber from 'bignumber.js';\nimport {\n EXTRA_GAS_LIMIT_GUARDED_TX,\n GAS_LIMIT,\n GAS_PRICE\n} from 'constants/mvx.constants';\nimport { Transaction, Address, TransactionComputer } from 'lib/sdkCore';\nimport { stringIsFloat, stringIsInteger, ZERO } from 'lib/sdkDappUtils';\nimport { isGuardianTx } from 'utils/transactions/isGuardianTx';\n\nexport interface CalculateFeeLimitType {\n gasLimit: string;\n gasPrice: string;\n data: string;\n gasPerDataByte: string;\n gasPriceModifier: string;\n chainId: string;\n minGasLimit?: string;\n defaultGasPrice?: string;\n from: string;\n to: string;\n}\nexport function calculateFeeLimit({\n from,\n to,\n minGasLimit = String(GAS_LIMIT),\n gasLimit,\n gasPrice,\n data: inputData,\n gasPerDataByte,\n gasPriceModifier,\n defaultGasPrice = String(GAS_PRICE),\n chainId\n}: CalculateFeeLimitType) {\n const data = inputData || '';\n const validGasLimit = stringIsInteger(gasLimit) ? gasLimit : minGasLimit;\n\n // We need to add extra gas fee for guardian transactions\n const extraGasLimit = isGuardianTx({ data }) ? EXTRA_GAS_LIMIT_GUARDED_TX : 0;\n const usedGasLimit = new BigNumber(validGasLimit)\n .plus(extraGasLimit)\n .toNumber();\n\n const validGasPrice = stringIsFloat(gasPrice) ? gasPrice : defaultGasPrice;\n const transaction = new Transaction({\n nonce: BigInt(0),\n value: BigInt(0),\n receiver: new Address(to),\n sender: new Address(from),\n gasPrice: BigInt(validGasPrice),\n gasLimit: BigInt(usedGasLimit),\n data: Buffer.from(data.trim()),\n chainID: chainId,\n version: 1\n });\n\n try {\n const transactionComputer = new TransactionComputer();\n const bNfee = transactionComputer.computeTransactionFee(transaction, {\n gasPerDataByte: BigInt(gasPerDataByte),\n minGasLimit: BigInt(minGasLimit),\n gasPriceModifier: parseFloat(gasPriceModifier),\n chainID: chainId\n });\n return bNfee.toString(10);\n } catch (err) {\n console.error(err);\n return ZERO;\n }\n}\n"],
|
|
5
|
+
"mappings": "8MAAA,OAAOA,MAAe,eAsBf,SAASC,EAAkB,CAChC,KAAAC,EACA,GAAAC,EACA,YAAAC,EAAc,OAAO,GAAS,EAC9B,SAAAC,EACA,SAAAC,EACA,KAAMC,EACN,eAAAC,EACA,iBAAAC,EACA,gBAAAC,EAAkB,OAAO,GAAS,EAClC,QAAAC,CACF,EAA0B,CACxB,IAAMC,EAAOL,GAAa,GACpBM,EAAgBC,EAAgBT,CAAQ,EAAIA,EAAWD,EAGvDW,EAAgBC,EAAa,CAAE,KAAAJ,CAAK,CAAC,EAAI,IAA6B,EACtEK,EAAe,IAAIC,EAAUL,CAAa,EAC7C,KAAKE,CAAa,EAClB,SAAS,EAENI,EAAgBC,EAAcd,CAAQ,EAAIA,EAAWI,EACrDW,EAAc,IAAIC,EAAY,CAClC,MAAO,OAAO,CAAC,EACf,MAAO,OAAO,CAAC,EACf,SAAU,IAAIC,EAAQpB,CAAE,EACxB,OAAQ,IAAIoB,EAAQrB,CAAI,EACxB,SAAU,OAAOiB,CAAa,EAC9B,SAAU,OAAOF,CAAY,EAC7B,KAAM,OAAO,KAAKL,EAAK,KAAK,CAAC,EAC7B,QAASD,EACT,QAAS,CACX,CAAC,EAED,GAAI,CAQF,OAP4B,IAAIa,EAAoB,EAClB,sBAAsBH,EAAa,CACnE,eAAgB,OAAOb,CAAc,EACrC,YAAa,OAAOJ,CAAW,EAC/B,iBAAkB,WAAWK,CAAgB,EAC7C,QAASE,CACX,CAAC,EACY,SAAS,EAAE,CAC1B,OAASc,EAAK,CACZ,eAAQ,MAAMA,CAAG,EACVC,CACT,CACF",
|
|
6
|
+
"names": ["BigNumber", "calculateFeeLimit", "from", "to", "minGasLimit", "gasLimit", "gasPrice", "inputData", "gasPerDataByte", "gasPriceModifier", "defaultGasPrice", "chainId", "data", "validGasLimit", "stringIsInteger", "extraGasLimit", "isGuardianTx", "usedGasLimit", "BigNumber", "validGasPrice", "stringIsFloat", "transaction", "Transaction", "Address", "TransactionComputer", "err", "ZERO"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as r}from"./chunk-HX3JKALT.mjs";import{a as o}from"./chunk-HSF3JATH.mjs";async function p({loginToken:i,extraInfoData:n}){if(i==null||Object.keys(n).length===0)return null;let t=o(String(i)),{timestamp:e,...a}=t?.extraInfo||{};if(!(t&&e!=null))return null;let s={hash:String(t?.blockHash),timestamp:Number(e)};return await r({extraInfo:{...a,...n},expirySeconds:t?.ttl,origin:t?.origin}).initialize({latestBlockInfo:s})}export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-5WJQ2KWS.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{q as o}from"./chunk-2QIUCSYX.mjs";import{a as c}from"./chunk-APCGI2A5.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-6PCK2RPQ.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as o}from"./chunk-D6CXZV4Y.mjs";import{c as e,g as s}from"./chunk-NTEMINYA.mjs";async function m({message:r,provider:a,options:n}){let g=o(),i=new s({address:new e(g),data:r.data});return await a.signMessage(i,n)}export{m as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6QPOPWIN.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as o}from"./chunk-D4JFV2LM.mjs";import{v as e}from"./chunk-2JKCBTYK.mjs";import n from"axios";async function p(r,s){let a=`${o(s)}/${e}/${r}`;try{let{data:t}=await n.get(a);return t?{[r]:{lastBlock:t.lastBlock,fast:t.fast,faster:t.faster}}:null}catch(t){return console.error("Error fetching gas station metadata from:",a,t),null}}export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6RCSIT2P.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/apiCalls/configuration/getGasStationMetadata.ts"],
|
|
4
|
+
"sourcesContent": ["import axios from 'axios';\nimport { getCleanApiAddress } from 'apiCalls/configuration/getCleanApiAddress';\nimport { GAS_STATION_ENDPOINT } from 'apiCalls/endpoints';\nimport { NetworkType } from 'types/network.types';\n\ninterface IGasStationApiResponse {\n lastBlock: number;\n fast: number;\n faster: number;\n}\n\nexport async function getGasStationMetadataFromApi(\n shard: number,\n customApiAddress?: string\n): Promise<NetworkType['gasStationMetadata'] | null> {\n const apiAddress = getCleanApiAddress(customApiAddress);\n const gasStationUrl = `${apiAddress}/${GAS_STATION_ENDPOINT}/${shard}`;\n\n try {\n const { data } = await axios.get<IGasStationApiResponse>(gasStationUrl);\n\n if (data) {\n return {\n [shard]: {\n lastBlock: data.lastBlock,\n fast: data.fast,\n faster: data.faster\n }\n };\n }\n return null;\n } catch (err) {\n console.error(\n 'Error fetching gas station metadata from:',\n gasStationUrl,\n err\n );\n return null;\n }\n}\n"],
|
|
5
|
+
"mappings": "kFAAA,OAAOA,MAAW,QAWlB,eAAsBC,EACpBC,EACAC,EACmD,CAEnD,IAAMC,EAAgB,GADHC,EAAmBF,CAAgB,CACnB,IAAIG,CAAoB,IAAIJ,CAAK,GAEpE,GAAI,CACF,GAAM,CAAE,KAAAK,CAAK,EAAI,MAAMC,EAAM,IAA4BJ,CAAa,EAEtE,OAAIG,EACK,CACL,CAACL,CAAK,EAAG,CACP,UAAWK,EAAK,UAChB,KAAMA,EAAK,KACX,OAAQA,EAAK,MACf,CACF,EAEK,IACT,OAASE,EAAK,CACZ,eAAQ,MACN,4CACAL,EACAK,CACF,EACO,IACT,CACF",
|
|
6
|
+
"names": ["axios", "getGasStationMetadataFromApi", "shard", "customApiAddress", "gasStationUrl", "getCleanApiAddress", "GAS_STATION_ENDPOINT", "data", "axios", "err"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"./chunk-NGM3AVCY.mjs";import{s as u}from"./chunk-2QIUCSYX.mjs";import{e as s}from"./chunk-FK6DWWZF.mjs";function x(n){let e=u(),o=a(e),c=s(e),t=Object.keys(o).map(Number).reduce((r,m)=>{let i=o[m]?.transactions||[];return Math.max(r,...i.map(l=>l.nonce),0)},0);return t>0&&(t+=1),n==null?Math.max(t,c):Math.max(t,n.nonce,c)}export{x as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6RYKBAUE.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as c}from"./chunk-NJN53MJV.mjs";import{a as r}from"./chunk-YSCND2MX.mjs";import{q as n}from"./chunk-2QIUCSYX.mjs";var l={},u={},p=(t,o)=>{n().setState(({toasts:s})=>{let a=s.customToasts.length>0?Math.max(...s.customToasts.map(m=>parseInt(m.toastId.split("-").pop()??"0"))):0,e=o??`custom-toast-${a+1}`,T=s.customToasts.findIndex(m=>m.toastId===e),i={...t,toastId:e};if(T!==-1){s.customToasts[T]=i;return}s.customToasts.push({...i,toastId:e})},!1,{type:"addCustomToast",payload:{value:{customToast:t,currentToastId:o}}})},C=t=>{n().setState(({toasts:o})=>{o.customToasts=o.customToasts.filter(s=>s.toastId!==t)},!1,{type:"removeCustomToast",payload:{value:t}})},f=()=>{n().setState(({toasts:t})=>{t.customToasts=[]},!1,{type:"removeAllCustomToasts",payload:{value:null}})},g=()=>{n().setState(({toasts:t})=>{t.transactionToasts=[]})},y=({toastId:t,totalDuration:o})=>{let s="";return n().setState(({toasts:a})=>{let e=a.transactionToasts.length>0?Math.max(...a.transactionToasts.map(T=>parseInt(T.toastId.split("-").pop()??"0"))):0;s=t??`transaction-toast-${e+1}`,a.transactionToasts.push({startTime:r(),endTime:c(o),toastId:s})},!1,"addTransactionToast"),s},v=t=>{n().setState(({toasts:o})=>{o.transactionToasts=o.transactionToasts.filter(s=>s.toastId!==t)},!1,"removeTransactionToast"),delete u[t],delete l[t]},h=t=>{let{toasts:o}=n().getState(),s=o.customToasts.length>0?Math.max(...o.customToasts.map(e=>parseInt(e.toastId.split("-").pop()??"0"))):0,a=t.toastId||`custom-toast-${s+1}`;return t.onClose&&(u[a]=t.onClose),t.instantiateToastElement?(l[a]=t.instantiateToastElement,n().setState(({toasts:e})=>{let T=e.customToasts.findIndex(m=>m.toastId===a),i={...t,instantiateToastElement:null,toastId:a};T!==-1?e.customToasts[T]=i:e.customToasts.push(i)},!1,"createCustomToast"),a):(p(t,a),a)};export{l as a,u as b,p as c,C as d,f as e,g as f,y as g,v as h,h as i};
|
|
2
|
+
//# sourceMappingURL=chunk-7BESPSVI.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/store/actions/toasts/toastsActions.ts"],
|
|
4
|
+
"sourcesContent": ["import {\n CustomToastType,\n IComponentToast\n} from 'store/slices/toast/toastSlice.types';\nimport { getStore } from 'store/store';\nimport {\n getUnixTimestamp,\n getUnixTimestampWithAddedMilliseconds\n} from 'utils/dateTime';\n\nexport const customToastComponentDictionary: Record<\n string,\n IComponentToast['instantiateToastElement']\n> = {};\nexport const customToastCloseHandlersDictionary: Record<string, () => void> =\n {};\n\nexport const addCustomToast = (\n customToast: CustomToastType,\n currentToastId?: string\n) => {\n getStore().setState(\n ({ toasts: state }) => {\n const lastToastIndex =\n state.customToasts.length > 0\n ? Math.max(\n ...state.customToasts.map((toast) =>\n parseInt(toast.toastId.split('-').pop() ?? '0')\n )\n )\n : 0;\n const toastId = currentToastId ?? `custom-toast-${lastToastIndex + 1}`;\n\n const existingToastIndex = state.customToasts.findIndex(\n (toast) => toast.toastId === toastId\n );\n\n const newToast: CustomToastType = {\n ...customToast,\n toastId\n };\n\n const isToastFound = existingToastIndex !== -1;\n\n if (isToastFound) {\n state.customToasts[existingToastIndex] = newToast;\n return;\n }\n\n state.customToasts.push({\n ...newToast,\n toastId\n });\n },\n false,\n {\n type: 'addCustomToast',\n // @ts-ignore\n payload: {\n value: { customToast, currentToastId }\n }\n }\n );\n};\n\nexport const removeCustomToast = (toastId: string) => {\n getStore().setState(\n ({ toasts: state }) => {\n state.customToasts = state.customToasts.filter(\n (toast) => toast.toastId !== toastId\n );\n },\n false,\n {\n type: 'removeCustomToast',\n // @ts-ignore\n payload: {\n value: toastId\n }\n }\n );\n};\n\nexport const removeAllCustomToasts = () => {\n getStore().setState(\n ({ toasts: state }) => {\n state.customToasts = [];\n },\n false,\n {\n type: 'removeAllCustomToasts',\n // @ts-ignore\n payload: {\n value: null\n }\n }\n );\n};\n\nexport const removeAllTransactionToasts = () => {\n getStore().setState(({ toasts: state }) => {\n state.transactionToasts = [];\n });\n};\n\nexport const addTransactionToast = ({\n toastId,\n totalDuration\n}: {\n toastId: string;\n totalDuration: number;\n}): string => {\n let newToastId: string = '';\n getStore().setState(\n ({ toasts: state }) => {\n const lastToastIndex =\n state.transactionToasts.length > 0\n ? Math.max(\n ...state.transactionToasts.map((toast) =>\n parseInt(toast.toastId.split('-').pop() ?? '0')\n )\n )\n : 0;\n newToastId = toastId ?? `transaction-toast-${lastToastIndex + 1}`;\n\n state.transactionToasts.push({\n startTime: getUnixTimestamp(),\n endTime: getUnixTimestampWithAddedMilliseconds(totalDuration),\n toastId: newToastId\n });\n },\n false,\n 'addTransactionToast'\n );\n\n return newToastId;\n};\n\nexport const removeTransactionToast = (toastId: string) => {\n getStore().setState(\n ({ toasts: state }) => {\n state.transactionToasts = state.transactionToasts.filter((toast) => {\n return toast.toastId !== toastId;\n });\n },\n false,\n 'removeTransactionToast'\n );\n\n delete customToastCloseHandlersDictionary[toastId];\n delete customToastComponentDictionary[toastId];\n};\n\nexport const createCustomToast = (props: CustomToastType) => {\n const { toasts } = getStore().getState();\n\n const lastToastIndex =\n toasts.customToasts.length > 0\n ? Math.max(\n ...toasts.customToasts.map((toast) =>\n parseInt(toast.toastId.split('-').pop() ?? '0')\n )\n )\n : 0;\n\n const toastId = props.toastId || `custom-toast-${lastToastIndex + 1}`;\n\n if (props.onClose) {\n customToastCloseHandlersDictionary[toastId] = props.onClose;\n }\n\n if (props.instantiateToastElement) {\n customToastComponentDictionary[toastId] = props.instantiateToastElement;\n\n getStore().setState(\n ({ toasts: state }) => {\n const existingToastIndex = state.customToasts.findIndex(\n (toast) => toast.toastId === toastId\n );\n\n const toast: CustomToastType = {\n ...props,\n instantiateToastElement: null,\n toastId\n };\n\n const isToastFound = existingToastIndex !== -1;\n\n if (isToastFound) {\n state.customToasts[existingToastIndex] = toast;\n } else {\n state.customToasts.push(toast);\n }\n },\n false,\n 'createCustomToast'\n );\n\n return toastId;\n }\n\n addCustomToast(props, toastId);\n return toastId;\n};\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["customToastComponentDictionary", "customToastCloseHandlersDictionary", "addCustomToast", "customToast", "currentToastId", "getStore", "state", "lastToastIndex", "toast", "toastId", "existingToastIndex", "newToast", "removeCustomToast", "removeAllCustomToasts", "removeAllTransactionToasts", "addTransactionToast", "totalDuration", "newToastId", "getUnixTimestamp", "getUnixTimestampWithAddedMilliseconds", "removeTransactionToast", "createCustomToast", "props", "toasts"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as g}from"./chunk-NYZ726DG.mjs";import{b as c}from"./chunk-7VHTZYM2.mjs";import{a as s}from"./chunk-3FXHIV6O.mjs";import{s as o}from"./chunk-2QIUCSYX.mjs";import{o as a,u as m}from"./chunk-2JKCBTYK.mjs";async function I({tokenId:n}){let t=c(o()),r={tokenDecimals:Number(t.decimals),tokenLabel:"",tokenImageUrl:""},{isNft:k}=s(n),i=n,p=k?a:m;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-7FV6DEQX.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as w}from"./chunk-EPB4JKWX.mjs";import{a as p}from"./chunk-IVMRBKXP.mjs";import{a as O}from"./chunk-PS3SWN5M.mjs";import{a as M}from"./chunk-IAN3XFXS.mjs";import{k as I,l as F,n as N}from"./chunk-E2GGD7D4.mjs";import{a as b,b as C,d as g,e as v,g as E,h as y,i as S}from"./chunk-7BESPSVI.mjs";import{d as B}from"./chunk-QZC64RDG.mjs";import{l as f}from"./chunk-M6MN4RXG.mjs";import{q as c}from"./chunk-2QIUCSYX.mjs";import{a as d}from"./chunk-53NQH7NR.mjs";import A from"lodash.isequal";import l from"lodash.isequal";var m=class{constructor(t){this.toastsElement=null;this.eventBus=null;this.isCreatingElement=!1;this.eventBusUnsubscribeFunctions=[];this.onCloseToast=t.onCloseToast,this.store=t.store||c(),this.notificationsFeedManager=t.notificationsFeedManager||h.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 s=await this.createToastListElement();if(!s)return;this.eventBus=await s.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 d.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 u=class a{constructor(t){this.transactionToasts=[];this.customToasts=[];this.unsubscribeFromStore=()=>null;this.uiCoordinator=null;this.destroy(),this.store=t?.store||c(),this.lifetimeManager=t?.lifetimeManager??new O,this.uiCoordinator=t?.uiCoordinator??new m({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:s,transactions:i},{toasts:e,transactions:o})=>{let n=!l(e.transactionToasts,s.transactionToasts),r=!l(o,i);(n||r)&&await this.updateTransactionToastsList(),!l(e.customToasts,s.customToasts)&&await this.updateCustomToastList()})}static getInstance(){return a.instance||(a.instance=new a),a.instance}handleCompletedTransaction(t){let{transactions:s}=this.store.getState(),i=s[t];if(!i)return!1;let{status:e}=i,o=N(e),n=F(e),r=I(e),T=n||r||o;return T?(this.successfulToastLifetime&&this.lifetimeManager.start(t),T):(this.lifetimeManager.stop(t),T)}async createTransactionToast(t,s){let i=E({toastId:t,totalDuration:s});return this.handleCompletedTransaction(t),await this.updateTransactionToastsList(),i}async createCustomToast(t){let s=S(t);return await this.updateCustomToastList(),s}async updateTransactionToastsList(){let t=this.store.getState(),{toasts:s}=t,{pendingTransactionToasts:i,completedTransactionToasts:e}=await p({store:t});this.transactionToasts=[...i,...e];for(let o of s.transactionToasts)this.handleCompletedTransaction(o.toastId);await this.publishTransactionToasts()}async updateCustomToastList(){let{toasts:t}=this.store.getState();this.customToasts=[];for(let s of t.customToasts){let e="message"in s?{...s}:{...s,instantiateToastElement:b[s.toastId]};this.customToasts.push(e),s.duration&&this.lifetimeManager.startWithCustomDuration(s.toastId,s.duration)}await this.uiCoordinator?.publishCustomToasts(this.customToasts)}handleTransactionToastClose(t){return this.handleCompletedTransaction(t)?(y(t),!0):!1}async showToasts(){this.uiCoordinator?.showToasts(),await this.updateCustomToastList(),await this.updateTransactionToastsList()}hideToasts(){this.uiCoordinator?.hideToasts()}closeToast(t){if(this.customToasts.find(i=>i.toastId===t)){this.lifetimeManager.stop(t);let i=C[t];return i?.(),g(t),!0}return this.handleTransactionToastClose(t)}async publishTransactionToasts(){await this.uiCoordinator?.publishTransactionToasts(this.transactionToasts)}destroy(){this.unsubscribeFromStore(),this.lifetimeManager?.destroy(),this.uiCoordinator?.destroy(),v()}};var D="NOTIFICATIONS_FEED_STORE_SUBSCRIBE",h=class a extends M{constructor(s){super({uiDataUpdateEvent:"OPEN_NOTIFICATIONS_FEED",uiTag:"mvx-notifications-feed"});this.initialData={pendingTransactions:[],historicTransactions:[]};this.store=s||c(),this.data={...this.initialData}}static getInstance(){return a.instance||(a.instance=new a),a.instance}isNotificationsFeedOpen(){return this.isOpen}async openNotificationsFeed(){u.getInstance().hideToasts(),await this.openUI(),await this.updateDataAndNotifications();let i=this.store.subscribe(async({toasts:e,transactions:o},{toasts:n,transactions:r})=>{(!A(n.transactionToasts,e.transactionToasts)||!A(r,o))&&await this.updateDataAndNotifications()});this.unsubscribeFunctions.set(D,[i]),this.eventBus?.publish("OPEN_NOTIFICATIONS_FEED"),await this.updateDataAndNotifications()}async handleCloseUI(){let s=u.getInstance();this.closeUI(),await s.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:s}=this.store.getState(),{pendingTransactionToasts:i}=await p();this.data.pendingTransactions=i;let e=Object.keys(s).reduce((o,n)=>(["sent","pending"].includes(String(s[n].status))||(o[n]=s[n]),o),{});this.data.historicTransactions=await w.getTransactionsHistory({transactionsSessions:e}),await this.updateNotificationsFeed()}handleClearNotificationsFeedHistory(){B(),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))}};export{h as a,m as b,u as c};
|
|
2
|
+
//# sourceMappingURL=chunk-7GWD5XR7.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/managers/NotificationsFeedManager/NotificationsFeedManager.ts", "../../src/managers/ToastManager/ToastManager.ts", "../../src/managers/ToastManager/ToastUICoordinator.ts"],
|
|
4
|
+
"sourcesContent": ["import isEqual from 'lodash.isequal';\nimport { UITagsEnum } from 'constants/UITags.enum';\nimport { TransactionsHistoryController } from 'controllers/TransactionsHistoryController';\nimport { ITransactionListItem, MvxNotificationsFeed } from 'lib/sdkDappUi';\nimport { clearCompletedTransactions } from 'store/actions/transactions/transactionsActions';\nimport { TransactionsSliceType } from 'store/slices/transactions/transactionsSlice.types';\nimport { getStore } from 'store/store';\nimport { TransactionServerStatusesEnum } from 'types/enums.types';\nimport { TransactionBatchStatusesEnum } from 'types/enums.types';\nimport { NotificationsFeedEventsEnum } from './types';\nimport { SidePanelBaseManager } from '../internal/SidePanelBaseManager/SidePanelBaseManager';\nimport { ToastManager } from '../ToastManager';\nimport { createToastsFromTransactions } from '../ToastManager/helpers/createToastsFromTransactions';\nimport { ITransactionToast } from '../ToastManager/types';\n\ninterface INotificationsFeedManagerData {\n pendingTransactions: ITransactionToast[];\n historicTransactions: ITransactionListItem[];\n}\n\nconst NOTIFICATIONS_FEED_STORE_SUBSCRIBE = 'NOTIFICATIONS_FEED_STORE_SUBSCRIBE';\n\nexport class NotificationsFeedManager extends SidePanelBaseManager<\n MvxNotificationsFeed,\n INotificationsFeedManagerData,\n NotificationsFeedEventsEnum | typeof NOTIFICATIONS_FEED_STORE_SUBSCRIBE\n> {\n private static instance: NotificationsFeedManager;\n private readonly store: ReturnType<typeof getStore>;\n\n protected initialData: INotificationsFeedManagerData = {\n pendingTransactions: [],\n historicTransactions: []\n };\n\n public static getInstance(): NotificationsFeedManager {\n if (!NotificationsFeedManager.instance) {\n NotificationsFeedManager.instance = new NotificationsFeedManager();\n }\n return NotificationsFeedManager.instance;\n }\n\n constructor(store?: ReturnType<typeof getStore>) {\n super({\n uiDataUpdateEvent: NotificationsFeedEventsEnum.OPEN,\n uiTag: UITagsEnum.NOTIFICATIONS_FEED\n });\n this.store = store || getStore();\n this.data = { ...this.initialData };\n }\n\n public isNotificationsFeedOpen(): boolean {\n return this.isOpen;\n }\n\n /**\n * Open the notifications feed and toggle off the toast manager.\n */\n public async openNotificationsFeed(): Promise<void> {\n const toastManager = ToastManager.getInstance();\n toastManager.hideToasts();\n await this.openUI();\n await this.updateDataAndNotifications();\n\n const storeToastsUnsubscribe = this.store.subscribe(\n async (\n { toasts, transactions },\n { toasts: prevToasts, transactions: prevTransactions }\n ) => {\n if (\n !isEqual(prevToasts.transactionToasts, toasts.transactionToasts) ||\n !isEqual(prevTransactions, transactions)\n ) {\n await this.updateDataAndNotifications();\n }\n }\n );\n this.unsubscribeFunctions.set(NOTIFICATIONS_FEED_STORE_SUBSCRIBE, [\n storeToastsUnsubscribe\n ]);\n\n this.eventBus?.publish(NotificationsFeedEventsEnum.OPEN);\n await this.updateDataAndNotifications();\n }\n\n /**\n * Close the notifications feed and toggle on the toast manager.\n */\n protected async handleCloseUI() {\n const toastManager = ToastManager.getInstance();\n this.closeUI();\n await toastManager.showToasts();\n }\n\n protected async setupEventListeners() {\n if (!this.eventBus) {\n return;\n }\n\n this.subscribeToEventBus(\n NotificationsFeedEventsEnum.CLOSE,\n this.handleCloseUI.bind(this)\n );\n\n this.subscribeToEventBus(\n NotificationsFeedEventsEnum.CLEAR,\n this.handleClearNotificationsFeedHistory.bind(this)\n );\n }\n\n protected async updateDataAndNotifications() {\n const { transactions } = this.store.getState();\n\n const { pendingTransactionToasts } = await createToastsFromTransactions();\n\n this.data.pendingTransactions = pendingTransactionToasts;\n\n const transactionsSessions = Object.keys(transactions).reduce(\n (acc, key) => {\n const isPendingStatus = [\n TransactionBatchStatusesEnum.sent,\n `${TransactionServerStatusesEnum.pending}`\n ].includes(String(transactions[key].status));\n\n if (!isPendingStatus) {\n acc[key] = transactions[key];\n }\n return acc;\n },\n {} as TransactionsSliceType\n );\n\n this.data.historicTransactions =\n await TransactionsHistoryController.getTransactionsHistory({\n transactionsSessions\n });\n\n await this.updateNotificationsFeed();\n }\n\n private handleClearNotificationsFeedHistory() {\n clearCompletedTransactions();\n this.resetData();\n this.updateNotificationsFeed();\n }\n\n private async updateNotificationsFeed() {\n if (!this.eventBus) {\n return;\n }\n\n this.eventBus.publish(\n NotificationsFeedEventsEnum.PENDING_TRANSACTIONS_UPDATE,\n this.data.pendingTransactions\n );\n\n this.eventBus.publish(\n NotificationsFeedEventsEnum.TRANSACTIONS_HISTORY_UPDATE,\n this.data.historicTransactions\n );\n }\n}\n", "import isEqual from 'lodash.isequal';\nimport { DEFAULT_TOAST_LIFETIME } from 'constants/transactions.constants';\nimport {\n customToastCloseHandlersDictionary,\n customToastComponentDictionary,\n removeAllCustomToasts,\n removeCustomToast,\n removeTransactionToast,\n addTransactionToast,\n createCustomToast\n} from 'store/actions/toasts/toastsActions';\nimport {\n getIsTransactionFailed,\n getIsTransactionSuccessful,\n getIsTransactionTimedOut\n} from 'store/actions/transactions/transactionStateByStatus';\n\nimport { CustomToastType } from 'store/slices/toast/toastSlice.types';\nimport { getStore } from 'store/store';\nimport { createToastsFromTransactions } from './helpers/createToastsFromTransactions';\nimport { LifetimeManager } from './helpers/LifetimeManager';\nimport { ToastUICoordinator } from './ToastUICoordinator';\nimport { ITransactionToast } from './types';\n\ninterface IToastManager {\n successfulToastLifetime?: number;\n}\n\nexport class ToastManager {\n private readonly lifetimeManager: LifetimeManager;\n private store: ReturnType<typeof getStore>;\n private static instance: ToastManager;\n private transactionToasts: ITransactionToast[] = [];\n private customToasts: CustomToastType[] = [];\n private successfulToastLifetime?: number;\n private unsubscribeFromStore: () => void = () => null;\n private uiCoordinator: ToastUICoordinator | null = null;\n\n constructor(props?: {\n store?: ReturnType<typeof getStore>;\n lifetimeManager?: LifetimeManager;\n uiCoordinator?: ToastUICoordinator;\n }) {\n this.destroy();\n this.store = props?.store || getStore();\n this.lifetimeManager = props?.lifetimeManager ?? new LifetimeManager();\n this.uiCoordinator =\n props?.uiCoordinator ??\n new ToastUICoordinator({\n onCloseToast: this.closeToast.bind(this)\n });\n }\n\n public async init({\n successfulToastLifetime = DEFAULT_TOAST_LIFETIME\n }: IToastManager = {}) {\n this.successfulToastLifetime = successfulToastLifetime;\n\n this.lifetimeManager.init({ successfulToastLifetime });\n\n await this.updateTransactionToastsList();\n await this.updateCustomToastList();\n\n await this.uiCoordinator?.init();\n\n this.unsubscribeFromStore = this.store.subscribe(\n async (\n { toasts, transactions },\n { toasts: prevToasts, transactions: prevTransactions }\n ) => {\n const newToastsWereCreated = !isEqual(\n prevToasts.transactionToasts,\n toasts.transactionToasts\n );\n const checkBatchHasNewData = !isEqual(prevTransactions, transactions);\n\n if (newToastsWereCreated || checkBatchHasNewData) {\n await this.updateTransactionToastsList();\n }\n\n const newCustomToastsWereCreated = !isEqual(\n prevToasts.customToasts,\n toasts.customToasts\n );\n\n if (newCustomToastsWereCreated) {\n await this.updateCustomToastList();\n }\n }\n );\n }\n\n public static getInstance(): ToastManager {\n if (!ToastManager.instance) {\n ToastManager.instance = new ToastManager();\n }\n return ToastManager.instance;\n }\n\n private handleCompletedTransaction(toastId: string): boolean {\n const { transactions } = this.store.getState();\n const transaction = transactions[toastId];\n\n if (!transaction) {\n return false;\n }\n\n const { status } = transaction;\n const isTimedOut = getIsTransactionTimedOut(status);\n const isFailed = getIsTransactionFailed(status);\n const isSuccessful = getIsTransactionSuccessful(status);\n const isCompleted = isFailed || isSuccessful || isTimedOut;\n\n if (isCompleted) {\n if (this.successfulToastLifetime) {\n this.lifetimeManager.start(toastId);\n }\n return isCompleted;\n }\n\n this.lifetimeManager.stop(toastId);\n return isCompleted;\n }\n\n public async createTransactionToast(\n toastId: string,\n totalDuration: number\n ): Promise<string> {\n const newToastId = addTransactionToast({\n toastId,\n totalDuration\n });\n\n this.handleCompletedTransaction(toastId);\n await this.updateTransactionToastsList();\n return newToastId;\n }\n\n public async createCustomToast(toast: CustomToastType): Promise<string> {\n const toastId = createCustomToast(toast);\n await this.updateCustomToastList();\n return toastId;\n }\n\n private async updateTransactionToastsList() {\n const store = this.store.getState();\n const { toasts: toastList } = store;\n\n const { pendingTransactionToasts, completedTransactionToasts } =\n await createToastsFromTransactions({\n store\n });\n\n this.transactionToasts = [\n ...pendingTransactionToasts,\n ...completedTransactionToasts\n ];\n\n for (const toast of toastList.transactionToasts) {\n this.handleCompletedTransaction(toast.toastId);\n }\n\n await this.publishTransactionToasts();\n }\n\n private async updateCustomToastList() {\n const { toasts: toastList } = this.store.getState();\n this.customToasts = [];\n\n for (const toast of toastList.customToasts) {\n const isSimpleToast = 'message' in toast;\n\n const newToast: CustomToastType = isSimpleToast\n ? { ...toast }\n : {\n ...toast,\n instantiateToastElement:\n customToastComponentDictionary[toast.toastId]\n };\n this.customToasts.push(newToast);\n\n if (toast.duration) {\n this.lifetimeManager.startWithCustomDuration(\n toast.toastId,\n toast.duration\n );\n }\n }\n await this.uiCoordinator?.publishCustomToasts(this.customToasts);\n }\n\n private handleTransactionToastClose(toastId: string): boolean {\n const isCompleted = this.handleCompletedTransaction(toastId);\n\n if (isCompleted) {\n removeTransactionToast(toastId);\n return true;\n }\n\n return false;\n }\n\n public async showToasts() {\n this.uiCoordinator?.showToasts();\n await this.updateCustomToastList();\n await this.updateTransactionToastsList();\n }\n\n public hideToasts() {\n this.uiCoordinator?.hideToasts();\n }\n\n public closeToast(toastId: string): boolean {\n const customToast = this.customToasts.find(\n (toast) => toast.toastId === toastId\n );\n\n if (customToast) {\n this.lifetimeManager.stop(toastId);\n const handleClose = customToastCloseHandlersDictionary[toastId];\n handleClose?.();\n removeCustomToast(toastId);\n return true;\n }\n\n return this.handleTransactionToastClose(toastId);\n }\n\n private async publishTransactionToasts() {\n await this.uiCoordinator?.publishTransactionToasts(this.transactionToasts);\n }\n\n public destroy() {\n this.unsubscribeFromStore();\n this.lifetimeManager?.destroy();\n this.uiCoordinator?.destroy();\n removeAllCustomToasts();\n }\n}\n", "import { UITagsEnum } from 'constants/UITags.enum';\nimport { MvxToastList } from 'lib/sdkDappUi';\nimport { NotificationsFeedManager } from 'managers/NotificationsFeedManager/NotificationsFeedManager';\nimport type { CustomToastType } from 'store/slices/toast/toastSlice.types';\nimport { getStore } from 'store/store';\nimport { IEventBus } from 'types/manager.types';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport { ComponentFactory } from 'utils/ComponentFactory';\nimport { ToastEventsEnum } from './types';\nimport type { ITransactionToast } from './types';\n\ntype OnCloseToastType = (toastId: string) => boolean;\ntype StoreObjectType = ReturnType<typeof getStore>;\n\nexport class ToastUICoordinator {\n private toastsElement: MvxToastList | null = null;\n private eventBus: IEventBus<\n ITransactionToast[] | CustomToastType[] | null\n > | null = null;\n private isCreatingElement = false;\n private eventBusUnsubscribeFunctions: (() => void)[] = [];\n private readonly notificationsFeedManager: NotificationsFeedManager;\n private readonly store: StoreObjectType;\n private readonly onCloseToast: OnCloseToastType;\n\n constructor(props: {\n onCloseToast: OnCloseToastType;\n store?: StoreObjectType;\n notificationsFeedManager?: NotificationsFeedManager;\n }) {\n this.onCloseToast = props.onCloseToast;\n this.store = props.store || getStore();\n this.notificationsFeedManager =\n props.notificationsFeedManager || NotificationsFeedManager.getInstance();\n }\n\n public async init() {\n await this.subscribeToEventBusNotifications();\n }\n\n public showToasts() {\n this.eventBus?.publish(ToastEventsEnum.SHOW, null);\n }\n\n public hideToasts() {\n this.eventBus?.publish(ToastEventsEnum.HIDE, null);\n }\n\n public async publishTransactionToasts(toasts: ITransactionToast[]) {\n if (\n this.notificationsFeedManager.isNotificationsFeedOpen() &&\n this.eventBus\n ) {\n this.eventBus.publish(\n ToastEventsEnum.TRANSACTION_TOAST_DATA_UPDATE,\n toasts\n );\n this.hideToasts();\n return;\n }\n\n if (!this.eventBus) {\n const toastsElement = await this.createToastListElement();\n if (!toastsElement) {\n return;\n }\n this.eventBus = await toastsElement.getEventBus();\n }\n\n this.eventBus?.publish(\n ToastEventsEnum.TRANSACTION_TOAST_DATA_UPDATE,\n toasts\n );\n }\n\n public async publishCustomToasts(customToasts: CustomToastType[]) {\n this.eventBus?.publish(\n ToastEventsEnum.CUSTOM_TOAST_DATA_UPDATE,\n customToasts\n );\n }\n\n private handleOpenNotificationsFeed() {\n this.notificationsFeedManager.openNotificationsFeed();\n }\n\n public destroy() {\n this.eventBusUnsubscribeFunctions.forEach((unsubscribe) => unsubscribe());\n this.eventBusUnsubscribeFunctions = [];\n this.notificationsFeedManager?.destroy();\n }\n\n private async createToastListElement(): Promise<MvxToastList | null> {\n if (this.toastsElement) {\n return this.toastsElement;\n }\n\n if (!this.isCreatingElement) {\n this.isCreatingElement = true;\n this.toastsElement = await ComponentFactory.create<MvxToastList>({\n name: UITagsEnum.TOAST_LIST\n });\n this.isCreatingElement = false;\n }\n\n return this.toastsElement;\n }\n\n private async subscribeToEventBusNotifications() {\n const toastsElement = await this.createToastListElement();\n\n if (!toastsElement) {\n return;\n }\n\n this.eventBus = await toastsElement.getEventBus();\n if (!this.eventBus) {\n throw new Error(ProviderErrorsEnum.eventBusError);\n }\n\n this.eventBus.subscribe(ToastEventsEnum.CLOSE, this.onCloseToast);\n\n this.eventBusUnsubscribeFunctions.push(() => {\n this.eventBus?.unsubscribe(ToastEventsEnum.CLOSE, this.onCloseToast);\n });\n\n this.eventBus.subscribe(\n ToastEventsEnum.OPEN_NOTIFICATIONS_FEED,\n this.handleOpenNotificationsFeed.bind(this)\n );\n\n this.eventBusUnsubscribeFunctions.push(() => {\n this.eventBus?.unsubscribe(\n ToastEventsEnum.OPEN_NOTIFICATIONS_FEED,\n this.handleOpenNotificationsFeed.bind(this)\n );\n });\n }\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["isEqual", "isEqual", "ToastUICoordinator", "props", "getStore", "NotificationsFeedManager", "toasts", "toastsElement", "customToasts", "unsubscribe", "ComponentFactory", "ToastManager", "_ToastManager", "props", "getStore", "LifetimeManager", "ToastUICoordinator", "successfulToastLifetime", "toasts", "transactions", "prevToasts", "prevTransactions", "newToastsWereCreated", "isEqual", "checkBatchHasNewData", "toastId", "transaction", "status", "isTimedOut", "getIsTransactionTimedOut", "isFailed", "getIsTransactionFailed", "isSuccessful", "getIsTransactionSuccessful", "isCompleted", "totalDuration", "newToastId", "addTransactionToast", "toast", "createCustomToast", "store", "toastList", "pendingTransactionToasts", "completedTransactionToasts", "createToastsFromTransactions", "newToast", "customToastComponentDictionary", "removeTransactionToast", "handleClose", "customToastCloseHandlersDictionary", "removeCustomToast", "removeAllCustomToasts", "NOTIFICATIONS_FEED_STORE_SUBSCRIBE", "NotificationsFeedManager", "_NotificationsFeedManager", "SidePanelBaseManager", "store", "getStore", "ToastManager", "storeToastsUnsubscribe", "toasts", "transactions", "prevToasts", "prevTransactions", "isEqual", "toastManager", "pendingTransactionToasts", "createToastsFromTransactions", "transactionsSessions", "acc", "key", "TransactionsHistoryController", "clearCompletedTransactions"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as U}from"./chunk-RMLVJDCQ.mjs";import{a as B}from"./chunk-GBDHEWNQ.mjs";import{a as $}from"./chunk-UJTYOT5N.mjs";import{a as _}from"./chunk-PN7JDWSZ.mjs";import{a as j}from"./chunk-7Z7IX367.mjs";import{a as z}from"./chunk-VCQBYNNS.mjs";import{a as V}from"./chunk-RBZC4PEU.mjs";import{a as R}from"./chunk-SYHILLXA.mjs";import{l as M}from"./chunk-XA4YS4GK.mjs";import{a as w}from"./chunk-YGI3KXMZ.mjs";import{a as v}from"./chunk-7FV6DEQX.mjs";import{a as O}from"./chunk-RYIJWGFA.mjs";import{k as x}from"./chunk-QNYO7NI5.mjs";import{a as A}from"./chunk-YJCTRUJT.mjs";import{a as h,c as L,f}from"./chunk-PJWJZHIS.mjs";import{a as G}from"./chunk-2JKCBTYK.mjs";import{c as F}from"./chunk-PWAP64SN.mjs";import{a as C}from"./chunk-PCPUKFTJ.mjs";import{BigNumber as St}from"bignumber.js";async function qt({allTransactions:u,currentScreenIndex:s,egldLabel:o,network:n,gasPriceData:T,price:S,address:m,username:q,shard:H,signedIndexes:e,parsedTransactionsByDataField:K}){let c=u[s],W=c?.transaction?.sender.toString(),p=c?.transaction,i=p?.toPlainObject(),D=null,y=null,t=await $({egldLabel:o,sender:W,apiAddress:n.apiAddress,address:m,parsedTransactionsByDataField:K})(c),d=!t?.transactionTokenInfo?.tokenId,{tokenId:g,nonce:l,amount:I=""}=t?.transactionTokenInfo??{},Z=g&&l&&l.length>0?`${g}-${l}`:g,J=await v({tokenId:Z}),{esdtPrice:Q,tokenDecimals:X,type:r,identifier:a,tokenImageUrl:Y}=J;if(r==="SemiFungibleESDT"||r==="NonFungibleESDT")y={type:r,identifier:a,amount:I,imageURL:Y};else{let E=({addCommas:Tt})=>f({input:d?p.value.toString():I,decimals:d?Number(n.decimals):X,digits:Number(n.digits),showLastNonZeroDecimal:!1,addCommas:Tt}),gt=E({addCommas:!0}),lt=E({addCommas:!1}),ft=Number(d?S:Q),ut=w({amount:lt,usd:ft,addEqualSign:!0});D={identifier:(a===x?o:a)??o,amount:gt,usdValue:ut}}let{feeLimitFormatted:tt,feeInFiatLimit:ot}=R({transaction:p,price:S}),nt=B({shard:H,initialGasPrice:T.initialGasPrice,transaction:i,gasStationMetadata:n.gasStationMetadata}),{gasPriceOption:N}=T,et=M().getType(),it=O(et),k=u.length,rt=e.length>0?e[e.length-1]+1:0,P=F(i?.data??""),b=V(t?.transactionTokenInfo),at=_({data:P,identifier:a,highlight:b}),st=U(),mt=A({to:`/${G}/${m}`,explorerAddress:st}),ct=k===1||t?.needsSigning&&!e.includes(s),pt=f({input:N.toString(),decimals:L,addCommas:!0,digits:h}),dt=new St(i.gasLimit).toFormat({decimalSeparator:".",groupSeparator:",",groupSize:3});return{commonData:{receiver:i.receiver.toString(),data:P,decodedData:at,gasPrice:pt,gasLimit:dt,explorerLink:mt,gasPriceOption:N,gasPriceOptions:nt,egldLabel:o,tokenType:j(r),feeLimit:tt,feeInFiatLimit:ot,transactionsCount:k,currentIndex:s,currentIndexToSign:rt,highlight:b,scCall:z(t?.transactionTokenInfo),needsSigning:ct,isEditable:t?.needsSigning,providerName:it,address:m,username:q,origin:C.location?.origin},tokenTransaction:D,fungibleTransaction:y}}export{qt as a};
|
|
2
|
+
//# sourceMappingURL=chunk-7TH3QSCV.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.ts"],
|
|
4
|
+
"sourcesContent": ["import { BigNumber } from 'bignumber.js';\nimport { ACCOUNTS_ENDPOINT } from 'apiCalls/endpoints';\nimport { getPersistedTokenDetails } from 'apiCalls/tokens/getPersistedTokenDetails';\nimport { MULTI_TRANSFER_EGLD_TOKEN } from 'constants/mvx.constants';\nimport { safeWindow } from 'constants/window.constants';\nimport { DECIMALS, DIGITS, formatAmount } from 'lib/sdkDappUtils';\nimport {\n FungibleTransactionType,\n ISignTransactionsPanelCommonData\n} from 'managers/internal/SignTransactionsStateManager/types';\nimport { getExplorerAddress } from 'methods/network/getExplorerAddress';\nimport { getAccountProvider } from 'providers/helpers/accountProvider';\nimport { NetworkType } from 'types/network.types';\nimport { NftEnumType } from 'types/tokens.types';\nimport {\n MultiSignTransactionType,\n TransactionDataTokenType\n} from 'types/transactions.types';\nimport { decodeBase64 } from 'utils/decoders/base64Utils';\nimport { capitalize } from 'utils/operations/capitalize';\nimport { getUsdValue } from 'utils/operations/getUsdValue';\nimport { getExplorerLink } from 'utils/transactions/getExplorerLink';\nimport { getFeeData } from '../getFeeData';\nimport { getAllDecodedFormats } from './helpers/decodeDataField';\nimport { getExtractTransactionsInfo } from './helpers/getExtractTransactionsInfo';\nimport { getGasPriceOptions } from './helpers/getGasPriceOptions';\nimport { getHighlight } from './helpers/getHighlight';\nimport { getScCall } from './helpers/getScCall';\nimport { getTokenType } from './helpers/getTokenType';\n\nexport type GetCommonDataPropsType = {\n allTransactions: MultiSignTransactionType[];\n currentScreenIndex: number;\n price?: number;\n network: NetworkType;\n signedIndexes: number[];\n egldLabel: string;\n address: string;\n shard?: number;\n username?: string;\n parsedTransactionsByDataField: Record<string, TransactionDataTokenType>;\n gasPriceData: {\n initialGasPrice: number;\n gasPriceOption: number;\n };\n};\n\nexport async function getCommonData({\n allTransactions,\n currentScreenIndex,\n egldLabel,\n network,\n gasPriceData,\n price,\n address,\n username,\n shard,\n signedIndexes,\n parsedTransactionsByDataField\n}: GetCommonDataPropsType) {\n const currentTransaction = allTransactions[currentScreenIndex];\n const sender = currentTransaction?.transaction?.sender.toString();\n const transaction = currentTransaction?.transaction;\n const plainTransaction = transaction?.toPlainObject();\n\n let tokenTransaction: {\n identifier?: string;\n amount: string;\n usdValue: string;\n } | null = null;\n\n let fungibleTransaction:\n | (FungibleTransactionType & {\n type: NftEnumType.NonFungibleESDT | NftEnumType.SemiFungibleESDT;\n })\n | null = null;\n\n const extractTransactionsInfo = getExtractTransactionsInfo({\n egldLabel,\n sender,\n apiAddress: network.apiAddress,\n address,\n parsedTransactionsByDataField\n });\n\n const txInfo = await extractTransactionsInfo(currentTransaction);\n\n const isEgld = !txInfo?.transactionTokenInfo?.tokenId;\n const { tokenId, nonce, amount = '' } = txInfo?.transactionTokenInfo ?? {};\n\n const isNftOrSft = tokenId && nonce && nonce.length > 0;\n const tokenIdForTokenDetails = isNftOrSft ? `${tokenId}-${nonce}` : tokenId;\n\n const tokenDetails = await getPersistedTokenDetails({\n tokenId: tokenIdForTokenDetails\n });\n\n const { esdtPrice, tokenDecimals, type, identifier, tokenImageUrl } =\n tokenDetails;\n\n const isNft =\n type === NftEnumType.SemiFungibleESDT ||\n type === NftEnumType.NonFungibleESDT;\n\n if (isNft) {\n fungibleTransaction = {\n type,\n identifier,\n amount,\n imageURL: tokenImageUrl\n };\n } else {\n const getFormattedAmount = ({ addCommas }: { addCommas: boolean }) =>\n formatAmount({\n input: isEgld ? transaction.value.toString() : amount,\n decimals: isEgld ? Number(network.decimals) : tokenDecimals,\n digits: Number(network.digits),\n showLastNonZeroDecimal: false,\n addCommas\n });\n\n const formattedAmount = getFormattedAmount({ addCommas: true });\n const rawAmount = getFormattedAmount({ addCommas: false });\n const tokenPrice = Number(isEgld ? price : esdtPrice);\n const usdValue = getUsdValue({\n amount: rawAmount,\n usd: tokenPrice,\n addEqualSign: true\n });\n\n const esdtIdentifier =\n identifier === MULTI_TRANSFER_EGLD_TOKEN ? egldLabel : identifier;\n tokenTransaction = {\n identifier: esdtIdentifier ?? egldLabel,\n amount: formattedAmount,\n usdValue\n };\n }\n\n const { feeLimitFormatted, feeInFiatLimit } = getFeeData({\n transaction,\n price\n });\n\n const gasPriceOptions = getGasPriceOptions({\n shard,\n initialGasPrice: gasPriceData.initialGasPrice,\n transaction: plainTransaction,\n gasStationMetadata: network.gasStationMetadata\n });\n\n const { gasPriceOption } = gasPriceData;\n const provider = getAccountProvider();\n const providerType = provider.getType();\n const providerName = capitalize(providerType as string);\n const transactionsCount = allTransactions.length;\n\n const currentIndexToSign =\n signedIndexes.length > 0 ? signedIndexes[signedIndexes.length - 1] + 1 : 0;\n\n const data = decodeBase64(plainTransaction?.data ?? '');\n const highlight = getHighlight(txInfo?.transactionTokenInfo);\n const decodedData = getAllDecodedFormats({ data, identifier, highlight });\n const explorerAddress = getExplorerAddress();\n const explorerLink = getExplorerLink({\n to: `/${ACCOUNTS_ENDPOINT}/${address}`,\n explorerAddress\n });\n\n const needsSigning =\n transactionsCount === 1 ||\n (txInfo?.needsSigning && !signedIndexes.includes(currentScreenIndex));\n\n const formattedGasPrice = formatAmount({\n input: gasPriceOption.toString(),\n decimals: DECIMALS,\n addCommas: true,\n digits: DIGITS\n });\n\n const formattedGasLimit = new BigNumber(plainTransaction.gasLimit).toFormat({\n decimalSeparator: '.',\n groupSeparator: ',',\n groupSize: 3\n });\n\n const commonData: ISignTransactionsPanelCommonData = {\n receiver: plainTransaction.receiver.toString(),\n data,\n decodedData,\n gasPrice: formattedGasPrice,\n gasLimit: formattedGasLimit,\n explorerLink,\n gasPriceOption,\n gasPriceOptions,\n egldLabel,\n tokenType: getTokenType(type),\n feeLimit: feeLimitFormatted,\n feeInFiatLimit,\n transactionsCount,\n currentIndex: currentScreenIndex,\n currentIndexToSign,\n highlight,\n scCall: getScCall(txInfo?.transactionTokenInfo),\n needsSigning,\n isEditable: txInfo?.needsSigning,\n providerName,\n address,\n username,\n origin: safeWindow.location?.origin\n };\n\n return { commonData, tokenTransaction, fungibleTransaction };\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["BigNumber", "getCommonData", "allTransactions", "currentScreenIndex", "egldLabel", "network", "gasPriceData", "price", "address", "username", "shard", "signedIndexes", "parsedTransactionsByDataField", "currentTransaction", "sender", "transaction", "plainTransaction", "tokenTransaction", "fungibleTransaction", "txInfo", "getExtractTransactionsInfo", "isEgld", "tokenId", "nonce", "amount", "tokenIdForTokenDetails", "tokenDetails", "getPersistedTokenDetails", "esdtPrice", "tokenDecimals", "type", "identifier", "tokenImageUrl", "getFormattedAmount", "addCommas", "formatAmount", "formattedAmount", "rawAmount", "tokenPrice", "usdValue", "getUsdValue", "MULTI_TRANSFER_EGLD_TOKEN", "feeLimitFormatted", "feeInFiatLimit", "getFeeData", "gasPriceOptions", "getGasPriceOptions", "gasPriceOption", "providerType", "getAccountProvider", "providerName", "capitalize", "transactionsCount", "currentIndexToSign", "data", "decodeBase64", "highlight", "getHighlight", "decodedData", "getAllDecodedFormats", "explorerAddress", "getExplorerAddress", "explorerLink", "getExplorerLink", "ACCOUNTS_ENDPOINT", "needsSigning", "formattedGasPrice", "DECIMALS", "DIGITS", "formattedGasLimit", "BigNumber", "getTokenType", "getScCall", "safeWindow"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as n,q as o}from"./chunk-2QIUCSYX.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-AFOS3Q4N.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/methods/account/getAccount.ts"],
|
|
4
|
+
"sourcesContent": ["import { accountSelector } from 'store/selectors/accountSelectors';\nimport { getState } from 'store/store';\n\nexport function getAccount(state = getState()) {\n return accountSelector(state);\n}\n"],
|
|
5
|
+
"mappings": "kFAGO,SAASA,EAAWC,EAAQC,EAAS,EAAG,CAC7C,OAAOC,EAAgBF,CAAK,CAC9B",
|
|
6
|
+
"names": ["getAccount", "state", "getState", "accountSelector"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{m as D}from"./chunk-M6MN4RXG.mjs";import{a as f}from"./chunk-HTT67LH3.mjs";import{a as d}from"./chunk-VGDWWBLN.mjs";import{a as m}from"./chunk-I3ILB737.mjs";import{a as s}from"./chunk-XA6ZDGIQ.mjs";var F=({data:t,decodeMethod:e,identifier:r,highlight:n=null})=>{let i={displayValue:"",validationWarnings:[],highlight:n};if(t.length>36e3&&["decimal","smart"].includes(e))return{...i,displayValue:t};let c=t.includes("@"),p=t.includes(`
|
|
2
|
+
`);if(!c&&!p)return{...i,displayValue:s({data:t,decodeMethod:e}),highlight:n&&s({data:n,decodeMethod:e})};if(c){let a=t.split("@"),l=f({parts:a,decodeMethod:e,identifier:r,decodedData:i}),o=n?d({data:n,identifier:r,decodeMethod:e,delimiter:"@"}):null;return{...i,displayValue:l.join("@"),highlight:o}}if(p){let a=t.split(`
|
|
3
|
+
`),l=a.map(u=>e==="raw"?u:s({data:Buffer.from(u,"base64").toString("hex"),decodeMethod:e})),o=m({parts:a,initialDecodedParts:l,identifier:r,decodeMethod:e}),y=n?d({data:n,identifier:r,decodeMethod:e,delimiter:`
|
|
4
|
+
`}):null;return{...i,displayValue:o.join(`
|
|
5
|
+
`),highlight:y}}return i};export{F as a};
|
|
6
|
+
//# sourceMappingURL=chunk-AOLW46E4.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as m}from"./chunk-K4E7GCWI.mjs";import{a as u}from"./chunk-D27ZK232.mjs";import{a}from"./chunk-PMHRZ5Y7.mjs";import{l as p}from"./chunk-E2GGD7D4.mjs";import{b as o}from"./chunk-QZC64RDG.mjs";var n={};async function b({serverTransaction:r,sessionId:t,isSequential:c}){let{hash:e,status:s,invalidTransaction:f,hasStatusChanged:S}=r;try{if(n[e]>30){o({sessionId:t,status:"timedOut"}),await a({sessionId:t,status:"timedOut"});return}if(f&&!c||s==="sent"){n[e]=n[e]?n[e]+1:1;return}if(c&&!s){let i=u({sessionId:t,transaction:r});await a({sessionId:t,status:i});return}if(S){let i=u({sessionId:t,transaction:r});await a({sessionId:t,status:i})}p(s)&&await m({sessionId:t,transaction:r})}catch(T){console.error(T),o({sessionId:t,status:"timedOut"}),await a({sessionId:t,status:"timedOut"})}}export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-AWH3CO5C.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as A}from"./chunk-IRFXPRDX.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-TWYGNEQS.mjs";import{b as T}from"./chunk-2VG3V3VD.mjs";import{g as S}from"./chunk-7BESPSVI.mjs";import{a as h}from"./chunk-QZC64RDG.mjs";import{a as y}from"./chunk-AMXCV2YT.mjs";import{h as f}from"./chunk-M6MN4RXG.mjs";import{b as l}from"./chunk-7VHTZYM2.mjs";import{a as g}from"./chunk-NI7XCWV5.mjs";import{s as m}from"./chunk-2QIUCSYX.mjs";import w from"axios";var r=class r{constructor(){this.setCallbacks=({onSuccess:t,onFail:a})=>{T({onSuccess:t,onFail:a})};this.send=async t=>{if(t.length===0)throw new Error("No transactions to send");try{if(!I(t))return await this.sendSignedTransactions(t);let a=await this.sendSignedBatchTransactions(t);if(!a.data||a.data.error)throw new Error(a.data?.error??"Failed to send transactions");return a.data.transactions}catch(a){throw a.response?.data?.message??a.message}};this.track=async(t,a={disableToasts:!1})=>{let s=this.sequentialToFlatArray(t).map(e=>({...e,status:e.status??"pending"})),o=b(s),n=h({transactions:s,transactionsDisplayInfo:a.transactionsDisplayInfo,status:o??"sent",sessionInformation:a.sessionInformation});if(a.disableToasts===!0)return n;a.onSuccess&&T({onSuccess:a.onSuccess,sessionId:n}),a.onFail&&T({onFail:a.onFail,sessionId:n});let i=A(t);return S({toastId:n,totalDuration:i}),n};this.sendSignedTransactions=async t=>{let{apiAddress:a,apiTimeout:s}=l(m());return await Promise.all(t.map(async n=>{let i=await w.post(`${a}/transactions`,n.toPlainObject(),{timeout:Number(s)}),e=i.data.txHash;return{...n.toPlainObject(),...i.data,status:"pending",hash:e}}))};this.sendSignedBatchTransactions=async t=>{let{address:a}=y(),{apiAddress:s,apiTimeout:o}=l(m());if(!a)return{error:"Invalid address provided. You need to be logged in to send transactions"};let n=this.buildBatchId(a),e={transactions:t.map(p=>p.map(c=>c.toPlainObject())),id:n},{data:u}=await w.post(`${s}/batch`,e,{timeout:Number(o)}),B=u.transactions.map(p=>p.map(c=>{let d={...c,status:"pending",hash:c.hash};return g({data:d.data})&&(delete d.senderUsername,delete d.receiverUsername),d}));return{data:{...u,transactions:B}}};this.buildBatchId=t=>`${Date.now().toString()}${f}${t}`;this.sequentialToFlatArray=(t=[])=>this.getIsSequential(t)?t.flat():t;this.getIsSequential=t=>t?.every(a=>Array.isArray(a))}static getInstance(){return r.instance||(r.instance=new r),r.instance}};r.instance=null;var v=r;export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-BE5OKL3L.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/managers/TransactionManager/TransactionManager.ts"],
|
|
4
|
+
"sourcesContent": ["import axios, { AxiosError } from 'axios';\nimport { BATCH_TRANSACTIONS_ID_SEPARATOR } from 'constants/transactions.constants';\nimport { Transaction } from 'lib/sdkCore';\nimport { getAccount } from 'methods/account/getAccount';\nimport { TransactionTrackingConfigType } from 'methods/initApp/initApp.types';\nimport { addTransactionToast } from 'store/actions/toasts/toastsActions';\nimport { createTransactionsSession } from 'store/actions/transactions/transactionsActions';\nimport { networkSelector } from 'store/selectors/networkSelectors';\nimport { getState } from 'store/store';\nimport {\n TransactionBatchStatusesEnum,\n TransactionServerStatusesEnum\n} from 'types/enums.types';\nimport { BatchTransactionsResponseType } from 'types/serverTransactions.types';\nimport { SignedTransactionType } from 'types/transactions.types';\nimport { isGuardianTx } from 'utils/transactions/isGuardianTx';\nimport { getToastDuration } from './helpers/getToastDuration';\nimport { getTransactionsSessionStatus } from './helpers/getTransactionsStatus';\nimport { isBatchTransaction } from './helpers/isBatchTransaction';\nimport { registerCallbacks } from './helpers/sessionCallbacks';\nimport { TransactionManagerTrackOptionsType } from './TransactionManager.types';\n\nexport class TransactionManager {\n private static instance: TransactionManager | null = null;\n\n public static getInstance(): TransactionManager {\n if (!TransactionManager.instance) {\n TransactionManager.instance = new TransactionManager();\n }\n return TransactionManager.instance;\n }\n\n /**\n * Set callbacks to be executed when the transaction session is successful or fails.\n * It is analogous to the `onSuccess` and `onFail` callbacks set in the `initApp` method,\n * as a way to override the global callbacks\n * @param onSuccess - The callback to run when the transaction session is successful.\n * @param onFail - The callback to run when the transaction session fails.\n * @example\n * ```ts\n * TransactionManager.setCallbacks({\n * onSuccess: (sessionId) => {\n * console.log('Transaction session successful', sessionId);\n * },\n * });\n */\n public setCallbacks = ({\n onSuccess,\n onFail\n }: TransactionTrackingConfigType) => {\n registerCallbacks({ onSuccess, onFail });\n };\n\n public send = async (\n signedTransactions: Transaction[] | Transaction[][]\n ): Promise<SignedTransactionType[] | SignedTransactionType[][]> => {\n if (signedTransactions.length === 0) {\n throw new Error('No transactions to send');\n }\n\n try {\n if (!isBatchTransaction(signedTransactions)) {\n const flatTransactions =\n await this.sendSignedTransactions(signedTransactions);\n\n return flatTransactions;\n }\n\n const sentTransactions =\n await this.sendSignedBatchTransactions(signedTransactions);\n\n if (!sentTransactions.data || sentTransactions.data.error) {\n throw new Error(\n sentTransactions.data?.error ?? 'Failed to send transactions'\n );\n }\n\n const groupedTransactions = sentTransactions.data.transactions;\n\n return groupedTransactions;\n } catch (error) {\n const responseData = <{ message: string }>(\n (error as AxiosError).response?.data\n );\n throw responseData?.message ?? (error as Error).message;\n }\n };\n\n /**\n * Track the status of a transaction session.\n * @param sentTransactions - The transactions to track.\n * @param options - The options for the transaction session.\n * @returns The session id.\n * @example\n * ```ts\n * const sessionId = await txManager.track(sentTransactions, {\n * transactionsDisplayInfo: {\n * errorMessage: 'Failed adding stake',\n * successMessage: 'Stake successfully added',\n * processingMessage: 'Staking in progress'\n * },\n * onSuccess: async(sessionId) => {\n * console.log('Session successful', sessionId);\n * },\n * onFail: async(sessionId) => {\n * console.log('Session failed', sessionId);\n * }\n * sessionInformation: {\n * stakeAmount: '1000000000000000000000000'\n * }\n * });\n * ```\n */\n public track = async (\n sentTransactions: SignedTransactionType[] | SignedTransactionType[][],\n options: TransactionManagerTrackOptionsType = { disableToasts: false }\n ): Promise<string> => {\n const flatTransactions = this.sequentialToFlatArray(sentTransactions).map(\n (transaction) => ({\n ...transaction,\n status: transaction.status ?? TransactionServerStatusesEnum.pending\n })\n );\n\n const status = getTransactionsSessionStatus(flatTransactions);\n\n const sessionId = createTransactionsSession({\n transactions: flatTransactions,\n transactionsDisplayInfo: options.transactionsDisplayInfo,\n status: status ?? TransactionBatchStatusesEnum.sent,\n sessionInformation: options.sessionInformation\n });\n\n if (options.disableToasts === true) {\n return sessionId;\n }\n\n if (options.onSuccess) {\n registerCallbacks({ onSuccess: options.onSuccess, sessionId });\n }\n\n if (options.onFail) {\n registerCallbacks({ onFail: options.onFail, sessionId });\n }\n\n const totalDuration = getToastDuration(sentTransactions);\n addTransactionToast({\n toastId: sessionId,\n totalDuration\n });\n\n return sessionId;\n };\n\n private readonly sendSignedTransactions = async (\n signedTransactions: Transaction[]\n ): Promise<SignedTransactionType[]> => {\n const { apiAddress, apiTimeout } = networkSelector(getState());\n\n const mergedTransactions = await Promise.all(\n signedTransactions.map(async (transaction) => {\n const response = await axios.post(\n `${apiAddress}/transactions`,\n transaction.toPlainObject(),\n { timeout: Number(apiTimeout) }\n );\n\n const txHash = response.data.txHash;\n\n return {\n ...transaction.toPlainObject(),\n ...response.data,\n status: TransactionServerStatusesEnum.pending,\n hash: txHash\n };\n })\n );\n\n return mergedTransactions;\n };\n\n private readonly sendSignedBatchTransactions = async (\n signedTransactions: Transaction[][]\n ) => {\n const { address } = getAccount();\n const { apiAddress, apiTimeout } = networkSelector(getState());\n\n if (!address) {\n return {\n error:\n 'Invalid address provided. You need to be logged in to send transactions'\n };\n }\n\n const batchId = this.buildBatchId(address);\n\n const plainTransactions = signedTransactions.map((group) =>\n group.map((tx) => tx.toPlainObject())\n );\n\n const payload = {\n transactions: plainTransactions,\n id: batchId\n };\n\n const { data } = await axios.post<BatchTransactionsResponseType>(\n `${apiAddress}/batch`,\n payload,\n {\n timeout: Number(apiTimeout)\n }\n );\n\n const parsedTransactions = data.transactions.map((group) =>\n group.map((tx) => {\n const parsedTx: SignedTransactionType = {\n ...tx,\n status: TransactionServerStatusesEnum.pending,\n hash: tx.hash\n };\n\n // Remove when the protocol supports usernames for guardian transactions\n if (isGuardianTx({ data: parsedTx.data })) {\n delete parsedTx.senderUsername;\n delete parsedTx.receiverUsername;\n }\n\n return parsedTx;\n })\n );\n\n return {\n data: {\n ...data,\n transactions: parsedTransactions\n }\n };\n };\n\n private readonly buildBatchId = (address: string) => {\n const sessionId = Date.now().toString();\n return `${sessionId}${BATCH_TRANSACTIONS_ID_SEPARATOR}${address}`;\n };\n private readonly sequentialToFlatArray = (\n transactions: SignedTransactionType[] | SignedTransactionType[][] = []\n ) =>\n this.getIsSequential(transactions)\n ? transactions.flat()\n : (transactions as SignedTransactionType[]);\n\n private readonly getIsSequential = (\n transactions?: SignedTransactionType[] | SignedTransactionType[][]\n ) => transactions?.every((transaction) => Array.isArray(transaction));\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["axios", "_TransactionManager", "onSuccess", "onFail", "registerCallbacks", "signedTransactions", "isBatchTransaction", "sentTransactions", "error", "options", "flatTransactions", "transaction", "status", "getTransactionsSessionStatus", "sessionId", "createTransactionsSession", "totalDuration", "getToastDuration", "addTransactionToast", "apiAddress", "apiTimeout", "networkSelector", "getState", "response", "axios", "txHash", "address", "getAccount", "batchId", "payload", "group", "tx", "data", "parsedTransactions", "parsedTx", "isGuardianTx", "BATCH_TRANSACTIONS_ID_SEPARATOR", "transactions", "TransactionManager"]
|
|
7
|
+
}
|