@dcl/shop 1.18.2-36596222687.commit-e723a5f → 1.18.2-36637356847.commit-825c9d5
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/_assets/{Activity-Cf5KdXNN.js → Activity-BOaDB-SB.js} +4 -4
- package/_assets/{AnimatedBackground-EY8ht4TC.js → AnimatedBackground-DCBZ7BDw.js} +6 -6
- package/_assets/{Assets-DzIogfEM.js → Assets-B8E0h7qR.js} +9 -9
- package/_assets/{Cart-B-ZbTank.js → Cart-DM05_xNx.js} +2 -2
- package/_assets/{Collection-C8Dd8FmT.js → Collection-D6kIIQ6_.js} +2 -2
- package/_assets/{CollectionCarousel-CFBhlfVv.js → CollectionCarousel-Dehf1Thf.js} +5 -5
- package/_assets/{Confetti-CruhEc0J.js → Confetti-BPJScoAz.js} +4 -4
- package/_assets/{ConstantsUtil-BidlXg_A.js → ConstantsUtil-D7hfpXqQ.js} +2 -2
- package/_assets/{ContentClient-DkVFbT-p.js → ContentClient-BcbapA9s.js} +2 -2
- package/_assets/{Creator-IEFgaaOA.js → Creator-BBriAgWf.js} +2 -2
- package/_assets/{CreditPackPicker-B6EOVAjz.js → CreditPackPicker-D69V0CD6.js} +2 -2
- package/_assets/{CreditRate-D6i8PuU3.js → CreditRate-B-k7N3m3.js} +2 -2
- package/_assets/{DeploymentBuilder-CpiE4qB4.js → DeploymentBuilder-CXecggpJ.js} +2 -2
- package/_assets/{EmotePlaybackBar-C9azQJjZ.js → EmotePlaybackBar-DYPCyQ4y.js} +3 -3
- package/_assets/{ErrorNotice-Iy-4Sj0K.js → ErrorNotice-CKxii-tV.js} +2 -2
- package/_assets/{Event-DPx7HS4D.js → Event-B8OGa99x.js} +2 -2
- package/_assets/{ExchangeController-DZQGs7wL.js → ExchangeController-t2bX9veN.js} +2 -2
- package/_assets/{Faq-bfuCP5Sr.js → Faq-LSM4lPCJ.js} +2 -2
- package/_assets/{Filters-B1xIl1HC.js → Filters-DV_qJCwA.js} +2 -2
- package/_assets/{GetCredits-D49nWGhw.js → GetCredits-ChO_EQm7.js} +2 -2
- package/_assets/{Grow-BedUDGV9.js → Grow-DJZgG82m.js} +2 -2
- package/_assets/{HelpersUtil-DoqSZaIg.js → HelpersUtil-Dj1-XrCJ.js} +2 -2
- package/_assets/{IssueModal-DXq0b45G.js → IssueModal-BDe6sPy3.js} +2 -2
- package/_assets/{ItemDetail-Bp3Ynp7x.js → ItemDetail-ca62wEjs.js} +2 -2
- package/_assets/{LoadMore-COLbfRMM.js → LoadMore-B0Bi3u4a.js} +2 -2
- package/_assets/{ManaPricingBanner-BKO02aom.js → ManaPricingBanner-CjIkhbPq.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-CBsgZtCt.js → ManaPricingBanner.styles-DVJ01x1X.js} +2 -2
- package/_assets/{MyAssets-Bt1eaSp8.js → MyAssets-DhEBGqnz.js} +2 -2
- package/_assets/{MyFavorites-DSPrsRBD.js → MyFavorites-BWQ0kvqP.js} +2 -2
- package/_assets/{MyStore-DHX0T0F5.js → MyStore-BE12t5gb.js} +2 -2
- package/_assets/{NetworkUtil-JX9Qt66q.js → NetworkUtil-BH3_oYP8.js} +2 -2
- package/_assets/{NotFound-BsbGRyK7.js → NotFound-CIkoFDZU.js} +2 -2
- package/_assets/{NotificationsBell-BKGnGtnc.js → NotificationsBell-DIOthP5u.js} +2 -2
- package/_assets/{OutfitDetail-CSdzWKWQ.js → OutfitDetail-D4lmP80k.js} +2 -2
- package/_assets/{OutfitPreview-WWFtHB-6.js → OutfitPreview-DmTaYZFo.js} +2 -2
- package/_assets/{OutfitStudio-BsrFNOYU.js → OutfitStudio-5cnXZS39.js} +2 -2
- package/_assets/{PaymentMethodStep-DpMhlmT5.js → PaymentMethodStep-CAh_5kV3.js} +5 -5
- package/_assets/{SaleCountdown-Ba7mqcVP.js → SaleCountdown-DjBevuJq.js} +2 -2
- package/_assets/{Spinner-DdIAbYe3.js → Spinner-ULhhBHPm.js} +2 -2
- package/_assets/{StoreSettings-DtNOEPT9.js → StoreSettings-h6jsL1PV.js} +3 -3
- package/_assets/{Success-Du_mUU9a.js → Success-D6Bavntm.js} +2 -2
- package/_assets/{SwapController-D2Tsn475.js → SwapController-B1fnL8H3.js} +2 -2
- package/_assets/{Tooltip-DC6b6Uko.js → Tooltip-C1GRffaf.js} +2 -2
- package/_assets/{TradeService-CI5HxvnS.js → TradeService-CA7g8s_N.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-DwBPxDY1.js → W3MFrameProviderSingleton-lQPmplQ2.js} +4 -4
- package/_assets/{WebCryptoP256-GRfawq6m.js → WebCryptoP256-2Fvt-3iX.js} +2 -2
- package/_assets/{basic-Ba6vMoqK.js → basic-WGnG5Ctv.js} +2 -2
- package/_assets/{biconomy-GzxuDIVy.js → biconomy-DAdWCRE2.js} +2 -2
- package/_assets/{browseLayout.styles-DnimQF1x.js → browseLayout.styles-CegyKe9B.js} +2 -2
- package/_assets/{browser-to6Yv8JB.js → browser-DDtzznZI.js} +2 -2
- package/_assets/{browser-CLK_ympl.js → browser-DeveOmzA.js} +2 -2
- package/_assets/{browser-ponyfill-Crh13GOd.js → browser-ponyfill-jzbj-jA4.js} +2 -2
- package/_assets/{buy-BkB20JeU.js → buy-DL6aFS_N.js} +2 -2
- package/_assets/{buy-gasless-nv4rwo_z.js → buy-gasless-akN-WrYj.js} +2 -2
- package/_assets/{ccip-BpggFcNB.js → ccip-DVdHD9LQ.js} +2 -2
- package/_assets/{ccip-2MLVT_N1.js → ccip-Dn4li1J3.js} +2 -2
- package/_assets/{chains-B-xRZLU-.js → chains-DhvEOFYj.js} +2 -2
- package/_assets/collectionPage.styles-D8fndBEc.js +41 -0
- package/_assets/{common-BynAIIbN.js → common-1xlKyxii.js} +2 -2
- package/_assets/{controller-CqDOFAHe.js → controller-Cl08Da2J.js} +3 -3
- package/_assets/{core-C_YgI0Td.js → core-BDZisDBX.js} +5 -5
- package/_assets/{createSvgIcon-B2Vg3paD.js → createSvgIcon-D-NeJHpD.js} +2 -2
- package/_assets/{crumbs.styles-J707O2uG.js → crumbs.styles-Dm-SKOog.js} +2 -2
- package/_assets/{custom-C4Ndgr3M.js → custom-DhOMKJIO.js} +2 -2
- package/_assets/{data-capture-BFFGHd8b.js → data-capture-BZFWqywn.js} +2 -2
- package/_assets/{dcl-schemas-LawD6Riy.js → dcl-schemas-OgkR3Xnp.js} +2 -2
- package/_assets/{decimals-jMhkjkOf.js → decimals-DVR7Gv-J.js} +2 -2
- package/_assets/{decimals-DLwOu0Zu.js → decimals-yDLHDrDe.js} +2 -2
- package/_assets/{detectExtension-xWXQ3kPM.js → detectExtension-BaFl5dmt.js} +2 -2
- package/_assets/{disposePreview-CYpHhisI.js → disposePreview-CON1sitU.js} +2 -2
- package/_assets/{email-CElqqZsc.js → email-C8B3uV55.js} +2 -2
- package/_assets/{embedded-wallet-C_RhasGd.js → embedded-wallet-dtLreoAu.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-CyiVsHYQ.js → emotion-styled.browser.esm-DPYok2W8.js} +2 -2
- package/_assets/{engine-aL9aWkzh.js → engine-8Z0r8sBN.js} +2 -2
- package/_assets/{errors-ByG36a5U.js → errors-BjM9HeNz.js} +2 -2
- package/_assets/{estimate-l1-fee-08qOiAeM.js → estimate-l1-fee-BoPGIBih.js} +2 -2
- package/_assets/{eth_estimateGas-BuEQRglB.js → eth_estimateGas-BCdsyBNm.js} +2 -2
- package/_assets/{eth_getStorageAt-DmyekUL-.js → eth_getStorageAt-crNxQf4F.js} +2 -2
- package/_assets/{eth_getTransactionCount-DJRzDmUM.js → eth_getTransactionCount-AvgV55ar.js} +2 -2
- package/_assets/{ethereum-CML2MbZ1.js → ethereum-DlBOC201.js} +2 -2
- package/_assets/{ethers-CDATtpGn.js → ethers-DqHzeHuT.js} +2 -2
- package/_assets/{events-otDV8pEE.js → events-VcRW8MP7.js} +2 -2
- package/_assets/{execute-DiM_499L.js → execute-vAVWh3cq.js} +3 -3
- package/_assets/{extractIPFS-FPEr940W.js → extractIPFS-Dq3YHYdL.js} +2 -2
- package/_assets/{features-DCfCpaRM.js → features-VnBmyyV1.js} +2 -2
- package/_assets/{fetchTokenMetadata-BV3jqOx2.js → fetchTokenMetadata-BKSOlGrn.js} +3 -3
- package/_assets/{field.styles--ZQi7zKo.js → field.styles-Dl9mum16.js} +2 -2
- package/_assets/{fortmatic-DQbHSYSc.js → fortmatic-DLZii_1J.js} +2 -2
- package/_assets/{get-bytecode-j8za_w6d.js → get-bytecode-X-2IhAtj.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-FG0VhjON.js → get-ecosystem-wallet-info-f36NBunu.js} +2 -2
- package/_assets/{getBalance-BXCZcj7F.js → getBalance-BftrT0-h.js} +3 -3
- package/_assets/{getInstalledModules-DEOGl_YT.js → getInstalledModules-DPTTTcBw.js} +2 -2
- package/_assets/{getNFT-D-eiHaOl.js → getNFT-C_cJwHF2.js} +2 -2
- package/_assets/{getNFT-DknbOTE0.js → getNFT-DjGsZPMG.js} +3 -3
- package/_assets/{grid.styles-CqC1trF-.js → grid.styles-BO5hvrUj.js} +2 -2
- package/_assets/{hashTypedData-CVyFCHan.js → hashTypedData-DAgXidRT.js} +2 -2
- package/_assets/{hashTypedData-BNLh4WB4.js → hashTypedData-vZpJz8B-.js} +2 -2
- package/_assets/{import-COrWT_bb.js → import-Yr1lXrln.js} +2 -2
- package/_assets/{in-app-DzxYrr-h.js → in-app-CkVGPZSJ.js} +2 -2
- package/_assets/{in-app-wallet-calls-DLW77sYV.js → in-app-wallet-calls-Cpl9jNx_.js} +2 -2
- package/_assets/{index-oU_1K2qI.js → index-7qIkCapA.js} +2 -2
- package/_assets/{index-Dr9YeK7Q.js → index-B2uF3DJM.js} +2 -2
- package/_assets/{index-DeCa1UEM.js → index-B3ZXdhup.js} +2 -2
- package/_assets/{index-C6nFFoT0.js → index-B4TtInR3.js} +2 -2
- package/_assets/{index-BiZfhmnn.js → index-B8oQm36C.js} +2 -2
- package/_assets/{index-seP4Qf5k.js → index-BEPNCFGX.js} +2 -2
- package/_assets/{index-B1H9rkP5.js → index-BGW18IEb.js} +2 -2
- package/_assets/{index-BVgsaChe.css → index-BJvJlfNW.css} +1 -1
- package/_assets/{index-CA_Cbayy.js → index-BPBo8wh2.js} +2 -2
- package/_assets/{index-OYB8G9r6.js → index-BU6C8CpN.js} +2 -2
- package/_assets/{index-BF5UlKi7.js → index-BXOSJuGz.js} +2 -2
- package/_assets/{index-BdvwIWuW.js → index-BXwe5uMy.js} +2 -2
- package/_assets/{index-ldlFtIb6.js → index-BY3o0_Rg.js} +3 -3
- package/_assets/{index-DIWXPWGD.js → index-BZe9O30I.js} +421 -421
- package/_assets/{index-DwOQ8J2g.js → index-B_Ew-epk.js} +2 -2
- package/_assets/{index-DhRK11hD.js → index-B_ej9BPC.js} +4 -4
- package/_assets/{index-BCrnlTJQ.js → index-Bb5cZSRf.js} +2 -2
- package/_assets/{index-pCerp87o.js → index-BfD3vhaf.js} +2 -2
- package/_assets/{index-C0oDP61j.js → index-Bgzd-o7-.js} +2 -2
- package/_assets/{index-Cvs44vvq.js → index-Bn7T_CNN.js} +2 -2
- package/_assets/{index-BjvhsRri.js → index-Bns4uVVf.js} +3 -3
- package/_assets/{index-DbSiDeEn.js → index-BqDPSWiR.js} +2 -2
- package/_assets/{index-BkTB_F8x.js → index-Bu0NJDwa.js} +2 -2
- package/_assets/{index-BQow-znL.js → index-BvTadfAU.js} +2 -2
- package/_assets/{index-H0tUO8sX.js → index-C5Wm4k9d.js} +2 -2
- package/_assets/{index-DbhDHyIK.js → index-C8wSYeVO.js} +2 -2
- package/_assets/{index-ByeIlFtr.js → index-CE5dloga.js} +2 -2
- package/_assets/{index-vcs-Pnov.js → index-CE9TvnNz.js} +2 -2
- package/_assets/{index-Cty--X-i.js → index-CQy_yJhb.js} +2 -2
- package/_assets/{index-QgcvhcnT.js → index-CTkFfEW6.js} +2 -2
- package/_assets/{index-BEW_JtFA.js → index-CV_jtXEI.js} +2 -2
- package/_assets/{index-CypApllk.js → index-CWsg9Kvt.js} +2 -2
- package/_assets/{index-CdzPUuFR.js → index-CYmJbQez.js} +3 -3
- package/_assets/{index-Z1ghR6qc.js → index-CZfjcTrs.js} +2 -2
- package/_assets/{index-sRzDSrAK.js → index-Cc9ETBk-.js} +2 -2
- package/_assets/{index-6mGMF8LS.js → index-Cfw0sRIj.js} +2 -2
- package/_assets/{index-DoPxWnXP.js → index-CvYhIjIw.js} +2 -2
- package/_assets/{index-C6p9jlWD.js → index-CwjUycdS.js} +2 -2
- package/_assets/{index-NG8LLSeq.js → index-D-7yBxzc.js} +2 -2
- package/_assets/{index-CnjWDman.js → index-D1-jMfxh.js} +2 -2
- package/_assets/{index-yS-SQJco.js → index-D72ddkdN.js} +2 -2
- package/_assets/{index-6_P0e194.js → index-D7uzT9v-.js} +2 -2
- package/_assets/{index-BG42uLkG.js → index-D8nZ-jDW.js} +2 -2
- package/_assets/{index-CW7Q2x4L.js → index-DDMXNW4L.js} +2 -2
- package/_assets/{index-BbjmXZXI.js → index-DEcoW3Fj.js} +3 -3
- package/_assets/{index-BupPelkA.js → index-DJNx4cK1.js} +2 -2
- package/_assets/{index-BXAXbJM-.js → index-DKTFxU8r.js} +2 -2
- package/_assets/{index-Ca8qGOAa.js → index-DO7AMeoa.js} +2 -2
- package/_assets/{index-qs3T-yNi.js → index-DObjyPbH.js} +2 -2
- package/_assets/{index-Bh3Z7FM8.js → index-DQiGofV2.js} +2 -2
- package/_assets/{index-Cm4D01ZT.js → index-DQivOzo2.js} +2 -2
- package/_assets/{index-cZJEpWIc.js → index-DSz4o4Je.js} +2 -2
- package/_assets/{index-Bpz_UwBF.js → index-DWhX9gtv.js} +2 -2
- package/_assets/{index-BUq1JZc1.js → index-DZaOsJFK.js} +2 -2
- package/_assets/{index-DZ1sT9j2.js → index-Dfjp4UIp.js} +2 -2
- package/_assets/{index-CQVnuBPI.js → index-DwQFPClc.js} +2 -2
- package/_assets/{index-C1QY3W7n.js → index-FchR7gSb.js} +2 -2
- package/_assets/{index-D1jvenOF.js → index-HS7_UPOd.js} +2 -2
- package/_assets/{index-ezdhnuBZ.js → index-L9UD0UUT.js} +2 -2
- package/_assets/{index-BGfrzvVr.js → index-ROlx3Pmh.js} +4 -4
- package/_assets/{index-tAk21r6Y.js → index-YEbRJWkl.js} +2 -2
- package/_assets/{index-DH1Iw2AE.js → index-f9OSlngA.js} +2 -2
- package/_assets/{index-DrIG769R.js → index-rHvlGRCv.js} +2 -2
- package/_assets/{index-n6QYulUY.js → index-scJRzKFi.js} +4 -4
- package/_assets/{index-CmYwsp-d.js → index-sxlMTD1e.js} +2 -2
- package/_assets/{index-B3aF3s9f.js → index-w0a4GNJO.js} +2 -2
- package/_assets/{index-CM86Ub3o.js → index-z7I5BqcT.js} +2 -2
- package/_assets/{index-5HeOpljO.js → index-ztZTfizM.js} +2 -2
- package/_assets/{index.es--5fJFQ-c.js → index.es-3yhT-afv.js} +2 -2
- package/_assets/{index.es-DTDh_G38.js → index.es-BcA_HmLy.js} +5 -5
- package/_assets/{index.es-DrkS4Adj.js → index.es-CHzsJBZX.js} +2 -2
- package/_assets/{index.es-DULSSGhE.js → index.es-CWw1jqy2.js} +2 -2
- package/_assets/{items-empty-B0i35Lk8.js → items-empty-8_aTRszf.js} +2 -2
- package/_assets/{jump-Bc7sAftP.js → jump-C1l2pbYY.js} +2 -2
- package/_assets/{linkAccount-F05SHCCl.js → linkAccount-CSENce9R.js} +2 -2
- package/_assets/{loader-logo-D8XVDPHH.js → loader-logo-Ctl7jE4d.js} +2 -2
- package/_assets/{localBatchGatewayRequest-DMpeSwiY.js → localBatchGatewayRequest-LQwWSW0t.js} +2 -2
- package/_assets/{modal.styles-DydOhlTY.js → modal.styles-DCTumybB.js} +2 -2
- package/_assets/{native-vSt5TA__.js → native-DEdJNx2w.js} +2 -2
- package/_assets/{networks-Brts_tWs.js → networks-BTxPNDnS.js} +2 -2
- package/_assets/{onramp-CnMXXIAc.js → onramp-BLPNmKGS.js} +2 -2
- package/_assets/{openzeppelin-r3JAfUn7.js → openzeppelin-Dh3FauvL.js} +2 -2
- package/_assets/{ownerOf-DPIRA5Vz.js → ownerOf-Dd0qwlc6.js} +2 -2
- package/_assets/{parseNft-C_Uw6K27.js → parseNft-DEUUZOq-.js} +3 -3
- package/_assets/{parseSignature-BMsopq4g.js → parseSignature-DAsMpuQz.js} +2 -2
- package/_assets/{parseSignature-YyAbArh3.js → parseSignature-P8a9Zsvp.js} +4 -4
- package/_assets/{passkeys-C_DVGfca.js → passkeys-BrR4wD46.js} +2 -2
- package/_assets/{pay-with-exchange-CxvmZzq4.js → pay-with-exchange-ftgVAhdm.js} +2 -2
- package/_assets/{prepare-contract-call-BBtEhvR_.js → prepare-contract-call-BLAPB3co.js} +2 -2
- package/_assets/{qr-overlay-BEKuEjSU.js → qr-overlay-BFEwwNm_.js} +4 -4
- package/_assets/{react-CTFQnYcx.js → react-BUrQZkQz.js} +2 -2
- package/_assets/{receive-foclFUz-.js → receive-uLX7VZbx.js} +2 -2
- package/_assets/{resolveImplementation-B9nWZhGK.js → resolveImplementation-Boph8OZd.js} +2 -2
- package/_assets/{resume-buy-Dr76xkA-.js → resume-buy-C7PQctXb.js} +2 -2
- package/_assets/{resume-name--gmDMNGt.js → resume-name-CMSdNFnn.js} +2 -2
- package/_assets/{rpc-BifJAmub.js → rpc-QRauRlVM.js} +2 -2
- package/_assets/{sales-empty-CLbAX299.js → sales-empty-RO4M61Bi.js} +2 -2
- package/_assets/{search-empty-DrELTTiq.js → search-empty-CSUAho6H.js} +2 -2
- package/_assets/{secp256k1-CCsKPXBm.js → secp256k1-BCu4fIsA.js} +2 -2
- package/_assets/{secp256k1-BtUYGtzb.js → secp256k1-ByDS1yIu.js} +2 -2
- package/_assets/{secp256k1-Cq4gQOKU.js → secp256k1-DoZCtomu.js} +2 -2
- package/_assets/{send-C8VpVpxB.js → send-_f-tnJ7l.js} +2 -2
- package/_assets/{send-batch-transaction-ZprBauoB.js → send-batch-transaction-COicQUlJ.js} +2 -2
- package/_assets/{send-eip712-transaction-VsiniCRa.js → send-eip712-transaction-CbLSn4MP.js} +3 -3
- package/_assets/{send-gasless-transaction-DYgzq_No.js → send-gasless-transaction-DBTdCbHy.js} +3 -3
- package/_assets/{send-transaction-CGQC5q2a.js → send-transaction-eS3cn1U6.js} +3 -3
- package/_assets/{sendMetaTransaction-B2U8O8jD.js → sendMetaTransaction-CIpZZkUk.js} +2 -2
- package/_assets/{sendRawTransaction-DpzoAN9l.js → sendRawTransaction-BJhaPoFM.js} +4 -4
- package/_assets/{sentry-PglMJ9Ft.js → sentry-DyLfTiSb.js} +3 -3
- package/_assets/{serializeTransaction-C_2EfKpy.js → serializeTransaction-Cg0Mu0rp.js} +2 -2
- package/_assets/{session-proposal-y93JmFJH.js → session-proposal-CTjJUlbV.js} +2 -2
- package/_assets/{session-request-Zeue-lw_.js → session-request-BxpWrkMB.js} +3 -3
- package/_assets/{sha256-BdCuzIkL.js → sha256-CnPmFRlr.js} +2 -2
- package/_assets/{sha3-vj4MKon-.js → sha3-DzF74Fsc.js} +2 -2
- package/_assets/signin-empty-RkHxV8yP.js +2 -0
- package/_assets/{signing-IU0Dero0.js → signing-CXQFnhbL.js} +4 -4
- package/_assets/{skeleton.styles-C4LNtWm6.js → skeleton.styles-CSK9oM8z.js} +2 -2
- package/_assets/{socials-DBsbLpk4.js → socials-DXrH7mfq.js} +2 -2
- package/_assets/{styled-CDcAnixz.js → styled-e10E42am.js} +2 -2
- package/_assets/{swaps-B9QRktDz.js → swaps-BVOOQJtb.js} +2 -2
- package/_assets/{thirdweb-DqAPPGHB.js → thirdweb-CqXTMLMh.js} +4 -4
- package/_assets/{to-serializable-transaction-CTCboJfL.js → to-serializable-transaction-Rj3zkFd_.js} +3 -3
- package/_assets/{totalSupply-BuwGB16i.js → totalSupply-BRxEH93C.js} +2 -2
- package/_assets/{trade-encoding-3qd1V12A.js → trade-encoding-DfPRc5Jc.js} +2 -2
- package/_assets/{transaction-Dfmi860L.js → transaction-CrhlWCWj.js} +2 -2
- package/_assets/{transactionReceipt-CTh7xQfA.js → transactionReceipt-GPDArFY8.js} +2 -2
- package/_assets/{transactions-DMVHelBa.js → transactions-C_6jqb5f.js} +2 -2
- package/_assets/{useInfiniteGrid-Dp-bfuNN.js → useInfiniteGrid-CTLLOXuj.js} +2 -2
- package/_assets/{useStore-Ci4aU3n_.js → useStore-DRNMRbrq.js} +3 -3
- package/_assets/{useTheme-BWFm_EuO.js → useTheme-Bz-O5SoV.js} +2 -2
- package/_assets/{utils-1Hzqe_MF.js → utils-Dp9zU4fq.js} +2 -2
- package/_assets/{verifyHash-BW-27VxT.js → verifyHash-BuQb0nyx.js} +2 -2
- package/_assets/{w3m-modal-Bi1bkcMH.js → w3m-modal-BQhVkoUu.js} +2 -2
- package/_assets/{w3m-modal-BAtlTQfj.js → w3m-modal-Cx58A78Q.js} +2 -2
- package/_assets/{wait-for-tx-receipt-BibH3X8g.js → wait-for-tx-receipt-Cq2bVMbq.js} +2 -2
- package/_assets/{wallets-wKNC0EeE.js → wallets-BOYud1KV.js} +6 -6
- package/_assets/{web-connector-Bj8Y6_NP.js → web-connector-DVSwza9m.js} +4 -4
- package/_assets/{writeContract-DHC82gAe.js → writeContract-QfoBI3jg.js} +2 -2
- package/_assets/{zora-sepolia-DvJVYka5.js → zora-sepolia-D5dvAbrT.js} +2 -2
- package/_assets/{zoraTestnet-B0IQcjzO.js → zoraTestnet-CliKS5z3.js} +2 -2
- package/index.html +12 -12
- package/package.json +2 -2
- package/_assets/collectionPage.styles-CkYzWdtw.js +0 -41
- package/_assets/signin-empty-CCboG9k9.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{B as M}from"./dcl-schemas-LawD6Riy.js";import{B as Tt,m as Mt,K as ot,o as J,q as Bt,Y as F,P as $t,F as B,V as R,r as z,t as At,u as Lt}from"./wallets-wKNC0EeE.js";import"./index-B1H9rkP5.js";import{b as Jt,o as g,c as Et}from"./index-D1jvenOF.js";import{f as P}from"./index.es-DULSSGhE.js";import{N as zt}from"./index-BjvhsRri.js";import"./react-CTFQnYcx.js";import"./signing-IU0Dero0.js";import"./prepare-contract-call-BBtEhvR_.js";import"./utils-1Hzqe_MF.js";import"./sentry-PglMJ9Ft.js";import"./index-DIWXPWGD.js";import"./ethers-CDATtpGn.js";import"./intl-AKLEHPeO.js";import"./to-serializable-transaction-CTCboJfL.js";import"./transaction-Dfmi860L.js";import"./get-bytecode-j8za_w6d.js";import"./execute-DiM_499L.js";import"./detectExtension-xWXQ3kPM.js";import"./linkAccount-F05SHCCl.js";import"./index-n6QYulUY.js";import"./ethereum-CML2MbZ1.js";import"./types-BeDU9GfL.js";import"./store-80QKZ2rN.js";import"./hashTypedData-BNLh4WB4.js";import"./send-transaction-CGQC5q2a.js";import"./eth_sendRawTransaction-DYAsy3sS.js";import"./index-OpYIGLSa.js";import"./index-seP4Qf5k.js";import"./index-BG42uLkG.js";import"./browser-ponyfill-Crh13GOd.js";import"./events-otDV8pEE.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new i.Error().stack;t&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[t]="4ab2a32b-c7dc-4eed-99f6-5e1a6385b902",i._sentryDebugIdIdentifier="sentry-dbid-4ab2a32b-c7dc-4eed-99f6-5e1a6385b902")}catch{}})();const ct="error",Gt="wss://relay.walletconnect.org",Vt="wc",Kt="universal_provider",x=`${Vt}@2:${Kt}:`,St="https://rpc.walletconnect.org/v1/",qt="generic",Wt=`${St}bundler`,_="call_status",Yt=86400,v={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};function it(i){return i==null||typeof i!="object"&&typeof i!="function"}function Nt(i){return Object.getOwnPropertySymbols(i).filter(t=>Object.prototype.propertyIsEnumerable.call(i,t))}function Dt(i){return i==null?i===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(i)}const Qt="[object RegExp]",_t="[object String]",Ft="[object Number]",Rt="[object Boolean]",xt="[object Arguments]",Xt="[object Symbol]",Zt="[object Date]",te="[object Map]",ee="[object Set]",ie="[object Array]",se="[object ArrayBuffer]",re="[object Object]",ne="[object DataView]",ae="[object Uint8Array]",oe="[object Uint8ClampedArray]",ce="[object Uint16Array]",he="[object Uint32Array]",pe="[object Int8Array]",ue="[object Int16Array]",le="[object Int32Array]",de="[object Float32Array]",fe="[object Float64Array]";function st(i){return ArrayBuffer.isView(i)&&!(i instanceof DataView)}function me(i,t){return D(i,void 0,i,new Map,t)}function D(i,t,e,s=new Map,n=void 0){const a=n==null?void 0:n(i,t,e,s);if(a!=null)return a;if(it(i))return i;if(s.has(i))return s.get(i);if(Array.isArray(i)){const r=new Array(i.length);s.set(i,r);for(let o=0;o<i.length;o++)r[o]=D(i[o],o,e,s,n);return Object.hasOwn(i,"index")&&(r.index=i.index),Object.hasOwn(i,"input")&&(r.input=i.input),r}if(i instanceof Date)return new Date(i.getTime());if(i instanceof RegExp){const r=new RegExp(i.source,i.flags);return r.lastIndex=i.lastIndex,r}if(i instanceof Map){const r=new Map;s.set(i,r);for(const[o,c]of i)r.set(o,D(c,o,e,s,n));return r}if(i instanceof Set){const r=new Set;s.set(i,r);for(const o of i)r.add(D(o,void 0,e,s,n));return r}if(typeof M<"u"&&M.isBuffer(i))return i.subarray();if(st(i)){const r=new(Object.getPrototypeOf(i)).constructor(i.length);s.set(i,r);for(let o=0;o<i.length;o++)r[o]=D(i[o],o,e,s,n);return r}if(i instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer)return i.slice(0);if(i instanceof DataView){const r=new DataView(i.buffer.slice(0),i.byteOffset,i.byteLength);return s.set(i,r),y(r,i,e,s,n),r}if(typeof File<"u"&&i instanceof File){const r=new File([i],i.name,{type:i.type});return s.set(i,r),y(r,i,e,s,n),r}if(i instanceof Blob){const r=new Blob([i],{type:i.type});return s.set(i,r),y(r,i,e,s,n),r}if(i instanceof Error){const r=new i.constructor;return s.set(i,r),r.message=i.message,r.name=i.name,r.stack=i.stack,r.cause=i.cause,y(r,i,e,s,n),r}if(typeof i=="object"&&ve(i)){const r=Object.create(Object.getPrototypeOf(i));return s.set(i,r),y(r,i,e,s,n),r}return i}function y(i,t,e=i,s,n){const a=[...Object.keys(t),...Nt(t)];for(let r=0;r<a.length;r++){const o=a[r],c=Object.getOwnPropertyDescriptor(i,o);(c==null||c.writable)&&(i[o]=D(t[o],o,e,s,n))}}function ve(i){switch(Dt(i)){case xt:case ie:case se:case ne:case Rt:case Zt:case de:case fe:case pe:case ue:case le:case te:case Ft:case re:case Qt:case ee:case _t:case Xt:case ae:case oe:case ce:case he:return!0;default:return!1}}function ge(i,t){return me(i,(e,s,n,a)=>{if(typeof i=="object")switch(Object.prototype.toString.call(i)){case Ft:case _t:case Rt:{const r=new i.constructor(i==null?void 0:i.valueOf());return y(r,i),r}case xt:{const r={};return y(r,i),r.length=i.length,r[Symbol.iterator]=i[Symbol.iterator],r}default:return}})}function ht(i){return ge(i)}function pt(i){return i!==null&&typeof i=="object"&&Dt(i)==="[object Arguments]"}function ut(i){return typeof i=="object"&&i!==null}function Pe(){}function we(i){return st(i)}function be(i){var e;if(typeof i!="object"||i==null)return!1;if(Object.getPrototypeOf(i)===null)return!0;if(Object.prototype.toString.call(i)!=="[object Object]"){const s=i[Symbol.toStringTag];return s==null||!((e=Object.getOwnPropertyDescriptor(i,Symbol.toStringTag))!=null&&e.writable)?!1:i.toString()===`[object ${s}]`}let t=i;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(i)===t}function ye(i){if(it(i))return i;if(Array.isArray(i)||st(i)||i instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer)return i.slice(0);const t=Object.getPrototypeOf(i),e=t.constructor;if(i instanceof Date||i instanceof Map||i instanceof Set)return new e(i);if(i instanceof RegExp){const s=new e(i);return s.lastIndex=i.lastIndex,s}if(i instanceof DataView)return new e(i.buffer.slice(0));if(i instanceof Error){const s=new e(i.message);return s.stack=i.stack,s.name=i.name,s.cause=i.cause,s}if(typeof File<"u"&&i instanceof File)return new e([i],i.name,{type:i.type,lastModified:i.lastModified});if(typeof i=="object"){const s=Object.create(t);return Object.assign(s,i)}return i}function Ie(i,...t){const e=t.slice(0,-1),s=t[t.length-1];let n=i;for(let a=0;a<e.length;a++){const r=e[a];n=Z(n,r,s,new Map)}return n}function Z(i,t,e,s){if(it(i)&&(i=Object(i)),t==null||typeof t!="object")return i;if(s.has(t))return ye(s.get(t));if(s.set(t,i),Array.isArray(t)){t=t.slice();for(let a=0;a<t.length;a++)t[a]=t[a]??void 0}const n=[...Object.keys(t),...Nt(t)];for(let a=0;a<n.length;a++){const r=n[a];let o=t[r],c=i[r];if(pt(o)&&(o={...o}),pt(c)&&(c={...c}),typeof M<"u"&&M.isBuffer(o)&&(o=ht(o)),Array.isArray(o))if(typeof c=="object"&&c!=null){const l=[],h=Reflect.ownKeys(c);for(let w=0;w<h.length;w++){const d=h[w];l[d]=c[d]}c=l}else c=[];const u=e(c,o,r,i,t,s);u!=null?i[r]=u:Array.isArray(o)||ut(c)&&ut(o)?i[r]=Z(c,o,e,s):c==null&&be(o)?i[r]=Z({},o,e,s):c==null&&we(o)?i[r]=ht(o):(c===void 0||o!==void 0)&&(i[r]=o)}return i}function Ce(i,...t){return Ie(i,...t,Pe)}var Oe=Object.defineProperty,je=Object.defineProperties,He=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,dt=(i,t,e)=>t in i?Oe(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,U=(i,t)=>{for(var e in t||(t={}))$e.call(t,e)&&dt(i,e,t[e]);if(lt)for(var e of lt(t))Ae.call(t,e)&&dt(i,e,t[e]);return i},Ee=(i,t)=>je(i,He(t));function f(i,t,e){var s;const n=B(i);return((s=t.rpcMap)==null?void 0:s[n.reference])||`${St}?chainId=${n.namespace}:${n.reference}&projectId=${e}`}function I(i){return i.includes(":")?i.split(":")[1]:i}function Ut(i){return i.map(t=>`${t.split(":")[0]}:${t.split(":")[1]}`)}function Se(i,t){const e=Object.keys(t.namespaces).filter(n=>n.includes(i));if(!e.length)return[];const s=[];return e.forEach(n=>{const a=t.namespaces[n].accounts;s.push(...a)}),s}function ft(i){return Object.fromEntries(Object.entries(i).filter(([t,e])=>{var s,n;return((s=e==null?void 0:e.chains)==null?void 0:s.length)&&((n=e==null?void 0:e.chains)==null?void 0:n.length)>0}))}function k(i={},t={}){const e=ft(mt(i)),s=ft(mt(t));return Ce(e,s)}function mt(i){var t,e,s,n,a;const r={};if(!R(i))return r;for(const[o,c]of Object.entries(i)){const u=$t(o)?[o]:c.chains,l=c.methods||[],h=c.events||[],w=c.rpcMap||{},d=F(o);r[d]=Ee(U(U({},r[d]),c),{chains:z(u,(t=r[d])==null?void 0:t.chains),methods:z(l,(e=r[d])==null?void 0:e.methods),events:z(h,(s=r[d])==null?void 0:s.events)}),(R(w)||R(((n=r[d])==null?void 0:n.rpcMap)||{}))&&(r[d].rpcMap=U(U({},w),(a=r[d])==null?void 0:a.rpcMap))}return r}function vt(i){return i.includes(":")?i.split(":")[2]:i}function gt(i){const t={};for(const[e,s]of Object.entries(i)){const n=s.methods||[],a=s.events||[],r=s.accounts||[],o=$t(e)?[e]:s.chains?s.chains:Ut(s.accounts);t[e]={chains:o,methods:n,events:a,accounts:r}}return t}function G(i){return typeof i=="number"?i:i.includes("0x")?parseInt(i,16):(i=i.includes(":")?i.split(":")[1]:i,isNaN(Number(i))?i:Number(i))}function qe(i){try{const t=JSON.parse(i);return typeof t=="object"&&t!==null&&!Array.isArray(t)}catch{return!1}}const kt={},p=i=>kt[i],V=(i,t)=>{kt[i]=t};var Ne=Object.defineProperty,Pt=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,wt=(i,t,e)=>t in i?Ne(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,bt=(i,t)=>{for(var e in t||(t={}))De.call(t,e)&&wt(i,e,t[e]);if(Pt)for(var e of Pt(t))_e.call(t,e)&&wt(i,e,t[e]);return i};const yt="eip155",Fe=["atomic","flow-control","paymasterService","sessionKeys","auxiliaryFunds"],Re=i=>i&&i.startsWith("0x")?BigInt(i).toString(10):i,K=i=>i&&i.startsWith("0x")?i:`0x${BigInt(i).toString(16)}`,It=i=>Object.keys(i).filter(t=>Fe.includes(t)).reduce((t,e)=>(t[e]=xe(i[e]),t),{}),xe=i=>typeof i=="string"&&qe(i)?JSON.parse(i):i,Ue=(i,t,e)=>{const{sessionProperties:s={},scopedProperties:n={}}=i,a={};if(!R(n)&&!R(s))return;const r=It(s);for(const o of e){const c=Re(o);if(!c)continue;a[K(c)]=r;const u=n==null?void 0:n[`${yt}:${c}`];if(u){const l=u==null?void 0:u[`${yt}:${c}:${t}`];a[K(c)]=bt(bt({},a[K(c)]),It(l||u))}}for(const[o,c]of Object.entries(a))Object.keys(c).length===0&&delete a[o];return Object.keys(a).length>0?a:void 0};var ke=Object.defineProperty,Te=(i,t,e)=>t in i?ke(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Me=(i,t,e)=>Te(i,t+"",e);let W;class rt{constructor(t){Me(this,"storage"),this.storage=t}async getItem(t){return await this.storage.getItem(t)}async setItem(t,e){return await this.storage.setItem(t,e)}async removeItem(t){return await this.storage.removeItem(t)}static getStorage(t){return W||(W=new rt(t)),W}}var Be=Object.defineProperty,Le=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ot=(i,t,e)=>t in i?Be(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Ve=(i,t)=>{for(var e in t||(t={}))ze.call(t,e)&&Ot(i,e,t[e]);if(Ct)for(var e of Ct(t))Ge.call(t,e)&&Ot(i,e,t[e]);return i},Ke=(i,t)=>Le(i,Je(t));async function We(i,t){const e=B(i.result.capabilities.caip345.caip2),s=i.result.capabilities.caip345.transactionHashes,n=await Promise.allSettled(s.map(h=>Ye(e.reference,h,t))),a=n.filter(h=>h.status==="fulfilled").map(h=>h.value).filter(h=>h);n.filter(h=>h.status==="rejected").forEach(h=>console.warn("Failed to fetch transaction receipt:",h.reason));const r=!a.length||a.some(h=>!h),o=a.every(h=>(h==null?void 0:h.status)==="0x1"),c=a.every(h=>(h==null?void 0:h.status)==="0x0"),u=a.some(h=>(h==null?void 0:h.status)==="0x0");let l;return r?l=100:o?l=200:c?l=500:u&&(l=600),{id:i.result.id,version:i.request.version,atomic:i.request.atomicRequired,chainId:i.request.chainId,capabilities:i.result.capabilities,receipts:a,status:l}}async function Ye(i,t,e){return await e(parseInt(i)).request(Et("eth_getTransactionReceipt",[t]))}async function Qe({sendCalls:i,storage:t}){const e=await t.getItem(_);await t.setItem(_,Ke(Ve({},e),{[i.result.id]:{request:i.request,result:i.result,expiry:Lt(Yt)}}))}async function Xe({resultId:i,storage:t}){const e=await t.getItem(_);if(e){delete e[i],await t.setItem(_,e);for(const s in e)At(e[s].expiry)&&delete e[s];await t.setItem(_,e)}}async function Ze({resultId:i,storage:t}){const e=await t.getItem(_),s=e==null?void 0:e[i];if(s&&!At(s.expiry))return s;await Xe({resultId:i,storage:t})}var ti=Object.defineProperty,ei=(i,t,e)=>t in i?ti(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,C=(i,t,e)=>ei(i,typeof t!="symbol"?t+"":t,e);class ii{constructor(t){C(this,"name","polkadot"),C(this,"client"),C(this,"httpProviders"),C(this,"events"),C(this,"namespace"),C(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getAccounts(){const t=this.namespace.accounts;return t?t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var si=Object.defineProperty,ri=Object.defineProperties,ni=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,ai=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable,tt=(i,t,e)=>t in i?si(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Y=(i,t)=>{for(var e in t||(t={}))ai.call(t,e)&&tt(i,e,t[e]);if(jt)for(var e of jt(t))oi.call(t,e)&&tt(i,e,t[e]);return i},Q=(i,t)=>ri(i,ni(t)),b=(i,t,e)=>tt(i,typeof t!="symbol"?t+"":t,e);class ci{constructor(t){b(this,"name","eip155"),b(this,"client"),b(this,"chainId"),b(this,"namespace"),b(this,"httpProviders"),b(this,"events"),b(this,"storage"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain()),this.storage=rt.getStorage(this.client.core.storage)}async request(t){switch(t.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(t);case"eth_chainId":return parseInt(this.getDefaultChain());case"wallet_getCapabilities":return await this.getCapabilities(t);case"wallet_getCallsStatus":return await this.getCallStatus(t);case"wallet_sendCalls":return await this.sendCalls(t)}return this.namespace.methods.includes(t.request.method)?await this.client.request(t):this.getHttpProvider().request(t.request)}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(parseInt(t),e),this.chainId=parseInt(t),this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}createHttpProvider(t,e){const s=e||f(`${this.name}:${t}`,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=parseInt(I(e));t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}getHttpProvider(t){const e=t||this.chainId;return this.httpProviders[e]||(this.httpProviders=Q(Y({},this.httpProviders),{[e]:this.createHttpProvider(e)}),this.httpProviders[e])}async handleSwitchChain(t){var e,s;let n=t.request.params?(e=t.request.params[0])==null?void 0:e.chainId:"0x0";n=n.startsWith("0x")?n:`0x${n}`;const a=parseInt(n,16);if(this.isChainApproved(a))this.setDefaultChain(`${a}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:t.topic,request:{method:t.request.method,params:[{chainId:n}]},chainId:(s=this.namespace.chains)==null?void 0:s[0]}),this.setDefaultChain(`${a}`);else throw new Error(`Failed to switch to chain 'eip155:${a}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(t){return this.namespace.chains.includes(`${this.name}:${t}`)}async getCapabilities(t){var e,s,n,a,r;const o=(s=(e=t.request)==null?void 0:e.params)==null?void 0:s[0],c=((a=(n=t.request)==null?void 0:n.params)==null?void 0:a[1])||[];if(!o)throw new Error("Missing address parameter in `wallet_getCapabilities` request");const u=this.client.session.get(t.topic),l=((r=u==null?void 0:u.sessionProperties)==null?void 0:r.capabilities)||{},h=`${o}${c.join(",")}`,w=l==null?void 0:l[h];if(w)return w;let d;try{d=Ue(u,o,c)}catch(L){console.warn("Failed to extract capabilities from session",L)}if(d)return d;const at=await this.client.request(t);try{await this.client.session.update(t.topic,{sessionProperties:Q(Y({},u.sessionProperties||{}),{capabilities:Q(Y({},l||{}),{[h]:at})})})}catch(L){console.warn("Failed to update session with capabilities",L)}return at}async getCallStatus(t){var e,s,n;const a=this.client.session.get(t.topic),r=(e=a.sessionProperties)==null?void 0:e.bundler_name;if(r){const u=this.getBundlerUrl(t.chainId,r);try{return await this.getUserOperationReceipt(u,t)}catch(l){console.warn("Failed to fetch call status from bundler",l,u)}}const o=(s=a.sessionProperties)==null?void 0:s.bundler_url;if(o)try{return await this.getUserOperationReceipt(o,t)}catch(u){console.warn("Failed to fetch call status from custom bundler",u,o)}const c=await Ze({resultId:(n=t.request.params)==null?void 0:n[0],storage:this.storage});if(c)try{return await We(c,this.getHttpProvider.bind(this))}catch(u){console.warn("Failed to fetch call status from stored send calls",u,c)}if(this.namespace.methods.includes(t.request.method))return await this.client.request(t);throw new Error("Fetching call status not approved by the wallet.")}async getUserOperationReceipt(t,e){var s;const n=new URL(t),a=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Et("eth_getUserOperationReceipt",[(s=e.request.params)==null?void 0:s[0]]))});if(!a.ok)throw new Error(`Failed to fetch user operation receipt - ${a.status}`);return await a.json()}getBundlerUrl(t,e){return`${Wt}?projectId=${this.client.core.projectId}&chainId=${t}&bundler=${e}`}async sendCalls(t){var e,s,n;const a=await this.client.request(t),r=(e=t.request.params)==null?void 0:e[0],o=a==null?void 0:a.id,c=(a==null?void 0:a.capabilities)||{},u=(s=c==null?void 0:c.caip345)==null?void 0:s.caip2,l=(n=c==null?void 0:c.caip345)==null?void 0:n.transactionHashes;return!o||!u||!(l!=null&&l.length)||await Qe({sendCalls:{request:r,result:a},storage:this.storage}),a}}var hi=Object.defineProperty,pi=(i,t,e)=>t in i?hi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,O=(i,t,e)=>pi(i,typeof t!="symbol"?t+"":t,e);class ui{constructor(t){O(this,"name","solana"),O(this,"client"),O(this,"httpProviders"),O(this,"events"),O(this,"namespace"),O(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var li=Object.defineProperty,di=(i,t,e)=>t in i?li(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,j=(i,t,e)=>di(i,typeof t!="symbol"?t+"":t,e);class fi{constructor(t){j(this,"name","cosmos"),j(this,"client"),j(this,"httpProviders"),j(this,"events"),j(this,"namespace"),j(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var mi=Object.defineProperty,vi=(i,t,e)=>t in i?mi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,H=(i,t,e)=>vi(i,typeof t!="symbol"?t+"":t,e);class gi{constructor(t){H(this,"name","algorand"),H(this,"client"),H(this,"httpProviders"),H(this,"events"),H(this,"namespace"),H(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(!this.httpProviders[t]){const s=e||f(`${this.name}:${t}`,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,s)}this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;t[e]=this.createHttpProvider(e,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);return typeof s>"u"?void 0:new g(new P(s,p("disableProviderPing")))}}var Pi=Object.defineProperty,wi=(i,t,e)=>t in i?Pi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,$=(i,t,e)=>wi(i,typeof t!="symbol"?t+"":t,e);class bi{constructor(t){$(this,"name","cip34"),$(this,"client"),$(this,"httpProviders"),$(this,"events"),$(this,"namespace"),$(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{const s=this.getCardanoRPCUrl(e),n=I(e);t[n]=this.createHttpProvider(n,s)}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}getCardanoRPCUrl(t){const e=this.namespace.rpcMap;if(e)return e[t]}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||this.getCardanoRPCUrl(t);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var yi=Object.defineProperty,Ii=(i,t,e)=>t in i?yi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,A=(i,t,e)=>Ii(i,typeof t!="symbol"?t+"":t,e);class Ci{constructor(t){A(this,"name","elrond"),A(this,"client"),A(this,"httpProviders"),A(this,"events"),A(this,"namespace"),A(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var Oi=Object.defineProperty,ji=(i,t,e)=>t in i?Oi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,E=(i,t,e)=>ji(i,typeof t!="symbol"?t+"":t,e);class Hi{constructor(t){E(this,"name","multiversx"),E(this,"client"),E(this,"httpProviders"),E(this,"events"),E(this,"namespace"),E(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var $i=Object.defineProperty,Ai=(i,t,e)=>t in i?$i(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,S=(i,t,e)=>Ai(i,typeof t!="symbol"?t+"":t,e);class Ei{constructor(t){S(this,"name","near"),S(this,"client"),S(this,"httpProviders"),S(this,"events"),S(this,"namespace"),S(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(this.chainId=t,!this.httpProviders[t]){const s=e||f(`${this.name}:${t}`,this.namespace);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,s)}this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;t[e]=this.createHttpProvider(e,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace);return typeof s>"u"?void 0:new g(new P(s,p("disableProviderPing")))}}var Si=Object.defineProperty,qi=(i,t,e)=>t in i?Si(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,q=(i,t,e)=>qi(i,typeof t!="symbol"?t+"":t,e);class Ni{constructor(t){q(this,"name","tezos"),q(this,"client"),q(this,"httpProviders"),q(this,"events"),q(this,"namespace"),q(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(this.chainId=t,!this.httpProviders[t]){const s=e||f(`${this.name}:${t}`,this.namespace);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,s)}this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{t[e]=this.createHttpProvider(e)}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace);return typeof s>"u"?void 0:new g(new P(s))}}var Di=Object.defineProperty,_i=(i,t,e)=>t in i?Di(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,N=(i,t,e)=>_i(i,typeof t!="symbol"?t+"":t,e);class Fi{constructor(t){N(this,"name",qt),N(this,"client"),N(this,"httpProviders"),N(this,"events"),N(this,"namespace"),N(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.name=this.getNamespaceName(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace.chains=[...new Set((this.namespace.chains||[]).concat(t.chains||[]))],this.namespace.accounts=[...new Set((this.namespace.accounts||[]).concat(t.accounts||[]))],this.namespace.methods=[...new Set((this.namespace.methods||[]).concat(t.methods||[]))],this.namespace.events=[...new Set((this.namespace.events||[]).concat(t.events||[]))],this.httpProviders=this.createHttpProviders()}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider(t.chainId).request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getNamespaceName(){const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return B(t).namespace}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){var t,e;const s={};return(e=(t=this.namespace)==null?void 0:t.accounts)==null||e.forEach(n=>{const a=B(n);s[a.reference]=this.createHttpProvider(n)}),s}getHttpProvider(t){const e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var Ri=Object.defineProperty,xi=Object.defineProperties,Ui=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,ki=Object.prototype.hasOwnProperty,Ti=Object.prototype.propertyIsEnumerable,et=(i,t,e)=>t in i?Ri(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,T=(i,t)=>{for(var e in t||(t={}))ki.call(t,e)&&et(i,e,t[e]);if(Ht)for(var e of Ht(t))Ti.call(t,e)&&et(i,e,t[e]);return i},X=(i,t)=>xi(i,Ui(t)),m=(i,t,e)=>et(i,typeof t!="symbol"?t+"":t,e);class nt{constructor(t){m(this,"client"),m(this,"namespaces"),m(this,"optionalNamespaces"),m(this,"sessionProperties"),m(this,"scopedProperties"),m(this,"events",new zt),m(this,"rpcProviders",{}),m(this,"session"),m(this,"providerOpts"),m(this,"logger"),m(this,"uri"),m(this,"disableProviderPing",!1),this.providerOpts=t,this.logger=typeof(t==null?void 0:t.logger)<"u"&&typeof(t==null?void 0:t.logger)!="string"?t.logger:Tt(Mt({level:(t==null?void 0:t.logger)||ct})),this.disableProviderPing=(t==null?void 0:t.disableProviderPing)||!1}static async init(t){const e=new nt(t);return await e.initialize(),e}async request(t,e,s){const[n,a]=this.validateChain(e);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(n).request({request:T({},t),chainId:`${n}:${a}`,topic:this.session.topic,expiry:s})}sendAsync(t,e,s,n){const a=new Date().getTime();this.request(t,s,n).then(r=>e(null,Jt(a,r))).catch(r=>e(r,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties,scopedProperties:this.scopedProperties}),await this.requestAccounts()}async disconnect(){var t;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(t=this.session)==null?void 0:t.topic,reason:ot("USER_DISCONNECTED")}),await this.cleanup()}async connect(t){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(t),this.cleanupPendingPairings(),!t.skipPairing)return await this.pair(t.pairingTopic)}async authenticate(t,e){if(!this.client)throw new Error("Sign Client not initialized");this.setNamespaces(t),await this.cleanupPendingPairings();const{uri:s,response:n}=await this.client.authenticate(t,e);s&&(this.uri=s,this.events.emit("display_uri",s));const a=await n();if(this.session=a.session,this.session){const r=gt(this.session.namespaces);this.namespaces=k(this.namespaces,r),await this.persist("namespaces",this.namespaces),this.onConnect()}return a}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}removeListener(t,e){this.events.removeListener(t,e)}off(t,e){this.events.off(t,e)}get isWalletConnect(){return!0}async pair(t){const{uri:e,approval:s}=await this.client.connect({pairingTopic:t,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties,scopedProperties:this.scopedProperties});e&&(this.uri=e,this.events.emit("display_uri",e));const n=await s();this.session=n;const a=gt(n.namespaces);return this.namespaces=k(this.namespaces,a),await this.persist("namespaces",this.namespaces),await this.persist("optionalNamespaces",this.optionalNamespaces),this.onConnect(),this.session}setDefaultChain(t,e){try{if(!this.session)return;const[s,n]=this.validateChain(t);this.getProvider(s).setDefaultChain(n,e)}catch(s){if(!/Please call connect/.test(s.message))throw s}}async cleanupPendingPairings(t={}){try{this.logger.info("Cleaning up inactive pairings...");const e=this.client.pairing.getAll();if(!J(e))return;for(const s of e)t.deletePairings?this.client.core.expirer.set(s.topic,0):await this.client.core.relayer.subscriber.unsubscribe(s.topic);this.logger.info(`Inactive pairings cleared: ${e.length}`)}catch(e){this.logger.warn("Failed to cleanup pending pairings",e)}}abortPairingAttempt(){this.logger.warn("abortPairingAttempt is deprecated. This is now a no-op.")}async checkStorage(){this.namespaces=await this.getFromStore("namespaces")||{},this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.session&&this.createProviders()}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){var t,e;if(this.client=this.providerOpts.client||await Bt.init({core:this.providerOpts.core,logger:this.providerOpts.logger||ct,relayUrl:this.providerOpts.relayUrl||Gt,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name,customStoragePrefix:this.providerOpts.customStoragePrefix,telemetryEnabled:this.providerOpts.telemetryEnabled}),this.providerOpts.session)try{this.session=this.client.session.get(this.providerOpts.session.topic)}catch(s){throw this.logger.error("Failed to get session",s),new Error(`The provided session: ${(e=(t=this.providerOpts)==null?void 0:t.session)==null?void 0:e.topic} doesn't exist in the Sign client`)}else{const s=this.client.session.getAll();this.session=s[0]}this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const t=[...new Set(Object.keys(this.session.namespaces).map(e=>F(e)))];V("client",this.client),V("events",this.events),V("disableProviderPing",this.disableProviderPing),t.forEach(e=>{if(!this.session)return;const s=Se(e,this.session);if((s==null?void 0:s.length)===0)return;const n=Ut(s),a=k(this.namespaces,this.optionalNamespaces),r=X(T({},a[e]),{accounts:s,chains:n});switch(e){case"eip155":this.rpcProviders[e]=new ci({namespace:r});break;case"algorand":this.rpcProviders[e]=new gi({namespace:r});break;case"solana":this.rpcProviders[e]=new ui({namespace:r});break;case"cosmos":this.rpcProviders[e]=new fi({namespace:r});break;case"polkadot":this.rpcProviders[e]=new ii({namespace:r});break;case"cip34":this.rpcProviders[e]=new bi({namespace:r});break;case"elrond":this.rpcProviders[e]=new Ci({namespace:r});break;case"multiversx":this.rpcProviders[e]=new Hi({namespace:r});break;case"near":this.rpcProviders[e]=new Ei({namespace:r});break;case"tezos":this.rpcProviders[e]=new Ni({namespace:r});break;default:this.rpcProviders[e]=new Fi({namespace:r})}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",t=>{var e;const{topic:s}=t;s===((e=this.session)==null?void 0:e.topic)&&this.events.emit("session_ping",t)}),this.client.on("session_event",t=>{var e;const{params:s,topic:n}=t;if(n!==((e=this.session)==null?void 0:e.topic))return;const{event:a}=s;if(a.name==="accountsChanged"){const r=a.data;r&&J(r)&&this.events.emit("accountsChanged",r.map(vt))}else if(a.name==="chainChanged"){const r=s.chainId,o=s.event.data,c=F(r),u=G(r)!==G(o)?`${c}:${G(o)}`:r;this.onChainChanged(u)}else this.events.emit(a.name,a.data);this.events.emit("session_event",t)}),this.client.on("session_update",({topic:t,params:e})=>{var s,n;if(t!==((s=this.session)==null?void 0:s.topic))return;const{namespaces:a}=e,r=(n=this.client)==null?void 0:n.session.get(t);this.session=X(T({},r),{namespaces:a}),this.onSessionUpdate(),this.events.emit("session_update",{topic:t,params:e})}),this.client.on("session_delete",async t=>{var e;t.topic===((e=this.session)==null?void 0:e.topic)&&(await this.cleanup(),this.events.emit("session_delete",t),this.events.emit("disconnect",X(T({},ot("USER_DISCONNECTED")),{data:t.topic})))}),this.on(v.DEFAULT_CHAIN_CHANGED,t=>{this.onChainChanged(t,!0)})}getProvider(t){return this.rpcProviders[t]||this.rpcProviders[qt]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(t=>{var e;this.getProvider(t).updateNamespace((e=this.session)==null?void 0:e.namespaces[t])})}setNamespaces(t){const{namespaces:e={},optionalNamespaces:s={},sessionProperties:n,scopedProperties:a}=t;this.optionalNamespaces=k(e,s),this.sessionProperties=n,this.scopedProperties=a}validateChain(t){const[e,s]=(t==null?void 0:t.split(":"))||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[e,s];if(e&&!Object.keys(this.namespaces||{}).map(r=>F(r)).includes(e))throw new Error(`Namespace '${e}' is not configured. Please call connect() first with namespace config.`);if(e&&s)return[e,s];const n=F(Object.keys(this.namespaces)[0]),a=this.rpcProviders[n].getDefaultChain();return[n,a]}async requestAccounts(){const[t]=this.validateChain();return await this.getProvider(t).requestAccounts()}async onChainChanged(t,e=!1){if(!this.namespaces)return;const[s,n]=this.validateChain(t);if(!n)return;this.updateNamespaceChain(s,n);const a=this.getProvider(s).getDefaultChain();e?(this.events.emit("chainChanged",n),this.emitAccountsChangedOnChainChange({namespace:s,previousChainId:a,newChainId:t})):this.getProvider(s).setDefaultChain(n),await this.persist("namespaces",this.namespaces)}emitAccountsChangedOnChainChange({namespace:t,previousChainId:e,newChainId:s}){var n,a;try{if(e===s)return;const r=(a=(n=this.session)==null?void 0:n.namespaces[t])==null?void 0:a.accounts;if(!r)return;const o=r.filter(c=>c.includes(`${s}:`)).map(vt);if(!J(o))return;this.events.emit("accountsChanged",o)}catch(r){this.logger.warn("Failed to emit accountsChanged on chain change",r)}}updateNamespaceChain(t,e){if(!this.namespaces)return;const s=this.namespaces[t]?t:`${t}:${e}`,n={chains:[],methods:[],events:[],defaultChain:e};this.namespaces[s]?this.namespaces[s]&&(this.namespaces[s].defaultChain=e):this.namespaces[s]=n}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,await this.deleteFromStore("namespaces"),await this.deleteFromStore("optionalNamespaces"),await this.deleteFromStore("sessionProperties"),this.session=void 0,this.cleanupPendingPairings({deletePairings:!0}),await this.cleanupStorage()}async persist(t,e){var s;const n=((s=this.session)==null?void 0:s.topic)||"";await this.client.core.storage.setItem(`${x}/${t}${n}`,e)}async getFromStore(t){var e;const s=((e=this.session)==null?void 0:e.topic)||"";return await this.client.core.storage.getItem(`${x}/${t}${s}`)}async deleteFromStore(t){var e;const s=((e=this.session)==null?void 0:e.topic)||"";await this.client.core.storage.removeItem(`${x}/${t}${s}`)}async cleanupStorage(){var t;try{if(((t=this.client)==null?void 0:t.session.length)>0)return;const e=await this.client.core.storage.getKeys();for(const s of e)s.startsWith(x)&&await this.client.core.storage.removeItem(s)}catch(e){this.logger.warn("Failed to cleanup storage",e)}}}const ws=nt;export{ws as UniversalProvider,nt as default};
|
|
2
|
-
//# sourceMappingURL=index.es-
|
|
1
|
+
import{B as M}from"./dcl-schemas-OgkR3Xnp.js";import{B as Tt,m as Mt,K as ot,o as J,q as Bt,Y as F,P as $t,F as B,V as R,r as z,t as At,u as Lt}from"./wallets-BOYud1KV.js";import"./index-BGW18IEb.js";import{b as Jt,o as g,c as Et}from"./index-HS7_UPOd.js";import{f as P}from"./index.es-CWw1jqy2.js";import{N as zt}from"./index-Bns4uVVf.js";import"./react-BUrQZkQz.js";import"./signing-CXQFnhbL.js";import"./prepare-contract-call-BLAPB3co.js";import"./utils-Dp9zU4fq.js";import"./sentry-DyLfTiSb.js";import"./index-BZe9O30I.js";import"./ethers-DqHzeHuT.js";import"./intl-AKLEHPeO.js";import"./to-serializable-transaction-Rj3zkFd_.js";import"./transaction-CrhlWCWj.js";import"./get-bytecode-X-2IhAtj.js";import"./execute-vAVWh3cq.js";import"./detectExtension-BaFl5dmt.js";import"./linkAccount-CSENce9R.js";import"./index-scJRzKFi.js";import"./ethereum-DlBOC201.js";import"./types-BeDU9GfL.js";import"./store-80QKZ2rN.js";import"./hashTypedData-vZpJz8B-.js";import"./send-transaction-eS3cn1U6.js";import"./eth_sendRawTransaction-DYAsy3sS.js";import"./index-OpYIGLSa.js";import"./index-BEPNCFGX.js";import"./index-D8nZ-jDW.js";import"./browser-ponyfill-jzbj-jA4.js";import"./events-VcRW8MP7.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new i.Error().stack;t&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[t]="4ab2a32b-c7dc-4eed-99f6-5e1a6385b902",i._sentryDebugIdIdentifier="sentry-dbid-4ab2a32b-c7dc-4eed-99f6-5e1a6385b902")}catch{}})();const ct="error",Gt="wss://relay.walletconnect.org",Vt="wc",Kt="universal_provider",x=`${Vt}@2:${Kt}:`,St="https://rpc.walletconnect.org/v1/",qt="generic",Wt=`${St}bundler`,_="call_status",Yt=86400,v={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};function it(i){return i==null||typeof i!="object"&&typeof i!="function"}function Nt(i){return Object.getOwnPropertySymbols(i).filter(t=>Object.prototype.propertyIsEnumerable.call(i,t))}function Dt(i){return i==null?i===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(i)}const Qt="[object RegExp]",_t="[object String]",Ft="[object Number]",Rt="[object Boolean]",xt="[object Arguments]",Xt="[object Symbol]",Zt="[object Date]",te="[object Map]",ee="[object Set]",ie="[object Array]",se="[object ArrayBuffer]",re="[object Object]",ne="[object DataView]",ae="[object Uint8Array]",oe="[object Uint8ClampedArray]",ce="[object Uint16Array]",he="[object Uint32Array]",pe="[object Int8Array]",ue="[object Int16Array]",le="[object Int32Array]",de="[object Float32Array]",fe="[object Float64Array]";function st(i){return ArrayBuffer.isView(i)&&!(i instanceof DataView)}function me(i,t){return D(i,void 0,i,new Map,t)}function D(i,t,e,s=new Map,n=void 0){const a=n==null?void 0:n(i,t,e,s);if(a!=null)return a;if(it(i))return i;if(s.has(i))return s.get(i);if(Array.isArray(i)){const r=new Array(i.length);s.set(i,r);for(let o=0;o<i.length;o++)r[o]=D(i[o],o,e,s,n);return Object.hasOwn(i,"index")&&(r.index=i.index),Object.hasOwn(i,"input")&&(r.input=i.input),r}if(i instanceof Date)return new Date(i.getTime());if(i instanceof RegExp){const r=new RegExp(i.source,i.flags);return r.lastIndex=i.lastIndex,r}if(i instanceof Map){const r=new Map;s.set(i,r);for(const[o,c]of i)r.set(o,D(c,o,e,s,n));return r}if(i instanceof Set){const r=new Set;s.set(i,r);for(const o of i)r.add(D(o,void 0,e,s,n));return r}if(typeof M<"u"&&M.isBuffer(i))return i.subarray();if(st(i)){const r=new(Object.getPrototypeOf(i)).constructor(i.length);s.set(i,r);for(let o=0;o<i.length;o++)r[o]=D(i[o],o,e,s,n);return r}if(i instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer)return i.slice(0);if(i instanceof DataView){const r=new DataView(i.buffer.slice(0),i.byteOffset,i.byteLength);return s.set(i,r),y(r,i,e,s,n),r}if(typeof File<"u"&&i instanceof File){const r=new File([i],i.name,{type:i.type});return s.set(i,r),y(r,i,e,s,n),r}if(i instanceof Blob){const r=new Blob([i],{type:i.type});return s.set(i,r),y(r,i,e,s,n),r}if(i instanceof Error){const r=new i.constructor;return s.set(i,r),r.message=i.message,r.name=i.name,r.stack=i.stack,r.cause=i.cause,y(r,i,e,s,n),r}if(typeof i=="object"&&ve(i)){const r=Object.create(Object.getPrototypeOf(i));return s.set(i,r),y(r,i,e,s,n),r}return i}function y(i,t,e=i,s,n){const a=[...Object.keys(t),...Nt(t)];for(let r=0;r<a.length;r++){const o=a[r],c=Object.getOwnPropertyDescriptor(i,o);(c==null||c.writable)&&(i[o]=D(t[o],o,e,s,n))}}function ve(i){switch(Dt(i)){case xt:case ie:case se:case ne:case Rt:case Zt:case de:case fe:case pe:case ue:case le:case te:case Ft:case re:case Qt:case ee:case _t:case Xt:case ae:case oe:case ce:case he:return!0;default:return!1}}function ge(i,t){return me(i,(e,s,n,a)=>{if(typeof i=="object")switch(Object.prototype.toString.call(i)){case Ft:case _t:case Rt:{const r=new i.constructor(i==null?void 0:i.valueOf());return y(r,i),r}case xt:{const r={};return y(r,i),r.length=i.length,r[Symbol.iterator]=i[Symbol.iterator],r}default:return}})}function ht(i){return ge(i)}function pt(i){return i!==null&&typeof i=="object"&&Dt(i)==="[object Arguments]"}function ut(i){return typeof i=="object"&&i!==null}function Pe(){}function we(i){return st(i)}function be(i){var e;if(typeof i!="object"||i==null)return!1;if(Object.getPrototypeOf(i)===null)return!0;if(Object.prototype.toString.call(i)!=="[object Object]"){const s=i[Symbol.toStringTag];return s==null||!((e=Object.getOwnPropertyDescriptor(i,Symbol.toStringTag))!=null&&e.writable)?!1:i.toString()===`[object ${s}]`}let t=i;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(i)===t}function ye(i){if(it(i))return i;if(Array.isArray(i)||st(i)||i instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer)return i.slice(0);const t=Object.getPrototypeOf(i),e=t.constructor;if(i instanceof Date||i instanceof Map||i instanceof Set)return new e(i);if(i instanceof RegExp){const s=new e(i);return s.lastIndex=i.lastIndex,s}if(i instanceof DataView)return new e(i.buffer.slice(0));if(i instanceof Error){const s=new e(i.message);return s.stack=i.stack,s.name=i.name,s.cause=i.cause,s}if(typeof File<"u"&&i instanceof File)return new e([i],i.name,{type:i.type,lastModified:i.lastModified});if(typeof i=="object"){const s=Object.create(t);return Object.assign(s,i)}return i}function Ie(i,...t){const e=t.slice(0,-1),s=t[t.length-1];let n=i;for(let a=0;a<e.length;a++){const r=e[a];n=Z(n,r,s,new Map)}return n}function Z(i,t,e,s){if(it(i)&&(i=Object(i)),t==null||typeof t!="object")return i;if(s.has(t))return ye(s.get(t));if(s.set(t,i),Array.isArray(t)){t=t.slice();for(let a=0;a<t.length;a++)t[a]=t[a]??void 0}const n=[...Object.keys(t),...Nt(t)];for(let a=0;a<n.length;a++){const r=n[a];let o=t[r],c=i[r];if(pt(o)&&(o={...o}),pt(c)&&(c={...c}),typeof M<"u"&&M.isBuffer(o)&&(o=ht(o)),Array.isArray(o))if(typeof c=="object"&&c!=null){const l=[],h=Reflect.ownKeys(c);for(let w=0;w<h.length;w++){const d=h[w];l[d]=c[d]}c=l}else c=[];const u=e(c,o,r,i,t,s);u!=null?i[r]=u:Array.isArray(o)||ut(c)&&ut(o)?i[r]=Z(c,o,e,s):c==null&&be(o)?i[r]=Z({},o,e,s):c==null&&we(o)?i[r]=ht(o):(c===void 0||o!==void 0)&&(i[r]=o)}return i}function Ce(i,...t){return Ie(i,...t,Pe)}var Oe=Object.defineProperty,je=Object.defineProperties,He=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,dt=(i,t,e)=>t in i?Oe(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,U=(i,t)=>{for(var e in t||(t={}))$e.call(t,e)&&dt(i,e,t[e]);if(lt)for(var e of lt(t))Ae.call(t,e)&&dt(i,e,t[e]);return i},Ee=(i,t)=>je(i,He(t));function f(i,t,e){var s;const n=B(i);return((s=t.rpcMap)==null?void 0:s[n.reference])||`${St}?chainId=${n.namespace}:${n.reference}&projectId=${e}`}function I(i){return i.includes(":")?i.split(":")[1]:i}function Ut(i){return i.map(t=>`${t.split(":")[0]}:${t.split(":")[1]}`)}function Se(i,t){const e=Object.keys(t.namespaces).filter(n=>n.includes(i));if(!e.length)return[];const s=[];return e.forEach(n=>{const a=t.namespaces[n].accounts;s.push(...a)}),s}function ft(i){return Object.fromEntries(Object.entries(i).filter(([t,e])=>{var s,n;return((s=e==null?void 0:e.chains)==null?void 0:s.length)&&((n=e==null?void 0:e.chains)==null?void 0:n.length)>0}))}function k(i={},t={}){const e=ft(mt(i)),s=ft(mt(t));return Ce(e,s)}function mt(i){var t,e,s,n,a;const r={};if(!R(i))return r;for(const[o,c]of Object.entries(i)){const u=$t(o)?[o]:c.chains,l=c.methods||[],h=c.events||[],w=c.rpcMap||{},d=F(o);r[d]=Ee(U(U({},r[d]),c),{chains:z(u,(t=r[d])==null?void 0:t.chains),methods:z(l,(e=r[d])==null?void 0:e.methods),events:z(h,(s=r[d])==null?void 0:s.events)}),(R(w)||R(((n=r[d])==null?void 0:n.rpcMap)||{}))&&(r[d].rpcMap=U(U({},w),(a=r[d])==null?void 0:a.rpcMap))}return r}function vt(i){return i.includes(":")?i.split(":")[2]:i}function gt(i){const t={};for(const[e,s]of Object.entries(i)){const n=s.methods||[],a=s.events||[],r=s.accounts||[],o=$t(e)?[e]:s.chains?s.chains:Ut(s.accounts);t[e]={chains:o,methods:n,events:a,accounts:r}}return t}function G(i){return typeof i=="number"?i:i.includes("0x")?parseInt(i,16):(i=i.includes(":")?i.split(":")[1]:i,isNaN(Number(i))?i:Number(i))}function qe(i){try{const t=JSON.parse(i);return typeof t=="object"&&t!==null&&!Array.isArray(t)}catch{return!1}}const kt={},p=i=>kt[i],V=(i,t)=>{kt[i]=t};var Ne=Object.defineProperty,Pt=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,wt=(i,t,e)=>t in i?Ne(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,bt=(i,t)=>{for(var e in t||(t={}))De.call(t,e)&&wt(i,e,t[e]);if(Pt)for(var e of Pt(t))_e.call(t,e)&&wt(i,e,t[e]);return i};const yt="eip155",Fe=["atomic","flow-control","paymasterService","sessionKeys","auxiliaryFunds"],Re=i=>i&&i.startsWith("0x")?BigInt(i).toString(10):i,K=i=>i&&i.startsWith("0x")?i:`0x${BigInt(i).toString(16)}`,It=i=>Object.keys(i).filter(t=>Fe.includes(t)).reduce((t,e)=>(t[e]=xe(i[e]),t),{}),xe=i=>typeof i=="string"&&qe(i)?JSON.parse(i):i,Ue=(i,t,e)=>{const{sessionProperties:s={},scopedProperties:n={}}=i,a={};if(!R(n)&&!R(s))return;const r=It(s);for(const o of e){const c=Re(o);if(!c)continue;a[K(c)]=r;const u=n==null?void 0:n[`${yt}:${c}`];if(u){const l=u==null?void 0:u[`${yt}:${c}:${t}`];a[K(c)]=bt(bt({},a[K(c)]),It(l||u))}}for(const[o,c]of Object.entries(a))Object.keys(c).length===0&&delete a[o];return Object.keys(a).length>0?a:void 0};var ke=Object.defineProperty,Te=(i,t,e)=>t in i?ke(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Me=(i,t,e)=>Te(i,t+"",e);let W;class rt{constructor(t){Me(this,"storage"),this.storage=t}async getItem(t){return await this.storage.getItem(t)}async setItem(t,e){return await this.storage.setItem(t,e)}async removeItem(t){return await this.storage.removeItem(t)}static getStorage(t){return W||(W=new rt(t)),W}}var Be=Object.defineProperty,Le=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ot=(i,t,e)=>t in i?Be(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Ve=(i,t)=>{for(var e in t||(t={}))ze.call(t,e)&&Ot(i,e,t[e]);if(Ct)for(var e of Ct(t))Ge.call(t,e)&&Ot(i,e,t[e]);return i},Ke=(i,t)=>Le(i,Je(t));async function We(i,t){const e=B(i.result.capabilities.caip345.caip2),s=i.result.capabilities.caip345.transactionHashes,n=await Promise.allSettled(s.map(h=>Ye(e.reference,h,t))),a=n.filter(h=>h.status==="fulfilled").map(h=>h.value).filter(h=>h);n.filter(h=>h.status==="rejected").forEach(h=>console.warn("Failed to fetch transaction receipt:",h.reason));const r=!a.length||a.some(h=>!h),o=a.every(h=>(h==null?void 0:h.status)==="0x1"),c=a.every(h=>(h==null?void 0:h.status)==="0x0"),u=a.some(h=>(h==null?void 0:h.status)==="0x0");let l;return r?l=100:o?l=200:c?l=500:u&&(l=600),{id:i.result.id,version:i.request.version,atomic:i.request.atomicRequired,chainId:i.request.chainId,capabilities:i.result.capabilities,receipts:a,status:l}}async function Ye(i,t,e){return await e(parseInt(i)).request(Et("eth_getTransactionReceipt",[t]))}async function Qe({sendCalls:i,storage:t}){const e=await t.getItem(_);await t.setItem(_,Ke(Ve({},e),{[i.result.id]:{request:i.request,result:i.result,expiry:Lt(Yt)}}))}async function Xe({resultId:i,storage:t}){const e=await t.getItem(_);if(e){delete e[i],await t.setItem(_,e);for(const s in e)At(e[s].expiry)&&delete e[s];await t.setItem(_,e)}}async function Ze({resultId:i,storage:t}){const e=await t.getItem(_),s=e==null?void 0:e[i];if(s&&!At(s.expiry))return s;await Xe({resultId:i,storage:t})}var ti=Object.defineProperty,ei=(i,t,e)=>t in i?ti(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,C=(i,t,e)=>ei(i,typeof t!="symbol"?t+"":t,e);class ii{constructor(t){C(this,"name","polkadot"),C(this,"client"),C(this,"httpProviders"),C(this,"events"),C(this,"namespace"),C(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getAccounts(){const t=this.namespace.accounts;return t?t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var si=Object.defineProperty,ri=Object.defineProperties,ni=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,ai=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable,tt=(i,t,e)=>t in i?si(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Y=(i,t)=>{for(var e in t||(t={}))ai.call(t,e)&&tt(i,e,t[e]);if(jt)for(var e of jt(t))oi.call(t,e)&&tt(i,e,t[e]);return i},Q=(i,t)=>ri(i,ni(t)),b=(i,t,e)=>tt(i,typeof t!="symbol"?t+"":t,e);class ci{constructor(t){b(this,"name","eip155"),b(this,"client"),b(this,"chainId"),b(this,"namespace"),b(this,"httpProviders"),b(this,"events"),b(this,"storage"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain()),this.storage=rt.getStorage(this.client.core.storage)}async request(t){switch(t.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(t);case"eth_chainId":return parseInt(this.getDefaultChain());case"wallet_getCapabilities":return await this.getCapabilities(t);case"wallet_getCallsStatus":return await this.getCallStatus(t);case"wallet_sendCalls":return await this.sendCalls(t)}return this.namespace.methods.includes(t.request.method)?await this.client.request(t):this.getHttpProvider().request(t.request)}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(parseInt(t),e),this.chainId=parseInt(t),this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}createHttpProvider(t,e){const s=e||f(`${this.name}:${t}`,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=parseInt(I(e));t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}getHttpProvider(t){const e=t||this.chainId;return this.httpProviders[e]||(this.httpProviders=Q(Y({},this.httpProviders),{[e]:this.createHttpProvider(e)}),this.httpProviders[e])}async handleSwitchChain(t){var e,s;let n=t.request.params?(e=t.request.params[0])==null?void 0:e.chainId:"0x0";n=n.startsWith("0x")?n:`0x${n}`;const a=parseInt(n,16);if(this.isChainApproved(a))this.setDefaultChain(`${a}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:t.topic,request:{method:t.request.method,params:[{chainId:n}]},chainId:(s=this.namespace.chains)==null?void 0:s[0]}),this.setDefaultChain(`${a}`);else throw new Error(`Failed to switch to chain 'eip155:${a}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(t){return this.namespace.chains.includes(`${this.name}:${t}`)}async getCapabilities(t){var e,s,n,a,r;const o=(s=(e=t.request)==null?void 0:e.params)==null?void 0:s[0],c=((a=(n=t.request)==null?void 0:n.params)==null?void 0:a[1])||[];if(!o)throw new Error("Missing address parameter in `wallet_getCapabilities` request");const u=this.client.session.get(t.topic),l=((r=u==null?void 0:u.sessionProperties)==null?void 0:r.capabilities)||{},h=`${o}${c.join(",")}`,w=l==null?void 0:l[h];if(w)return w;let d;try{d=Ue(u,o,c)}catch(L){console.warn("Failed to extract capabilities from session",L)}if(d)return d;const at=await this.client.request(t);try{await this.client.session.update(t.topic,{sessionProperties:Q(Y({},u.sessionProperties||{}),{capabilities:Q(Y({},l||{}),{[h]:at})})})}catch(L){console.warn("Failed to update session with capabilities",L)}return at}async getCallStatus(t){var e,s,n;const a=this.client.session.get(t.topic),r=(e=a.sessionProperties)==null?void 0:e.bundler_name;if(r){const u=this.getBundlerUrl(t.chainId,r);try{return await this.getUserOperationReceipt(u,t)}catch(l){console.warn("Failed to fetch call status from bundler",l,u)}}const o=(s=a.sessionProperties)==null?void 0:s.bundler_url;if(o)try{return await this.getUserOperationReceipt(o,t)}catch(u){console.warn("Failed to fetch call status from custom bundler",u,o)}const c=await Ze({resultId:(n=t.request.params)==null?void 0:n[0],storage:this.storage});if(c)try{return await We(c,this.getHttpProvider.bind(this))}catch(u){console.warn("Failed to fetch call status from stored send calls",u,c)}if(this.namespace.methods.includes(t.request.method))return await this.client.request(t);throw new Error("Fetching call status not approved by the wallet.")}async getUserOperationReceipt(t,e){var s;const n=new URL(t),a=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Et("eth_getUserOperationReceipt",[(s=e.request.params)==null?void 0:s[0]]))});if(!a.ok)throw new Error(`Failed to fetch user operation receipt - ${a.status}`);return await a.json()}getBundlerUrl(t,e){return`${Wt}?projectId=${this.client.core.projectId}&chainId=${t}&bundler=${e}`}async sendCalls(t){var e,s,n;const a=await this.client.request(t),r=(e=t.request.params)==null?void 0:e[0],o=a==null?void 0:a.id,c=(a==null?void 0:a.capabilities)||{},u=(s=c==null?void 0:c.caip345)==null?void 0:s.caip2,l=(n=c==null?void 0:c.caip345)==null?void 0:n.transactionHashes;return!o||!u||!(l!=null&&l.length)||await Qe({sendCalls:{request:r,result:a},storage:this.storage}),a}}var hi=Object.defineProperty,pi=(i,t,e)=>t in i?hi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,O=(i,t,e)=>pi(i,typeof t!="symbol"?t+"":t,e);class ui{constructor(t){O(this,"name","solana"),O(this,"client"),O(this,"httpProviders"),O(this,"events"),O(this,"namespace"),O(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var li=Object.defineProperty,di=(i,t,e)=>t in i?li(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,j=(i,t,e)=>di(i,typeof t!="symbol"?t+"":t,e);class fi{constructor(t){j(this,"name","cosmos"),j(this,"client"),j(this,"httpProviders"),j(this,"events"),j(this,"namespace"),j(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var mi=Object.defineProperty,vi=(i,t,e)=>t in i?mi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,H=(i,t,e)=>vi(i,typeof t!="symbol"?t+"":t,e);class gi{constructor(t){H(this,"name","algorand"),H(this,"client"),H(this,"httpProviders"),H(this,"events"),H(this,"namespace"),H(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(!this.httpProviders[t]){const s=e||f(`${this.name}:${t}`,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,s)}this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;t[e]=this.createHttpProvider(e,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);return typeof s>"u"?void 0:new g(new P(s,p("disableProviderPing")))}}var Pi=Object.defineProperty,wi=(i,t,e)=>t in i?Pi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,$=(i,t,e)=>wi(i,typeof t!="symbol"?t+"":t,e);class bi{constructor(t){$(this,"name","cip34"),$(this,"client"),$(this,"httpProviders"),$(this,"events"),$(this,"namespace"),$(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{const s=this.getCardanoRPCUrl(e),n=I(e);t[n]=this.createHttpProvider(n,s)}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}getCardanoRPCUrl(t){const e=this.namespace.rpcMap;if(e)return e[t]}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||this.getCardanoRPCUrl(t);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var yi=Object.defineProperty,Ii=(i,t,e)=>t in i?yi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,A=(i,t,e)=>Ii(i,typeof t!="symbol"?t+"":t,e);class Ci{constructor(t){A(this,"name","elrond"),A(this,"client"),A(this,"httpProviders"),A(this,"events"),A(this,"namespace"),A(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var Oi=Object.defineProperty,ji=(i,t,e)=>t in i?Oi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,E=(i,t,e)=>ji(i,typeof t!="symbol"?t+"":t,e);class Hi{constructor(t){E(this,"name","multiversx"),E(this,"client"),E(this,"httpProviders"),E(this,"events"),E(this,"namespace"),E(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;const n=I(e);t[n]=this.createHttpProvider(n,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var $i=Object.defineProperty,Ai=(i,t,e)=>t in i?$i(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,S=(i,t,e)=>Ai(i,typeof t!="symbol"?t+"":t,e);class Ei{constructor(t){S(this,"name","near"),S(this,"client"),S(this,"httpProviders"),S(this,"events"),S(this,"namespace"),S(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(this.chainId=t,!this.httpProviders[t]){const s=e||f(`${this.name}:${t}`,this.namespace);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,s)}this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{var s;t[e]=this.createHttpProvider(e,(s=this.namespace.rpcMap)==null?void 0:s[e])}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace);return typeof s>"u"?void 0:new g(new P(s,p("disableProviderPing")))}}var Si=Object.defineProperty,qi=(i,t,e)=>t in i?Si(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,q=(i,t,e)=>qi(i,typeof t!="symbol"?t+"":t,e);class Ni{constructor(t){q(this,"name","tezos"),q(this,"client"),q(this,"httpProviders"),q(this,"events"),q(this,"namespace"),q(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(this.chainId=t,!this.httpProviders[t]){const s=e||f(`${this.name}:${t}`,this.namespace);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,s)}this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach(e=>{t[e]=this.createHttpProvider(e)}),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace);return typeof s>"u"?void 0:new g(new P(s))}}var Di=Object.defineProperty,_i=(i,t,e)=>t in i?Di(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,N=(i,t,e)=>_i(i,typeof t!="symbol"?t+"":t,e);class Fi{constructor(t){N(this,"name",qt),N(this,"client"),N(this,"httpProviders"),N(this,"events"),N(this,"namespace"),N(this,"chainId"),this.namespace=t.namespace,this.events=p("events"),this.client=p("client"),this.chainId=this.getDefaultChain(),this.name=this.getNamespaceName(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace.chains=[...new Set((this.namespace.chains||[]).concat(t.chains||[]))],this.namespace.accounts=[...new Set((this.namespace.accounts||[]).concat(t.accounts||[]))],this.namespace.methods=[...new Set((this.namespace.methods||[]).concat(t.methods||[]))],this.namespace.events=[...new Set((this.namespace.events||[]).concat(t.events||[]))],this.httpProviders=this.createHttpProviders()}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider(t.chainId).request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(v.DEFAULT_CHAIN_CHANGED,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getNamespaceName(){const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return B(t).namespace}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){var t,e;const s={};return(e=(t=this.namespace)==null?void 0:t.accounts)==null||e.forEach(n=>{const a=B(n);s[a.reference]=this.createHttpProvider(n)}),s}getHttpProvider(t){const e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const s=this.createHttpProvider(t,e);s&&(this.httpProviders[t]=s)}createHttpProvider(t,e){const s=e||f(t,this.namespace,this.client.core.projectId);if(!s)throw new Error(`No RPC url provided for chainId: ${t}`);return new g(new P(s,p("disableProviderPing")))}}var Ri=Object.defineProperty,xi=Object.defineProperties,Ui=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,ki=Object.prototype.hasOwnProperty,Ti=Object.prototype.propertyIsEnumerable,et=(i,t,e)=>t in i?Ri(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,T=(i,t)=>{for(var e in t||(t={}))ki.call(t,e)&&et(i,e,t[e]);if(Ht)for(var e of Ht(t))Ti.call(t,e)&&et(i,e,t[e]);return i},X=(i,t)=>xi(i,Ui(t)),m=(i,t,e)=>et(i,typeof t!="symbol"?t+"":t,e);class nt{constructor(t){m(this,"client"),m(this,"namespaces"),m(this,"optionalNamespaces"),m(this,"sessionProperties"),m(this,"scopedProperties"),m(this,"events",new zt),m(this,"rpcProviders",{}),m(this,"session"),m(this,"providerOpts"),m(this,"logger"),m(this,"uri"),m(this,"disableProviderPing",!1),this.providerOpts=t,this.logger=typeof(t==null?void 0:t.logger)<"u"&&typeof(t==null?void 0:t.logger)!="string"?t.logger:Tt(Mt({level:(t==null?void 0:t.logger)||ct})),this.disableProviderPing=(t==null?void 0:t.disableProviderPing)||!1}static async init(t){const e=new nt(t);return await e.initialize(),e}async request(t,e,s){const[n,a]=this.validateChain(e);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(n).request({request:T({},t),chainId:`${n}:${a}`,topic:this.session.topic,expiry:s})}sendAsync(t,e,s,n){const a=new Date().getTime();this.request(t,s,n).then(r=>e(null,Jt(a,r))).catch(r=>e(r,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties,scopedProperties:this.scopedProperties}),await this.requestAccounts()}async disconnect(){var t;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(t=this.session)==null?void 0:t.topic,reason:ot("USER_DISCONNECTED")}),await this.cleanup()}async connect(t){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(t),this.cleanupPendingPairings(),!t.skipPairing)return await this.pair(t.pairingTopic)}async authenticate(t,e){if(!this.client)throw new Error("Sign Client not initialized");this.setNamespaces(t),await this.cleanupPendingPairings();const{uri:s,response:n}=await this.client.authenticate(t,e);s&&(this.uri=s,this.events.emit("display_uri",s));const a=await n();if(this.session=a.session,this.session){const r=gt(this.session.namespaces);this.namespaces=k(this.namespaces,r),await this.persist("namespaces",this.namespaces),this.onConnect()}return a}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}removeListener(t,e){this.events.removeListener(t,e)}off(t,e){this.events.off(t,e)}get isWalletConnect(){return!0}async pair(t){const{uri:e,approval:s}=await this.client.connect({pairingTopic:t,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties,scopedProperties:this.scopedProperties});e&&(this.uri=e,this.events.emit("display_uri",e));const n=await s();this.session=n;const a=gt(n.namespaces);return this.namespaces=k(this.namespaces,a),await this.persist("namespaces",this.namespaces),await this.persist("optionalNamespaces",this.optionalNamespaces),this.onConnect(),this.session}setDefaultChain(t,e){try{if(!this.session)return;const[s,n]=this.validateChain(t);this.getProvider(s).setDefaultChain(n,e)}catch(s){if(!/Please call connect/.test(s.message))throw s}}async cleanupPendingPairings(t={}){try{this.logger.info("Cleaning up inactive pairings...");const e=this.client.pairing.getAll();if(!J(e))return;for(const s of e)t.deletePairings?this.client.core.expirer.set(s.topic,0):await this.client.core.relayer.subscriber.unsubscribe(s.topic);this.logger.info(`Inactive pairings cleared: ${e.length}`)}catch(e){this.logger.warn("Failed to cleanup pending pairings",e)}}abortPairingAttempt(){this.logger.warn("abortPairingAttempt is deprecated. This is now a no-op.")}async checkStorage(){this.namespaces=await this.getFromStore("namespaces")||{},this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.session&&this.createProviders()}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){var t,e;if(this.client=this.providerOpts.client||await Bt.init({core:this.providerOpts.core,logger:this.providerOpts.logger||ct,relayUrl:this.providerOpts.relayUrl||Gt,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name,customStoragePrefix:this.providerOpts.customStoragePrefix,telemetryEnabled:this.providerOpts.telemetryEnabled}),this.providerOpts.session)try{this.session=this.client.session.get(this.providerOpts.session.topic)}catch(s){throw this.logger.error("Failed to get session",s),new Error(`The provided session: ${(e=(t=this.providerOpts)==null?void 0:t.session)==null?void 0:e.topic} doesn't exist in the Sign client`)}else{const s=this.client.session.getAll();this.session=s[0]}this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const t=[...new Set(Object.keys(this.session.namespaces).map(e=>F(e)))];V("client",this.client),V("events",this.events),V("disableProviderPing",this.disableProviderPing),t.forEach(e=>{if(!this.session)return;const s=Se(e,this.session);if((s==null?void 0:s.length)===0)return;const n=Ut(s),a=k(this.namespaces,this.optionalNamespaces),r=X(T({},a[e]),{accounts:s,chains:n});switch(e){case"eip155":this.rpcProviders[e]=new ci({namespace:r});break;case"algorand":this.rpcProviders[e]=new gi({namespace:r});break;case"solana":this.rpcProviders[e]=new ui({namespace:r});break;case"cosmos":this.rpcProviders[e]=new fi({namespace:r});break;case"polkadot":this.rpcProviders[e]=new ii({namespace:r});break;case"cip34":this.rpcProviders[e]=new bi({namespace:r});break;case"elrond":this.rpcProviders[e]=new Ci({namespace:r});break;case"multiversx":this.rpcProviders[e]=new Hi({namespace:r});break;case"near":this.rpcProviders[e]=new Ei({namespace:r});break;case"tezos":this.rpcProviders[e]=new Ni({namespace:r});break;default:this.rpcProviders[e]=new Fi({namespace:r})}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",t=>{var e;const{topic:s}=t;s===((e=this.session)==null?void 0:e.topic)&&this.events.emit("session_ping",t)}),this.client.on("session_event",t=>{var e;const{params:s,topic:n}=t;if(n!==((e=this.session)==null?void 0:e.topic))return;const{event:a}=s;if(a.name==="accountsChanged"){const r=a.data;r&&J(r)&&this.events.emit("accountsChanged",r.map(vt))}else if(a.name==="chainChanged"){const r=s.chainId,o=s.event.data,c=F(r),u=G(r)!==G(o)?`${c}:${G(o)}`:r;this.onChainChanged(u)}else this.events.emit(a.name,a.data);this.events.emit("session_event",t)}),this.client.on("session_update",({topic:t,params:e})=>{var s,n;if(t!==((s=this.session)==null?void 0:s.topic))return;const{namespaces:a}=e,r=(n=this.client)==null?void 0:n.session.get(t);this.session=X(T({},r),{namespaces:a}),this.onSessionUpdate(),this.events.emit("session_update",{topic:t,params:e})}),this.client.on("session_delete",async t=>{var e;t.topic===((e=this.session)==null?void 0:e.topic)&&(await this.cleanup(),this.events.emit("session_delete",t),this.events.emit("disconnect",X(T({},ot("USER_DISCONNECTED")),{data:t.topic})))}),this.on(v.DEFAULT_CHAIN_CHANGED,t=>{this.onChainChanged(t,!0)})}getProvider(t){return this.rpcProviders[t]||this.rpcProviders[qt]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(t=>{var e;this.getProvider(t).updateNamespace((e=this.session)==null?void 0:e.namespaces[t])})}setNamespaces(t){const{namespaces:e={},optionalNamespaces:s={},sessionProperties:n,scopedProperties:a}=t;this.optionalNamespaces=k(e,s),this.sessionProperties=n,this.scopedProperties=a}validateChain(t){const[e,s]=(t==null?void 0:t.split(":"))||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[e,s];if(e&&!Object.keys(this.namespaces||{}).map(r=>F(r)).includes(e))throw new Error(`Namespace '${e}' is not configured. Please call connect() first with namespace config.`);if(e&&s)return[e,s];const n=F(Object.keys(this.namespaces)[0]),a=this.rpcProviders[n].getDefaultChain();return[n,a]}async requestAccounts(){const[t]=this.validateChain();return await this.getProvider(t).requestAccounts()}async onChainChanged(t,e=!1){if(!this.namespaces)return;const[s,n]=this.validateChain(t);if(!n)return;this.updateNamespaceChain(s,n);const a=this.getProvider(s).getDefaultChain();e?(this.events.emit("chainChanged",n),this.emitAccountsChangedOnChainChange({namespace:s,previousChainId:a,newChainId:t})):this.getProvider(s).setDefaultChain(n),await this.persist("namespaces",this.namespaces)}emitAccountsChangedOnChainChange({namespace:t,previousChainId:e,newChainId:s}){var n,a;try{if(e===s)return;const r=(a=(n=this.session)==null?void 0:n.namespaces[t])==null?void 0:a.accounts;if(!r)return;const o=r.filter(c=>c.includes(`${s}:`)).map(vt);if(!J(o))return;this.events.emit("accountsChanged",o)}catch(r){this.logger.warn("Failed to emit accountsChanged on chain change",r)}}updateNamespaceChain(t,e){if(!this.namespaces)return;const s=this.namespaces[t]?t:`${t}:${e}`,n={chains:[],methods:[],events:[],defaultChain:e};this.namespaces[s]?this.namespaces[s]&&(this.namespaces[s].defaultChain=e):this.namespaces[s]=n}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,await this.deleteFromStore("namespaces"),await this.deleteFromStore("optionalNamespaces"),await this.deleteFromStore("sessionProperties"),this.session=void 0,this.cleanupPendingPairings({deletePairings:!0}),await this.cleanupStorage()}async persist(t,e){var s;const n=((s=this.session)==null?void 0:s.topic)||"";await this.client.core.storage.setItem(`${x}/${t}${n}`,e)}async getFromStore(t){var e;const s=((e=this.session)==null?void 0:e.topic)||"";return await this.client.core.storage.getItem(`${x}/${t}${s}`)}async deleteFromStore(t){var e;const s=((e=this.session)==null?void 0:e.topic)||"";await this.client.core.storage.removeItem(`${x}/${t}${s}`)}async cleanupStorage(){var t;try{if(((t=this.client)==null?void 0:t.session.length)>0)return;const e=await this.client.core.storage.getKeys();for(const s of e)s.startsWith(x)&&await this.client.core.storage.removeItem(s)}catch(e){this.logger.warn("Failed to cleanup storage",e)}}}const ws=nt;export{ws as UniversalProvider,nt as default};
|
|
2
|
+
//# sourceMappingURL=index.es-CHzsJBZX.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e as v}from"./index-
|
|
2
|
-
//# sourceMappingURL=index.es-
|
|
1
|
+
import{e as v}from"./index-Bns4uVVf.js";import{o}from"./browser-ponyfill-jzbj-jA4.js";import{i as a,s as l,a as b,f as u,p as y}from"./index-HS7_UPOd.js";import"./index-BGW18IEb.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="557987a5-0f95-4a61-9bd0-78ce817b237d",s._sentryDebugIdIdentifier="sentry-dbid-557987a5-0f95-4a61-9bd0-78ce817b237d")}catch{}})();var m=Object.defineProperty,w=Object.defineProperties,P=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,c=(s,e,t)=>e in s?m(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,d=(s,e)=>{for(var t in e||(e={}))E.call(e,t)&&c(s,t,e[t]);if(h)for(var t of h(e))O.call(e,t)&&c(s,t,e[t]);return s},p=(s,e)=>w(s,P(e));const L={Accept:"application/json","Content-Type":"application/json"},j="POST",f={headers:L,method:j},g=10;class M{constructor(e,t=!1){if(this.url=e,this.disableProviderPing=t,this.events=new v.EventEmitter,this.isAvailable=!1,this.registering=!1,!a(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e,this.disableProviderPing=t}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(e){this.isAvailable||await this.register();try{const t=l(e),r=await(await o(this.url,p(d({},f),{body:t}))).json();this.onPayload({data:r})}catch(t){this.onError(e.id,t)}}async register(e=this.url){if(!a(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){const t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise((r,i)=>{this.events.once("register_error",n=>{this.resetMaxListeners(),i(n)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return i(new Error("HTTP connection is missing or invalid"));r()})})}this.url=e,this.registering=!0;try{if(!this.disableProviderPing){const t=l({id:1,jsonrpc:"2.0",method:"test",params:[]});await o(e,p(d({},f),{body:t}))}this.onOpen()}catch(t){const r=this.parseError(t);throw this.events.emit("register_error",r),this.onClose(),r}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;const t=typeof e.data=="string"?b(e.data):e.data;this.events.emit("payload",t)}onError(e,t){const r=this.parseError(t),i=r.message||r.toString(),n=u(e,i);this.events.emit("payload",n)}parseError(e,t=this.url){return y(e,t,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>g&&this.events.setMaxListeners(g)}}export{M as f};
|
|
2
|
+
//# sourceMappingURL=index.es-CWw1jqy2.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="
|
|
2
|
-
//# sourceMappingURL=items-empty-
|
|
1
|
+
(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="90acff89-720e-4535-8e7e-f251e29f5476",e._sentryDebugIdIdentifier="sentry-dbid-90acff89-720e-4535-8e7e-f251e29f5476")}catch{}})();const o="https://cdn.decentraland.org/@dcl/shop/1.18.2-36637356847.commit-825c9d5/_assets/collections-empty-5cIoxSYD.svg",s="data:image/svg+xml,%3csvg%20width='138'%20height='138'%20viewBox='0%200%20138%20138'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M100.208%2082.875V69.5C100.208%2062.4055%2097.3894%2055.6015%2092.3728%2050.5849C87.3562%2045.5683%2080.5522%2042.75%2073.4577%2042.75H60.0827V38.2917C60.0827%2035.9268%2061.0221%2033.6588%2062.6943%2031.9866C64.3665%2030.3144%2066.6345%2029.375%2068.9994%2029.375C71.3642%2029.375%2073.6322%2030.3144%2075.3044%2031.9866C76.9766%2033.6588%2077.916%2035.9268%2077.916%2038.2917V42.75M99.6326%20100.138C98.7987%20102.883%2097.1042%20105.287%2094.7994%20106.995C92.4946%20108.704%2089.7016%20109.626%2086.8327%20109.625H51.166C47.6188%20109.625%2044.2168%20108.216%2041.7085%20105.708C39.2002%20103.199%2037.791%2099.7973%2037.791%2096.25V69.5C37.7875%2065.4555%2038.7026%2061.4631%2040.4673%2057.8239C42.2321%2054.1848%2044.8003%2050.994%2047.9783%2048.4923'%20stroke='url(%23paint0_linear_1565_322568)'%20stroke-width='8.91667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M55.625%20109.625V91.7917C55.625%2089.4268%2056.5644%2087.1588%2058.2366%2085.4866C59.9088%2083.8144%2062.1768%2082.875%2064.5417%2082.875H73.4583C75.8232%2082.875%2078.0912%2083.8144%2079.7634%2085.4866C81.4356%2087.1588%2082.375%2089.4268%2082.375%2091.7917V109.625M28.875%2029.375L109.125%20109.625'%20stroke='url(%23paint1_linear_1565_322568)'%20stroke-width='8.91667'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_1565_322568'%20x1='35.8244'%20y1='69.5051'%20x2='146.296'%20y2='61.4101'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_1565_322568'%20x1='26.3464'%20y1='69.5051'%20x2='167.888'%20y2='56.17'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";export{o as c,s as i};
|
|
2
|
+
//# sourceMappingURL=items-empty-8_aTRszf.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{j as c}from"./react-
|
|
2
|
-
//# sourceMappingURL=jump-
|
|
1
|
+
import{j as c}from"./react-BUrQZkQz.js";import{p as f}from"./sentry-DyLfTiSb.js";import{c as m}from"./index-BZe9O30I.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="10f9f84f-fdb3-4685-9f06-c02e59ff4c19",e._sentryDebugIdIdentifier="sentry-dbid-10f9f84f-fdb3-4685-9f06-c02e59ff4c19")}catch{}})();function I(e){return c.jsxs("svg",{viewBox:"0 0 32 32",width:"32",height:"32",fill:"none","aria-hidden":!0,...e,children:[c.jsx("rect",{width:"32.0012",height:"32.0012",rx:"8",fill:"#FF2D55"}),c.jsx("rect",{x:"1.2632",y:"1.2632",width:"29.4748",height:"29.4748",rx:"6.7368",stroke:"#FCFCFC",strokeOpacity:"0.5",strokeWidth:"2.52641"}),c.jsx("path",{d:"M27.3021 14.4254L19.4245 6.55186C18.0203 5.14831 15.657 6.14106 15.657 8.12658V10.7283C15.5885 10.7283 15.5543 10.7283 15.4858 10.7283H8.01351C6.74626 10.7283 5.71875 11.721 5.71875 12.9877V18.9784C5.71875 20.2451 6.74626 21.272 8.01351 21.272H15.4515C15.52 21.272 15.5543 21.272 15.6228 21.272V23.8738C15.6228 25.8593 18.0203 26.852 19.3903 25.4485L27.2678 17.5749C28.1583 16.6848 28.1583 15.2813 27.3021 14.4254Z",fill:"#FCFCFC"})]})}function v(e){const n=new URLSearchParams;return e.position&&n.set("position",e.position),e.realm&&n.set("realm",e.realm),e.communityId&&n.set("community",e.communityId),e.dclenv&&n.set("dclenv",e.dclenv),e.sceneConsole&&n.set("scene-console",e.sceneConsole),e.multiInstance&&n.set("multi-instance",e.multiInstance),`decentraland://?${n.toString()}`}function y(){return typeof window<"u"&&typeof window.process=="object"&&window.process.type==="renderer"||typeof f<"u"&&typeof f.versions=="object"&&!!f.versions.electron||typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.includes("Electron")}function b(e={}){const{timeoutMs:n=750,userAgentData:t}=e;if((t==null?void 0:t.mobile)||(t==null?void 0:t.tablet)||y())return Promise.resolve(!1);const r=v(e);let d=!1;const o=()=>{d=!0},a=()=>{document.removeEventListener("visibilitychange",u),window.removeEventListener("pagehide",o),window.removeEventListener("blur",o)},u=()=>{document.visibilityState==="hidden"&&o()};document.addEventListener("visibilitychange",u,{passive:!0}),window.addEventListener("pagehide",o,{passive:!0}),window.addEventListener("blur",o,{passive:!0});try{window.location.assign(r)}catch{return a(),Promise.resolve(!1)}return new Promise(s=>{const h=setTimeout(()=>{a(),s(!!d)},n);d&&(clearTimeout(h),a(),s(!0))})}const l=m.chainId===80002?"https://decentraland.zone/jump":"https://decentraland.org/jump";function L(e){var t;const n=(t=e.find(i=>i.urn))==null?void 0:t.urn;return`decentraland://open?iap_enabled=true${n?`&urn=${encodeURIComponent(n)}`:""}`}function w({position:e,realm:n}){return{position:e&&/^-?\d+,-?\d+$/.test(e)?e:void 0,realm:n!=null&&n.endsWith(".dcl.eth")?n:void 0}}function p(e){const{position:n,realm:t}=w(e),i=new URLSearchParams;n&&i.set("position",n),t&&i.set("realm",t);const r=i.toString();return r?`${l}?${r}`:l}async function x(e){return!(typeof window.matchMedia=="function"&&window.matchMedia("(pointer: coarse)").matches)&&await b({...w(e),...m.chainId===80002?{dclenv:"zone"}:{}}).catch(()=>!1)?"client":(window.open(p(e),"_blank","noopener")||window.location.assign(p(e)),"jump_page")}export{l as J,I as a,L as b,x as j};
|
|
2
|
+
//# sourceMappingURL=jump-C1l2pbYY.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{v as k,p,s as h}from"./prepare-contract-call-
|
|
2
|
-
//# sourceMappingURL=linkAccount-
|
|
1
|
+
import{v as k,p,s as h}from"./prepare-contract-call-BLAPB3co.js";import{c as l,e as w}from"./utils-Dp9zU4fq.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="a49902db-b00a-4baf-8aa6-9391729aa69c",n._sentryDebugIdIdentifier="sentry-dbid-a49902db-b00a-4baf-8aa6-9391729aa69c")}catch{}})();function b(n){const t=n.domain;return(t==null?void 0:t.chainId)!==void 0&&k(t.chainId)&&(n.domain={...n.domain,chainId:p(n.domain.chainId)}),n}async function y({client:n,ecosystem:t,tokenToLink:e,storage:r}){const d=w(n,t),c=l("inAppWallet"),s=await r.getAuthCookie();if(!s)throw new Error("Failed to link account, no user logged in");const o={Authorization:`Bearer iaw-auth-token:${s}`,"Content-Type":"application/json"},a=await d(`${c}/api/2024-05-05/account/connect`,{body:h({accountAuthTokenToConnect:e}),headers:o,method:"POST"});if(!a.ok){const u=await a.json();throw new Error(u.message||"Failed to link account.")}const{linkedAccounts:i}=await a.json();return i??[]}async function m({client:n,ecosystem:t,profileToUnlink:e,allowAccountDeletion:r=!1,storage:d}){const c=w(n,t),s=l("inAppWallet"),o=await d.getAuthCookie();if(!o)throw new Error("Failed to unlink account, no user logged in");const a={Authorization:`Bearer iaw-auth-token:${o}`,"Content-Type":"application/json"},i=await c(`${s}/api/2024-05-05/account/disconnect`,{body:h({allowAccountDeletion:r,details:e.details,type:e.type}),headers:a,method:"POST"});if(!i.ok){const f=await i.json();throw new Error(f.message||"Failed to unlink account.")}const{linkedAccounts:u}=await i.json();return u??[]}async function I({client:n,ecosystem:t,storage:e}){const r=w(n,t),d=l("inAppWallet"),c=await e.getAuthCookie();if(!c)throw new Error("Failed to get linked accounts, no user logged in");const s={Authorization:`Bearer iaw-auth-token:${c}`,"Content-Type":"application/json"},o=await r(`${d}/api/2024-05-05/accounts`,{headers:s,method:"GET"});if(!o.ok){const i=await o.json();throw new Error(i.message||"Failed to get linked accounts.")}const{linkedAccounts:a}=await o.json();return a??[]}export{I as g,y as l,b as p,m as u};
|
|
2
|
+
//# sourceMappingURL=linkAccount-CSENce9R.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{bb as w,c as p,bc as F,w as M,bd as b,be as E,bf as A,V as S,bg as P,bh as U}from"./index-DIWXPWGD.js";import"./react-CTFQnYcx.js";import{d as h}from"./dcl-schemas-LawD6Riy.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="bfb16301-db06-45c7-9987-014e0ec2c70a",e._sentryDebugIdIdentifier="sentry-dbid-bfb16301-db06-45c7-9987-014e0ec2c70a")}catch{}})();function v(){return p.creditsServerUrl}function D(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||void 0}catch{return}}async function x(e,r){const t=await w(`${v()}/credits/checkout`,{method:"POST",identity:r,metadata:{},headers:{"Content-Type":"application/json"},body:JSON.stringify({packId:e,timezone:D(),source:"website"})});if(!t.ok)throw new Error(`checkout ${t.status}: ${await t.text()}`);const{orderId:n,url:s}=await t.json();return{orderId:n,url:s,mock:!1}}async function L(e,r,t={}){const{intervalMs:n=1500,timeoutMs:s=6e4,signal:i}=t,o=Date.now()+s;for(;;){if(i!=null&&i.aborted)throw new DOMException("Aborted","AbortError");const c=await O(e,r,i);if(!R(c.status))return c;if(Date.now()>o)return c.status==="initiated"?c:{status:"pending"};await $(n,i)}}function R(e){return e==="processing"||e==="crediting"||e==="initiated"}async function O(e,r,t){const n=await w(`${v()}/credits/orders/${e}`,{method:"GET",identity:r,metadata:{},signal:t});if(n.status===404)return{status:"processing"};if(!n.ok)throw new Error(`order status ${n.status}`);return n.json()}function $(e,r){return new Promise((t,n)=>{const s=setTimeout(t,e);r==null||r.addEventListener("abort",()=>{clearTimeout(s),n(new DOMException("Aborted","AbortError"))})})}const B=.1,k=[{id:"pack_5",usd:5.99,credits:40},{id:"pack_10",usd:11.99,credits:100,bestValue:!0},{id:"pack_25",usd:29.99,credits:260},{id:"pack_50",usd:59.99,credits:540}];function Q(e,r){const t=r.reduce((i,o)=>o.usd<i.usd?o:i,r[0]);if(!t||t.id===e.id||!(t.usd>0))return null;const n=Math.floor(t.credits/t.usd*e.usd),s=e.credits-n;return s>0?{baseline:n,bonus:s}:null}const ee=4;function te(e,r){const t=Math.max(0,r),n=t>0?e.filter(c=>c.credits>=t):e,s=t<=0||n.length>0,i=n.length>0?n:e;if(i.length===0)return{packs:i,recommended:null,closesGap:s};const o=s?i.reduce((c,a)=>a.credits<c.credits?a:c):i.reduce((c,a)=>a.credits>c.credits?a:c);return{packs:i,recommended:o,closesGap:s}}function C(e){return e.imageUrlWebp||e.imageUrl||void 0}async function G(){const e=await fetch(`${p.creditsServerUrl}/credits/packs`);if(!e.ok)throw new Error(`credit packs ${e.status}`);const{packs:r}=await e.json();return r.slice().sort((t,n)=>(t.order??0)-(n.order??0)).map(t=>({id:t.id,usd:t.usd,credits:t.credits,...t.recommended?{bestValue:!0}:{},...C(t)?{artUrl:C(t)}:{}}))}function _(e){return k.find(r=>r.id===e)}const m="mock_cs_",N=new Set([80002,11155111,1337,31337]);function I(){const e=!p.stripePublishableKey;if(e&&!N.has(p.chainId))throw new Error(`Stripe publishable key is missing on chainId=${p.chainId}, which is not a recognized test network. Refusing to fall back to mock payments in a real-money environment — configure STRIPE_PUBLISHABLE_KEY.`);return e}async function re(e,r){const t=_(e);if(!t)throw new Error("Unknown pack");if(I())return W(t);if(!(r!=null&&r.identity))throw new Error("Sign in to get credits.");return x(e,r.identity)}async function ne(e,r={}){const{intervalMs:t,timeoutMs:n,signal:s,identity:i}=r;if(I()||e.startsWith(m))return H(e,r);if(!i)throw new Error("Sign in to get credits.");return L(e,i,{intervalMs:t,timeoutMs:n,signal:s})}function W(e){const r=`${m}${e.id}_${Date.now()}`;return T(400).then(()=>({orderId:r,clientSecret:`${m}${e.id}`,mock:!0}))}async function H(e,r={}){await T(r.intervalMs??900);const t=e.replace(m,"").replace(/_\d+$/,""),n=_(t),s=(n==null?void 0:n.credits)??0;if(r.address&&n)try{const i=await F(r.address,Math.round(n.credits*B*100));return{status:"credited",creditsGranted:s,newBalance:i.credits}}catch(i){return{status:"failed",error:i.message}}return{status:"credited",creditsGranted:s,newBalance:s}}function T(e,r){return new Promise((t,n)=>{setTimeout(t,e)})}function ie(){const{data:e,isLoading:r}=M({queryKey:["credit-packs"],queryFn:G,staleTime:3e5,retry:!1});return{packs:e??k,isLoading:r&&e===void 0}}const g=1e6,q=1;function Z(e){return e.acquisition==="store"?{kind:"store",item:{collection:e.item.contractAddress??"",itemId:String(e.item.itemId??""),priceWei:e.priceWei},chainId:e.item.chainId}:{kind:"trade",trade:e.trade,coupon:e.coupon}}function se(e){const r=!!e.item.contractAddress&&e.item.itemId!=null;return{usdPriceCents:e.usdCents,...e.acquisition==="trade"?{tradeId:e.trade.id}:{},...r?{contractAddress:e.item.contractAddress,itemId:String(e.item.itemId)}:{}}}function oe(e,r){const t=new Map;for(const n of e){const s=Z(n),i=r(s),o=t.get(i);o?(o.units.push(n),o.drafts.push(s)):t.set(i,{key:i,units:[n],drafts:[s]})}return[...t.values()]}const ce="dcl_shop_resume_cart";function y(e){return S(e)}function K(e,r){const t=e.received[0];return t?t.assetType===Number(h.TradeAssetType.USD_PEGGED_MANA)?U(t.amount):t.assetType===Number(h.TradeAssetType.ERC20)?!r||!t.amount?0:b(t.amount,r):0:0}function ae(e){return e.acquisition==="trade"?{kind:"trade",trade:e.trade,coupon:e.coupon}:{kind:"store",mint:{item:{collection:e.item.contractAddress,itemId:String(e.item.itemId),priceWei:e.priceWei},chainId:e.item.chainId}}}async function V(e,r,t,n,s,i){const o=e.tokenId?1:Math.max(1,Math.floor(e.quantity??1));if((e.acquisition??"trade")==="store"){const l=s?await s(e):null;if(!l||!n)return{status:"gone"};if(l.available<o)return{status:"gone"};const d=b(l.priceWei,n);return!Number.isFinite(d)||d<=0?{status:"no-price"}:{status:"buyable",line:{item:e,acquisition:"store",priceWei:l.priceWei,usdCents:d,priceCredits:y(d),quantity:o}}}const c=await t(e);if(!c)return{status:"gone"};if(!E(c))return{status:"gone"};if(A(c,r))return{status:"own"};const a=e.coupon?z(await(i==null?void 0:i(e)),c):void 0,u=j(K(c,n),a);return!Number.isFinite(u)||u<=0?{status:"no-price"}:{status:"buyable",line:{item:e,acquisition:"trade",trade:c,coupon:a,usdCents:u,priceCredits:y(u),quantity:o}}}function j(e,r){return!r||e<=0?e:Math.ceil(e*(g-r.discount)/g)}function z(e,r,t=Date.now()){var o,c,a;if(!e||e.discountType!==q||e.discount<=0||e.discount>=g||Number((o=e.checks)==null?void 0:o.expiration)<=t||!(Number((c=e.checks)==null?void 0:c.effective)<=t))return;const n=P(r);if(n===null||((a=e.couponManager)==null?void 0:a.toLowerCase())!==n)return;const s=r.sent??[];return s.length>0&&s.every(u=>Number(u.assetType)===Number(h.TradeAssetType.COLLECTION_ITEM))?e:void 0}async function de(e,r,t,n,s,i){const o=[],c=[],a=[];for(const d of e)try{const f=await V(d,r,t,n,s,i);f.status==="buyable"?o.push(f.line):f.status==="own"?a.push(d):c.push(d)}catch{c.push(d)}const u=o.reduce((d,f)=>d+f.priceCredits*f.quantity,0),l=c.length>0||a.length>0||o.some(d=>d.priceCredits!==d.item.priceCredits);return{buyable:o,unavailable:c,own:a,liveTotalCredits:u,orderChanged:l}}function ue(e){const{reservations:r,spent:t,settled:n}=e,s=[...new Set(r.filter(o=>!t.has(o.salt)).map(o=>o.salt))],i=[...new Set(r.filter(o=>n.has(o.salt)).map(o=>o.itemId))];return{toRelease:s,boughtItemIds:i}}const le="data:image/svg+xml,%3csvg%20width='61'%20height='61'%20viewBox='0%200%2061%2061'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M30.5%2061C47.3447%2061%2061%2047.3447%2061%2030.5C61%2013.6553%2047.3447%200%2030.5%200C13.6553%200%200%2013.6553%200%2030.5C0%2047.3447%2013.6553%2061%2030.5%2061Z'%20fill='url(%23gc_paint0)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.2001%2054.8997C17.2935%2058.7274%2023.6375%2060.9997%2030.5%2060.9997C37.3625%2060.9997%2043.7065%2058.7274%2048.8%2054.8997H12.2001Z'%20fill='%23FF2D55'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.10013%2048.7997C7.83863%2051.1024%209.89738%2053.1612%2012.2001%2054.8997H48.8001C51.1029%2053.1612%2053.1616%2051.1024%2054.9001%2048.7997H6.10013Z'%20fill='%23FFA25A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.9158%2042.6998H2.5468C3.4923%2044.8805%204.69705%2046.924%206.10005%2048.7997H40.9311V42.6998H40.9158Z'%20fill='%23FFC95B'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.6094%2019.8247V42.6997H40.6719L21.6094%2019.8247Z'%20fill='url(%23gc_paint1)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.5468%2042.6997H21.6093V19.8248L2.5468%2042.6997Z'%20fill='%23FCFCFC'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.9158%2032.025V48.8H54.9L40.9158%2032.025Z'%20fill='url(%23gc_paint2)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M26.9467%2048.8H40.9157V32.025L26.9467%2048.8Z'%20fill='%23FCFCFC'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.9158%2027.4497C45.127%2027.4497%2048.5408%2024.0359%2048.5408%2019.8247C48.5408%2015.6136%2045.127%2012.1998%2040.9158%2012.1998C36.7046%2012.1998%2033.2908%2015.6136%2033.2908%2019.8247C33.2908%2024.0359%2036.7046%2027.4497%2040.9158%2027.4497Z'%20fill='%23FFC95B'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.6092%2015.2497C23.7148%2015.2497%2025.4217%2013.5428%2025.4217%2011.4372C25.4217%209.33166%2023.7148%207.62475%2021.6092%207.62475C19.5036%207.62475%2017.7967%209.33166%2017.7967%2011.4372C17.7967%2013.5428%2019.5036%2015.2497%2021.6092%2015.2497Z'%20fill='%23FFC95B'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='gc_paint0'%20x1='30.5'%20y1='-12.6335'%20x2='-12.6335'%20y2='30.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='gc_paint1'%20x1='21.6029'%20y1='19.8247'%20x2='21.6029'%20y2='42.6997'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A524B3'/%3e%3cstop%20offset='1'%20stop-color='%23FF2D55'/%3e%3c/linearGradient%3e%3clinearGradient%20id='gc_paint2'%20x1='40.9111'%20y1='32.025'%20x2='40.9111'%20y2='48.8'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A524B3'/%3e%3cstop%20offset='1'%20stop-color='%23FF2D55'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";export{ee as M,ce as R,se as a,ae as b,re as c,ne as d,Q as e,V as f,oe as g,I as i,le as l,te as o,ue as p,de as r,ie as u};
|
|
2
|
-
//# sourceMappingURL=loader-logo-
|
|
1
|
+
import{bb as w,c as p,bc as F,w as M,bd as b,be as E,bf as A,V as S,bg as P,bh as U}from"./index-BZe9O30I.js";import"./react-BUrQZkQz.js";import{d as h}from"./dcl-schemas-OgkR3Xnp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="bfb16301-db06-45c7-9987-014e0ec2c70a",e._sentryDebugIdIdentifier="sentry-dbid-bfb16301-db06-45c7-9987-014e0ec2c70a")}catch{}})();function v(){return p.creditsServerUrl}function D(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||void 0}catch{return}}async function x(e,r){const t=await w(`${v()}/credits/checkout`,{method:"POST",identity:r,metadata:{},headers:{"Content-Type":"application/json"},body:JSON.stringify({packId:e,timezone:D(),source:"website"})});if(!t.ok)throw new Error(`checkout ${t.status}: ${await t.text()}`);const{orderId:n,url:s}=await t.json();return{orderId:n,url:s,mock:!1}}async function L(e,r,t={}){const{intervalMs:n=1500,timeoutMs:s=6e4,signal:i}=t,o=Date.now()+s;for(;;){if(i!=null&&i.aborted)throw new DOMException("Aborted","AbortError");const c=await O(e,r,i);if(!R(c.status))return c;if(Date.now()>o)return c.status==="initiated"?c:{status:"pending"};await $(n,i)}}function R(e){return e==="processing"||e==="crediting"||e==="initiated"}async function O(e,r,t){const n=await w(`${v()}/credits/orders/${e}`,{method:"GET",identity:r,metadata:{},signal:t});if(n.status===404)return{status:"processing"};if(!n.ok)throw new Error(`order status ${n.status}`);return n.json()}function $(e,r){return new Promise((t,n)=>{const s=setTimeout(t,e);r==null||r.addEventListener("abort",()=>{clearTimeout(s),n(new DOMException("Aborted","AbortError"))})})}const B=.1,k=[{id:"pack_5",usd:5.99,credits:40},{id:"pack_10",usd:11.99,credits:100,bestValue:!0},{id:"pack_25",usd:29.99,credits:260},{id:"pack_50",usd:59.99,credits:540}];function Q(e,r){const t=r.reduce((i,o)=>o.usd<i.usd?o:i,r[0]);if(!t||t.id===e.id||!(t.usd>0))return null;const n=Math.floor(t.credits/t.usd*e.usd),s=e.credits-n;return s>0?{baseline:n,bonus:s}:null}const ee=4;function te(e,r){const t=Math.max(0,r),n=t>0?e.filter(c=>c.credits>=t):e,s=t<=0||n.length>0,i=n.length>0?n:e;if(i.length===0)return{packs:i,recommended:null,closesGap:s};const o=s?i.reduce((c,a)=>a.credits<c.credits?a:c):i.reduce((c,a)=>a.credits>c.credits?a:c);return{packs:i,recommended:o,closesGap:s}}function C(e){return e.imageUrlWebp||e.imageUrl||void 0}async function G(){const e=await fetch(`${p.creditsServerUrl}/credits/packs`);if(!e.ok)throw new Error(`credit packs ${e.status}`);const{packs:r}=await e.json();return r.slice().sort((t,n)=>(t.order??0)-(n.order??0)).map(t=>({id:t.id,usd:t.usd,credits:t.credits,...t.recommended?{bestValue:!0}:{},...C(t)?{artUrl:C(t)}:{}}))}function _(e){return k.find(r=>r.id===e)}const m="mock_cs_",N=new Set([80002,11155111,1337,31337]);function I(){const e=!p.stripePublishableKey;if(e&&!N.has(p.chainId))throw new Error(`Stripe publishable key is missing on chainId=${p.chainId}, which is not a recognized test network. Refusing to fall back to mock payments in a real-money environment — configure STRIPE_PUBLISHABLE_KEY.`);return e}async function re(e,r){const t=_(e);if(!t)throw new Error("Unknown pack");if(I())return W(t);if(!(r!=null&&r.identity))throw new Error("Sign in to get credits.");return x(e,r.identity)}async function ne(e,r={}){const{intervalMs:t,timeoutMs:n,signal:s,identity:i}=r;if(I()||e.startsWith(m))return H(e,r);if(!i)throw new Error("Sign in to get credits.");return L(e,i,{intervalMs:t,timeoutMs:n,signal:s})}function W(e){const r=`${m}${e.id}_${Date.now()}`;return T(400).then(()=>({orderId:r,clientSecret:`${m}${e.id}`,mock:!0}))}async function H(e,r={}){await T(r.intervalMs??900);const t=e.replace(m,"").replace(/_\d+$/,""),n=_(t),s=(n==null?void 0:n.credits)??0;if(r.address&&n)try{const i=await F(r.address,Math.round(n.credits*B*100));return{status:"credited",creditsGranted:s,newBalance:i.credits}}catch(i){return{status:"failed",error:i.message}}return{status:"credited",creditsGranted:s,newBalance:s}}function T(e,r){return new Promise((t,n)=>{setTimeout(t,e)})}function ie(){const{data:e,isLoading:r}=M({queryKey:["credit-packs"],queryFn:G,staleTime:3e5,retry:!1});return{packs:e??k,isLoading:r&&e===void 0}}const g=1e6,q=1;function Z(e){return e.acquisition==="store"?{kind:"store",item:{collection:e.item.contractAddress??"",itemId:String(e.item.itemId??""),priceWei:e.priceWei},chainId:e.item.chainId}:{kind:"trade",trade:e.trade,coupon:e.coupon}}function se(e){const r=!!e.item.contractAddress&&e.item.itemId!=null;return{usdPriceCents:e.usdCents,...e.acquisition==="trade"?{tradeId:e.trade.id}:{},...r?{contractAddress:e.item.contractAddress,itemId:String(e.item.itemId)}:{}}}function oe(e,r){const t=new Map;for(const n of e){const s=Z(n),i=r(s),o=t.get(i);o?(o.units.push(n),o.drafts.push(s)):t.set(i,{key:i,units:[n],drafts:[s]})}return[...t.values()]}const ce="dcl_shop_resume_cart";function y(e){return S(e)}function K(e,r){const t=e.received[0];return t?t.assetType===Number(h.TradeAssetType.USD_PEGGED_MANA)?U(t.amount):t.assetType===Number(h.TradeAssetType.ERC20)?!r||!t.amount?0:b(t.amount,r):0:0}function ae(e){return e.acquisition==="trade"?{kind:"trade",trade:e.trade,coupon:e.coupon}:{kind:"store",mint:{item:{collection:e.item.contractAddress,itemId:String(e.item.itemId),priceWei:e.priceWei},chainId:e.item.chainId}}}async function V(e,r,t,n,s,i){const o=e.tokenId?1:Math.max(1,Math.floor(e.quantity??1));if((e.acquisition??"trade")==="store"){const l=s?await s(e):null;if(!l||!n)return{status:"gone"};if(l.available<o)return{status:"gone"};const d=b(l.priceWei,n);return!Number.isFinite(d)||d<=0?{status:"no-price"}:{status:"buyable",line:{item:e,acquisition:"store",priceWei:l.priceWei,usdCents:d,priceCredits:y(d),quantity:o}}}const c=await t(e);if(!c)return{status:"gone"};if(!E(c))return{status:"gone"};if(A(c,r))return{status:"own"};const a=e.coupon?z(await(i==null?void 0:i(e)),c):void 0,u=j(K(c,n),a);return!Number.isFinite(u)||u<=0?{status:"no-price"}:{status:"buyable",line:{item:e,acquisition:"trade",trade:c,coupon:a,usdCents:u,priceCredits:y(u),quantity:o}}}function j(e,r){return!r||e<=0?e:Math.ceil(e*(g-r.discount)/g)}function z(e,r,t=Date.now()){var o,c,a;if(!e||e.discountType!==q||e.discount<=0||e.discount>=g||Number((o=e.checks)==null?void 0:o.expiration)<=t||!(Number((c=e.checks)==null?void 0:c.effective)<=t))return;const n=P(r);if(n===null||((a=e.couponManager)==null?void 0:a.toLowerCase())!==n)return;const s=r.sent??[];return s.length>0&&s.every(u=>Number(u.assetType)===Number(h.TradeAssetType.COLLECTION_ITEM))?e:void 0}async function de(e,r,t,n,s,i){const o=[],c=[],a=[];for(const d of e)try{const f=await V(d,r,t,n,s,i);f.status==="buyable"?o.push(f.line):f.status==="own"?a.push(d):c.push(d)}catch{c.push(d)}const u=o.reduce((d,f)=>d+f.priceCredits*f.quantity,0),l=c.length>0||a.length>0||o.some(d=>d.priceCredits!==d.item.priceCredits);return{buyable:o,unavailable:c,own:a,liveTotalCredits:u,orderChanged:l}}function ue(e){const{reservations:r,spent:t,settled:n}=e,s=[...new Set(r.filter(o=>!t.has(o.salt)).map(o=>o.salt))],i=[...new Set(r.filter(o=>n.has(o.salt)).map(o=>o.itemId))];return{toRelease:s,boughtItemIds:i}}const le="data:image/svg+xml,%3csvg%20width='61'%20height='61'%20viewBox='0%200%2061%2061'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M30.5%2061C47.3447%2061%2061%2047.3447%2061%2030.5C61%2013.6553%2047.3447%200%2030.5%200C13.6553%200%200%2013.6553%200%2030.5C0%2047.3447%2013.6553%2061%2030.5%2061Z'%20fill='url(%23gc_paint0)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.2001%2054.8997C17.2935%2058.7274%2023.6375%2060.9997%2030.5%2060.9997C37.3625%2060.9997%2043.7065%2058.7274%2048.8%2054.8997H12.2001Z'%20fill='%23FF2D55'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.10013%2048.7997C7.83863%2051.1024%209.89738%2053.1612%2012.2001%2054.8997H48.8001C51.1029%2053.1612%2053.1616%2051.1024%2054.9001%2048.7997H6.10013Z'%20fill='%23FFA25A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.9158%2042.6998H2.5468C3.4923%2044.8805%204.69705%2046.924%206.10005%2048.7997H40.9311V42.6998H40.9158Z'%20fill='%23FFC95B'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.6094%2019.8247V42.6997H40.6719L21.6094%2019.8247Z'%20fill='url(%23gc_paint1)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.5468%2042.6997H21.6093V19.8248L2.5468%2042.6997Z'%20fill='%23FCFCFC'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.9158%2032.025V48.8H54.9L40.9158%2032.025Z'%20fill='url(%23gc_paint2)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M26.9467%2048.8H40.9157V32.025L26.9467%2048.8Z'%20fill='%23FCFCFC'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.9158%2027.4497C45.127%2027.4497%2048.5408%2024.0359%2048.5408%2019.8247C48.5408%2015.6136%2045.127%2012.1998%2040.9158%2012.1998C36.7046%2012.1998%2033.2908%2015.6136%2033.2908%2019.8247C33.2908%2024.0359%2036.7046%2027.4497%2040.9158%2027.4497Z'%20fill='%23FFC95B'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.6092%2015.2497C23.7148%2015.2497%2025.4217%2013.5428%2025.4217%2011.4372C25.4217%209.33166%2023.7148%207.62475%2021.6092%207.62475C19.5036%207.62475%2017.7967%209.33166%2017.7967%2011.4372C17.7967%2013.5428%2019.5036%2015.2497%2021.6092%2015.2497Z'%20fill='%23FFC95B'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='gc_paint0'%20x1='30.5'%20y1='-12.6335'%20x2='-12.6335'%20y2='30.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='gc_paint1'%20x1='21.6029'%20y1='19.8247'%20x2='21.6029'%20y2='42.6997'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A524B3'/%3e%3cstop%20offset='1'%20stop-color='%23FF2D55'/%3e%3c/linearGradient%3e%3clinearGradient%20id='gc_paint2'%20x1='40.9111'%20y1='32.025'%20x2='40.9111'%20y2='48.8'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A524B3'/%3e%3cstop%20offset='1'%20stop-color='%23FF2D55'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";export{ee as M,ce as R,se as a,ae as b,re as c,ne as d,Q as e,V as f,oe as g,I as i,le as l,te as o,ue as p,de as r,ie as u};
|
|
2
|
+
//# sourceMappingURL=loader-logo-Ctl7jE4d.js.map
|
package/_assets/{localBatchGatewayRequest-DMpeSwiY.js → localBatchGatewayRequest-LQwWSW0t.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{av as f}from"./NetworkUtil-
|
|
2
|
-
//# sourceMappingURL=localBatchGatewayRequest-
|
|
1
|
+
import{av as f}from"./NetworkUtil-BH3_oYP8.js";import{a$ as l,aN as w,bn as p,o as E,an as A,aH as g,h as b,g as F,ax as y,am as N,m,n as I,O as P,bo as R}from"./sendRawTransaction-BJhaPoFM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4de35ede-a25f-499f-8a4c-6f4d03946ea8",e._sentryDebugIdIdentifier="sentry-dbid-4de35ede-a25f-499f-8a4c-6f4d03946ea8")}catch{}})();function D(e){const{abi:o,data:n}=e,a=l(n,0,4),t=o.find(r=>r.type==="function"&&a===w(p(r)));if(!t)throw new E(a,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:t.name,args:"inputs"in t&&t.inputs&&t.inputs.length>0?A(t.inputs,l(n,4)):void 0}}const u="/docs/contract/encodeErrorResult";function h(e){const{abi:o,errorName:n,args:a}=e;let t=o[0];if(n){const c=g({abi:o,args:a,name:n});if(!c)throw new b(n,{docsPath:u});t=c}if(t.type!=="error")throw new b(void 0,{docsPath:u});const r=p(t),s=w(r);let i="0x";if(a&&a.length>0){if(!t.inputs)throw new F(t.name,{docsPath:u});i=y(t.inputs,a)}return N([s,i])}const d="/docs/contract/encodeFunctionResult";function v(e){const{abi:o,functionName:n,result:a}=e;let t=o[0];if(n){const s=g({abi:o,name:n});if(!s)throw new m(n,{docsPath:d});t=s}if(t.type!=="function")throw new m(void 0,{docsPath:d});if(!t.outputs)throw new I(t.name,{docsPath:d});const r=(()=>{if(t.outputs.length===0)return[];if(t.outputs.length===1)return[a];if(Array.isArray(a))return a;throw new P(a)})();return y(t.outputs,r)}const x="x-batch-gateway:true";async function H(e){const{data:o,ccipRequest:n}=e,{args:[a]}=D({abi:f,data:o}),t=[],r=[];return await Promise.all(a.map(async(s,i)=>{try{r[i]=s.urls.includes(x)?await H({data:s.data,ccipRequest:n}):await n(s),t[i]=!1}catch(c){t[i]=!0,r[i]=_(c)}})),v({abi:f,functionName:"query",result:[t,r]})}function _(e){return e.name==="HttpRequestError"&&e.status?h({abi:f,errorName:"HttpError",args:[e.status,e.shortMessage]}):h({abi:[R],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}export{v as a,H as b,D as d,h as e,x as l};
|
|
2
|
+
//# sourceMappingURL=localBatchGatewayRequest-LQwWSW0t.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as n,s as t,k as i}from"./index-
|
|
1
|
+
import{a as n,s as t,k as i}from"./index-BZe9O30I.js";import"./react-BUrQZkQz.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new o.Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="295db3e3-b29d-4da7-9cb8-0d4904b4a15e",o._sentryDebugIdIdentifier="sentry-dbid-295db3e3-b29d-4da7-9cb8-0d4904b4a15e")}catch{}})();const{colors:e,radius:d,z:r}=n,s=i`
|
|
2
2
|
0% {
|
|
3
3
|
transform: scale(0);
|
|
4
4
|
opacity: 0;
|
|
@@ -109,4 +109,4 @@ import{a as n,s as t,k as i}from"./index-DIWXPWGD.js";import"./react-CTFQnYcx.js
|
|
|
109
109
|
font-size: 16px;
|
|
110
110
|
margin: 2px 0 0;
|
|
111
111
|
`;export{h as A,f as B,u as H,x as L,b as M,g as T};
|
|
112
|
-
//# sourceMappingURL=modal.styles-
|
|
112
|
+
//# sourceMappingURL=modal.styles-DCTumybB.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as t}from"./sentry-
|
|
2
|
-
//# sourceMappingURL=native-
|
|
1
|
+
import{g as t}from"./sentry-DyLfTiSb.js";(function(){try{var e=typeof window<"u"?window:typeof t<"u"?t:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="307db27e-c364-44c8-9bac-a9a9aa31e23c",e._sentryDebugIdIdentifier="sentry-dbid-307db27e-c364-44c8-9bac-a9a9aa31e23c")}catch{}})();function o(){if(typeof WebSocket<"u")return WebSocket;if(typeof t.WebSocket<"u")return t.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const r=o(),i=Object.freeze(Object.defineProperty({__proto__:null,WebSocket:r},Symbol.toStringTag,{value:"Module"}));export{i as n};
|
|
2
|
+
//# sourceMappingURL=native-DEdJNx2w.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{aw as z}from"./NetworkUtil-JX9Qt66q.js";import{a as E,b as D,c as q,d as B,e as L,f as I,g as P,h as A,i as U,j as V,k as O,l as R,m as G,n as H,o as Z,p as K,q as X,r as Y,s as J,t as F,u as W,v as _,w as Q,x as $,y as aa,z as sa,A as ea,B as ta,C as na,D as ia,E as oa,F as ra,G as la,H as ca,I as ha,J as pa,K as da,L as ma,M as Ta,N as ua,O as ba,P as ka,Q as fa,R as ga,S as ya,T as va,U as ja,V as Sa,W as xa,X as wa,Y as Ca,Z as Na,_ as za,$ as Ma,a0 as Ea,a1 as Da,a2 as qa,a3 as Ba,a4 as La,a5 as Ia,a6 as Pa,a7 as Aa,a8 as Ua,a9 as Va,aa as Oa,ab as Ra,ac as Ga,ad as Ha,ae as Za,af as Ka,ag as Xa,ah as Ya,ai as Ja,aj as Fa,ak as Wa,al as _a,am as Qa,an as $a,ao as as,ap as ss,aq as es,ar as ts,as as ns,at as is,au as os,av as rs,aw as ls,ax as cs,ay as hs,az as ps,aA as ds,aB as ms,aC as Ts,aD as us,aE as bs,aF as ks,aG as fs,aH as gs,aI as ys,aJ as vs,aK as js,aL as Ss,aM as xs,aN as ws,aO as Cs,aP as Ns,aQ as zs,aR as Ms,aS as Es,aT as Ds,aU as qs,aV as Bs,aW as Ls,aX as Is,aY as Ps,aZ as As,a_ as Us,a$ as Vs,b0 as Os,b1 as Rs,b2 as Gs,b3 as Hs,b4 as Zs,b5 as Ks,b6 as Xs,b7 as Ys,b8 as Js,b9 as Fs,ba as Ws,bb as _s,bc as Qs,bd as $s,be as ae,bf as se,bg as ee,bh as te,bi as ne,bj as ie,bk as oe,bl as re,bm as le,bn as ce,bo as he,bp as pe,bq as de,br as me,bs as Te,bt as ue,bu as be,bv as ke,bw as fe,bx as ge,by as ye,bz as ve,bA as je,bB as Se,bC as xe,bD as we,bE as Ce,bF as Ne,bG as ze,bH as Me,bI as Ee,bJ as De,bK as qe,bL as Be,bM as Le,bN as Ie,bO as Pe,bP as Ae,bQ as Ue,bR as Ve,bS as Oe,bT as Re,bU as Ge,bV as He,bW as Ze,bX as Ke,bY as Xe,bZ as Ye,b_ as Je,b$ as Fe,c0 as We,c1 as _e,c2 as Qe,c3 as $e,c4 as at,c5 as st,c6 as et,c7 as tt,c8 as nt,c9 as it,ca as ot,cb as rt,cc as lt,cd as ct,ce as ht,cf as pt,cg as dt,ch as mt,ci as Tt,cj as ut,ck as bt,cl as kt,cm as ft,cn as gt,co as yt,cp as vt,cq as jt,cr as St,cs as xt,ct as wt,cu as Ct,cv as Nt,cw as zt,cx as Mt,cy as Et,cz as Dt,cA as qt,cB as Bt,cC as Lt,cD as It,cE as Pt,cF as At,cG as Ut,cH as Vt,cI as Ot,cJ as Rt,cK as Gt,cL as Ht,cM as Zt,cN as Kt,cO as Xt,cP as Yt,cQ as Jt,cR as Ft,cS as Wt,cT as _t,cU as Qt,cV as $t,cW as an,cX as sn,cY as en,cZ as tn,c_ as nn,c$ as on,d0 as rn,d1 as ln,d2 as cn,d3 as hn,d4 as pn,d5 as dn,d6 as mn,d7 as Tn,d8 as un,d9 as bn,da as kn,db as fn,dc as gn,dd as yn,de as vn,df as jn,dg as Sn,dh as xn,di as wn,dj as Cn,dk as Nn,dl as zn,dm as Mn,dn as En,dp as Dn,dq as qn,dr as Bn,ds as Ln,dt as In,du as Pn,dv as An,dw as Un,dx as Vn,dy as On,dy as Rn,dz as Gn,dA as Hn,dB as Zn,dC as Kn,dD as Xn,dE as Yn,dF as Jn,dG as Fn,dH as Wn,dI as _n,dJ as Qn,dK as $n,dL as ai,dM as si,dN as ei,dO as ti,dP as ni,dQ as ii,dR as oi,dS as ri,dT as li,dU as ci,dV as hi,dW as pi,dX as di,dY as mi,dZ as Ti,d_ as ui,d$ as bi,e0 as ki,e1 as fi,e2 as gi,e3 as yi,e4 as vi,e5 as ji,e6 as Si,e7 as xi,e8 as wi,e9 as Ci,ea as Ni,eb as zi,ec as Mi,ed as Ei,ee as Di,ef as qi,eg as Bi,eh as Li,ei as Ii,ej as Pi,ek as Ai,el as Ui,em as Vi,en as Oi,eo as Ri,ep as Gi,eq as Hi,er as Zi,es as Ki,et as Xi,eu as Yi,ev as Ji,ew as Fi,ex as Wi,ey as _i,ez as Qi,eA as $i,eB as ao,eC as so,eD as eo,eE as to,eF as no,eG as io,eH as oo,eI as ro,eJ as lo,eK as co,eL as ho,eM as po,eN as mo,eO as To,eP as uo,eQ as bo,eR as ko,eS as fo,eT as go,eU as yo,eV as vo,eW as jo,eX as So,eY as xo,eZ as wo,e_ as Co,e$ as No,f0 as zo,f1 as Mo,f2 as Eo,f3 as Do,f4 as qo,f5 as Bo,f6 as Lo,f7 as Io,f8 as Po,f9 as Ao,fa as Uo,fb as Vo,fc as Oo,fd as Ro,fe as Go,ff as Ho,fg as Zo,fh as Ko,fi as Xo,fj as Yo,fk as Jo,fl as Fo,fm as Wo,fn as _o,fo as Qo,fp as $o,fq as ar,fr as sr,fs as er,ft as tr,fu as nr,fv as ir,fw as or,fx as rr,fy as lr,fz as cr,fA as hr,fB as pr,fC as dr,fD as mr,fE as Tr,fF as ur,fG as br,fH as kr,fI as fr,fJ as gr,fK as yr,fL as vr,fM as jr,fN as Sr,fO as xr,fP as wr,fQ as Cr,fR as Nr,fS as zr,fT as Mr,fU as Er,fV as Dr,fW as qr,fX as Br,fY as Lr,fZ as Ir,f_ as Pr,f$ as Ar,g0 as Ur,g1 as Vr,g2 as Or,g3 as Rr,g4 as Gr,g5 as Hr,g6 as Zr,g7 as Kr,g8 as Xr,g9 as Yr,ga as Jr,gb as Fr,gc as Wr,gd as _r,ge as Qr,gf as $r,gg as al,gh as sl,gi as el,gj as tl,gk as nl,gl as il,gm as ol,gn as rl,go as ll,gp as cl,gq as hl,gr as pl,gs as dl,gt as ml,gu as Tl,gv as ul,gw as bl,gx as kl,gy as fl,gz as gl,gA as yl,gB as vl,gC as jl,gD as Sl,gE as xl,gF as wl,gG as Cl,gH as Nl,gI as zl,gJ as Ml,gK as El,gL as Dl,gM as ql,gN as Bl,gO as Ll,gP as Il,gQ as Pl,gR as Al,gS as Ul,gT as Vl,gU as Ol,gV as Rl,gW as Gl,gX as Hl,gY as Zl,gZ as Kl,g_ as Xl,g$ as Yl,h0 as Jl,h1 as Fl,h2 as Wl,h3 as _l,h4 as Ql,h5 as $l,h6 as ac,h7 as sc,h8 as ec,h9 as tc,ha as nc,hb as ic,hc as oc,hd as rc,he as lc,hf as cc,hg as hc,hh as pc,hi as dc,hj as mc,hk as Tc,hl as uc,hm as bc,hn as kc,ho as fc,hp as gc,hq as yc,hr as vc,hs as jc,ht as Sc,hu as xc,hv as wc,hw as Cc,hx as Nc,hy as zc,hz as Mc,hA as Ec,hB as Dc,hC as qc,hD as Bc,hE as Lc,hF as Ic,hG as Pc,hH as Ac,hI as Uc,hJ as Vc,hK as Oc,hL as Rc,hM as Gc,hN as Hc,hO as Zc,hP as Kc,hQ as Xc,hR as Yc,hS as Jc,hT as Fc,hU as Wc,hV as _c,hW as Qc,hX as $c,hY as ah,hZ as sh,h_ as eh,h$ as th,i0 as nh,i1 as ih,i2 as oh,i3 as rh,i4 as lh,i5 as ch,i6 as hh,i7 as ph,i8 as dh,i9 as mh,ia as Th,ib as uh,ib as bh,ic as kh,id as fh,ie as gh,ig as yh,ih as vh,ii as jh,ij as Sh,ik as xh,il as wh,im as Ch,io as Nh,ip as zh,iq as Mh,ir as Eh,is as Dh,it as qh,iu as Bh,iv as Lh,iw as Ih,ix as Ph,iy as Ah,iz as Uh,iA as Vh,iB as Oh,iC as Rh,iD as Gh,iE as Hh,iF as Zh,iG as Kh,iH as Xh,iI as Yh,iJ as Jh,iK as Fh,iL as Wh,iM as _h,iN as Qh,iO as $h,iM as ap,iP as sp,iP as ep,iQ as tp,iR as np,iS as ip,iT as op,iU as rp,iV as lp,iW as cp,iX as hp,iY as pp,iZ as dp,i_ as mp,i$ as Tp,j0 as up,j1 as bp,j2 as kp,j3 as fp,j4 as gp,j5 as yp,j6 as vp,j7 as jp,j8 as Sp,j9 as xp,ja as wp,jb as Cp,jc as Np,jd as zp,je as Mp,jf as Ep,jg as Dp,jh as qp,ji as Bp,jj as Lp,jk as Ip,jl as Pp,jm as Ap,jn as Up,jo as Vp,jp as Op,jq as Rp,jr as Gp,js as Hp,jt as Zp,ju as Kp,jv as Xp,jw as Yp,jx as Jp,jy as Fp,jz as Wp,jA as _p,jB as Qp,jC as $p,jD as ad,jC as sd,jE as ed,jF as td,jG as nd,jH as id,jI as od,jJ as rd,jK as ld,jL as cd,jM as hd,jN as pd,jO as dd,jP as md,jQ as Td,jR as ud,jS as bd,jT as kd,jU as fd,jV as gd,jW as yd,jX as vd,jY as jd,jZ as Sd,j_ as xd,j$ as wd,k0 as Cd,k1 as Nd,k2 as zd,k3 as Md,k4 as Ed,k5 as Dd,k6 as qd,k7 as Bd,k8 as Ld,k9 as Id,ka as Pd,kb as Ad,kc as Ud,kd as Vd,ke as Od,kf as Rd,kg as Gd,kb as Hd,kc as Zd,kh as Kd,ki as Xd,kj as Yd,kd as Jd,ke as Fd,kk as Wd,kl as _d,km as Qd}from"./zoraTestnet-B0IQcjzO.js";import"./sentry-PglMJ9Ft.js";import"./react-CTFQnYcx.js";import"./verifyHash-BW-27VxT.js";import"./sendRawTransaction-DpzoAN9l.js";import"./index-DIWXPWGD.js";import"./dcl-schemas-LawD6Riy.js";import"./ethers-CDATtpGn.js";import"./intl-AKLEHPeO.js";import"./secp256k1-Cq4gQOKU.js";import"./serializeTransaction-C_2EfKpy.js";import"./writeContract-DHC82gAe.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="97b863a7-7e79-46f0-bc49-80635103c12e",s._sentryDebugIdIdentifier="sentry-dbid-97b863a7-7e79-46f0-bc49-80635103c12e")}catch{}})();function a(s){return{formatters:void 0,fees:void 0,serializers:void 0,...s}}const u=a({id:"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",name:"Solana",network:"solana-mainnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!1,chainNamespace:"solana",caipNetworkId:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",deprecatedCaipNetworkId:"solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ"}),b=a({id:"EtWTRABZaYq6iMfeYKouRu166VU2xqa1",name:"Solana Devnet",network:"solana-devnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!0,chainNamespace:"solana",caipNetworkId:"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",deprecatedCaipNetworkId:"solana:8E9rvCKLFQia2Y35HXjjpWzj8weVo44K"}),k=a({id:"4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z",name:"Solana Testnet",network:"solana-testnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!0,chainNamespace:"solana",caipNetworkId:"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z"}),f=a({id:"000000000019d6689c085ae165831e93",caipNetworkId:"bip122:000000000019d6689c085ae165831e93",chainNamespace:"bip122",name:"Bitcoin",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}}}),g=a({id:"000000000933ea01ad0ee984209779ba",caipNetworkId:"bip122:000000000933ea01ad0ee984209779ba",chainNamespace:"bip122",name:"Bitcoin Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},testnet:!0}),y=a({id:"00000008819873e925422c1ff0f99f7c",caipNetworkId:"bip122:00000008819873e925422c1ff0f99f7c",chainNamespace:"bip122",name:"Bitcoin Signet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},testnet:!0}),v=a({id:"-239",name:"TON",network:"ton-mainnet",nativeCurrency:{name:"TON",symbol:"TON",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Tonscan",url:"https://tonscan.org"}},testnet:!1,chainNamespace:"ton",caipNetworkId:"ton:-239"}),j=a({id:"-3",name:"TON Testnet",network:"ton-testnet",nativeCurrency:{name:"TON",symbol:"TON",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Tonscan",url:"https://testnet.tonscan.org"}},testnet:!0,chainNamespace:"ton",caipNetworkId:"ton:-3"}),S=a({id:"0x2b6653dc",name:"TRON",network:"tron-mainnet",nativeCurrency:{name:"TRX",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]},chainDefault:{http:["https://api.trongrid.io"]}},blockExplorers:{default:{name:"Tronscan",url:"https://tronscan.org"}},testnet:!1,chainNamespace:"tron",caipNetworkId:"tron:0x2b6653dc"}),x=a({id:"0x94a9059e",name:"TRON Shasta",network:"tron-shasta",nativeCurrency:{name:"TRX",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]},chainDefault:{http:["https://api.shasta.trongrid.io"]}},blockExplorers:{default:{name:"Tronscan",url:"https://shasta.tronscan.org"}},testnet:!0,chainNamespace:"tron",caipNetworkId:"tron:0x94a9059e"}),w=a({id:"0xcd8690dc",name:"TRON Nile",network:"tron-nile",nativeCurrency:{name:"TRX",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]},chainDefault:{http:["https://nile.trongrid.io"]}},blockExplorers:{default:{name:"Tronscan",url:"https://nile.tronscan.org"}},testnet:!0,chainNamespace:"tron",caipNetworkId:"tron:0xcd8690dc"});export{z as AVAILABLE_NAMESPACES,E as abey,D as abstract,q as abstractTestnet,B as acala,L as acria,I as adf,P as adi,A as agungTestnet,U as aioz,V as alephZero,O as alephZeroTestnet,R as alienx,G as alienxHalTestnet,H as alpenTestnet,Z as ancient8,K as ancient8Sepolia,X as anvil,Y as apeChain,J as apexTestnet,F as apollo,W as arbitrum,_ as arbitrumGoerli,Q as arbitrumNova,$ as arbitrumSepolia,aa as arc,sa as arcTestnet,ea as arenaz,ta as areonNetwork,na as areonNetworkTestnet,ia as areum,oa as artelaTestnet,ra as arthera,la as artheraTestnet,ca as assetChain,ha as assetChainTestnet,pa as astar,da as astarZkEVM,ma as astarZkyoto,Ta as atletaOlympia,ua as aurora,ba as auroraTestnet,ka as auroria,fa as autheoTestnet,ga as avalanche,ya as avalancheFuji,va as b3,ja as b3Sepolia,Sa as bahamut,xa as base,wa as baseGoerli,Ca as basePreconf,Na as baseSepolia,za as baseSepoliaPreconf,Ma as basecampTestnet,Ea as battlechain,Da as battlechainTestnet,qa as beam,Ba as beamTestnet,La as bearNetworkChainMainnet,Ia as bearNetworkChainTestnet,Pa as berachain,Aa as berachainBepolia,Ua as berachainTestnet,Va as berachainTestnetbArtio,Oa as bevmMainnet,Ra as bifrost,Ga as birdlayer,Ha as bitTorrent,Za as bitTorrentTestnet,f as bitcoin,y as bitcoinSignet,g as bitcoinTestnet,Ka as bitgert,Xa as bitkub,Ya as bitkubTestnet,Ja as bitlayer,Fa as bitlayerTestnet,Wa as bitrock,_a as blast,Qa as blastSepolia,$a as bob,as as bobSepolia,ss as boba,es as bobaSepolia,ts as boolBetaMainnet,ns as botanix,is as botanixTestnet,os as bounceBit,rs as bounceBitTestnet,ls as bronos,cs as bronosTestnet,hs as bsc,ps as bscGreenfield,ds as bscTestnet,ms as bsquared,Ts as bsquaredTestnet,us as btr,bs as btrTestnet,ks as bxn,fs as bxnTestnet,gs as cannon,ys as canto,vs as celo,js as celoAlfajores,Ss as celoSepolia,xs as chang,ws as chiliz,Cs as chips,Ns as citrate,zs as citrea,Ms as citreaTestnet,Es as classic,Ds as codex,qs as codexTestnet,Bs as coinbit,Ls as coinex,Is as confluxESpace,Ps as confluxESpaceTestnet,As as coreDao,Us as coreTestnet1,Vs as coreTestnet2,Os as corn,Rs as cornTestnet,Gs as cpchain,Hs as crab,Zs as creatorTestnet,Ks as creditCoin3Devnet,Xs as creditCoin3Mainnet,Ys as creditCoin3Testnet,Js as cronos,Fs as cronosTestnet,Ws as cronoszkEVM,_s as cronoszkEVMTestnet,Qs as crossbell,$s as crossfi,ae as curtis,se as cyber,ee as cyberTestnet,te as dailyNetwork,ne as dailyNetworkTestnet,ie as darwinia,oe as datahavenTestnet,re as dbkchain,le as dchain,ce as dchainTestnet,he as defichainEvm,pe as defichainEvmTestnet,a as defineChain,de as degen,me as dfk,Te as diode,ue as disChain,be as dodochainTestnet,ke as dogechain,fe as domaTestnet,ge as donatuz,ye as dosChain,ve as dosChainTestnet,je as dreyerxMainnet,Se as dreyerxTestnet,xe as dustboyIoT,we as dymension,Ce as eden,Ne as edexa,ze as edexaTestnet,Me as edgeless,Ee as edgelessTestnet,De as edgeware,qe as edgewareTestnet,Be as eduChain,Le as eduChainTestnet,Ie as elastos,Pe as elastosTestnet,Ae as electroneum,Ue as electroneumTestnet,Ve as elysiumTestnet,Oe as energy,Re as eni,Ge as eniTestnet,He as enuls,Ze as eon,Ke as eos,Xe as eosTestnet,Ye as eteria,Je as etherlink,Fe as etherlinkShadownetTestnet,We as etherlinkTestnet,_e as ethernity,Qe as etp,$e as evmos,at as evmosTestnet,st as excelonMainnet,et as expanse,tt as exsat,nt as exsatTestnet,it as fantom,ot as fantomSonicTestnet,rt as fantomTestnet,lt as fibo,ct as filecoin,ht as filecoinCalibration,pt as filecoinHyperspace,dt as fireChain,mt as flame,Tt as flare,ut as flareTestnet,bt as flowMainnet,kt as flowPreviewnet,ft as flowTestnet,gt as fluence,yt as fluenceStage,vt as fluenceTestnet,jt as fluent,St as fluentDevnet,xt as fluentTestnet,wt as form,Ct as formTestnet,Nt as forma,zt as formicarium,Mt as forta,Et as foundry,Dt as fraxtal,qt as fraxtalTestnet,Bt as funkiMainnet,Lt as funkiSepolia,It as fuse,Pt as fuseSparknet,At as fusion,Ut as fusionTestnet,Vt as garnet,Ot as gatechain,Rt as geist,Gt as genesys,Ht as gensyn,Zt as giwaSepolia,Kt as giwaSepoliaPreconf,Xt as glideL1Protocol,Yt as glideL2Protocol,Jt as gnosis,Ft as gnosisChiado,Wt as goChain,_t as goat,Qt as gobi,$t as godwoken,an as goerli,sn as graphite,en as graphiteTestnet,tn as grav,nn as gravity,on as gunz,rn as guruNetwork,ln as guruTestnet,cn as ham,hn as happychainTestnet,pn as haqqMainnet,dn as haqqTestedge2,mn as hardhat,Tn as harmonyOne,un as hashkey,bn as hashkeyTestnet,kn as haustTestnet,fn as hedera,gn as hederaPreviewnet,yn as hederaTestnet,vn as hela,jn as heliosTestnet,Sn as hemi,xn as hemiSepolia,wn as henesys,Cn as holesky,Nn as hoodi,zn as horizenTestnet,Mn as hpb,En as hpp,Dn as hppSepolia,qn as huddle01Mainnet,Bn as huddle01Testnet,Ln as humanity,In as humanityTestnet,Pn as humanode,An as humanodeTestnet5,Un as hychain,Vn as hychainTestnet,On as hyperEvm,Rn as hyperliquid,Gn as hyperliquidEvmTestnet,Hn as iSunCoin,Zn as icbNetwork,Kn as idchain,Xn as igra,Yn as immutableZkEvm,Jn as immutableZkEvmTestnet,Fn as inEVM,Wn as initVerse,_n as initVerseGenesis,Qn as injective,$n as injectiveTestnet,ai as ink,si as inkSepolia,ei as iota,ti as iotaTestnet,ni as iotex,ii as iotexTestnet,oi as jasmyChain,ri as jasmyChainTestnet,li as jbc,ci as jbcTestnet,hi as jocMainnet,pi as jocTestnet,di as jovay,mi as jovaySepolia,Ti as juneo,ui as juneoBCH1Chain,bi as juneoDAI1Chain,ki as juneoDOGE1Chain,fi as juneoEUR1Chain,gi as juneoGLD1Chain,yi as juneoLINK1Chain,vi as juneoLTC1Chain,ji as juneoSGD1Chain,Si as juneoSocotraTestnet,xi as juneoUSD1Chain,wi as juneoUSDT1Chain,Ci as juneomBTC1Chain,Ni as kaia,zi as kairos,Mi as kakarotSepolia,Ei as kakarotStarknetSepolia,Di as kardiaChain,qi as karura,Bi as katana,Li as kava,Ii as kavaTestnet,Pi as kcc,Ai as kii,Ui as kiiTestnetOro,Vi as kinto,Oi as klaytn,Ri as klaytnBaobab,Gi as koi,Hi as kroma,Zi as kromaSepolia,Ki as krown,Xi as l3x,Yi as l3xTestnet,Ji as ladyChain,Fi as lavita,Wi as lens,_i as lensTestnet,Qi as lestnet,$i as lightlinkPegasus,ao as lightlinkPhoenix,so as linea,eo as lineaGoerli,to as lineaSepolia,no as lineaTestnet,io as lisk,oo as liskSepolia,ro as loadAlphanet,lo as localhost,co as loop,ho as lukso,po as luksoTestnet,mo as lumiaMainnet,To as lumiaTestnet,uo as lumoz,bo as lumozTestnet,ko as luxeports,fo as lycan,go as lyra,yo as mainnet,vo as mandala,jo as manta,So as mantaSepoliaTestnet,xo as mantaTestnet,wo as mantle,Co as mantleSepoliaTestnet,No as mantleTestnet,zo as mantraDuKongEVMTestnet,Mo as mantraEVM,Eo as mapProtocol,Do as marooTestnet,qo as matchain,Bo as matchainTestnet,Lo as mchVerse,Io as megaeth,Po as megaethTestnet,Ao as mekong,Uo as meld,Vo as memecore,Oo as merlin,Ro as merlinErigonTestnet,Go as metachain,Ho as metachainIstanbul,Zo as metadium,Ko as metalL2,Xo as meter,Yo as meterTestnet,Jo as metis,Fo as metisGoerli,Wo as metisSepolia,_o as mev,Qo as mevTestnet,$o as mezo,ar as mezoTestnet,sr as mint,er as mintSepoliaTestnet,tr as mitosisTestnet,nr as mizuhikiTestnetAwaji,ir as mode,or as modeTestnet,rr as monad,lr as monadTestnet,cr as moonbaseAlpha,hr as moonbeam,pr as moonbeamDev,dr as moonriver,mr as morph,Tr as morphHolesky,ur as morphSepolia,br as nahmii,kr as nautilus,fr as near,gr as nearTestnet,yr as neonDevnet,vr as neonMainnet,jr as neoxMainnet,Sr as neoxT4,xr as newton,wr as nexi,Cr as nexilix,Nr as nibiru,zr as nitrographTestnet,Mr as nomina,Er as oasisTestnet,Dr as oasys,qr as odysseyTestnet,Br as okc,Lr as omax,Ir as omni,Pr as omniOmega,Ar as oneWorld,Ur as oortMainnetDev,Vr as opBNB,Or as opBNBTestnet,Rr as openledger,Gr as optimism,Hr as optimismGoerli,Zr as optimismSepolia,Kr as optopia,Xr as optopiaTestnet,Yr as orderly,Jr as orderlySepolia,Fr as otimDevnet,Wr as palm,_r as palmTestnet,Qr as paseoPassetHub,$r as peaq,al as pgn,sl as pgnTestnet,el as phoenix,tl as planq,nl as plasma,il as plasmaDevnet,ol as plasmaTestnet,rl as playfiAlbireo,ll as plinga,cl as plume,hl as plumeDevnet,pl as plumeMainnet,dl as plumeSepolia,ml as plumeTestnet,Tl as polterTestnet,ul as polygon,bl as polygonAmoy,kl as polygonMumbai,fl as polygonZkEvm,gl as polygonZkEvmCardona,yl as polygonZkEvmTestnet,vl as polynomial,jl as polynomialSepolia,Sl as potos,xl as potosTestnet,wl as premiumBlockTestnet,Cl as pulsechain,Nl as pulsechainV4,zl as pumpfiTestnet,Ml as pyrope,El as qMainnet,Dl as qTestnet,ql as ql1,Bl as quai,Ll as quaiTestnet,Il as radius,Pl as radiusTestnet,Al as reactiveTestnet,Ul as real,Vl as redbellyMainnet,Ol as redbellyTestnet,Rl as reddio,Gl as reddioSepolia,Hl as redstone,Zl as rei,Kl as reyaNetwork,Xl as rise,Yl as riseTestnet,Jl as rivalz,Fl as rollux,Wl as rolluxTestnet,_l as ronin,Ql as root,$l as rootPorcini,ac as rootstock,sc as rootstockTestnet,ec as rss3,tc as rss3Sepolia,nc as saakuru,ic as saga,oc as saigon,rc as sanko,lc as sapphire,cc as sapphireTestnet,hc as satoshiVM,pc as satoshiVMTestnet,dc as scroll,mc as scrollSepolia,Tc as sei,uc as seiTestnet,bc as seismicDevnet,kc as sentrix,fc as sentrixTestnet,gc as sepolia,yc as shape,vc as shapeSepolia,jc as shardeum,Sc as shardeumSphinx,xc as shibarium,wc as shibariumTestnet,Cc as shiden,Nc as shimmer,zc as shimmerTestnet,Mc as sidraChain,Ec as silentData,Dc as silicon,qc as siliconSepolia,Bc as sixProtocol,Lc as skaleBase,Ic as skaleBaseSepoliaTestnet,Pc as skaleBlockBrawlers,Ac as skaleCalypso,Uc as skaleCalypsoTestnet,Vc as skaleCryptoBlades,Oc as skaleCryptoColosseum,Rc as skaleEuropa,Gc as skaleEuropaTestnet,Hc as skaleExorde,Zc as skaleHumanProtocol,Kc as skaleNebula,Xc as skaleNebulaTestnet,Yc as skaleRazor,Jc as skaleTitan,Fc as skaleTitanTestnet,Wc as sketchpad,_c as snax,Qc as snaxTestnet,u as solana,b as solanaDevnet,k as solanaTestnet,$c as somnia,ah as somniaTestnet,sh as soneium,eh as soneiumMinato,th as songbird,nh as songbirdTestnet,ih as sonic,oh as sonicBlazeTestnet,rh as sonicTestnet,lh as sophon,ch as sophonTestnet,hh as sova,ph as sovaSepolia,dh as spicy,mh as stable,Th as stableTestnet,uh as statusNetworkSepolia,bh as statusSepolia,kh as step,fh as story,gh as storyAeneid,yh as storyOdyssey,vh as storyTestnet,jh as stratis,Sh as subtensorEvm,xh as superlumio,wh as superposition,Ch as superseed,Nh as superseedSepolia,zh as surgeTestnet,Mh as swan,Eh as swanProximaTestnet,Dh as swanSaturnTestnet,qh as swellchain,Bh as swellchainTestnet,Lh as swissdlt,Ih as syscoin,Ph as syscoinTestnet,Ah as tac,Uh as tacSPB,Vh as taiko,Oh as taikoHekla,Rh as taikoHoodi,Gh as taikoJolnir,Hh as taikoKatla,Zh as taikoTestnetSepolia,Kh as taraxa,Xh as taraxaTestnet,Yh as teaSepolia,Jh as telcoinTestnet,Fh as telos,Wh as telosTestnet,_h as tempo,Qh as tempoDevnet,$h as tempoLocalnet,ap as tempoMainnet,sp as tempoModerato,ep as tempoTestnet,tp as tenet,np as ternoa,ip as thaiChain,op as that,rp as theta,lp as thetaTestnet,cp as thunderCore,hp as thunderTestnet,pp as tiktrixTestnet,dp as tomb,v as ton,j as tonTestnet,mp as treasure,Tp as treasureTopaz,up as tron,S as tronMainnet,bp as tronNile,w as tronNileTestnet,kp as tronShasta,x as tronShastaTestnet,fp as ubiq,gp as ultra,yp as ultraTestnet,vp as ultron,jp as ultronTestnet,Sp as unichain,xp as unichainSepolia,wp as unique,Cp as uniqueOpal,Np as uniqueQuartz,zp as unreal,Mp as valygoNft,Ep as valygoSmartchain,Dp as vana,qp as vanaMoksha,Bp as vanar,Lp as vechain,Ip as velas,Pp as viction,Ap as victionTestnet,Up as vision,Vp as visionTestnet,Op as wanchain,Rp as wanchainTestnet,Gp as weaveVMAlphanet,Hp as wemix,Zp as wemixTestnet,Kp as westendAssetHub,Xp as whitechain,Yp as whitechainSepolia,Jp as whitechainTestnet,Fp as wmcTestnet,Wp as worldLand,_p as worldchain,Qp as worldchainSepolia,$p as x1Testnet,ad as xLayer,sd as xLayerTestnet,ed as xai,td as xaiTestnet,nd as xdc,id as xdcTestnet,od as xgr,rd as xoneMainnet,ld as xoneTestnet,cd as xphereMainnet,hd as xphereTestnet,pd as xpla,dd as xrOne,md as xrSepolia,Td as xrplevm,ud as xrplevmDevnet,bd as xrplevmTestnet,kd as yooldoVerse,fd as yooldoVerseTestnet,gd as zenchainTestnet,yd as zeniq,vd as zeroG,jd as zeroGGalileoTestnet,Sd as zeroGMainnet,xd as zeroGTestnet,wd as zeroNetwork,Cd as zetachain,Nd as zetachainAthensTestnet,zd as zhejiang,Md as zilliqa,Ed as zilliqaTestnet,Dd as zircuit,qd as zircuitGarfieldTestnet,Bd as zkFair,Ld as zkFairTestnet,Id as zkLinkNova,Pd as zkLinkNovaSepoliaTestnet,Ad as zkSync,Ud as zkSyncInMemoryNode,Vd as zkSyncLocalNode,Od as zkSyncSepoliaTestnet,Rd as zkXPLA,Gd as zkXPLATestnet,Hd as zksync,Zd as zksyncInMemoryNode,Kd as zksyncLocalCustomHyperchain,Xd as zksyncLocalHyperchain,Yd as zksyncLocalHyperchainL1,Jd as zksyncLocalNode,Fd as zksyncSepoliaTestnet,Wd as zora,_d as zoraSepolia,Qd as zoraTestnet};
|
|
2
|
-
//# sourceMappingURL=networks-
|
|
1
|
+
import{aw as z}from"./NetworkUtil-BH3_oYP8.js";import{a as E,b as D,c as q,d as B,e as L,f as I,g as P,h as A,i as U,j as V,k as O,l as R,m as G,n as H,o as Z,p as K,q as X,r as Y,s as J,t as F,u as W,v as _,w as Q,x as $,y as aa,z as sa,A as ea,B as ta,C as na,D as ia,E as oa,F as ra,G as la,H as ca,I as ha,J as pa,K as da,L as ma,M as Ta,N as ua,O as ba,P as ka,Q as fa,R as ga,S as ya,T as va,U as ja,V as Sa,W as xa,X as wa,Y as Ca,Z as Na,_ as za,$ as Ma,a0 as Ea,a1 as Da,a2 as qa,a3 as Ba,a4 as La,a5 as Ia,a6 as Pa,a7 as Aa,a8 as Ua,a9 as Va,aa as Oa,ab as Ra,ac as Ga,ad as Ha,ae as Za,af as Ka,ag as Xa,ah as Ya,ai as Ja,aj as Fa,ak as Wa,al as _a,am as Qa,an as $a,ao as as,ap as ss,aq as es,ar as ts,as as ns,at as is,au as os,av as rs,aw as ls,ax as cs,ay as hs,az as ps,aA as ds,aB as ms,aC as Ts,aD as us,aE as bs,aF as ks,aG as fs,aH as gs,aI as ys,aJ as vs,aK as js,aL as Ss,aM as xs,aN as ws,aO as Cs,aP as Ns,aQ as zs,aR as Ms,aS as Es,aT as Ds,aU as qs,aV as Bs,aW as Ls,aX as Is,aY as Ps,aZ as As,a_ as Us,a$ as Vs,b0 as Os,b1 as Rs,b2 as Gs,b3 as Hs,b4 as Zs,b5 as Ks,b6 as Xs,b7 as Ys,b8 as Js,b9 as Fs,ba as Ws,bb as _s,bc as Qs,bd as $s,be as ae,bf as se,bg as ee,bh as te,bi as ne,bj as ie,bk as oe,bl as re,bm as le,bn as ce,bo as he,bp as pe,bq as de,br as me,bs as Te,bt as ue,bu as be,bv as ke,bw as fe,bx as ge,by as ye,bz as ve,bA as je,bB as Se,bC as xe,bD as we,bE as Ce,bF as Ne,bG as ze,bH as Me,bI as Ee,bJ as De,bK as qe,bL as Be,bM as Le,bN as Ie,bO as Pe,bP as Ae,bQ as Ue,bR as Ve,bS as Oe,bT as Re,bU as Ge,bV as He,bW as Ze,bX as Ke,bY as Xe,bZ as Ye,b_ as Je,b$ as Fe,c0 as We,c1 as _e,c2 as Qe,c3 as $e,c4 as at,c5 as st,c6 as et,c7 as tt,c8 as nt,c9 as it,ca as ot,cb as rt,cc as lt,cd as ct,ce as ht,cf as pt,cg as dt,ch as mt,ci as Tt,cj as ut,ck as bt,cl as kt,cm as ft,cn as gt,co as yt,cp as vt,cq as jt,cr as St,cs as xt,ct as wt,cu as Ct,cv as Nt,cw as zt,cx as Mt,cy as Et,cz as Dt,cA as qt,cB as Bt,cC as Lt,cD as It,cE as Pt,cF as At,cG as Ut,cH as Vt,cI as Ot,cJ as Rt,cK as Gt,cL as Ht,cM as Zt,cN as Kt,cO as Xt,cP as Yt,cQ as Jt,cR as Ft,cS as Wt,cT as _t,cU as Qt,cV as $t,cW as an,cX as sn,cY as en,cZ as tn,c_ as nn,c$ as on,d0 as rn,d1 as ln,d2 as cn,d3 as hn,d4 as pn,d5 as dn,d6 as mn,d7 as Tn,d8 as un,d9 as bn,da as kn,db as fn,dc as gn,dd as yn,de as vn,df as jn,dg as Sn,dh as xn,di as wn,dj as Cn,dk as Nn,dl as zn,dm as Mn,dn as En,dp as Dn,dq as qn,dr as Bn,ds as Ln,dt as In,du as Pn,dv as An,dw as Un,dx as Vn,dy as On,dy as Rn,dz as Gn,dA as Hn,dB as Zn,dC as Kn,dD as Xn,dE as Yn,dF as Jn,dG as Fn,dH as Wn,dI as _n,dJ as Qn,dK as $n,dL as ai,dM as si,dN as ei,dO as ti,dP as ni,dQ as ii,dR as oi,dS as ri,dT as li,dU as ci,dV as hi,dW as pi,dX as di,dY as mi,dZ as Ti,d_ as ui,d$ as bi,e0 as ki,e1 as fi,e2 as gi,e3 as yi,e4 as vi,e5 as ji,e6 as Si,e7 as xi,e8 as wi,e9 as Ci,ea as Ni,eb as zi,ec as Mi,ed as Ei,ee as Di,ef as qi,eg as Bi,eh as Li,ei as Ii,ej as Pi,ek as Ai,el as Ui,em as Vi,en as Oi,eo as Ri,ep as Gi,eq as Hi,er as Zi,es as Ki,et as Xi,eu as Yi,ev as Ji,ew as Fi,ex as Wi,ey as _i,ez as Qi,eA as $i,eB as ao,eC as so,eD as eo,eE as to,eF as no,eG as io,eH as oo,eI as ro,eJ as lo,eK as co,eL as ho,eM as po,eN as mo,eO as To,eP as uo,eQ as bo,eR as ko,eS as fo,eT as go,eU as yo,eV as vo,eW as jo,eX as So,eY as xo,eZ as wo,e_ as Co,e$ as No,f0 as zo,f1 as Mo,f2 as Eo,f3 as Do,f4 as qo,f5 as Bo,f6 as Lo,f7 as Io,f8 as Po,f9 as Ao,fa as Uo,fb as Vo,fc as Oo,fd as Ro,fe as Go,ff as Ho,fg as Zo,fh as Ko,fi as Xo,fj as Yo,fk as Jo,fl as Fo,fm as Wo,fn as _o,fo as Qo,fp as $o,fq as ar,fr as sr,fs as er,ft as tr,fu as nr,fv as ir,fw as or,fx as rr,fy as lr,fz as cr,fA as hr,fB as pr,fC as dr,fD as mr,fE as Tr,fF as ur,fG as br,fH as kr,fI as fr,fJ as gr,fK as yr,fL as vr,fM as jr,fN as Sr,fO as xr,fP as wr,fQ as Cr,fR as Nr,fS as zr,fT as Mr,fU as Er,fV as Dr,fW as qr,fX as Br,fY as Lr,fZ as Ir,f_ as Pr,f$ as Ar,g0 as Ur,g1 as Vr,g2 as Or,g3 as Rr,g4 as Gr,g5 as Hr,g6 as Zr,g7 as Kr,g8 as Xr,g9 as Yr,ga as Jr,gb as Fr,gc as Wr,gd as _r,ge as Qr,gf as $r,gg as al,gh as sl,gi as el,gj as tl,gk as nl,gl as il,gm as ol,gn as rl,go as ll,gp as cl,gq as hl,gr as pl,gs as dl,gt as ml,gu as Tl,gv as ul,gw as bl,gx as kl,gy as fl,gz as gl,gA as yl,gB as vl,gC as jl,gD as Sl,gE as xl,gF as wl,gG as Cl,gH as Nl,gI as zl,gJ as Ml,gK as El,gL as Dl,gM as ql,gN as Bl,gO as Ll,gP as Il,gQ as Pl,gR as Al,gS as Ul,gT as Vl,gU as Ol,gV as Rl,gW as Gl,gX as Hl,gY as Zl,gZ as Kl,g_ as Xl,g$ as Yl,h0 as Jl,h1 as Fl,h2 as Wl,h3 as _l,h4 as Ql,h5 as $l,h6 as ac,h7 as sc,h8 as ec,h9 as tc,ha as nc,hb as ic,hc as oc,hd as rc,he as lc,hf as cc,hg as hc,hh as pc,hi as dc,hj as mc,hk as Tc,hl as uc,hm as bc,hn as kc,ho as fc,hp as gc,hq as yc,hr as vc,hs as jc,ht as Sc,hu as xc,hv as wc,hw as Cc,hx as Nc,hy as zc,hz as Mc,hA as Ec,hB as Dc,hC as qc,hD as Bc,hE as Lc,hF as Ic,hG as Pc,hH as Ac,hI as Uc,hJ as Vc,hK as Oc,hL as Rc,hM as Gc,hN as Hc,hO as Zc,hP as Kc,hQ as Xc,hR as Yc,hS as Jc,hT as Fc,hU as Wc,hV as _c,hW as Qc,hX as $c,hY as ah,hZ as sh,h_ as eh,h$ as th,i0 as nh,i1 as ih,i2 as oh,i3 as rh,i4 as lh,i5 as ch,i6 as hh,i7 as ph,i8 as dh,i9 as mh,ia as Th,ib as uh,ib as bh,ic as kh,id as fh,ie as gh,ig as yh,ih as vh,ii as jh,ij as Sh,ik as xh,il as wh,im as Ch,io as Nh,ip as zh,iq as Mh,ir as Eh,is as Dh,it as qh,iu as Bh,iv as Lh,iw as Ih,ix as Ph,iy as Ah,iz as Uh,iA as Vh,iB as Oh,iC as Rh,iD as Gh,iE as Hh,iF as Zh,iG as Kh,iH as Xh,iI as Yh,iJ as Jh,iK as Fh,iL as Wh,iM as _h,iN as Qh,iO as $h,iM as ap,iP as sp,iP as ep,iQ as tp,iR as np,iS as ip,iT as op,iU as rp,iV as lp,iW as cp,iX as hp,iY as pp,iZ as dp,i_ as mp,i$ as Tp,j0 as up,j1 as bp,j2 as kp,j3 as fp,j4 as gp,j5 as yp,j6 as vp,j7 as jp,j8 as Sp,j9 as xp,ja as wp,jb as Cp,jc as Np,jd as zp,je as Mp,jf as Ep,jg as Dp,jh as qp,ji as Bp,jj as Lp,jk as Ip,jl as Pp,jm as Ap,jn as Up,jo as Vp,jp as Op,jq as Rp,jr as Gp,js as Hp,jt as Zp,ju as Kp,jv as Xp,jw as Yp,jx as Jp,jy as Fp,jz as Wp,jA as _p,jB as Qp,jC as $p,jD as ad,jC as sd,jE as ed,jF as td,jG as nd,jH as id,jI as od,jJ as rd,jK as ld,jL as cd,jM as hd,jN as pd,jO as dd,jP as md,jQ as Td,jR as ud,jS as bd,jT as kd,jU as fd,jV as gd,jW as yd,jX as vd,jY as jd,jZ as Sd,j_ as xd,j$ as wd,k0 as Cd,k1 as Nd,k2 as zd,k3 as Md,k4 as Ed,k5 as Dd,k6 as qd,k7 as Bd,k8 as Ld,k9 as Id,ka as Pd,kb as Ad,kc as Ud,kd as Vd,ke as Od,kf as Rd,kg as Gd,kb as Hd,kc as Zd,kh as Kd,ki as Xd,kj as Yd,kd as Jd,ke as Fd,kk as Wd,kl as _d,km as Qd}from"./zoraTestnet-CliKS5z3.js";import"./sentry-DyLfTiSb.js";import"./react-BUrQZkQz.js";import"./verifyHash-BuQb0nyx.js";import"./sendRawTransaction-BJhaPoFM.js";import"./index-BZe9O30I.js";import"./dcl-schemas-OgkR3Xnp.js";import"./ethers-DqHzeHuT.js";import"./intl-AKLEHPeO.js";import"./secp256k1-DoZCtomu.js";import"./serializeTransaction-Cg0Mu0rp.js";import"./writeContract-QfoBI3jg.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="97b863a7-7e79-46f0-bc49-80635103c12e",s._sentryDebugIdIdentifier="sentry-dbid-97b863a7-7e79-46f0-bc49-80635103c12e")}catch{}})();function a(s){return{formatters:void 0,fees:void 0,serializers:void 0,...s}}const u=a({id:"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",name:"Solana",network:"solana-mainnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!1,chainNamespace:"solana",caipNetworkId:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",deprecatedCaipNetworkId:"solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ"}),b=a({id:"EtWTRABZaYq6iMfeYKouRu166VU2xqa1",name:"Solana Devnet",network:"solana-devnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!0,chainNamespace:"solana",caipNetworkId:"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",deprecatedCaipNetworkId:"solana:8E9rvCKLFQia2Y35HXjjpWzj8weVo44K"}),k=a({id:"4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z",name:"Solana Testnet",network:"solana-testnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!0,chainNamespace:"solana",caipNetworkId:"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z"}),f=a({id:"000000000019d6689c085ae165831e93",caipNetworkId:"bip122:000000000019d6689c085ae165831e93",chainNamespace:"bip122",name:"Bitcoin",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}}}),g=a({id:"000000000933ea01ad0ee984209779ba",caipNetworkId:"bip122:000000000933ea01ad0ee984209779ba",chainNamespace:"bip122",name:"Bitcoin Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},testnet:!0}),y=a({id:"00000008819873e925422c1ff0f99f7c",caipNetworkId:"bip122:00000008819873e925422c1ff0f99f7c",chainNamespace:"bip122",name:"Bitcoin Signet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},testnet:!0}),v=a({id:"-239",name:"TON",network:"ton-mainnet",nativeCurrency:{name:"TON",symbol:"TON",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Tonscan",url:"https://tonscan.org"}},testnet:!1,chainNamespace:"ton",caipNetworkId:"ton:-239"}),j=a({id:"-3",name:"TON Testnet",network:"ton-testnet",nativeCurrency:{name:"TON",symbol:"TON",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Tonscan",url:"https://testnet.tonscan.org"}},testnet:!0,chainNamespace:"ton",caipNetworkId:"ton:-3"}),S=a({id:"0x2b6653dc",name:"TRON",network:"tron-mainnet",nativeCurrency:{name:"TRX",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]},chainDefault:{http:["https://api.trongrid.io"]}},blockExplorers:{default:{name:"Tronscan",url:"https://tronscan.org"}},testnet:!1,chainNamespace:"tron",caipNetworkId:"tron:0x2b6653dc"}),x=a({id:"0x94a9059e",name:"TRON Shasta",network:"tron-shasta",nativeCurrency:{name:"TRX",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]},chainDefault:{http:["https://api.shasta.trongrid.io"]}},blockExplorers:{default:{name:"Tronscan",url:"https://shasta.tronscan.org"}},testnet:!0,chainNamespace:"tron",caipNetworkId:"tron:0x94a9059e"}),w=a({id:"0xcd8690dc",name:"TRON Nile",network:"tron-nile",nativeCurrency:{name:"TRX",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]},chainDefault:{http:["https://nile.trongrid.io"]}},blockExplorers:{default:{name:"Tronscan",url:"https://nile.tronscan.org"}},testnet:!0,chainNamespace:"tron",caipNetworkId:"tron:0xcd8690dc"});export{z as AVAILABLE_NAMESPACES,E as abey,D as abstract,q as abstractTestnet,B as acala,L as acria,I as adf,P as adi,A as agungTestnet,U as aioz,V as alephZero,O as alephZeroTestnet,R as alienx,G as alienxHalTestnet,H as alpenTestnet,Z as ancient8,K as ancient8Sepolia,X as anvil,Y as apeChain,J as apexTestnet,F as apollo,W as arbitrum,_ as arbitrumGoerli,Q as arbitrumNova,$ as arbitrumSepolia,aa as arc,sa as arcTestnet,ea as arenaz,ta as areonNetwork,na as areonNetworkTestnet,ia as areum,oa as artelaTestnet,ra as arthera,la as artheraTestnet,ca as assetChain,ha as assetChainTestnet,pa as astar,da as astarZkEVM,ma as astarZkyoto,Ta as atletaOlympia,ua as aurora,ba as auroraTestnet,ka as auroria,fa as autheoTestnet,ga as avalanche,ya as avalancheFuji,va as b3,ja as b3Sepolia,Sa as bahamut,xa as base,wa as baseGoerli,Ca as basePreconf,Na as baseSepolia,za as baseSepoliaPreconf,Ma as basecampTestnet,Ea as battlechain,Da as battlechainTestnet,qa as beam,Ba as beamTestnet,La as bearNetworkChainMainnet,Ia as bearNetworkChainTestnet,Pa as berachain,Aa as berachainBepolia,Ua as berachainTestnet,Va as berachainTestnetbArtio,Oa as bevmMainnet,Ra as bifrost,Ga as birdlayer,Ha as bitTorrent,Za as bitTorrentTestnet,f as bitcoin,y as bitcoinSignet,g as bitcoinTestnet,Ka as bitgert,Xa as bitkub,Ya as bitkubTestnet,Ja as bitlayer,Fa as bitlayerTestnet,Wa as bitrock,_a as blast,Qa as blastSepolia,$a as bob,as as bobSepolia,ss as boba,es as bobaSepolia,ts as boolBetaMainnet,ns as botanix,is as botanixTestnet,os as bounceBit,rs as bounceBitTestnet,ls as bronos,cs as bronosTestnet,hs as bsc,ps as bscGreenfield,ds as bscTestnet,ms as bsquared,Ts as bsquaredTestnet,us as btr,bs as btrTestnet,ks as bxn,fs as bxnTestnet,gs as cannon,ys as canto,vs as celo,js as celoAlfajores,Ss as celoSepolia,xs as chang,ws as chiliz,Cs as chips,Ns as citrate,zs as citrea,Ms as citreaTestnet,Es as classic,Ds as codex,qs as codexTestnet,Bs as coinbit,Ls as coinex,Is as confluxESpace,Ps as confluxESpaceTestnet,As as coreDao,Us as coreTestnet1,Vs as coreTestnet2,Os as corn,Rs as cornTestnet,Gs as cpchain,Hs as crab,Zs as creatorTestnet,Ks as creditCoin3Devnet,Xs as creditCoin3Mainnet,Ys as creditCoin3Testnet,Js as cronos,Fs as cronosTestnet,Ws as cronoszkEVM,_s as cronoszkEVMTestnet,Qs as crossbell,$s as crossfi,ae as curtis,se as cyber,ee as cyberTestnet,te as dailyNetwork,ne as dailyNetworkTestnet,ie as darwinia,oe as datahavenTestnet,re as dbkchain,le as dchain,ce as dchainTestnet,he as defichainEvm,pe as defichainEvmTestnet,a as defineChain,de as degen,me as dfk,Te as diode,ue as disChain,be as dodochainTestnet,ke as dogechain,fe as domaTestnet,ge as donatuz,ye as dosChain,ve as dosChainTestnet,je as dreyerxMainnet,Se as dreyerxTestnet,xe as dustboyIoT,we as dymension,Ce as eden,Ne as edexa,ze as edexaTestnet,Me as edgeless,Ee as edgelessTestnet,De as edgeware,qe as edgewareTestnet,Be as eduChain,Le as eduChainTestnet,Ie as elastos,Pe as elastosTestnet,Ae as electroneum,Ue as electroneumTestnet,Ve as elysiumTestnet,Oe as energy,Re as eni,Ge as eniTestnet,He as enuls,Ze as eon,Ke as eos,Xe as eosTestnet,Ye as eteria,Je as etherlink,Fe as etherlinkShadownetTestnet,We as etherlinkTestnet,_e as ethernity,Qe as etp,$e as evmos,at as evmosTestnet,st as excelonMainnet,et as expanse,tt as exsat,nt as exsatTestnet,it as fantom,ot as fantomSonicTestnet,rt as fantomTestnet,lt as fibo,ct as filecoin,ht as filecoinCalibration,pt as filecoinHyperspace,dt as fireChain,mt as flame,Tt as flare,ut as flareTestnet,bt as flowMainnet,kt as flowPreviewnet,ft as flowTestnet,gt as fluence,yt as fluenceStage,vt as fluenceTestnet,jt as fluent,St as fluentDevnet,xt as fluentTestnet,wt as form,Ct as formTestnet,Nt as forma,zt as formicarium,Mt as forta,Et as foundry,Dt as fraxtal,qt as fraxtalTestnet,Bt as funkiMainnet,Lt as funkiSepolia,It as fuse,Pt as fuseSparknet,At as fusion,Ut as fusionTestnet,Vt as garnet,Ot as gatechain,Rt as geist,Gt as genesys,Ht as gensyn,Zt as giwaSepolia,Kt as giwaSepoliaPreconf,Xt as glideL1Protocol,Yt as glideL2Protocol,Jt as gnosis,Ft as gnosisChiado,Wt as goChain,_t as goat,Qt as gobi,$t as godwoken,an as goerli,sn as graphite,en as graphiteTestnet,tn as grav,nn as gravity,on as gunz,rn as guruNetwork,ln as guruTestnet,cn as ham,hn as happychainTestnet,pn as haqqMainnet,dn as haqqTestedge2,mn as hardhat,Tn as harmonyOne,un as hashkey,bn as hashkeyTestnet,kn as haustTestnet,fn as hedera,gn as hederaPreviewnet,yn as hederaTestnet,vn as hela,jn as heliosTestnet,Sn as hemi,xn as hemiSepolia,wn as henesys,Cn as holesky,Nn as hoodi,zn as horizenTestnet,Mn as hpb,En as hpp,Dn as hppSepolia,qn as huddle01Mainnet,Bn as huddle01Testnet,Ln as humanity,In as humanityTestnet,Pn as humanode,An as humanodeTestnet5,Un as hychain,Vn as hychainTestnet,On as hyperEvm,Rn as hyperliquid,Gn as hyperliquidEvmTestnet,Hn as iSunCoin,Zn as icbNetwork,Kn as idchain,Xn as igra,Yn as immutableZkEvm,Jn as immutableZkEvmTestnet,Fn as inEVM,Wn as initVerse,_n as initVerseGenesis,Qn as injective,$n as injectiveTestnet,ai as ink,si as inkSepolia,ei as iota,ti as iotaTestnet,ni as iotex,ii as iotexTestnet,oi as jasmyChain,ri as jasmyChainTestnet,li as jbc,ci as jbcTestnet,hi as jocMainnet,pi as jocTestnet,di as jovay,mi as jovaySepolia,Ti as juneo,ui as juneoBCH1Chain,bi as juneoDAI1Chain,ki as juneoDOGE1Chain,fi as juneoEUR1Chain,gi as juneoGLD1Chain,yi as juneoLINK1Chain,vi as juneoLTC1Chain,ji as juneoSGD1Chain,Si as juneoSocotraTestnet,xi as juneoUSD1Chain,wi as juneoUSDT1Chain,Ci as juneomBTC1Chain,Ni as kaia,zi as kairos,Mi as kakarotSepolia,Ei as kakarotStarknetSepolia,Di as kardiaChain,qi as karura,Bi as katana,Li as kava,Ii as kavaTestnet,Pi as kcc,Ai as kii,Ui as kiiTestnetOro,Vi as kinto,Oi as klaytn,Ri as klaytnBaobab,Gi as koi,Hi as kroma,Zi as kromaSepolia,Ki as krown,Xi as l3x,Yi as l3xTestnet,Ji as ladyChain,Fi as lavita,Wi as lens,_i as lensTestnet,Qi as lestnet,$i as lightlinkPegasus,ao as lightlinkPhoenix,so as linea,eo as lineaGoerli,to as lineaSepolia,no as lineaTestnet,io as lisk,oo as liskSepolia,ro as loadAlphanet,lo as localhost,co as loop,ho as lukso,po as luksoTestnet,mo as lumiaMainnet,To as lumiaTestnet,uo as lumoz,bo as lumozTestnet,ko as luxeports,fo as lycan,go as lyra,yo as mainnet,vo as mandala,jo as manta,So as mantaSepoliaTestnet,xo as mantaTestnet,wo as mantle,Co as mantleSepoliaTestnet,No as mantleTestnet,zo as mantraDuKongEVMTestnet,Mo as mantraEVM,Eo as mapProtocol,Do as marooTestnet,qo as matchain,Bo as matchainTestnet,Lo as mchVerse,Io as megaeth,Po as megaethTestnet,Ao as mekong,Uo as meld,Vo as memecore,Oo as merlin,Ro as merlinErigonTestnet,Go as metachain,Ho as metachainIstanbul,Zo as metadium,Ko as metalL2,Xo as meter,Yo as meterTestnet,Jo as metis,Fo as metisGoerli,Wo as metisSepolia,_o as mev,Qo as mevTestnet,$o as mezo,ar as mezoTestnet,sr as mint,er as mintSepoliaTestnet,tr as mitosisTestnet,nr as mizuhikiTestnetAwaji,ir as mode,or as modeTestnet,rr as monad,lr as monadTestnet,cr as moonbaseAlpha,hr as moonbeam,pr as moonbeamDev,dr as moonriver,mr as morph,Tr as morphHolesky,ur as morphSepolia,br as nahmii,kr as nautilus,fr as near,gr as nearTestnet,yr as neonDevnet,vr as neonMainnet,jr as neoxMainnet,Sr as neoxT4,xr as newton,wr as nexi,Cr as nexilix,Nr as nibiru,zr as nitrographTestnet,Mr as nomina,Er as oasisTestnet,Dr as oasys,qr as odysseyTestnet,Br as okc,Lr as omax,Ir as omni,Pr as omniOmega,Ar as oneWorld,Ur as oortMainnetDev,Vr as opBNB,Or as opBNBTestnet,Rr as openledger,Gr as optimism,Hr as optimismGoerli,Zr as optimismSepolia,Kr as optopia,Xr as optopiaTestnet,Yr as orderly,Jr as orderlySepolia,Fr as otimDevnet,Wr as palm,_r as palmTestnet,Qr as paseoPassetHub,$r as peaq,al as pgn,sl as pgnTestnet,el as phoenix,tl as planq,nl as plasma,il as plasmaDevnet,ol as plasmaTestnet,rl as playfiAlbireo,ll as plinga,cl as plume,hl as plumeDevnet,pl as plumeMainnet,dl as plumeSepolia,ml as plumeTestnet,Tl as polterTestnet,ul as polygon,bl as polygonAmoy,kl as polygonMumbai,fl as polygonZkEvm,gl as polygonZkEvmCardona,yl as polygonZkEvmTestnet,vl as polynomial,jl as polynomialSepolia,Sl as potos,xl as potosTestnet,wl as premiumBlockTestnet,Cl as pulsechain,Nl as pulsechainV4,zl as pumpfiTestnet,Ml as pyrope,El as qMainnet,Dl as qTestnet,ql as ql1,Bl as quai,Ll as quaiTestnet,Il as radius,Pl as radiusTestnet,Al as reactiveTestnet,Ul as real,Vl as redbellyMainnet,Ol as redbellyTestnet,Rl as reddio,Gl as reddioSepolia,Hl as redstone,Zl as rei,Kl as reyaNetwork,Xl as rise,Yl as riseTestnet,Jl as rivalz,Fl as rollux,Wl as rolluxTestnet,_l as ronin,Ql as root,$l as rootPorcini,ac as rootstock,sc as rootstockTestnet,ec as rss3,tc as rss3Sepolia,nc as saakuru,ic as saga,oc as saigon,rc as sanko,lc as sapphire,cc as sapphireTestnet,hc as satoshiVM,pc as satoshiVMTestnet,dc as scroll,mc as scrollSepolia,Tc as sei,uc as seiTestnet,bc as seismicDevnet,kc as sentrix,fc as sentrixTestnet,gc as sepolia,yc as shape,vc as shapeSepolia,jc as shardeum,Sc as shardeumSphinx,xc as shibarium,wc as shibariumTestnet,Cc as shiden,Nc as shimmer,zc as shimmerTestnet,Mc as sidraChain,Ec as silentData,Dc as silicon,qc as siliconSepolia,Bc as sixProtocol,Lc as skaleBase,Ic as skaleBaseSepoliaTestnet,Pc as skaleBlockBrawlers,Ac as skaleCalypso,Uc as skaleCalypsoTestnet,Vc as skaleCryptoBlades,Oc as skaleCryptoColosseum,Rc as skaleEuropa,Gc as skaleEuropaTestnet,Hc as skaleExorde,Zc as skaleHumanProtocol,Kc as skaleNebula,Xc as skaleNebulaTestnet,Yc as skaleRazor,Jc as skaleTitan,Fc as skaleTitanTestnet,Wc as sketchpad,_c as snax,Qc as snaxTestnet,u as solana,b as solanaDevnet,k as solanaTestnet,$c as somnia,ah as somniaTestnet,sh as soneium,eh as soneiumMinato,th as songbird,nh as songbirdTestnet,ih as sonic,oh as sonicBlazeTestnet,rh as sonicTestnet,lh as sophon,ch as sophonTestnet,hh as sova,ph as sovaSepolia,dh as spicy,mh as stable,Th as stableTestnet,uh as statusNetworkSepolia,bh as statusSepolia,kh as step,fh as story,gh as storyAeneid,yh as storyOdyssey,vh as storyTestnet,jh as stratis,Sh as subtensorEvm,xh as superlumio,wh as superposition,Ch as superseed,Nh as superseedSepolia,zh as surgeTestnet,Mh as swan,Eh as swanProximaTestnet,Dh as swanSaturnTestnet,qh as swellchain,Bh as swellchainTestnet,Lh as swissdlt,Ih as syscoin,Ph as syscoinTestnet,Ah as tac,Uh as tacSPB,Vh as taiko,Oh as taikoHekla,Rh as taikoHoodi,Gh as taikoJolnir,Hh as taikoKatla,Zh as taikoTestnetSepolia,Kh as taraxa,Xh as taraxaTestnet,Yh as teaSepolia,Jh as telcoinTestnet,Fh as telos,Wh as telosTestnet,_h as tempo,Qh as tempoDevnet,$h as tempoLocalnet,ap as tempoMainnet,sp as tempoModerato,ep as tempoTestnet,tp as tenet,np as ternoa,ip as thaiChain,op as that,rp as theta,lp as thetaTestnet,cp as thunderCore,hp as thunderTestnet,pp as tiktrixTestnet,dp as tomb,v as ton,j as tonTestnet,mp as treasure,Tp as treasureTopaz,up as tron,S as tronMainnet,bp as tronNile,w as tronNileTestnet,kp as tronShasta,x as tronShastaTestnet,fp as ubiq,gp as ultra,yp as ultraTestnet,vp as ultron,jp as ultronTestnet,Sp as unichain,xp as unichainSepolia,wp as unique,Cp as uniqueOpal,Np as uniqueQuartz,zp as unreal,Mp as valygoNft,Ep as valygoSmartchain,Dp as vana,qp as vanaMoksha,Bp as vanar,Lp as vechain,Ip as velas,Pp as viction,Ap as victionTestnet,Up as vision,Vp as visionTestnet,Op as wanchain,Rp as wanchainTestnet,Gp as weaveVMAlphanet,Hp as wemix,Zp as wemixTestnet,Kp as westendAssetHub,Xp as whitechain,Yp as whitechainSepolia,Jp as whitechainTestnet,Fp as wmcTestnet,Wp as worldLand,_p as worldchain,Qp as worldchainSepolia,$p as x1Testnet,ad as xLayer,sd as xLayerTestnet,ed as xai,td as xaiTestnet,nd as xdc,id as xdcTestnet,od as xgr,rd as xoneMainnet,ld as xoneTestnet,cd as xphereMainnet,hd as xphereTestnet,pd as xpla,dd as xrOne,md as xrSepolia,Td as xrplevm,ud as xrplevmDevnet,bd as xrplevmTestnet,kd as yooldoVerse,fd as yooldoVerseTestnet,gd as zenchainTestnet,yd as zeniq,vd as zeroG,jd as zeroGGalileoTestnet,Sd as zeroGMainnet,xd as zeroGTestnet,wd as zeroNetwork,Cd as zetachain,Nd as zetachainAthensTestnet,zd as zhejiang,Md as zilliqa,Ed as zilliqaTestnet,Dd as zircuit,qd as zircuitGarfieldTestnet,Bd as zkFair,Ld as zkFairTestnet,Id as zkLinkNova,Pd as zkLinkNovaSepoliaTestnet,Ad as zkSync,Ud as zkSyncInMemoryNode,Vd as zkSyncLocalNode,Od as zkSyncSepoliaTestnet,Rd as zkXPLA,Gd as zkXPLATestnet,Hd as zksync,Zd as zksyncInMemoryNode,Kd as zksyncLocalCustomHyperchain,Xd as zksyncLocalHyperchain,Yd as zksyncLocalHyperchainL1,Jd as zksyncLocalNode,Fd as zksyncSepoliaTestnet,Wd as zora,_d as zoraSepolia,Qd as zoraTestnet};
|
|
2
|
+
//# sourceMappingURL=networks-BTxPNDnS.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as b,b as u}from"./lit-element-wjYUA6aF.js";import{o as m,r as l,n as p}from"./class-map-BxMzgOIb.js";import{d as I,O as c}from"./index-
|
|
1
|
+
import{i as b,b as u}from"./lit-element-wjYUA6aF.js";import{o as m,r as l,n as p}from"./class-map-BxMzgOIb.js";import{d as I,O as c}from"./index-B_ej9BPC.js";import{c as g}from"./index-B8oQm36C.js";import"./index-BXOSJuGz.js";import{O as T}from"./index-Cfw0sRIj.js";import{L as C,O as j,M as $,C as O,q as E,R as U,b as B,E as z,l as V,W as M,k as K,T as q,S as W}from"./W3MFrameProviderSingleton-lQPmplQ2.js";import"./index-w0a4GNJO.js";import"./index-D-7yBxzc.js";import"./index-BqDPSWiR.js";import"./index-D1-jMfxh.js";import"./index-DSz4o4Je.js";import"./index-7qIkCapA.js";import"./index-z7I5BqcT.js";import"./index-DKTFxU8r.js";import"./index-BZe9O30I.js";import"./react-BUrQZkQz.js";import"./dcl-schemas-OgkR3Xnp.js";import"./sentry-DyLfTiSb.js";import"./ethers-DqHzeHuT.js";import"./intl-AKLEHPeO.js";import"./index-Bns4uVVf.js";import"./events-VcRW8MP7.js";import"./index-HS7_UPOd.js";import"./index-BGW18IEb.js";import"./index-OpYIGLSa.js";import"./index-D8nZ-jDW.js";import"./index.es-CWw1jqy2.js";import"./browser-ponyfill-jzbj-jA4.js";import"./NetworkUtil-BH3_oYP8.js";import"./ref-D90CCjlU.js";import"./async-directive-CeCQAQEH.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="3de56286-ec78-4a5a-9884-a28e5ebc2021",t._sentryDebugIdIdentifier="sentry-dbid-3de56286-ec78-4a5a-9884-a28e5ebc2021")}catch{}})();const F=I`
|
|
2
2
|
:host > wui-grid {
|
|
3
3
|
max-height: 360px;
|
|
4
4
|
overflow: auto;
|
|
@@ -420,4 +420,4 @@ import{i as b,b as u}from"./lit-element-wjYUA6aF.js";import{o as m,r as l,n as p
|
|
|
420
420
|
>
|
|
421
421
|
Connect wallet
|
|
422
422
|
</wui-button>`}getQuotes(){this.loading||$.open({view:"OnRampProviders"})}openModal(){$.open({view:"Connect"})}async onPaymentAmountChange(e){c.setPaymentAmount(Number(e.detail)),await c.getQuote()}async selectPresetAmount(e){c.setPaymentAmount(e),await c.getQuote()}};f.styles=G;x([p({type:Boolean})],f.prototype,"disabled",void 0);x([l()],f.prototype,"caipAddress",void 0);x([l()],f.prototype,"loading",void 0);x([l()],f.prototype,"paymentCurrency",void 0);x([l()],f.prototype,"paymentAmount",void 0);x([l()],f.prototype,"purchaseAmount",void 0);x([l()],f.prototype,"quoteLoading",void 0);f=x([g("w3m-onramp-widget")],f);export{d as W3mBuyInProgressView,D as W3mOnRampProvidersView,P as W3mOnrampFiatSelectView,k as W3mOnrampTokensView,f as W3mOnrampWidget,L as W3mWhatIsABuyView};
|
|
423
|
-
//# sourceMappingURL=onramp-
|
|
423
|
+
//# sourceMappingURL=onramp-BLPNmKGS.js.map
|