@dcl/shop 1.4.2-31321510979.commit-eaccdfa → 1.4.2-31321833858.commit-d05a541
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-DsalM-e5.js +378 -0
- package/_assets/{AnimatedBackground-cJyJ3k37.js → AnimatedBackground-BOrNsqN1.js} +1 -1
- package/_assets/{Assets-CgKshhdA.js → Assets-QOoWiQL0.js} +2 -2
- package/_assets/{Assets.styles-C7r9wHQF.js → Assets.styles-CSP5Wb2u.js} +1 -1
- package/_assets/{Authorizations-BJbX0ZkC.js → Authorizations-C7ZkQpU3.js} +1 -1
- package/_assets/{Cart-DK4zdt7W.js → Cart-CwXY-en-.js} +1 -1
- package/_assets/{CircularProgress-BI-Efq9-.js → CircularProgress-DJGW52uC.js} +1 -1
- package/_assets/{Collection-Cf172utI.js → Collection-Dw81a56N.js} +4 -4
- package/_assets/{CollectionCarousel-BxoPvgOg.js → CollectionCarousel-mhAYGnTb.js} +19 -19
- package/_assets/{Confetti-D2X3FtD_.js → Confetti-BJzwqwTF.js} +1 -1
- package/_assets/{ConstantsUtil-BYkVBz19.js → ConstantsUtil-S9Rc8iab.js} +1 -1
- package/_assets/{ContentClient-BkLWw6Rk.js → ContentClient-ljReoKyO.js} +1 -1
- package/_assets/{Creator-BFj8KtJ0.js → Creator-D9b4j61f.js} +1 -1
- package/_assets/{DeploymentBuilder-8E575y44.js → DeploymentBuilder-DSxp43uX.js} +1 -1
- package/_assets/{ErrorNotice-BYO5Bvyc.js → ErrorNotice-B_DnZnpz.js} +1 -1
- package/_assets/{ExchangeController-BA0Eliky.js → ExchangeController-BnL43Mxg.js} +1 -1
- package/_assets/{Faq-CaXi1BNV.js → Faq-BkoPMwLV.js} +1 -1
- package/_assets/{GetCredits-khV-GXU_.js → GetCredits-CetTDoCs.js} +1 -1
- package/_assets/{Grow-DVmpJZOV.js → Grow-DL6epSiS.js} +1 -1
- package/_assets/{HelpersUtil-DynUp31-.js → HelpersUtil-BL1YqLJc.js} +1 -1
- package/_assets/{ItemDetail-DDdnprOE.js → ItemDetail-VFYUF0mL.js} +1 -1
- package/_assets/LazyEmoteControls-BGRwSFAr.js +2 -0
- package/_assets/{LoadMore-CYVBsAhd.js → LoadMore-DAmGHMVW.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-C44WWkRh.js → ManaPricingBanner.styles-2dMknEFN.js} +1 -1
- package/_assets/{MyAssets-ogqvhbaY.js → MyAssets-BSO8VWKY.js} +2 -2
- package/_assets/{MyFavorites-D8erMGcd.js → MyFavorites-DHhBkxx8.js} +1 -1
- package/_assets/{NetworkUtil-BsEXGHJo.js → NetworkUtil-CmFj23VB.js} +1 -1
- package/_assets/{NotFound-D5seDwlz.js → NotFound-DH7CCo8Z.js} +1 -1
- package/_assets/{NotificationsBell-uJCcRX8e.js → NotificationsBell-C-ZXxEiI.js} +1 -1
- package/_assets/{OutfitDetail-Cnd07GLk.js → OutfitDetail-CFY6HZm6.js} +1 -1
- package/_assets/{OutfitPreview-BADnZcBi.js → OutfitPreview-DS6GhxsN.js} +1 -1
- package/_assets/{OutfitStudio-DsQnrk15.js → OutfitStudio-NVNd-hvf.js} +8 -8
- package/_assets/{StoreSettings-Du81JVhq.js → StoreSettings-CrZZUE9j.js} +1 -1
- package/_assets/{Success-CSByCd9s.js → Success-B-MnwiE5.js} +1 -1
- package/_assets/{SwapController-Dl69afRt.js → SwapController-Dbqbv3yv.js} +1 -1
- package/_assets/{Tooltip-Cz34W2WD.js → Tooltip-BV1YJ2nx.js} +1 -1
- package/_assets/{TradeService-DYWoUp2O.js → TradeService-BDhWL-iC.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-DMgnEflU.js → W3MFrameProviderSingleton-DkDY_Uhq.js} +3 -3
- package/_assets/{WebCryptoP256-DvJwZjAY.js → WebCryptoP256-dZsiPxua.js} +1 -1
- package/_assets/authorizations-DdXEl4SH.js +1 -0
- package/_assets/{basic-CgCNtuea.js → basic-BxS4xyCI.js} +1 -1
- package/_assets/{biconomy-ChCoIucR.js → biconomy-ChyCaDhZ.js} +1 -1
- package/_assets/{builder-UN5pIfno.js → builder-aNj3KtnQ.js} +1 -1
- package/_assets/{buy-BsMK5C0W.js → buy-ITSy499E.js} +1 -1
- package/_assets/buy-gasless-Qwo4-LdH.js +1 -0
- package/_assets/{categories-BoH_BcuN.js → categories-C_3TBHB6.js} +1 -1
- package/_assets/{ccip-BoCyT5Kw.js → ccip-DSAZ1Drq.js} +1 -1
- package/_assets/{ccip-ci60pO9_.js → ccip-q9rBWRrW.js} +1 -1
- package/_assets/{chains-BXxRVqOL.js → chains-C3ogoGMY.js} +1 -1
- package/_assets/{collectionPage.styles-BK-K9Hp7.js → collectionPage.styles-lQ1i3kYb.js} +4 -4
- package/_assets/{common-pfIErvdh.js → common-Du-luxO1.js} +1 -1
- package/_assets/{controller-Bmdml4vJ.js → controller-CjHTogUM.js} +2 -2
- package/_assets/{core-DSyHKtkv.js → core-BLRurbyU.js} +4 -4
- package/_assets/{createSvgIcon-B7oSzltn.js → createSvgIcon-DPRU4ebA.js} +1 -1
- package/_assets/{custom-CpeFfUh_.js → custom-DESM1TBo.js} +1 -1
- package/_assets/{data-capture-D82nwrKY.js → data-capture-Xahs7XND.js} +1 -1
- package/_assets/decimals-CA4WCN0k.js +1 -0
- package/_assets/{decimals-CufGxqGB.js → decimals-CN36TWfs.js} +1 -1
- package/_assets/{detectExtension-DJir-uLI.js → detectExtension-D5bfb7Ei.js} +1 -1
- package/_assets/{email-B3_G7aNG.js → email-BnVyGQjo.js} +1 -1
- package/_assets/{embedded-wallet-CbWrcRQY.js → embedded-wallet-BZeoh5V4.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-mKrb76ZC.js → emotion-styled.browser.esm-ScvFm9x7.js} +1 -1
- package/_assets/{engine-Ck8sAaZu.js → engine-B-fLoDkH.js} +1 -1
- package/_assets/{errors-CvYDNXLT.js → errors-DXSAwVw4.js} +1 -1
- package/_assets/{estimate-l1-fee-BrAAemAM.js → estimate-l1-fee-BjJ_4KQn.js} +1 -1
- package/_assets/{eth_estimateGas-D9Pu3PNx.js → eth_estimateGas-VGXN9rx1.js} +1 -1
- package/_assets/{eth_getStorageAt-BSkNzsMl.js → eth_getStorageAt-xHOtLw9t.js} +1 -1
- package/_assets/{eth_getTransactionCount-DpXnQ6cd.js → eth_getTransactionCount-DeOan_M2.js} +1 -1
- package/_assets/{ethereum-D1MZ_SH0.js → ethereum-wAQ6oI96.js} +1 -1
- package/_assets/{ethers-BKEzvwKN.js → ethers-CHvw3dSr.js} +1 -1
- package/_assets/{execute-DFgCeynW.js → execute-DA2F3yom.js} +2 -2
- package/_assets/{extractIPFS-DuxYPj2T.js → extractIPFS-DYEe95Fe.js} +1 -1
- package/_assets/{features-CAYyw2t4.js → features-P2l_M4a9.js} +1 -1
- package/_assets/{fetchTokenMetadata-CpttgW84.js → fetchTokenMetadata-C1e9utql.js} +2 -2
- package/_assets/{field.styles-DKv8B53l.js → field.styles-DUhp2XSE.js} +1 -1
- package/_assets/{get-bytecode-CL7QG9KN.js → get-bytecode-C_QCCMoR.js} +1 -1
- package/_assets/get-ecosystem-wallet-info-D6ZqL22k.js +1 -0
- package/_assets/{getBalance-B2ObTKo9.js → getBalance-BRp_O879.js} +2 -2
- package/_assets/{getInstalledModules-OWhC7ilZ.js → getInstalledModules-TqMZVwQW.js} +1 -1
- package/_assets/getNFT-CxoCzDMN.js +1 -0
- package/_assets/{getNFT-DEL-8DlX.js → getNFT-D5BgP1-B.js} +2 -2
- package/_assets/{grid.styles-CLaodk5Q.js → grid.styles-8zRUQugb.js} +1 -1
- package/_assets/{hashTypedData-l-4TMklh.js → hashTypedData-BVfCehOr.js} +1 -1
- package/_assets/{hashTypedData-DejwI0fC.js → hashTypedData-DYCRMzzm.js} +1 -1
- package/_assets/{in-app-CAxC4Ivh.js → in-app-DkcHZ10N.js} +1 -1
- package/_assets/{in-app-wallet-calls-B4qBtbAF.js → in-app-wallet-calls-gnS8ZYX9.js} +1 -1
- package/_assets/{index-DqhO9Fg3.js → index--uTyu0uz.js} +1 -1
- package/_assets/{index-eNelMLKH.js → index-1ZLnfNGq.js} +1 -1
- package/_assets/{index-DakB46KR.js → index-2mvOLhCu.js} +1 -1
- package/_assets/{index-CEyMhxNB.js → index-B-uyLfLW.js} +1 -1
- package/_assets/{index-DEJfCl92.js → index-BElLBIDw.js} +1 -1
- package/_assets/{index-BxnUk4ME.js → index-BHVZE5-w.js} +1 -1
- package/_assets/{index-Bv9rCbrF.js → index-BHiuk7dd.js} +1 -1
- package/_assets/{index-BVi-9LKN.js → index-BKE2sklY.js} +1 -1
- package/_assets/{index-DP6QK5zD.js → index-BR-AXZqF.js} +1 -1
- package/_assets/{index-CRzzQfOr.js → index-BTUwiZLK.js} +1 -1
- package/_assets/{index-Bh6adykR.js → index-BVWvbmB_.js} +12 -12
- package/_assets/{index-Dhix6rUc.js → index-BYvgoigv.js} +1 -1
- package/_assets/{index-BYLXLXoc.js → index-B_1v6F0h.js} +1 -1
- package/_assets/{index-DvYOZ9Sr.js → index-B_3Ca4N6.js} +2 -2
- package/_assets/{index-Cmjegovo.js → index-BcxEq2Er.js} +1 -1
- package/_assets/{index-BMx0J1W7.js → index-BhcJRwSw.js} +1 -1
- package/_assets/{index-CK61l8v-.js → index-BiNtOaPH.js} +1 -1
- package/_assets/{index-DUOQXffc.js → index-Bl3tllG2.js} +1 -1
- package/_assets/{index-hKJudHRw.js → index-BqTYxdMG.js} +1 -1
- package/_assets/{index-DKT5zOvs.js → index-BsZqUcMW.js} +1 -1
- package/_assets/{index-DkPrBpEu.js → index-BtXchQlE.js} +1 -1
- package/_assets/{index-BLuTTbXE.js → index-CA_m9eDM.js} +1 -1
- package/_assets/{index-Zf4oaxuE.js → index-CEBe8Ks-.js} +1 -1
- package/_assets/{index-BfOmf_Cp.js → index-CI91n7ZK.js} +1 -1
- package/_assets/{index-1QstDrwj.js → index-CKQ7PP9t.js} +1 -1
- package/_assets/{index-9KWmRLJY.js → index-CNjkfqno.js} +1 -1
- package/_assets/{index-DFBE_Qdk.js → index-CSuR3VTG.js} +1 -1
- package/_assets/{index-DOLSZTRS.js → index-CVdDq8EF.js} +1 -1
- package/_assets/{index-R9nHgWvM.js → index-CYTl2aV_.js} +1 -1
- package/_assets/{index-Cumq3JZH.js → index-CaWADU3A.js} +3 -3
- package/_assets/{index-EF_jUQ8k.js → index-ChtghJjk.js} +1 -1
- package/_assets/{index-CzLF63y-.js → index-CstxEm24.js} +1 -1
- package/_assets/{index-BKv8igl6.js → index-CtmBq3lY.js} +1 -1
- package/_assets/{index-BJSqjAz5.js → index-CtnJfdje.js} +1 -1
- package/_assets/{index-BkyZYtvZ.js → index-CuEcRXk2.js} +1 -1
- package/_assets/{index-Cg55UGkV.js → index-Cy3K6TbO.js} +1 -1
- package/_assets/{index-DGlvMnC6.js → index-D0Sno89y.js} +1 -1
- package/_assets/{index-ChXE0-3A.js → index-D3Cq4bqb.js} +1 -1
- package/_assets/{index-DPwpeXbZ.js → index-DBV70okV.js} +1 -1
- package/_assets/{index-BHsHyxTp.js → index-DFbLJk0v.js} +1 -1
- package/_assets/{index-Bf9Jh6ty.js → index-DIXd4yr6.js} +3 -3
- package/_assets/{index-DiWnKuWQ.js → index-DJj7DNI5.js} +2 -2
- package/_assets/{index-BWHG3_yU.js → index-DKik1tqf.js} +1 -1
- package/_assets/{index-tslnPDXe.js → index-DNaUH0hG.js} +1 -1
- package/_assets/{index-Dcr_mOap.js → index-DOUhX2vd.js} +1 -1
- package/_assets/{index-CXVjVFyf.js → index-DWB648gE.js} +2 -2
- package/_assets/{index-BoAHsqWZ.js → index-DbCIRxku.js} +3 -3
- package/_assets/{index-BvqQC62-.js → index-DfVwZLZv.js} +1 -1
- package/_assets/{index-PKeNbFmQ.js → index-Di93FjoO.js} +1 -1
- package/_assets/{index-BeR8agGt.js → index-DoPvIZFo.js} +1 -1
- package/_assets/{index-D7lxJ3dw.js → index-Dziv-ztL.js} +1 -1
- package/_assets/{index-DawlAKc2.js → index-KCnWqTid.js} +1 -1
- package/_assets/{index-BbVTIE6o.js → index-LLZCscV-.js} +1 -1
- package/_assets/{index-DVLRWBza.js → index-RzZ2o1PM.js} +1 -1
- package/_assets/{index-D5hR2snR.js → index-UKBE5ufT.js} +1 -1
- package/_assets/{index-DiIBE3vJ.js → index-WtEb8Dou.js} +1 -1
- package/_assets/{index-BS30HDvk.js → index-XsdlViAm.js} +1 -1
- package/_assets/{index-C0Q2Xw9m.js → index-hraIPyUK.js} +2 -2
- package/_assets/{index-1hFNP4-J.js → index-nyMFoZlx.js} +1 -1
- package/_assets/{index-CPeIXfrM.js → index-oGGEVx4e.js} +1 -1
- package/_assets/{index-DHGhfu2F.js → index-pGuWMonI.js} +1 -1
- package/_assets/{index-Uf7j7Muh.js → index-xmwrM1gX.js} +1 -1
- package/_assets/{index.es-CpRZxgSI.js → index.es-1C-91fa0.js} +1 -1
- package/_assets/{index.es-mC-IwkBp.js → index.es-BSWBrpQe.js} +4 -4
- package/_assets/{index.es-BrdXKoNI.js → index.es-dMv11h1g.js} +1 -1
- package/_assets/{linkAccount-BC_9YSzE.js → linkAccount-BPOjpDQF.js} +1 -1
- package/_assets/{localBatchGatewayRequest-Sqedi9_T.js → localBatchGatewayRequest-DQhTBRSh.js} +1 -1
- package/_assets/{native-Dc2tC-qn.js → native-DDD_yqs5.js} +1 -1
- package/_assets/{networks-D1KxTI6W.js → networks-DuFCMSqt.js} +1 -1
- package/_assets/{onramp-DoImupnC.js → onramp-CB-lwIcL.js} +1 -1
- package/_assets/{openzeppelin-BgxtMme5.js → openzeppelin-BEzK-ytM.js} +1 -1
- package/_assets/{ownerOf-3KXrH0u3.js → ownerOf-CR0b_ZWL.js} +1 -1
- package/_assets/{parseNft-PSXPX8Qm.js → parseNft-CeR_0mFl.js} +2 -2
- package/_assets/{parseSignature-CYlDxQ9k.js → parseSignature-BXY4fDlp.js} +3 -3
- package/_assets/{parseSignature-DTi4uU4Z.js → parseSignature-DvIu4faj.js} +1 -1
- package/_assets/{passkeys-5lnypzRC.js → passkeys-DoXc4Xy7.js} +1 -1
- package/_assets/{pay-with-exchange-CWcjyYs3.js → pay-with-exchange-D3YRwRnQ.js} +1 -1
- package/_assets/{prepare-contract-call-Bc4Cpa9D.js → prepare-contract-call-CuOouwzZ.js} +1 -1
- package/_assets/{qr-overlay-NPhJDGVq.js → qr-overlay-BKsCOIA8.js} +1 -1
- package/_assets/{receive-VPgnkZS_.js → receive-B1KBfflU.js} +1 -1
- package/_assets/{resolveImplementation-fHRuJM82.js → resolveImplementation-rJZA8R7-.js} +1 -1
- package/_assets/{rpc-DZP--mgd.js → rpc-z-_gajTg.js} +1 -1
- package/_assets/{secp256k1-oNvcpUA1.js → secp256k1-CEt2uVIa.js} +1 -1
- package/_assets/{secp256k1-sqjfgWa7.js → secp256k1-DzPEUahX.js} +1 -1
- package/_assets/{secp256k1-C3Qb75Qb.js → secp256k1-Eu_UrDZQ.js} +1 -1
- package/_assets/{send-yMlzgxV3.js → send-BP56Pjq2.js} +1 -1
- package/_assets/{send-batch-transaction-C5BOzhrb.js → send-batch-transaction-E8tR0aO1.js} +1 -1
- package/_assets/{send-eip712-transaction-BfXD1pXX.js → send-eip712-transaction-6B8BaRp6.js} +2 -2
- package/_assets/send-gasless-transaction-BC0vYYGz.js +2 -0
- package/_assets/{send-transaction-DLLBmyZ2.js → send-transaction-Cyj6alac.js} +2 -2
- package/_assets/{sendMetaTransaction-DCqRrKxD.js → sendMetaTransaction-CxjN2iMp.js} +1 -1
- package/_assets/{sendRawTransaction-k2Sfh7AJ.js → sendRawTransaction-BZMjypDx.js} +3 -3
- package/_assets/{sentry-1ai9esXb.js → sentry-CUdtSPei.js} +1 -1
- package/_assets/{serializeTransaction-CwlY06pE.js → serializeTransaction-DdLuDvZh.js} +1 -1
- package/_assets/{session-proposal-BR4gno3D.js → session-proposal-Cb_IdGgx.js} +1 -1
- package/_assets/{session-request-DelvKYtg.js → session-request-CuiTHTkf.js} +2 -2
- package/_assets/{sha256-CeTmPq_Q.js → sha256-DsP9u1VJ.js} +1 -1
- package/_assets/{signing-DBPT8c_m.js → signing-B_TMY__g.js} +3 -3
- package/_assets/{skeleton.styles-S0BlHaZF.js → skeleton.styles-BZ8ZgFLU.js} +1 -1
- package/_assets/{socials-HhtoVIIu.js → socials-DDD9uvpM.js} +1 -1
- package/_assets/{styled-9SIjAP06.js → styled-KLwzgdoB.js} +1 -1
- package/_assets/{swaps-BzqeewT0.js → swaps-CjqUbBfb.js} +1 -1
- package/_assets/{thirdweb-YIX7a_02.js → thirdweb-0rujUNSl.js} +3 -3
- package/_assets/{to-serializable-transaction-DqDYMKiS.js → to-serializable-transaction-NCusZ8xl.js} +2 -2
- package/_assets/{totalSupply-7X9a1Ctp.js → totalSupply-u5fgMBD-.js} +1 -1
- package/_assets/{transaction-DcVIFcB7.js → transaction-C8mfivVb.js} +1 -1
- package/_assets/{transactionReceipt-CdHeShcY.js → transactionReceipt-BHjPvP-A.js} +1 -1
- package/_assets/{transactions-DG7v8Ic7.js → transactions-D0YLE766.js} +1 -1
- package/_assets/{useCreditPacks-vq0qzOlC.js → useCreditPacks-DhRruCBh.js} +1 -1
- package/_assets/{useImportable-BJCj_pDd.js → useImportable-COXp75Oi.js} +1 -1
- package/_assets/{useInfiniteGrid-BzWCN8NZ.js → useInfiniteGrid-CPaNhKNU.js} +1 -1
- package/_assets/{useStore-CQ5asPEA.js → useStore-a0qe_EW2.js} +2 -2
- package/_assets/useTheme-DgGKATWA.js +1 -0
- package/_assets/{utils-DPjdBMrV.js → utils-ClNpRN95.js} +1 -1
- package/_assets/{verifyHash-B6Vh-Wda.js → verifyHash-Czkmjbtb.js} +1 -1
- package/_assets/{w3m-modal-BBx0I47s.js → w3m-modal-CCQZ28h5.js} +1 -1
- package/_assets/{w3m-modal-DSuObTMF.js → w3m-modal-XkqIwsWW.js} +1 -1
- package/_assets/{wait-for-tx-receipt-dL7u4t_k.js → wait-for-tx-receipt-umHQbgNk.js} +1 -1
- package/_assets/{wallets-DUR60lPP.js → wallets-dFWYb-aD.js} +5 -5
- package/_assets/{web-connector-CehjxsVA.js → web-connector-B6I8EGFj.js} +3 -3
- package/_assets/{writeContract-C0-n2OaV.js → writeContract-C2tbGQyL.js} +1 -1
- package/_assets/{zora-sepolia-k6yl8DpC.js → zora-sepolia-CIZA49Ti.js} +1 -1
- package/_assets/{zoraTestnet-7xxdYXjY.js → zoraTestnet-Chf9u3j4.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/Activity-Du3v4d55.js +0 -378
- package/_assets/LazyEmoteControls-BlgXCM-V.js +0 -2
- package/_assets/authorizations-CHiv1Pa7.js +0 -1
- package/_assets/buy-gasless-CChLhkv0.js +0 -1
- package/_assets/decimals-C8Nkd-f-.js +0 -1
- package/_assets/get-ecosystem-wallet-info-ClVaJBNf.js +0 -1
- package/_assets/getNFT-BSQnVoEz.js +0 -1
- package/_assets/send-gasless-transaction-DTd_ER_v.js +0 -2
- package/_assets/useTheme-BzrLLDZ8.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as M}from"./dcl-schemas-CmtP3U6y.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-DUR60lPP.js";import"./index-BWHG3_yU.js";import{b as Jt,o as g,c as Et}from"./index-BeR8agGt.js";import{f as P}from"./index.es-CpRZxgSI.js";import{N as zt}from"./index-CXVjVFyf.js";import"./signing-DBPT8c_m.js";import"./prepare-contract-call-Bc4Cpa9D.js";import"./utils-DPjdBMrV.js";import"./sentry-1ai9esXb.js";import"./react-BYHuwl8r.js";import"./index-Bh6adykR.js";import"./ethers-BKEzvwKN.js";import"./intl-CBcMB1D2.js";import"./to-serializable-transaction-DqDYMKiS.js";import"./transaction-DcVIFcB7.js";import"./get-bytecode-CL7QG9KN.js";import"./execute-DFgCeynW.js";import"./detectExtension-DJir-uLI.js";import"./linkAccount-BC_9YSzE.js";import"./index-Bf9Jh6ty.js";import"./ethereum-D1MZ_SH0.js";import"./types-DC0Zmj1B.js";import"./store-CraP4F4Y.js";import"./hashTypedData-DejwI0fC.js";import"./send-transaction-DLLBmyZ2.js";import"./eth_sendRawTransaction-DPdnXbFR.js";import"./index-nibyPLVP.js";import"./index-CJdot1dH.js";import"./index-DqhO9Fg3.js";import"./browser-ponyfill-Dj0kiq3a.js";import"./events-DQ172AOg.js";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 Ce(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 Ie(i,...t){return Ce(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 C(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 Ie(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)}`,Ct=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=Ct(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)]),Ct(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,It=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(It)for(var e of It(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,I=(i,t,e)=>ei(i,typeof t!="symbol"?t+"":t,e);class ii{constructor(t){I(this,"name","polkadot"),I(this,"client"),I(this,"httpProviders"),I(this,"events"),I(this,"namespace"),I(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=C(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(C(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=C(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=C(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=C(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,Ci=(i,t,e)=>t in i?yi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,A=(i,t,e)=>Ci(i,typeof t!="symbol"?t+"":t,e);class Ii{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=C(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=C(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 Ii({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};
|
|
1
|
+
import{B as M}from"./dcl-schemas-CmtP3U6y.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-dFWYb-aD.js";import"./index-DKik1tqf.js";import{b as Jt,o as g,c as Et}from"./index-DoPvIZFo.js";import{f as P}from"./index.es-1C-91fa0.js";import{N as zt}from"./index-DWB648gE.js";import"./signing-B_TMY__g.js";import"./prepare-contract-call-CuOouwzZ.js";import"./utils-ClNpRN95.js";import"./sentry-CUdtSPei.js";import"./react-BYHuwl8r.js";import"./index-BVWvbmB_.js";import"./ethers-CHvw3dSr.js";import"./intl-CBcMB1D2.js";import"./to-serializable-transaction-NCusZ8xl.js";import"./transaction-C8mfivVb.js";import"./get-bytecode-C_QCCMoR.js";import"./execute-DA2F3yom.js";import"./detectExtension-D5bfb7Ei.js";import"./linkAccount-BPOjpDQF.js";import"./index-DIXd4yr6.js";import"./ethereum-wAQ6oI96.js";import"./types-DC0Zmj1B.js";import"./store-CraP4F4Y.js";import"./hashTypedData-DYCRMzzm.js";import"./send-transaction-Cyj6alac.js";import"./eth_sendRawTransaction-DPdnXbFR.js";import"./index-nibyPLVP.js";import"./index-CJdot1dH.js";import"./index--uTyu0uz.js";import"./browser-ponyfill-Dj0kiq3a.js";import"./events-DQ172AOg.js";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 Ce(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 Ie(i,...t){return Ce(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 C(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 Ie(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)}`,Ct=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=Ct(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)]),Ct(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,It=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(It)for(var e of It(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,I=(i,t,e)=>ei(i,typeof t!="symbol"?t+"":t,e);class ii{constructor(t){I(this,"name","polkadot"),I(this,"client"),I(this,"httpProviders"),I(this,"events"),I(this,"namespace"),I(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=C(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(C(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=C(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=C(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=C(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,Ci=(i,t,e)=>t in i?yi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,A=(i,t,e)=>Ci(i,typeof t!="symbol"?t+"":t,e);class Ii{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=C(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=C(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 Ii({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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as p,p as A,s as w}from"./prepare-contract-call-
|
|
1
|
+
import{v as p,p as A,s as w}from"./prepare-contract-call-CuOouwzZ.js";import{c as d,e as h}from"./utils-ClNpRN95.js";function m(n){const t=n.domain;return(t==null?void 0:t.chainId)!==void 0&&p(t.chainId)&&(n.domain={...n.domain,chainId:A(n.domain.chainId)}),n}async function T({client:n,ecosystem:t,tokenToLink:i,storage:r}){const u=h(n,t),c=d("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"},e=await u(`${c}/api/2024-05-05/account/connect`,{body:w({accountAuthTokenToConnect:i}),headers:o,method:"POST"});if(!e.ok){const l=await e.json();throw new Error(l.message||"Failed to link account.")}const{linkedAccounts:a}=await e.json();return a??[]}async function y({client:n,ecosystem:t,profileToUnlink:i,allowAccountDeletion:r=!1,storage:u}){const c=h(n,t),s=d("inAppWallet"),o=await u.getAuthCookie();if(!o)throw new Error("Failed to unlink account, no user logged in");const e={Authorization:`Bearer iaw-auth-token:${o}`,"Content-Type":"application/json"},a=await c(`${s}/api/2024-05-05/account/disconnect`,{body:w({allowAccountDeletion:r,details:i.details,type:i.type}),headers:e,method:"POST"});if(!a.ok){const k=await a.json();throw new Error(k.message||"Failed to unlink account.")}const{linkedAccounts:l}=await a.json();return l??[]}async function F({client:n,ecosystem:t,storage:i}){const r=h(n,t),u=d("inAppWallet"),c=await i.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(`${u}/api/2024-05-05/accounts`,{headers:s,method:"GET"});if(!o.ok){const a=await o.json();throw new Error(a.message||"Failed to get linked accounts.")}const{linkedAccounts:e}=await o.json();return e??[]}export{F as g,T as l,m as p,y as u};
|
package/_assets/{localBatchGatewayRequest-Sqedi9_T.js → localBatchGatewayRequest-DQhTBRSh.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{av as f}from"./NetworkUtil-
|
|
1
|
+
import{av as f}from"./NetworkUtil-CmFj23VB.js";import{a$ as l,aN as p,bn as w,o as y,an as A,aH as g,h as m,g as F,ax as E,am as N,m as h,n as P,O as R,bo as I}from"./sendRawTransaction-BZMjypDx.js";function x(n){const{abi:r,data:e}=n,a=l(e,0,4),t=r.find(o=>o.type==="function"&&a===p(w(o)));if(!t)throw new y(a,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:t.name,args:"inputs"in t&&t.inputs&&t.inputs.length>0?A(t.inputs,l(e,4)):void 0}}const u="/docs/contract/encodeErrorResult";function b(n){const{abi:r,errorName:e,args:a}=n;let t=r[0];if(e){const c=g({abi:r,args:a,name:e});if(!c)throw new m(e,{docsPath:u});t=c}if(t.type!=="error")throw new m(void 0,{docsPath:u});const o=w(t),s=p(o);let i="0x";if(a&&a.length>0){if(!t.inputs)throw new F(t.name,{docsPath:u});i=E(t.inputs,a)}return N([s,i])}const d="/docs/contract/encodeFunctionResult";function H(n){const{abi:r,functionName:e,result:a}=n;let t=r[0];if(e){const s=g({abi:r,name:e});if(!s)throw new h(e,{docsPath:d});t=s}if(t.type!=="function")throw new h(void 0,{docsPath:d});if(!t.outputs)throw new P(t.name,{docsPath:d});const o=(()=>{if(t.outputs.length===0)return[];if(t.outputs.length===1)return[a];if(Array.isArray(a))return a;throw new R(a)})();return E(t.outputs,o)}const q="x-batch-gateway:true";async function v(n){const{data:r,ccipRequest:e}=n,{args:[a]}=x({abi:f,data:r}),t=[],o=[];return await Promise.all(a.map(async(s,i)=>{try{o[i]=s.urls.includes(q)?await v({data:s.data,ccipRequest:e}):await e(s),t[i]=!1}catch(c){t[i]=!0,o[i]=G(c)}})),H({abi:f,functionName:"query",result:[t,o]})}function G(n){return n.name==="HttpRequestError"&&n.status?b({abi:f,errorName:"HttpError",args:[n.status,n.shortMessage]}):b({abi:[I],errorName:"Error",args:["shortMessage"in n?n.shortMessage:n.message]})}export{H as a,v as b,x as d,b as e,q as l};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as e}from"./sentry-
|
|
1
|
+
import{g as e}from"./sentry-CUdtSPei.js";function t(){if(typeof WebSocket<"u")return WebSocket;if(typeof e.WebSocket<"u")return e.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 o=t(),r=Object.freeze(Object.defineProperty({__proto__:null,WebSocket:o},Symbol.toStringTag,{value:"Module"}));export{r as n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aw as C}from"./NetworkUtil-BsEXGHJo.js";import{a as z,b as M,c as E,d as q,e as B,f as D,g as L,h as P,i as A,j as U,k as V,l as I,m as O,n as R,o as G,p as H,q as Z,r as K,s as X,t as Y,u as J,v as F,w as W,x as Q,y as _,z as $,A as aa,B as sa,C as ea,D as ta,E as na,F as ia,G as oa,H as ra,I as la,J as ca,K as ha,L as pa,M as da,N as ma,O as Ta,P as ua,Q as ba,R as ka,S as fa,T as ga,U as ya,V as ja,W as va,X as Sa,Y as xa,Z as wa,_ as Ca,$ as Na,a0 as za,a1 as Ma,a2 as Ea,a3 as qa,a4 as Ba,a5 as Da,a6 as La,a7 as Pa,a8 as Aa,a9 as Ua,aa as Va,ab as Ia,ac as Oa,ad as Ra,ae as Ga,af as Ha,ag as Za,ah as Ka,ai as Xa,aj as Ya,ak as Ja,al as Fa,am as Wa,an as Qa,ao as _a,ap as $a,aq as as,ar as ss,as as es,at as ts,au as ns,av as is,aw as os,ax as rs,ay as ls,az as cs,aA as hs,aB as ps,aC as ds,aD as ms,aE as Ts,aF as us,aG as bs,aH as ks,aI as fs,aJ as gs,aK as ys,aL as js,aM as vs,aN as Ss,aO as xs,aP as ws,aQ as Cs,aR as Ns,aS as zs,aT as Ms,aU as Es,aV as qs,aW as Bs,aX as Ds,aY as Ls,aZ as Ps,a_ as As,a$ as Us,b0 as Vs,b1 as Is,b2 as Os,b3 as Rs,b4 as Gs,b5 as Hs,b6 as Zs,b7 as Ks,b8 as Xs,b9 as Ys,ba as Js,bb as Fs,bc as Ws,bd as Qs,be as _s,bf as $s,bg as ae,bh as se,bi as ee,bj as te,bk as ne,bl as ie,bm as oe,bn as re,bo as le,bp as ce,bq as he,br as pe,bs as de,bt as me,bu as Te,bv as ue,bw as be,bx as ke,by as fe,bz as ge,bA as ye,bB as je,bC as ve,bD as Se,bE as xe,bF as we,bG as Ce,bH as Ne,bI as ze,bJ as Me,bK as Ee,bL as qe,bM as Be,bN as De,bO as Le,bP as Pe,bQ as Ae,bR as Ue,bS as Ve,bT as Ie,bU as Oe,bV as Re,bW as Ge,bX as He,bY as Ze,bZ as Ke,b_ as Xe,b$ as Ye,c0 as Je,c1 as Fe,c2 as We,c3 as Qe,c4 as _e,c5 as $e,c6 as at,c7 as st,c8 as et,c9 as tt,ca as nt,cb as it,cc as ot,cd as rt,ce as lt,cf as ct,cg as ht,ch as pt,ci as dt,cj as mt,ck as Tt,cl as ut,cm as bt,cn as kt,co as ft,cp as gt,cq as yt,cr as jt,cs as vt,ct as St,cu as xt,cv as wt,cw as Ct,cx as Nt,cy as zt,cz as Mt,cA as Et,cB as qt,cC as Bt,cD as Dt,cE as Lt,cF as Pt,cG as At,cH as Ut,cI as Vt,cJ as It,cK as Ot,cL as Rt,cM as Gt,cN as Ht,cO as Zt,cP as Kt,cQ as Xt,cR as Yt,cS as Jt,cT as Ft,cU as Wt,cV as Qt,cW as _t,cX as $t,cY as an,cZ as sn,c_ as en,c$ as tn,d0 as nn,d1 as on,d2 as rn,d3 as ln,d4 as cn,d5 as hn,d6 as pn,d7 as dn,d8 as mn,d9 as Tn,da as un,db as bn,dc as kn,dd as fn,de as gn,df as yn,dg as jn,dh as vn,di as Sn,dj as xn,dk as wn,dl as Cn,dm as Nn,dn as zn,dp as Mn,dq as En,dr as qn,ds as Bn,dt as Dn,du as Ln,dv as Pn,dw as An,dx as Un,dy as Vn,dy as In,dz as On,dA as Rn,dB as Gn,dC as Hn,dD as Zn,dE as Kn,dF as Xn,dG as Yn,dH as Jn,dI as Fn,dJ as Wn,dK as Qn,dL as _n,dM as $n,dN as ai,dO as si,dP as ei,dQ as ti,dR as ni,dS as ii,dT as oi,dU as ri,dV as li,dW as ci,dX as hi,dY as pi,dZ as di,d_ as mi,d$ as Ti,e0 as ui,e1 as bi,e2 as ki,e3 as fi,e4 as gi,e5 as yi,e6 as ji,e7 as vi,e8 as Si,e9 as xi,ea as wi,eb as Ci,ec as Ni,ed as zi,ee as Mi,ef as Ei,eg as qi,eh as Bi,ei as Di,ej as Li,ek as Pi,el as Ai,em as Ui,en as Vi,eo as Ii,ep as Oi,eq as Ri,er as Gi,es as Hi,et as Zi,eu as Ki,ev as Xi,ew as Yi,ex as Ji,ey as Fi,ez as Wi,eA as Qi,eB as _i,eC as $i,eD as ao,eE as so,eF as eo,eG as to,eH as no,eI as io,eJ as oo,eK as ro,eL as lo,eM as co,eN as ho,eO as po,eP as mo,eQ as To,eR as uo,eS as bo,eT as ko,eU as fo,eV as go,eW as yo,eX as jo,eY as vo,eZ as So,e_ as xo,e$ as wo,f0 as Co,f1 as No,f2 as zo,f3 as Mo,f4 as Eo,f5 as qo,f6 as Bo,f7 as Do,f8 as Lo,f9 as Po,fa as Ao,fb as Uo,fc as Vo,fd as Io,fe as Oo,ff as Ro,fg as Go,fh as Ho,fi as Zo,fj as Ko,fk as Xo,fl as Yo,fm as Jo,fn as Fo,fo as Wo,fp as Qo,fq as _o,fr as $o,fs as ar,ft as sr,fu as er,fv as tr,fw as nr,fx as ir,fy as or,fz as rr,fA as lr,fB as cr,fC as hr,fD as pr,fE as dr,fF as mr,fG as Tr,fH as ur,fI as br,fJ as kr,fK as fr,fL as gr,fM as yr,fN as jr,fO as vr,fP as Sr,fQ as xr,fR as wr,fS as Cr,fT as Nr,fU as zr,fV as Mr,fW as Er,fX as qr,fY as Br,fZ as Dr,f_ as Lr,f$ as Pr,g0 as Ar,g1 as Ur,g2 as Vr,g3 as Ir,g4 as Or,g5 as Rr,g6 as Gr,g7 as Hr,g8 as Zr,g9 as Kr,ga as Xr,gb as Yr,gc as Jr,gd as Fr,ge as Wr,gf as Qr,gg as _r,gh as $r,gi as al,gj as sl,gk as el,gl as tl,gm as nl,gn as il,go as ol,gp as rl,gq as ll,gr as cl,gs as hl,gt as pl,gu as dl,gv as ml,gw as Tl,gx as ul,gy as bl,gz as kl,gA as fl,gB as gl,gC as yl,gD as jl,gE as vl,gF as Sl,gG as xl,gH as wl,gI as Cl,gJ as Nl,gK as zl,gL as Ml,gM as El,gN as ql,gO as Bl,gP as Dl,gQ as Ll,gR as Pl,gS as Al,gT as Ul,gU as Vl,gV as Il,gW as Ol,gX as Rl,gY as Gl,gZ as Hl,g_ as Zl,g$ as Kl,h0 as Xl,h1 as Yl,h2 as Jl,h3 as Fl,h4 as Wl,h5 as Ql,h6 as _l,h7 as $l,h8 as ac,h9 as sc,ha as ec,hb as tc,hc as nc,hd as ic,he as oc,hf as rc,hg as lc,hh as cc,hi as hc,hj as pc,hk as dc,hl as mc,hm as Tc,hn as uc,ho as bc,hp as kc,hq as fc,hr as gc,hs as yc,ht as jc,hu as vc,hv as Sc,hw as xc,hx as wc,hy as Cc,hz as Nc,hA as zc,hB as Mc,hC as Ec,hD as qc,hE as Bc,hF as Dc,hG as Lc,hH as Pc,hI as Ac,hJ as Uc,hK as Vc,hL as Ic,hM as Oc,hN as Rc,hO as Gc,hP as Hc,hQ as Zc,hR as Kc,hS as Xc,hT as Yc,hU as Jc,hV as Fc,hW as Wc,hX as Qc,hY as _c,hZ as $c,h_ as ah,h$ as sh,i0 as eh,i1 as th,i2 as nh,i3 as ih,i4 as oh,i5 as rh,i6 as lh,i7 as ch,i8 as hh,i9 as ph,ia as dh,ib as mh,ib as Th,ic as uh,id as bh,ie as kh,ig as fh,ih as gh,ii as yh,ij as jh,ik as vh,il as Sh,im as xh,io as wh,ip as Ch,iq as Nh,ir as zh,is as Mh,it as Eh,iu as qh,iv as Bh,iw as Dh,ix as Lh,iy as Ph,iz as Ah,iA as Uh,iB as Vh,iC as Ih,iD as Oh,iE as Rh,iF as Gh,iG as Hh,iH as Zh,iI as Kh,iJ as Xh,iK as Yh,iL as Jh,iM as Fh,iN as Wh,iO as Qh,iM as _h,iP as $h,iP as ap,iQ as sp,iR as ep,iS as tp,iT as np,iU as ip,iV as op,iW as rp,iX as lp,iY as cp,iZ as hp,i_ as pp,i$ as dp,j0 as mp,j1 as Tp,j2 as up,j3 as bp,j4 as kp,j5 as fp,j6 as gp,j7 as yp,j8 as jp,j9 as vp,ja as Sp,jb as xp,jc as wp,jd as Cp,je as Np,jf as zp,jg as Mp,jh as Ep,ji as qp,jj as Bp,jk as Dp,jl as Lp,jm as Pp,jn as Ap,jo as Up,jp as Vp,jq as Ip,jr as Op,js as Rp,jt as Gp,ju as Hp,jv as Zp,jw as Kp,jx as Xp,jy as Yp,jz as Jp,jA as Fp,jB as Wp,jC as Qp,jD as _p,jC as $p,jE as ad,jF as sd,jG as ed,jH as td,jI as nd,jJ as id,jK as od,jL as rd,jM as ld,jN as cd,jO as hd,jP as pd,jQ as dd,jR as md,jS as Td,jT as ud,jU as bd,jV as kd,jW as fd,jX as gd,jY as yd,jZ as jd,j_ as vd,j$ as Sd,k0 as xd,k1 as wd,k2 as Cd,k3 as Nd,k4 as zd,k5 as Md,k6 as Ed,k7 as qd,k8 as Bd,k9 as Dd,ka as Ld,kb as Pd,kc as Ad,kd as Ud,ke as Vd,kf as Id,kg as Od,kb as Rd,kc as Gd,kh as Hd,ki as Zd,kj as Kd,kd as Xd,ke as Yd,kk as Jd,kl as Fd,km as Wd}from"./zoraTestnet-7xxdYXjY.js";import"./sentry-1ai9esXb.js";import"./react-BYHuwl8r.js";import"./verifyHash-B6Vh-Wda.js";import"./sendRawTransaction-k2Sfh7AJ.js";import"./index-Bh6adykR.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-BKEzvwKN.js";import"./intl-CBcMB1D2.js";import"./secp256k1-C3Qb75Qb.js";import"./serializeTransaction-CwlY06pE.js";import"./writeContract-C0-n2OaV.js";function a(s){return{formatters:void 0,fees:void 0,serializers:void 0,...s}}const m=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"}),T=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"}),u=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"}),b=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"]}}}),k=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}),f=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}),g=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"}),y=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"}),j=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"}),v=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"}),S=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{C as AVAILABLE_NAMESPACES,z as abey,M as abstract,E as abstractTestnet,q as acala,B as acria,D as adf,L as adi,P as agungTestnet,A as aioz,U as alephZero,V as alephZeroTestnet,I as alienx,O as alienxHalTestnet,R as alpenTestnet,G as ancient8,H as ancient8Sepolia,Z as anvil,K as apeChain,X as apexTestnet,Y as apollo,J as arbitrum,F as arbitrumGoerli,W as arbitrumNova,Q as arbitrumSepolia,_ as arc,$ as arcTestnet,aa as arenaz,sa as areonNetwork,ea as areonNetworkTestnet,ta as areum,na as artelaTestnet,ia as arthera,oa as artheraTestnet,ra as assetChain,la as assetChainTestnet,ca as astar,ha as astarZkEVM,pa as astarZkyoto,da as atletaOlympia,ma as aurora,Ta as auroraTestnet,ua as auroria,ba as autheoTestnet,ka as avalanche,fa as avalancheFuji,ga as b3,ya as b3Sepolia,ja as bahamut,va as base,Sa as baseGoerli,xa as basePreconf,wa as baseSepolia,Ca as baseSepoliaPreconf,Na as basecampTestnet,za as battlechain,Ma as battlechainTestnet,Ea as beam,qa as beamTestnet,Ba as bearNetworkChainMainnet,Da as bearNetworkChainTestnet,La as berachain,Pa as berachainBepolia,Aa as berachainTestnet,Ua as berachainTestnetbArtio,Va as bevmMainnet,Ia as bifrost,Oa as birdlayer,Ra as bitTorrent,Ga as bitTorrentTestnet,b as bitcoin,f as bitcoinSignet,k as bitcoinTestnet,Ha as bitgert,Za as bitkub,Ka as bitkubTestnet,Xa as bitlayer,Ya as bitlayerTestnet,Ja as bitrock,Fa as blast,Wa as blastSepolia,Qa as bob,_a as bobSepolia,$a as boba,as as bobaSepolia,ss as boolBetaMainnet,es as botanix,ts as botanixTestnet,ns as bounceBit,is as bounceBitTestnet,os as bronos,rs as bronosTestnet,ls as bsc,cs as bscGreenfield,hs as bscTestnet,ps as bsquared,ds as bsquaredTestnet,ms as btr,Ts as btrTestnet,us as bxn,bs as bxnTestnet,ks as cannon,fs as canto,gs as celo,ys as celoAlfajores,js as celoSepolia,vs as chang,Ss as chiliz,xs as chips,ws as citrate,Cs as citrea,Ns as citreaTestnet,zs as classic,Ms as codex,Es as codexTestnet,qs as coinbit,Bs as coinex,Ds as confluxESpace,Ls as confluxESpaceTestnet,Ps as coreDao,As as coreTestnet1,Us as coreTestnet2,Vs as corn,Is as cornTestnet,Os as cpchain,Rs as crab,Gs as creatorTestnet,Hs as creditCoin3Devnet,Zs as creditCoin3Mainnet,Ks as creditCoin3Testnet,Xs as cronos,Ys as cronosTestnet,Js as cronoszkEVM,Fs as cronoszkEVMTestnet,Ws as crossbell,Qs as crossfi,_s as curtis,$s as cyber,ae as cyberTestnet,se as dailyNetwork,ee as dailyNetworkTestnet,te as darwinia,ne as datahavenTestnet,ie as dbkchain,oe as dchain,re as dchainTestnet,le as defichainEvm,ce as defichainEvmTestnet,a as defineChain,he as degen,pe as dfk,de as diode,me as disChain,Te as dodochainTestnet,ue as dogechain,be as domaTestnet,ke as donatuz,fe as dosChain,ge as dosChainTestnet,ye as dreyerxMainnet,je as dreyerxTestnet,ve as dustboyIoT,Se as dymension,xe as eden,we as edexa,Ce as edexaTestnet,Ne as edgeless,ze as edgelessTestnet,Me as edgeware,Ee as edgewareTestnet,qe as eduChain,Be as eduChainTestnet,De as elastos,Le as elastosTestnet,Pe as electroneum,Ae as electroneumTestnet,Ue as elysiumTestnet,Ve as energy,Ie as eni,Oe as eniTestnet,Re as enuls,Ge as eon,He as eos,Ze as eosTestnet,Ke as eteria,Xe as etherlink,Ye as etherlinkShadownetTestnet,Je as etherlinkTestnet,Fe as ethernity,We as etp,Qe as evmos,_e as evmosTestnet,$e as excelonMainnet,at as expanse,st as exsat,et as exsatTestnet,tt as fantom,nt as fantomSonicTestnet,it as fantomTestnet,ot as fibo,rt as filecoin,lt as filecoinCalibration,ct as filecoinHyperspace,ht as fireChain,pt as flame,dt as flare,mt as flareTestnet,Tt as flowMainnet,ut as flowPreviewnet,bt as flowTestnet,kt as fluence,ft as fluenceStage,gt as fluenceTestnet,yt as fluent,jt as fluentDevnet,vt as fluentTestnet,St as form,xt as formTestnet,wt as forma,Ct as formicarium,Nt as forta,zt as foundry,Mt as fraxtal,Et as fraxtalTestnet,qt as funkiMainnet,Bt as funkiSepolia,Dt as fuse,Lt as fuseSparknet,Pt as fusion,At as fusionTestnet,Ut as garnet,Vt as gatechain,It as geist,Ot as genesys,Rt as gensyn,Gt as giwaSepolia,Ht as giwaSepoliaPreconf,Zt as glideL1Protocol,Kt as glideL2Protocol,Xt as gnosis,Yt as gnosisChiado,Jt as goChain,Ft as goat,Wt as gobi,Qt as godwoken,_t as goerli,$t as graphite,an as graphiteTestnet,sn as grav,en as gravity,tn as gunz,nn as guruNetwork,on as guruTestnet,rn as ham,ln as happychainTestnet,cn as haqqMainnet,hn as haqqTestedge2,pn as hardhat,dn as harmonyOne,mn as hashkey,Tn as hashkeyTestnet,un as haustTestnet,bn as hedera,kn as hederaPreviewnet,fn as hederaTestnet,gn as hela,yn as heliosTestnet,jn as hemi,vn as hemiSepolia,Sn as henesys,xn as holesky,wn as hoodi,Cn as horizenTestnet,Nn as hpb,zn as hpp,Mn as hppSepolia,En as huddle01Mainnet,qn as huddle01Testnet,Bn as humanity,Dn as humanityTestnet,Ln as humanode,Pn as humanodeTestnet5,An as hychain,Un as hychainTestnet,Vn as hyperEvm,In as hyperliquid,On as hyperliquidEvmTestnet,Rn as iSunCoin,Gn as icbNetwork,Hn as idchain,Zn as igra,Kn as immutableZkEvm,Xn as immutableZkEvmTestnet,Yn as inEVM,Jn as initVerse,Fn as initVerseGenesis,Wn as injective,Qn as injectiveTestnet,_n as ink,$n as inkSepolia,ai as iota,si as iotaTestnet,ei as iotex,ti as iotexTestnet,ni as jasmyChain,ii as jasmyChainTestnet,oi as jbc,ri as jbcTestnet,li as jocMainnet,ci as jocTestnet,hi as jovay,pi as jovaySepolia,di as juneo,mi as juneoBCH1Chain,Ti as juneoDAI1Chain,ui as juneoDOGE1Chain,bi as juneoEUR1Chain,ki as juneoGLD1Chain,fi as juneoLINK1Chain,gi as juneoLTC1Chain,yi as juneoSGD1Chain,ji as juneoSocotraTestnet,vi as juneoUSD1Chain,Si as juneoUSDT1Chain,xi as juneomBTC1Chain,wi as kaia,Ci as kairos,Ni as kakarotSepolia,zi as kakarotStarknetSepolia,Mi as kardiaChain,Ei as karura,qi as katana,Bi as kava,Di as kavaTestnet,Li as kcc,Pi as kii,Ai as kiiTestnetOro,Ui as kinto,Vi as klaytn,Ii as klaytnBaobab,Oi as koi,Ri as kroma,Gi as kromaSepolia,Hi as krown,Zi as l3x,Ki as l3xTestnet,Xi as ladyChain,Yi as lavita,Ji as lens,Fi as lensTestnet,Wi as lestnet,Qi as lightlinkPegasus,_i as lightlinkPhoenix,$i as linea,ao as lineaGoerli,so as lineaSepolia,eo as lineaTestnet,to as lisk,no as liskSepolia,io as loadAlphanet,oo as localhost,ro as loop,lo as lukso,co as luksoTestnet,ho as lumiaMainnet,po as lumiaTestnet,mo as lumoz,To as lumozTestnet,uo as luxeports,bo as lycan,ko as lyra,fo as mainnet,go as mandala,yo as manta,jo as mantaSepoliaTestnet,vo as mantaTestnet,So as mantle,xo as mantleSepoliaTestnet,wo as mantleTestnet,Co as mantraDuKongEVMTestnet,No as mantraEVM,zo as mapProtocol,Mo as marooTestnet,Eo as matchain,qo as matchainTestnet,Bo as mchVerse,Do as megaeth,Lo as megaethTestnet,Po as mekong,Ao as meld,Uo as memecore,Vo as merlin,Io as merlinErigonTestnet,Oo as metachain,Ro as metachainIstanbul,Go as metadium,Ho as metalL2,Zo as meter,Ko as meterTestnet,Xo as metis,Yo as metisGoerli,Jo as metisSepolia,Fo as mev,Wo as mevTestnet,Qo as mezo,_o as mezoTestnet,$o as mint,ar as mintSepoliaTestnet,sr as mitosisTestnet,er as mizuhikiTestnetAwaji,tr as mode,nr as modeTestnet,ir as monad,or as monadTestnet,rr as moonbaseAlpha,lr as moonbeam,cr as moonbeamDev,hr as moonriver,pr as morph,dr as morphHolesky,mr as morphSepolia,Tr as nahmii,ur as nautilus,br as near,kr as nearTestnet,fr as neonDevnet,gr as neonMainnet,yr as neoxMainnet,jr as neoxT4,vr as newton,Sr as nexi,xr as nexilix,wr as nibiru,Cr as nitrographTestnet,Nr as nomina,zr as oasisTestnet,Mr as oasys,Er as odysseyTestnet,qr as okc,Br as omax,Dr as omni,Lr as omniOmega,Pr as oneWorld,Ar as oortMainnetDev,Ur as opBNB,Vr as opBNBTestnet,Ir as openledger,Or as optimism,Rr as optimismGoerli,Gr as optimismSepolia,Hr as optopia,Zr as optopiaTestnet,Kr as orderly,Xr as orderlySepolia,Yr as otimDevnet,Jr as palm,Fr as palmTestnet,Wr as paseoPassetHub,Qr as peaq,_r as pgn,$r as pgnTestnet,al as phoenix,sl as planq,el as plasma,tl as plasmaDevnet,nl as plasmaTestnet,il as playfiAlbireo,ol as plinga,rl as plume,ll as plumeDevnet,cl as plumeMainnet,hl as plumeSepolia,pl as plumeTestnet,dl as polterTestnet,ml as polygon,Tl as polygonAmoy,ul as polygonMumbai,bl as polygonZkEvm,kl as polygonZkEvmCardona,fl as polygonZkEvmTestnet,gl as polynomial,yl as polynomialSepolia,jl as potos,vl as potosTestnet,Sl as premiumBlockTestnet,xl as pulsechain,wl as pulsechainV4,Cl as pumpfiTestnet,Nl as pyrope,zl as qMainnet,Ml as qTestnet,El as ql1,ql as quai,Bl as quaiTestnet,Dl as radius,Ll as radiusTestnet,Pl as reactiveTestnet,Al as real,Ul as redbellyMainnet,Vl as redbellyTestnet,Il as reddio,Ol as reddioSepolia,Rl as redstone,Gl as rei,Hl as reyaNetwork,Zl as rise,Kl as riseTestnet,Xl as rivalz,Yl as rollux,Jl as rolluxTestnet,Fl as ronin,Wl as root,Ql as rootPorcini,_l as rootstock,$l as rootstockTestnet,ac as rss3,sc as rss3Sepolia,ec as saakuru,tc as saga,nc as saigon,ic as sanko,oc as sapphire,rc as sapphireTestnet,lc as satoshiVM,cc as satoshiVMTestnet,hc as scroll,pc as scrollSepolia,dc as sei,mc as seiTestnet,Tc as seismicDevnet,uc as sentrix,bc as sentrixTestnet,kc as sepolia,fc as shape,gc as shapeSepolia,yc as shardeum,jc as shardeumSphinx,vc as shibarium,Sc as shibariumTestnet,xc as shiden,wc as shimmer,Cc as shimmerTestnet,Nc as sidraChain,zc as silentData,Mc as silicon,Ec as siliconSepolia,qc as sixProtocol,Bc as skaleBase,Dc as skaleBaseSepoliaTestnet,Lc as skaleBlockBrawlers,Pc as skaleCalypso,Ac as skaleCalypsoTestnet,Uc as skaleCryptoBlades,Vc as skaleCryptoColosseum,Ic as skaleEuropa,Oc as skaleEuropaTestnet,Rc as skaleExorde,Gc as skaleHumanProtocol,Hc as skaleNebula,Zc as skaleNebulaTestnet,Kc as skaleRazor,Xc as skaleTitan,Yc as skaleTitanTestnet,Jc as sketchpad,Fc as snax,Wc as snaxTestnet,m as solana,T as solanaDevnet,u as solanaTestnet,Qc as somnia,_c as somniaTestnet,$c as soneium,ah as soneiumMinato,sh as songbird,eh as songbirdTestnet,th as sonic,nh as sonicBlazeTestnet,ih as sonicTestnet,oh as sophon,rh as sophonTestnet,lh as sova,ch as sovaSepolia,hh as spicy,ph as stable,dh as stableTestnet,mh as statusNetworkSepolia,Th as statusSepolia,uh as step,bh as story,kh as storyAeneid,fh as storyOdyssey,gh as storyTestnet,yh as stratis,jh as subtensorEvm,vh as superlumio,Sh as superposition,xh as superseed,wh as superseedSepolia,Ch as surgeTestnet,Nh as swan,zh as swanProximaTestnet,Mh as swanSaturnTestnet,Eh as swellchain,qh as swellchainTestnet,Bh as swissdlt,Dh as syscoin,Lh as syscoinTestnet,Ph as tac,Ah as tacSPB,Uh as taiko,Vh as taikoHekla,Ih as taikoHoodi,Oh as taikoJolnir,Rh as taikoKatla,Gh as taikoTestnetSepolia,Hh as taraxa,Zh as taraxaTestnet,Kh as teaSepolia,Xh as telcoinTestnet,Yh as telos,Jh as telosTestnet,Fh as tempo,Wh as tempoDevnet,Qh as tempoLocalnet,_h as tempoMainnet,$h as tempoModerato,ap as tempoTestnet,sp as tenet,ep as ternoa,tp as thaiChain,np as that,ip as theta,op as thetaTestnet,rp as thunderCore,lp as thunderTestnet,cp as tiktrixTestnet,hp as tomb,g as ton,y as tonTestnet,pp as treasure,dp as treasureTopaz,mp as tron,j as tronMainnet,Tp as tronNile,S as tronNileTestnet,up as tronShasta,v as tronShastaTestnet,bp as ubiq,kp as ultra,fp as ultraTestnet,gp as ultron,yp as ultronTestnet,jp as unichain,vp as unichainSepolia,Sp as unique,xp as uniqueOpal,wp as uniqueQuartz,Cp as unreal,Np as valygoNft,zp as valygoSmartchain,Mp as vana,Ep as vanaMoksha,qp as vanar,Bp as vechain,Dp as velas,Lp as viction,Pp as victionTestnet,Ap as vision,Up as visionTestnet,Vp as wanchain,Ip as wanchainTestnet,Op as weaveVMAlphanet,Rp as wemix,Gp as wemixTestnet,Hp as westendAssetHub,Zp as whitechain,Kp as whitechainSepolia,Xp as whitechainTestnet,Yp as wmcTestnet,Jp as worldLand,Fp as worldchain,Wp as worldchainSepolia,Qp as x1Testnet,_p as xLayer,$p as xLayerTestnet,ad as xai,sd as xaiTestnet,ed as xdc,td as xdcTestnet,nd as xgr,id as xoneMainnet,od as xoneTestnet,rd as xphereMainnet,ld as xphereTestnet,cd as xpla,hd as xrOne,pd as xrSepolia,dd as xrplevm,md as xrplevmDevnet,Td as xrplevmTestnet,ud as yooldoVerse,bd as yooldoVerseTestnet,kd as zenchainTestnet,fd as zeniq,gd as zeroG,yd as zeroGGalileoTestnet,jd as zeroGMainnet,vd as zeroGTestnet,Sd as zeroNetwork,xd as zetachain,wd as zetachainAthensTestnet,Cd as zhejiang,Nd as zilliqa,zd as zilliqaTestnet,Md as zircuit,Ed as zircuitGarfieldTestnet,qd as zkFair,Bd as zkFairTestnet,Dd as zkLinkNova,Ld as zkLinkNovaSepoliaTestnet,Pd as zkSync,Ad as zkSyncInMemoryNode,Ud as zkSyncLocalNode,Vd as zkSyncSepoliaTestnet,Id as zkXPLA,Od as zkXPLATestnet,Rd as zksync,Gd as zksyncInMemoryNode,Hd as zksyncLocalCustomHyperchain,Zd as zksyncLocalHyperchain,Kd as zksyncLocalHyperchainL1,Xd as zksyncLocalNode,Yd as zksyncSepoliaTestnet,Jd as zora,Fd as zoraSepolia,Wd as zoraTestnet};
|
|
1
|
+
import{aw as C}from"./NetworkUtil-CmFj23VB.js";import{a as z,b as M,c as E,d as q,e as B,f as D,g as L,h as P,i as A,j as U,k as V,l as I,m as O,n as R,o as G,p as H,q as Z,r as K,s as X,t as Y,u as J,v as F,w as W,x as Q,y as _,z as $,A as aa,B as sa,C as ea,D as ta,E as na,F as ia,G as oa,H as ra,I as la,J as ca,K as ha,L as pa,M as da,N as ma,O as Ta,P as ua,Q as ba,R as ka,S as fa,T as ga,U as ya,V as ja,W as va,X as Sa,Y as xa,Z as wa,_ as Ca,$ as Na,a0 as za,a1 as Ma,a2 as Ea,a3 as qa,a4 as Ba,a5 as Da,a6 as La,a7 as Pa,a8 as Aa,a9 as Ua,aa as Va,ab as Ia,ac as Oa,ad as Ra,ae as Ga,af as Ha,ag as Za,ah as Ka,ai as Xa,aj as Ya,ak as Ja,al as Fa,am as Wa,an as Qa,ao as _a,ap as $a,aq as as,ar as ss,as as es,at as ts,au as ns,av as is,aw as os,ax as rs,ay as ls,az as cs,aA as hs,aB as ps,aC as ds,aD as ms,aE as Ts,aF as us,aG as bs,aH as ks,aI as fs,aJ as gs,aK as ys,aL as js,aM as vs,aN as Ss,aO as xs,aP as ws,aQ as Cs,aR as Ns,aS as zs,aT as Ms,aU as Es,aV as qs,aW as Bs,aX as Ds,aY as Ls,aZ as Ps,a_ as As,a$ as Us,b0 as Vs,b1 as Is,b2 as Os,b3 as Rs,b4 as Gs,b5 as Hs,b6 as Zs,b7 as Ks,b8 as Xs,b9 as Ys,ba as Js,bb as Fs,bc as Ws,bd as Qs,be as _s,bf as $s,bg as ae,bh as se,bi as ee,bj as te,bk as ne,bl as ie,bm as oe,bn as re,bo as le,bp as ce,bq as he,br as pe,bs as de,bt as me,bu as Te,bv as ue,bw as be,bx as ke,by as fe,bz as ge,bA as ye,bB as je,bC as ve,bD as Se,bE as xe,bF as we,bG as Ce,bH as Ne,bI as ze,bJ as Me,bK as Ee,bL as qe,bM as Be,bN as De,bO as Le,bP as Pe,bQ as Ae,bR as Ue,bS as Ve,bT as Ie,bU as Oe,bV as Re,bW as Ge,bX as He,bY as Ze,bZ as Ke,b_ as Xe,b$ as Ye,c0 as Je,c1 as Fe,c2 as We,c3 as Qe,c4 as _e,c5 as $e,c6 as at,c7 as st,c8 as et,c9 as tt,ca as nt,cb as it,cc as ot,cd as rt,ce as lt,cf as ct,cg as ht,ch as pt,ci as dt,cj as mt,ck as Tt,cl as ut,cm as bt,cn as kt,co as ft,cp as gt,cq as yt,cr as jt,cs as vt,ct as St,cu as xt,cv as wt,cw as Ct,cx as Nt,cy as zt,cz as Mt,cA as Et,cB as qt,cC as Bt,cD as Dt,cE as Lt,cF as Pt,cG as At,cH as Ut,cI as Vt,cJ as It,cK as Ot,cL as Rt,cM as Gt,cN as Ht,cO as Zt,cP as Kt,cQ as Xt,cR as Yt,cS as Jt,cT as Ft,cU as Wt,cV as Qt,cW as _t,cX as $t,cY as an,cZ as sn,c_ as en,c$ as tn,d0 as nn,d1 as on,d2 as rn,d3 as ln,d4 as cn,d5 as hn,d6 as pn,d7 as dn,d8 as mn,d9 as Tn,da as un,db as bn,dc as kn,dd as fn,de as gn,df as yn,dg as jn,dh as vn,di as Sn,dj as xn,dk as wn,dl as Cn,dm as Nn,dn as zn,dp as Mn,dq as En,dr as qn,ds as Bn,dt as Dn,du as Ln,dv as Pn,dw as An,dx as Un,dy as Vn,dy as In,dz as On,dA as Rn,dB as Gn,dC as Hn,dD as Zn,dE as Kn,dF as Xn,dG as Yn,dH as Jn,dI as Fn,dJ as Wn,dK as Qn,dL as _n,dM as $n,dN as ai,dO as si,dP as ei,dQ as ti,dR as ni,dS as ii,dT as oi,dU as ri,dV as li,dW as ci,dX as hi,dY as pi,dZ as di,d_ as mi,d$ as Ti,e0 as ui,e1 as bi,e2 as ki,e3 as fi,e4 as gi,e5 as yi,e6 as ji,e7 as vi,e8 as Si,e9 as xi,ea as wi,eb as Ci,ec as Ni,ed as zi,ee as Mi,ef as Ei,eg as qi,eh as Bi,ei as Di,ej as Li,ek as Pi,el as Ai,em as Ui,en as Vi,eo as Ii,ep as Oi,eq as Ri,er as Gi,es as Hi,et as Zi,eu as Ki,ev as Xi,ew as Yi,ex as Ji,ey as Fi,ez as Wi,eA as Qi,eB as _i,eC as $i,eD as ao,eE as so,eF as eo,eG as to,eH as no,eI as io,eJ as oo,eK as ro,eL as lo,eM as co,eN as ho,eO as po,eP as mo,eQ as To,eR as uo,eS as bo,eT as ko,eU as fo,eV as go,eW as yo,eX as jo,eY as vo,eZ as So,e_ as xo,e$ as wo,f0 as Co,f1 as No,f2 as zo,f3 as Mo,f4 as Eo,f5 as qo,f6 as Bo,f7 as Do,f8 as Lo,f9 as Po,fa as Ao,fb as Uo,fc as Vo,fd as Io,fe as Oo,ff as Ro,fg as Go,fh as Ho,fi as Zo,fj as Ko,fk as Xo,fl as Yo,fm as Jo,fn as Fo,fo as Wo,fp as Qo,fq as _o,fr as $o,fs as ar,ft as sr,fu as er,fv as tr,fw as nr,fx as ir,fy as or,fz as rr,fA as lr,fB as cr,fC as hr,fD as pr,fE as dr,fF as mr,fG as Tr,fH as ur,fI as br,fJ as kr,fK as fr,fL as gr,fM as yr,fN as jr,fO as vr,fP as Sr,fQ as xr,fR as wr,fS as Cr,fT as Nr,fU as zr,fV as Mr,fW as Er,fX as qr,fY as Br,fZ as Dr,f_ as Lr,f$ as Pr,g0 as Ar,g1 as Ur,g2 as Vr,g3 as Ir,g4 as Or,g5 as Rr,g6 as Gr,g7 as Hr,g8 as Zr,g9 as Kr,ga as Xr,gb as Yr,gc as Jr,gd as Fr,ge as Wr,gf as Qr,gg as _r,gh as $r,gi as al,gj as sl,gk as el,gl as tl,gm as nl,gn as il,go as ol,gp as rl,gq as ll,gr as cl,gs as hl,gt as pl,gu as dl,gv as ml,gw as Tl,gx as ul,gy as bl,gz as kl,gA as fl,gB as gl,gC as yl,gD as jl,gE as vl,gF as Sl,gG as xl,gH as wl,gI as Cl,gJ as Nl,gK as zl,gL as Ml,gM as El,gN as ql,gO as Bl,gP as Dl,gQ as Ll,gR as Pl,gS as Al,gT as Ul,gU as Vl,gV as Il,gW as Ol,gX as Rl,gY as Gl,gZ as Hl,g_ as Zl,g$ as Kl,h0 as Xl,h1 as Yl,h2 as Jl,h3 as Fl,h4 as Wl,h5 as Ql,h6 as _l,h7 as $l,h8 as ac,h9 as sc,ha as ec,hb as tc,hc as nc,hd as ic,he as oc,hf as rc,hg as lc,hh as cc,hi as hc,hj as pc,hk as dc,hl as mc,hm as Tc,hn as uc,ho as bc,hp as kc,hq as fc,hr as gc,hs as yc,ht as jc,hu as vc,hv as Sc,hw as xc,hx as wc,hy as Cc,hz as Nc,hA as zc,hB as Mc,hC as Ec,hD as qc,hE as Bc,hF as Dc,hG as Lc,hH as Pc,hI as Ac,hJ as Uc,hK as Vc,hL as Ic,hM as Oc,hN as Rc,hO as Gc,hP as Hc,hQ as Zc,hR as Kc,hS as Xc,hT as Yc,hU as Jc,hV as Fc,hW as Wc,hX as Qc,hY as _c,hZ as $c,h_ as ah,h$ as sh,i0 as eh,i1 as th,i2 as nh,i3 as ih,i4 as oh,i5 as rh,i6 as lh,i7 as ch,i8 as hh,i9 as ph,ia as dh,ib as mh,ib as Th,ic as uh,id as bh,ie as kh,ig as fh,ih as gh,ii as yh,ij as jh,ik as vh,il as Sh,im as xh,io as wh,ip as Ch,iq as Nh,ir as zh,is as Mh,it as Eh,iu as qh,iv as Bh,iw as Dh,ix as Lh,iy as Ph,iz as Ah,iA as Uh,iB as Vh,iC as Ih,iD as Oh,iE as Rh,iF as Gh,iG as Hh,iH as Zh,iI as Kh,iJ as Xh,iK as Yh,iL as Jh,iM as Fh,iN as Wh,iO as Qh,iM as _h,iP as $h,iP as ap,iQ as sp,iR as ep,iS as tp,iT as np,iU as ip,iV as op,iW as rp,iX as lp,iY as cp,iZ as hp,i_ as pp,i$ as dp,j0 as mp,j1 as Tp,j2 as up,j3 as bp,j4 as kp,j5 as fp,j6 as gp,j7 as yp,j8 as jp,j9 as vp,ja as Sp,jb as xp,jc as wp,jd as Cp,je as Np,jf as zp,jg as Mp,jh as Ep,ji as qp,jj as Bp,jk as Dp,jl as Lp,jm as Pp,jn as Ap,jo as Up,jp as Vp,jq as Ip,jr as Op,js as Rp,jt as Gp,ju as Hp,jv as Zp,jw as Kp,jx as Xp,jy as Yp,jz as Jp,jA as Fp,jB as Wp,jC as Qp,jD as _p,jC as $p,jE as ad,jF as sd,jG as ed,jH as td,jI as nd,jJ as id,jK as od,jL as rd,jM as ld,jN as cd,jO as hd,jP as pd,jQ as dd,jR as md,jS as Td,jT as ud,jU as bd,jV as kd,jW as fd,jX as gd,jY as yd,jZ as jd,j_ as vd,j$ as Sd,k0 as xd,k1 as wd,k2 as Cd,k3 as Nd,k4 as zd,k5 as Md,k6 as Ed,k7 as qd,k8 as Bd,k9 as Dd,ka as Ld,kb as Pd,kc as Ad,kd as Ud,ke as Vd,kf as Id,kg as Od,kb as Rd,kc as Gd,kh as Hd,ki as Zd,kj as Kd,kd as Xd,ke as Yd,kk as Jd,kl as Fd,km as Wd}from"./zoraTestnet-Chf9u3j4.js";import"./sentry-CUdtSPei.js";import"./react-BYHuwl8r.js";import"./verifyHash-Czkmjbtb.js";import"./sendRawTransaction-BZMjypDx.js";import"./index-BVWvbmB_.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-CHvw3dSr.js";import"./intl-CBcMB1D2.js";import"./secp256k1-Eu_UrDZQ.js";import"./serializeTransaction-DdLuDvZh.js";import"./writeContract-C2tbGQyL.js";function a(s){return{formatters:void 0,fees:void 0,serializers:void 0,...s}}const m=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"}),T=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"}),u=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"}),b=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"]}}}),k=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}),f=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}),g=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"}),y=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"}),j=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"}),v=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"}),S=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{C as AVAILABLE_NAMESPACES,z as abey,M as abstract,E as abstractTestnet,q as acala,B as acria,D as adf,L as adi,P as agungTestnet,A as aioz,U as alephZero,V as alephZeroTestnet,I as alienx,O as alienxHalTestnet,R as alpenTestnet,G as ancient8,H as ancient8Sepolia,Z as anvil,K as apeChain,X as apexTestnet,Y as apollo,J as arbitrum,F as arbitrumGoerli,W as arbitrumNova,Q as arbitrumSepolia,_ as arc,$ as arcTestnet,aa as arenaz,sa as areonNetwork,ea as areonNetworkTestnet,ta as areum,na as artelaTestnet,ia as arthera,oa as artheraTestnet,ra as assetChain,la as assetChainTestnet,ca as astar,ha as astarZkEVM,pa as astarZkyoto,da as atletaOlympia,ma as aurora,Ta as auroraTestnet,ua as auroria,ba as autheoTestnet,ka as avalanche,fa as avalancheFuji,ga as b3,ya as b3Sepolia,ja as bahamut,va as base,Sa as baseGoerli,xa as basePreconf,wa as baseSepolia,Ca as baseSepoliaPreconf,Na as basecampTestnet,za as battlechain,Ma as battlechainTestnet,Ea as beam,qa as beamTestnet,Ba as bearNetworkChainMainnet,Da as bearNetworkChainTestnet,La as berachain,Pa as berachainBepolia,Aa as berachainTestnet,Ua as berachainTestnetbArtio,Va as bevmMainnet,Ia as bifrost,Oa as birdlayer,Ra as bitTorrent,Ga as bitTorrentTestnet,b as bitcoin,f as bitcoinSignet,k as bitcoinTestnet,Ha as bitgert,Za as bitkub,Ka as bitkubTestnet,Xa as bitlayer,Ya as bitlayerTestnet,Ja as bitrock,Fa as blast,Wa as blastSepolia,Qa as bob,_a as bobSepolia,$a as boba,as as bobaSepolia,ss as boolBetaMainnet,es as botanix,ts as botanixTestnet,ns as bounceBit,is as bounceBitTestnet,os as bronos,rs as bronosTestnet,ls as bsc,cs as bscGreenfield,hs as bscTestnet,ps as bsquared,ds as bsquaredTestnet,ms as btr,Ts as btrTestnet,us as bxn,bs as bxnTestnet,ks as cannon,fs as canto,gs as celo,ys as celoAlfajores,js as celoSepolia,vs as chang,Ss as chiliz,xs as chips,ws as citrate,Cs as citrea,Ns as citreaTestnet,zs as classic,Ms as codex,Es as codexTestnet,qs as coinbit,Bs as coinex,Ds as confluxESpace,Ls as confluxESpaceTestnet,Ps as coreDao,As as coreTestnet1,Us as coreTestnet2,Vs as corn,Is as cornTestnet,Os as cpchain,Rs as crab,Gs as creatorTestnet,Hs as creditCoin3Devnet,Zs as creditCoin3Mainnet,Ks as creditCoin3Testnet,Xs as cronos,Ys as cronosTestnet,Js as cronoszkEVM,Fs as cronoszkEVMTestnet,Ws as crossbell,Qs as crossfi,_s as curtis,$s as cyber,ae as cyberTestnet,se as dailyNetwork,ee as dailyNetworkTestnet,te as darwinia,ne as datahavenTestnet,ie as dbkchain,oe as dchain,re as dchainTestnet,le as defichainEvm,ce as defichainEvmTestnet,a as defineChain,he as degen,pe as dfk,de as diode,me as disChain,Te as dodochainTestnet,ue as dogechain,be as domaTestnet,ke as donatuz,fe as dosChain,ge as dosChainTestnet,ye as dreyerxMainnet,je as dreyerxTestnet,ve as dustboyIoT,Se as dymension,xe as eden,we as edexa,Ce as edexaTestnet,Ne as edgeless,ze as edgelessTestnet,Me as edgeware,Ee as edgewareTestnet,qe as eduChain,Be as eduChainTestnet,De as elastos,Le as elastosTestnet,Pe as electroneum,Ae as electroneumTestnet,Ue as elysiumTestnet,Ve as energy,Ie as eni,Oe as eniTestnet,Re as enuls,Ge as eon,He as eos,Ze as eosTestnet,Ke as eteria,Xe as etherlink,Ye as etherlinkShadownetTestnet,Je as etherlinkTestnet,Fe as ethernity,We as etp,Qe as evmos,_e as evmosTestnet,$e as excelonMainnet,at as expanse,st as exsat,et as exsatTestnet,tt as fantom,nt as fantomSonicTestnet,it as fantomTestnet,ot as fibo,rt as filecoin,lt as filecoinCalibration,ct as filecoinHyperspace,ht as fireChain,pt as flame,dt as flare,mt as flareTestnet,Tt as flowMainnet,ut as flowPreviewnet,bt as flowTestnet,kt as fluence,ft as fluenceStage,gt as fluenceTestnet,yt as fluent,jt as fluentDevnet,vt as fluentTestnet,St as form,xt as formTestnet,wt as forma,Ct as formicarium,Nt as forta,zt as foundry,Mt as fraxtal,Et as fraxtalTestnet,qt as funkiMainnet,Bt as funkiSepolia,Dt as fuse,Lt as fuseSparknet,Pt as fusion,At as fusionTestnet,Ut as garnet,Vt as gatechain,It as geist,Ot as genesys,Rt as gensyn,Gt as giwaSepolia,Ht as giwaSepoliaPreconf,Zt as glideL1Protocol,Kt as glideL2Protocol,Xt as gnosis,Yt as gnosisChiado,Jt as goChain,Ft as goat,Wt as gobi,Qt as godwoken,_t as goerli,$t as graphite,an as graphiteTestnet,sn as grav,en as gravity,tn as gunz,nn as guruNetwork,on as guruTestnet,rn as ham,ln as happychainTestnet,cn as haqqMainnet,hn as haqqTestedge2,pn as hardhat,dn as harmonyOne,mn as hashkey,Tn as hashkeyTestnet,un as haustTestnet,bn as hedera,kn as hederaPreviewnet,fn as hederaTestnet,gn as hela,yn as heliosTestnet,jn as hemi,vn as hemiSepolia,Sn as henesys,xn as holesky,wn as hoodi,Cn as horizenTestnet,Nn as hpb,zn as hpp,Mn as hppSepolia,En as huddle01Mainnet,qn as huddle01Testnet,Bn as humanity,Dn as humanityTestnet,Ln as humanode,Pn as humanodeTestnet5,An as hychain,Un as hychainTestnet,Vn as hyperEvm,In as hyperliquid,On as hyperliquidEvmTestnet,Rn as iSunCoin,Gn as icbNetwork,Hn as idchain,Zn as igra,Kn as immutableZkEvm,Xn as immutableZkEvmTestnet,Yn as inEVM,Jn as initVerse,Fn as initVerseGenesis,Wn as injective,Qn as injectiveTestnet,_n as ink,$n as inkSepolia,ai as iota,si as iotaTestnet,ei as iotex,ti as iotexTestnet,ni as jasmyChain,ii as jasmyChainTestnet,oi as jbc,ri as jbcTestnet,li as jocMainnet,ci as jocTestnet,hi as jovay,pi as jovaySepolia,di as juneo,mi as juneoBCH1Chain,Ti as juneoDAI1Chain,ui as juneoDOGE1Chain,bi as juneoEUR1Chain,ki as juneoGLD1Chain,fi as juneoLINK1Chain,gi as juneoLTC1Chain,yi as juneoSGD1Chain,ji as juneoSocotraTestnet,vi as juneoUSD1Chain,Si as juneoUSDT1Chain,xi as juneomBTC1Chain,wi as kaia,Ci as kairos,Ni as kakarotSepolia,zi as kakarotStarknetSepolia,Mi as kardiaChain,Ei as karura,qi as katana,Bi as kava,Di as kavaTestnet,Li as kcc,Pi as kii,Ai as kiiTestnetOro,Ui as kinto,Vi as klaytn,Ii as klaytnBaobab,Oi as koi,Ri as kroma,Gi as kromaSepolia,Hi as krown,Zi as l3x,Ki as l3xTestnet,Xi as ladyChain,Yi as lavita,Ji as lens,Fi as lensTestnet,Wi as lestnet,Qi as lightlinkPegasus,_i as lightlinkPhoenix,$i as linea,ao as lineaGoerli,so as lineaSepolia,eo as lineaTestnet,to as lisk,no as liskSepolia,io as loadAlphanet,oo as localhost,ro as loop,lo as lukso,co as luksoTestnet,ho as lumiaMainnet,po as lumiaTestnet,mo as lumoz,To as lumozTestnet,uo as luxeports,bo as lycan,ko as lyra,fo as mainnet,go as mandala,yo as manta,jo as mantaSepoliaTestnet,vo as mantaTestnet,So as mantle,xo as mantleSepoliaTestnet,wo as mantleTestnet,Co as mantraDuKongEVMTestnet,No as mantraEVM,zo as mapProtocol,Mo as marooTestnet,Eo as matchain,qo as matchainTestnet,Bo as mchVerse,Do as megaeth,Lo as megaethTestnet,Po as mekong,Ao as meld,Uo as memecore,Vo as merlin,Io as merlinErigonTestnet,Oo as metachain,Ro as metachainIstanbul,Go as metadium,Ho as metalL2,Zo as meter,Ko as meterTestnet,Xo as metis,Yo as metisGoerli,Jo as metisSepolia,Fo as mev,Wo as mevTestnet,Qo as mezo,_o as mezoTestnet,$o as mint,ar as mintSepoliaTestnet,sr as mitosisTestnet,er as mizuhikiTestnetAwaji,tr as mode,nr as modeTestnet,ir as monad,or as monadTestnet,rr as moonbaseAlpha,lr as moonbeam,cr as moonbeamDev,hr as moonriver,pr as morph,dr as morphHolesky,mr as morphSepolia,Tr as nahmii,ur as nautilus,br as near,kr as nearTestnet,fr as neonDevnet,gr as neonMainnet,yr as neoxMainnet,jr as neoxT4,vr as newton,Sr as nexi,xr as nexilix,wr as nibiru,Cr as nitrographTestnet,Nr as nomina,zr as oasisTestnet,Mr as oasys,Er as odysseyTestnet,qr as okc,Br as omax,Dr as omni,Lr as omniOmega,Pr as oneWorld,Ar as oortMainnetDev,Ur as opBNB,Vr as opBNBTestnet,Ir as openledger,Or as optimism,Rr as optimismGoerli,Gr as optimismSepolia,Hr as optopia,Zr as optopiaTestnet,Kr as orderly,Xr as orderlySepolia,Yr as otimDevnet,Jr as palm,Fr as palmTestnet,Wr as paseoPassetHub,Qr as peaq,_r as pgn,$r as pgnTestnet,al as phoenix,sl as planq,el as plasma,tl as plasmaDevnet,nl as plasmaTestnet,il as playfiAlbireo,ol as plinga,rl as plume,ll as plumeDevnet,cl as plumeMainnet,hl as plumeSepolia,pl as plumeTestnet,dl as polterTestnet,ml as polygon,Tl as polygonAmoy,ul as polygonMumbai,bl as polygonZkEvm,kl as polygonZkEvmCardona,fl as polygonZkEvmTestnet,gl as polynomial,yl as polynomialSepolia,jl as potos,vl as potosTestnet,Sl as premiumBlockTestnet,xl as pulsechain,wl as pulsechainV4,Cl as pumpfiTestnet,Nl as pyrope,zl as qMainnet,Ml as qTestnet,El as ql1,ql as quai,Bl as quaiTestnet,Dl as radius,Ll as radiusTestnet,Pl as reactiveTestnet,Al as real,Ul as redbellyMainnet,Vl as redbellyTestnet,Il as reddio,Ol as reddioSepolia,Rl as redstone,Gl as rei,Hl as reyaNetwork,Zl as rise,Kl as riseTestnet,Xl as rivalz,Yl as rollux,Jl as rolluxTestnet,Fl as ronin,Wl as root,Ql as rootPorcini,_l as rootstock,$l as rootstockTestnet,ac as rss3,sc as rss3Sepolia,ec as saakuru,tc as saga,nc as saigon,ic as sanko,oc as sapphire,rc as sapphireTestnet,lc as satoshiVM,cc as satoshiVMTestnet,hc as scroll,pc as scrollSepolia,dc as sei,mc as seiTestnet,Tc as seismicDevnet,uc as sentrix,bc as sentrixTestnet,kc as sepolia,fc as shape,gc as shapeSepolia,yc as shardeum,jc as shardeumSphinx,vc as shibarium,Sc as shibariumTestnet,xc as shiden,wc as shimmer,Cc as shimmerTestnet,Nc as sidraChain,zc as silentData,Mc as silicon,Ec as siliconSepolia,qc as sixProtocol,Bc as skaleBase,Dc as skaleBaseSepoliaTestnet,Lc as skaleBlockBrawlers,Pc as skaleCalypso,Ac as skaleCalypsoTestnet,Uc as skaleCryptoBlades,Vc as skaleCryptoColosseum,Ic as skaleEuropa,Oc as skaleEuropaTestnet,Rc as skaleExorde,Gc as skaleHumanProtocol,Hc as skaleNebula,Zc as skaleNebulaTestnet,Kc as skaleRazor,Xc as skaleTitan,Yc as skaleTitanTestnet,Jc as sketchpad,Fc as snax,Wc as snaxTestnet,m as solana,T as solanaDevnet,u as solanaTestnet,Qc as somnia,_c as somniaTestnet,$c as soneium,ah as soneiumMinato,sh as songbird,eh as songbirdTestnet,th as sonic,nh as sonicBlazeTestnet,ih as sonicTestnet,oh as sophon,rh as sophonTestnet,lh as sova,ch as sovaSepolia,hh as spicy,ph as stable,dh as stableTestnet,mh as statusNetworkSepolia,Th as statusSepolia,uh as step,bh as story,kh as storyAeneid,fh as storyOdyssey,gh as storyTestnet,yh as stratis,jh as subtensorEvm,vh as superlumio,Sh as superposition,xh as superseed,wh as superseedSepolia,Ch as surgeTestnet,Nh as swan,zh as swanProximaTestnet,Mh as swanSaturnTestnet,Eh as swellchain,qh as swellchainTestnet,Bh as swissdlt,Dh as syscoin,Lh as syscoinTestnet,Ph as tac,Ah as tacSPB,Uh as taiko,Vh as taikoHekla,Ih as taikoHoodi,Oh as taikoJolnir,Rh as taikoKatla,Gh as taikoTestnetSepolia,Hh as taraxa,Zh as taraxaTestnet,Kh as teaSepolia,Xh as telcoinTestnet,Yh as telos,Jh as telosTestnet,Fh as tempo,Wh as tempoDevnet,Qh as tempoLocalnet,_h as tempoMainnet,$h as tempoModerato,ap as tempoTestnet,sp as tenet,ep as ternoa,tp as thaiChain,np as that,ip as theta,op as thetaTestnet,rp as thunderCore,lp as thunderTestnet,cp as tiktrixTestnet,hp as tomb,g as ton,y as tonTestnet,pp as treasure,dp as treasureTopaz,mp as tron,j as tronMainnet,Tp as tronNile,S as tronNileTestnet,up as tronShasta,v as tronShastaTestnet,bp as ubiq,kp as ultra,fp as ultraTestnet,gp as ultron,yp as ultronTestnet,jp as unichain,vp as unichainSepolia,Sp as unique,xp as uniqueOpal,wp as uniqueQuartz,Cp as unreal,Np as valygoNft,zp as valygoSmartchain,Mp as vana,Ep as vanaMoksha,qp as vanar,Bp as vechain,Dp as velas,Lp as viction,Pp as victionTestnet,Ap as vision,Up as visionTestnet,Vp as wanchain,Ip as wanchainTestnet,Op as weaveVMAlphanet,Rp as wemix,Gp as wemixTestnet,Hp as westendAssetHub,Zp as whitechain,Kp as whitechainSepolia,Xp as whitechainTestnet,Yp as wmcTestnet,Jp as worldLand,Fp as worldchain,Wp as worldchainSepolia,Qp as x1Testnet,_p as xLayer,$p as xLayerTestnet,ad as xai,sd as xaiTestnet,ed as xdc,td as xdcTestnet,nd as xgr,id as xoneMainnet,od as xoneTestnet,rd as xphereMainnet,ld as xphereTestnet,cd as xpla,hd as xrOne,pd as xrSepolia,dd as xrplevm,md as xrplevmDevnet,Td as xrplevmTestnet,ud as yooldoVerse,bd as yooldoVerseTestnet,kd as zenchainTestnet,fd as zeniq,gd as zeroG,yd as zeroGGalileoTestnet,jd as zeroGMainnet,vd as zeroGTestnet,Sd as zeroNetwork,xd as zetachain,wd as zetachainAthensTestnet,Cd as zhejiang,Nd as zilliqa,zd as zilliqaTestnet,Md as zircuit,Ed as zircuitGarfieldTestnet,qd as zkFair,Bd as zkFairTestnet,Dd as zkLinkNova,Ld as zkLinkNovaSepoliaTestnet,Pd as zkSync,Ad as zkSyncInMemoryNode,Ud as zkSyncLocalNode,Vd as zkSyncSepoliaTestnet,Id as zkXPLA,Od as zkXPLATestnet,Rd as zksync,Gd as zksyncInMemoryNode,Hd as zksyncLocalCustomHyperchain,Zd as zksyncLocalHyperchain,Kd as zksyncLocalHyperchainL1,Xd as zksyncLocalNode,Yd as zksyncSepoliaTestnet,Jd as zora,Fd as zoraSepolia,Wd as zoraTestnet};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as b,b as u}from"./lit-element-B3y9oplH.js";import{o as m,r as l,n as p}from"./class-map-CxwNmq0D.js";import{d as O,O as c}from"./index-
|
|
1
|
+
import{i as b,b as u}from"./lit-element-B3y9oplH.js";import{o as m,r as l,n as p}from"./class-map-CxwNmq0D.js";import{d as O,O as c}from"./index-DbCIRxku.js";import{c as g}from"./index-CI91n7ZK.js";import"./index-CSuR3VTG.js";import{O as T}from"./index-CKQ7PP9t.js";import{L as C,O as j,M as $,C as I,q as E,R as L,b as B,E as z,l as V,W as M,k as K,T as q,S as W}from"./W3MFrameProviderSingleton-DkDY_Uhq.js";import"./index-BhcJRwSw.js";import"./index-CEBe8Ks-.js";import"./index-ChtghJjk.js";import"./index-CVdDq8EF.js";import"./index-DFbLJk0v.js";import"./index-UKBE5ufT.js";import"./index-BR-AXZqF.js";import"./index-CtmBq3lY.js";import"./index-BVWvbmB_.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-CUdtSPei.js";import"./ethers-CHvw3dSr.js";import"./intl-CBcMB1D2.js";import"./index-DWB648gE.js";import"./events-DQ172AOg.js";import"./index-DoPvIZFo.js";import"./index-DKik1tqf.js";import"./index-nibyPLVP.js";import"./index--uTyu0uz.js";import"./index.es-1C-91fa0.js";import"./browser-ponyfill-Dj0kiq3a.js";import"./NetworkUtil-CmFj23VB.js";import"./ref-BsAZ42-h.js";import"./async-directive-BRxn_Py3.js";const F=O`
|
|
2
2
|
:host > wui-grid {
|
|
3
3
|
max-height: 360px;
|
|
4
4
|
overflow: auto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as y}from"./to-serializable-transaction-
|
|
1
|
+
import{g as y}from"./to-serializable-transaction-NCusZ8xl.js";import{s as p,f as c,r as w}from"./prepare-contract-call-CuOouwzZ.js";import"./index-BVWvbmB_.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-CUdtSPei.js";import"./ethers-CHvw3dSr.js";import"./intl-CBcMB1D2.js";import"./transaction-C8mfivVb.js";import"./utils-ClNpRN95.js";async function u({account:e,serializableTransaction:a,transaction:n,gasless:s}){const t=y({address:s.relayerForwarderAddress,chain:n.chain,client:n.client}),r=await w({contract:t,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(n.chain.id),data:a.data,from:e.address,gas:a.gas,nonce:r,to:a.to,value:0n};return[await e.signTypedData({domain:{name:"GSNv2 Forwarder",verifyingContract:t.address,version:"0.0.1"},message:i,primaryType:"ForwardRequest",types:{ForwardRequest:f}}),i]}const d={data:a.data,from:e.address,gas:a.gas,nonce:r,to:a.to,value:0n};return[await e.signTypedData({domain:{chainId:n.chain.id,name:s.domainName??"GSNv2 Forwarder",verifyingContract:t.address,version:s.domainVersion??"0.0.1"},message:d,primaryType:"ForwardRequest",types:{ForwardRequest:g}}),d]})();return{message:m,messageType:"forward",signature:o}}const 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"}],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"},{name:"chainid",type:"uint256"}];async function S(e){const{message:a,messageType:n,signature:s}=await u(e),t=await fetch(e.gasless.relayerUrl,{body:p({forwarderAddress:e.gasless.relayerForwarderAddress,request:a,signature:s,type:n}),method:"POST"});if(!t.ok)throw new Error(`Failed to send transaction: ${await t.text()}`);const r=await t.json();if(!r.result)throw new Error(`Relay transaction failed: ${r.message}`);const o=JSON.parse(r.result).txHash;if(c(o))return{chain:e.transaction.chain,client:e.transaction.client,transactionHash:o};throw new Error(`Failed to send transaction: ${p(r)}`)}export{u as prepareOpenZeppelinTransaction,S as relayOpenZeppelinTransaction};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as o,e as c,r as d}from"./prepare-contract-call-
|
|
1
|
+
import{d as o,e as c,r as d}from"./prepare-contract-call-CuOouwzZ.js";import{d as a}from"./detectExtension-D5bfb7Ei.js";import"./utils-ClNpRN95.js";import"./sentry-CUdtSPei.js";import"./react-BYHuwl8r.js";const t="0x6352211e",r=[{name:"tokenId",type:"uint256"}],n=[{type:"address"}];function p(e){return a({availableSelectors:e,method:[t,r,n]})}function s(e){return c(r,[e.tokenId])}function w(e){return t+s(e).slice(2)}function P(e){return o(n,e)[0]}async function I(e){return d({contract:e.contract,method:[t,r,n],params:[e.tokenId]})}export{t as FN_SELECTOR,P as decodeOwnerOfResult,w as encodeOwnerOf,s as encodeOwnerOfParams,p as isOwnerOfSupported,I as ownerOf};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/getNFT-
|
|
2
|
-
import{_ as m}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/getNFT-D5BgP1-B.js","_assets/index-BVWvbmB_.js","_assets/react-BYHuwl8r.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/sentry-CUdtSPei.js","_assets/ethers-CHvw3dSr.js","_assets/intl-CBcMB1D2.js","_assets/index-l2QjlKjX.css","_assets/fetchTokenMetadata-C1e9utql.js","_assets/uint8-array-CjVHUazS.js","_assets/prepare-contract-call-CuOouwzZ.js","_assets/utils-ClNpRN95.js","_assets/thirdweb-0rujUNSl.js","_assets/signing-B_TMY__g.js","_assets/to-serializable-transaction-NCusZ8xl.js","_assets/transaction-C8mfivVb.js","_assets/get-bytecode-C_QCCMoR.js","_assets/wait-for-tx-receipt-umHQbgNk.js","_assets/transactionReceipt-BHjPvP-A.js","_assets/sleep-mAKpSMLY.js","_assets/eth_estimateGas-VGXN9rx1.js","_assets/eth_getStorageAt-xHOtLw9t.js","_assets/eth_getTransactionCount-DeOan_M2.js","_assets/eth_sendRawTransaction-DPdnXbFR.js","_assets/decimals-CA4WCN0k.js","_assets/decimals-CN36TWfs.js","_assets/zora-sepolia-CIZA49Ti.js","_assets/send-batch-transaction-E8tR0aO1.js","_assets/send-transaction-Cyj6alac.js","_assets/getNFT-CxoCzDMN.js","_assets/totalSupply-u5fgMBD-.js","_assets/detectExtension-D5bfb7Ei.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as m}from"./index-BVWvbmB_.js";import{a as I}from"./utils-ClNpRN95.js";import{g as h}from"./to-serializable-transaction-NCusZ8xl.js";import{i as p}from"./prepare-contract-call-CuOouwzZ.js";import"./react-BYHuwl8r.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-CUdtSPei.js";import"./ethers-CHvw3dSr.js";import"./intl-CBcMB1D2.js";import"./transaction-C8mfivVb.js";function v(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 D(t){let e=t.uri;e.startsWith("did:nft:")&&(e=e.replace("did:nft:","").replace(/_/g,"/"));const[w="",f="",r=""]=e.split("/"),[a,i]=w.split(":"),[s,n]=f.split(":");if(!a||a.toLowerCase()!=="eip155")throw new Error(`Invalid EIP namespace, expected EIP155, got: "${a}"`);if(!i)throw new Error("Chain ID not found");if(!n||!p(n))throw new Error("Contract address not found");if(!r)throw new Error("Token ID not found");const l=I(Number(i)),o=h({address:n,chain:l,client:t.client});switch(s){case"erc721":{const{getNFT:c}=await m(async()=>{const{getNFT:d}=await import("./getNFT-D5BgP1-B.js");return{getNFT:d}},__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 c({contract:o,tokenId:BigInt(r)})).metadata.image??null}case"erc1155":{const{getNFT:c}=await m(async()=>{const{getNFT:d}=await import("./getNFT-CxoCzDMN.js");return{getNFT:d}},__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 c({contract:o,tokenId:BigInt(r)})).metadata.image??null}default:throw new Error(`Invalid ERC namespace, expected ERC721 or ERC1155, got: "${s}"`)}}export{v as parseNFT,D as parseNftUri};
|