@dcl/shop 1.6.2 → 1.6.3-31389880800.commit-454c8c6
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-BmQYXcG8.js → Activity-Bdgk8MqR.js} +4 -4
- package/_assets/{AnimatedBackground-Cp5gOAsG.js → AnimatedBackground-BLlzVvDZ.js} +3 -3
- package/_assets/{Assets-8Vp1rrhZ.js → Assets-C4-w1QHg.js} +8 -8
- package/_assets/{Assets.styles-Dcrmtg5A.js → Assets.styles-BXQtGxtj.js} +2 -2
- package/_assets/{Authorizations-D5Q1vK4d.js → Authorizations-B5iDykbP.js} +2 -2
- package/_assets/{Cart-BObIWN-S.js → Cart-CzGJRDvV.js} +2 -2
- package/_assets/{CircularProgress-D-1CdAFC.js → CircularProgress-D-wH5dRF.js} +2 -2
- package/_assets/{Collection-BXVDE0H8.js → Collection-DaF9lt9F.js} +2 -2
- package/_assets/{CollectionCarousel-CuYPYfsx.js → CollectionCarousel-DgTLsDZ0.js} +3 -3
- package/_assets/{Confetti-7Pj-YFGO.js → Confetti-D8pPR13m.js} +4 -4
- package/_assets/{ConstantsUtil-DOQT8QjB.js → ConstantsUtil-8QF5-8jK.js} +2 -2
- package/_assets/{ContentClient-CP30kTGC.js → ContentClient-_5-t1Czy.js} +2 -2
- package/_assets/{Creator-CL5-9wt8.js → Creator-BKRq-rfB.js} +2 -2
- package/_assets/{DeploymentBuilder-CBZcZRxi.js → DeploymentBuilder-fqRq0nKR.js} +2 -2
- package/_assets/{ErrorNotice-hBQmSZ6-.js → ErrorNotice-vH_cPW-j.js} +2 -2
- package/_assets/{ExchangeController-D8HU_NYC.js → ExchangeController-DDNUU6JI.js} +2 -2
- package/_assets/{Faq-BQrzHqNG.js → Faq-ItVPl8xU.js} +2 -2
- package/_assets/{GetCredits-ygbuw7u7.js → GetCredits-Cer6BooU.js} +2 -2
- package/_assets/{Grow-BukjLeqq.js → Grow-BwG86B-i.js} +2 -2
- package/_assets/{HelpersUtil-DQZPVnGd.js → HelpersUtil-BeDBebvO.js} +2 -2
- package/_assets/{ItemDetail-DRYClvFH.js → ItemDetail-D_lH2P78.js} +2 -2
- package/_assets/{JumpInIcon-Cl5YIChT.js → JumpInIcon-BasZzZMV.js} +2 -2
- package/_assets/LazyEmoteControls-Cski3VBO.js +3 -0
- package/_assets/{LoadMore-K3-v7nFb.js → LoadMore-Dg5VI8hK.js} +2 -2
- package/_assets/{ManaPricingBanner.styles-fqgzCjHO.js → ManaPricingBanner.styles-D5OuC-74.js} +2 -2
- package/_assets/{MyAssets-CwAfA9JG.js → MyAssets-BU3b_mrk.js} +3 -3
- package/_assets/{MyFavorites-C7rFPSVw.js → MyFavorites-H8LAgyBW.js} +2 -2
- package/_assets/{NetworkUtil-f9jGDeMT.js → NetworkUtil-loekBFcw.js} +2 -2
- package/_assets/{NotFound-Bx4Ct8Ma.js → NotFound-VVFJYk6s.js} +2 -2
- package/_assets/{NotificationsBell-CpnwVfKL.js → NotificationsBell-nRpovSx7.js} +2 -2
- package/_assets/{OutfitDetail-CT4xUcaW.js → OutfitDetail-DKnjEspq.js} +2 -2
- package/_assets/{OutfitPreview-Cv5six9R.js → OutfitPreview-BsCoPlnq.js} +2 -2
- package/_assets/{OutfitStudio-Bi9wked4.js → OutfitStudio-CsvIrZxR.js} +2 -2
- package/_assets/{StoreSettings-BTpTw_QH.js → StoreSettings-BByUV_Pr.js} +22 -22
- package/_assets/{Success-BsO7Oqa9.js → Success-DGScgLw3.js} +2 -2
- package/_assets/{SwapController-CCDvSVZw.js → SwapController-BP5BfbDc.js} +2 -2
- package/_assets/{Tooltip-FbDeNHgE.js → Tooltip-C-nfgJpm.js} +2 -2
- package/_assets/{TradeService-DF614pXt.js → TradeService-CdH9sT6h.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-DNdgBjm3.js → W3MFrameProviderSingleton-BsfQoUjo.js} +4 -4
- package/_assets/{WebCryptoP256-BiF_WZmK.js → WebCryptoP256-DVeafgS8.js} +2 -2
- package/_assets/{authorizations-COaeSxyj.js → authorizations-BxIQoR1R.js} +2 -2
- package/_assets/{basic-Da5ip3dN.js → basic-CLbQfjvn.js} +2 -2
- package/_assets/{biconomy-BBLRbFU5.js → biconomy-WSYZUZ37.js} +2 -2
- package/_assets/{browser-GL38zsBc.js → browser-BH6as4hF.js} +2 -2
- package/_assets/{browser-ponyfill-CCLQ_lzS.js → browser-ponyfill-yGw9Fw3S.js} +2 -2
- package/_assets/{builder-BhFMeRdB.js → builder-58RI5lXH.js} +2 -2
- package/_assets/{buy-BxFFcAZZ.js → buy-CtY5LUJU.js} +2 -2
- package/_assets/{buy-gasless-DYr2Vni1.js → buy-gasless-DBT0wty0.js} +2 -2
- package/_assets/{categories-B0H2Zy7N.js → categories-DzeSbhln.js} +2 -2
- package/_assets/{ccip-YIm0Hjru.js → ccip-Dam2d3fQ.js} +2 -2
- package/_assets/{ccip-Cy0gmhxI.js → ccip-DarTLV2U.js} +2 -2
- package/_assets/{chains-QfFptk6u.js → chains-DZw7cilu.js} +2 -2
- package/_assets/collectionPage.styles-B6r0Y_I_.js +33 -0
- package/_assets/{common-pubFB5wO.js → common-C3D5vtxT.js} +2 -2
- package/_assets/{controller-DKzxhv44.js → controller-CYXr3W7f.js} +3 -3
- package/_assets/{core-BO30Mb0n.js → core-CtLe7Q8i.js} +5 -5
- package/_assets/{createSvgIcon-D-vzSvs5.js → createSvgIcon-Bnk9i4hk.js} +2 -2
- package/_assets/{custom-BBevYh09.js → custom-DDhjUhVD.js} +2 -2
- package/_assets/{data-capture-DyOym9gv.js → data-capture-DSy2Q6Pw.js} +2 -2
- package/_assets/{dcl-schemas-rRgEodwV.js → dcl-schemas-BoDAkhCs.js} +2 -2
- package/_assets/{decimals-BWyYn_GC.js → decimals-D2PFiqxb.js} +2 -2
- package/_assets/{decimals-DraOdj29.js → decimals-GVaV9UOV.js} +2 -2
- package/_assets/{detectExtension-CYZ0BZR3.js → detectExtension-B_fTQtQD.js} +2 -2
- package/_assets/{disposePreview-CLOn1byi.js → disposePreview-Bk0Q1JHk.js} +2 -2
- package/_assets/{email-BLUXC6jA.js → email-Bllq2Z1T.js} +2 -2
- package/_assets/{embedded-wallet-BaCBAOE_.js → embedded-wallet-CKsx2Dl3.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-DDVjFQef.js → emotion-styled.browser.esm-Bc8tGGy3.js} +2 -2
- package/_assets/{engine-DDqGz-47.js → engine-BP0B0M19.js} +2 -2
- package/_assets/{errors-D4QBpuQp.js → errors-CPQ5Auym.js} +2 -2
- package/_assets/{estimate-l1-fee-By1kr7gc.js → estimate-l1-fee-O30ngnV4.js} +2 -2
- package/_assets/{eth_estimateGas-BQolTH27.js → eth_estimateGas-DN3UaNdu.js} +2 -2
- package/_assets/{eth_getStorageAt-8TXY-Y6k.js → eth_getStorageAt-BV2T5sE6.js} +2 -2
- package/_assets/{eth_getTransactionCount-LNQAx49w.js → eth_getTransactionCount-BWwy_OFp.js} +2 -2
- package/_assets/{ethereum-DjJ9E9Uy.js → ethereum-CFmjL9l3.js} +2 -2
- package/_assets/{ethers-I-AWJ0yN.js → ethers-DpD_Grgp.js} +2 -2
- package/_assets/{events-_9TL08nf.js → events-JiQ0IJWP.js} +2 -2
- package/_assets/{execute-CFGG-uaC.js → execute-XbUf5NDH.js} +3 -3
- package/_assets/{extractIPFS-CkcgXisF.js → extractIPFS-DQEa1r0l.js} +2 -2
- package/_assets/{features-D23o-Qlv.js → features-D2v0ii2k.js} +2 -2
- package/_assets/{fetchTokenMetadata-DzRNvmd1.js → fetchTokenMetadata-DnGQBvBA.js} +3 -3
- package/_assets/{field.styles-DLaLs4aV.js → field.styles-CSW6orsc.js} +2 -2
- package/_assets/{fortmatic-nIEP89xV.js → fortmatic-DjqBk4td.js} +2 -2
- package/_assets/{get-bytecode-T6S-qWDg.js → get-bytecode-CxUg34SO.js} +2 -2
- package/_assets/{get-ecosystem-wallet-info-BdTGSMmb.js → get-ecosystem-wallet-info-D0-aiJb0.js} +2 -2
- package/_assets/{getBalance-B-KGwUVb.js → getBalance-CoID6wxC.js} +3 -3
- package/_assets/{getInstalledModules-B5zxrfRx.js → getInstalledModules-xQC35KbZ.js} +2 -2
- package/_assets/{getNFT-kOBqsD0s.js → getNFT-BRw-vLHo.js} +3 -3
- package/_assets/{getNFT-D42WqdiE.js → getNFT-Co1clD3R.js} +2 -2
- package/_assets/{grid.styles-DvImG0tJ.js → grid.styles-e-xc32A6.js} +2 -2
- package/_assets/{hashTypedData-DS7yeaQ_.js → hashTypedData-Bf0XsWRv.js} +2 -2
- package/_assets/{hashTypedData-CKs1CieO.js → hashTypedData-C-A-Lgc-.js} +2 -2
- package/_assets/{in-app-qI6giYWT.js → in-app-CU6SBzfG.js} +2 -2
- package/_assets/{in-app-wallet-calls-DhXu1kmZ.js → in-app-wallet-calls-KD2d82ur.js} +2 -2
- package/_assets/{index-BVZ2BCE0.js → index-2pJIBWhc.js} +2 -2
- package/_assets/{index-CJmXYJSQ.js → index-3b38V3Qs.js} +2 -2
- package/_assets/{index-CAfc7Si6.js → index-40Z1jz1V.js} +2 -2
- package/_assets/{index-BwHwOSef.js → index-B-rqNcS6.js} +2 -2
- package/_assets/{index-B2grWswj.js → index-B0RtoTRf.js} +2 -2
- package/_assets/{index-CpU2_Hdp.js → index-B3_nLyGr.js} +2 -2
- package/_assets/{index-DcbOU41E.js → index-B8dQz_g8.js} +2 -2
- package/_assets/{index-C55jjLcH.js → index-BGPmbRS8.js} +2 -2
- package/_assets/{index-Bc32c0SO.js → index-BI4QbVg3.js} +2 -2
- package/_assets/{index-HAaWMxq3.js → index-BLL6N_cq.js} +2 -2
- package/_assets/{index-DYa64o3S.js → index-BLLHIz_8.js} +2 -2
- package/_assets/{index-DP1q7A9E.js → index-BM9h4p41.js} +2 -2
- package/_assets/{index-CvOyUt7s.js → index-BPaNMjUB.js} +2 -2
- package/_assets/{index-D1vDEGxf.js → index-BQbJapim.js} +2 -2
- package/_assets/{index-sNU3aV5D.js → index-BTP4vuGr.js} +2 -2
- package/_assets/{index-xw5n3NZp.js → index-B_kLUXvy.js} +2 -2
- package/_assets/{index-BZVogiMb.js → index-BgYe5D26.js} +2 -2
- package/_assets/{index-BxoMEiBs.js → index-Bh6N2NoI.js} +2 -2
- package/_assets/{index-DbV9oc9j.js → index-BmZ1yvlO.js} +2 -2
- package/_assets/{index-Bo71FRPI.js → index-Bp1zWNLu.js} +2 -2
- package/_assets/{index-BZthWUVz.js → index-BqZDanm9.js} +2 -2
- package/_assets/{index-ZuhaIzUS.js → index-BuDKtDGk.js} +4 -4
- package/_assets/{index-BfT4xJoU.js → index-BuDeofMr.js} +2 -2
- package/_assets/{index-CJdGteOt.js → index-Bxu8Njpx.js} +2 -2
- package/_assets/{index-obuKV-iG.js → index-C0TA1mCz.js} +2 -2
- package/_assets/{index-Bz-cBXjA.js → index-C1IcjFYr.js} +2 -2
- package/_assets/{index-B1tKYi-_.js → index-C1OE-Z-4.js} +2 -2
- package/_assets/{index-DU_zGodc.js → index-C5g7ANUQ.js} +2 -2
- package/_assets/{index-pq1YwDoV.js → index-CAHWgenf.js} +2 -2
- package/_assets/{index-BRDLRKnI.js → index-CGAI3uV3.js} +2 -2
- package/_assets/{index-BDvetOHD.js → index-CGkitQbD.js} +2 -2
- package/_assets/{index-BbwQy8gt.js → index-CIUbrWO8.js} +2 -2
- package/_assets/{index-C37hMmgX.js → index-CMzlNZwI.js} +2 -2
- package/_assets/{index-CobpTgR7.js → index-CP2ImQD1.js} +2 -2
- package/_assets/{index-BAsCCK6D.js → index-CVPXcTCp.js} +2 -2
- package/_assets/{index-BaGa2ngS.js → index-CWUboO4B.js} +3 -3
- package/_assets/{index-Cf4qilLE.js → index-CYY1RHqS.js} +2 -2
- package/_assets/{index-CIpIBG2l.js → index-CcCw8Qx9.js} +2 -2
- package/_assets/{index-D0zQ6XU1.js → index-Cht8q5BF.js} +2 -2
- package/_assets/{index-YLzUH1O6.js → index-CiduP6Hv.js} +3 -3
- package/_assets/{index-B4qiqHB2.js → index-ClNoDr-C.js} +2 -2
- package/_assets/{index-D_9Xd6lL.js → index-CoxEx_tD.js} +2 -2
- package/_assets/{index-D21N5UFA.js → index-CpoNjDMZ.js} +2 -2
- package/_assets/{index-lm4kmYVf.js → index-CsJsK8rK.js} +2 -2
- package/_assets/{index-Cq2ywtZp.js → index-Ct4n5Xxb.js} +2 -2
- package/_assets/{index-BAkbFURw.js → index-Cz7hVbt2.js} +2 -2
- package/_assets/{index-Bz9-mgxI.js → index-D5txI4vF.js} +2 -2
- package/_assets/{index-CxZ4lmqQ.js → index-DGnqq4vD.js} +2 -2
- package/_assets/{index-WX0xM9nR.js → index-DHo3kVZc.js} +2 -2
- package/_assets/{index-7RcHpl2m.js → index-DM21qClD.js} +4 -4
- package/_assets/{index-Dh9BVxww.js → index-Dbj5zcxF.js} +2 -2
- package/_assets/{index-NjqKRGql.js → index-DcwnByjB.js} +2 -2
- package/_assets/{index-Bx6FWc9w.js → index-DdlDD7oV.js} +2 -2
- package/_assets/{index-DJ-lRvoa.js → index-DoSwWpgx.js} +3 -3
- package/_assets/{index-mykvqk-N.js → index-DsFzuehG.js} +2 -2
- package/_assets/{index-CihPZf_2.js → index-DvIobR3I.js} +2 -2
- package/_assets/{index-BKgFGP4Z.js → index-OyTScJZJ.js} +2 -2
- package/_assets/{index-D6zI7Viz.js → index-aXM7TLrr.js} +2 -2
- package/_assets/{index-BASywYZC.js → index-gKZzMPMp.js} +2 -2
- package/_assets/{index-BIdEX3Aj.js → index-hduBtPDX.js} +3 -3
- package/_assets/{index-C95by_nd.js → index-j-ynFZNt.js} +12 -12
- package/_assets/{index-C8olfgnT.js → index-ohz3Terq.js} +2 -2
- package/_assets/{index-RwAzhZ9F.js → index-tTkT_eDq.js} +2 -2
- package/_assets/{index-BXN5C244.js → index-uLgy9V-S.js} +2 -2
- package/_assets/{index-CwpZN99m.js → index-vro3gYm1.js} +2 -2
- package/_assets/{index-BmI7kaHT.js → index-xeAcA3mr.js} +4 -4
- package/_assets/{index-8w4VTqCe.js → index-xxGHSh_Y.js} +2 -2
- package/_assets/{index.es-CCUvHU8r.js → index.es-CeGwmjeP.js} +2 -2
- package/_assets/{index.es-jBCJphZQ.js → index.es-ChJEqCmC.js} +5 -5
- package/_assets/{index.es-yHHQjCmc.js → index.es-CmsQty2J.js} +2 -2
- package/_assets/{index.es-3cCizRPh.js → index.es-D6QWzcFN.js} +2 -2
- package/_assets/{linkAccount-Bta19TNy.js → linkAccount-Bgzl817G.js} +2 -2
- package/_assets/{localBatchGatewayRequest-BbksyLVj.js → localBatchGatewayRequest-BWwkcjfX.js} +2 -2
- package/_assets/{native-B5UFxb45.js → native-Zg52r6b5.js} +2 -2
- package/_assets/{networks-CgpgXKDz.js → networks-BosphMNx.js} +2 -2
- package/_assets/{onramp-XjJDC1c4.js → onramp-C25kIpC0.js} +2 -2
- package/_assets/{openzeppelin-DUV4Icd9.js → openzeppelin-CnG-wUmz.js} +2 -2
- package/_assets/{ownerOf-Cs_ogLg-.js → ownerOf-LtiwT8y3.js} +2 -2
- package/_assets/{parseNft-CBPQ3LJE.js → parseNft-BYIxLq-G.js} +3 -3
- package/_assets/{parseSignature-BP4e1Upa.js → parseSignature-BsrRjSII.js} +2 -2
- package/_assets/{parseSignature-CExyayjK.js → parseSignature-ayXPbZSy.js} +4 -4
- package/_assets/{passkeys-DgCEtlaS.js → passkeys-CVe7QKPP.js} +2 -2
- package/_assets/{pay-with-exchange-DLOc9-39.js → pay-with-exchange-CB7c1oB5.js} +2 -2
- package/_assets/{prepare-contract-call-C00e98h3.js → prepare-contract-call-CqtzlLUZ.js} +2 -2
- package/_assets/{qr-overlay-CKKFzooS.js → qr-overlay-DtTjehhv.js} +4 -4
- package/_assets/{react-DEDBuQyX.js → react-BVt0Li4t.js} +2 -2
- package/_assets/{receive-DVmCB5fD.js → receive-BBPG6XB2.js} +2 -2
- package/_assets/{resolveImplementation-CAHD-9zO.js → resolveImplementation-DZ-WW8iE.js} +2 -2
- package/_assets/{resume-buy-BpKd_SKY.js → resume-buy-Cv2geVMc.js} +2 -2
- package/_assets/{rpc-CbKNMs6x.js → rpc-DjWAfzGE.js} +2 -2
- package/_assets/{secp256k1-CcNGHtG4.js → secp256k1-D4T8ETPb.js} +2 -2
- package/_assets/{secp256k1-DvijEf7b.js → secp256k1-DTLYGmsX.js} +2 -2
- package/_assets/{secp256k1-BZ5Nqh-r.js → secp256k1-Xmjj47hS.js} +2 -2
- package/_assets/{send-CGNrp6p8.js → send-CLTLxytK.js} +2 -2
- package/_assets/{send-batch-transaction-U7mCgvb2.js → send-batch-transaction-lrvMUeWi.js} +2 -2
- package/_assets/{send-eip712-transaction-CJM0DKi_.js → send-eip712-transaction-CZzGI-NJ.js} +3 -3
- package/_assets/{send-gasless-transaction-BLQB4OUk.js → send-gasless-transaction-Bovi0IlP.js} +3 -3
- package/_assets/{send-transaction-D1Wj6Pyz.js → send-transaction-V-skiorA.js} +3 -3
- package/_assets/{sendMetaTransaction-C60fXzSz.js → sendMetaTransaction-C1DjbZzO.js} +2 -2
- package/_assets/{sendRawTransaction-31arHEir.js → sendRawTransaction-C_1L8cKL.js} +4 -4
- package/_assets/{sentry-B9JQuOUS.js → sentry-CvgvbYco.js} +3 -3
- package/_assets/{serializeTransaction-DyVHuqDl.js → serializeTransaction-CBt5yjLP.js} +2 -2
- package/_assets/{session-proposal-yFqvK059.js → session-proposal-CcDtpXwA.js} +2 -2
- package/_assets/{session-request-BpQPShMh.js → session-request-QMpfZlZg.js} +3 -3
- package/_assets/{sha256-CZjTdMqq.js → sha256-CH48xKj-.js} +2 -2
- package/_assets/{signing-BVGwQAA3.js → signing-Bbjt0w4T.js} +4 -4
- package/_assets/{skeleton.styles-CX1NNl5b.js → skeleton.styles-CSFeGKls.js} +2 -2
- package/_assets/{socials-DIZXYb6i.js → socials-BONdJ6HX.js} +2 -2
- package/_assets/{styled-D2HPRVxs.js → styled-BKtgS3Mw.js} +2 -2
- package/_assets/{swaps-C4NOGbt9.js → swaps-BDrYlBIq.js} +2 -2
- package/_assets/{thirdweb-kQURuS8x.js → thirdweb-D8BuGuB6.js} +4 -4
- package/_assets/{to-serializable-transaction-CHGq8vN5.js → to-serializable-transaction-DVc2AZkw.js} +3 -3
- package/_assets/{totalSupply-DgfIqjUQ.js → totalSupply-vIWaKpRn.js} +2 -2
- package/_assets/{transaction-BPl6u0MP.js → transaction-HU1LvH_F.js} +2 -2
- package/_assets/{transactionReceipt-DTKCzsCV.js → transactionReceipt-C5EDDovO.js} +2 -2
- package/_assets/{transactions-BkPdpmZs.js → transactions-DLttcC4G.js} +2 -2
- package/_assets/{useCreditPacks-5bsFilKk.js → useCreditPacks-DQezqh2T.js} +2 -2
- package/_assets/{useImportable-A8pm0BCc.js → useImportable-ClLIgax2.js} +2 -2
- package/_assets/{useInfiniteGrid-B51FKHEU.js → useInfiniteGrid-CuZS8Fvu.js} +2 -2
- package/_assets/{useStore-BVJetRLB.js → useStore-CackoXcD.js} +3 -3
- package/_assets/{useTheme-BNx17lGp.js → useTheme-CyxJ4WgN.js} +2 -2
- package/_assets/{useUrlFilters-dJpCby1d.js → useUrlFilters-BLebBp_2.js} +2 -2
- package/_assets/{utils-DI62evWY.js → utils-BlZIIUA-.js} +2 -2
- package/_assets/{verifyHash-Ub-7mo4v.js → verifyHash-ClvzkX1K.js} +2 -2
- package/_assets/{w3m-modal-wT2H8d0h.js → w3m-modal-BzU2U3Jq.js} +2 -2
- package/_assets/{w3m-modal-IuHK7Vzl.js → w3m-modal-CvuAfsXG.js} +2 -2
- package/_assets/{wait-for-tx-receipt-Dg5o9KEQ.js → wait-for-tx-receipt-CUZPuZro.js} +2 -2
- package/_assets/{wallets-BuMm_yGX.js → wallets-CZe3uvHj.js} +6 -6
- package/_assets/{web-connector-CGgj9WFL.js → web-connector-D5lYaG5H.js} +4 -4
- package/_assets/{writeContract-Drz32GzX.js → writeContract-CIgmJ04w.js} +2 -2
- package/_assets/{zora-sepolia-D5YQPaLB.js → zora-sepolia-D9WDE2ni.js} +2 -2
- package/_assets/{zoraTestnet-CgH53I_-.js → zoraTestnet-Bi72bOcs.js} +2 -2
- package/index.html +11 -11
- package/og-image.png +0 -0
- package/package.json +2 -2
- package/_assets/LazyEmoteControls-biIY6i1F.js +0 -3
- package/_assets/collectionPage.styles-B60NuBHe.js +0 -33
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{B as M}from"./dcl-schemas-rRgEodwV.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-BuMm_yGX.js";import"./index-C37hMmgX.js";import{b as Jt,o as g,c as Et}from"./index-BfT4xJoU.js";import{f as P}from"./index.es-3cCizRPh.js";import{N as zt}from"./index-BIdEX3Aj.js";import"./react-DEDBuQyX.js";import"./signing-BVGwQAA3.js";import"./prepare-contract-call-C00e98h3.js";import"./utils-DI62evWY.js";import"./sentry-B9JQuOUS.js";import"./index-C95by_nd.js";import"./ethers-I-AWJ0yN.js";import"./intl-AKLEHPeO.js";import"./to-serializable-transaction-CHGq8vN5.js";import"./transaction-BPl6u0MP.js";import"./get-bytecode-T6S-qWDg.js";import"./execute-CFGG-uaC.js";import"./detectExtension-CYZ0BZR3.js";import"./linkAccount-Bta19TNy.js";import"./index-ZuhaIzUS.js";import"./ethereum-DjJ9E9Uy.js";import"./types-BeDU9GfL.js";import"./store-80QKZ2rN.js";import"./hashTypedData-DS7yeaQ_.js";import"./send-transaction-D1Wj6Pyz.js";import"./eth_sendRawTransaction-DYAsy3sS.js";import"./index-OpYIGLSa.js";import"./index-BAsCCK6D.js";import"./index-CihPZf_2.js";import"./browser-ponyfill-CCLQ_lzS.js";import"./events-_9TL08nf.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]="e50039d1-d22d-417d-a61c-b4ef1a985373",i._sentryDebugIdIdentifier="sentry-dbid-e50039d1-d22d-417d-a61c-b4ef1a985373")}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-BoDAkhCs.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-CZe3uvHj.js";import"./index-CMzlNZwI.js";import{b as Jt,o as g,c as Et}from"./index-BuDeofMr.js";import{f as P}from"./index.es-D6QWzcFN.js";import{N as zt}from"./index-hduBtPDX.js";import"./react-BVt0Li4t.js";import"./signing-Bbjt0w4T.js";import"./prepare-contract-call-CqtzlLUZ.js";import"./utils-BlZIIUA-.js";import"./sentry-CvgvbYco.js";import"./index-j-ynFZNt.js";import"./ethers-DpD_Grgp.js";import"./intl-AKLEHPeO.js";import"./to-serializable-transaction-DVc2AZkw.js";import"./transaction-HU1LvH_F.js";import"./get-bytecode-CxUg34SO.js";import"./execute-XbUf5NDH.js";import"./detectExtension-B_fTQtQD.js";import"./linkAccount-Bgzl817G.js";import"./index-BuDKtDGk.js";import"./ethereum-CFmjL9l3.js";import"./types-BeDU9GfL.js";import"./store-80QKZ2rN.js";import"./hashTypedData-Bf0XsWRv.js";import"./send-transaction-V-skiorA.js";import"./eth_sendRawTransaction-DYAsy3sS.js";import"./index-OpYIGLSa.js";import"./index-CVPXcTCp.js";import"./index-DvIobR3I.js";import"./browser-ponyfill-yGw9Fw3S.js";import"./events-JiQ0IJWP.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]="e50039d1-d22d-417d-a61c-b4ef1a985373",i._sentryDebugIdIdentifier="sentry-dbid-e50039d1-d22d-417d-a61c-b4ef1a985373")}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-CmsQty2J.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e as g}from"./index-
|
|
2
|
-
//# sourceMappingURL=index.es-
|
|
1
|
+
import{e as g}from"./index-hduBtPDX.js";import{o}from"./browser-ponyfill-yGw9Fw3S.js";import{i as a,s as l,a as v,f as u,p as y}from"./index-BuDeofMr.js";import"./index-CMzlNZwI.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]="9b9b2227-86b7-4b8c-a00d-91c6bd8ea159",s._sentryDebugIdIdentifier="sentry-dbid-9b9b2227-86b7-4b8c-a00d-91c6bd8ea159")}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},b=10;class M{constructor(e,t=!1){if(this.url=e,this.disableProviderPing=t,this.events=new g.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"?v(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()>b&&this.events.setMaxListeners(b)}}export{M as f};
|
|
2
|
+
//# sourceMappingURL=index.es-D6QWzcFN.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{v as k,p,s as w}from"./prepare-contract-call-
|
|
2
|
-
//# sourceMappingURL=linkAccount-
|
|
1
|
+
import{v as k,p,s as w}from"./prepare-contract-call-CqtzlLUZ.js";import{c as l,e as f}from"./utils-BlZIIUA-.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]="f03aec7a-981f-497f-85ba-8c05fdb32410",n._sentryDebugIdIdentifier="sentry-dbid-f03aec7a-981f-497f-85ba-8c05fdb32410")}catch{}})();function y(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 b({client:n,ecosystem:t,tokenToLink:e,storage:r}){const d=f(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:w({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=f(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:w({allowAccountDeletion:r,details:e.details,type:e.type}),headers:a,method:"POST"});if(!i.ok){const h=await i.json();throw new Error(h.message||"Failed to unlink account.")}const{linkedAccounts:u}=await i.json();return u??[]}async function I({client:n,ecosystem:t,storage:e}){const r=f(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,b as l,y as p,m as u};
|
|
2
|
+
//# sourceMappingURL=linkAccount-Bgzl817G.js.map
|
package/_assets/{localBatchGatewayRequest-BbksyLVj.js → localBatchGatewayRequest-BWwkcjfX.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{av as f}from"./NetworkUtil-
|
|
2
|
-
//# sourceMappingURL=localBatchGatewayRequest-
|
|
1
|
+
import{av as f}from"./NetworkUtil-loekBFcw.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-C_1L8cKL.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-BWwkcjfX.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as t}from"./sentry-
|
|
2
|
-
//# sourceMappingURL=native-
|
|
1
|
+
import{g as t}from"./sentry-CvgvbYco.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-Zg52r6b5.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{aw as z}from"./NetworkUtil-f9jGDeMT.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-CgH53I_-.js";import"./sentry-B9JQuOUS.js";import"./react-DEDBuQyX.js";import"./verifyHash-Ub-7mo4v.js";import"./sendRawTransaction-31arHEir.js";import"./index-C95by_nd.js";import"./dcl-schemas-rRgEodwV.js";import"./ethers-I-AWJ0yN.js";import"./intl-AKLEHPeO.js";import"./secp256k1-BZ5Nqh-r.js";import"./serializeTransaction-DyVHuqDl.js";import"./writeContract-Drz32GzX.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]="4a47aafe-7f43-41a1-aaaf-ee25ae328f91",s._sentryDebugIdIdentifier="sentry-dbid-4a47aafe-7f43-41a1-aaaf-ee25ae328f91")}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-loekBFcw.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-Bi72bOcs.js";import"./sentry-CvgvbYco.js";import"./react-BVt0Li4t.js";import"./verifyHash-ClvzkX1K.js";import"./sendRawTransaction-C_1L8cKL.js";import"./index-j-ynFZNt.js";import"./dcl-schemas-BoDAkhCs.js";import"./ethers-DpD_Grgp.js";import"./intl-AKLEHPeO.js";import"./secp256k1-Xmjj47hS.js";import"./serializeTransaction-CBt5yjLP.js";import"./writeContract-CIgmJ04w.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]="4a47aafe-7f43-41a1-aaaf-ee25ae328f91",s._sentryDebugIdIdentifier="sentry-dbid-4a47aafe-7f43-41a1-aaaf-ee25ae328f91")}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-BosphMNx.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-HS20q_81.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-HS20q_81.js";import{d as I,O as c}from"./index-DM21qClD.js";import{c as g}from"./index-Bp1zWNLu.js";import"./index-BLLHIz_8.js";import{O as T}from"./index-DsFzuehG.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-BsfQoUjo.js";import"./index-CGkitQbD.js";import"./index-2pJIBWhc.js";import"./index-C5g7ANUQ.js";import"./index-Cht8q5BF.js";import"./index-B_kLUXvy.js";import"./index-BmZ1yvlO.js";import"./index-DcwnByjB.js";import"./index-DGnqq4vD.js";import"./index-j-ynFZNt.js";import"./react-BVt0Li4t.js";import"./dcl-schemas-BoDAkhCs.js";import"./sentry-CvgvbYco.js";import"./ethers-DpD_Grgp.js";import"./intl-AKLEHPeO.js";import"./index-hduBtPDX.js";import"./events-JiQ0IJWP.js";import"./index-BuDeofMr.js";import"./index-CMzlNZwI.js";import"./index-OpYIGLSa.js";import"./index-DvIobR3I.js";import"./index.es-D6QWzcFN.js";import"./browser-ponyfill-yGw9Fw3S.js";import"./NetworkUtil-loekBFcw.js";import"./ref-CRG-0jL7.js";import"./async-directive-DVKyJ8n3.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]="aa68b275-b354-4a75-8fc7-1d3d3b050de1",t._sentryDebugIdIdentifier="sentry-dbid-aa68b275-b354-4a75-8fc7-1d3d3b050de1")}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-C25kIpC0.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as y}from"./to-serializable-transaction-
|
|
2
|
-
//# sourceMappingURL=openzeppelin-
|
|
1
|
+
import{g as y}from"./to-serializable-transaction-DVc2AZkw.js";import{s as p,f as c,r as u}from"./prepare-contract-call-CqtzlLUZ.js";import"./index-j-ynFZNt.js";import"./react-BVt0Li4t.js";import"./dcl-schemas-BoDAkhCs.js";import"./sentry-CvgvbYco.js";import"./ethers-DpD_Grgp.js";import"./intl-AKLEHPeO.js";import"./transaction-HU1LvH_F.js";import"./utils-BlZIIUA-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="f24d7aba-caeb-45cc-a835-44a16246e295",e._sentryDebugIdIdentifier="sentry-dbid-f24d7aba-caeb-45cc-a835-44a16246e295")}catch{}})();async function w({account:e,serializableTransaction:a,transaction:t,gasless:s}){const r=y({address:s.relayerForwarderAddress,chain:t.chain,client:t.client}),n=await u({contract:r,method:"function getNonce(address) view returns (uint256)",params:[e.address]}),[o,m]=await(async()=>{if(!a.to)throw new Error("OpenZeppelin transactions must have a 'to' address");if(!a.gas)throw new Error("OpenZeppelin transactions must have a 'gas' value");if(!a.data)throw new Error("OpenZeppelin transactions must have a 'data' value");if(s.experimentalChainlessSupport){const i={chainid:BigInt(t.chain.id),data:a.data,from:e.address,gas:a.gas,nonce:n,to:a.to,value:0n};return[await e.signTypedData({domain:{name:"GSNv2 Forwarder",verifyingContract:r.address,version:"0.0.1"},message:i,primaryType:"ForwardRequest",types:{ForwardRequest:g}}),i]}const d={data:a.data,from:e.address,gas:a.gas,nonce:n,to:a.to,value:0n};return[await e.signTypedData({domain:{chainId:t.chain.id,name:s.domainName??"GSNv2 Forwarder",verifyingContract:r.address,version:s.domainVersion??"0.0.1"},message:d,primaryType:"ForwardRequest",types:{ForwardRequest:f}}),d]})();return{message:m,messageType:"forward",signature:o}}const f=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],g=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}];async function R(e){const{message:a,messageType:t,signature:s}=await w(e),r=await fetch(e.gasless.relayerUrl,{body:p({forwarderAddress:e.gasless.relayerForwarderAddress,request:a,signature:s,type:t}),method:"POST"});if(!r.ok)throw new Error(`Failed to send transaction: ${await r.text()}`);const n=await r.json();if(!n.result)throw new Error(`Relay transaction failed: ${n.message}`);const o=JSON.parse(n.result).txHash;if(c(o))return{chain:e.transaction.chain,client:e.transaction.client,transactionHash:o};throw new Error(`Failed to send transaction: ${p(n)}`)}export{w as prepareOpenZeppelinTransaction,R as relayOpenZeppelinTransaction};
|
|
2
|
+
//# sourceMappingURL=openzeppelin-CnG-wUmz.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as o,e as c,r as s}from"./prepare-contract-call-
|
|
2
|
-
//# sourceMappingURL=ownerOf-
|
|
1
|
+
import{d as o,e as c,r as s}from"./prepare-contract-call-CqtzlLUZ.js";import{d as f}from"./detectExtension-B_fTQtQD.js";import"./utils-BlZIIUA-.js";import"./sentry-CvgvbYco.js";import"./react-BVt0Li4t.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="e52b2071-d81c-44fe-9731-cb345d5f9217",e._sentryDebugIdIdentifier="sentry-dbid-e52b2071-d81c-44fe-9731-cb345d5f9217")}catch{}})();const t="0x6352211e",n=[{name:"tokenId",type:"uint256"}],r=[{type:"address"}];function O(e){return f({availableSelectors:e,method:[t,n,r]})}function a(e){return c(n,[e.tokenId])}function w(e){return t+a(e).slice(2)}function I(e){return o(r,e)[0]}async function l(e){return s({contract:e.contract,method:[t,n,r],params:[e.tokenId]})}export{t as FN_SELECTOR,I as decodeOwnerOfResult,w as encodeOwnerOf,a as encodeOwnerOfParams,O as isOwnerOfSupported,l as ownerOf};
|
|
2
|
+
//# sourceMappingURL=ownerOf-LtiwT8y3.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/getNFT-
|
|
2
|
-
import{_ as u}from"./index-
|
|
3
|
-
//# sourceMappingURL=parseNft-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/getNFT-BRw-vLHo.js","_assets/index-j-ynFZNt.js","_assets/react-BVt0Li4t.js","_assets/dcl-schemas-BoDAkhCs.js","_assets/sentry-CvgvbYco.js","_assets/ethers-DpD_Grgp.js","_assets/intl-AKLEHPeO.js","_assets/index-l2QjlKjX.css","_assets/fetchTokenMetadata-DnGQBvBA.js","_assets/uint8-array-BMe04WIx.js","_assets/prepare-contract-call-CqtzlLUZ.js","_assets/utils-BlZIIUA-.js","_assets/thirdweb-D8BuGuB6.js","_assets/signing-Bbjt0w4T.js","_assets/to-serializable-transaction-DVc2AZkw.js","_assets/transaction-HU1LvH_F.js","_assets/get-bytecode-CxUg34SO.js","_assets/wait-for-tx-receipt-CUZPuZro.js","_assets/transactionReceipt-C5EDDovO.js","_assets/sleep-fBr8OToA.js","_assets/eth_estimateGas-DN3UaNdu.js","_assets/eth_getStorageAt-BV2T5sE6.js","_assets/eth_getTransactionCount-BWwy_OFp.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/decimals-GVaV9UOV.js","_assets/decimals-D2PFiqxb.js","_assets/zora-sepolia-D9WDE2ni.js","_assets/send-batch-transaction-lrvMUeWi.js","_assets/send-transaction-V-skiorA.js","_assets/getNFT-Co1clD3R.js","_assets/totalSupply-vIWaKpRn.js","_assets/detectExtension-B_fTQtQD.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as u}from"./index-j-ynFZNt.js";import{a as I}from"./utils-BlZIIUA-.js";import{g as _}from"./to-serializable-transaction-DVc2AZkw.js";import{i as g}from"./prepare-contract-call-CqtzlLUZ.js";import"./react-BVt0Li4t.js";import"./dcl-schemas-BoDAkhCs.js";import"./sentry-CvgvbYco.js";import"./ethers-DpD_Grgp.js";import"./intl-AKLEHPeO.js";import"./transaction-HU1LvH_F.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]="2bfe9ace-7943-4c9b-8d92-1f0672fc5532",t._sentryDebugIdIdentifier="sentry-dbid-2bfe9ace-7943-4c9b-8d92-1f0672fc5532")}catch{}})();function A(t,e){switch(e.type){case"ERC721":return{chainId:e.chainId,id:e.tokenId,metadata:t,owner:(e==null?void 0:e.owner)??null,tokenAddress:e.tokenAddress,tokenURI:e.tokenUri,type:e.type};case"ERC1155":return{chainId:e.chainId,id:e.tokenId,metadata:t,owner:(e==null?void 0:e.owner)??null,supply:e.supply,tokenAddress:e.tokenAddress,tokenURI:e.tokenUri,type:e.type};default:throw new Error("Invalid NFT type")}}async function N(t){let e=t.uri;e.startsWith("did:nft:")&&(e=e.replace("did:nft:","").replace(/_/g,"/"));const[i="",l="",r=""]=e.split("/"),[n,s]=i.split(":"),[o,a]=l.split(":");if(!n||n.toLowerCase()!=="eip155")throw new Error(`Invalid EIP namespace, expected EIP155, got: "${n}"`);if(!s)throw new Error("Chain ID not found");if(!a||!g(a))throw new Error("Contract address not found");if(!r)throw new Error("Token ID not found");const w=I(Number(s)),f=_({address:a,chain:w,client:t.client});switch(o){case"erc721":{const{getNFT:d}=await u(async()=>{const{getNFT:c}=await import("./getNFT-BRw-vLHo.js");return{getNFT:c}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28]));return(await d({contract:f,tokenId:BigInt(r)})).metadata.image??null}case"erc1155":{const{getNFT:d}=await u(async()=>{const{getNFT:c}=await import("./getNFT-Co1clD3R.js");return{getNFT:c}},__vite__mapDeps([29,12,11,4,2,10,13,1,3,5,6,7,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,8,9,30,31]));return(await d({contract:f,tokenId:BigInt(r)})).metadata.image??null}default:throw new Error(`Invalid ERC namespace, expected ERC721 or ERC1155, got: "${o}"`)}}export{A as parseNFT,N as parseNftUri};
|
|
3
|
+
//# sourceMappingURL=parseNft-BYIxLq-G.js.map
|