@multiversx/sdk-dapp 5.0.0-alpha.8 → 5.0.0
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 +80 -39
- package/out/__chunks__/{chunk-QFWMIF3L.mjs → chunk-254WMLVS.mjs} +2 -2
- package/out/__chunks__/{chunk-IXJOO5U4.mjs → chunk-266T724O.mjs} +2 -2
- package/out/__chunks__/{chunk-2KAOFKX4.mjs → chunk-2EFXW7IG.mjs} +2 -2
- package/out/__chunks__/{chunk-2KAOFKX4.mjs.map → chunk-2EFXW7IG.mjs.map} +1 -1
- package/out/__chunks__/{chunk-Y574J2OK.mjs → chunk-2S5FRZJR.mjs} +2 -2
- package/out/__chunks__/chunk-2S5FRZJR.mjs.map +7 -0
- package/out/__chunks__/chunk-2SIHYJET.mjs +2 -0
- package/out/__chunks__/chunk-2SIHYJET.mjs.map +7 -0
- package/out/__chunks__/{chunk-675ZW4IF.mjs → chunk-2SOS3KAT.mjs} +2 -2
- package/out/__chunks__/{chunk-QYYNCJPD.mjs → chunk-3MWXXTQQ.mjs} +2 -2
- package/out/__chunks__/chunk-3NFKZZ7W.mjs +2 -0
- package/out/__chunks__/{chunk-KY7KOSJJ.mjs.map → chunk-3NFKZZ7W.mjs.map} +3 -3
- package/out/__chunks__/chunk-3ZEUVYQF.mjs +2 -0
- package/out/__chunks__/chunk-3ZEUVYQF.mjs.map +7 -0
- package/out/__chunks__/{chunk-OTQRFI3T.mjs → chunk-42LFLNPA.mjs} +2 -2
- package/out/__chunks__/chunk-4AKPP7B3.mjs +2 -0
- package/out/__chunks__/{chunk-4YETXBJD.mjs → chunk-4QDHGYT4.mjs} +2 -2
- package/out/__chunks__/{chunk-4YETXBJD.mjs.map → chunk-4QDHGYT4.mjs.map} +2 -2
- package/out/__chunks__/{chunk-RVW2ZWCR.mjs → chunk-4TZC3NF3.mjs} +2 -2
- package/out/__chunks__/{chunk-MHCIV2K5.mjs → chunk-4XP7BVJD.mjs} +2 -2
- package/out/__chunks__/chunk-4YU2DWHA.mjs +2 -0
- package/out/__chunks__/chunk-4YU2DWHA.mjs.map +7 -0
- package/out/__chunks__/chunk-4YZQBDUE.mjs +2 -0
- package/out/__chunks__/chunk-4ZZJX7E7.mjs +2 -0
- package/out/__chunks__/chunk-5LB2KNTP.mjs +2 -0
- package/out/__chunks__/chunk-5LB2KNTP.mjs.map +7 -0
- package/out/__chunks__/chunk-5OM6KD5S.mjs +2 -0
- package/out/__chunks__/chunk-6D2RBTVV.mjs +2 -0
- package/out/__chunks__/chunk-6D2RBTVV.mjs.map +7 -0
- package/out/__chunks__/chunk-6G7ATMU7.mjs +2 -0
- package/out/__chunks__/chunk-6GNNYFMN.mjs +2 -0
- package/out/__chunks__/chunk-6JM4DPOH.mjs +2 -0
- package/out/__chunks__/{chunk-IEJTMYFW.mjs.map → chunk-6JM4DPOH.mjs.map} +3 -3
- package/out/__chunks__/{chunk-K3WBBSXJ.mjs → chunk-6P7EXGAB.mjs} +2 -2
- package/out/__chunks__/{chunk-JENO4O6P.mjs → chunk-6RGWVDNQ.mjs} +2 -2
- package/out/__chunks__/chunk-6UZHM5LW.mjs +2 -0
- package/out/__chunks__/chunk-6UZHM5LW.mjs.map +7 -0
- package/out/__chunks__/chunk-6ZL2QC74.mjs +2 -0
- package/out/__chunks__/chunk-745QCLQC.mjs +2 -0
- package/out/__chunks__/chunk-745QCLQC.mjs.map +7 -0
- package/out/__chunks__/{chunk-TYYA6E7F.mjs → chunk-7BP53CXF.mjs} +2 -2
- package/out/__chunks__/{chunk-J4MZNYDR.mjs → chunk-ABHYXD3U.mjs} +2 -2
- package/out/__chunks__/{chunk-GZAY7BOI.mjs → chunk-AF2QSDSV.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-TWWYWBJH.mjs → chunk-B7ZKW5ML.mjs} +2 -2
- package/out/__chunks__/{chunk-FMUDQBZE.mjs → chunk-BETSOJFK.mjs} +2 -2
- package/out/__chunks__/chunk-BG6QTPZ4.mjs +2 -0
- package/out/__chunks__/chunk-BG6QTPZ4.mjs.map +7 -0
- package/out/__chunks__/{chunk-C4CJOZ4L.mjs → chunk-BHAZ2W52.mjs} +2 -2
- package/out/__chunks__/{chunk-TO3DGAQU.mjs → chunk-BOAJJ4FX.mjs} +2 -2
- package/out/__chunks__/chunk-BOAJJ4FX.mjs.map +7 -0
- package/out/__chunks__/{chunk-PRULMJH7.mjs → chunk-BQ2I655N.mjs} +2 -2
- package/out/__chunks__/{chunk-KMFYDHOY.mjs → chunk-BRBIUWAW.mjs} +2 -2
- package/out/__chunks__/{chunk-53BZNNVL.mjs → chunk-BVLXVOIC.mjs} +2 -2
- package/out/__chunks__/{chunk-53BZNNVL.mjs.map → chunk-BVLXVOIC.mjs.map} +2 -2
- package/out/__chunks__/chunk-CAA4VJRH.mjs +2 -0
- package/out/__chunks__/{chunk-QD3CFFVT.mjs.map → chunk-CAA4VJRH.mjs.map} +3 -3
- package/out/__chunks__/chunk-CBF72LQF.mjs +2 -0
- package/out/__chunks__/chunk-CIY7IH2N.mjs +2 -0
- package/out/__chunks__/{chunk-GVKHWWIS.mjs → chunk-CJQAA4EP.mjs} +2 -2
- package/out/__chunks__/chunk-CKTFPRJS.mjs +2 -0
- package/out/__chunks__/chunk-CKTFPRJS.mjs.map +7 -0
- package/out/__chunks__/chunk-CVPP4HQE.mjs +2 -0
- package/out/__chunks__/chunk-CVPP4HQE.mjs.map +7 -0
- package/out/__chunks__/chunk-CYCS3K6Q.mjs +2 -0
- package/out/__chunks__/{chunk-SUN3MVLZ.mjs.map → chunk-CYCS3K6Q.mjs.map} +2 -2
- package/out/__chunks__/chunk-D5SD7UPB.mjs +2 -0
- package/out/__chunks__/chunk-D5SD7UPB.mjs.map +7 -0
- package/out/__chunks__/chunk-DGYPNF4O.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-OF6HBWFR.mjs → chunk-DV3XIKOX.mjs} +2 -2
- package/out/__chunks__/chunk-E7BYYSVM.mjs +2 -0
- package/out/__chunks__/{chunk-4I2FE6NE.mjs → chunk-EQEYL6AE.mjs} +2 -2
- package/out/__chunks__/{chunk-OOPHCYRC.mjs → chunk-FAOCLLIW.mjs} +2 -2
- package/out/__chunks__/chunk-FEFZKA2B.mjs +2 -0
- package/out/__chunks__/{chunk-2AAKENSP.mjs → chunk-FIVH6RKU.mjs} +2 -2
- package/out/__chunks__/chunk-FMQYLMTU.mjs +2 -0
- package/out/__chunks__/chunk-FMQYLMTU.mjs.map +7 -0
- package/out/__chunks__/{chunk-RIQNG4I7.mjs → chunk-FSCOQWQN.mjs} +2 -2
- package/out/__chunks__/{chunk-3JNON2SM.mjs → chunk-FZFKEGPM.mjs} +2 -2
- package/out/__chunks__/{chunk-55RBZAD6.mjs → chunk-GFTTAANM.mjs} +2 -2
- package/out/__chunks__/{chunk-K7WAPWQA.mjs → chunk-GT2HLNE7.mjs} +2 -2
- package/out/__chunks__/{chunk-CUSKOIRI.mjs → chunk-H7BJSM6C.mjs} +2 -2
- package/out/__chunks__/{chunk-HQSB4ISG.mjs → chunk-HIUWEH2W.mjs} +2 -2
- package/out/__chunks__/{chunk-5L474T4X.mjs → chunk-HUITKXBO.mjs} +2 -2
- package/out/__chunks__/{chunk-G7XIDD62.mjs → chunk-HXXZKQRJ.mjs} +2 -2
- package/out/__chunks__/chunk-I37JLMZH.mjs +2 -0
- package/out/__chunks__/chunk-I6BXGQLQ.mjs +2 -0
- package/out/__chunks__/chunk-I6BXGQLQ.mjs.map +7 -0
- package/out/__chunks__/chunk-IBSC2B7Q.mjs +2 -0
- package/out/__chunks__/{chunk-YWBC3WTI.mjs → chunk-ID7WYMJZ.mjs} +2 -2
- package/out/__chunks__/chunk-ID7WYMJZ.mjs.map +7 -0
- package/out/__chunks__/chunk-IMPOALRX.mjs +2 -0
- package/out/__chunks__/{chunk-RHN3VD44.mjs.map → chunk-IMPOALRX.mjs.map} +2 -2
- package/out/__chunks__/{chunk-KUQH2ZBR.mjs → chunk-INWUHEQN.mjs} +2 -2
- package/out/__chunks__/{chunk-VQIWENYE.mjs → chunk-ISPOZQQO.mjs} +2 -2
- package/out/__chunks__/{chunk-WVB4VPRI.mjs → chunk-IXUYZYD2.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-JR23TXKP.mjs +2 -0
- package/out/__chunks__/chunk-JR23TXKP.mjs.map +7 -0
- package/out/__chunks__/{chunk-YMUUG42I.mjs → chunk-JZ7434LN.mjs} +2 -2
- package/out/__chunks__/{chunk-QDIXBYIO.mjs → chunk-KN7QMGWV.mjs} +2 -2
- package/out/__chunks__/{chunk-QQNYMMUM.mjs → chunk-KSKOSHYV.mjs} +2 -2
- package/out/__chunks__/{chunk-J7MZZ2X2.mjs → chunk-KSMSBTTQ.mjs} +2 -2
- package/out/__chunks__/chunk-L4QPPHVR.mjs +2 -0
- package/out/__chunks__/chunk-L4QPPHVR.mjs.map +7 -0
- package/out/__chunks__/{chunk-LNABNVAO.mjs → chunk-LIPGE2RA.mjs} +2 -2
- package/out/__chunks__/{chunk-4AOTLDWS.mjs → chunk-LUDF7ZUR.mjs} +2 -2
- package/out/__chunks__/{chunk-IYS5W63R.mjs → chunk-MRV6OG7P.mjs} +2 -2
- package/out/__chunks__/chunk-N2RYRHHL.mjs +2 -0
- package/out/__chunks__/{chunk-3Z3DQFG6.mjs → chunk-NJPTQNCT.mjs} +2 -2
- package/out/__chunks__/chunk-NPZ5PO2W.mjs +2 -0
- package/out/__chunks__/chunk-NQ6SJRHZ.mjs +2 -0
- package/out/__chunks__/chunk-O2DO3WJJ.mjs +2 -0
- package/out/__chunks__/chunk-O2DO3WJJ.mjs.map +7 -0
- package/out/__chunks__/{chunk-73EXR25L.mjs → chunk-O3V4TGXK.mjs} +2 -2
- package/out/__chunks__/{chunk-ZMEIT65B.mjs → chunk-OD4ANAAQ.mjs} +2 -2
- package/out/__chunks__/chunk-OZ4ZZI3H.mjs +2 -0
- package/out/__chunks__/{chunk-IEJARRBP.mjs.map → chunk-OZ4ZZI3H.mjs.map} +2 -2
- package/out/__chunks__/chunk-P32DZ2CO.mjs +2 -0
- package/out/__chunks__/{chunk-45WVS4H5.mjs.map → chunk-P32DZ2CO.mjs.map} +2 -2
- package/out/__chunks__/{chunk-BEUXUWCR.mjs → chunk-P3BXXGQA.mjs} +2 -2
- package/out/__chunks__/chunk-PHNC5JMP.mjs +2 -0
- package/out/__chunks__/chunk-PHNC5JMP.mjs.map +7 -0
- package/out/__chunks__/{chunk-5AR7YU5K.mjs → chunk-PJDJEPY2.mjs} +2 -2
- package/out/__chunks__/chunk-QJGFIK7H.mjs +2 -0
- package/out/__chunks__/chunk-QJGFIK7H.mjs.map +7 -0
- package/out/__chunks__/{chunk-LTF535HP.mjs → chunk-QJSB5NX4.mjs} +2 -2
- package/out/__chunks__/{chunk-VIJUIJ4V.mjs → chunk-QSBLXZFC.mjs} +2 -2
- package/out/__chunks__/{chunk-U52ITGAN.mjs → chunk-QSYQIJEO.mjs} +2 -2
- package/out/__chunks__/{chunk-YEXBSKXL.mjs → chunk-QWV25ZSJ.mjs} +2 -2
- package/out/__chunks__/chunk-RBUHL65H.mjs +2 -0
- package/out/__chunks__/chunk-RBUHL65H.mjs.map +7 -0
- package/out/__chunks__/chunk-RFKBUN7S.mjs +2 -0
- package/out/__chunks__/chunk-RFKBUN7S.mjs.map +7 -0
- package/out/__chunks__/{chunk-ZHGCNNB5.mjs → chunk-RM4VHHXR.mjs} +2 -2
- package/out/__chunks__/{chunk-XW2GCCBZ.mjs → chunk-RRKNYQ6D.mjs} +2 -2
- package/out/__chunks__/chunk-RSUHZ7IH.mjs +2 -0
- package/out/__chunks__/chunk-RVO7H26H.mjs +2 -0
- package/out/__chunks__/chunk-RVO7H26H.mjs.map +7 -0
- package/out/__chunks__/{chunk-NHXPNROG.mjs → chunk-S2FQWSUO.mjs} +1 -1
- package/out/__chunks__/chunk-S2FQWSUO.mjs.map +7 -0
- package/out/__chunks__/{chunk-LKWCLZTU.mjs → chunk-S4WKQEYF.mjs} +2 -2
- package/out/__chunks__/chunk-SLH6IQJJ.mjs +2 -0
- package/out/__chunks__/chunk-SLH6IQJJ.mjs.map +7 -0
- package/out/__chunks__/{chunk-I7ODJJY3.mjs → chunk-TI73UXGG.mjs} +2 -2
- package/out/__chunks__/chunk-TNXSVX5O.mjs +2 -0
- package/out/__chunks__/chunk-TNXSVX5O.mjs.map +7 -0
- package/out/__chunks__/chunk-TQA3JDNV.mjs +2 -0
- package/out/__chunks__/chunk-TQA3JDNV.mjs.map +7 -0
- package/out/__chunks__/{chunk-RI7FD4HM.mjs → chunk-TSUMQ3HX.mjs} +2 -2
- package/out/__chunks__/{chunk-RI7FD4HM.mjs.map → chunk-TSUMQ3HX.mjs.map} +1 -1
- package/out/__chunks__/{chunk-3IMDPLG5.mjs → chunk-U34BNBOX.mjs} +2 -2
- package/out/__chunks__/{chunk-SPSO2A53.mjs → chunk-U64LDJTG.mjs} +2 -2
- package/out/__chunks__/chunk-UAW7SD6P.mjs +2 -0
- package/out/__chunks__/{chunk-HR6GP43Q.mjs → chunk-V2C7APME.mjs} +2 -2
- package/out/__chunks__/{chunk-PPA7AFVD.mjs → chunk-VFAKQ7NM.mjs} +2 -2
- package/out/__chunks__/{chunk-QQ4OPT5A.mjs → chunk-VJ2DAL5M.mjs} +2 -2
- package/out/__chunks__/chunk-VQAKIVIO.mjs +2 -0
- package/out/__chunks__/chunk-VQAKIVIO.mjs.map +7 -0
- package/out/__chunks__/{chunk-SKEL25G3.mjs → chunk-VXLJWKLG.mjs} +2 -2
- package/out/__chunks__/chunk-WHEXX3BD.mjs +1 -0
- package/out/__chunks__/chunk-WPXNKIUP.mjs +2 -0
- package/out/__chunks__/chunk-WPXNKIUP.mjs.map +7 -0
- package/out/__chunks__/{chunk-6L56KRO6.mjs → chunk-XPYJSDNF.mjs} +2 -2
- package/out/__chunks__/chunk-YA5U6YEL.mjs +2 -0
- package/out/__chunks__/{chunk-ZJOTHYI2.mjs → chunk-YB7AHPBR.mjs} +2 -2
- package/out/__chunks__/{chunk-AJEWAECH.mjs → chunk-YKRSCVRE.mjs} +2 -2
- package/out/__chunks__/chunk-YO3ATAA6.mjs +2 -0
- package/out/__chunks__/chunk-YO3ATAA6.mjs.map +7 -0
- package/out/__chunks__/{chunk-CTMAC553.mjs → chunk-YTFYVPZO.mjs} +2 -2
- package/out/__chunks__/chunk-YUITECZ5.mjs +1 -0
- package/out/__chunks__/chunk-Z4OHB36I.mjs +2 -0
- package/out/__chunks__/chunk-ZWVYAOKB.mjs +2 -0
- package/out/__chunks__/chunk-ZWVYAOKB.mjs.map +7 -0
- package/out/__chunks__/{chunk-YAO67FPP.mjs → chunk-ZXIBFH6X.mjs} +2 -2
- package/out/__mocks__/accountConfig.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/getTransactionsByHashes.mjs +1 -1
- package/out/constants/browser.constants.mjs +1 -1
- package/out/constants/index.mjs +1 -1
- package/out/constants/providerFactory.constants.mjs +1 -1
- package/out/constants/storage.constants.mjs +1 -1
- package/out/constants/transactions.constants.d.ts +1 -0
- package/out/constants/transactions.constants.js +2 -1
- package/out/constants/transactions.constants.js.map +1 -1
- package/out/constants/transactions.constants.mjs +1 -1
- package/out/constants/window.constants.d.ts +1 -0
- package/out/constants/window.constants.js +2 -1
- package/out/constants/window.constants.js.map +1 -1
- package/out/constants/window.constants.mjs +1 -1
- package/out/controllers/FormatAmountController/FormatAmountController.mjs +1 -1
- package/out/controllers/FormatAmountController/index.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
- package/out/controllers/TransactionsTableController/index.mjs +1 -1
- package/out/controllers/index.mjs +1 -1
- package/out/index.mjs +1 -1
- package/out/lib/sdkDappUtils.d.ts +1 -1
- package/out/lib/sdkDappUtils.mjs +1 -1
- package/out/lib/sdkWebWalletCrossWindowProvider.d.ts +2 -0
- package/out/lib/sdkWebWalletCrossWindowProvider.js +4 -1
- package/out/lib/sdkWebWalletCrossWindowProvider.js.map +1 -1
- package/out/lib/sdkWebWalletCrossWindowProvider.mjs +1 -1
- package/out/managers/LogoutManager/LogoutManager.d.ts +15 -0
- package/out/managers/LogoutManager/LogoutManager.js +137 -0
- package/out/managers/LogoutManager/LogoutManager.js.map +1 -0
- package/out/managers/LogoutManager/LogoutManager.mjs +2 -0
- package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.d.ts +1 -0
- package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.js +33 -0
- package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.js.map +1 -0
- package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.mjs +2 -0
- package/out/managers/LogoutManager/helpers/tests/getHumanReadableTokenExpirationTime.test.d.ts +1 -0
- package/out/managers/LogoutManager/helpers/tests/getHumanReadableTokenExpirationTime.test.js +48 -0
- package/out/managers/LogoutManager/helpers/tests/getHumanReadableTokenExpirationTime.test.js.map +1 -0
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.d.ts +2 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.js +13 -3
- 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 +17 -5
- package/out/managers/TransactionManager/TransactionManager.js +18 -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/{providers/strategies/CrossWindowProviderStrategy/types/crossWindow.types.js → managers/TransactionManager/TransactionManager.types.js} +1 -1
- 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/sessionCallbacks.d.ts +7 -0
- package/out/managers/TransactionManager/helpers/sessionCallbacks.js +14 -0
- package/out/managers/TransactionManager/helpers/sessionCallbacks.js.map +1 -0
- package/out/managers/TransactionManager/helpers/sessionCallbacks.mjs +2 -0
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.js +1 -3
- 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 +12 -5
- package/out/managers/UnlockPanelManager/UnlockPanelManager.types.js.map +1 -1
- 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.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.d.ts +0 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.js +7 -14
- 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.d.ts +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.d.ts +6 -4
- package/out/managers/internal/ToastManager/ToastManager.js +27 -19
- package/out/managers/internal/ToastManager/ToastManager.js.map +1 -1
- package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.js +1 -1
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.js.map +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/ToastManager/types/index.mjs +1 -1
- package/out/managers/internal/ToastManager/types/toast.types.d.ts +3 -1
- package/out/managers/internal/ToastManager/types/toast.types.js +2 -0
- package/out/managers/internal/ToastManager/types/toast.types.js.map +1 -1
- package/out/managers/internal/ToastManager/types/toast.types.mjs +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.d.ts +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.js +2 -2
- package/out/managers/internal/UIBaseManager/UIBaseManager.js.map +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.js +2 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.js.map +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/index.mjs +1 -1
- package/out/methods/account/getAccount.mjs +1 -1
- package/out/methods/account/getAccountInfo.mjs +1 -1
- package/out/methods/account/getAddress.mjs +1 -1
- package/out/methods/account/getIsLoggedIn.mjs +1 -1
- package/out/methods/account/getLatestNonce.mjs +1 -1
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
- package/out/methods/initApp/initApp.js +21 -23
- 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 +34 -5
- package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
- package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
- package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
- package/out/methods/network/getEgldLabel.mjs +1 -1
- package/out/methods/network/getExplorerAddress.mjs +1 -1
- package/out/methods/network/getNetworkConfig.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.js +27 -10
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.js.map +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.d.ts +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.js +7 -2
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.js.map +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.d.ts +7 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.js +24 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.js.map +1 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.mjs +2 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.mjs.map +7 -0
- 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.mjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
- 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.mjs +1 -1
- package/out/providers/DappProvider/DappProvider.d.ts +1 -2
- package/out/providers/DappProvider/DappProvider.js +16 -6
- 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.mjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.js +1 -7
- 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/signMessageWithProvider.js +0 -5
- 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/signTransactions/signTransactionsWithProvider.mjs +1 -1
- package/out/providers/DappProvider/index.mjs +1 -1
- package/out/providers/ProviderFactory.js +10 -8
- 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.js +2 -1
- package/out/providers/helpers/clearInitiatedLogins.js.map +1 -1
- package/out/providers/helpers/clearInitiatedLogins.mjs +1 -1
- package/out/providers/helpers/emptyProvider.mjs +1 -1
- package/out/providers/helpers/restoreProvider.js +14 -1
- package/out/providers/helpers/restoreProvider.js.map +1 -1
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/index.mjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.d.ts +4 -5
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.js.map +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.d.ts +1 -2
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.js +0 -15
- 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.d.ts +0 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.js +0 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.js.map +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.d.ts +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.js.map +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.d.ts +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.js.map +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.d.ts +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.js.map +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.d.ts +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.js +13 -2
- 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/WalletConnectProviderStrategy/types/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.d.ts +1 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.d.ts +20 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.js +147 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.js.map +1 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +2 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs.map +7 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.d.ts +1 -0
- package/out/providers/strategies/{CrossWindowProviderStrategy/types → WebviewProviderStrategy/WebviewClient}/index.js +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.js.map +1 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +2 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs.map +7 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.d.ts +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.js +11 -2
- 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/WebviewProviderStrategy/tests/webview.test.js +20 -17
- package/out/providers/strategies/WebviewProviderStrategy/tests/webview.test.js.map +1 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
- package/out/providers/strategies/helpers/index.mjs +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.js +1 -1
- 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.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/getMultiEsdtTransferData/getMultiEsdtTransferData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getCrossWindowProvider.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.js +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.js.map +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.js +27 -20
- 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 +1 -2
- package/out/providers/types/providerFactory.types.js.map +1 -1
- package/out/providers/types/providerFactory.types.mjs +1 -1
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/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.d.ts +1 -0
- package/out/react/transactions/useGetFailedTransactionsSessions.js +11 -0
- package/out/react/transactions/useGetFailedTransactionsSessions.js.map +1 -0
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs +2 -0
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs.map +7 -0
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- 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.mjs +1 -1
- package/out/services/index.mjs +1 -1
- package/out/services/nativeAuth/index.mjs +1 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.d.ts +2 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.js +12 -5
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.js.map +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/index.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.js +6 -8
- package/out/services/nativeAuth/nativeAuth.js.map +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.d.ts +0 -2
- package/out/store/actions/config/configActions.js +1 -5
- package/out/store/actions/config/configActions.js.map +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.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.mjs +1 -1
- package/out/store/actions/toasts/index.mjs +1 -1
- package/out/store/actions/toasts/toastsActions.d.ts +1 -1
- package/out/store/actions/toasts/toastsActions.js +3 -1
- package/out/store/actions/toasts/toastsActions.js.map +1 -1
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionsActions.d.ts +6 -4
- package/out/store/actions/transactions/transactionsActions.js +16 -7
- 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/configSelectors.d.ts +0 -1
- package/out/store/selectors/configSelectors.js +1 -5
- package/out/store/selectors/configSelectors.js.map +1 -1
- package/out/store/selectors/configSelectors.mjs +1 -1
- package/out/store/selectors/index.mjs +1 -1
- 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/config/config.types.d.ts +0 -2
- package/out/store/slices/config/configSlice.js +0 -1
- package/out/store/slices/config/configSlice.js.map +1 -1
- package/out/store/slices/config/configSlice.mjs +1 -1
- package/out/store/slices/config/index.mjs +1 -1
- package/out/store/slices/index.mjs +1 -1
- package/out/store/storage/index.mjs +1 -1
- package/out/store/storage/storageCallback.mjs +1 -1
- package/out/store/store.mjs +1 -1
- package/out/types/index.d.ts +1 -0
- package/out/types/index.js +1 -0
- package/out/types/index.js.map +1 -1
- package/out/types/index.mjs +1 -1
- package/out/types/theme.types.d.ts +4 -0
- package/out/types/theme.types.js +9 -0
- package/out/types/theme.types.js.map +1 -0
- package/out/types/theme.types.mjs +2 -0
- package/out/types/theme.types.mjs.map +7 -0
- package/out/types/transactions.types.d.ts +4 -0
- package/out/types/transactions.types.mjs.map +1 -1
- package/out/utils/ComponentFactory.d.ts +14 -0
- package/out/utils/{createUIElement.js → ComponentFactory.js} +14 -4
- package/out/utils/ComponentFactory.js.map +1 -0
- package/out/utils/ComponentFactory.mjs +2 -0
- package/out/utils/ComponentFactory.mjs.map +7 -0
- package/out/utils/account/index.d.ts +1 -0
- package/out/utils/account/index.js +1 -0
- package/out/utils/account/index.js.map +1 -1
- package/out/utils/account/index.mjs +1 -1
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/{core/providers/DappProvider/helpers/login/helpers → utils/account}/refreshNativeAuthTokenLogin.d.ts +2 -2
- package/out/{core/providers/DappProvider/helpers/login/helpers → utils/account}/refreshNativeAuthTokenLogin.js +6 -9
- package/out/utils/account/refreshNativeAuthTokenLogin.js.map +1 -0
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs +2 -0
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs.map +7 -0
- package/out/utils/decoders/index.mjs +1 -1
- package/out/utils/index.d.ts +1 -0
- package/out/utils/index.js +1 -0
- package/out/utils/index.js.map +1 -1
- package/out/utils/index.mjs +1 -1
- package/out/utils/operations/trimAmountDecimals.mjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/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/visual/index.d.ts +1 -0
- package/out/utils/visual/index.js +18 -0
- package/out/utils/visual/index.js.map +1 -0
- package/out/utils/visual/index.mjs +2 -0
- package/out/utils/visual/index.mjs.map +7 -0
- package/out/utils/visual/switchTheme.d.ts +2 -0
- package/out/utils/visual/switchTheme.js +15 -0
- package/out/utils/visual/switchTheme.js.map +1 -0
- package/out/utils/visual/switchTheme.mjs +2 -0
- package/out/utils/visual/switchTheme.mjs.map +7 -0
- package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.mjs +1 -1
- package/out/utils/window/getIsInIframe.mjs +1 -1
- package/out/utils/window/getWindowLocation.js +7 -1
- package/out/utils/window/getWindowLocation.js.map +1 -1
- package/out/utils/window/getWindowLocation.mjs +1 -1
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/out/utils/window/index.mjs +1 -1
- package/package.json +16 -15
- package/out/__chunks__/chunk-2G6DWPQU.mjs +0 -2
- package/out/__chunks__/chunk-2G6DWPQU.mjs.map +0 -7
- package/out/__chunks__/chunk-2GSNHNKW.mjs +0 -1
- package/out/__chunks__/chunk-2WB5WD5K.mjs +0 -2
- package/out/__chunks__/chunk-2WB5WD5K.mjs.map +0 -7
- package/out/__chunks__/chunk-35YS2DV5.mjs +0 -2
- package/out/__chunks__/chunk-35YS2DV5.mjs.map +0 -7
- package/out/__chunks__/chunk-3IXTYHAU.mjs +0 -2
- package/out/__chunks__/chunk-3IXTYHAU.mjs.map +0 -7
- package/out/__chunks__/chunk-45WVS4H5.mjs +0 -2
- package/out/__chunks__/chunk-6BGPH7MV.mjs +0 -2
- package/out/__chunks__/chunk-6BGPH7MV.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-AC2L3PV3.mjs +0 -2
- package/out/__chunks__/chunk-AJJVMOJF.mjs +0 -2
- package/out/__chunks__/chunk-AJJVMOJF.mjs.map +0 -7
- package/out/__chunks__/chunk-BVKOA6WH.mjs +0 -2
- package/out/__chunks__/chunk-BVKOA6WH.mjs.map +0 -7
- package/out/__chunks__/chunk-BXUBAIBU.mjs +0 -2
- package/out/__chunks__/chunk-CO3V5DOG.mjs +0 -1
- package/out/__chunks__/chunk-CT6RFJJM.mjs +0 -2
- package/out/__chunks__/chunk-DTI4TQ2I.mjs +0 -2
- package/out/__chunks__/chunk-EPMXW255.mjs +0 -2
- package/out/__chunks__/chunk-EVL6UUJJ.mjs +0 -2
- package/out/__chunks__/chunk-F3AMNJ5K.mjs +0 -2
- package/out/__chunks__/chunk-F3AMNJ5K.mjs.map +0 -7
- package/out/__chunks__/chunk-FFNSZC37.mjs +0 -2
- package/out/__chunks__/chunk-FFNSZC37.mjs.map +0 -7
- package/out/__chunks__/chunk-FLC6QSZB.mjs +0 -1
- package/out/__chunks__/chunk-IEJARRBP.mjs +0 -2
- package/out/__chunks__/chunk-IEJTMYFW.mjs +0 -2
- package/out/__chunks__/chunk-IJEPA3W2.mjs +0 -2
- package/out/__chunks__/chunk-IJEPA3W2.mjs.map +0 -7
- package/out/__chunks__/chunk-IMGZJVC6.mjs +0 -2
- package/out/__chunks__/chunk-IMGZJVC6.mjs.map +0 -7
- 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-KY7KOSJJ.mjs +0 -2
- package/out/__chunks__/chunk-LETBBKOK.mjs +0 -2
- package/out/__chunks__/chunk-LRHRFWQ4.mjs +0 -2
- package/out/__chunks__/chunk-LRHRFWQ4.mjs.map +0 -7
- package/out/__chunks__/chunk-M6IVW6AN.mjs +0 -2
- package/out/__chunks__/chunk-M7R5JSEH.mjs +0 -2
- package/out/__chunks__/chunk-MAT2WHLY.mjs +0 -2
- package/out/__chunks__/chunk-NHXPNROG.mjs.map +0 -7
- package/out/__chunks__/chunk-OH6SHSQZ.mjs +0 -2
- package/out/__chunks__/chunk-OLYQNOEP.mjs +0 -2
- package/out/__chunks__/chunk-P5YASUQH.mjs +0 -2
- package/out/__chunks__/chunk-QD3CFFVT.mjs +0 -2
- package/out/__chunks__/chunk-RHN3VD44.mjs +0 -2
- package/out/__chunks__/chunk-RIXZPR7R.mjs +0 -2
- package/out/__chunks__/chunk-SUN3MVLZ.mjs +0 -2
- package/out/__chunks__/chunk-TO3DGAQU.mjs.map +0 -7
- package/out/__chunks__/chunk-UQXXWVTL.mjs +0 -2
- package/out/__chunks__/chunk-UQXXWVTL.mjs.map +0 -7
- package/out/__chunks__/chunk-UWNXZP4Z.mjs +0 -2
- package/out/__chunks__/chunk-V7QVBIYB.mjs +0 -2
- package/out/__chunks__/chunk-V7QVBIYB.mjs.map +0 -7
- package/out/__chunks__/chunk-V7ZVI2WS.mjs +0 -2
- package/out/__chunks__/chunk-VK47SZJ2.mjs +0 -2
- package/out/__chunks__/chunk-VPZ3QEMD.mjs +0 -2
- package/out/__chunks__/chunk-W5W6YGA5.mjs +0 -2
- package/out/__chunks__/chunk-WGH5AERA.mjs +0 -2
- package/out/__chunks__/chunk-X5OSPJKQ.mjs +0 -2
- package/out/__chunks__/chunk-X5OSPJKQ.mjs.map +0 -7
- package/out/__chunks__/chunk-XPX7PTGI.mjs +0 -2
- package/out/__chunks__/chunk-XPX7PTGI.mjs.map +0 -7
- package/out/__chunks__/chunk-Y574J2OK.mjs.map +0 -7
- package/out/__chunks__/chunk-Y62KWXTT.mjs +0 -2
- package/out/__chunks__/chunk-YB2E5WOO.mjs +0 -2
- package/out/__chunks__/chunk-YB2E5WOO.mjs.map +0 -7
- package/out/__chunks__/chunk-YMME2BFO.mjs +0 -2
- package/out/__chunks__/chunk-YMME2BFO.mjs.map +0 -7
- package/out/__chunks__/chunk-YRHMGKLM.mjs +0 -2
- package/out/__chunks__/chunk-YRHMGKLM.mjs.map +0 -7
- package/out/__chunks__/chunk-YWBC3WTI.mjs.map +0 -7
- package/out/__chunks__/chunk-ZOGJGVPP.mjs +0 -2
- package/out/__chunks__/chunk-ZOGJGVPP.mjs.map +0 -7
- package/out/__chunks__/chunk-ZZOHAMTX.mjs +0 -2
- package/out/__chunks__/chunk-ZZOHAMTX.mjs.map +0 -7
- package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.js.map +0 -1
- package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.mjs +0 -2
- package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.mjs.map +0 -7
- package/out/providers/strategies/CrossWindowProviderStrategy/types/crossWindow.types.d.ts +0 -6
- package/out/providers/strategies/CrossWindowProviderStrategy/types/crossWindow.types.js.map +0 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/types/crossWindow.types.mjs +0 -2
- package/out/providers/strategies/CrossWindowProviderStrategy/types/index.d.ts +0 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/types/index.js.map +0 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/types/index.mjs +0 -2
- package/out/utils/createUIElement.d.ts +0 -9
- package/out/utils/createUIElement.js.map +0 -1
- package/out/utils/createUIElement.mjs +0 -2
- /package/out/__chunks__/{chunk-QFWMIF3L.mjs.map → chunk-254WMLVS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IXJOO5U4.mjs.map → chunk-266T724O.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-675ZW4IF.mjs.map → chunk-2SOS3KAT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QYYNCJPD.mjs.map → chunk-3MWXXTQQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OTQRFI3T.mjs.map → chunk-42LFLNPA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DTI4TQ2I.mjs.map → chunk-4AKPP7B3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RVW2ZWCR.mjs.map → chunk-4TZC3NF3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MHCIV2K5.mjs.map → chunk-4XP7BVJD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MAT2WHLY.mjs.map → chunk-4YZQBDUE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-W5W6YGA5.mjs.map → chunk-4ZZJX7E7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AC2L3PV3.mjs.map → chunk-5OM6KD5S.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OLYQNOEP.mjs.map → chunk-6G7ATMU7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Y62KWXTT.mjs.map → chunk-6GNNYFMN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-K3WBBSXJ.mjs.map → chunk-6P7EXGAB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JENO4O6P.mjs.map → chunk-6RGWVDNQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OH6SHSQZ.mjs.map → chunk-6ZL2QC74.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TYYA6E7F.mjs.map → chunk-7BP53CXF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-J4MZNYDR.mjs.map → chunk-ABHYXD3U.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GZAY7BOI.mjs.map → chunk-AF2QSDSV.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-TWWYWBJH.mjs.map → chunk-B7ZKW5ML.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FMUDQBZE.mjs.map → chunk-BETSOJFK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-C4CJOZ4L.mjs.map → chunk-BHAZ2W52.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PRULMJH7.mjs.map → chunk-BQ2I655N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KMFYDHOY.mjs.map → chunk-BRBIUWAW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WGH5AERA.mjs.map → chunk-CBF72LQF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-M7R5JSEH.mjs.map → chunk-CIY7IH2N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GVKHWWIS.mjs.map → chunk-CJQAA4EP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CT6RFJJM.mjs.map → chunk-DGYPNF4O.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-OF6HBWFR.mjs.map → chunk-DV3XIKOX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-P5YASUQH.mjs.map → chunk-E7BYYSVM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4I2FE6NE.mjs.map → chunk-EQEYL6AE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OOPHCYRC.mjs.map → chunk-FAOCLLIW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BXUBAIBU.mjs.map → chunk-FEFZKA2B.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2AAKENSP.mjs.map → chunk-FIVH6RKU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RIQNG4I7.mjs.map → chunk-FSCOQWQN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3JNON2SM.mjs.map → chunk-FZFKEGPM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-55RBZAD6.mjs.map → chunk-GFTTAANM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-K7WAPWQA.mjs.map → chunk-GT2HLNE7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CUSKOIRI.mjs.map → chunk-H7BJSM6C.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HQSB4ISG.mjs.map → chunk-HIUWEH2W.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5L474T4X.mjs.map → chunk-HUITKXBO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-G7XIDD62.mjs.map → chunk-HXXZKQRJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RIXZPR7R.mjs.map → chunk-I37JLMZH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VK47SZJ2.mjs.map → chunk-IBSC2B7Q.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KUQH2ZBR.mjs.map → chunk-INWUHEQN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VQIWENYE.mjs.map → chunk-ISPOZQQO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WVB4VPRI.mjs.map → chunk-IXUYZYD2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6ZDBHK76.mjs.map → chunk-JIJSBQEU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YMUUG42I.mjs.map → chunk-JZ7434LN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QDIXBYIO.mjs.map → chunk-KN7QMGWV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QQNYMMUM.mjs.map → chunk-KSKOSHYV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-J7MZZ2X2.mjs.map → chunk-KSMSBTTQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LNABNVAO.mjs.map → chunk-LIPGE2RA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4AOTLDWS.mjs.map → chunk-LUDF7ZUR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IYS5W63R.mjs.map → chunk-MRV6OG7P.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UWNXZP4Z.mjs.map → chunk-N2RYRHHL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3Z3DQFG6.mjs.map → chunk-NJPTQNCT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-M6IVW6AN.mjs.map → chunk-NPZ5PO2W.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EPMXW255.mjs.map → chunk-NQ6SJRHZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-73EXR25L.mjs.map → chunk-O3V4TGXK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZMEIT65B.mjs.map → chunk-OD4ANAAQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BEUXUWCR.mjs.map → chunk-P3BXXGQA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5AR7YU5K.mjs.map → chunk-PJDJEPY2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LTF535HP.mjs.map → chunk-QJSB5NX4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VIJUIJ4V.mjs.map → chunk-QSBLXZFC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-U52ITGAN.mjs.map → chunk-QSYQIJEO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YEXBSKXL.mjs.map → chunk-QWV25ZSJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZHGCNNB5.mjs.map → chunk-RM4VHHXR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XW2GCCBZ.mjs.map → chunk-RRKNYQ6D.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EVL6UUJJ.mjs.map → chunk-RSUHZ7IH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LKWCLZTU.mjs.map → chunk-S4WKQEYF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I7ODJJY3.mjs.map → chunk-TI73UXGG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3IMDPLG5.mjs.map → chunk-U34BNBOX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SPSO2A53.mjs.map → chunk-U64LDJTG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LETBBKOK.mjs.map → chunk-UAW7SD6P.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HR6GP43Q.mjs.map → chunk-V2C7APME.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PPA7AFVD.mjs.map → chunk-VFAKQ7NM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QQ4OPT5A.mjs.map → chunk-VJ2DAL5M.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SKEL25G3.mjs.map → chunk-VXLJWKLG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2GSNHNKW.mjs.map → chunk-WHEXX3BD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6L56KRO6.mjs.map → chunk-XPYJSDNF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VPZ3QEMD.mjs.map → chunk-YA5U6YEL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZJOTHYI2.mjs.map → chunk-YB7AHPBR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AJEWAECH.mjs.map → chunk-YKRSCVRE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CTMAC553.mjs.map → chunk-YTFYVPZO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CO3V5DOG.mjs.map → chunk-YUITECZ5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-V7ZVI2WS.mjs.map → chunk-Z4OHB36I.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YAO67FPP.mjs.map → chunk-ZXIBFH6X.mjs.map} +0 -0
- /package/out/{__chunks__/chunk-FLC6QSZB.mjs.map → managers/LogoutManager/LogoutManager.mjs.map} +0 -0
- /package/out/{providers/strategies/CrossWindowProviderStrategy/types/crossWindow.types.mjs.map → managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.mjs.map} +0 -0
- /package/out/{providers/strategies/CrossWindowProviderStrategy/types/index.mjs.map → managers/TransactionManager/TransactionManager.types.mjs.map} +0 -0
- /package/out/{utils/createUIElement.mjs.map → managers/TransactionManager/helpers/sessionCallbacks.mjs.map} +0 -0
package/README.md
CHANGED
|
@@ -45,20 +45,7 @@ or
|
|
|
45
45
|
```bash
|
|
46
46
|
yarn add @multiversx/sdk-dapp
|
|
47
47
|
```
|
|
48
|
-
|
|
49
|
-
If you need only the core behaviour, without the additional UI, you can create a project-specific `.npmrc` file to configure per-package installation behavior. This will skip the installation of `@multiversx/sdk-dapp-ui`, but keep in mind that you may need to provide the UI components yourself.
|
|
50
|
-
Also, make sure you run your app on `https`, not `http`, otherwise some providers will not work.
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
## .npmrc
|
|
54
|
-
@multiversx/sdk-dapp:omit-optional=true
|
|
55
|
-
## enable the option when needed with:
|
|
56
|
-
## @multiversx/sdk-dapp:omit-optional=false
|
|
57
|
-
|
|
58
|
-
## Run Installation
|
|
59
|
-
## When you run npm install, NPM will use the configurations specified in the .npmrc file:
|
|
60
|
-
npm install
|
|
61
|
-
```
|
|
48
|
+
> **Note:** Make sure you run your app on `https`, not `http`, otherwise some providers will not work.
|
|
62
49
|
|
|
63
50
|
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
51
|
|
|
@@ -104,7 +91,14 @@ const config: InitAppType = {
|
|
|
104
91
|
// network: { // optional
|
|
105
92
|
// walletAddress: 'https://devnet-wallet.multiversx.com' // or other props you want to override
|
|
106
93
|
// },
|
|
107
|
-
|
|
94
|
+
// transactionTracking: { // optional
|
|
95
|
+
// successfulToastLifetime: 5000,
|
|
96
|
+
// onSuccess: async (sessionId) => {
|
|
97
|
+
// console.log('Transaction session successful', sessionId);
|
|
98
|
+
// },
|
|
99
|
+
// onFail: async (sessionId) => {
|
|
100
|
+
// console.log('Transaction session failed', sessionId);
|
|
101
|
+
// }
|
|
108
102
|
}
|
|
109
103
|
// customProviders: [myCustomProvider] // optional
|
|
110
104
|
};
|
|
@@ -133,6 +127,7 @@ export const ConnectButton = () => {
|
|
|
133
127
|
onClose: () => { // optional action to be performed when the user closes the Unlock Panel
|
|
134
128
|
navigate('/');
|
|
135
129
|
},
|
|
130
|
+
// allowedProviders: [ProviderTypeEnum.walletConnect, 'myCustomProvider'] // optionally, only show specific providers
|
|
136
131
|
});
|
|
137
132
|
const handleOpenUnlockPanel = () => {
|
|
138
133
|
unlockPanelManager.openUnlockPanel();
|
|
@@ -141,6 +136,30 @@ export const ConnectButton = () => {
|
|
|
141
136
|
};
|
|
142
137
|
|
|
143
138
|
```
|
|
139
|
+
Once the user has logged in, if `nativeAuth` is configured in the `initApp` method, an automatic logout will be performed upon native auth expiration. Before the actual logout is performed, the `LogoutManager` will show a warning toast to the user. This toast can be customized by passing a `tokenExpirationToastWarningSeconds` to the `nativeAuth` config.
|
|
140
|
+
|
|
141
|
+
```typescript
|
|
142
|
+
// in initAoo config
|
|
143
|
+
const config: InitAppType = {
|
|
144
|
+
// ...
|
|
145
|
+
nativeAuth: {
|
|
146
|
+
expirySeconds: 30, // test auto logout after 30 seconds
|
|
147
|
+
tokenExpirationToastWarningSeconds: 10 // show warning toast 10 seconds before auto logout
|
|
148
|
+
},
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
You have the option to stop this behavior by calling `LogoutManager.getInstance().stop()` after the user has logged in.
|
|
153
|
+
|
|
154
|
+
```typescript
|
|
155
|
+
import { LogoutManager } from '@multiversx/sdk-dapp/out/managers/LogoutManager/LogoutManager';
|
|
156
|
+
|
|
157
|
+
loginHandler: () => {
|
|
158
|
+
navigate('/dashboard');
|
|
159
|
+
// optional, to stop the automatic logout upon native auth expiration
|
|
160
|
+
LogoutManager.getInstance().stop();
|
|
161
|
+
},
|
|
162
|
+
```
|
|
144
163
|
|
|
145
164
|
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
165
|
|
|
@@ -154,7 +173,7 @@ export const AdvancedConnectButton = () => {
|
|
|
154
173
|
});
|
|
155
174
|
const { address, signature } = await provider.login();
|
|
156
175
|
navigate(`/dashboard?address=${address}`;
|
|
157
|
-
}
|
|
176
|
+
},
|
|
158
177
|
});
|
|
159
178
|
const handleOpenUnlockPanel = () => {
|
|
160
179
|
unlockPanelManager.openUnlockPanel();
|
|
@@ -176,6 +195,8 @@ const provider = await ProviderFactory.create({
|
|
|
176
195
|
await provider.login();
|
|
177
196
|
```
|
|
178
197
|
|
|
198
|
+
> **Note:** Extension and Ledger login will only work if dApp is served over HTTPS protocol
|
|
199
|
+
|
|
179
200
|
### 3. Displaying app data
|
|
180
201
|
|
|
181
202
|
Depending on the framework, you can either use hooks or selectors to get the user details:
|
|
@@ -247,7 +268,7 @@ export function useStore() {
|
|
|
247
268
|
To sign transactions, you first need to create the `Transaction` object, then pass it to the initialized provider.
|
|
248
269
|
|
|
249
270
|
```typescript
|
|
250
|
-
import { Address, Transaction
|
|
271
|
+
import { Address, Transaction } from '@multiversx/sdk-core';
|
|
251
272
|
import {
|
|
252
273
|
GAS_PRICE,
|
|
253
274
|
GAS_LIMIT
|
|
@@ -257,7 +278,7 @@ import { refreshAccount } from '@multiversx/sdk-dapp/out/utils/account/refreshAc
|
|
|
257
278
|
|
|
258
279
|
const pongTransaction = new Transaction({
|
|
259
280
|
value: BigInt(0),
|
|
260
|
-
data:
|
|
281
|
+
data: Buffer.from('pong'),
|
|
261
282
|
receiver: Address.newFromBech32(contractAddress),
|
|
262
283
|
gasLimit: BigInt(GAS_LIMIT),
|
|
263
284
|
gasPrice: BigInt(GAS_PRICE),
|
|
@@ -276,12 +297,15 @@ const signedTransactions = await provider.signTransactions(transactions);
|
|
|
276
297
|
|
|
277
298
|
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.
|
|
278
299
|
|
|
300
|
+
> **Note:** You can set callbacks for the transaction manager to handle the session status, by using the `setCallbacks` method on the `TransactionManager` class. This can also be configured globally in the `initApp` method.
|
|
301
|
+
|
|
279
302
|
```typescript
|
|
280
303
|
import { TransactionManager } from '@multiversx/sdk-dapp/out/managers/TransactionManager';
|
|
281
304
|
import type { TransactionsDisplayInfoType } from '@multiversx/sdk-dapp/out/types/transactions.types';
|
|
282
305
|
|
|
283
306
|
|
|
284
307
|
const txManager = TransactionManager.getInstance();
|
|
308
|
+
|
|
285
309
|
const sentTransactions = await txManager.send(signedTransactions);
|
|
286
310
|
|
|
287
311
|
const toastInformation: TransactionsDisplayInfoType = {
|
|
@@ -291,7 +315,7 @@ const toastInformation: TransactionsDisplayInfoType = {
|
|
|
291
315
|
}
|
|
292
316
|
|
|
293
317
|
const sessionId = await txManager.track(sentTransactions, {
|
|
294
|
-
transactionsDisplayInfo: toastInformation
|
|
318
|
+
transactionsDisplayInfo: toastInformation,
|
|
295
319
|
});
|
|
296
320
|
```
|
|
297
321
|
|
|
@@ -314,8 +338,12 @@ You can find both methods and hooks to access transactions data, as seen in the
|
|
|
314
338
|
|---|------|-------------|----|
|
|
315
339
|
| | `methods/transactions` | path | `react/transactions` |
|
|
316
340
|
| 1 | `getTransactionSessions()` | returns all trabsaction sessions |`useGetTransactionSessions()` |
|
|
317
|
-
| 2 | `getPendingTransactionsSessions()` | returns an
|
|
341
|
+
| 2 | `getPendingTransactionsSessions()` | returns an record of pending sessions | `useGetPendingTransactionsSessions()`|
|
|
318
342
|
| 3 | `getPendingTransactions()` | returns an array of signed transactions | `useGetPendingTransactions()` |
|
|
343
|
+
| 4 | `getFailedTransactionsSessions()` | returns an record of failed sessions | `useGetFailedTransactionsSessions()`|
|
|
344
|
+
| 5 | `getFailedTransactions()` | returns an array of failed transactions | `useGetFailedTransactions()`|
|
|
345
|
+
| 6 | `getSuccessfulTransactionsSessions()` | returns an record of successful sessions | `useGetSuccessfulTransactionsSessions()`|
|
|
346
|
+
| 7 | `getSuccessfulTransactions()` | returns an array of successful transactions | `useGetSuccessfulTransactions()`|
|
|
319
347
|
|
|
320
348
|
There is a way to inspect store information regarding a specific transaction, using the `transactionsSliceSelector`. An example is shown below:
|
|
321
349
|
|
|
@@ -408,20 +436,8 @@ An existing provider is initialized on app load (this is take care of by `initAp
|
|
|
408
436
|
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.
|
|
409
437
|
|
|
410
438
|
```typescript
|
|
411
|
-
import { ProviderTypeEnum } from '@multiversx/sdk-dapp/out/providers/types/providerFactory.types';
|
|
412
|
-
|
|
413
|
-
const ADDITIONAL_PROVIDERS = {
|
|
414
|
-
myCustomProvider: 'myCustomProvider'
|
|
415
|
-
} as const;
|
|
416
|
-
|
|
417
|
-
// do this if you want to reference it later in your code
|
|
418
|
-
const ExtendedProviders = {
|
|
419
|
-
...ProviderTypeEnum,
|
|
420
|
-
...ADDITIONAL_PROVIDERS
|
|
421
|
-
} as const;
|
|
422
|
-
|
|
423
439
|
const provider = await ProviderFactory.create({
|
|
424
|
-
type:
|
|
440
|
+
type: 'custom-provider'
|
|
425
441
|
});
|
|
426
442
|
await provider?.login();
|
|
427
443
|
```
|
|
@@ -479,6 +495,18 @@ The transaction lifecycle consists of the following steps:
|
|
|
479
495
|
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.
|
|
480
496
|
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`).
|
|
481
497
|
|
|
498
|
+
**Table 6**. Inspecting transaction sessions
|
|
499
|
+
| # | Helper | Description | React hook equivalent |
|
|
500
|
+
|---|------|-------------|----|
|
|
501
|
+
| | `methods/transactions` | path | `react/transactions` |
|
|
502
|
+
| 1 | `getTransactionSessions()` | returns all trabsaction sessions |`useGetTransactionSessions()` |
|
|
503
|
+
| 2 | `getPendingTransactionsSessions()` | returns an record of pending sessions | `useGetPendingTransactionsSessions()`|
|
|
504
|
+
| 3 | `getPendingTransactions()` | returns an array of signed transactions | `useGetPendingTransactions()` |
|
|
505
|
+
| 4 | `getFailedTransactionsSessions()` | returns an record of failed sessions | `useGetFailedTransactionsSessions()`|
|
|
506
|
+
| 5 | `getFailedTransactions()` | returns an array of failed transactions | `useGetFailedTransactions()`|
|
|
507
|
+
| 6 | `getSuccessfulTransactionsSessions()` | returns an record of successful sessions | `useGetSuccessfulTransactionsSessions()`|
|
|
508
|
+
| 7 | `getSuccessfulTransactions()` | returns an array of successful transactions | `useGetSuccessfulTransactions()`|
|
|
509
|
+
|
|
482
510
|
5. **User feedback** is provided through toast notifications, which are triggered to inform about transactions' progress. Additional tracking details can be optionally displayed in the toast UI.
|
|
483
511
|
There is an option to add custom toast messages by using the `createCustomToast` helper.
|
|
484
512
|
|
|
@@ -542,9 +570,23 @@ const sentTransactions = await transactionManager.send(batchTransactions);
|
|
|
542
570
|
The basic option is to use the built-in tracking, which displays toast notifications with default messages.
|
|
543
571
|
|
|
544
572
|
```typescript
|
|
573
|
+
import { TransactionManagerTrackOptionsType } from '@multiversx/sdk-dapp/out/managers/TransactionManager/TransactionManager.types';
|
|
574
|
+
|
|
575
|
+
const options: TransactionManagerTrackOptionsType = {
|
|
576
|
+
disableToasts: false, // `false` by default
|
|
577
|
+
transactionsDisplayInfo: { // `undefined` by default
|
|
578
|
+
errorMessage: 'Failed adding stake',
|
|
579
|
+
successMessage: 'Stake successfully added',
|
|
580
|
+
processingMessage: 'Staking in progress'
|
|
581
|
+
},
|
|
582
|
+
sessionInformation: { // `undefined` by default. Use to perform additional actions based on the session information
|
|
583
|
+
stakeAmount: '1000000000000000000000000'
|
|
584
|
+
}
|
|
585
|
+
};
|
|
586
|
+
|
|
545
587
|
const sessionId = await transactionManager.track(
|
|
546
|
-
sentTransactions
|
|
547
|
-
//
|
|
588
|
+
sentTransactions,
|
|
589
|
+
options // optional
|
|
548
590
|
);
|
|
549
591
|
```
|
|
550
592
|
|
|
@@ -679,9 +721,6 @@ export const FormatAmount = (props: IFormatAmountProps) => {
|
|
|
679
721
|
/>
|
|
680
722
|
);
|
|
681
723
|
};
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
724
|
```
|
|
686
725
|
|
|
687
726
|
|
|
@@ -695,7 +734,9 @@ flowchart LR
|
|
|
695
734
|
```
|
|
696
735
|
|
|
697
736
|
```typescript
|
|
698
|
-
|
|
737
|
+
import { ComponentFactory } from '@multiversx/sdk-dapp/out/utils/ComponentFactory';
|
|
738
|
+
|
|
739
|
+
const modalElement = await ComponentFactory.create<LedgerConnectModal>(
|
|
699
740
|
'mvx-ledger-connect-panel'
|
|
700
741
|
);
|
|
701
742
|
const eventBus = await modalElement.getEventBus();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-FAOCLLIW.mjs";import{a as c}from"./chunk-CIY7IH2N.mjs";import{a}from"./chunk-YUFPUG5O.mjs";var p="Check if the MultiversX App is open on Ledger";async function v({manager:e,resolve:n,reject:d,shouldInitProvider:s}){let i=!c(),t=()=>v({manager:e,resolve:n,reject:d,shouldInitProvider:s}),o=()=>d("Device unavailable");try{e?.updateAccountScreen({isLoading:!0}),e&&i&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o});let r=await l({shouldInitProvider:s});e&&i&&e.unsubscribeFromProviderInit({handleRetry:t,handleCancel:o}),n(r)}catch(r){if(!i)throw r;let{errorMessage:u,defaultErrorMessage:g}=a(r);e?.updateConnectScreen({error:u??g??p}),e&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o})}}export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-254WMLVS.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-FEFZKA2B.mjs";import a from"bignumber.js";var t=!1;function i(e){return new a(e.action?.arguments?.value).isNaN()?(t||(console.error(`Unable to interpret ${e.action?.name} data for txHash: ${e.txHash}`),t=!0),r(e.value)):r(e.action?.arguments?.value)}export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-266T724O.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-ID7WYMJZ.mjs";var e=class n extends t{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_PENDING_TRANSACTIONS",uiTag:"mvx-pending-transactions-panel"});this.initialData=null;this.data=this.initialData}static getInstance(){return n.instance||(n.instance=new n),n.instance}isPendingTransactionsOpen(){return this.isOpen}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",this.closeUI.bind(this))}};export{e as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2EFXW7IG.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.ts"],
|
|
4
|
-
"sourcesContent": ["import { UITagsEnum } from 'constants/UITags.enum';\nimport { MvxPendingTransactionsPanel } from 'lib/sdkDappUi';\nimport { IProviderBase } from 'providers/types/providerFactory.types';\nimport {
|
|
4
|
+
"sourcesContent": ["import { UITagsEnum } from 'constants/UITags.enum';\nimport { MvxPendingTransactionsPanel } from 'lib/sdkDappUi';\nimport { IProviderBase } from 'providers/types/providerFactory.types';\nimport { SidePanelBaseManager } from '../SidePanelBaseManager/SidePanelBaseManager';\nimport { PendingTransactionsEventsEnum } from './types/pendingTransactions.types';\n\nexport class PendingTransactionsStateManager extends SidePanelBaseManager<\n MvxPendingTransactionsPanel,\n IProviderBase | null,\n PendingTransactionsEventsEnum\n> {\n private static instance: PendingTransactionsStateManager;\n\n protected initialData: IProviderBase | null = null;\n\n public static getInstance(): PendingTransactionsStateManager {\n if (!PendingTransactionsStateManager.instance) {\n PendingTransactionsStateManager.instance =\n new PendingTransactionsStateManager();\n }\n\n return PendingTransactionsStateManager.instance;\n }\n\n constructor() {\n super({\n uiDataUpdateEvent: PendingTransactionsEventsEnum.DATA_UPDATE,\n uiTag: UITagsEnum.PENDING_TRANSACTIONS_PANEL\n });\n this.data = this.initialData;\n }\n\n public isPendingTransactionsOpen(): boolean {\n return this.isOpen;\n }\n\n protected async setupEventListeners() {\n if (!this.eventBus) {\n return;\n }\n\n this.subscribeToEventBus(\n PendingTransactionsEventsEnum.CLOSE,\n this.closeUI.bind(this)\n );\n }\n}\n"],
|
|
5
5
|
"mappings": "yCAMO,IAAMA,EAAN,MAAMC,UAAwCC,CAInD,CAcA,aAAc,CACZ,MAAM,CACJ,qDACA,sCACF,CAAC,EAfH,KAAU,YAAoC,KAgB5C,KAAK,KAAO,KAAK,WACnB,CAfA,OAAc,aAA+C,CAC3D,OAAKD,EAAgC,WACnCA,EAAgC,SAC9B,IAAIA,GAGDA,EAAgC,QACzC,CAUO,2BAAqC,CAC1C,OAAO,KAAK,MACd,CAEA,MAAgB,qBAAsB,CAC/B,KAAK,UAIV,KAAK,iDAEH,KAAK,QAAQ,KAAK,IAAI,CACxB,CACF,CACF",
|
|
6
6
|
"names": ["PendingTransactionsStateManager", "_PendingTransactionsStateManager", "SidePanelBaseManager"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-V2C7APME.mjs";import{a as e}from"./chunk-6ZL2QC74.mjs";import{a as i}from"./chunk-TI73UXGG.mjs";var a=class{constructor(o){this.address="";this._login=null;this.loginAbortController=null;this.cancelLogin=()=>{this.loginAbortController&&this.loginAbortController.abort(),this.cancelAction?.(),this.loginAbortController=null};this.loginOperation=async o=>{if(!this._login)throw new Error("Provider is not initialized.");let r=await this._login(o);if(!r?.address)throw new Error("Provider is not initialized.");return{...r,address:r.address,signature:r.signature??""}};this.initializeAddress=()=>{if(this.address)return;let o=e();o&&(this.address=o)};this.cancelAction=void 0;this.address=o??""}getAccount(){throw new Error("Method not implemented.")}signTransaction(o,r){throw new Error("Method not implemented.")}async login(o){if(!this._login)throw new Error("Provider is not initialized.");this.loginAbortController&&this.loginAbortController.abort();let r=new AbortController;this.loginAbortController=r;let t=r.signal;try{let n=new Promise((p,c)=>{t.addEventListener("abort",()=>{c(new Error("Login cancelled"))})}),l=await Promise.race([this.loginOperation(o),n]);return this.loginAbortController=null,l}catch(n){throw this.loginAbortController=null,n}}async initSignState(){let{onClose:o,manager:r}=await s({cancelAction:this.cancelAction?.bind(this)}),t=this.getType();return r.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",o),r.updateData({name:i[t],type:t}),{onClose:o,manager:r}}};export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-2S5FRZJR.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.ts"],
|
|
4
|
+
"sourcesContent": ["import { IProviderAccount } from '@multiversx/sdk-wallet-connect-provider/out';\nimport { providerLabels } from 'constants/index';\nimport { Transaction, Message } from 'lib/sdkCore';\nimport { IDAppProviderOptions, IDAppProviderAccount } from 'lib/sdkDappUtils';\nimport { PendingTransactionsEventsEnum } from 'managers/internal/PendingTransactionsStateManager';\nimport { getAddress } from 'methods/account/getAddress';\nimport { IProvider, ProviderType } from 'providers/types/providerFactory.types';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport { getPendingTransactionsHandlers } from '../helpers';\n\nexport type LoginOptionsTypes = {\n token?: string;\n};\n\nexport abstract class BaseProviderStrategy<\n T extends ProviderType = ProviderType\n> implements IProvider<T>\n{\n protected address?: string = '';\n protected _login:\n | ((options?: LoginOptionsTypes) => Promise<IProviderAccount | null>)\n | null = null;\n protected loginAbortController: AbortController | null = null;\n\n /*\n * Allow setting provider address without store login\n */\n constructor(address?: string) {\n this.address = address ?? '';\n }\n\n abstract init(): Promise<boolean>;\n abstract logout(): Promise<boolean>;\n abstract getType(): T;\n\n abstract getAddress(): Promise<string | undefined>;\n abstract setAccount(account: IDAppProviderAccount): void;\n abstract isInitialized(): boolean;\n\n isConnected?(): boolean;\n\n getAccount(): IDAppProviderAccount | null {\n throw new Error('Method not implemented.');\n }\n\n signTransaction(\n _transaction: Transaction,\n _options?: IDAppProviderOptions\n ): Promise<Transaction | null> {\n throw new Error('Method not implemented.');\n }\n\n abstract signTransactions(\n transactions: Transaction[],\n options?: IDAppProviderOptions\n ): Promise<Transaction[] | null>;\n\n abstract signMessage(\n messageToSign: Message,\n options?: IDAppProviderOptions\n ): Promise<Message | null>;\n\n public async login(\n options?: LoginOptionsTypes\n ): Promise<{ address: string; signature: string }> {\n if (!this._login) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n if (this.loginAbortController) {\n this.loginAbortController.abort();\n }\n\n const controller = new AbortController();\n this.loginAbortController = controller;\n\n const signal = controller.signal;\n\n try {\n const abortPromise = new Promise<never>((_, reject) => {\n signal.addEventListener('abort', () => {\n reject(new Error('Login cancelled'));\n });\n });\n\n const loginResult = await Promise.race([\n this.loginOperation(options),\n abortPromise\n ]);\n\n this.loginAbortController = null;\n\n return loginResult;\n } catch (error) {\n this.loginAbortController = null;\n throw error;\n }\n }\n\n public cancelLogin = () => {\n if (this.loginAbortController) {\n this.loginAbortController.abort();\n }\n\n this.cancelAction?.();\n this.loginAbortController = null;\n };\n\n protected loginOperation = async (\n options?: LoginOptionsTypes\n ): Promise<{ address: string; signature: string }> => {\n if (!this._login) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n const result = await this._login(options);\n\n if (!result?.address) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n return {\n ...result,\n address: result.address,\n signature: result.signature ?? ''\n };\n };\n\n /**\n * Initializes the provider by setting the address if it is not already set.\n */\n protected initializeAddress = () => {\n if (this.address) {\n return;\n }\n\n const address = getAddress();\n\n if (!address) {\n return;\n }\n\n this.address = address;\n };\n\n cancelAction: (() => Promise<void>) | undefined = undefined;\n\n /**\n * This method should be overridden by subclasses to handle cancel login event.\n */\n // async cancelAction(): Promise<void> {\n // throw new Error('Method not implemented.');\n // }\n\n protected async initSignState() {\n const { onClose, manager } = await getPendingTransactionsHandlers({\n cancelAction: this.cancelAction?.bind(this)\n });\n\n const type = this.getType();\n manager.subscribeToEventBus(PendingTransactionsEventsEnum.CLOSE, onClose);\n\n manager.updateData({\n name: providerLabels[type],\n type\n });\n\n return { onClose, manager };\n }\n}\n"],
|
|
5
|
+
"mappings": "2HAcO,IAAeA,EAAf,KAGP,CAUE,YAAYC,EAAkB,CAT9B,KAAU,QAAmB,GAC7B,KAAU,OAEC,KACX,KAAU,qBAA+C,KA6EzD,KAAO,YAAc,IAAM,CACrB,KAAK,sBACP,KAAK,qBAAqB,MAAM,EAGlC,KAAK,eAAe,EACpB,KAAK,qBAAuB,IAC9B,EAEA,KAAU,eAAiB,MACzBC,GACoD,CACpD,GAAI,CAAC,KAAK,OACR,MAAM,IAAI,oCAAuC,EAGnD,IAAMC,EAAS,MAAM,KAAK,OAAOD,CAAO,EAExC,GAAI,CAACC,GAAQ,QACX,MAAM,IAAI,oCAAuC,EAGnD,MAAO,CACL,GAAGA,EACH,QAASA,EAAO,QAChB,UAAWA,EAAO,WAAa,EACjC,CACF,EAKA,KAAU,kBAAoB,IAAM,CAClC,GAAI,KAAK,QACP,OAGF,IAAMF,EAAUG,EAAW,EAEtBH,IAIL,KAAK,QAAUA,EACjB,EAEA,kBAAkD,OArHhD,KAAK,QAAUA,GAAW,EAC5B,CAYA,YAA0C,CACxC,MAAM,IAAI,MAAM,yBAAyB,CAC3C,CAEA,gBACEI,EACAC,EAC6B,CAC7B,MAAM,IAAI,MAAM,yBAAyB,CAC3C,CAYA,MAAa,MACXJ,EACiD,CACjD,GAAI,CAAC,KAAK,OACR,MAAM,IAAI,oCAAuC,EAG/C,KAAK,sBACP,KAAK,qBAAqB,MAAM,EAGlC,IAAMK,EAAa,IAAI,gBACvB,KAAK,qBAAuBA,EAE5B,IAAMC,EAASD,EAAW,OAE1B,GAAI,CACF,IAAME,EAAe,IAAI,QAAe,CAACC,EAAGC,IAAW,CACrDH,EAAO,iBAAiB,QAAS,IAAM,CACrCG,EAAO,IAAI,MAAM,iBAAiB,CAAC,CACrC,CAAC,CACH,CAAC,EAEKC,EAAc,MAAM,QAAQ,KAAK,CACrC,KAAK,eAAeV,CAAO,EAC3BO,CACF,CAAC,EAED,YAAK,qBAAuB,KAErBG,CACT,OAASC,EAAO,CACd,WAAK,qBAAuB,KACtBA,CACR,CACF,CAyDA,MAAgB,eAAgB,CAC9B,GAAM,CAAE,QAAAC,EAAS,QAAAC,CAAQ,EAAI,MAAMC,EAA+B,CAChE,aAAc,KAAK,cAAc,KAAK,IAAI,CAC5C,CAAC,EAEKC,EAAO,KAAK,QAAQ,EAC1B,OAAAF,EAAQ,iDAAyDD,CAAO,EAExEC,EAAQ,WAAW,CACjB,KAAMG,EAAeD,CAAI,EACzB,KAAAA,CACF,CAAC,EAEM,CAAE,QAAAH,EAAS,QAAAC,CAAQ,CAC5B,CACF",
|
|
6
|
+
"names": ["BaseProviderStrategy", "address", "options", "result", "getAddress", "_transaction", "_options", "controller", "signal", "abortPromise", "_", "reject", "loginResult", "error", "onClose", "manager", "getPendingTransactionsHandlers", "type", "providerLabels"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as u}from"./chunk-E7BYYSVM.mjs";import{a as f}from"./chunk-P32DZ2CO.mjs";import{a as g}from"./chunk-CVPP4HQE.mjs";import{b as a}from"./chunk-4QDHGYT4.mjs";import{c as s,g as r}from"./chunk-R53MCZI6.mjs";var v=async({signMessageCallback:m,nativeAuthClientConfig:o})=>{let{address:t}=u(),c=g(),i=f(o||c),e=await i.initialize({noCache:!!o});if(!e)return null;let h=new r({address:new s(t),data:Buffer.from(`${t}${e}`)}),n=await m(h,{});if(!n?.signature)throw"Message not signed";return a({loginToken:e,signature:Buffer.from(n.signature).toString("hex")}),i.getToken({address:t,token:e,signature:Buffer.from(n.signature).toString("hex")})};export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2SIHYJET.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utils/account/refreshNativeAuthTokenLogin.ts"],
|
|
4
|
+
"sourcesContent": ["import { Address, Message } from 'lib/sdkCore';\nimport { getAccount } from 'methods/account/getAccount';\nimport { nativeAuth } from 'services/nativeAuth';\nimport { getDefaultNativeAuthConfig } from 'services/nativeAuth/methods/getDefaultNativeAuthConfig';\nimport { NativeAuthConfigType } from 'services/nativeAuth/nativeAuth.types';\nimport { setTokenLogin } from 'store/actions/loginInfo/loginInfoActions';\n\n/**\n * Use this function if you support multiple networks with network switching\n * @returns The native auth token\n */\nexport const refreshNativeAuthTokenLogin = async ({\n signMessageCallback,\n nativeAuthClientConfig\n}: {\n signMessageCallback: (\n messageToSign: Message,\n options: Record<any, any>\n ) => Promise<Message>;\n nativeAuthClientConfig?: NativeAuthConfigType;\n}): Promise<string | null> => {\n const { address } = getAccount();\n const defaultNativeAuthConfig = getDefaultNativeAuthConfig();\n\n const nativeAuthClient = nativeAuth(\n nativeAuthClientConfig || defaultNativeAuthConfig\n );\n\n const loginToken = await nativeAuthClient.initialize({\n noCache: Boolean(nativeAuthClientConfig)\n });\n\n if (!loginToken) {\n return null;\n }\n\n const messageToSign = new Message({\n address: new Address(address),\n data: Buffer.from(`${address}${loginToken}`)\n });\n\n const signedMessage = await signMessageCallback(messageToSign, {});\n\n if (!signedMessage?.signature) {\n throw 'Message not signed';\n }\n\n setTokenLogin({\n loginToken,\n signature: Buffer.from(signedMessage.signature).toString('hex')\n });\n\n return nativeAuthClient.getToken({\n address,\n token: loginToken,\n signature: Buffer.from(signedMessage.signature).toString('hex')\n });\n};\n"],
|
|
5
|
+
"mappings": "oNAWO,IAAMA,EAA8B,MAAO,CAChD,oBAAAC,EACA,uBAAAC,CACF,IAM8B,CAC5B,GAAM,CAAE,QAAAC,CAAQ,EAAIC,EAAW,EACzBC,EAA0BC,EAA2B,EAErDC,EAAmBC,EACvBN,GAA0BG,CAC5B,EAEMI,EAAa,MAAMF,EAAiB,WAAW,CACnD,QAAS,EAAQL,CACnB,CAAC,EAED,GAAI,CAACO,EACH,OAAO,KAGT,IAAMC,EAAgB,IAAIC,EAAQ,CAChC,QAAS,IAAIC,EAAQT,CAAO,EAC5B,KAAM,OAAO,KAAK,GAAGA,CAAO,GAAGM,CAAU,EAAE,CAC7C,CAAC,EAEKI,EAAgB,MAAMZ,EAAoBS,EAAe,CAAC,CAAC,EAEjE,GAAI,CAACG,GAAe,UAClB,KAAM,qBAGR,OAAAC,EAAc,CACZ,WAAAL,EACA,UAAW,OAAO,KAAKI,EAAc,SAAS,EAAE,SAAS,KAAK,CAChE,CAAC,EAEMN,EAAiB,SAAS,CAC/B,QAAAJ,EACA,MAAOM,EACP,UAAW,OAAO,KAAKI,EAAc,SAAS,EAAE,SAAS,KAAK,CAChE,CAAC,CACH",
|
|
6
|
+
"names": ["refreshNativeAuthTokenLogin", "signMessageCallback", "nativeAuthClientConfig", "address", "getAccount", "defaultNativeAuthConfig", "getDefaultNativeAuthConfig", "nativeAuthClient", "nativeAuth", "loginToken", "messageToSign", "Message", "Address", "signedMessage", "setTokenLogin"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i,c as o,f as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i,c as o,f as s}from"./chunk-J4CPYFK6.mjs";import{j as u}from"./chunk-LHEH7L4L.mjs";import m from"bignumber.js";var p=e=>{if(!e.receipt?.value)return"";if(e.receipt?.data===u){let r=s({input:e.receipt.value,decimals:o,digits:i,showLastNonZeroDecimal:!0});return new m(r).times(e.gasPrice).times(100).toFixed()}return e.receipt.value};function d(e){let r=e.receipt?.data;if(!r)return"";let t=p(e),a=t?`: ${t}`:"";return`${r}${a}`}export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2SOS3KAT.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-KSKOSHYV.mjs";import{a as e}from"./chunk-YB7AHPBR.mjs";import{c}from"./chunk-J4CPYFK6.mjs";var y=({transaction:r,userIsReceiver:m,egldLabel:A})=>{let n=r.action,t=n&&n.arguments,a=t&&Array.isArray(t.transfers)?t.transfers:[],p=a.length===0,i=A??"EGLD",o=m?"+":"-",T={assetPrefix:o,type:i,assetTicker:i,assetAmount:e({value:r.value,decimals:String(c)})},l=a.map(s=>({assetPrefix:o,type:s.type,assetTicker:s.ticker,assetImage:s.svgUrl,assetAmount:e(s),assetPrice:g(s)}));return p?[T]:l};export{y as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3MWXXTQQ.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as i}from"./chunk-FKBLKOLI.mjs";import{a as t}from"./chunk-U64LDJTG.mjs";import{a as o}from"./chunk-E7BYYSVM.mjs";import{u as n}from"./chunk-4QDHGYT4.mjs";import{b as e}from"./chunk-SAAOQW7P.mjs";var w=async r=>{let{isGuarded:s}=o();if(!i({isGuarded:s,transactions:r}))return r;let a=r[0].getSender().bech32().toString(),{walletAddress:d}=e(n());return await(await t({address:a,walletUrl:d}))?.guardTransactions(r)||[]};export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3NFKZZ7W.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.ts"],
|
|
4
|
-
"sourcesContent": ["import { Transaction } from 'lib/sdkCore';\nimport { getAccount } from 'methods/account/getAccount';\nimport { networkSelector } from 'store/selectors';\nimport { getState } from 'store/store';\nimport { getCrossWindowProvider } from './getCrossWindowProvider';\nimport { getTransactionsNeedGuardianSigning } from './getTransactionsNeedGuardianSigning';\n\n/*\n Performs guard transactions if needed\n*/\nexport const guardTransactions = async (transactions: Transaction[]) => {\n const { isGuarded } = getAccount();\n\n const needs2FAsigning = getTransactionsNeedGuardianSigning({\n isGuarded,\n transactions\n });\n\n if (!needs2FAsigning) {\n return transactions;\n }\n\n const sender = transactions[0].getSender().bech32().toString();\n const { walletAddress } = networkSelector(getState());\n\n const provider = await getCrossWindowProvider({\n address: sender,\n walletUrl: walletAddress\n });\n\n
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["guardTransactions", "transactions", "isGuarded", "getAccount", "getTransactionsNeedGuardianSigning", "sender", "walletAddress", "networkSelector", "getState", "
|
|
4
|
+
"sourcesContent": ["import { Transaction } from 'lib/sdkCore';\nimport { getAccount } from 'methods/account/getAccount';\nimport { networkSelector } from 'store/selectors';\nimport { getState } from 'store/store';\nimport { getCrossWindowProvider } from './getCrossWindowProvider';\nimport { getTransactionsNeedGuardianSigning } from './getTransactionsNeedGuardianSigning';\n\n/*\n Performs guard transactions if needed\n*/\nexport const guardTransactions = async (transactions: Transaction[]) => {\n const { isGuarded } = getAccount();\n\n const needs2FAsigning = getTransactionsNeedGuardianSigning({\n isGuarded,\n transactions\n });\n\n if (!needs2FAsigning) {\n return transactions;\n }\n\n const sender = transactions[0].getSender().bech32().toString();\n const { walletAddress } = networkSelector(getState());\n\n const provider = await getCrossWindowProvider({\n address: sender,\n walletUrl: walletAddress\n });\n\n const guardedTransactions = await provider?.guardTransactions(transactions);\n return guardedTransactions || [];\n};\n"],
|
|
5
|
+
"mappings": "6MAUO,IAAMA,EAAoB,MAAOC,GAAgC,CACtE,GAAM,CAAE,UAAAC,CAAU,EAAIC,EAAW,EAOjC,GAAI,CALoBC,EAAmC,CACzD,UAAAF,EACA,aAAAD,CACF,CAAC,EAGC,OAAOA,EAGT,IAAMI,EAASJ,EAAa,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EACvD,CAAE,cAAAK,CAAc,EAAIC,EAAgBC,EAAS,CAAC,EAQpD,OAD4B,MALX,MAAMC,EAAuB,CAC5C,QAASJ,EACT,UAAWC,CACb,CAAC,IAE2C,kBAAkBL,CAAY,GAC5C,CAAC,CACjC",
|
|
6
|
+
"names": ["guardTransactions", "transactions", "isGuarded", "getAccount", "getTransactionsNeedGuardianSigning", "sender", "walletAddress", "networkSelector", "getState", "getCrossWindowProvider"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/managers/TransactionManager/helpers/sessionCallbacks.ts"],
|
|
4
|
+
"sourcesContent": ["export const sessionCallbacksMap: SessionCallbacksType = {};\n\ntype SessionCallbacksType = {\n onSuccess?: (sessionId: string) => Promise<void>;\n onFail?: (sessionId: string) => Promise<void>;\n};\n\nexport const registerSessionCallbacks = ({\n onSuccess,\n onFail\n}: SessionCallbacksType) => {\n if (onSuccess != null) {\n sessionCallbacksMap.onSuccess = onSuccess;\n }\n if (onFail != null) {\n sessionCallbacksMap.onFail = onFail;\n }\n};\n"],
|
|
5
|
+
"mappings": "AAAO,IAAMA,EAA4C,CAAC,EAO7CC,EAA2B,CAAC,CACvC,UAAAC,EACA,OAAAC,CACF,IAA4B,CACtBD,GAAa,OACfF,EAAoB,UAAYE,GAE9BC,GAAU,OACZH,EAAoB,OAASG,EAEjC",
|
|
6
|
+
"names": ["sessionCallbacksMap", "registerSessionCallbacks", "onSuccess", "onFail"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{e as o,f as a,g as i,h as r}from"./chunk-TQA3JDNV.mjs";import{u as c}from"./chunk-4QDHGYT4.mjs";function b(){let t=c(),l=r(t),u=i(t),T=a(t),d=o(t),e=Object.keys(d)?.length>0,n=!e&&Object.keys(l)?.length>0,s=!e&&!n&&Object.keys(u)?.length>0,f=!e&&!n&&!s&&Object.keys(T).length>0;return{pending:e,timedOut:n,fail:s,success:f}}export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-42LFLNPA.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{f as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as s,f as l}from"./chunk-QJSB5NX4.mjs";import{f as a}from"./chunk-VNLGNNIL.mjs";import{a as d,b as L}from"./chunk-NLRDRI7Q.mjs";import{a as k}from"./chunk-4AKPP7B3.mjs";import{a as v}from"./chunk-KRWR77QE.mjs";import{b as y}from"./chunk-A7FTKX2A.mjs";import{a as g,b as c}from"./chunk-7BP53CXF.mjs";import{a as f,b as m}from"./chunk-X4XULIVT.mjs";import{a as T}from"./chunk-CYCS3K6Q.mjs";import{a as S,b as u}from"./chunk-VKEESSBI.mjs";import{a as x}from"./chunk-2DNGCNYM.mjs";import{a as I}from"./chunk-NB7A4C7L.mjs";import{c as p}from"./chunk-R53MCZI6.mjs";import{createJSONStorage as h,devtools as O,persist as V}from"zustand/middleware";import{immer as H}from"zustand/middleware/immer";import{createStore as N}from"zustand/vanilla";var A=e=>{e.account=g,e.loginInfo=f,e.transactions=d,e.toasts=S};function R(){return new Date().setHours(new Date().getHours()+24)}function w(e){if(e==null){E();return}b(e)}var C=e=>{let t=l(e),n=a(e),{address:i,publicKey:M}=s(e);if(i&&M!==new p(i).hex()&&A(e),!t)return;if(n==null){w(R());return}let P=Date.now();n-P<0&&(w(null),o().setState(A))};var W=(e,t)=>{C(e)};var z=e=>{let t=N(O(V(H((...n)=>({network:x(...n),account:c(...n),loginInfo:m(...n),config:T(...n),transactions:L(...n),toasts:u(...n),cache:y(...n),ui:I(...n)})),{name:"sdk-dapp-store",storage:h(e)})));return t.subscribe(W),t},r,D=e=>{r=e},o=()=>(r||D(z(()=>new v)),r),ae=(e=k)=>D(z(e)),pe=()=>o().getState();var fe=e=>o().setState(({loginInfo:t})=>{t.providerType=e},!1,"setProviderType"),me=e=>o().setState(({loginInfo:t})=>{t.tokenLogin=e},!1,"setTokenLogin"),Se=e=>o().setState(({loginInfo:t})=>{if(t.tokenLogin!=null){t.tokenLogin.loginToken=e;return}t.tokenLogin={loginToken:e}},!1,"setLoginToken"),ue=e=>o().setState(({loginInfo:t})=>{t?.tokenLogin!=null&&(t.tokenLogin.signature=e)},!1,"setTokenLoginSignature"),de=e=>o().setState(({loginInfo:t})=>{t.walletLogin=e},!1,"setWalletLogin"),Le=e=>o().setState(({loginInfo:t})=>{t.walletConnectLogin=e},!1,"setWalletConnectLogin"),xe=e=>o().setState(({loginInfo:t})=>{t.ledgerLogin=e},!1,"setLedgerLogin"),Te=e=>o().setState(({loginInfo:t})=>{t.logoutRoute=e},!1,"setLogoutRoute"),ye=e=>o().setState(({loginInfo:t})=>{t.isWalletConnectV2Initialized=e},!1,"setIsWalletConnectV2Initialized"),E=()=>o().setState(({loginInfo:e})=>{e.loginExpiresAt=null},!1,"removeLoginExpiresAt"),b=e=>o().setState(({loginInfo:t})=>{t.loginExpiresAt=e},!1,"addLoginExpiresAt");export{fe as a,me as b,Se as c,ue as d,de as e,Le as f,xe as g,Te as h,ye as i,E as j,b as k,A as l,R as m,w as n,C as o,W as p,z as q,D as r,o as s,ae as t,pe as u};
|
|
2
|
+
//# sourceMappingURL=chunk-4QDHGYT4.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/store/store.ts", "../../src/store/middleware/logoutMiddleware.ts", "../../src/store/middleware/applyMiddlewares.ts", "../../src/store/actions/loginInfo/loginInfoActions.ts"],
|
|
4
|
-
"sourcesContent": ["import { createJSONStorage, devtools, persist } from 'zustand/middleware';\nimport { immer } from 'zustand/middleware/immer';\nimport { createStore } from 'zustand/vanilla';\nimport { applyMiddlewares } from './middleware';\nimport {\n networkSlice,\n accountSlice,\n loginInfoSlice,\n configSlice,\n toastSlice,\n cacheSlice,\n uiSlice\n} from './slices';\nimport { transactionsSlice } from './slices/transactions';\nimport {\n InMemoryStorage,\n defaultStorageCallback,\n StorageCallback\n} from './storage';\nimport { StoreType } from './store.types';\n\nexport type MutatorsIn = [\n ['zustand/devtools', never],\n ['zustand/persist', unknown],\n ['zustand/immer', never]\n];\n\nexport type MutatorsOut = [\n ['zustand/devtools', never],\n ['zustand/persist', StoreType],\n ['zustand/immer', never]\n];\n\nexport const createDAppStore = (getStorageCallback: StorageCallback) => {\n const store = createStore<StoreType, MutatorsOut>(\n devtools(\n persist(\n immer((...args) => ({\n network: networkSlice(...args),\n account: accountSlice(...args),\n loginInfo: loginInfoSlice(...args),\n config: configSlice(...args),\n transactions: transactionsSlice(...args),\n toasts: toastSlice(...args),\n cache: cacheSlice(...args),\n ui: uiSlice(...args)\n })),\n {\n name: 'sdk-dapp-store',\n storage: createJSONStorage(getStorageCallback)\n }\n )\n )\n );\n store.subscribe(applyMiddlewares);\n return store;\n};\n\nexport type StoreApi = ReturnType<typeof createDAppStore>;\n\nlet store: StoreApi;\n\nexport const setDAppStore = (_store: StoreApi) => {\n store = _store;\n};\n\nexport const getStore = () => {\n if (!store) {\n setDAppStore(createDAppStore(() => new InMemoryStorage()));\n }\n return store;\n};\n\n/**\n * Initialize store with the preferred storage by passing a callback.\n * Default storage is localStorage.\n * You can pass your own storage.\n * Call this function before using store, ideally before app bootstrapping.\n * @param getStorageCallback\n * @default () => localStorage\n * @returns persistent store instance\n * @example\n * initStore(() => window.localStorage);\n * initStore(() => window.sessionStorage);\n * initStore(() => new InMemoryStorage());\n * */\nexport const initStore = (getStorageCallback = defaultStorageCallback) => {\n return setDAppStore(createDAppStore(getStorageCallback));\n};\n\nexport const getState = () => getStore().getState();\n", "import { WritableDraft } from 'immer';\nimport { Address } from 'lib/sdkCore';\nimport {\n addLoginExpiresAt,\n removeLoginExpiresAt\n} from 'store/actions/loginInfo/loginInfoActions';\nimport {\n accountInfoSelector,\n isLoggedInSelector,\n loginExpiresAtSelector\n} from 'store/selectors';\nimport { initialState as initialAccountState } from 'store/slices/account/accountSlice';\nimport { initialState as initialLoginInfoState } from 'store/slices/loginInfo/loginInfoSlice';\nimport { initialState as initialToastState } from 'store/slices/toast/toastSlice';\nimport { initialState as initialTransactionsState } from 'store/slices/transactions/transactionsSlice';\nimport { getStore } from 'store/store';\nimport { StoreType } from '../store.types';\n\nexport const resetStore = (store: WritableDraft<StoreType>) => {\n store.account = initialAccountState;\n store.loginInfo = initialLoginInfoState;\n store.transactions = initialTransactionsState;\n store.toasts = initialToastState;\n};\n\nexport function getNewLoginExpiresTimestamp() {\n return new Date().setHours(new Date().getHours() + 24);\n}\n\nexport function setLoginExpiresAt(expiresAt: number | null) {\n if (expiresAt == null) {\n removeLoginExpiresAt();\n return;\n }\n addLoginExpiresAt(expiresAt);\n}\n\nexport const logoutMiddleware = (state: StoreType) => {\n const isLoggedIn = isLoggedInSelector(state);\n const loginTimestamp = loginExpiresAtSelector(state);\n const { address, publicKey } = accountInfoSelector(state);\n\n if (address && publicKey !== new Address(address).hex()) {\n resetStore(state);\n }\n\n if (!isLoggedIn) {\n return;\n }\n\n if (loginTimestamp == null) {\n setLoginExpiresAt(getNewLoginExpiresTimestamp());\n return;\n }\n\n const now = Date.now();\n const isExpired = loginTimestamp - now < 0;\n\n if (isExpired) {\n // logout\n setLoginExpiresAt(null);\n getStore().setState(resetStore);\n }\n};\n", "import { StoreType } from '../store.types';\nimport { logoutMiddleware } from './logoutMiddleware';\n\nexport const applyMiddlewares = (state: StoreType, _prevState: StoreType) => {\n logoutMiddleware(state);\n};\n", "import {
|
|
5
|
-
"mappings": "wjBAAA,OAAS,qBAAAA,EAAmB,YAAAC,EAAU,WAAAC,MAAe,qBACrD,OAAS,SAAAC,MAAa,2BACtB,OAAS,eAAAC,MAAmB,kBCgBrB,IAAMC,EAAcC,GAAoC,CAC7DA,EAAM,QAAUC,EAChBD,EAAM,UAAYC,EAClBD,EAAM,aAAeC,EACrBD,EAAM,OAASC,CACjB,EAEO,SAASC,GAA8B,CAC5C,OAAO,IAAI,KAAK,EAAE,SAAS,IAAI,KAAK,EAAE,SAAS,EAAI,EAAE,CACvD,CAEO,SAASC,EAAkBC,EAA0B,CAC1D,GAAIA,GAAa,KAAM,CACrBC,EAAqB,EACrB,MACF,CACAC,EAAkBF,CAAS,CAC7B,CAEO,IAAMG,EAAoBC,GAAqB,CACpD,IAAMC,EAAaC,EAAmBF,CAAK,EACrCG,EAAiBC,EAAuBJ,CAAK,EAC7C,CAAE,QAAAK,EAAS,UAAAC,CAAU,EAAIC,EAAoBP,CAAK,EAMxD,GAJIK,GAAWC,IAAc,IAAIE,EAAQH,CAAO,EAAE,IAAI,GACpDd,EAAWS,CAAK,EAGd,CAACC,EACH,OAGF,GAAIE,GAAkB,KAAM,CAC1BR,EAAkBD,EAA4B,CAAC,EAC/C,MACF,CAEA,IAAMe,EAAM,KAAK,IAAI,EACHN,EAAiBM,EAAM,IAIvCd,EAAkB,IAAI,EACtBe,EAAS,EAAE,SAASnB,CAAU,EAElC,EC5DO,IAAMoB,EAAmB,CAACC,EAAkBC,IAA0B,CAC3EC,EAAiBF,CAAK,CACxB,EF4BO,IAAMG,EAAmBC,GAAwC,CACtE,IAAMC,EAAQC,EACZC,EACEC,EACEC,EAAM,IAAIC,KAAU,CAClB,QAASC,EAAa,GAAGD,CAAI,EAC7B,QAASE,EAAa,GAAGF,CAAI,EAC7B,UAAWG,EAAe,GAAGH,CAAI,EACjC,OAAQI,EAAY,GAAGJ,CAAI,EAC3B,aAAcK,EAAkB,GAAGL,CAAI,EACvC,OAAQM,EAAW,GAAGN,CAAI,EAC1B,MAAOO,EAAW,GAAGP,CAAI,EACzB,GAAIQ,EAAQ,GAAGR,CAAI,CACrB,EAAE,EACF,CACE,KAAM,iBACN,QAASS,EAAkBf,CAAkB,CAC/C,CACF,CACF,CACF,EACA,OAAAC,EAAM,UAAUe,CAAgB,EACzBf,CACT,EAIIA,EAESgB,EAAgBC,GAAqB,CAChDjB,EAAQiB,CACV,EAEaC,EAAW,KACjBlB,GACHgB,EAAalB,EAAgB,IAAM,IAAIqB,CAAiB,CAAC,EAEpDnB,GAgBIoB,GAAY,CAACrB,EAAqBsB,IACtCL,EAAalB,EAAgBC,CAAkB,CAAC,EAG5CuB,GAAW,IAAMJ,EAAS,EAAE,SAAS,
|
|
4
|
+
"sourcesContent": ["import { createJSONStorage, devtools, persist } from 'zustand/middleware';\nimport { immer } from 'zustand/middleware/immer';\nimport { createStore } from 'zustand/vanilla';\nimport { applyMiddlewares } from './middleware';\nimport {\n networkSlice,\n accountSlice,\n loginInfoSlice,\n configSlice,\n toastSlice,\n cacheSlice,\n uiSlice\n} from './slices';\nimport { transactionsSlice } from './slices/transactions';\nimport {\n InMemoryStorage,\n defaultStorageCallback,\n StorageCallback\n} from './storage';\nimport { StoreType } from './store.types';\n\nexport type MutatorsIn = [\n ['zustand/devtools', never],\n ['zustand/persist', unknown],\n ['zustand/immer', never]\n];\n\nexport type MutatorsOut = [\n ['zustand/devtools', never],\n ['zustand/persist', StoreType],\n ['zustand/immer', never]\n];\n\nexport const createDAppStore = (getStorageCallback: StorageCallback) => {\n const store = createStore<StoreType, MutatorsOut>(\n devtools(\n persist(\n immer((...args) => ({\n network: networkSlice(...args),\n account: accountSlice(...args),\n loginInfo: loginInfoSlice(...args),\n config: configSlice(...args),\n transactions: transactionsSlice(...args),\n toasts: toastSlice(...args),\n cache: cacheSlice(...args),\n ui: uiSlice(...args)\n })),\n {\n name: 'sdk-dapp-store',\n storage: createJSONStorage(getStorageCallback)\n }\n )\n )\n );\n store.subscribe(applyMiddlewares);\n return store;\n};\n\nexport type StoreApi = ReturnType<typeof createDAppStore>;\n\nlet store: StoreApi;\n\nexport const setDAppStore = (_store: StoreApi) => {\n store = _store;\n};\n\nexport const getStore = () => {\n if (!store) {\n setDAppStore(createDAppStore(() => new InMemoryStorage()));\n }\n return store;\n};\n\n/**\n * Initialize store with the preferred storage by passing a callback.\n * Default storage is localStorage.\n * You can pass your own storage.\n * Call this function before using store, ideally before app bootstrapping.\n * @param getStorageCallback\n * @default () => localStorage\n * @returns persistent store instance\n * @example\n * initStore(() => window.localStorage);\n * initStore(() => window.sessionStorage);\n * initStore(() => new InMemoryStorage());\n * */\nexport const initStore = (getStorageCallback = defaultStorageCallback) => {\n return setDAppStore(createDAppStore(getStorageCallback));\n};\n\nexport const getState = () => getStore().getState();\n", "import { WritableDraft } from 'immer';\nimport { Address } from 'lib/sdkCore';\nimport {\n addLoginExpiresAt,\n removeLoginExpiresAt\n} from 'store/actions/loginInfo/loginInfoActions';\nimport {\n accountInfoSelector,\n isLoggedInSelector,\n loginExpiresAtSelector\n} from 'store/selectors';\nimport { initialState as initialAccountState } from 'store/slices/account/accountSlice';\nimport { initialState as initialLoginInfoState } from 'store/slices/loginInfo/loginInfoSlice';\nimport { initialState as initialToastState } from 'store/slices/toast/toastSlice';\nimport { initialState as initialTransactionsState } from 'store/slices/transactions/transactionsSlice';\nimport { getStore } from 'store/store';\nimport { StoreType } from '../store.types';\n\nexport const resetStore = (store: WritableDraft<StoreType>) => {\n store.account = initialAccountState;\n store.loginInfo = initialLoginInfoState;\n store.transactions = initialTransactionsState;\n store.toasts = initialToastState;\n};\n\nexport function getNewLoginExpiresTimestamp() {\n return new Date().setHours(new Date().getHours() + 24);\n}\n\nexport function setLoginExpiresAt(expiresAt: number | null) {\n if (expiresAt == null) {\n removeLoginExpiresAt();\n return;\n }\n addLoginExpiresAt(expiresAt);\n}\n\nexport const logoutMiddleware = (state: StoreType) => {\n const isLoggedIn = isLoggedInSelector(state);\n const loginTimestamp = loginExpiresAtSelector(state);\n const { address, publicKey } = accountInfoSelector(state);\n\n if (address && publicKey !== new Address(address).hex()) {\n resetStore(state);\n }\n\n if (!isLoggedIn) {\n return;\n }\n\n if (loginTimestamp == null) {\n setLoginExpiresAt(getNewLoginExpiresTimestamp());\n return;\n }\n\n const now = Date.now();\n const isExpired = loginTimestamp - now < 0;\n\n if (isExpired) {\n // logout\n setLoginExpiresAt(null);\n getStore().setState(resetStore);\n }\n};\n", "import { StoreType } from '../store.types';\nimport { logoutMiddleware } from './logoutMiddleware';\n\nexport const applyMiddlewares = (state: StoreType, _prevState: StoreType) => {\n logoutMiddleware(state);\n};\n", "import { ProviderType } from 'providers/types/providerFactory.types';\nimport {\n LedgerLoginType,\n LoginInfoType,\n WalletConnectLoginType\n} from 'store/slices/loginInfo/loginInfo.types';\nimport { getStore } from 'store/store';\nimport { TokenLoginType } from 'types/login.types';\n\nexport const setProviderType = <T extends ProviderType = ProviderType>(\n providerType: T\n) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.providerType = providerType;\n },\n false,\n 'setProviderType'\n );\n\nexport const setTokenLogin = (tokenLogin: TokenLoginType) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.tokenLogin = tokenLogin;\n },\n false,\n 'setTokenLogin'\n );\n\nexport const setLoginToken = (loginToken: string) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n if (state.tokenLogin != null) {\n state.tokenLogin.loginToken = loginToken;\n return;\n }\n state.tokenLogin = {\n loginToken\n };\n },\n false,\n 'setLoginToken'\n );\n\nexport const setTokenLoginSignature = (signature: string) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n if (state?.tokenLogin != null) {\n state.tokenLogin.signature = signature;\n }\n },\n false,\n 'setTokenLoginSignature'\n );\n\nexport const setWalletLogin = (walletLogin: LoginInfoType | null) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.walletLogin = walletLogin;\n },\n false,\n 'setWalletLogin'\n );\n\nexport const setWalletConnectLogin = (\n walletConnectLogin: WalletConnectLoginType | null\n) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.walletConnectLogin = walletConnectLogin;\n },\n false,\n 'setWalletConnectLogin'\n );\n\nexport const setLedgerLogin = (ledgerLogin: LedgerLoginType | null) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.ledgerLogin = ledgerLogin;\n },\n false,\n 'setLedgerLogin'\n );\n\nexport const setLogoutRoute = (logoutRoute: string | undefined) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.logoutRoute = logoutRoute;\n },\n false,\n 'setLogoutRoute'\n );\n\nexport const setIsWalletConnectV2Initialized = (isInitialized: boolean) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.isWalletConnectV2Initialized = isInitialized;\n },\n false,\n 'setIsWalletConnectV2Initialized'\n );\n\nexport const removeLoginExpiresAt = () =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.loginExpiresAt = null;\n },\n false,\n 'removeLoginExpiresAt'\n );\n\nexport const addLoginExpiresAt = (expiresAt: number) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.loginExpiresAt = expiresAt;\n },\n false,\n 'addLoginExpiresAt'\n );\n"],
|
|
5
|
+
"mappings": "wjBAAA,OAAS,qBAAAA,EAAmB,YAAAC,EAAU,WAAAC,MAAe,qBACrD,OAAS,SAAAC,MAAa,2BACtB,OAAS,eAAAC,MAAmB,kBCgBrB,IAAMC,EAAcC,GAAoC,CAC7DA,EAAM,QAAUC,EAChBD,EAAM,UAAYC,EAClBD,EAAM,aAAeC,EACrBD,EAAM,OAASC,CACjB,EAEO,SAASC,GAA8B,CAC5C,OAAO,IAAI,KAAK,EAAE,SAAS,IAAI,KAAK,EAAE,SAAS,EAAI,EAAE,CACvD,CAEO,SAASC,EAAkBC,EAA0B,CAC1D,GAAIA,GAAa,KAAM,CACrBC,EAAqB,EACrB,MACF,CACAC,EAAkBF,CAAS,CAC7B,CAEO,IAAMG,EAAoBC,GAAqB,CACpD,IAAMC,EAAaC,EAAmBF,CAAK,EACrCG,EAAiBC,EAAuBJ,CAAK,EAC7C,CAAE,QAAAK,EAAS,UAAAC,CAAU,EAAIC,EAAoBP,CAAK,EAMxD,GAJIK,GAAWC,IAAc,IAAIE,EAAQH,CAAO,EAAE,IAAI,GACpDd,EAAWS,CAAK,EAGd,CAACC,EACH,OAGF,GAAIE,GAAkB,KAAM,CAC1BR,EAAkBD,EAA4B,CAAC,EAC/C,MACF,CAEA,IAAMe,EAAM,KAAK,IAAI,EACHN,EAAiBM,EAAM,IAIvCd,EAAkB,IAAI,EACtBe,EAAS,EAAE,SAASnB,CAAU,EAElC,EC5DO,IAAMoB,EAAmB,CAACC,EAAkBC,IAA0B,CAC3EC,EAAiBF,CAAK,CACxB,EF4BO,IAAMG,EAAmBC,GAAwC,CACtE,IAAMC,EAAQC,EACZC,EACEC,EACEC,EAAM,IAAIC,KAAU,CAClB,QAASC,EAAa,GAAGD,CAAI,EAC7B,QAASE,EAAa,GAAGF,CAAI,EAC7B,UAAWG,EAAe,GAAGH,CAAI,EACjC,OAAQI,EAAY,GAAGJ,CAAI,EAC3B,aAAcK,EAAkB,GAAGL,CAAI,EACvC,OAAQM,EAAW,GAAGN,CAAI,EAC1B,MAAOO,EAAW,GAAGP,CAAI,EACzB,GAAIQ,EAAQ,GAAGR,CAAI,CACrB,EAAE,EACF,CACE,KAAM,iBACN,QAASS,EAAkBf,CAAkB,CAC/C,CACF,CACF,CACF,EACA,OAAAC,EAAM,UAAUe,CAAgB,EACzBf,CACT,EAIIA,EAESgB,EAAgBC,GAAqB,CAChDjB,EAAQiB,CACV,EAEaC,EAAW,KACjBlB,GACHgB,EAAalB,EAAgB,IAAM,IAAIqB,CAAiB,CAAC,EAEpDnB,GAgBIoB,GAAY,CAACrB,EAAqBsB,IACtCL,EAAalB,EAAgBC,CAAkB,CAAC,EAG5CuB,GAAW,IAAMJ,EAAS,EAAE,SAAS,EGjF3C,IAAMK,GACXC,GAEAC,EAAS,EAAE,SACT,CAAC,CAAE,UAAWC,CAAM,IAAM,CACxBA,EAAM,aAAeF,CACvB,EACA,GACA,iBACF,EAEWG,GAAiBC,GAC5BH,EAAS,EAAE,SACT,CAAC,CAAE,UAAWC,CAAM,IAAM,CACxBA,EAAM,WAAaE,CACrB,EACA,GACA,eACF,EAEWC,GAAiBC,GAC5BL,EAAS,EAAE,SACT,CAAC,CAAE,UAAWC,CAAM,IAAM,CACxB,GAAIA,EAAM,YAAc,KAAM,CAC5BA,EAAM,WAAW,WAAaI,EAC9B,MACF,CACAJ,EAAM,WAAa,CACjB,WAAAI,CACF,CACF,EACA,GACA,eACF,EAEWC,GAA0BC,GACrCP,EAAS,EAAE,SACT,CAAC,CAAE,UAAWC,CAAM,IAAM,CACpBA,GAAO,YAAc,OACvBA,EAAM,WAAW,UAAYM,EAEjC,EACA,GACA,wBACF,EAEWC,GAAkBC,GAC7BT,EAAS,EAAE,SACT,CAAC,CAAE,UAAWC,CAAM,IAAM,CACxBA,EAAM,YAAcQ,CACtB,EACA,GACA,gBACF,EAEWC,GACXC,GAEAX,EAAS,EAAE,SACT,CAAC,CAAE,UAAWC,CAAM,IAAM,CACxBA,EAAM,mBAAqBU,CAC7B,EACA,GACA,uBACF,EAEWC,GAAkBC,GAC7Bb,EAAS,EAAE,SACT,CAAC,CAAE,UAAWC,CAAM,IAAM,CACxBA,EAAM,YAAcY,CACtB,EACA,GACA,gBACF,EAEWC,GAAkBC,GAC7Bf,EAAS,EAAE,SACT,CAAC,CAAE,UAAWC,CAAM,IAAM,CACxBA,EAAM,YAAcc,CACtB,EACA,GACA,gBACF,EAEWC,GAAmCC,GAC9CjB,EAAS,EAAE,SACT,CAAC,CAAE,UAAWC,CAAM,IAAM,CACxBA,EAAM,6BAA+BgB,CACvC,EACA,GACA,iCACF,EAEWC,EAAuB,IAClClB,EAAS,EAAE,SACT,CAAC,CAAE,UAAWC,CAAM,IAAM,CACxBA,EAAM,eAAiB,IACzB,EACA,GACA,sBACF,EAEWkB,EAAqBC,GAChCpB,EAAS,EAAE,SACT,CAAC,CAAE,UAAWC,CAAM,IAAM,CACxBA,EAAM,eAAiBmB,CACzB,EACA,GACA,mBACF",
|
|
6
6
|
"names": ["createJSONStorage", "devtools", "persist", "immer", "createStore", "resetStore", "store", "initialState", "getNewLoginExpiresTimestamp", "setLoginExpiresAt", "expiresAt", "removeLoginExpiresAt", "addLoginExpiresAt", "logoutMiddleware", "state", "isLoggedIn", "isLoggedInSelector", "loginTimestamp", "loginExpiresAtSelector", "address", "publicKey", "accountInfoSelector", "Address", "now", "getStore", "applyMiddlewares", "state", "_prevState", "logoutMiddleware", "createDAppStore", "getStorageCallback", "store", "createStore", "devtools", "persist", "immer", "args", "networkSlice", "accountSlice", "loginInfoSlice", "configSlice", "transactionsSlice", "toastSlice", "cacheSlice", "uiSlice", "createJSONStorage", "applyMiddlewares", "setDAppStore", "_store", "getStore", "InMemoryStorage", "initStore", "defaultStorageCallback", "getState", "setProviderType", "providerType", "getStore", "state", "setTokenLogin", "tokenLogin", "setLoginToken", "loginToken", "setTokenLoginSignature", "signature", "setWalletLogin", "walletLogin", "setWalletConnectLogin", "walletConnectLogin", "setLedgerLogin", "ledgerLogin", "setLogoutRoute", "logoutRoute", "setIsWalletConnectV2Initialized", "isInitialized", "removeLoginExpiresAt", "addLoginExpiresAt", "expiresAt"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-L4QPPHVR.mjs";function t(){if(!e)return"";try{if(e.document.referrer)return new URL(e.document.referrer).origin;let r=e.location.ancestorOrigins;return r.length<1?"":new URL(r[r.length-1]).origin}catch(r){return console.error(r),""}}export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4TZC3NF3.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-BOAJJ4FX.mjs";var c=class n extends i{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE",uiTag:"mvx-ledger-connect"});this.addressesPerPage=10;this.allAccounts=[];this.initialConnectScreenData={};this.connectScreenData={...this.initialConnectScreenData};this.initialAccountScreenData={accounts:this.allAccounts,startIndex:0,addressesPerPage:this.addressesPerPage,isLoading:!0};this.accountScreenData={...this.initialAccountScreenData};this.initialConfirmScreenData={selectedAddress:"",explorerLink:""};this.confirmScreenData={...this.initialConfirmScreenData};this.initialData={connectScreenData:this.initialConnectScreenData,accountScreenData:this.initialAccountScreenData,confirmScreenData:this.initialConfirmScreenData};this.data=this.getInitialData()}static getInstance(){return n.instance||(n.instance=new n),n.instance}updateAllAccounts(e){this.allAccounts=e,this.accountScreenData.accounts=e}updateStartIndex(e){this.accountScreenData.startIndex=e}updateConnectScreen(e){this.connectScreenData={...this.connectScreenData,...e},this.data.confirmScreenData=null,this.data.accountScreenData=null,this.data.connectScreenData=this.connectScreenData,this.notifyDataUpdate()}updateAccountScreen(e){this.accountScreenData={...this.accountScreenData,...e},this.data.confirmScreenData=null,this.data.accountScreenData=this.accountScreenData,this.notifyDataUpdate()}updateConfirmScreen(e){this.confirmScreenData={...this.confirmScreenData,...e},this.data.accountScreenData=null,this.data.confirmScreenData=this.confirmScreenData,this.notifyDataUpdate()}getAccountScreenData(){return this.data.accountScreenData}getConfirmScreenData(){return this.data.confirmScreenData}getAllAccounts(){return this.allAccounts}subscribeToProviderInit({handleRetry:e,handleCancel:t}){this.eventBus&&(this.eventBus.subscribe("CONNECT_DEVICE",e),this.eventBus.subscribe("CLOSE",t),this.eventBus.subscribe("UI_DISCONNECTED",this.destroy.bind(this)))}unsubscribeFromProviderInit({handleRetry:e,handleCancel:t}){this.eventBus&&(this.eventBus.unsubscribe("CONNECT_DEVICE",e),this.eventBus.unsubscribe("CLOSE",t),this.eventBus.unsubscribe("UI_DISCONNECTED",this.destroy.bind(this)))}subscribeToAuthEvents({handleCancel:e,handleAccessWallet:t,handleGoToPage:a}){this.eventBus&&(this.eventBus.subscribe("CLOSE",e),this.eventBus.subscribe("ACCESS_WALLET",t),this.eventBus.subscribe("GO_TO_PAGE",a))}unsubscribeFromAuthEvents({handleCancel:e,handleAccessWallet:t,handleGoToPage:a}){this.eventBus&&(this.eventBus.unsubscribe("CLOSE",e),this.eventBus.unsubscribe("ACCESS_WALLET",t),this.eventBus.unsubscribe("GO_TO_PAGE",a))}handleClose(){this.anchor?this.anchor?.dispatchEvent(new CustomEvent("ANCHOR_CLOSE",{composed:!1,bubbles:!1})):this.destroy()}resetData(){this.accountScreenData={...this.initialAccountScreenData},this.confirmScreenData={...this.initialConfirmScreenData},this.connectScreenData={...this.initialConnectScreenData},super.resetData()}async setupEventListeners(){this.eventBus&&this.eventBus.subscribe("CLOSE",this.handleClose.bind(this))}};export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4XP7BVJD.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as r}from"./chunk-VMFJUT3G.mjs";import{a as e}from"./chunk-L4QPPHVR.mjs";var n=class{static get create(){return this.createComponent}static set create(t){this.createComponent=t}};n.createComponent=async({name:t,anchor:o})=>{if(await r(e),!e.document)return{};let m=e.document.createElement(t);return(o||e.document.body).appendChild(m),await customElements.whenDefined(t),m};export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4YU2DWHA.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utils/ComponentFactory.ts"],
|
|
4
|
+
"sourcesContent": ["import { IEventBus } from '@multiversx/sdk-dapp-ui/dist/loader';\nimport { safeWindow } from 'constants/index';\nimport { UITagsEnum } from 'constants/UITags.enum';\nimport { defineCustomElements } from 'lib/sdkDappUi';\n\nexport interface CreateEventBusUIElementType extends HTMLElement {\n getEventBus: () => Promise<IEventBus | null>;\n}\n\nexport type CreateComponentType = <T = CreateEventBusUIElementType>({\n name,\n anchor\n}: {\n name: `${UITagsEnum}`;\n anchor?: HTMLElement;\n}) => Promise<T>;\n\nexport class ComponentFactory {\n private static createComponent: CreateComponentType = async <\n T = CreateEventBusUIElementType\n >({\n name,\n anchor\n }: {\n name: `${UITagsEnum}`;\n anchor?: HTMLElement;\n }) => {\n await defineCustomElements(safeWindow);\n\n if (!safeWindow.document) {\n return {} as T;\n }\n\n const element = safeWindow.document.createElement(name);\n const rootElement = anchor || safeWindow.document.body;\n rootElement.appendChild(element);\n await customElements.whenDefined(name);\n\n return element as T;\n };\n\n static get create() {\n return this.createComponent;\n }\n\n static set create(customCreateFunction: CreateComponentType) {\n this.createComponent = customCreateFunction;\n }\n}\n"],
|
|
5
|
+
"mappings": "kFAiBO,IAAMA,EAAN,KAAuB,CAwB5B,WAAW,QAAS,CAClB,OAAO,KAAK,eACd,CAEA,WAAW,OAAOC,EAA2C,CAC3D,KAAK,gBAAkBA,CACzB,CACF,EA/BaD,EACI,gBAAuC,MAEpD,CACA,KAAAE,EACA,OAAAC,CACF,IAGM,CAGJ,GAFA,MAAMC,EAAqBC,CAAU,EAEjC,CAACA,EAAW,SACd,MAAO,CAAC,EAGV,IAAMC,EAAUD,EAAW,SAAS,cAAcH,CAAI,EAEtD,OADoBC,GAAUE,EAAW,SAAS,MACtC,YAAYC,CAAO,EAC/B,MAAM,eAAe,YAAYJ,CAAI,EAE9BI,CACT",
|
|
6
|
+
"names": ["ComponentFactory", "customCreateFunction", "name", "anchor", "defineCustomElements", "safeWindow", "element"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as o}from"./chunk-745QCLQC.mjs";import{b as s}from"./chunk-TQA3JDNV.mjs";import{u as n}from"./chunk-4QDHGYT4.mjs";async function f(){let t=s(n());if(Object.keys(t).length>0)for(let[e,{transactions:c}]of Object.entries(t))await o({sessionId:e,transactionBatch:c})}export{f as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4YZQBDUE.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as t}from"./chunk-6P7EXGAB.mjs";import{c as n}from"./chunk-4QDHGYT4.mjs";async function c({loginToken:r,extraInfoData:i,address:e}){let o=await t({originalLoginToken:r,extraInfoData:i,address:e});return o.modifiedLoginToken&&n(o.modifiedLoginToken),o.address}export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4ZZJX7E7.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utils/visual/switchTheme.ts"],
|
|
4
|
+
"sourcesContent": ["import { safeWindow } from 'constants/window.constants';\nimport { ThemesEnum } from 'types';\n\nexport function switchTheme(theme: `${ThemesEnum}`) {\n try {\n if (!safeWindow) {\n return;\n }\n safeWindow.document.documentElement.dataset.theme = theme;\n } catch (_err) {}\n}\n"],
|
|
5
|
+
"mappings": "yCAGO,SAASA,EAAYC,EAAwB,CAClD,GAAI,CACF,GAAI,CAACC,EACH,OAEFA,EAAW,SAAS,gBAAgB,QAAQ,MAAQD,CACtD,MAAe,CAAC,CAClB",
|
|
6
|
+
"names": ["switchTheme", "theme", "safeWindow"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as o}from"./chunk-4TBVQD27.mjs";import{s as n}from"./chunk-4QDHGYT4.mjs";var c=t=>n().setState(({config:e})=>{e.nativeAuthConfig=t},!1,"setNativeAuthConfig"),C=t=>n().setState(({config:e})=>{e.websocketStatus=t},!1,"setWebsocketStatus"),f=t=>n().setState(({config:e})=>{let a=t.walletConnectV2RelayAddress||o.walletConnectV2RelayAddress,s=t.walletConnectDeepLink||o.walletConnectDeepLink;e.walletConnectConfig={...t,walletConnectDeepLink:s,walletConnectV2RelayAddress:a}},!1,"setWalletConnectConfig");export{c as a,C as b,f as c};
|
|
2
|
+
//# sourceMappingURL=chunk-6D2RBTVV.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/store/actions/config/configActions.ts"],
|
|
4
|
+
"sourcesContent": ["import { fallbackWalletConnectConfigurations } from 'constants/walletConnect.constants';\nimport { WebsocketConnectionStatusEnum } from 'constants/websocket.constants';\nimport { WalletConnectConfig } from 'providers/strategies/WalletConnectProviderStrategy/types';\nimport { NativeAuthConfigType } from 'services/nativeAuth/nativeAuth.types';\nimport { getStore } from 'store/store';\n\nexport const setNativeAuthConfig = (config: NativeAuthConfigType) =>\n getStore().setState(\n ({ config: state }) => {\n state.nativeAuthConfig = config;\n },\n false,\n 'setNativeAuthConfig'\n );\n\nexport const setWebsocketStatus = (status: WebsocketConnectionStatusEnum) =>\n getStore().setState(\n ({ config: state }) => {\n state.websocketStatus = status;\n },\n false,\n 'setWebsocketStatus'\n );\n\nexport const setWalletConnectConfig = (config: WalletConnectConfig) =>\n getStore().setState(\n ({ config: state }) => {\n const walletConnectV2RelayAddress =\n config.walletConnectV2RelayAddress ||\n fallbackWalletConnectConfigurations.walletConnectV2RelayAddress;\n const walletConnectDeepLink =\n config.walletConnectDeepLink ||\n fallbackWalletConnectConfigurations.walletConnectDeepLink;\n\n state.walletConnectConfig = {\n ...config,\n walletConnectDeepLink,\n walletConnectV2RelayAddress\n };\n },\n false,\n 'setWalletConnectConfig'\n );\n"],
|
|
5
|
+
"mappings": "kFAMO,IAAMA,EAAuBC,GAClCC,EAAS,EAAE,SACT,CAAC,CAAE,OAAQC,CAAM,IAAM,CACrBA,EAAM,iBAAmBF,CAC3B,EACA,GACA,qBACF,EAEWG,EAAsBC,GACjCH,EAAS,EAAE,SACT,CAAC,CAAE,OAAQC,CAAM,IAAM,CACrBA,EAAM,gBAAkBE,CAC1B,EACA,GACA,oBACF,EAEWC,EAA0BL,GACrCC,EAAS,EAAE,SACT,CAAC,CAAE,OAAQC,CAAM,IAAM,CACrB,IAAMI,EACJN,EAAO,6BACPO,EAAoC,4BAChCC,EACJR,EAAO,uBACPO,EAAoC,sBAEtCL,EAAM,oBAAsB,CAC1B,GAAGF,EACH,sBAAAQ,EACA,4BAAAF,CACF,CACF,EACA,GACA,wBACF",
|
|
6
|
+
"names": ["setNativeAuthConfig", "config", "getStore", "state", "setWebsocketStatus", "status", "setWalletConnectConfig", "walletConnectV2RelayAddress", "fallbackWalletConnectConfigurations", "walletConnectDeepLink"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as S}from"./chunk-EAJBSX6Y.mjs";import{a as s}from"./chunk-DT6YLEPL.mjs";import{c as r,d as a}from"./chunk-CAA4VJRH.mjs";import{u as e}from"./chunk-4QDHGYT4.mjs";import{a as n}from"./chunk-QJSB5NX4.mjs";var u=t=>{let o=0,i=n(e())?.shard;return S(t)?(t.forEach(c=>{let m=s(c,i);o+=m?5*6e3:6e3}),o):(o=s(t,i)?5*6e3:6e3,o)};export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6G7ATMU7.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/store/selectors/configSelectors.ts"],
|
|
4
|
-
"sourcesContent": ["import { StoreType } from 'store/store.types';\n\nexport const configSelector = ({ config }: StoreType) => config;\n\nexport const nativeAuthConfigSelector = ({ config }: StoreType) =>\n config.nativeAuthConfig;\n\nexport const walletConnectConfigSelector = ({ config }: StoreType) => {\n return config.walletConnectConfig;\n};\n
|
|
5
|
-
"mappings": "AAEO,IAAMA,EAAiB,CAAC,CAAE,OAAAC,CAAO,IAAiBA,EAE5CC,EAA2B,CAAC,CAAE,OAAAD,CAAO,IAChDA,EAAO,iBAEIE,EAA8B,CAAC,CAAE,OAAAF,CAAO,IAC5CA,EAAO
|
|
6
|
-
"names": ["configSelector", "config", "nativeAuthConfigSelector", "walletConnectConfigSelector"
|
|
4
|
+
"sourcesContent": ["import { StoreType } from 'store/store.types';\n\nexport const configSelector = ({ config }: StoreType) => config;\n\nexport const nativeAuthConfigSelector = ({ config }: StoreType) =>\n config.nativeAuthConfig;\n\nexport const walletConnectConfigSelector = ({ config }: StoreType) => {\n return config.walletConnectConfig;\n};\n"],
|
|
5
|
+
"mappings": "AAEO,IAAMA,EAAiB,CAAC,CAAE,OAAAC,CAAO,IAAiBA,EAE5CC,EAA2B,CAAC,CAAE,OAAAD,CAAO,IAChDA,EAAO,iBAEIE,EAA8B,CAAC,CAAE,OAAAF,CAAO,IAC5CA,EAAO",
|
|
6
|
+
"names": ["configSelector", "config", "nativeAuthConfigSelector", "walletConnectConfigSelector"]
|
|
7
7
|
}
|