@multiversx/sdk-dapp 5.0.0-alpha.1 → 5.0.0-alpha.10
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 +311 -77
- package/out/__chunks__/{chunk-IXJOO5U4.mjs → chunk-266T724O.mjs} +2 -2
- package/out/__chunks__/{chunk-7OTTISMZ.mjs → chunk-26XVDGTO.mjs} +2 -2
- package/out/__chunks__/{chunk-X2JK27T3.mjs → chunk-2FD2AMKA.mjs} +2 -2
- package/out/__chunks__/chunk-2I4BJK55.mjs +2 -0
- package/out/__chunks__/chunk-2I4BJK55.mjs.map +7 -0
- package/out/__chunks__/{chunk-XU34NXIS.mjs → chunk-2ONA7QPD.mjs} +2 -2
- package/out/__chunks__/{chunk-675ZW4IF.mjs → chunk-2SOS3KAT.mjs} +2 -2
- package/out/__chunks__/chunk-35XMV5ZL.mjs +2 -0
- package/out/__chunks__/{chunk-UF45HLIK.mjs → chunk-3MWXXTQQ.mjs} +2 -2
- package/out/__chunks__/chunk-445MWKMT.mjs +2 -0
- package/out/__chunks__/chunk-445MWKMT.mjs.map +7 -0
- package/out/__chunks__/{chunk-TLKMUVQJ.mjs → chunk-45WVS4H5.mjs} +2 -2
- package/out/__chunks__/{chunk-2HWIJ4CV.mjs → chunk-4OEPT2V4.mjs} +2 -2
- package/out/__chunks__/chunk-55SACSMS.mjs +2 -0
- package/out/__chunks__/chunk-55SACSMS.mjs.map +7 -0
- package/out/__chunks__/chunk-5W4JJSFM.mjs +2 -0
- package/out/__chunks__/chunk-5W4JJSFM.mjs.map +7 -0
- package/out/__chunks__/{chunk-AJEWAECH.mjs → chunk-66JBXP4O.mjs} +2 -2
- package/out/__chunks__/chunk-6DNPTAY5.mjs +2 -0
- package/out/__chunks__/chunk-6F2QKI7Q.mjs +2 -0
- package/out/__chunks__/{chunk-C3KLB5TA.mjs.map → chunk-6F2QKI7Q.mjs.map} +1 -1
- package/out/__chunks__/chunk-6WF4B5EG.mjs +2 -0
- package/out/__chunks__/chunk-6WF4B5EG.mjs.map +7 -0
- package/out/__chunks__/{chunk-PEDR76UT.mjs → chunk-72PZKSKF.mjs} +2 -2
- package/out/__chunks__/chunk-76NGDJLC.mjs +2 -0
- package/out/__chunks__/chunk-76NGDJLC.mjs.map +7 -0
- package/out/__chunks__/{chunk-TYYA6E7F.mjs → chunk-7BP53CXF.mjs} +2 -2
- package/out/__chunks__/{chunk-M3C5NS6M.mjs → chunk-7ECP7Y7M.mjs} +2 -2
- package/out/__chunks__/chunk-7LUZJPO5.mjs +2 -0
- package/out/__chunks__/{chunk-UFMHCVBL.mjs.map → chunk-7LUZJPO5.mjs.map} +3 -3
- package/out/__chunks__/{chunk-PPA7AFVD.mjs → chunk-7WTWD4TL.mjs} +2 -2
- package/out/__chunks__/{chunk-2AAKENSP.mjs → chunk-A5EXECZV.mjs} +2 -2
- package/out/__chunks__/{chunk-LETBBKOK.mjs → chunk-ASWTHX52.mjs} +2 -2
- package/out/__chunks__/{chunk-PDT22D2C.mjs → chunk-AV4HSXYZ.mjs} +2 -2
- package/out/__chunks__/{chunk-3OKWBJFM.mjs → chunk-B2RDSGON.mjs} +2 -2
- package/out/__chunks__/{chunk-KMFYDHOY.mjs → chunk-BRBIUWAW.mjs} +2 -2
- package/out/__chunks__/{chunk-3NG7LKF4.mjs → chunk-BSWV5MEC.mjs} +2 -2
- package/out/__chunks__/chunk-BTRCRGTK.mjs +2 -0
- package/out/__chunks__/chunk-BTRCRGTK.mjs.map +7 -0
- package/out/__chunks__/{chunk-NCUYIZYI.mjs → chunk-BVYTCDU6.mjs} +2 -2
- package/out/__chunks__/{chunk-RNCF2III.mjs → chunk-C5TNEYN6.mjs} +2 -2
- package/out/__chunks__/chunk-C6E6XICI.mjs +2 -0
- package/out/__chunks__/{chunk-SBQJGS63.mjs → chunk-CCDTUFFG.mjs} +2 -2
- package/out/__chunks__/chunk-CEDRWVRS.mjs +2 -0
- package/out/__chunks__/chunk-CEDRWVRS.mjs.map +7 -0
- package/out/__chunks__/chunk-CNUQX7FI.mjs +2 -0
- package/out/__chunks__/{chunk-NJ73RJ4B.mjs → chunk-CNWR7SER.mjs} +2 -2
- package/out/__chunks__/{chunk-OBRX5K2D.mjs → chunk-D7NHU6UF.mjs} +2 -2
- package/out/__chunks__/{chunk-OBRX5K2D.mjs.map → chunk-D7NHU6UF.mjs.map} +2 -2
- package/out/__chunks__/chunk-DEMKQ3CQ.mjs +2 -0
- package/out/__chunks__/chunk-DEMKQ3CQ.mjs.map +7 -0
- package/out/__chunks__/chunk-DFNESXSW.mjs +2 -0
- package/out/__chunks__/{chunk-SNKFFCSF.mjs → chunk-DHPD6E7P.mjs} +2 -2
- package/out/__chunks__/{chunk-M6ATGCOM.mjs → chunk-DNHKXKYY.mjs} +2 -2
- package/out/__chunks__/{chunk-CN4RHVUE.mjs → chunk-DOUNJCQ4.mjs} +2 -2
- package/out/__chunks__/{chunk-CN4RHVUE.mjs.map → chunk-DOUNJCQ4.mjs.map} +2 -2
- package/out/__chunks__/chunk-DT6YLEPL.mjs +2 -0
- package/out/__chunks__/{chunk-OF6HBWFR.mjs → chunk-DV3XIKOX.mjs} +2 -2
- package/out/__chunks__/chunk-EDSX3LFL.mjs +2 -0
- package/out/__chunks__/chunk-EDSX3LFL.mjs.map +7 -0
- package/out/__chunks__/{chunk-LNABNVAO.mjs → chunk-EOX35D4L.mjs} +2 -2
- package/out/__chunks__/chunk-FEFZKA2B.mjs +2 -0
- package/out/__chunks__/{chunk-I66YT2S2.mjs → chunk-FMUDQBZE.mjs} +2 -2
- package/out/__chunks__/chunk-FPHLXGAT.mjs +2 -0
- package/out/__chunks__/chunk-FPHLXGAT.mjs.map +7 -0
- package/out/__chunks__/{chunk-3IYQANTT.mjs → chunk-FUYWIC54.mjs} +2 -2
- package/out/__chunks__/chunk-HEKAFHIA.mjs +2 -0
- package/out/__chunks__/chunk-HEKAFHIA.mjs.map +7 -0
- package/out/__chunks__/chunk-I7ODJJY3.mjs +2 -0
- package/out/__chunks__/chunk-I7ODJJY3.mjs.map +7 -0
- package/out/__chunks__/chunk-IEJARRBP.mjs +2 -0
- package/out/__chunks__/chunk-IEJARRBP.mjs.map +7 -0
- package/out/__chunks__/{chunk-FJIH6TWP.mjs → chunk-IJB6XDNR.mjs} +2 -2
- package/out/__chunks__/chunk-INBKWOKQ.mjs +2 -0
- package/out/__chunks__/{chunk-UYUKTC4X.mjs → chunk-IOE5AG2R.mjs} +2 -2
- package/out/__chunks__/{chunk-SF7XXVIO.mjs → chunk-ISPRIGOE.mjs} +2 -2
- package/out/__chunks__/{chunk-DZ5L5MZT.mjs → chunk-IWB45745.mjs} +2 -2
- package/out/__chunks__/chunk-IWB45745.mjs.map +7 -0
- package/out/__chunks__/{chunk-L2JWXTGG.mjs → chunk-J3YO25EK.mjs} +2 -2
- package/out/__chunks__/chunk-J4CPYFK6.mjs +2 -0
- package/out/__chunks__/{chunk-K3G3SPRT.mjs.map → chunk-J4CPYFK6.mjs.map} +1 -1
- package/out/__chunks__/{chunk-6ZDBHK76.mjs → chunk-JIJSBQEU.mjs} +2 -2
- package/out/__chunks__/chunk-JKSF2U3C.mjs +2 -0
- package/out/__chunks__/chunk-JKSF2U3C.mjs.map +7 -0
- package/out/__chunks__/chunk-JQEKTKZR.mjs +2 -0
- package/out/__chunks__/chunk-JQEKTKZR.mjs.map +7 -0
- package/out/__chunks__/chunk-JQU6F2FL.mjs +2 -0
- package/out/__chunks__/chunk-JSUJOYYB.mjs +2 -0
- package/out/__chunks__/{chunk-DZ3UVNJK.mjs.map → chunk-JSUJOYYB.mjs.map} +2 -2
- package/out/__chunks__/chunk-JZWEJ7SP.mjs +2 -0
- package/out/__chunks__/chunk-JZWEJ7SP.mjs.map +7 -0
- package/out/__chunks__/{chunk-G2DLIXFQ.mjs → chunk-K3WBBSXJ.mjs} +2 -2
- package/out/__chunks__/chunk-KN7QMGWV.mjs +2 -0
- package/out/__chunks__/{chunk-U2TDLWBA.mjs.map → chunk-KN7QMGWV.mjs.map} +1 -1
- package/out/__chunks__/{chunk-OYZFSQEK.mjs → chunk-KPDCSGZD.mjs} +2 -2
- package/out/__chunks__/chunk-KRBUXJ6B.mjs +2 -0
- package/out/__chunks__/chunk-KRBUXJ6B.mjs.map +7 -0
- package/out/__chunks__/{chunk-TAI3I5BS.mjs → chunk-KSKOSHYV.mjs} +2 -2
- package/out/__chunks__/{chunk-KJCZ5HAU.mjs → chunk-LM5SF2NG.mjs} +2 -2
- package/out/__chunks__/{chunk-SLLCCPCW.mjs → chunk-LOEJYVD2.mjs} +2 -2
- package/out/__chunks__/{chunk-SLLCCPCW.mjs.map → chunk-LOEJYVD2.mjs.map} +1 -1
- package/out/__chunks__/{chunk-243OAHYD.mjs → chunk-MQ5V5AJU.mjs} +2 -2
- package/out/__chunks__/chunk-MQ5V5AJU.mjs.map +7 -0
- package/out/__chunks__/chunk-N5FYAXCA.mjs +2 -0
- package/out/__chunks__/{chunk-4PV6SFXA.mjs → chunk-NBDECUQ3.mjs} +2 -2
- package/out/__chunks__/chunk-NHXPNROG.mjs +2 -0
- package/out/__chunks__/chunk-NHXPNROG.mjs.map +7 -0
- package/out/__chunks__/chunk-NO7YH2FT.mjs +2 -0
- package/out/__chunks__/chunk-O3V4TGXK.mjs +2 -0
- package/out/__chunks__/{chunk-GHDPXQZ5.mjs.map → chunk-O3V4TGXK.mjs.map} +3 -3
- package/out/__chunks__/{chunk-TVBOE2RK.mjs → chunk-OEPTRJEB.mjs} +1 -1
- package/out/__chunks__/{chunk-TVBOE2RK.mjs.map → chunk-OEPTRJEB.mjs.map} +1 -1
- package/out/__chunks__/chunk-OUNMWRYD.mjs +2 -0
- package/out/__chunks__/{chunk-YVVDA6LN.mjs.map → chunk-OUNMWRYD.mjs.map} +1 -1
- package/out/__chunks__/chunk-P2C5G6H6.mjs +2 -0
- package/out/__chunks__/chunk-P2C5G6H6.mjs.map +7 -0
- package/out/__chunks__/chunk-P5RR3CVM.mjs +2 -0
- package/out/__chunks__/{chunk-W4GE4ZDP.mjs → chunk-PRULMJH7.mjs} +2 -2
- package/out/__chunks__/chunk-QATM2UUN.mjs +2 -0
- package/out/__chunks__/chunk-QATM2UUN.mjs.map +7 -0
- package/out/__chunks__/{chunk-HQJG7CFV.mjs → chunk-QAVA2C6Y.mjs} +2 -2
- package/out/__chunks__/{chunk-LTF535HP.mjs → chunk-QJSB5NX4.mjs} +2 -2
- package/out/__chunks__/{chunk-WW4BBBLW.mjs → chunk-QKHHW26T.mjs} +2 -2
- package/out/__chunks__/{chunk-YRIDJGOK.mjs → chunk-QM67ZEC5.mjs} +2 -2
- package/out/__chunks__/{chunk-YAXVLGG3.mjs → chunk-QP2EL7IE.mjs} +2 -2
- package/out/__chunks__/{chunk-VIJUIJ4V.mjs → chunk-QSBLXZFC.mjs} +2 -2
- package/out/__chunks__/chunk-R53MCZI6.mjs +2 -0
- package/out/__chunks__/chunk-R53MCZI6.mjs.map +7 -0
- package/out/__chunks__/{chunk-YVD46DFI.mjs → chunk-RHFDU5Y4.mjs} +2 -2
- package/out/__chunks__/{chunk-5WVAF7RB.mjs → chunk-S5FDHOXH.mjs} +2 -2
- package/out/__chunks__/{chunk-NM3KJ3EA.mjs → chunk-SH5S4RA4.mjs} +2 -2
- package/out/__chunks__/{chunk-7RX2A4WD.mjs → chunk-SJYCKFH4.mjs} +2 -2
- package/out/__chunks__/{chunk-C4CJOZ4L.mjs → chunk-SYQ7SILM.mjs} +2 -2
- package/out/__chunks__/chunk-TEPQ5G4B.mjs +2 -0
- package/out/__chunks__/chunk-TEPQ5G4B.mjs.map +7 -0
- package/out/__chunks__/{chunk-7YGJXJUC.mjs → chunk-TMP3REGQ.mjs} +2 -2
- package/out/__chunks__/chunk-TQA3JDNV.mjs +2 -0
- package/out/__chunks__/chunk-TQA3JDNV.mjs.map +7 -0
- package/out/__chunks__/chunk-TR6FQZGE.mjs +2 -0
- package/out/__chunks__/chunk-TRMQFQOQ.mjs +1 -0
- package/out/__chunks__/chunk-UZWRIJVB.mjs +2 -0
- package/out/__chunks__/{chunk-PV5A7PX4.mjs.map → chunk-UZWRIJVB.mjs.map} +2 -2
- package/out/__chunks__/{chunk-LD4NALNZ.mjs → chunk-VCGAO6HH.mjs} +2 -2
- package/out/__chunks__/{chunk-QQ4OPT5A.mjs → chunk-VJ2DAL5M.mjs} +2 -2
- package/out/__chunks__/chunk-VMFJUT3G.mjs +2 -0
- package/out/__chunks__/chunk-VMFJUT3G.mjs.map +7 -0
- package/out/__chunks__/chunk-VSUCRJYB.mjs +2 -0
- package/out/__chunks__/chunk-WFAPPSOI.mjs +1 -0
- package/out/__chunks__/chunk-X7NCYKWT.mjs +2 -0
- package/out/__chunks__/chunk-X7NCYKWT.mjs.map +7 -0
- package/out/__chunks__/{chunk-JXO7XRIR.mjs → chunk-XFZOOFY5.mjs} +2 -2
- package/out/__chunks__/{chunk-RVW2ZWCR.mjs → chunk-XHIIMAIQ.mjs} +2 -2
- package/out/__chunks__/{chunk-JGULQG2H.mjs → chunk-XLHFU7XR.mjs} +2 -2
- package/out/__chunks__/chunk-XOJHIJKX.mjs +2 -0
- package/out/__chunks__/chunk-XOJHIJKX.mjs.map +7 -0
- package/out/__chunks__/{chunk-6GNOK3TJ.mjs → chunk-YB2E5WOO.mjs} +1 -1
- package/out/__chunks__/chunk-YB2E5WOO.mjs.map +7 -0
- package/out/__chunks__/{chunk-JTQCNFCR.mjs → chunk-YB7AHPBR.mjs} +2 -2
- package/out/__chunks__/chunk-YEXBSKXL.mjs +2 -0
- package/out/__chunks__/chunk-YEXBSKXL.mjs.map +7 -0
- package/out/__chunks__/{chunk-ENTPR3MV.mjs → chunk-YN5ARP6C.mjs} +2 -2
- package/out/__chunks__/{chunk-XO5D3FNU.mjs → chunk-YPCJBYUY.mjs} +2 -2
- package/out/__chunks__/{chunk-Y3YLDFXK.mjs → chunk-YQ3LRPGM.mjs} +2 -2
- package/out/__chunks__/{chunk-MCZUQPRA.mjs → chunk-YTFYVPZO.mjs} +2 -2
- package/out/__chunks__/chunk-Z5CDCI3Y.mjs +2 -0
- package/out/__chunks__/{chunk-OTBTZ3NI.mjs.map → chunk-Z5CDCI3Y.mjs.map} +1 -1
- package/out/__chunks__/chunk-Z6R3RDWW.mjs +2 -0
- package/out/__chunks__/{chunk-YPNKNMW5.mjs → chunk-ZEIGMAXW.mjs} +2 -2
- package/out/__chunks__/chunk-ZEUNADU7.mjs +2 -0
- package/out/__chunks__/{chunk-HC5QPKZT.mjs → chunk-ZHIYA3M7.mjs} +2 -2
- package/out/__chunks__/{chunk-42KJRIAT.mjs → chunk-ZK5BKLTG.mjs} +2 -2
- package/out/__chunks__/chunk-ZU4LTEAC.mjs +2 -0
- package/out/__chunks__/chunk-ZU4LTEAC.mjs.map +7 -0
- package/out/__mocks__/accountConfig.mjs +1 -1
- package/out/__mocks__/data/index.mjs +1 -1
- package/out/__mocks__/index.mjs +1 -1
- package/out/__mocks__/server.mjs +1 -1
- package/out/apiCalls/account/getScamAddressData.mjs +1 -1
- package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
- package/out/apiCalls/index.mjs +1 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/index.mjs +1 -1
- package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.mjs.map +1 -1
- package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
- package/out/constants/UITags.enum.d.ts +2 -2
- package/out/constants/UITags.enum.js +2 -2
- package/out/constants/UITags.enum.js.map +1 -1
- package/out/constants/UITags.enum.mjs +1 -1
- package/out/constants/browser.constants.mjs +1 -1
- package/out/constants/index.mjs +1 -1
- package/out/constants/providerFactory.constants.d.ts +2 -1
- package/out/constants/providerFactory.constants.js +1 -0
- package/out/constants/providerFactory.constants.js.map +1 -1
- package/out/constants/providerFactory.constants.mjs +1 -1
- package/out/constants/storage.constants.mjs +1 -1
- package/out/constants/window.constants.d.ts +1 -0
- package/out/constants/window.constants.js +2 -1
- package/out/constants/window.constants.js.map +1 -1
- package/out/constants/window.constants.mjs +1 -1
- package/out/controllers/FormatAmountController/FormatAmountController.mjs +1 -1
- package/out/controllers/FormatAmountController/index.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.d.ts +2 -2
- package/out/controllers/TransactionsTableController/TransactionsTableController.js +2 -2
- package/out/controllers/TransactionsTableController/TransactionsTableController.js.map +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
- package/out/controllers/TransactionsTableController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/transactionsTableController.types.d.ts +8 -11
- package/out/controllers/index.mjs +1 -1
- package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.d.ts +10 -0
- package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.js +45 -0
- package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.js.map +1 -0
- package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.mjs +2 -0
- package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.mjs.map +7 -0
- package/out/index.mjs +1 -1
- package/out/lib/sdkCore.d.ts +1 -1
- package/out/lib/sdkCore.js +2 -1
- package/out/lib/sdkCore.js.map +1 -1
- package/out/lib/sdkCore.mjs +1 -1
- package/out/lib/sdkDappUi.d.ts +2 -2
- package/out/lib/sdkDappUi.mjs +1 -1
- package/out/lib/sdkDappUtils.d.ts +1 -1
- package/out/lib/sdkDappUtils.mjs +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.d.ts +7 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.js +6 -2
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.js.map +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.d.ts +3 -5
- package/out/managers/TransactionManager/TransactionManager.js +2 -1
- package/out/managers/TransactionManager/TransactionManager.js.map +1 -1
- package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.types.d.ts +12 -0
- package/out/managers/TransactionManager/TransactionManager.types.js +3 -0
- package/out/managers/TransactionManager/TransactionManager.types.js.map +1 -0
- package/out/managers/TransactionManager/TransactionManager.types.mjs +1 -0
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.mjs +1 -1
- package/out/managers/TransactionManager/helpers/isCrossShardTransaction.js +5 -4
- package/out/managers/TransactionManager/helpers/isCrossShardTransaction.js.map +1 -1
- package/out/managers/TransactionManager/helpers/isCrossShardTransaction.mjs +1 -1
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/TransactionManager/tests/isCrossShardTransaction.test.js +0 -37
- package/out/managers/TransactionManager/tests/isCrossShardTransaction.test.js.map +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.d.ts +13 -8
- package/out/managers/UnlockPanelManager/UnlockPanelManager.js +32 -13
- package/out/managers/UnlockPanelManager/UnlockPanelManager.js.map +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.types.d.ts +21 -14
- package/out/managers/UnlockPanelManager/UnlockPanelManager.types.mjs +1 -1
- package/out/managers/UnlockPanelManager/index.mjs +1 -1
- package/out/managers/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.d.ts +2 -2
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.js +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.js.map +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.js +2 -2
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.js.map +1 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.d.ts +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.js +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.js.map +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/createTransactionToast.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.mjs +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.d.ts +2 -2
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/index.mjs +1 -1
- package/out/methods/account/getAccount.mjs +1 -1
- package/out/methods/account/getAccountInfo.mjs +1 -1
- package/out/methods/account/getAddress.mjs +1 -1
- package/out/methods/account/getIsLoggedIn.mjs +1 -1
- package/out/methods/account/getLatestNonce.js.map +1 -1
- package/out/methods/account/getLatestNonce.mjs +1 -1
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
- package/out/methods/initApp/initApp.js +5 -16
- package/out/methods/initApp/initApp.js.map +1 -1
- package/out/methods/initApp/initApp.mjs +1 -1
- package/out/methods/initApp/initApp.mjs.map +3 -3
- package/out/methods/initApp/initApp.types.d.ts +38 -0
- package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
- package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
- package/out/methods/loginInfo/getLoginInfo.d.ts +14 -0
- package/out/methods/loginInfo/getLoginInfo.js +14 -0
- package/out/methods/loginInfo/getLoginInfo.js.map +1 -0
- package/out/methods/loginInfo/getLoginInfo.mjs +2 -0
- package/out/methods/loginInfo/getLoginInfo.mjs.map +7 -0
- package/out/methods/network/getEgldLabel.js +2 -2
- package/out/methods/network/getEgldLabel.js.map +1 -1
- package/out/methods/network/getEgldLabel.mjs +1 -1
- package/out/methods/network/getExplorerAddress.js +2 -2
- package/out/methods/network/getExplorerAddress.js.map +1 -1
- package/out/methods/network/getExplorerAddress.mjs +1 -1
- package/out/methods/network/getNetworkConfig.d.ts +1 -1
- package/out/methods/network/getNetworkConfig.js +2 -2
- package/out/methods/network/getNetworkConfig.js.map +1 -1
- package/out/methods/network/getNetworkConfig.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactions.d.ts +1 -0
- package/out/methods/transactions/getFailedTransactions.js +10 -0
- package/out/methods/transactions/getFailedTransactions.js.map +1 -0
- package/out/methods/transactions/getFailedTransactions.mjs +2 -0
- package/out/methods/transactions/getFailedTransactions.mjs.map +7 -0
- package/out/methods/transactions/getFailedTransactionsSessions.d.ts +1 -0
- package/out/methods/transactions/getFailedTransactionsSessions.js +10 -0
- package/out/methods/transactions/getFailedTransactionsSessions.js.map +1 -0
- package/out/methods/transactions/getFailedTransactionsSessions.mjs +2 -0
- package/out/methods/transactions/getFailedTransactionsSessions.mjs.map +7 -0
- package/out/methods/transactions/getPendingTransactions.d.ts +1 -0
- package/out/methods/transactions/getPendingTransactions.js +10 -0
- package/out/methods/transactions/getPendingTransactions.js.map +1 -0
- package/out/methods/transactions/getPendingTransactions.mjs +2 -0
- package/out/methods/transactions/getPendingTransactions.mjs.map +7 -0
- package/out/methods/transactions/getPendingTransactionsSessions.d.ts +1 -0
- package/out/methods/transactions/getPendingTransactionsSessions.js +10 -0
- package/out/methods/transactions/getPendingTransactionsSessions.js.map +1 -0
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +2 -0
- package/out/methods/transactions/getPendingTransactionsSessions.mjs.map +7 -0
- package/out/methods/transactions/getSuccessfulTransactions.d.ts +1 -0
- package/out/methods/transactions/getSuccessfulTransactions.js +10 -0
- package/out/methods/transactions/getSuccessfulTransactions.js.map +1 -0
- package/out/methods/transactions/getSuccessfulTransactions.mjs +2 -0
- package/out/methods/transactions/getSuccessfulTransactions.mjs.map +7 -0
- package/out/methods/transactions/getSuccessfulTransactionsSessions.d.ts +1 -0
- package/out/methods/transactions/getSuccessfulTransactionsSessions.js +10 -0
- package/out/methods/transactions/getSuccessfulTransactionsSessions.js.map +1 -0
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +2 -0
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs.map +7 -0
- package/out/methods/transactions/getTransactionSessions.d.ts +1 -0
- package/out/methods/transactions/getTransactionSessions.js +10 -0
- package/out/methods/transactions/getTransactionSessions.js.map +1 -0
- package/out/methods/transactions/getTransactionSessions.mjs +2 -0
- package/out/methods/transactions/getTransactionSessions.mjs.map +7 -0
- package/out/providers/DappProvider/DappProvider.d.ts +14 -48
- package/out/providers/DappProvider/DappProvider.js +11 -3
- package/out/providers/DappProvider/DappProvider.js.map +1 -1
- package/out/providers/DappProvider/DappProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.d.ts +3 -1
- package/out/providers/DappProvider/helpers/login/login.js +16 -8
- package/out/providers/DappProvider/helpers/login/login.js.map +1 -1
- package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.d.ts +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.js +3 -1
- package/out/providers/DappProvider/helpers/logout/logout.js.map +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/getVerifier.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.d.ts +1 -2
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.js.map +1 -1
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/verifyMessage.d.ts +1 -1
- package/out/providers/DappProvider/helpers/signMessage/verifyMessage.mjs +1 -1
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
- package/out/providers/DappProvider/index.mjs +1 -1
- package/out/providers/ProviderFactory.js +25 -23
- package/out/providers/ProviderFactory.js.map +1 -1
- package/out/providers/ProviderFactory.mjs +1 -1
- package/out/providers/helpers/accountProvider.mjs +1 -1
- package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
- package/out/providers/helpers/clearInitiatedLogins.d.ts +2 -2
- package/out/providers/helpers/clearInitiatedLogins.js.map +1 -1
- package/out/providers/helpers/clearInitiatedLogins.mjs +1 -1
- package/out/providers/helpers/emptyProvider.d.ts +2 -2
- package/out/providers/helpers/emptyProvider.js.map +1 -1
- package/out/providers/helpers/emptyProvider.mjs +1 -1
- package/out/providers/helpers/restoreProvider.js +11 -1
- package/out/providers/helpers/restoreProvider.js.map +1 -1
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/index.mjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.d.ts +25 -12
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.js +30 -12
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.js.map +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.d.ts +14 -10
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.js +41 -55
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.js.map +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.d.ts +14 -9
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.js +36 -42
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.js.map +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.d.ts +18 -11
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.js +59 -55
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.js.map +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.d.ts +1 -0
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.d.ts +22 -11
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.js +57 -43
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.js.map +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.js +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.js.map +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.d.ts +28 -17
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.js +150 -169
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.js.map +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.d.ts +14 -9
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.js +36 -39
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.js.map +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
- package/out/providers/strategies/helpers/index.mjs +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.js +18 -3
- package/out/providers/strategies/helpers/signMessage/signMessage.js.map +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.js +14 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.js.map +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.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.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.js +21 -24
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.js.map +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/tests/getCommonData.test.js +6 -6
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/tests/getCommonData.test.js.map +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.js +8 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.js.map +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
- package/out/providers/strategies/index.mjs +1 -1
- package/out/providers/types/providerFactory.types.d.ts +18 -17
- package/out/providers/types/providerFactory.types.js +10 -11
- package/out/providers/types/providerFactory.types.js.map +1 -1
- package/out/providers/types/providerFactory.types.mjs +1 -1
- package/out/react/account/useGetAccount.js.map +1 -1
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccount.mjs.map +2 -2
- package/out/react/account/useGetAccountInfo.js.map +1 -1
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetAccountInfo.mjs.map +2 -2
- package/out/react/account/useGetIsLoggedIn.js.map +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs.map +2 -2
- package/out/react/account/useGetLatestNonce.js.map +1 -1
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/account/useGetLatestNonce.mjs.map +2 -2
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.d.ts +1 -44
- package/out/react/loginInfo/useGetLoginInfo.js.map +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs.map +2 -2
- package/out/react/network/useGetNetworkConfig.js.map +1 -1
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.mjs.map +2 -2
- package/out/react/store/getReactStore.js +1 -1
- package/out/react/store/getReactStore.js.map +1 -1
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/getReactStore.mjs.map +4 -4
- package/out/react/store/useSelector.js +1 -1
- package/out/react/store/useSelector.js.map +1 -1
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactions.d.ts +1 -0
- package/out/react/transactions/useGetFailedTransactions.js +11 -0
- package/out/react/transactions/useGetFailedTransactions.js.map +1 -0
- package/out/react/transactions/useGetFailedTransactions.mjs +2 -0
- package/out/react/transactions/useGetFailedTransactions.mjs.map +7 -0
- package/out/react/transactions/useGetFailedTransactionsSessions copy.d.ts +1 -0
- package/out/react/transactions/useGetFailedTransactionsSessions copy.js +11 -0
- package/out/react/transactions/useGetFailedTransactionsSessions copy.js.map +1 -0
- package/out/react/transactions/useGetFailedTransactionsSessions copy.mjs +2 -0
- package/out/react/transactions/useGetFailedTransactionsSessions copy.mjs.map +7 -0
- package/out/react/transactions/useGetPendingTransactions.js.map +1 -1
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.mjs.map +2 -2
- package/out/react/transactions/useGetPendingTransactionsSessions.d.ts +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.js +3 -3
- package/out/react/transactions/useGetPendingTransactionsSessions.js.map +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs.map +3 -3
- package/out/react/transactions/useGetSuccessfulTransactions.d.ts +1 -0
- package/out/react/transactions/useGetSuccessfulTransactions.js +11 -0
- package/out/react/transactions/useGetSuccessfulTransactions.js.map +1 -0
- package/out/react/transactions/useGetSuccessfulTransactions.mjs +2 -0
- package/out/react/transactions/useGetSuccessfulTransactions.mjs.map +7 -0
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.d.ts +1 -0
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.js +11 -0
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.js.map +1 -0
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +2 -0
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs.map +7 -0
- package/out/react/transactions/useGetTransactionSessions.js.map +1 -1
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.mjs.map +2 -2
- package/out/services/index.mjs +1 -1
- package/out/services/nativeAuth/index.mjs +1 -1
- package/out/services/nativeAuth/methods/index.mjs +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.mjs +1 -1
- package/out/store/actions/config/index.mjs +1 -1
- package/out/store/actions/index.mjs +1 -1
- package/out/store/actions/loginInfo/loginInfoActions.d.ts +2 -2
- package/out/store/actions/loginInfo/loginInfoActions.js.map +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.d.ts +3 -3
- package/out/store/actions/sharedActions/sharedActions.js.map +1 -1
- package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
- package/out/store/actions/toasts/index.mjs +1 -1
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionsActions.d.ts +4 -2
- package/out/store/actions/transactions/transactionsActions.js +3 -2
- package/out/store/actions/transactions/transactionsActions.js.map +1 -1
- package/out/store/actions/transactions/transactionsActions.mjs +1 -1
- package/out/store/actions/ui/index.mjs +1 -1
- package/out/store/actions/ui/uiActions.mjs +1 -1
- package/out/store/middleware/applyMiddlewares.mjs +1 -1
- package/out/store/middleware/index.mjs +1 -1
- package/out/store/middleware/logoutMiddleware.mjs +1 -1
- package/out/store/selectors/accountSelectors.mjs +1 -1
- package/out/store/selectors/index.mjs +1 -1
- package/out/store/selectors/loginInfoSelectors.d.ts +2 -45
- package/out/store/selectors/transactionsSelector.d.ts +2 -0
- package/out/store/selectors/transactionsSelector.js +29 -1
- package/out/store/selectors/transactionsSelector.js.map +1 -1
- package/out/store/selectors/transactionsSelector.mjs +1 -1
- package/out/store/slices/account/accountSlice.mjs +1 -1
- package/out/store/slices/account/emptyAccount.mjs +1 -1
- package/out/store/slices/account/index.mjs +1 -1
- package/out/store/slices/index.mjs +1 -1
- package/out/store/slices/loginInfo/loginInfo.types.d.ts +3 -3
- package/out/store/slices/loginInfo/loginInfoSlice.d.ts +1 -1
- package/out/store/storage/index.mjs +1 -1
- package/out/store/storage/storageCallback.js +2 -1
- package/out/store/storage/storageCallback.js.map +1 -1
- package/out/store/storage/storageCallback.mjs +1 -1
- package/out/store/store.mjs +1 -1
- package/out/types/index.d.ts +1 -1
- package/out/types/index.js +1 -1
- package/out/types/index.js.map +1 -1
- package/out/types/index.mjs +1 -1
- package/out/types/serverTransactions.types.d.ts +6 -6
- package/out/types/serverTransactions.types.mjs +1 -1
- package/out/types/suspiciousLink.types.d.ts +17 -0
- package/out/types/{misc.types.js → suspiciousLink.types.js} +1 -1
- package/out/types/suspiciousLink.types.js.map +1 -0
- package/out/types/suspiciousLink.types.mjs +2 -0
- package/out/types/transactions.types.d.ts +4 -0
- package/out/types/transactions.types.mjs.map +1 -1
- package/out/utils/account/index.mjs +1 -1
- package/out/utils/account/refreshAccount.js +1 -1
- package/out/utils/account/refreshAccount.js.map +1 -1
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/createUIElement.mjs +1 -1
- package/out/utils/index.mjs +1 -1
- package/out/utils/operations/trimAmountDecimals.mjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
- package/out/utils/transactions/getScamFlag.d.ts +8 -0
- package/out/utils/transactions/getScamFlag.js +78 -0
- package/out/utils/transactions/getScamFlag.js.map +1 -0
- package/out/utils/transactions/getScamFlag.mjs +2 -0
- package/out/utils/transactions/getScamFlag.mjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
- package/out/utils/transactions/index.mjs +1 -1
- package/out/utils/validation/index.mjs +1 -1
- package/out/utils/validation/isContract.mjs +1 -1
- package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.mjs +1 -1
- package/out/utils/window/getIsInIframe.mjs +1 -1
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/out/utils/window/index.mjs +1 -1
- package/package.json +9 -7
- package/out/__chunks__/chunk-243OAHYD.mjs.map +0 -7
- package/out/__chunks__/chunk-2CNSQULM.mjs +0 -2
- package/out/__chunks__/chunk-2CNSQULM.mjs.map +0 -7
- package/out/__chunks__/chunk-2X7ENE6Y.mjs +0 -2
- package/out/__chunks__/chunk-2X7ENE6Y.mjs.map +0 -7
- package/out/__chunks__/chunk-42SCXW2U.mjs +0 -2
- package/out/__chunks__/chunk-42SCXW2U.mjs.map +0 -7
- package/out/__chunks__/chunk-43CV6VGD.mjs +0 -2
- package/out/__chunks__/chunk-43CV6VGD.mjs.map +0 -7
- package/out/__chunks__/chunk-45H34XLJ.mjs +0 -2
- package/out/__chunks__/chunk-4LEA6EXQ.mjs +0 -2
- package/out/__chunks__/chunk-4YIFSKYR.mjs +0 -2
- package/out/__chunks__/chunk-672ZNZKR.mjs +0 -2
- package/out/__chunks__/chunk-6746F2FY.mjs +0 -2
- package/out/__chunks__/chunk-6GNOK3TJ.mjs.map +0 -7
- package/out/__chunks__/chunk-7JA77EJQ.mjs +0 -2
- package/out/__chunks__/chunk-7JA77EJQ.mjs.map +0 -7
- package/out/__chunks__/chunk-7Q3M4L6V.mjs +0 -2
- package/out/__chunks__/chunk-7Q3M4L6V.mjs.map +0 -7
- package/out/__chunks__/chunk-7QCBLUWB.mjs +0 -2
- package/out/__chunks__/chunk-7QCBLUWB.mjs.map +0 -7
- package/out/__chunks__/chunk-7TOTBAGV.mjs +0 -2
- package/out/__chunks__/chunk-7TOTBAGV.mjs.map +0 -7
- package/out/__chunks__/chunk-AGI2ZR6R.mjs +0 -2
- package/out/__chunks__/chunk-AGI2ZR6R.mjs.map +0 -7
- package/out/__chunks__/chunk-AL42X4Q3.mjs +0 -2
- package/out/__chunks__/chunk-AL42X4Q3.mjs.map +0 -7
- package/out/__chunks__/chunk-ARD5PCMI.mjs +0 -2
- package/out/__chunks__/chunk-ARD5PCMI.mjs.map +0 -7
- package/out/__chunks__/chunk-B5IOGCMT.mjs +0 -2
- package/out/__chunks__/chunk-B5IOGCMT.mjs.map +0 -7
- package/out/__chunks__/chunk-BQL3NILA.mjs +0 -2
- package/out/__chunks__/chunk-BXKFACG5.mjs +0 -2
- package/out/__chunks__/chunk-BXUBAIBU.mjs +0 -2
- package/out/__chunks__/chunk-C3KLB5TA.mjs +0 -2
- package/out/__chunks__/chunk-C4CJSICS.mjs +0 -2
- package/out/__chunks__/chunk-C4CJSICS.mjs.map +0 -7
- package/out/__chunks__/chunk-CBIH5QMT.mjs +0 -2
- package/out/__chunks__/chunk-CQZVU4RB.mjs +0 -1
- package/out/__chunks__/chunk-DZ3UVNJK.mjs +0 -2
- package/out/__chunks__/chunk-DZ5L5MZT.mjs.map +0 -7
- package/out/__chunks__/chunk-EFVHT26M.mjs +0 -2
- package/out/__chunks__/chunk-EFVHT26M.mjs.map +0 -7
- package/out/__chunks__/chunk-EXLTOUB5.mjs +0 -2
- package/out/__chunks__/chunk-EXLTOUB5.mjs.map +0 -7
- package/out/__chunks__/chunk-FTFAEXVE.mjs +0 -2
- package/out/__chunks__/chunk-G57SJWVR.mjs +0 -1
- package/out/__chunks__/chunk-GAOXEYHA.mjs +0 -1
- package/out/__chunks__/chunk-GHDPXQZ5.mjs +0 -2
- package/out/__chunks__/chunk-GUG3HFGL.mjs +0 -2
- package/out/__chunks__/chunk-GUG3HFGL.mjs.map +0 -7
- package/out/__chunks__/chunk-GUHNF5RM.mjs +0 -2
- package/out/__chunks__/chunk-GUHNF5RM.mjs.map +0 -7
- package/out/__chunks__/chunk-HP5OTXWV.mjs +0 -2
- package/out/__chunks__/chunk-HP5OTXWV.mjs.map +0 -7
- package/out/__chunks__/chunk-IGA7KHXY.mjs +0 -2
- package/out/__chunks__/chunk-IGA7KHXY.mjs.map +0 -7
- package/out/__chunks__/chunk-JO3DZYEB.mjs +0 -2
- package/out/__chunks__/chunk-JR3FBBRR.mjs +0 -2
- package/out/__chunks__/chunk-JR3FBBRR.mjs.map +0 -7
- package/out/__chunks__/chunk-K3G3SPRT.mjs +0 -2
- package/out/__chunks__/chunk-KQ3I46X7.mjs +0 -2
- package/out/__chunks__/chunk-KQ3I46X7.mjs.map +0 -7
- package/out/__chunks__/chunk-MCOVQEK7.mjs +0 -2
- package/out/__chunks__/chunk-MCOVQEK7.mjs.map +0 -7
- package/out/__chunks__/chunk-O4J75OI6.mjs +0 -2
- package/out/__chunks__/chunk-O4J75OI6.mjs.map +0 -7
- package/out/__chunks__/chunk-OOJVPJOX.mjs +0 -1
- package/out/__chunks__/chunk-OTBTZ3NI.mjs +0 -2
- package/out/__chunks__/chunk-OYA4AQFY.mjs +0 -2
- package/out/__chunks__/chunk-OYA4AQFY.mjs.map +0 -7
- package/out/__chunks__/chunk-PLFZHJOX.mjs +0 -2
- package/out/__chunks__/chunk-PV5A7PX4.mjs +0 -2
- package/out/__chunks__/chunk-PVNL2LED.mjs +0 -1
- package/out/__chunks__/chunk-PVNL2LED.mjs.map +0 -7
- package/out/__chunks__/chunk-PVTRVIAK.mjs +0 -2
- package/out/__chunks__/chunk-QI2QMNTG.mjs +0 -2
- package/out/__chunks__/chunk-QI2QMNTG.mjs.map +0 -7
- package/out/__chunks__/chunk-RZ4YTKD7.mjs +0 -2
- package/out/__chunks__/chunk-RZ4YTKD7.mjs.map +0 -7
- package/out/__chunks__/chunk-SHNEF3SC.mjs +0 -2
- package/out/__chunks__/chunk-SHNEF3SC.mjs.map +0 -7
- package/out/__chunks__/chunk-THQWNWSE.mjs +0 -2
- package/out/__chunks__/chunk-THQWNWSE.mjs.map +0 -7
- package/out/__chunks__/chunk-TOGPOKIP.mjs +0 -2
- package/out/__chunks__/chunk-TOGPOKIP.mjs.map +0 -7
- package/out/__chunks__/chunk-U2TDLWBA.mjs +0 -2
- package/out/__chunks__/chunk-U5GPHLUX.mjs +0 -2
- package/out/__chunks__/chunk-U5GPHLUX.mjs.map +0 -7
- package/out/__chunks__/chunk-UBD2YVBI.mjs +0 -2
- package/out/__chunks__/chunk-UBD2YVBI.mjs.map +0 -7
- package/out/__chunks__/chunk-UFMHCVBL.mjs +0 -2
- package/out/__chunks__/chunk-VLHG5NVE.mjs +0 -2
- package/out/__chunks__/chunk-VLHG5NVE.mjs.map +0 -7
- package/out/__chunks__/chunk-W2WAVVF5.mjs +0 -2
- package/out/__chunks__/chunk-W2WAVVF5.mjs.map +0 -7
- package/out/__chunks__/chunk-WGOZYG4T.mjs +0 -2
- package/out/__chunks__/chunk-WTCFHVW3.mjs +0 -2
- package/out/__chunks__/chunk-WVTCO3AV.mjs +0 -2
- package/out/__chunks__/chunk-WVTCO3AV.mjs.map +0 -7
- package/out/__chunks__/chunk-WZNCESVG.mjs +0 -2
- package/out/__chunks__/chunk-WZNCESVG.mjs.map +0 -7
- package/out/__chunks__/chunk-XG2BS23C.mjs +0 -2
- package/out/__chunks__/chunk-XG2BS23C.mjs.map +0 -7
- package/out/__chunks__/chunk-XKBQDG5H.mjs +0 -1
- package/out/__chunks__/chunk-XKBQDG5H.mjs.map +0 -7
- package/out/__chunks__/chunk-XNEYOZ7M.mjs +0 -1
- package/out/__chunks__/chunk-XNEYOZ7M.mjs.map +0 -7
- package/out/__chunks__/chunk-YQTGKHGB.mjs +0 -2
- package/out/__chunks__/chunk-YVVDA6LN.mjs +0 -2
- package/out/__chunks__/chunk-ZC3TMTLB.mjs +0 -2
- package/out/__chunks__/chunk-ZC3TMTLB.mjs.map +0 -7
- package/out/managers/TransactionManager/helpers/getShardOfAddress.d.ts +0 -1
- package/out/managers/TransactionManager/helpers/getShardOfAddress.js +0 -38
- package/out/managers/TransactionManager/helpers/getShardOfAddress.js.map +0 -1
- package/out/managers/TransactionManager/helpers/getShardOfAddress.mjs +0 -2
- package/out/managers/TransactionManager/helpers/getShardOfAddress.mjs.map +0 -7
- package/out/managers/TransactionManager/tests/getShardOfAddress.test.d.ts +0 -1
- package/out/managers/TransactionManager/tests/getShardOfAddress.test.js +0 -19
- package/out/managers/TransactionManager/tests/getShardOfAddress.test.js.map +0 -1
- package/out/types/misc.types.d.ts +0 -1
- package/out/types/misc.types.js.map +0 -1
- package/out/types/misc.types.mjs +0 -2
- package/out/types/misc.types.mjs.map +0 -7
- /package/out/__chunks__/{chunk-IXJOO5U4.mjs.map → chunk-266T724O.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7OTTISMZ.mjs.map → chunk-26XVDGTO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-X2JK27T3.mjs.map → chunk-2FD2AMKA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XU34NXIS.mjs.map → chunk-2ONA7QPD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-675ZW4IF.mjs.map → chunk-2SOS3KAT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BXKFACG5.mjs.map → chunk-35XMV5ZL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UF45HLIK.mjs.map → chunk-3MWXXTQQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TLKMUVQJ.mjs.map → chunk-45WVS4H5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2HWIJ4CV.mjs.map → chunk-4OEPT2V4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AJEWAECH.mjs.map → chunk-66JBXP4O.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6746F2FY.mjs.map → chunk-6DNPTAY5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PEDR76UT.mjs.map → chunk-72PZKSKF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TYYA6E7F.mjs.map → chunk-7BP53CXF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-M3C5NS6M.mjs.map → chunk-7ECP7Y7M.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PPA7AFVD.mjs.map → chunk-7WTWD4TL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2AAKENSP.mjs.map → chunk-A5EXECZV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LETBBKOK.mjs.map → chunk-ASWTHX52.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PDT22D2C.mjs.map → chunk-AV4HSXYZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3OKWBJFM.mjs.map → chunk-B2RDSGON.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KMFYDHOY.mjs.map → chunk-BRBIUWAW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3NG7LKF4.mjs.map → chunk-BSWV5MEC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NCUYIZYI.mjs.map → chunk-BVYTCDU6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RNCF2III.mjs.map → chunk-C5TNEYN6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CBIH5QMT.mjs.map → chunk-C6E6XICI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SBQJGS63.mjs.map → chunk-CCDTUFFG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BQL3NILA.mjs.map → chunk-CNUQX7FI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NJ73RJ4B.mjs.map → chunk-CNWR7SER.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-672ZNZKR.mjs.map → chunk-DFNESXSW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SNKFFCSF.mjs.map → chunk-DHPD6E7P.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-M6ATGCOM.mjs.map → chunk-DNHKXKYY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4YIFSKYR.mjs.map → chunk-DT6YLEPL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OF6HBWFR.mjs.map → chunk-DV3XIKOX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LNABNVAO.mjs.map → chunk-EOX35D4L.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BXUBAIBU.mjs.map → chunk-FEFZKA2B.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I66YT2S2.mjs.map → chunk-FMUDQBZE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3IYQANTT.mjs.map → chunk-FUYWIC54.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FJIH6TWP.mjs.map → chunk-IJB6XDNR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WTCFHVW3.mjs.map → chunk-INBKWOKQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UYUKTC4X.mjs.map → chunk-IOE5AG2R.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SF7XXVIO.mjs.map → chunk-ISPRIGOE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-L2JWXTGG.mjs.map → chunk-J3YO25EK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6ZDBHK76.mjs.map → chunk-JIJSBQEU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YQTGKHGB.mjs.map → chunk-JQU6F2FL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-G2DLIXFQ.mjs.map → chunk-K3WBBSXJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OYZFSQEK.mjs.map → chunk-KPDCSGZD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TAI3I5BS.mjs.map → chunk-KSKOSHYV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KJCZ5HAU.mjs.map → chunk-LM5SF2NG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JO3DZYEB.mjs.map → chunk-N5FYAXCA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4PV6SFXA.mjs.map → chunk-NBDECUQ3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FTFAEXVE.mjs.map → chunk-NO7YH2FT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WGOZYG4T.mjs.map → chunk-P5RR3CVM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-W4GE4ZDP.mjs.map → chunk-PRULMJH7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HQJG7CFV.mjs.map → chunk-QAVA2C6Y.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LTF535HP.mjs.map → chunk-QJSB5NX4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WW4BBBLW.mjs.map → chunk-QKHHW26T.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YRIDJGOK.mjs.map → chunk-QM67ZEC5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YAXVLGG3.mjs.map → chunk-QP2EL7IE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VIJUIJ4V.mjs.map → chunk-QSBLXZFC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YVD46DFI.mjs.map → chunk-RHFDU5Y4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5WVAF7RB.mjs.map → chunk-S5FDHOXH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NM3KJ3EA.mjs.map → chunk-SH5S4RA4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7RX2A4WD.mjs.map → chunk-SJYCKFH4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-C4CJOZ4L.mjs.map → chunk-SYQ7SILM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7YGJXJUC.mjs.map → chunk-TMP3REGQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PVTRVIAK.mjs.map → chunk-TR6FQZGE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CQZVU4RB.mjs.map → chunk-TRMQFQOQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LD4NALNZ.mjs.map → chunk-VCGAO6HH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QQ4OPT5A.mjs.map → chunk-VJ2DAL5M.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PLFZHJOX.mjs.map → chunk-VSUCRJYB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-G57SJWVR.mjs.map → chunk-WFAPPSOI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JXO7XRIR.mjs.map → chunk-XFZOOFY5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RVW2ZWCR.mjs.map → chunk-XHIIMAIQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JGULQG2H.mjs.map → chunk-XLHFU7XR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JTQCNFCR.mjs.map → chunk-YB7AHPBR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ENTPR3MV.mjs.map → chunk-YN5ARP6C.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XO5D3FNU.mjs.map → chunk-YPCJBYUY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Y3YLDFXK.mjs.map → chunk-YQ3LRPGM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MCZUQPRA.mjs.map → chunk-YTFYVPZO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-45H34XLJ.mjs.map → chunk-Z6R3RDWW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YPNKNMW5.mjs.map → chunk-ZEIGMAXW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4LEA6EXQ.mjs.map → chunk-ZEUNADU7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HC5QPKZT.mjs.map → chunk-ZHIYA3M7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-42KJRIAT.mjs.map → chunk-ZK5BKLTG.mjs.map} +0 -0
- /package/out/{__chunks__/chunk-GAOXEYHA.mjs.map → managers/TransactionManager/TransactionManager.types.mjs.map} +0 -0
- /package/out/{__chunks__/chunk-OOJVPJOX.mjs.map → types/suspiciousLink.types.mjs.map} +0 -0
package/README.md
CHANGED
|
@@ -8,12 +8,12 @@ MultiversX Front-End SDK for JavaScript and TypeScript (written in TypeScript).
|
|
|
8
8
|
|
|
9
9
|
It is built for applications that use any of the following technologies:
|
|
10
10
|
|
|
11
|
-
- React
|
|
11
|
+
- React (example: [Template Dapp](https://github.com/multiversx/mx-template-dapp))
|
|
12
12
|
- Angular
|
|
13
13
|
- Vue
|
|
14
|
-
- Any other JavaScript framework (e.g. Solid.js etc.)
|
|
14
|
+
- Any other JavaScript framework (e.g. Solid.js etc.) (example: [Solid.js Dapp](https://github.com/multiversx/mx-solidjs-template-dapp))
|
|
15
15
|
- React Native
|
|
16
|
-
- Next.js
|
|
16
|
+
- Next.js (example: [Next.js Dapp](https://github.com/multiversx/mx-template-dapp-nextjs))
|
|
17
17
|
|
|
18
18
|
## GitHub project
|
|
19
19
|
|
|
@@ -60,7 +60,7 @@ Also, make sure you run your app on `https`, not `http`, otherwise some provider
|
|
|
60
60
|
npm install
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
If you're transitioning from
|
|
63
|
+
If you're transitioning from `@multiversx/sdk-dapp@4.x`, you can check out the [Migration guide](https://github.com/multiversx/mx-template-dapp/blob/0eb7bc6194195b6c364b8010023d351d914db65e/MIGRATION_GUIDE.md) and [migration PR](https://github.com/multiversx/mx-template-dapp/pull/343) of Template Dapp
|
|
64
64
|
|
|
65
65
|
## Usage
|
|
66
66
|
|
|
@@ -81,18 +81,18 @@ Having this knowledge, we can consider several steps needed to put a dApp togeth
|
|
|
81
81
|
| 1 | Configuration | - storage configuration (e.g. sessionStorage, localStorage etc.)<br>- chain configuration<br>- custom provider configuration (adding / disabling / changing providers) |
|
|
82
82
|
| 2 | Provider interaction | - logging in and out<br>- signing transactions / messages |
|
|
83
83
|
| 3 | Presenting data | - get store data (e.g. account balance, account address etc.)<br>- use components to display data (e.g. balance, address, transactions list) |
|
|
84
|
-
| 4 | Transactions | - sending transactions<br>- tracking transactions |
|
|
84
|
+
| 4 | Transactions | - sending transactions<br>- tracking transactions<br>- displayingtransactions history |
|
|
85
85
|
|
|
86
86
|
Each of these steps will be explained in more detail in the following sections.
|
|
87
87
|
|
|
88
88
|
### 1. Configuration
|
|
89
89
|
|
|
90
|
-
Before your application bootstraps, you need to configure the storage, the network, and the signing providers. This is done by calling the `initApp` method from the `
|
|
90
|
+
Before your application bootstraps, you need to configure the storage, the network, and the signing providers. This is done by calling the `initApp` method from the `methods` folder. It is recommended to call this method in the `index.tsx` to ensure the sdk-dapp internal functions are initialized before rendering the app.
|
|
91
91
|
|
|
92
92
|
```typescript
|
|
93
93
|
// index.tsx
|
|
94
|
-
import { initApp } from '@multiversx/sdk-dapp/out/
|
|
95
|
-
import type { InitAppType } from '@multiversx/sdk-dapp/out/
|
|
94
|
+
import { initApp } from '@multiversx/sdk-dapp/out/methods/initApp/initApp';
|
|
95
|
+
import type { InitAppType } from '@multiversx/sdk-dapp/out/methods/initApp/initApp.types';
|
|
96
96
|
import { EnvironmentsEnum } from '@multiversx/sdk-dapp/out/types/enums.types';
|
|
97
97
|
import { App } from "./App";
|
|
98
98
|
|
|
@@ -102,7 +102,7 @@ const config: InitAppType = {
|
|
|
102
102
|
// nativeAuth: true, // optional
|
|
103
103
|
environment: EnvironmentsEnum.devnet,
|
|
104
104
|
// network: { // optional
|
|
105
|
-
// walletAddress: 'https://devnet-wallet.multiversx.com'
|
|
105
|
+
// walletAddress: 'https://devnet-wallet.multiversx.com' // or other props you want to override
|
|
106
106
|
// },
|
|
107
107
|
successfulToastLifetime: 5000
|
|
108
108
|
}
|
|
@@ -116,11 +116,59 @@ initApp(config).then(() => {
|
|
|
116
116
|
|
|
117
117
|
### 2. Provider interaction
|
|
118
118
|
|
|
119
|
-
Once your dApp has loaded, the first user action is logging in with a chosen provider.
|
|
119
|
+
Once your dApp has loaded, the first user action is logging in with a chosen provider. There are two ways to perform a login, namely using the `UnlockPanelManager` and programatic login using the `ProviderFactory`.
|
|
120
|
+
|
|
121
|
+
#### 2.1 Using the `UnlockPanelManager`
|
|
122
|
+
By using the provided UI, you get the benefit of having all supported providers ready for login in a side panel. You simply need to link the `unlockPanelManager.openUnlockPanel` to a user action.
|
|
123
|
+
|
|
124
|
+
```typescript
|
|
125
|
+
import { UnlockPanelManager } from '@multiversx/sdk-dapp/out/managers/UnlockPanelManager';
|
|
126
|
+
import { ProviderFactory } from '@multiversx/sdk-dapp/out/providers/ProviderFactory';
|
|
127
|
+
|
|
128
|
+
export const ConnectButton = () => {
|
|
129
|
+
const unlockPanelManager = UnlockPanelManager.init({
|
|
130
|
+
loginHandler: () => {
|
|
131
|
+
navigate('/dashboard');
|
|
132
|
+
},
|
|
133
|
+
onClose: () => { // optional action to be performed when the user closes the Unlock Panel
|
|
134
|
+
navigate('/');
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
const handleOpenUnlockPanel = () => {
|
|
138
|
+
unlockPanelManager.openUnlockPanel();
|
|
139
|
+
};
|
|
140
|
+
return <Button onClick={handleOpenUnlockPanel}>Connect</Button>;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
If you want to perform some actions as soon as the user has logged in, you will need to call `ProviderFactory.create` inside a handler accepting arguments.
|
|
146
|
+
|
|
147
|
+
```typescript
|
|
148
|
+
export const AdvancedConnectButton = () => {
|
|
149
|
+
const unlockPanelManager = UnlockPanelManager.init({
|
|
150
|
+
loginHandler: async ({ type, anchor }) => {
|
|
151
|
+
const provider = await ProviderFactory.create({
|
|
152
|
+
type,
|
|
153
|
+
anchor
|
|
154
|
+
});
|
|
155
|
+
const { address, signature } = await provider.login();
|
|
156
|
+
navigate(`/dashboard?address=${address}`;
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
const handleOpenUnlockPanel = () => {
|
|
160
|
+
unlockPanelManager.openUnlockPanel();
|
|
161
|
+
};
|
|
162
|
+
return <Button onClick={handleOpenUnlockPanel}>Advanced Connect</Button>;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
#### 2.2 Programatic login using the `ProviderFactory`
|
|
168
|
+
If you want to login using your custom UI, you can link user actions to specific providers by calling the `ProviderFactory`.
|
|
120
169
|
|
|
121
170
|
```typescript
|
|
122
|
-
import { ProviderTypeEnum } from '@multiversx/sdk-dapp/out/
|
|
123
|
-
import { ProviderFactory } from '@multiversx/sdk-dapp/out/core/providers/ProviderFactory';
|
|
171
|
+
import { ProviderTypeEnum } from '@multiversx/sdk-dapp/out/providers/types/providerFactory.types';
|
|
124
172
|
|
|
125
173
|
const provider = await ProviderFactory.create({
|
|
126
174
|
type: ProviderTypeEnum.extension
|
|
@@ -128,15 +176,30 @@ const provider = await ProviderFactory.create({
|
|
|
128
176
|
await provider.login();
|
|
129
177
|
```
|
|
130
178
|
|
|
131
|
-
|
|
179
|
+
> **Note:** Extension and Ledger login will only work if dApp is served over HTTPS protocol
|
|
180
|
+
|
|
181
|
+
### 3. Displaying app data
|
|
132
182
|
|
|
133
183
|
Depending on the framework, you can either use hooks or selectors to get the user details:
|
|
134
184
|
|
|
135
|
-
#### React hooks
|
|
185
|
+
#### 3.1 React hooks
|
|
186
|
+
|
|
187
|
+
If you are using React, all hooks can be found under the `/out/react` folder. All store information can be accessed via different hooks but below you will find the main hook related to most common use cases
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
out/react/
|
|
191
|
+
├── account/useGetAccount ### access account data like address, balance and nonce
|
|
192
|
+
├── loginInfo/useGetLoginInfo ### access login data like accessToken and provider type
|
|
193
|
+
├── network/useGetNetworkConfig ### access network information like chainId and egldLabel
|
|
194
|
+
├── store/useSelector ### make use of the useSelector hook for querying the store via selectors
|
|
195
|
+
└── transactions/useGetTransactionSessions ### access all current and historic transaction sessions
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
Below is an example of using the hooks to display the user address and balance.
|
|
136
199
|
|
|
137
200
|
```typescript
|
|
138
|
-
import { useGetAccount } from '@multiversx/sdk-dapp/out/
|
|
139
|
-
import { useGetNetworkConfig } from '@multiversx/sdk-dapp/out/
|
|
201
|
+
import { useGetAccount } from '@multiversx/sdk-dapp/out/react/account/useGetAccount';
|
|
202
|
+
import { useGetNetworkConfig } from '@multiversx/sdk-dapp/out/react/network/useGetNetworkConfig';
|
|
140
203
|
|
|
141
204
|
const account = useGetAccount();
|
|
142
205
|
const {
|
|
@@ -147,40 +210,62 @@ console.log(account.address);
|
|
|
147
210
|
console.log(`${account.balance} ${egldLabel}`);
|
|
148
211
|
```
|
|
149
212
|
|
|
150
|
-
#### Store selector functions:
|
|
213
|
+
#### 3.2 Store selector functions:
|
|
214
|
+
|
|
215
|
+
If you are not using the React ecosystem, you can use store selectors to get the store data, but note that information will not be reactive unless you subscribe to store changes.
|
|
151
216
|
|
|
152
217
|
```typescript
|
|
153
|
-
import { getAccount } from '@multiversx/sdk-dapp/out/
|
|
154
|
-
import { getNetworkConfig } from '@multiversx/sdk-dapp/out/
|
|
218
|
+
import { getAccount } from '@multiversx/sdk-dapp/out/methods/account/getAccount';
|
|
219
|
+
import { getNetworkConfig } from '@multiversx/sdk-dapp/out/methods/network/getNetworkConfig';
|
|
155
220
|
|
|
156
221
|
const account = getAccount();
|
|
157
222
|
const { egldLabel } = getNetworkConfig();
|
|
158
223
|
```
|
|
159
224
|
|
|
225
|
+
In order to get live updates you may need to subscribe to the store like this:
|
|
226
|
+
|
|
227
|
+
```typescript
|
|
228
|
+
import { createSignal, onCleanup } from 'solid-js';
|
|
229
|
+
import { getStore } from '@multiversx/sdk-dapp/out/store/store';
|
|
230
|
+
|
|
231
|
+
export function useStore() {
|
|
232
|
+
const store = getStore();
|
|
233
|
+
const [state, setState] = createSignal(store.getState());
|
|
234
|
+
|
|
235
|
+
const unsubscribe = store.subscribe((newState) => {
|
|
236
|
+
setState(newState);
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
onCleanup(() => unsubscribe());
|
|
240
|
+
|
|
241
|
+
return state;
|
|
242
|
+
}
|
|
243
|
+
```
|
|
244
|
+
|
|
160
245
|
### 4. Transactions
|
|
161
246
|
|
|
162
|
-
#### Signing transactions
|
|
247
|
+
#### 4.1 Signing transactions
|
|
163
248
|
|
|
164
|
-
To sign transactions, you first need to create the `Transaction` object then pass it to the initialized provider.
|
|
249
|
+
To sign transactions, you first need to create the `Transaction` object, then pass it to the initialized provider.
|
|
165
250
|
|
|
166
251
|
```typescript
|
|
167
|
-
import { Transaction, TransactionPayload } from '@multiversx/sdk-core
|
|
252
|
+
import { Address, Transaction, TransactionPayload } from '@multiversx/sdk-core';
|
|
168
253
|
import {
|
|
169
254
|
GAS_PRICE,
|
|
170
255
|
GAS_LIMIT
|
|
171
256
|
} from '@multiversx/sdk-dapp/out/constants/mvx.constants';
|
|
172
|
-
import { getAccountProvider } from '@multiversx/sdk-dapp/out/
|
|
257
|
+
import { getAccountProvider } from '@multiversx/sdk-dapp/out/providers/helpers/accountProvider';
|
|
173
258
|
import { refreshAccount } from '@multiversx/sdk-dapp/out/utils/account/refreshAccount';
|
|
174
259
|
|
|
175
260
|
const pongTransaction = new Transaction({
|
|
176
|
-
value:
|
|
261
|
+
value: BigInt(0),
|
|
177
262
|
data: new TransactionPayload('pong'),
|
|
178
|
-
receiver: contractAddress,
|
|
179
|
-
gasLimit: GAS_LIMIT,
|
|
180
|
-
gasPrice: GAS_PRICE,
|
|
263
|
+
receiver: Address.newFromBech32(contractAddress),
|
|
264
|
+
gasLimit: BigInt(GAS_LIMIT),
|
|
265
|
+
gasPrice: BigInt(GAS_PRICE),
|
|
181
266
|
chainID: network.chainId,
|
|
182
|
-
nonce: account.nonce,
|
|
183
|
-
sender: account.address,
|
|
267
|
+
nonce: BigInt(account.nonce),
|
|
268
|
+
sender: Address.newFromBech32(account.address),
|
|
184
269
|
version: 1
|
|
185
270
|
});
|
|
186
271
|
|
|
@@ -189,22 +274,81 @@ const provider = getAccountProvider();
|
|
|
189
274
|
const signedTransactions = await provider.signTransactions(transactions);
|
|
190
275
|
```
|
|
191
276
|
|
|
192
|
-
#### Sending and tracking transactions
|
|
277
|
+
#### 4.2 Sending and tracking transactions
|
|
193
278
|
|
|
194
|
-
Then, to send the transactions, you need to use the `TransactionManager` class and pass in the signedTransactions to the send method. You can
|
|
279
|
+
Then, to send the transactions, you need to use the `TransactionManager` class and pass in the `signedTransactions` to the `send` method. You can then track the transactions by using the `track` method. This will create a toast notification with the transaction hash and its status.
|
|
195
280
|
|
|
196
281
|
```typescript
|
|
197
|
-
import { TransactionManager } from '@multiversx/sdk-dapp/out/
|
|
282
|
+
import { TransactionManager } from '@multiversx/sdk-dapp/out/managers/TransactionManager';
|
|
283
|
+
import type { TransactionsDisplayInfoType } from '@multiversx/sdk-dapp/out/types/transactions.types';
|
|
284
|
+
|
|
198
285
|
|
|
199
286
|
const txManager = TransactionManager.getInstance();
|
|
200
|
-
await txManager.send(signedTransactions);
|
|
201
|
-
|
|
287
|
+
const sentTransactions = await txManager.send(signedTransactions);
|
|
288
|
+
|
|
289
|
+
const toastInformation: TransactionsDisplayInfoType = {
|
|
290
|
+
processingMessage: 'Processing transactions',
|
|
291
|
+
errorMessage: 'An error has occurred during transaction execution',
|
|
292
|
+
successMessage: 'Transactions executed'
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
const sessionId = await txManager.track(sentTransactions, {
|
|
296
|
+
transactionsDisplayInfo: toastInformation
|
|
297
|
+
});
|
|
202
298
|
```
|
|
203
299
|
|
|
204
|
-
|
|
300
|
+
#### 4.3 Using the Notifications Feed
|
|
301
|
+
|
|
302
|
+
The Notifications Feed is a component that displays **session transactions** in a list. Internally it gets initialized in the `initApp` method. It can be accessed via the `NotificationManager.getInstance()` method.
|
|
303
|
+
Once the user logs out of the dApp, all transactions displayed by the Notifications Feed are removed from the store. Note that you can switch between toast notifications and Notifications Feed by pressing the View All button above the current pending transaction toast in the UI.
|
|
205
304
|
|
|
206
305
|
```typescript
|
|
207
|
-
|
|
306
|
+
const notificationManager = NotificationManager.getInstance();
|
|
307
|
+
await notificationManager.openNotificationsFeed();
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
#### 4.4 Inspecting transactions
|
|
311
|
+
|
|
312
|
+
You can find both methods and hooks to access transactions data, as seen in the table below.
|
|
313
|
+
|
|
314
|
+
**Table 2**. Inspectig transactions
|
|
315
|
+
| # | Helper | Description | React hook equivalent |
|
|
316
|
+
|---|------|-------------|----|
|
|
317
|
+
| | `methods/transactions` | path | `react/transactions` |
|
|
318
|
+
| 1 | `getTransactionSessions()` | returns all trabsaction sessions |`useGetTransactionSessions()` |
|
|
319
|
+
| 2 | `getPendingTransactionsSessions()` | returns an record of pending sessions | `useGetPendingTransactionsSessions()`|
|
|
320
|
+
| 3 | `getPendingTransactions()` | returns an array of signed transactions | `useGetPendingTransactions()` |
|
|
321
|
+
| 4 | `getFailedTransactionsSessions()` | returns an record of failed sessions | `useGetFailedTransactionsSessions()`|
|
|
322
|
+
| 5 | `getFailedTransactions()` | returns an array of failed transactions | `useGetFailedTransactions()`|
|
|
323
|
+
| 6 | `getSuccessfulTransactionsSessions()` | returns an record of successful sessions | `useGetSuccessfulTransactionsSessions()`|
|
|
324
|
+
| 7 | `getSuccessfulTransactions()` | returns an array of successful transactions | `useGetSuccessfulTransactions()`|
|
|
325
|
+
|
|
326
|
+
There is a way to inspect store information regarding a specific transaction, using the `transactionsSliceSelector`. An example is shown below:
|
|
327
|
+
|
|
328
|
+
```typescript
|
|
329
|
+
import {
|
|
330
|
+
pendingTransactionsSessionsSelector,
|
|
331
|
+
transactionsSliceSelector
|
|
332
|
+
} from '@multiversx/sdk-dapp/out/store/selectors/transactionsSelector';
|
|
333
|
+
import { getStore } from '@multiversx/sdk-dapp/out/store/store';
|
|
334
|
+
|
|
335
|
+
const store = getStore(); // or use useStore hook for reactivity
|
|
336
|
+
const pendingSessions = pendingTransactionsSessionsSelector(store.getState());
|
|
337
|
+
const allTransactionSessions = transactionsSliceSelector(store.getState());
|
|
338
|
+
|
|
339
|
+
const isSessionIdPending =
|
|
340
|
+
Object.keys(pendingSessions).includes(sessionId);
|
|
341
|
+
const currentSession = allTransactionSessions[sessionId];
|
|
342
|
+
const currentSessionStatus = currentSession?.status;
|
|
343
|
+
const currentTransaction = currentSession?.transactions?.[0];
|
|
344
|
+
const currentTransactionStatus = currentTransaction?.status;
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
#### 4.5 Logging out
|
|
348
|
+
The user journey ends with calling the `provider.logout()` method.
|
|
349
|
+
|
|
350
|
+
```typescript
|
|
351
|
+
import { getAccountProvider } from '@multiversx/sdk-dapp/out/providers/helpers/accountProvider';
|
|
208
352
|
const provider = getAccountProvider();
|
|
209
353
|
await provider.logout();
|
|
210
354
|
```
|
|
@@ -213,7 +357,7 @@ await provider.logout();
|
|
|
213
357
|
|
|
214
358
|
We have seen in the previous chapter what are the minimal steps to get up and running with a blockchain interaction using sdk-dapp. Next we will detail each element mentioned above
|
|
215
359
|
|
|
216
|
-
**Table
|
|
360
|
+
**Table 3**. Elements needed to build a dApp
|
|
217
361
|
| # | Type | Description |
|
|
218
362
|
|---|------|-------------|
|
|
219
363
|
| 1 | Network | Chain configuration |
|
|
@@ -223,50 +367,54 @@ We have seen in the previous chapter what are the minimal steps to get up and ru
|
|
|
223
367
|
| 5 | UI Components | Displaying UI information like balance, public keys etc. |
|
|
224
368
|
|
|
225
369
|
Since these are mixtures of business logic and UI components, the library is split into several folders to make it easier to navigate.
|
|
226
|
-
When inspecting the package, there is more content under `src`, but the
|
|
370
|
+
When inspecting the package, there is more content under `src`, but the folders of interest are:
|
|
371
|
+
|
|
227
372
|
|
|
228
373
|
```bash
|
|
229
374
|
src/
|
|
230
375
|
├── apiCalls/ ### methods for interacting with the API
|
|
231
376
|
├── constants/ ### useful constants from the ecosystem like ledger error codes, default gas limits for transactions etc.
|
|
232
|
-
├── controllers/ ### business logic for UI elements
|
|
233
|
-
├──
|
|
377
|
+
├── controllers/ ### business logic for UI elements that are not bound to the store
|
|
378
|
+
├── managers/ ### business logic for UI elements that are bound to the store
|
|
379
|
+
├── providers/ ### signing providers
|
|
380
|
+
├── methods/ ### utility functions to query and update the store
|
|
381
|
+
├── react/ ### react hooks to query the store
|
|
234
382
|
└── store/ ### store initialization, middleware, slices, selectors and actions
|
|
235
383
|
```
|
|
236
384
|
|
|
237
385
|
Conceptually, these can be split into 3 main parts:
|
|
238
386
|
|
|
239
|
-
- First is the business logic in `apiCalls`, `constants` and `
|
|
387
|
+
- First is the business logic in `apiCalls`, `constants`, `providers` and `methods`
|
|
240
388
|
- Then comes the persistence layer hosted in the `store` folder, using [Zustand](https://zustand.docs.pmnd.rs/) under the hood.
|
|
241
|
-
- Last are the UI components hosted in [@multiversx/sdk-dapp](https://github.com/multiversx/mx-sdk-dapp-ui) with some components controlled on demand by classes defined in `controlles`
|
|
389
|
+
- Last are the UI components hosted in [@multiversx/sdk-dapp-ui](https://github.com/multiversx/mx-sdk-dapp-ui) with some components controlled on demand by classes defined in `controlles` and `managers`
|
|
242
390
|
|
|
243
|
-
Next, we will take the elements from Table
|
|
391
|
+
Next, we will take the elements from Table 3 and detail them in the following sections.
|
|
244
392
|
|
|
245
393
|
### 1. Network
|
|
246
394
|
|
|
247
395
|
The network configuration is done in the `initApp` method, where you can make several confgurations like:
|
|
248
396
|
|
|
249
|
-
- specifying the environment (devnet
|
|
397
|
+
- specifying the environment (`devnet`, `testnet`, `mainnet`)
|
|
250
398
|
- overriding certain network parameters like wallet address, explorer address etc.
|
|
251
399
|
|
|
252
400
|
Once the network is configured, the `network` slice in the store will hold the network configuration.
|
|
253
401
|
|
|
254
|
-
To query different network parameters, you can use the `getNetworkConfig` method from the `
|
|
402
|
+
To query different network parameters, you can use the `getNetworkConfig` method from the `methods/network` folder.
|
|
255
403
|
|
|
256
404
|
### 2. Provider
|
|
257
405
|
|
|
258
|
-
The provider is the main class that handles the signing of transactions and messages. It is initialized in the `initApp` method and can be accessed via the `getAccountProvider` method from the `
|
|
406
|
+
The provider is the main class that handles the signing of transactions and messages. It is initialized in the `initApp` method and can be accessed via the `getAccountProvider` method from the `providers/helpers` folder.
|
|
259
407
|
|
|
260
408
|
#### Initialization
|
|
261
409
|
|
|
262
|
-
|
|
410
|
+
An existing provider is initialized on app load (this is take care of by `initApp`), since it restores the session from the store and allows signing transactions without the need of making a new login.
|
|
263
411
|
|
|
264
412
|
#### Creating a custom provider
|
|
265
413
|
|
|
266
414
|
If you need to create a custom signing provider, make sure to extend the `IProvider` interface and implement all required methods (see example [here](https://github.com/multiversx/mx-template-dapp/tree/main/src/provider)). Next step would be to include it in the `customProviders` array in the `initApp` method or add it to the [window object](https://github.com/multiversx/mx-template-dapp/tree/main/src/initConfig). Last step is to login using the custom provider.
|
|
267
415
|
|
|
268
416
|
```typescript
|
|
269
|
-
import { ProviderTypeEnum } from '@multiversx/sdk-dapp/out/
|
|
417
|
+
import { ProviderTypeEnum } from '@multiversx/sdk-dapp/out/providers/types/providerFactory.types';
|
|
270
418
|
|
|
271
419
|
const ADDITIONAL_PROVIDERS = {
|
|
272
420
|
myCustomProvider: 'myCustomProvider'
|
|
@@ -292,12 +440,12 @@ Once the provider is initialized, you can get a reference to it using the `getAc
|
|
|
292
440
|
|
|
293
441
|
#### Getting account data
|
|
294
442
|
|
|
295
|
-
Once the user logs in, a call is made to the API for fetching the account data. This data is persisted in the store and is accessible through helpers found in `
|
|
443
|
+
Once the user logs in, a call is made to the API for fetching the account data. This data is persisted in the store and is accessible through helpers found in `methods/account`. These functions are:
|
|
296
444
|
|
|
297
|
-
**Table
|
|
445
|
+
**Table 4**. Getting account data
|
|
298
446
|
| # | Helper | Description | React hook equivalent |
|
|
299
447
|
|---|------|-------------|----|
|
|
300
|
-
| | `
|
|
448
|
+
| | `methods/account` | path | `react/account` |
|
|
301
449
|
| 1 | `getAccount()` | returns all account data |`useGetAccount()` |
|
|
302
450
|
| 2 | `getAddress()` | returns just the user's public key | `useGetAddress()`|
|
|
303
451
|
| 3 | `getIsLoggedIn()` | returns a login status boolean | `useGetIsLoggedIn()` |
|
|
@@ -305,13 +453,13 @@ Once the user logs in, a call is made to the API for fetching the account data.
|
|
|
305
453
|
|
|
306
454
|
#### Nonce management
|
|
307
455
|
|
|
308
|
-
sdk-dapp has a mechanism that does its best to manage the account nonce. For example, if the user sends a transaction, the nonce gets incremented on the client so that if
|
|
456
|
+
`sdk-dapp` has a mechanism that does its best to manage the account nonce. For example, if the user sends a transaction, the nonce gets incremented on the client so that if a new transaction is sent, it will have the correct increased nonce. If you want to make sure the nonce is in sync with the API account, you can call `refreshAccount()` as shown above in the **Signing transactions** section.
|
|
309
457
|
|
|
310
458
|
### 4. Transactions Manager
|
|
311
459
|
|
|
312
460
|
#### Overview
|
|
313
461
|
|
|
314
|
-
The `TransactionManager` is a class that handles sending and tracking transactions in the MultiversX ecosystem. It provides methods to send single
|
|
462
|
+
The `TransactionManager` is a class that handles sending and tracking transactions in the MultiversX ecosystem. It provides methods to send either single or batch transactions. It also handles tracking, error management, and toast notifications for user feedback. It is initialized in the `initApp` method and can be accessed via `TransactionManager.getInstance()`.
|
|
315
463
|
|
|
316
464
|
#### Features
|
|
317
465
|
|
|
@@ -324,15 +472,15 @@ The `TransactionManager` is a class that handles sending and tracking transactio
|
|
|
324
472
|
|
|
325
473
|
The transaction lifecycle consists of the following steps:
|
|
326
474
|
|
|
327
|
-
1. **Creating** a `Transaction` object
|
|
475
|
+
1. **Creating** a `Transaction` object from `@multiversx/sdk-core`
|
|
328
476
|
2. **Signing** the transaction with the initialized provider and receiving a `SignedTransactionType` object
|
|
329
477
|
3. **Sending** the signed transaction using TransactionManager's `send()` function. Signed transactions can be sent in 2 ways:
|
|
330
478
|
|
|
331
|
-
**Table
|
|
479
|
+
**Table 5**. Sending signed transactions
|
|
332
480
|
| # | Signature | Method | Description |
|
|
333
481
|
|---|------|-------------|-------------|
|
|
334
482
|
| 1 | `send([tx1, tx2])` | `POST` to `/transactions` | Transactions are executed in parallel
|
|
335
|
-
| 2 | `send([[tx1, tx2], [tx3]])` | `POST` to `/batch` |
|
|
483
|
+
| 2 | `send([[tx1, tx2], [tx3]])` | `POST` to `/batch` | **a)** 1<sup>st</sup> batch of two transactions is executed, **b)** the 2<sup>nd</sup> batch of one transaction waits for the finished results, **c)** and once the 1<sup>st</sup> batch is finished, the 2<sup>nd</sup> batch is executed
|
|
336
484
|
|
|
337
485
|
4. **Tracking** transactions is made by using `transactionManager.track()`. Since the `send()` function returns the same arguments it has received, the same array payload can be passed into the `track()` method. Under the hood, status updates are received via a WebSocket or polling mechanism.
|
|
338
486
|
Once a transaction array is tracked, it gets associated with a `sessionId`, returned by the `track()` method and stored in the `transactions` slice. Depending on the array's type (plain/batch), the session's status varies from initial (`pending`/`invalid`/`sent`) to final (`successful`/`failed`/`timedOut`).
|
|
@@ -370,22 +518,23 @@ createCustomToast({
|
|
|
370
518
|
6. **Error Handling & Recovery** is done through a custom toast that prompts the user to take appropriate action.
|
|
371
519
|
|
|
372
520
|
#### Methods
|
|
521
|
+
___
|
|
373
522
|
|
|
374
|
-
1. Sending Transactions
|
|
523
|
+
#### 1. Sending Transactions
|
|
375
524
|
|
|
376
525
|
In this way, all transactions are sent simultaneously. There is no limit to the number of transactions contained in the array.
|
|
377
526
|
|
|
378
|
-
```
|
|
527
|
+
```typescript
|
|
379
528
|
const transactionManager = TransactionManager.getInstance();
|
|
380
529
|
const parallelTransactions: SigendTransactionType[] = [tx1, tx2, tx3, tx4];
|
|
381
530
|
const sentTransactions = await transactionManager.send(parallelTransactions);
|
|
382
531
|
```
|
|
383
532
|
|
|
384
|
-
2. Sending Batch Transactions
|
|
533
|
+
#### 2. Sending Batch Transactions
|
|
385
534
|
|
|
386
535
|
In this sequential case, each batch waits for the previous one to complete.
|
|
387
536
|
|
|
388
|
-
```
|
|
537
|
+
```typescript
|
|
389
538
|
const transactionManager = TransactionManager.getInstance();
|
|
390
539
|
const batchTransactions: SignedTransactionType[][] = [
|
|
391
540
|
[tx1, tx2],
|
|
@@ -394,20 +543,34 @@ const batchTransactions: SignedTransactionType[][] = [
|
|
|
394
543
|
const sentTransactions = await transactionManager.send(batchTransactions);
|
|
395
544
|
```
|
|
396
545
|
|
|
397
|
-
3. Tracking Transactions
|
|
546
|
+
#### 3. Tracking Transactions
|
|
398
547
|
|
|
399
548
|
The basic option is to use the built-in tracking, which displays toast notifications with default messages.
|
|
400
549
|
|
|
401
|
-
```
|
|
550
|
+
```typescript
|
|
551
|
+
import { TransactionManagerTrackOptionsType } from '@multiversx/sdk-dapp/out/managers/TransactionManager/TransactionManager.types';
|
|
552
|
+
|
|
553
|
+
const options: TransactionManagerTrackOptionsType = {
|
|
554
|
+
disableToasts: false, // `false` by default
|
|
555
|
+
transactionsDisplayInfo: { // `undefined` by default
|
|
556
|
+
errorMessage: 'Failed adding stake',
|
|
557
|
+
successMessage: 'Stake successfully added',
|
|
558
|
+
processingMessage: 'Staking in progress'
|
|
559
|
+
},
|
|
560
|
+
sessionInformation: { // `undefined` by default. Use to perform additional actions based on the session information
|
|
561
|
+
stakeAmount: '1000000000000000000000000'
|
|
562
|
+
}
|
|
563
|
+
};
|
|
564
|
+
|
|
402
565
|
const sessionId = await transactionManager.track(
|
|
403
|
-
sentTransactions
|
|
404
|
-
//
|
|
566
|
+
sentTransactions,
|
|
567
|
+
options // optional
|
|
405
568
|
);
|
|
406
569
|
```
|
|
407
570
|
|
|
408
571
|
If you want to provide more human-friendly messages to your users, you can enable tracking with custom toast messages:
|
|
409
572
|
|
|
410
|
-
```
|
|
573
|
+
```typescript
|
|
411
574
|
const sessionId = await transactionManager.track(sentTransactions, {
|
|
412
575
|
transactionsDisplayInfo: {
|
|
413
576
|
errorMessage: 'Failed adding stake',
|
|
@@ -417,16 +580,16 @@ const sessionId = await transactionManager.track(sentTransactions, {
|
|
|
417
580
|
});
|
|
418
581
|
```
|
|
419
582
|
|
|
420
|
-
|
|
583
|
+
#### 3.1 Tracking transactions without being logged in
|
|
421
584
|
|
|
422
585
|
If your application needs to track transactions sent by a server and the user does not need to login to see the outcome of these transactions, there are several steps that you need to do to enable this process.
|
|
423
586
|
|
|
424
587
|
Step 1. Enabling the tracking mechanism
|
|
425
588
|
|
|
426
|
-
By default the tracking mechanism is enabled only after the user logs in. That is the moment when the WebSocket connection is established. If you want to enable tracking before the user logs in, you need to call the `trackTransactions` method from the `
|
|
589
|
+
By default the tracking mechanism is enabled only after the user logs in. That is the moment when the WebSocket connection is established. If you want to enable tracking before the user logs in, you need to call the `trackTransactions` method from the `methods/trackTransactions` folder. This method will enable a polling mechanism.
|
|
427
590
|
|
|
428
591
|
```typescript
|
|
429
|
-
import { trackTransactions } from '@multiversx/sdk-dapp/out/
|
|
592
|
+
import { trackTransactions } from '@multiversx/sdk-dapp/out/methods/trackTransactions/trackTransactions';
|
|
430
593
|
|
|
431
594
|
initApp(config).then(async () => {
|
|
432
595
|
await trackTransactions(); // enable here since by default tracking will be enabled only after login
|
|
@@ -434,10 +597,12 @@ initApp(config).then(async () => {
|
|
|
434
597
|
});
|
|
435
598
|
```
|
|
436
599
|
|
|
600
|
+
Step 2. Tracking transactions
|
|
601
|
+
|
|
437
602
|
Then, you can track transactions by calling the `track` method from the `TransactionManager` class with a plain transaction containing the transaction hash.
|
|
438
603
|
|
|
439
604
|
```typescript
|
|
440
|
-
import { Transaction, TransactionsConverter } from '@multiversx/sdk-core
|
|
605
|
+
import { Transaction, TransactionsConverter } from '@multiversx/sdk-core';
|
|
441
606
|
|
|
442
607
|
const tManager = TransactionManager.getInstance();
|
|
443
608
|
const txConverter = new TransactionsConverter();
|
|
@@ -449,11 +614,11 @@ const plainTransaction = { ...transaction.toPlainObject(), hash };
|
|
|
449
614
|
await tManager.track([plainTransaction]);
|
|
450
615
|
```
|
|
451
616
|
|
|
452
|
-
#### Advanced Usage
|
|
617
|
+
#### 3.2 Advanced Usage
|
|
453
618
|
|
|
454
619
|
If you need to check the status of the signed transactions, you can query the store direclty using the `sessionId` returned by the `track()` method.
|
|
455
620
|
|
|
456
|
-
```
|
|
621
|
+
```typescript
|
|
457
622
|
import { getStore } from '@multiversx/sdk-dapp/out/store/store';
|
|
458
623
|
import { transactionsSliceSelector } from '@multiversx/sdk-dapp/out/store/selectors/transactionsSelector';
|
|
459
624
|
|
|
@@ -467,13 +632,82 @@ Object.entries(state).forEach(([sessionKey, data]) => {
|
|
|
467
632
|
|
|
468
633
|
### 5. UI Components
|
|
469
634
|
|
|
470
|
-
sdk-dapp needs to make use of visual elements for allowing the user to interact with some providers (like the ledger), or to display messages to the user (like idle states or toasts). These visual elements consitst of webcomponents hosted in the `@multiversx/sdk-dapp-ui` package. Thus, sdk-dapp does not hold any UI elements, just business logic that controls external components. We can consider two types of UI components: internal and
|
|
635
|
+
`sdk-dapp` needs to make use of visual elements for allowing the user to interact with some providers (like the ledger), or to display messages to the user (like idle states or toasts). These visual elements consitst of webcomponents hosted in the `@multiversx/sdk-dapp-ui` package. Thus, `sdk-dapp` does not hold any UI elements, just business logic that controls external components. We can consider two types of UI components: internal and public. They are differentiated by the way they are controlled: internal components are controlled by `sdk-dapp`'s signing or logging in flows, while public components should be controlled by the dApp.
|
|
636
|
+
|
|
637
|
+
#### 5.1 Public components
|
|
638
|
+
|
|
639
|
+
The business logic for these components is served by a controller. The components are:
|
|
640
|
+
|
|
641
|
+
- `MvxTransactionsTable` - used to display the user's transactions
|
|
642
|
+
|
|
643
|
+
```tsx
|
|
644
|
+
import { TransactionsTableController } from '@multiversx/sdk-dapp/out/controllers/TransactionsTableController';
|
|
645
|
+
import { MvxTransactionsTable } from '@multiversx/sdk-dapp-ui/react';
|
|
646
|
+
|
|
647
|
+
const processedTransactions = await TransactionsTableController.processTransactions({
|
|
648
|
+
address,
|
|
649
|
+
egldLabel: network.egldLabel,
|
|
650
|
+
explorerAddress: network.explorerAddress,
|
|
651
|
+
transactions
|
|
652
|
+
});
|
|
653
|
+
|
|
654
|
+
// and use like this:
|
|
655
|
+
<MvxTransactionsTable transactions={processedTransaction} />;
|
|
656
|
+
|
|
657
|
+
```
|
|
658
|
+
|
|
659
|
+
- `MvxFormatAmount` - used to format the amount of the user's balance
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
```tsx
|
|
663
|
+
import { MvxFormatAmount } from '@multiversx/sdk-dapp-ui/react';
|
|
664
|
+
import { MvxFormatAmountPropsType } from '@multiversx/sdk-dapp-ui/types';
|
|
665
|
+
export { DECIMALS, DIGITS } from '@multiversx/sdk-dapp-utils/out/constants';
|
|
666
|
+
import { FormatAmountController } from '@multiversx/sdk-dapp/out/controllers/FormatAmountController';
|
|
667
|
+
export { useGetNetworkConfig } from '@multiversx/sdk-dapp/out/react/network/useGetNetworkConfig';
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
interface IFormatAmountProps
|
|
671
|
+
extends Partial<MvxFormatAmountPropsType> {
|
|
672
|
+
value: string;
|
|
673
|
+
className?: string;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
export const FormatAmount = (props: IFormatAmountProps) => {
|
|
677
|
+
const {
|
|
678
|
+
network: { egldLabel }
|
|
679
|
+
} = useGetNetworkConfig();
|
|
680
|
+
|
|
681
|
+
const { isValid, valueDecimal, valueInteger, label } =
|
|
682
|
+
FormatAmountController.getData({
|
|
683
|
+
digits: DIGITS,
|
|
684
|
+
decimals: DECIMALS,
|
|
685
|
+
egldLabel,
|
|
686
|
+
...props,
|
|
687
|
+
input: props.value
|
|
688
|
+
});
|
|
689
|
+
|
|
690
|
+
return (
|
|
691
|
+
<MvxFormatAmount
|
|
692
|
+
class={props.className}
|
|
693
|
+
dataTestId={props['data-testid']}
|
|
694
|
+
isValid={isValid}
|
|
695
|
+
label={label}
|
|
696
|
+
showLabel={props.showLabel}
|
|
697
|
+
valueDecimal={valueDecimal}
|
|
698
|
+
valueInteger={valueInteger}
|
|
699
|
+
/>
|
|
700
|
+
);
|
|
701
|
+
};
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
```
|
|
471
706
|
|
|
472
|
-
#### Public components
|
|
473
707
|
|
|
474
|
-
####
|
|
708
|
+
#### 5.2 Internal components (advanced usage)
|
|
475
709
|
|
|
476
|
-
The way
|
|
710
|
+
The way internal components are controlled is through a [pub-sub pattern](https://en.wikipedia.org/wiki/Publish%E2%80%93subscribe_pattern) called EventBus. Each webcomponent has a method of exposing its EventBus, thus allowing `sdk-dapp` to get a reference to it and use it for communication.
|
|
477
711
|
|
|
478
712
|
```mermaid
|
|
479
713
|
flowchart LR
|
|
@@ -482,13 +716,13 @@ flowchart LR
|
|
|
482
716
|
|
|
483
717
|
```typescript
|
|
484
718
|
const modalElement = await createUIElement<LedgerConnectModal>(
|
|
485
|
-
'ledger-connect-panel'
|
|
719
|
+
'mvx-ledger-connect-panel'
|
|
486
720
|
);
|
|
487
721
|
const eventBus = await modalElement.getEventBus();
|
|
488
722
|
eventBus.publish('TRANSACTION_TOAST_DATA_UPDATE', someData);
|
|
489
723
|
```
|
|
490
724
|
|
|
491
|
-
If you want to override private components and create your own, you can implement a similar strategy
|
|
725
|
+
If you want to override private components and create your own, you can implement a similar strategy by respecting each webcomponent's API (see an interface example [here](https://github.com/multiversx/mx-sdk-dapp/blob/main/src/providers/strategies/LedgerProviderStrategy/types/ledger.types.ts)).
|
|
492
726
|
|
|
493
727
|
## Debugging your dApp
|
|
494
728
|
|