@dcl/shop 1.16.0 → 1.16.1-36009595531.commit-94584a5
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-DnfPbi6I.js +400 -0
- package/_assets/{AnimatedBackground-CCv_8WvR.js → AnimatedBackground-DMoJIXm4.js} +2 -2
- package/_assets/{Assets-G4zKJq-g.js → Assets-CeTv3PQS.js} +3 -3
- package/_assets/{Cart-DsQMnYFW.js → Cart-XTP_NTRb.js} +2 -2
- package/_assets/{Collection-C4njSIXs.js → Collection-Kg9-iA_F.js} +7 -7
- package/_assets/{CollectionCarousel-Dg8w-Ze2.js → CollectionCarousel-KDiNS7Z2.js} +5 -5
- package/_assets/{Confetti-DcqbQMk-.js → Confetti-CCN1Rj6u.js} +4 -4
- package/_assets/{ConstantsUtil-CEwS_5e4.js → ConstantsUtil-DTRWtii2.js} +2 -2
- package/_assets/{ContentClient-BW1JgVbg.js → ContentClient-DTdXtBSl.js} +2 -2
- package/_assets/Creator-tRdc-i6W.js +312 -0
- package/_assets/{CreditPackPicker-D6M8C5at.js → CreditPackPicker-DC2Uhrv6.js} +2 -2
- package/_assets/CreditRate-Dzg044Lg.js +35 -0
- package/_assets/{DeploymentBuilder-Yv8ck1p_.js → DeploymentBuilder-DFQ5QdOZ.js} +3 -3
- package/_assets/{EmotePlaybackBar-DamRJKE8.js → EmotePlaybackBar-CDv0UlNn.js} +3 -3
- package/_assets/{ErrorNotice-5cQusmGK.js → ErrorNotice-BndI9TcU.js} +2 -2
- package/_assets/{Event-DNSKDhvo.js → Event-kW78ULJG.js} +5 -5
- package/_assets/{ExchangeController-DnyR_njB.js → ExchangeController-DjXLLKM5.js} +2 -2
- package/_assets/{Faq-DB62IPDv.js → Faq-CcOpCC4Z.js} +2 -2
- package/_assets/{Filters-DZJTBasv.js → Filters-D_wo8nf7.js} +2 -2
- package/_assets/{GetCredits-CQDD4Y7M.js → GetCredits-C9KlxvdS.js} +5 -5
- package/_assets/{Grow-Dqkd-8TJ.js → Grow-CJJkPu7p.js} +2 -2
- package/_assets/{HelpersUtil-CefOE7SN.js → HelpersUtil-S-ipA7d_.js} +4 -4
- package/_assets/{ItemDetail-BhOAzg_H.js → ItemDetail-DxChv0Az.js} +32 -32
- package/_assets/{LoadMore-yxZw85kf.js → LoadMore-CCDkdfxt.js} +2 -2
- package/_assets/ManaPricingBanner-C5SbV_Cy.js +684 -0
- package/_assets/ManaPricingBanner.styles-Bys2rCoo.js +96 -0
- package/_assets/MyAssets-C0wGKI5K.js +497 -0
- package/_assets/{MyFavorites-C8PXtYWt.js → MyFavorites-Cwv-npnC.js} +4 -4
- package/_assets/MyStore-BF6s2HmL.js +1630 -0
- package/_assets/{NetworkUtil-DB3XDe5L.js → NetworkUtil-Dn6I5ZVR.js} +2 -2
- package/_assets/{NotFound-Bvz1-F-x.js → NotFound-D2HuPI4c.js} +2 -2
- package/_assets/{NotificationsBell-CkfnfOhR.js → NotificationsBell-C8ye5ghN.js} +13 -13
- package/_assets/{OutfitDetail-Bnstzwcb.js → OutfitDetail-CDfyVMhI.js} +2 -2
- package/_assets/OutfitPreview-C7YIhS7h.js +7 -0
- package/_assets/{OutfitStudio-CDJQlhEd.js → OutfitStudio-CDLiO2FU.js} +11 -11
- package/_assets/{PaymentMethodStep-Dmy4hMV3.js → PaymentMethodStep-DvFcy0mk.js} +3 -3
- package/_assets/{PhArrowCircleDown-oZRgIV6I.js → PhArrowCircleDown-BgP2jbf5.js} +3 -3
- package/_assets/{PhArrowClockwise-D6H6uB8s.js → PhArrowClockwise-CuNU0iSl.js} +2 -2
- package/_assets/{PhArrowDown-CRBvhObC.js → PhArrowDown-BrLks3Uz.js} +4 -4
- package/_assets/{PhArrowLeft-iC7ALVz_.js → PhArrowLeft-BbZGSN_s.js} +5 -5
- package/_assets/{PhArrowRight-BMhSphsR.js → PhArrowRight-DqLi6_uj.js} +4 -4
- package/_assets/{PhArrowSquareOut-BGOFtcYV.js → PhArrowSquareOut-CX0ZRgNC.js} +4 -4
- package/_assets/{PhArrowUp-DaOakyLF.js → PhArrowUp-D9ugstgK.js} +3 -3
- package/_assets/{PhArrowUpRight-Dv-X4w2R.js → PhArrowUpRight-Bpfn12eW.js} +4 -4
- package/_assets/{PhArrowsClockwise-DnI7mFlV.js → PhArrowsClockwise-CRZyQVpN.js} +4 -4
- package/_assets/{PhArrowsDownUp-BT1rp80C.js → PhArrowsDownUp-CV1NqVLb.js} +4 -4
- package/_assets/{PhArrowsLeftRight-3JEyJt0N.js → PhArrowsLeftRight-DvGI6Nto.js} +5 -5
- package/_assets/{PhBank-DlTySila.js → PhBank-BRxdKSKq.js} +5 -5
- package/_assets/{PhBrowser-CxUZLRbi.js → PhBrowser-C_wNKcTe.js} +5 -5
- package/_assets/PhCaretDown-DBNFm85V.js +15 -0
- package/_assets/{PhCaretLeft-ScH02zvv.js → PhCaretLeft-Cad__LUx.js} +3 -3
- package/_assets/{PhCaretRight-CG-ZCjvT.js → PhCaretRight-CuRYBcM2.js} +3 -3
- package/_assets/PhCaretUp-DE2FiuTS.js +15 -0
- package/_assets/{PhCheck-DETGkRRi.js → PhCheck-y4MOxgof.js} +5 -5
- package/_assets/{PhCircleHalf-BN36Nweh.js → PhCircleHalf-xlPKmtS7.js} +4 -4
- package/_assets/{PhClock-DPd3K2DL.js → PhClock-BBNMhMKw.js} +4 -4
- package/_assets/{PhCompass-F0g-SfuH.js → PhCompass-DpAl_LfZ.js} +5 -5
- package/_assets/{PhCopy-CzpD7rrG.js → PhCopy-D4HwCqa2.js} +5 -5
- package/_assets/{PhCreditCard-NnI7YcNP.js → PhCreditCard-CD12JEEL.js} +3 -3
- package/_assets/{PhCurrencyDollar-Bst29vzW.js → PhCurrencyDollar-DPFX6nyR.js} +2 -2
- package/_assets/{PhDesktop-CFSSNEkS.js → PhDesktop-CNhh70Hf.js} +3 -3
- package/_assets/{PhDeviceMobile-Dd2ijltg.js → PhDeviceMobile-DQgHhtB0.js} +5 -5
- package/_assets/{PhDotsThree-CI5y9TIg.js → PhDotsThree-B1gOaArE.js} +4 -4
- package/_assets/{PhEnvelope-DrQ5vbHf.js → PhEnvelope-CGnM9AiA.js} +4 -4
- package/_assets/{PhFunnelSimple-CI4FOzkp.js → PhFunnelSimple-D8YZwX53.js} +4 -4
- package/_assets/{PhGlobe-DR2SpSWA.js → PhGlobe-CXtg_GcB.js} +4 -4
- package/_assets/{PhIdentificationCard-5YfSRHO7.js → PhIdentificationCard-oMtubY4C.js} +3 -3
- package/_assets/{PhImage-D7dVXxCI.js → PhImage-DKp6-EHn.js} +2 -2
- package/_assets/{PhInfo-DNTh1xhU.js → PhInfo-CPd-HNhu.js} +5 -5
- package/_assets/{PhLightbulb-BfCndXXI.js → PhLightbulb-C47afrxR.js} +5 -5
- package/_assets/{PhMagnifyingGlass-DB41rFTM.js → PhMagnifyingGlass-DBaqb5ff.js} +2 -2
- package/_assets/{PhPaperPlaneRight-D6oxeO8G.js → PhPaperPlaneRight-FQGhQUrW.js} +4 -4
- package/_assets/{PhPlus-B90Q_jSC.js → PhPlus-B_CxFvZS.js} +4 -4
- package/_assets/{PhPower-B3OeVFPP.js → PhPower-DRTSLLeY.js} +4 -4
- package/_assets/{PhPuzzlePiece-DMvneE8o.js → PhPuzzlePiece-zlHiPdqx.js} +4 -4
- package/_assets/{PhQrCode-B1ogONq9.js → PhQrCode-riEgpq80.js} +4 -4
- package/_assets/{PhQuestion-BGPtjzO3.js → PhQuestion-DHYK7o0G.js} +3 -3
- package/_assets/{PhQuestionMark-Bx5KlE6e.js → PhQuestionMark-ZgOsaVvK.js} +4 -4
- package/_assets/{PhSealCheck-kDiKrn8v.js → PhSealCheck-B5VE_9Jt.js} +3 -3
- package/_assets/{PhSignOut-C40w8abk.js → PhSignOut-DKQOfDHS.js} +4 -4
- package/_assets/{PhSpinner-BnCR7oBU.js → PhSpinner-B3k7aAJt.js} +4 -4
- package/_assets/{PhTrash-Dx6EnoNj.js → PhTrash-CD2fhMLB.js} +3 -3
- package/_assets/{PhUser-BMrVwUFx.js → PhUser-BeKUoVY6.js} +2 -2
- package/_assets/{PhVault-CJhJgRMl.js → PhVault-DC9QjU0-.js} +5 -5
- package/_assets/{PhWallet-DUAwnObx.js → PhWallet-djswo-CG.js} +3 -3
- package/_assets/{PhWarning-DQNslokT.js → PhWarning-B4g8NvcF.js} +4 -4
- package/_assets/{PhWarningCircle-p1EFi5p4.js → PhWarningCircle-xLZ7sbu0.js} +5 -5
- package/_assets/{PhX-cY2Ff_Gl.js → PhX-BVzMqBjL.js} +5 -5
- package/_assets/{SaleCountdown-C7e8fbLx.js → SaleCountdown-OciTJP0u.js} +3 -3
- package/_assets/{Spinner-B2OgiWjC.js → Spinner-PtrEnSHG.js} +2 -2
- package/_assets/StoreSettings-DijP-YCx.js +197 -0
- package/_assets/{Success-CZuQ607L.js → Success-ClDhCP8V.js} +5 -5
- package/_assets/{SwapController-5k9aONbx.js → SwapController-ZZrBzp1z.js} +2 -2
- package/_assets/{Tooltip-S7k1SpAV.js → Tooltip-u81Sv8t-.js} +2 -2
- package/_assets/{TradeService-B8-mao6x.js → TradeService-5RwgV0Xg.js} +2 -2
- package/_assets/{W3MFrameProviderSingleton-BMplcCEo.js → W3MFrameProviderSingleton-B4cXTRps.js} +4 -4
- package/_assets/{WebCryptoP256-O7lzGJiD.js → WebCryptoP256-CzBMVHqY.js} +2 -2
- package/_assets/{add-WhTS4Lmx.js → add-C46RTTNX.js} +3 -3
- package/_assets/{all-wallets-BjG4VftA.js → all-wallets-byTNDEq1.js} +2 -2
- package/_assets/{app-store-BU7T42Cx.js → app-store-CaKIhI-8.js} +2 -2
- package/_assets/{apple-CawmhmSa.js → apple-DAMB_3Lk.js} +3 -3
- package/_assets/{arrow-bottom-CnNmrvB7.js → arrow-bottom-Cx66u8_t.js} +2 -2
- package/_assets/{arrow-bottom-circle-4Fk8ZSin.js → arrow-bottom-circle-Bv2eZVEF.js} +2 -2
- package/_assets/{arrow-left-CfMYQlcz.js → arrow-left-D0I0JXz4.js} +3 -3
- package/_assets/arrow-right-BHc70exa.js +9 -0
- package/_assets/{arrow-top-B19eH9mc.js → arrow-top-uM_hNW8Z.js} +3 -3
- package/_assets/{async-directive-BTrBVINo.js → async-directive-CeCQAQEH.js} +4 -4
- package/_assets/{bank-CvCwnNxT.js → bank-CQUOEuRq.js} +2 -2
- package/_assets/{basic-Ccax6-qK.js → basic-CzPdzQZ1.js} +2 -2
- package/_assets/{biconomy-DvdEbc7G.js → biconomy-CmUC9Vgz.js} +2 -2
- package/_assets/{browseLayout.styles-D4_s76IT.js → browseLayout.styles-BJ83PjpA.js} +2 -2
- package/_assets/{browser-D_6XKzYg.js → browser-Bh67F6hL.js} +3 -3
- package/_assets/{browser-BZ3BqlqY.js → browser-Bnnu-876.js} +2 -2
- package/_assets/{browser-5Iquaht5.js → browser-DkgNbGy6.js} +2 -2
- package/_assets/{browser-ponyfill-cZkQn4gz.js → browser-ponyfill-DjCvoPa9.js} +2 -2
- package/_assets/{buy-Bz6BQ053.js → buy-DjjL35rl.js} +2 -2
- package/_assets/{buy-gasless-C_qSC2r9.js → buy-gasless-D72pqxFQ.js} +2 -2
- package/_assets/{card-Bs7vF3ws.js → card-DcQ1wkCr.js} +2 -2
- package/_assets/{ccip-DmZQ8H34.js → ccip-CHs8su-n.js} +2 -2
- package/_assets/{ccip-4dYwjzuR.js → ccip-Di9g1yps.js} +2 -2
- package/_assets/{chains-C05Ihug0.js → chains-C0P4vetK.js} +2 -2
- package/_assets/{checkmark-e3BzxNSm.js → checkmark-GDL9YfL4.js} +2 -2
- package/_assets/{checkmark-bold-CwL3zpGi.js → checkmark-bold-B-Sg0XJy.js} +3 -3
- package/_assets/chevron-bottom-CLuKI9LQ.js +9 -0
- package/_assets/chevron-left-B_RU4s1F.js +9 -0
- package/_assets/chevron-right-C6ckznAo.js +9 -0
- package/_assets/chevron-top-CJOmtrv2.js +9 -0
- package/_assets/{chrome-store-B9E5S_r1.js → chrome-store-s39Q_LJM.js} +3 -3
- package/_assets/{class-map-BaReYv7k.js → class-map-BxMzgOIb.js} +5 -5
- package/_assets/{clock-98t-BkG5.js → clock-DmJj-grN.js} +2 -2
- package/_assets/close-D4d1U5NV.js +9 -0
- package/_assets/{coinPlaceholder-rH-MsidA.js → coinPlaceholder-VDdmV3rm.js} +2 -2
- package/_assets/collectionPage.styles-BdifnJ7n.js +41 -0
- package/_assets/common-CoVAsSlp.js +2 -0
- package/_assets/{compass-C4iPyfoB.js → compass-O2jaVbub.js} +3 -3
- package/_assets/{controller-Dxu_LD2b.js → controller-8vZuqKx5.js} +3 -3
- package/_assets/{copy-Db_EXK-k.js → copy-D2eE3KCY.js} +3 -3
- package/_assets/{core-Ckvw2yS0.js → core-BAbJlgdS.js} +5 -5
- package/_assets/{createSvgIcon-Coc0eUXe.js → createSvgIcon-D7ErdKmf.js} +2 -2
- package/_assets/{crumbs.styles-CQ8x8Q1s.js → crumbs.styles-Do82Lh7D.js} +2 -2
- package/_assets/{cursor-BLyA32Y6.js → cursor-DSrN7SuI.js} +3 -3
- package/_assets/{cursor-transparent-is8_6H5o.js → cursor-transparent-DxuBEx9O.js} +2 -2
- package/_assets/{custom-BobhwJvM.js → custom-CA56e9mw.js} +2 -2
- package/_assets/{data-capture-B1l9YeOa.js → data-capture-B2LJxsgg.js} +2 -2
- package/_assets/{dcl-schemas-B-Ph0Ls4.js → dcl-schemas-D-5rZ83i.js} +2 -2
- package/_assets/decimals-BfgT5uZb.js +2 -0
- package/_assets/decimals-CMVt6Fnf.js +2 -0
- package/_assets/{desktop-w7YXG_JM.js → desktop-DwZtv9fm.js} +2 -2
- package/_assets/detectExtension-D7EH5FOC.js +2 -0
- package/_assets/{disconnect-BoVeWInH.js → disconnect-BbwiqFJ2.js} +3 -3
- package/_assets/{discord-CmXuPXeB.js → discord-qWAUKbRO.js} +3 -3
- package/_assets/{disposePreview-BWK9pW9i.js → disposePreview-Dn-nV7da.js} +2 -2
- package/_assets/{email-CR6_v_7o.js → email-R9Eh56FQ.js} +4 -4
- package/_assets/{embedded-wallet-CMslqrer.js → embedded-wallet-DKyKgqt3.js} +2 -2
- package/_assets/{emotion-styled.browser.esm-B49fbxGZ.js → emotion-styled.browser.esm-D-s-EeXK.js} +2 -2
- package/_assets/{engine-Da2W6flo.js → engine-DODLqszn.js} +2 -2
- package/_assets/{errors-wUAVqc_c.js → errors-g7TfMjmz.js} +2 -2
- package/_assets/estimate-l1-fee-DngUQ5JF.js +2 -0
- package/_assets/eth_estimateGas-CZaRMpws.js +2 -0
- package/_assets/eth_getStorageAt-CzulrMRy.js +2 -0
- package/_assets/eth_getTransactionCount-58y45L6E.js +2 -0
- package/_assets/ethereum-mrT0UM5G.js +2 -0
- package/_assets/{ethers-bR7FzlYq.js → ethers-CopgDOSY.js} +2 -2
- package/_assets/{etherscan-C6oDVSRT.js → etherscan-TUQ32gbU.js} +2 -2
- package/_assets/{events-CSMTNmJ4.js → events-Ws3Yj1Vh.js} +2 -2
- package/_assets/{exclamation-triangle-DeoEkpAd.js → exclamation-triangle-ETkxexlo.js} +2 -2
- package/_assets/{execute-DRuAik5I.js → execute-CbNEb0_w.js} +3 -3
- package/_assets/{extension-BC4u9PFt.js → extension-DoOVmXmT.js} +3 -3
- package/_assets/external-link-BEPN-Y2j.js +9 -0
- package/_assets/{extractIPFS-Do1_pPys.js → extractIPFS-BFJ52Qik.js} +2 -2
- package/_assets/{facebook-BfvFcXpk.js → facebook-BmPLPVaB.js} +3 -3
- package/_assets/{farcaster-DBSK9Oxt.js → farcaster-BLIAglQl.js} +2 -2
- package/_assets/{features-DnUPrb3F.js → features-9s_Hez8h.js} +2 -2
- package/_assets/{fetchTokenMetadata-0uUCrtuX.js → fetchTokenMetadata-BIKmk-Qg.js} +3 -3
- package/_assets/{field.styles-RDJk3ZFi.js → field.styles-DgktWQSW.js} +2 -2
- package/_assets/{filters-Bx7yqePJ.js → filters-DWaFeZ95.js} +3 -3
- package/_assets/{fortmatic-CzflUuB3.js → fortmatic-I6j8s8Pp.js} +2 -2
- package/_assets/{get-bytecode-CuUypJRS.js → get-bytecode-Hn-ME_dR.js} +2 -2
- package/_assets/get-ecosystem-wallet-info-i7hQ8Um2.js +2 -0
- package/_assets/{getBalance-CXMj_dSJ.js → getBalance-DbupekTB.js} +3 -3
- package/_assets/{getInstalledModules-DwjgJmXZ.js → getInstalledModules-DgeolJcX.js} +2 -2
- package/_assets/{getNFT-DAE6KSzC.js → getNFT-CF7JQE0L.js} +3 -3
- package/_assets/getNFT-CScO-Xmp.js +2 -0
- package/_assets/{github-Bir9JlcK.js → github-BiA5cQMJ.js} +3 -3
- package/_assets/{google-BlkSyDA4.js → google-CsF9xgle.js} +3 -3
- package/_assets/{grid.styles-CCv5GYbY.js → grid.styles-D-jF6MZw.js} +2 -2
- package/_assets/{hashTypedData-uKFMbdty.js → hashTypedData-Cx9nB98K.js} +2 -2
- package/_assets/{hashTypedData-DMajHdTK.js → hashTypedData-LiCSkSgg.js} +2 -2
- package/_assets/{help-circle-DA-n1pkO.js → help-circle-Bwgxn3Vn.js} +3 -3
- package/_assets/{id-UrGKP3rm.js → id-O5raZ1NS.js} +2 -2
- package/_assets/{image-D3PTNca-.js → image-CbhOQpP5.js} +2 -2
- package/_assets/{import-CeVyQRnj.js → import-CcqIyt2r.js} +2 -2
- package/_assets/{in-app-Macl9ih4.js → in-app-Bbr1VWOo.js} +2 -2
- package/_assets/{in-app-wallet-calls-D4aUvnS_.js → in-app-wallet-calls-ML9-rfvZ.js} +2 -2
- package/_assets/{index-CbaYXysJ.js → index-0zcbOnOy.js} +2 -2
- package/_assets/{index-CjDu2TSA.js → index-1fOWwGDY.js} +4 -4
- package/_assets/{index-DF3A7nt0.js → index-4svJAA0r.js} +2 -2
- package/_assets/{index-CYFe0Jna.js → index-6XNUf3SO.js} +3 -3
- package/_assets/{index-C7BuumTt.js → index-9847KGFU.js} +2 -2
- package/_assets/{index-D02KSSv9.js → index-B0jKErn5.js} +3 -3
- package/_assets/{index-zU2vwYZs.js → index-BBGQ2fEH.js} +2 -2
- package/_assets/{index-B2a3z3ZJ.js → index-BGXJtQVe.js} +2 -2
- package/_assets/{index-CI7ggdTq.js → index-BJncx6-7.js} +3 -3
- package/_assets/index-BJzeHzwn.js +2 -0
- package/_assets/{index-D08tUgRe.js → index-BKoVRwNl.js} +6 -6
- package/_assets/{index-CeTfbZRA.js → index-BLLo6gmS.js} +6 -6
- package/_assets/{index-rBUdQsaK.js → index-BMNT4Vj8.js} +2 -2
- package/_assets/{index-C975TN26.js → index-BQqlUoCn.js} +4 -4
- package/_assets/{index-BE9Mcus4.js → index-BRT6TqeK.js} +2 -2
- package/_assets/{index-BGgan3dP.js → index-BYR5agWV.js} +2 -2
- package/_assets/{index-DddATSzO.js → index-BcwUv4WI.js} +2 -2
- package/_assets/{index-Cx07-hgn.js → index-Be5CQ9Ek.js} +2 -2
- package/_assets/{index-D1vrdbBh.js → index-BhQyMuiB.js} +4 -4
- package/_assets/{index-CBygHfb6.js → index-BjVmqSlb.js} +2 -2
- package/_assets/{index-a25ffY_L.js → index-BotucDu0.js} +2 -2
- package/_assets/index-BpUtXe3X.js +2 -0
- package/_assets/{index-Di89BRQr.js → index-C-DYXMyc.js} +3 -3
- package/_assets/{index-C6uMO8F3.js → index-C0Nwpyec.js} +4 -4
- package/_assets/{index-GUobIWjX.js → index-C6gyBlSG.js} +2 -2
- package/_assets/{index-BVbWCh70.js → index-CBKmaKUs.js} +3 -3
- package/_assets/{index-B54oU8gi.js → index-CCJPLKej.js} +2 -2
- package/_assets/{index-9AH47OiK.js → index-CEosqueA.js} +3 -3
- package/_assets/{index-CQRmPqX6.js → index-CJX-36Qo.js} +3 -3
- package/_assets/{index-Bj9lpeYa.js → index-CMSu9Fi8.js} +5 -5
- package/_assets/{index-BlJwQFxj.js → index-CN6kBFKz.js} +2 -2
- package/_assets/{index-CUi-ykiz.js → index-CPc9SG5b.js} +2 -2
- package/_assets/{index-Cyu7VCzw.js → index-CS-Fo7Dd.js} +2 -2
- package/_assets/{index-CO_NYi5I.js → index-CTBXMXHE.js} +3 -3
- package/_assets/{index-BD5IY2ZK.js → index-CThQspM5.js} +3 -3
- package/_assets/{index-afs4W15f.js → index-CV2DmEzD.js} +2 -2
- package/_assets/{index-B5zTgTXf.js → index-CVvFzoi-.js} +7 -7
- package/_assets/{index-CvTuaMxq.js → index-CdlPsyOh.js} +2 -2
- package/_assets/{index-bswiu2fP.js → index-Ce2pZB5r.js} +2 -2
- package/_assets/{index-BvY2KEZR.js → index-Cgrg3nln.js} +3 -3
- package/_assets/{index-Cl9akTA1.js → index-CiMgUHWr.js} +2 -2
- package/_assets/{index-D4oNA6LG.js → index-CjUcdG9l.js} +4 -4
- package/_assets/{index-4Wt1itZR.js → index-Co7rAvqY.js} +4 -4
- package/_assets/{index-CCH3GG8S.js → index-CqQb43_w.js} +4 -4
- package/_assets/{index-6Ea7HxB0.js → index-Cw3ZjlHu.js} +4 -4
- package/_assets/{index-DhErzm2X.js → index-D4F1pTlw.js} +3 -3
- package/_assets/index-D8mGQF7W.css +1 -0
- package/_assets/{index-BFj-hzu9.js → index-DH16m9NQ.js} +2 -2
- package/_assets/{index-Wf_dU8kj.js → index-DPrbmi0P.js} +2 -2
- package/_assets/{index-CCtrpRL3.js → index-DSPPGbih.js} +7 -7
- package/_assets/{index-D_UH7dG5.js → index-DTQvJkIk.js} +2 -2
- package/_assets/{index-DJk0y4Pb.js → index-DVU_sbVS.js} +4 -4
- package/_assets/{index-tWaiezoT.js → index-DesfxtJB.js} +2 -2
- package/_assets/{index-15wtEeEb.js → index-DhL9UDpx.js} +2 -2
- package/_assets/{index-BGPtWppq.js → index-Dt0hkf0E.js} +4 -4
- package/_assets/{index-BX0anDQH.js → index-DvMKbX71.js} +2 -2
- package/_assets/{index-BotYB9Ug.js → index-DwSlWQJc.js} +4 -4
- package/_assets/{index-BzfaUuJy.js → index-DyBYKhuJ.js} +4 -4
- package/_assets/{index-C9cxIatH.js → index-LyvfKRJn.js} +2 -2
- package/_assets/{index-CCbd3W2s.js → index-MH4VZj7X.js} +2 -2
- package/_assets/{index-DWZpjai1.js → index-O-gEYpGp.js} +2 -2
- package/_assets/{index-CoEQwfR-.js → index-VqSwDYu3.js} +2 -2
- package/_assets/{index-DsNJL-1_.js → index-axCSMzU7.js} +2 -2
- package/_assets/{index-C4OMOTuz.js → index-cEVfGif7.js} +2 -2
- package/_assets/{index-B3VjL_uo.js → index-iLEI2Hze.js} +3 -3
- package/_assets/{index-CM8il_cs.js → index-ljbyRJDV.js} +2 -2
- package/_assets/{index-DVSIxGm9.js → index-oiiBJT0I.js} +4 -4
- package/_assets/index-x3_oOTlT.js +4331 -0
- package/_assets/{index.es-_TtdXlOp.js → index.es-CATzJKgL.js} +5 -5
- package/_assets/{index.es-DLcWAUrd.js → index.es-CcpqAHBO.js} +2 -2
- package/_assets/{index.es-Dq25h1l9.js → index.es-DTIR3PFi.js} +2 -2
- package/_assets/{index.es-kX0u41uY.js → index.es-DvYgO4WC.js} +2 -2
- package/_assets/{info-Dsmi8VWW.js → info-B91xCNqh.js} +3 -3
- package/_assets/info-circle-DtEY-DDD.js +13 -0
- package/_assets/items-empty-Cr9cPS1Z.js +2 -0
- package/_assets/jsxRuntime.module-BUzu5v1_.js +2 -0
- package/_assets/{jump-Xu9XuIAg.js → jump-Bl1mTmWC.js} +2 -2
- package/_assets/{lightbulb-B2s8QgKQ.js → lightbulb-ByedgZqO.js} +3 -3
- package/_assets/{linkAccount-CPkzkJuG.js → linkAccount-D6iv170c.js} +2 -2
- package/_assets/{loader-logo-DnFrESbi.js → loader-logo-VsDgHWNm.js} +2 -2
- package/_assets/{localBatchGatewayRequest-xmkiXjrL.js → localBatchGatewayRequest-BfGg370Q.js} +2 -2
- package/_assets/{mail-CZ9ghbH-.js → mail-B2wBPliw.js} +2 -2
- package/_assets/{mobile-D7KL87qI.js → mobile-COGIkuHo.js} +2 -2
- package/_assets/{modal.styles-Do478QcD.js → modal.styles-LVyI-Nms.js} +2 -2
- package/_assets/{more-C1vsI2Vu.js → more-zcriamqw.js} +2 -2
- package/_assets/{native-DfSWgaR4.js → native-l5Om0Rwv.js} +2 -2
- package/_assets/{network-placeholder-C6sglFRh.js → network-placeholder-Cm-6akxX.js} +2 -2
- package/_assets/{networks-Cfa5rIsc.js → networks-CF4HnplJ.js} +2 -2
- package/_assets/{nftPlaceholder-ByX0V9oA.js → nftPlaceholder-vZdYCYRL.js} +2 -2
- package/_assets/off-CLF8R11w.js +9 -0
- package/_assets/{onramp-BnohX24l.js → onramp-Df-XZyQ-.js} +2 -2
- package/_assets/openzeppelin-CtFkrbTC.js +2 -0
- package/_assets/ownerOf-Dd-hBmVt.js +2 -0
- package/_assets/parseNft-DlnuLVoy.js +3 -0
- package/_assets/{parseSignature-J-955_t1.js → parseSignature-B1mzw2r7.js} +2 -2
- package/_assets/{parseSignature-CoNohiB0.js → parseSignature-C060flwU.js} +4 -4
- package/_assets/{passkeys-NXOIdrEd.js → passkeys-CbeyIyCT.js} +2 -2
- package/_assets/{pay-with-exchange-DAZa8ZY1.js → pay-with-exchange-zZqzHc1N.js} +2 -2
- package/_assets/{play-store-BBusJ15a.js → play-store-CAbJYmXD.js} +2 -2
- package/_assets/{plus-QdPNUgRE.js → plus-DWQF9t2p.js} +3 -3
- package/_assets/{prepare-contract-call-CJg2QHZX.js → prepare-contract-call-Cd3rzK4m.js} +2 -2
- package/_assets/{qr-code-SdYLFk2z.js → qr-code-Br4VphwV.js} +2 -2
- package/_assets/{qr-overlay-Dv6gg5Q5.js → qr-overlay-C0sLtyHu.js} +6 -6
- package/_assets/{react-COwX0Zlk.js → react-xTOg_zXI.js} +3 -3
- package/_assets/{receive-D0kNMOsa.js → receive-B32yzPpP.js} +2 -2
- package/_assets/{recycle-horizontal-SCXYOpJq.js → recycle-horizontal-DdAImjTL.js} +3 -3
- package/_assets/{ref-DRxYb1N1.js → ref-D90CCjlU.js} +2 -2
- package/_assets/{refresh-eticwJ3S.js → refresh-S-H2nzPq.js} +2 -2
- package/_assets/{reown-logo-C2dHPSrm.js → reown-logo-D5L2QY4i.js} +3 -3
- package/_assets/{resolveImplementation-C71So4sE.js → resolveImplementation-CUvrhOz5.js} +2 -2
- package/_assets/{resume-buy-DG0KaJKe.js → resume-buy-CadxFuJD.js} +2 -2
- package/_assets/{resume-name-DGCFrQWT.js → resume-name-DCcU5Jmo.js} +2 -2
- package/_assets/{rpc-6is72ePA.js → rpc-D7LJ7NvJ.js} +2 -2
- package/_assets/{sales-empty-BCWN_I8i.js → sales-empty-C0kdamh4.js} +2 -2
- package/_assets/{search-empty-DlvFh8OP.js → search-empty-eYhzQ9FT.js} +2 -2
- package/_assets/{search-CeQ1H1CU.js → search-f6j421fJ.js} +3 -3
- package/_assets/{secp256k1-By_oEGjh.js → secp256k1-B41_WO6S.js} +2 -2
- package/_assets/{secp256k1-l4zSwoMY.js → secp256k1-CW_LtzZ8.js} +2 -2
- package/_assets/{secp256k1-BHyRMwqk.js → secp256k1-GkgG1V04.js} +2 -2
- package/_assets/{send-Bo03Ql2I.js → send-BAUrBF6z.js} +3 -3
- package/_assets/{send-BxPbGMh3.js → send-C-GM4PE7.js} +2 -2
- package/_assets/send-batch-transaction-DT9GnwuT.js +2 -0
- package/_assets/{send-eip712-transaction-Cd2xhI0p.js → send-eip712-transaction-SnaEyRTO.js} +3 -3
- package/_assets/send-gasless-transaction-CznNnhM4.js +3 -0
- package/_assets/send-transaction-Bf6g32F5.js +3 -0
- package/_assets/{sendMetaTransaction-Cpk-JkUY.js → sendMetaTransaction-BVZGqOEK.js} +2 -2
- package/_assets/{sendRawTransaction-CmggkI48.js → sendRawTransaction-CkffR3oO.js} +4 -4
- package/_assets/{sentry-D9BarSwm.js → sentry-B0Y62cGL.js} +3 -3
- package/_assets/{serializeTransaction-DDF3EQOU.js → serializeTransaction-CMJTyk8U.js} +2 -2
- package/_assets/{session-proposal-CHYRi6z3.js → session-proposal-DC94r99f.js} +2 -2
- package/_assets/{session-request-r5jbMTp-.js → session-request-DgLUUnOE.js} +3 -3
- package/_assets/{sha256-DBqizRIu.js → sha256-CED-jKYK.js} +2 -2
- package/_assets/{sha3-B0gscz6j.js → sha3-CD2fzV95.js} +2 -2
- package/_assets/signin-empty-Djiz9wqy.js +2 -0
- package/_assets/{signing-Dv0wmdMO.js → signing-lMjAMQBI.js} +4 -4
- package/_assets/{skeleton.styles-BEkEh9Xo.js → skeleton.styles-OHtRJI1m.js} +2 -2
- package/_assets/{socials-9e49sRbo.js → socials-XRxoPbeV.js} +2 -2
- package/_assets/{styled-byzvgoEW.js → styled-2Gc9bEJf.js} +3 -3
- package/_assets/{swapHorizontal-C6GakaRf.js → swapHorizontal-BXjIGAcZ.js} +2 -2
- package/_assets/{swapHorizontalBold-oeP-_O-R.js → swapHorizontalBold-BzueHopN.js} +2 -2
- package/_assets/{swapHorizontalMedium-C64EXSWD.js → swapHorizontalMedium-DLFo4hRx.js} +2 -2
- package/_assets/{swapHorizontalRoundedBold-CHgP6XK-.js → swapHorizontalRoundedBold-BddBy7OL.js} +2 -2
- package/_assets/{swapVertical-8SLU7RpO.js → swapVertical-DYkySTmy.js} +3 -3
- package/_assets/{swaps-CMMXFVlc.js → swaps-1NO4w9-f.js} +8 -8
- package/_assets/{telegram-CF91ES6s.js → telegram-D8ymSABf.js} +2 -2
- package/_assets/{thirdweb-CilSVdOh.js → thirdweb-BJ3MsX6E.js} +4 -4
- package/_assets/{three-dots-BsCoLPC9.js → three-dots-CiS9iH0H.js} +2 -2
- package/_assets/{to-serializable-transaction-BtKRmZ5q.js → to-serializable-transaction-BUXwOt0l.js} +3 -3
- package/_assets/totalSupply-BbOY-Ah8.js +2 -0
- package/_assets/{trade-encoding-DqOFT-xH.js → trade-encoding-BeeCLIbm.js} +2 -2
- package/_assets/{transaction-Crt3oKUU.js → transaction-f7fSDSEv.js} +2 -2
- package/_assets/transactionReceipt-BNvHMRIb.js +2 -0
- package/_assets/transactions-swTuiqzl.js +17 -0
- package/_assets/{twitch-BranWKeM.js → twitch-BJQCmiGz.js} +2 -2
- package/_assets/{twitterIcon-BfIWT5DS.js → twitterIcon-B78o99Zv.js} +2 -2
- package/_assets/{useInfiniteGrid-CoFLGUq5.js → useInfiniteGrid-BEX_xsnJ.js} +2 -2
- package/_assets/useStore-B7dt3ckg.js +3 -0
- package/_assets/{useTheme-BtQzSd_x.js → useTheme-CCKeGB3A.js} +2 -2
- package/_assets/{utils-Di6UMxpb.js → utils-DA456_1A.js} +2 -2
- package/_assets/{verify-DcO5QuX7.js → verify-CrYE2kna.js} +3 -3
- package/_assets/{verify-filled-CKp8XQqI.js → verify-filled-CwwnY5h6.js} +3 -3
- package/_assets/{verifyHash-CyVD3HFU.js → verifyHash-BvlEdLQe.js} +2 -2
- package/_assets/{w3m-modal-DY_5HDWk.js → w3m-modal-BYjCcYG7.js} +2 -2
- package/_assets/{w3m-modal-VycpFrGV.js → w3m-modal-dqg0Bbo6.js} +2 -2
- package/_assets/wait-for-tx-receipt-mAbrkotI.js +2 -0
- package/_assets/{wallet-BHCiGpYx.js → wallet-EosqBoq7.js} +3 -3
- package/_assets/{wallet-placeholder-BVguMNEt.js → wallet-placeholder-DL8kIY2O.js} +3 -3
- package/_assets/{walletconnect-9t1WJh4k.js → walletconnect-CauX9cVK.js} +4 -4
- package/_assets/{wallets-CF_BBG99.js → wallets-BPfs-4HQ.js} +6 -6
- package/_assets/{warning-circle-II7Vcaxs.js → warning-circle-BrcBx24p.js} +3 -3
- package/_assets/{web-connector-DQro6gxL.js → web-connector-B7BkqcWh.js} +4 -4
- package/_assets/{writeContract-DhM9t6Ig.js → writeContract-BXbZZHUF.js} +2 -2
- package/_assets/x-CwtQDczS.js +13 -0
- package/_assets/{zora-sepolia-CVzG0Xwo.js → zora-sepolia-CTxGeA6f.js} +2 -2
- package/_assets/{zoraTestnet-D_-LBRSS.js → zoraTestnet-5ljqJp2x.js} +2 -2
- package/index.html +12 -12
- package/package.json +2 -2
- package/_assets/Activity-Zur2krvm.js +0 -400
- package/_assets/Creator-CnhYdhYL.js +0 -312
- package/_assets/ManaPricingBanner.styles-C-mAX-6w.js +0 -129
- package/_assets/MyAssets-5gpOzD_e.js +0 -410
- package/_assets/MyStore-C64oleTN.js +0 -1062
- package/_assets/OutfitPreview-BoRA9kOx.js +0 -7
- package/_assets/PhCaretDown-Co8viBJv.js +0 -15
- package/_assets/PhCaretUp-SXVNZaJo.js +0 -15
- package/_assets/StoreSettings-Boa-EyyK.js +0 -181
- package/_assets/arrow-right-QKHuTr9a.js +0 -9
- package/_assets/chevron-bottom-DVpGPQvJ.js +0 -9
- package/_assets/chevron-left-CSISn9Tl.js +0 -9
- package/_assets/chevron-right-D0n7Onzs.js +0 -9
- package/_assets/chevron-top-BSRcfV5m.js +0 -9
- package/_assets/close-BnCucYZG.js +0 -9
- package/_assets/collectionPage.styles-SF1IDwaV.js +0 -41
- package/_assets/common-z_d14HNn.js +0 -2
- package/_assets/decimals-DMW-nilF.js +0 -2
- package/_assets/decimals-DWYtWgBS.js +0 -2
- package/_assets/detectExtension-TTfkcmVw.js +0 -2
- package/_assets/estimate-l1-fee-CYcm0S5M.js +0 -2
- package/_assets/eth_estimateGas-BF6-2JVJ.js +0 -2
- package/_assets/eth_getStorageAt-CPTGlZUx.js +0 -2
- package/_assets/eth_getTransactionCount-izvwkQul.js +0 -2
- package/_assets/ethereum-BxDg7UsP.js +0 -2
- package/_assets/external-link-D1_8iC7n.js +0 -9
- package/_assets/get-ecosystem-wallet-info-CmJgYBeZ.js +0 -2
- package/_assets/getNFT-D7lfpr7H.js +0 -2
- package/_assets/index-BRNshUaV.js +0 -4310
- package/_assets/index-BmTyuiQs.css +0 -1
- package/_assets/index-DYa3ZRHr.js +0 -2
- package/_assets/index-PR_0BnK6.js +0 -2
- package/_assets/info-circle-CppZa7vK.js +0 -13
- package/_assets/items-empty-CFX8gNeF.js +0 -2
- package/_assets/jsxRuntime.module-Q9HBaTr-.js +0 -2
- package/_assets/off-B5vm0egN.js +0 -9
- package/_assets/openzeppelin-DpMlfPE2.js +0 -2
- package/_assets/ownerOf-qUf4d1F7.js +0 -2
- package/_assets/parseNft-DWZbRJRG.js +0 -3
- package/_assets/send-batch-transaction-BizQRWSH.js +0 -2
- package/_assets/send-gasless-transaction-DXUxg38U.js +0 -3
- package/_assets/send-transaction-D0szv-rw.js +0 -3
- package/_assets/signin-empty-C2-U4-eJ.js +0 -2
- package/_assets/totalSupply-gIi83gXe.js +0 -2
- package/_assets/transactionReceipt-yftDQJCI.js +0 -2
- package/_assets/transactions-BFd4sGt3.js +0 -17
- package/_assets/useCreatorSales-D2bq-mjs.js +0 -784
- package/_assets/useStore-DCfwTeT_.js +0 -3
- package/_assets/wait-for-tx-receipt-BnSiwjNZ.js +0 -2
- package/_assets/x-D0s8LW19.js +0 -13
package/_assets/{to-serializable-transaction-BtKRmZ5q.js → to-serializable-transaction-BUXwOt0l.js}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/signing-
|
|
2
|
-
import{_ as f}from"./index-BRNshUaV.js";import{i as ee,a7 as D,a8 as te,t as ne,L as re,a9 as ae,d as ie,W as se,A as y,m as C,n as oe,h as U,c as S,l,aa as ce,ab as de,ac as ue,ad as le,f as fe,g as h,ae as R}from"./prepare-contract-call-CJg2QHZX.js";import{i as ye,a as me}from"./transaction-Crt3oKUU.js";import{e as j,w as pe}from"./utils-Di6UMxpb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4008e8c7-2de4-4bfd-9573-c45eb141016e",e._sentryDebugIdIdentifier="sentry-dbid-4008e8c7-2de4-4bfd-9573-c45eb141016e")}catch{}})();function ge(e){if(!e.client)throw new Error(`getContract validation error - invalid client: ${e.client}`);if(!ee(e.address))throw new Error(`getContract validation error - invalid address: ${e.address}`);if(!e.chain||!e.chain.id)throw new Error(`getContract validation error - invalid chain: ${e.chain}`);return e}const ut={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},Pe={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},he={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function be(e){const{abi:t,data:n}=e,r=D(n,0,4);if(r==="0x")throw new te;const i=[...t||[],Pe,he].find(s=>s.type==="error"&&r===ne(re(s)));if(!i)throw new ae(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:i,args:"inputs"in i&&i.inputs&&i.inputs.length>0?ie(i.inputs,D(n,4)):void 0,errorName:i.name}}const xe=(e,t,n)=>JSON.stringify(e,(r,a)=>{const i=typeof a=="bigint"?a.toString():a;return typeof t=="function"?t(r,i):i},n);function $(e,t){return({exclude:n,format:r})=>({exclude:n,format:(a,i)=>{const s=t(a,i);if(n)for(const d of n)delete s[d];return{...s,...r(a,i)}},type:e})}const _e={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function V(e,t){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=we(e.authorizationList)),typeof e.accessList<"u"&&(n.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(n.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?n.blobs=e.blobs.map(r=>se(r)):n.blobs=e.blobs),typeof e.data<"u"&&(n.data=e.data),e.account&&(n.from=e.account.address),typeof e.from<"u"&&(n.from=e.from),typeof e.gas<"u"&&(n.gas=y(e.gas)),typeof e.gasPrice<"u"&&(n.gasPrice=y(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(n.maxFeePerBlobGas=y(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(n.maxFeePerGas=y(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(n.maxPriorityFeePerGas=y(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(n.nonce=y(e.nonce)),typeof e.to<"u"&&(n.to=e.to),typeof e.type<"u"&&(n.type=_e[e.type]),typeof e.value<"u"&&(n.value=y(e.value)),n}const lt=$("transactionRequest",V);function we(e){return e.map(t=>({address:t.address,r:t.r?y(BigInt(t.r)):t.r,s:t.s?y(BigInt(t.s)):t.s,chainId:y(t.chainId),nonce:y(t.nonce),...typeof t.yParity<"u"?{yParity:y(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:y(t.v)}:{}}))}const Fe={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function k(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?C(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?C(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Fe[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=ve(e.authorizationList)),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof n.v=="bigint"){if(n.v===0n||n.v===27n)return 0;if(n.v===1n||n.v===28n)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),n.type==="legacy"&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),n.type==="eip2930"&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),n.type==="eip1559"&&delete n.maxFeePerBlobGas,n}const ft=$("transaction",k);function ve(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function H(e,t){const n=(e.transactions??[]).map(r=>typeof r=="string"?r:k(r));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const yt=$("block",H);function Ae(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}const E=new WeakMap;async function W(e){if(E.has(e))return E.get(e);const t=(async()=>{const[n,r,{concatHex:a}]=await Promise.all([Z(e),z(e),f(()=>import("./signing-Dv0wmdMO.js").then(i=>i.P),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]))]);return r?a([n,r]):n})();return E.set(e,t),t}async function Z(e){if(e.data===void 0)return"0x";if(typeof e.data=="function"){const t=await e.data();return t||"0x"}return e.data}async function z(e){if(e.extraCallData){if(typeof e.extraCallData=="function"){const t=await e.extraCallData();if(!t)return;if(!t.startsWith("0x"))throw Error("Invalid extra calldata - must be a hex string");return t==="0x"?void 0:t}if(!e.extraCallData.startsWith("0x"))throw Error("Invalid extra calldata - must be a hex string");return e.extraCallData}}const Ge=Object.freeze(Object.defineProperty({__proto__:null,encode:W,getDataFromTx:Z,getExtraCallDataFromTx:z},Symbol.toStringTag,{value:"Module"}));async function Ie(e,t){const n=t.blockTag??"latest",r=t.includeTransactions??!1,a=t.blockNumber!==void 0?oe(t.blockNumber):void 0,i=await e({method:"eth_getBlockByNumber",params:[a||n,r]});if(!i)throw new Error("Block not found");return H(i)}async function Ee(e){const t=await e({method:"eth_maxPriorityFeePerGas"});return U(t)}function J(e,t){const n=e.toString(),r=n[0]==="-"?"-":"",i=(r?n.slice(1):n).padStart(t+1,"0"),s=i.length-t,d=i.slice(0,s)||"0";let c=i.slice(s);for(let o=c.length-1;o>=0;o--){if(c[o]!=="0"){c=c.slice(0,o+1);break}o===0&&(c="")}return`${r}${d}${c?`.${c}`:""}`}function Te(e){return J(e,18)}function I(e,t){e.includes("e")&&(e=Number(e).toFixed(t));let[n,r=""]=e.split(".");const a=n.startsWith("-")?"-":"";if(a&&(n=n.slice(1)),r=r.padEnd(t,"0"),t===0)r[0]&&Number.parseInt(r[0])>=5&&(n=(BigInt(n)+1n).toString()),r="";else if(r.length>t){const i=r[t];i&&Number.parseInt(i,10)>=5?(r=(BigInt(r.substring(0,t))+1n).toString().padStart(t,"0"),r.length>t&&(n=(BigInt(n)+1n).toString(),r=r.substring(r.length-t))):r=r.substring(0,t)}return BigInt(`${a}${n}${r}`)}function Be(e){return I(e,18)}function Se(e){return I(e,9)}const mt=Object.freeze(Object.defineProperty({__proto__:null,fromGwei:Se,toEther:Te,toTokens:J,toUnits:I,toWei:Be},Symbol.toStringTag,{value:"Module"}));async function $e(e){const t=await e({method:"eth_gasPrice"});return U(t)}async function L(e){const{client:t,chain:n,percentMultiplier:r}=e,a=S({chain:n,client:t}),i=await $e(a),s=r?i/BigInt(100)*BigInt(r):0n;return i+s}function v(e){if(e===0n||(e&e-1n)===0n)return e;let t=1n;for(;e>0n;)e>>=1n,t<<=1n;return t}const De=[78600,2040,248,9372,841,842,2016,9768,2442,1942999413,1952959480,994873017,19011,40875,1511670449,5464,2020,2021,98866,1417429182];async function K(e){var s;const[t,n,r,a]=await Promise.all([l(e.maxFeePerGas),l(e.maxPriorityFeePerGas),l(e.gasPrice),l(e.type)]);if(t!==void 0&&n!==void 0)return{maxFeePerGas:t,maxPriorityFeePerGas:n};if(typeof r=="bigint")return{gasPrice:r};const i=await Y(e.client,e.chain,a==="legacy"?"legacy":"eip1559");return(s=e.chain.experimental)!=null&&s.increaseZeroByteCount?i.gasPrice?{gasPrice:v(i.gasPrice)}:{maxFeePerGas:t??v(i.maxFeePerGas??0n),maxPriorityFeePerGas:n??v(i.maxPriorityFeePerGas??0n)}:i.gasPrice!==void 0?i:{maxFeePerGas:t??i.maxFeePerGas,maxPriorityFeePerGas:n??i.maxPriorityFeePerGas}}async function Y(e,t,n){if((n??t.feeType)==="legacy"||De.includes(t.id))return{gasPrice:await L({chain:t,client:e,percentMultiplier:10})};const a=await Ce(e,t);return a.maxFeePerGas!==null&&a.maxPriorityFeePerGas!==null?{maxFeePerGas:a.maxFeePerGas,maxPriorityFeePerGas:a.maxPriorityFeePerGas}:{gasPrice:await L({chain:t,client:e,percentMultiplier:10})}}async function Ce(e,t,n=10){let r=null,a=null;const i=S({chain:t,client:e}),[s,d]=await Promise.all([Ie(i,{blockTag:"latest"}),Ee(i).catch(()=>null)]),c=s==null?void 0:s.baseFeePerGas,o=t.id;return o===220||o===1220?{maxFeePerGas:null,maxPriorityFeePerGas:null}:(o===80002||o===137?a=await Oe(o):d!==null&&(a=d),a==null||c==null?{maxFeePerGas:null,maxPriorityFeePerGas:null}:(a=Re(a,n),r=c*2n+a,(o===42220||o===44787||o===62320)&&(a=r),{maxFeePerGas:r,maxPriorityFeePerGas:a}))}function Re(e,t=10){const n=e/BigInt(100)*BigInt(t);return e+n}function Le(e){switch(e){case 137:return"https://gasstation.polygon.technology/v2";case 80002:return"https://gasstation.polygon.technology/amoy"}}const Me=31n;async function Oe(e){const t=Le(e);try{const r=(await(await fetch(t)).json()).fast.maxPriorityFee;if(r>0){const a=Number.parseFloat(r).toFixed(9);return I(a,9)}}catch(n){console.error("failed to fetch gas",n)}return Me}const pt=Object.freeze(Object.defineProperty({__proto__:null,getDefaultGasOverrides:Y,getGasOverridesForTransaction:K},Symbol.toStringTag,{value:"Module"}));async function Ne(e){if(e.id===1337||e.id===31337)return!1;if(e.id===324||e.id===300||e.id===302||e.id===11124||e.id===282||e.id===388||e.id===4654||e.id===333271||e.id===37111||e.id===978658||e.id===531050104||e.id===4457845||e.id===2741||e.id===240||e.id===555271||e.id===61166||e.id===555272)return!0;try{const{getChainMetadata:t}=await f(async()=>{const{getChainMetadata:r}=await import("./utils-Di6UMxpb.js").then(a=>a.u);return{getChainMetadata:r}},__vite__mapDeps([2,3,4]));return(await t(e)).stackType==="zksync_stack"}catch{return!1}}const M=/^tuple(?<array>(\[(\d*)\])*)$/;function B(e){let t=e.type;if(M.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let a=0;a<n;a++){const i=e.components[a];t+=B(i),a<n-1&&(t+=", ")}const r=ce(M,e.type);return t+=`)${(r==null?void 0:r.array)??""}`,B({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function F(e){let t="";const n=e.length;for(let r=0;r<n;r++){const a=e[r];t+=B(a),r!==n-1&&(t+=", ")}return t}function Ue(e){var t;return e.type==="function"?`function ${e.name}(${F(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${(t=e.outputs)!=null&&t.length?` returns (${F(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${F(e.inputs)})`:e.type==="error"?`error ${e.name}(${F(e.inputs)})`:e.type==="constructor"?`constructor(${F(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}function je(e){const t=[],n=e.length;for(let r=0;r<n;r++){const a=e[r],i=Ue(a);t.push(i)}return t}function Ve(e){const t=de(e),n=[],r=e.length;for(let a=0;a<r;a++){const i=e[a];ue(i)||n.push(le(i,t))}return n}const ke=Ae({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://11155111.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:8928790}},testnet:!0}),He="https://{clientId}.ipfscdn.io/ipfs/{cid}";function We(e){var t,n;if(e.uri.startsWith("ipfs://")){const r=((n=(t=e.client.config)==null?void 0:t.storage)==null?void 0:n.gatewayUrl)??He,a=e.client.clientId,i=Ze(e.uri);let s;return typeof globalThis<"u"&&"Application"in globalThis&&(s=globalThis.Application.applicationId),`${r.replace("{clientId}",a).split("/ipfs")[0]}/ipfs/${i}${s?`?bundleId=${s}`:""}`}if(e.uri.startsWith("http"))return e.uri;throw new Error('Invalid URI scheme, expected "ipfs://" or "http(s)://"')}function Ze(e){if(!e.startsWith("ipfs://"))return e;const t=e.search(/\/(Qm|baf)/i);return e.slice(t+1)}async function Q(e){var r,a,i,s,d,c,o,g,b;let t;if(e.uri.startsWith("ar://")){const{resolveArweaveScheme:m}=await f(async()=>{const{resolveArweaveScheme:_}=await import("./arweave-BXABR57J.js");return{resolveArweaveScheme:_}},[]);t=m(e)}else t=We(e);const n=await j(e.client)(t,{headers:(i=(a=(r=e.client.config)==null?void 0:r.storage)==null?void 0:a.fetch)==null?void 0:i.headers,keepalive:(c=(d=(s=e.client.config)==null?void 0:s.storage)==null?void 0:d.fetch)==null?void 0:c.keepalive,requestTimeoutMs:e.requestTimeoutMs??((b=(g=(o=e.client.config)==null?void 0:o.storage)==null?void 0:g.fetch)==null?void 0:b.requestTimeoutMs)??6e4});if(!n.ok){const m=await n.text();throw new Error(`Failed to download file: ${n.status} ${n.statusText} ${m||""}`)}return n}const gt=Object.freeze(Object.defineProperty({__proto__:null,download:Q},Symbol.toStringTag,{value:"Module"}));function ze(e,t="https://contract.thirdweb.com/abi"){return pe(async()=>{if(e.abi)return e.abi;if(e.chain.id===31337||e.chain.id===1337||e.chain.id===ke.id)return await O(e);try{return await Je(e,t)}catch{return await O(e)}},{cacheKey:`${e.chain.id}-${e.address}`,cacheTime:1e3*60*60*1})}async function Je(e,t="https://contract.thirdweb.com/abi"){const r=await(await j(e.client)(`${t}/${e.chain.id}/${e.address}`)).json();if(!r||r.error)throw new Error(`Failed to resolve ABI from contract API. ${r.error||""}`);return r}async function X(e){const[{resolveImplementation:t},{extractIPFSUri:n}]=await Promise.all([f(()=>import("./resolveImplementation-C71So4sE.js"),__vite__mapDeps([11,10,1,2,3,4,12,5,6,7,8,9,13])),f(()=>import("./extractIPFS-Do1_pPys.js"),__vite__mapDeps([14,1,2,3,4]))]),{bytecode:r}=await t(e);if(r==="0x"){const{id:i,name:s}=e.chain;throw new Error(`Failed to load contract bytecode. Make sure the contract [${e.address}] exists on the chain [${s||"Unknown Chain"} (chain id: ${i})]`)}const a=n(r);if(!a)return[];try{return(await(await Q({client:e.client,uri:a})).json()).output.abi}catch{return[]}}const Ke={inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"registered",type:"tuple[]"}],stateMutability:"view",type:"function"},Ye={inputs:[],name:"getAllExtensions",outputs:[{components:[{components:[{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"metadataURI",type:"string"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IExtension.ExtensionMetadata",name:"metadata",type:"tuple"},{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"}],internalType:"struct IExtension.ExtensionFunction[]",name:"functions",type:"tuple[]"}],internalType:"struct IExtension.Extension[]",name:"allExtensions",type:"tuple[]"}],stateMutability:"view",type:"function"},Qe={inputs:[],name:"facets",outputs:[{components:[{internalType:"address",name:"facetAddress",type:"address"},{internalType:"bytes4[]",name:"functionSelectors",type:"bytes4[]"}],type:"tuple[]"}],stateMutability:"view",type:"function"};async function O(e,t,n){const[r,a,i,s,d]=await Promise.all([X(e),Xe(e),qe(e),et(e),tt(e)]),c=[...new Set([...a,...i,...s,...d])];if(!c.length)return r;const o=await nt({contract:e,plugins:c,resolveSubAbi:n});return rt({pluginAbis:o,rootAbi:r})}async function Xe(e){try{const{readContract:t}=await f(async()=>{const{readContract:r}=await import("./prepare-contract-call-CJg2QHZX.js").then(a=>a.c9);return{readContract:r}},__vite__mapDeps([1,2,3,4])),n=await t({contract:e,method:Ke});return n.length?[...new Set(n.map(r=>r.pluginAddress))]:[]}catch{}return[]}async function qe(e){try{const{readContract:t}=await f(async()=>{const{readContract:r}=await import("./prepare-contract-call-CJg2QHZX.js").then(a=>a.c9);return{readContract:r}},__vite__mapDeps([1,2,3,4])),n=await t({contract:e,method:Ye});return n.length?[...new Set(n.map(r=>r.metadata.implementation))]:[]}catch{}return[]}async function et(e){try{const{getInstalledModules:t}=await f(async()=>{const{getInstalledModules:r}=await import("./getInstalledModules-DwjgJmXZ.js");return{getInstalledModules:r}},__vite__mapDeps([15,1,2,3,4,16])),n=await t({contract:e});return n.length?[...new Set(n.map(r=>r.implementation))]:[]}catch{}return[]}async function tt(e){try{const{readContract:t}=await f(async()=>{const{readContract:r}=await import("./prepare-contract-call-CJg2QHZX.js").then(a=>a.c9);return{readContract:r}},__vite__mapDeps([1,2,3,4])),n=await t({contract:e,method:Qe});return n.length?n.map(r=>r.facetAddress):[]}catch{}return[]}async function nt(e){return Promise.all(e.plugins.map(t=>{const n=ge({...e.contract,address:t});return e.resolveSubAbi?e.resolveSubAbi(n):X(n)}))}function rt(e){let t=e.pluginAbis.flat().filter(r=>r.type!=="constructor");e.rootAbi&&(t=[...e.rootAbi,...t].filter(r=>r.type!=="fallback"&&r.type!=="receive").filter(Boolean));const n=[...new Set(je(t))];return Ve(n)}async function N(e){var i;const{error:t,contract:n,fromAddress:r}=e;ye(t)&&n&&me({chainId:(i=n.chain)==null?void 0:i.id,client:n.client,contractAddress:n.address,error:t,walletAddress:r});const a=await at({contract:n,error:t});return a?new it(a,n):t}async function at(e){const{error:t,contract:n}=e;if(typeof t=="object"){const r=t;if(r.data&&r.data!=="0x"&&fe(r.data)){let a=n==null?void 0:n.abi;n&&!a&&(a=await ze(n).catch(()=>{}));const i=be({abi:a,data:r.data});return`${i.errorName}${i.args?` - ${i.args}`:""}`}}return`Execution Reverted: ${xe(t)}`}class it extends Error{constructor(t,n){var a;let r=t;super(r),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"chainId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="TransactionError",this.contractAddress=n==null?void 0:n.address,this.chainId=(a=n==null?void 0:n.chain)==null?void 0:a.id,this.message=r}}const T=new WeakMap;async function q(e){var i,s;const t=typeof e.from=="string"?e.from??void 0:((i=e.from)==null?void 0:i.address)??((s=e.account)==null?void 0:s.address),n={...e.transaction,from:t};if(T.has(n))return T.get(n);const{account:r}=e,a=(async()=>{var p,G;const d=await l(e.transaction.gas);if(d!==void 0)return d;if(r!=null&&r.estimateGas)try{let u=await r.estimateGas(e.transaction);return(p=e.transaction.chain.experimental)!=null&&p.increaseZeroByteCount&&(u=v(u)),u}catch(u){throw await N({contract:e.transaction.__contract,error:u,fromAddress:t})}const{encode:c}=await f(async()=>{const{encode:u}=await Promise.resolve().then(()=>Ge);return{encode:u}},void 0),[o,g,b,m]=await Promise.all([c(e.transaction),l(e.transaction.to),l(e.transaction.value),l(e.transaction.authorizationList)]),[{getRpcClient:_},{eth_estimateGas:A}]=await Promise.all([f(()=>import("./prepare-contract-call-CJg2QHZX.js").then(u=>u.c8),__vite__mapDeps([1,2,3,4])),f(()=>import("./eth_estimateGas-BF6-2JVJ.js"),__vite__mapDeps([17,1,2,3,4]))]),x=_(e.transaction);try{const u=V({authorizationList:m==null?void 0:m.map(P=>({...P,address:h(P.address),nonce:Number(P.nonce),r:R(P.r),s:R(P.s)})),data:o,from:t?h(t):void 0,to:g?h(g):void 0,value:b});let w=await A(x,u);return(G=e.transaction.chain.experimental)!=null&&G.increaseZeroByteCount&&(w=v(w)),w}catch(u){throw await N({contract:e.transaction.__contract,error:u,fromAddress:t})}})();return T.set(n,a),a}const Pt=Object.freeze(Object.defineProperty({__proto__:null,estimateGas:q},Symbol.toStringTag,{value:"Module"}));async function ht(e){if(await Ne(e.transaction.chain)){const{getZkGasFees:x}=await f(async()=>{const{getZkGasFees:w}=await import("./send-eip712-transaction-Cd2xhI0p.js").then(P=>P.a);return{getZkGasFees:w}},__vite__mapDeps([18,5,4,6,3,7,8,9,19,1,2,0,10,20])),{gas:p,maxFeePerGas:G,maxPriorityFeePerGas:u}=await x({from:typeof e.from=="string"?h(e.from):e.from!==void 0?h(e.from.address):void 0,transaction:e.transaction});e.transaction={...e.transaction,gas:p,maxFeePerGas:G,maxPriorityFeePerGas:u}}const n=S(e.transaction),r=e.transaction.chain.id,a=e.from;let[i,s,d,c,o,g,b,m,_]=await Promise.all([W(e.transaction),(async()=>{const x=await l(e.transaction.nonce);return x!==void 0?x:a?await f(async()=>{const{eth_getTransactionCount:p}=await import("./eth_getTransactionCount-izvwkQul.js");return{eth_getTransactionCount:p}},__vite__mapDeps([21,1,2,3,4])).then(({eth_getTransactionCount:p})=>p(n,{address:typeof a=="string"?h(a):h(a.address),blockTag:"pending"})):void 0})(),q({...e,from:e.from}),K(e.transaction),l(e.transaction.to),l(e.transaction.accessList),l(e.transaction.value),l(e.transaction.authorizationList),l(e.transaction.type)]);const A=await l(e.transaction.extraGas);return A&&(d+=A),{accessList:g,authorizationList:m,chainId:r,data:i,gas:d,nonce:s,to:o,type:_,value:b,...c}}export{L as A,yt as B,Ae as C,ft as D,lt as E,_e as F,ke as G,ut as H,Pe as I,mt as J,pt as K,gt as L,Pt as M,Fe as a,be as b,J as c,$ as d,W as e,I as f,ge as g,Be as h,Y as i,Ne as j,Ue as k,F as l,H as m,k as n,q as o,Ve as p,Te as q,ze as r,xe as s,ht as t,V as u,N as v,$e as w,Ie as x,Ee as y,Se as z};
|
|
3
|
-
//# sourceMappingURL=to-serializable-transaction-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/signing-lMjAMQBI.js","_assets/prepare-contract-call-Cd3rzK4m.js","_assets/utils-DA456_1A.js","_assets/sentry-B0Y62cGL.js","_assets/react-xTOg_zXI.js","_assets/index-x3_oOTlT.js","_assets/dcl-schemas-D-5rZ83i.js","_assets/ethers-CopgDOSY.js","_assets/intl-AKLEHPeO.js","_assets/index-D8mGQF7W.css","_assets/get-bytecode-Hn-ME_dR.js","_assets/resolveImplementation-CUvrhOz5.js","_assets/eth_getStorageAt-CzulrMRy.js","_assets/transaction-f7fSDSEv.js","_assets/extractIPFS-BFJ52Qik.js","_assets/getInstalledModules-DgeolJcX.js","_assets/detectExtension-D7EH5FOC.js","_assets/eth_estimateGas-CZaRMpws.js","_assets/send-eip712-transaction-SnaEyRTO.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/sha256-CED-jKYK.js","_assets/eth_getTransactionCount-58y45L6E.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as f}from"./index-x3_oOTlT.js";import{i as ee,a7 as D,a8 as te,t as ne,L as re,a9 as ae,d as ie,W as se,A as y,m as C,n as oe,h as U,c as S,l,aa as ce,ab as de,ac as ue,ad as le,f as fe,g as h,ae as R}from"./prepare-contract-call-Cd3rzK4m.js";import{i as ye,a as me}from"./transaction-f7fSDSEv.js";import{e as j,w as pe}from"./utils-DA456_1A.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="78e4d77a-f933-404c-9e0b-41013ff8c192",e._sentryDebugIdIdentifier="sentry-dbid-78e4d77a-f933-404c-9e0b-41013ff8c192")}catch{}})();function ge(e){if(!e.client)throw new Error(`getContract validation error - invalid client: ${e.client}`);if(!ee(e.address))throw new Error(`getContract validation error - invalid address: ${e.address}`);if(!e.chain||!e.chain.id)throw new Error(`getContract validation error - invalid chain: ${e.chain}`);return e}const ut={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},Pe={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},he={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function be(e){const{abi:t,data:n}=e,r=D(n,0,4);if(r==="0x")throw new te;const i=[...t||[],Pe,he].find(s=>s.type==="error"&&r===ne(re(s)));if(!i)throw new ae(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:i,args:"inputs"in i&&i.inputs&&i.inputs.length>0?ie(i.inputs,D(n,4)):void 0,errorName:i.name}}const xe=(e,t,n)=>JSON.stringify(e,(r,a)=>{const i=typeof a=="bigint"?a.toString():a;return typeof t=="function"?t(r,i):i},n);function $(e,t){return({exclude:n,format:r})=>({exclude:n,format:(a,i)=>{const s=t(a,i);if(n)for(const d of n)delete s[d];return{...s,...r(a,i)}},type:e})}const _e={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function V(e,t){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=we(e.authorizationList)),typeof e.accessList<"u"&&(n.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(n.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?n.blobs=e.blobs.map(r=>se(r)):n.blobs=e.blobs),typeof e.data<"u"&&(n.data=e.data),e.account&&(n.from=e.account.address),typeof e.from<"u"&&(n.from=e.from),typeof e.gas<"u"&&(n.gas=y(e.gas)),typeof e.gasPrice<"u"&&(n.gasPrice=y(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(n.maxFeePerBlobGas=y(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(n.maxFeePerGas=y(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(n.maxPriorityFeePerGas=y(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(n.nonce=y(e.nonce)),typeof e.to<"u"&&(n.to=e.to),typeof e.type<"u"&&(n.type=_e[e.type]),typeof e.value<"u"&&(n.value=y(e.value)),n}const lt=$("transactionRequest",V);function we(e){return e.map(t=>({address:t.address,r:t.r?y(BigInt(t.r)):t.r,s:t.s?y(BigInt(t.s)):t.s,chainId:y(t.chainId),nonce:y(t.nonce),...typeof t.yParity<"u"?{yParity:y(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:y(t.v)}:{}}))}const Fe={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function k(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?C(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?C(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Fe[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=ve(e.authorizationList)),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof n.v=="bigint"){if(n.v===0n||n.v===27n)return 0;if(n.v===1n||n.v===28n)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),n.type==="legacy"&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),n.type==="eip2930"&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),n.type==="eip1559"&&delete n.maxFeePerBlobGas,n}const ft=$("transaction",k);function ve(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function H(e,t){const n=(e.transactions??[]).map(r=>typeof r=="string"?r:k(r));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const yt=$("block",H);function Ae(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}const E=new WeakMap;async function W(e){if(E.has(e))return E.get(e);const t=(async()=>{const[n,r,{concatHex:a}]=await Promise.all([Z(e),z(e),f(()=>import("./signing-lMjAMQBI.js").then(i=>i.P),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]))]);return r?a([n,r]):n})();return E.set(e,t),t}async function Z(e){if(e.data===void 0)return"0x";if(typeof e.data=="function"){const t=await e.data();return t||"0x"}return e.data}async function z(e){if(e.extraCallData){if(typeof e.extraCallData=="function"){const t=await e.extraCallData();if(!t)return;if(!t.startsWith("0x"))throw Error("Invalid extra calldata - must be a hex string");return t==="0x"?void 0:t}if(!e.extraCallData.startsWith("0x"))throw Error("Invalid extra calldata - must be a hex string");return e.extraCallData}}const Ge=Object.freeze(Object.defineProperty({__proto__:null,encode:W,getDataFromTx:Z,getExtraCallDataFromTx:z},Symbol.toStringTag,{value:"Module"}));async function Ie(e,t){const n=t.blockTag??"latest",r=t.includeTransactions??!1,a=t.blockNumber!==void 0?oe(t.blockNumber):void 0,i=await e({method:"eth_getBlockByNumber",params:[a||n,r]});if(!i)throw new Error("Block not found");return H(i)}async function Ee(e){const t=await e({method:"eth_maxPriorityFeePerGas"});return U(t)}function J(e,t){const n=e.toString(),r=n[0]==="-"?"-":"",i=(r?n.slice(1):n).padStart(t+1,"0"),s=i.length-t,d=i.slice(0,s)||"0";let c=i.slice(s);for(let o=c.length-1;o>=0;o--){if(c[o]!=="0"){c=c.slice(0,o+1);break}o===0&&(c="")}return`${r}${d}${c?`.${c}`:""}`}function Te(e){return J(e,18)}function I(e,t){e.includes("e")&&(e=Number(e).toFixed(t));let[n,r=""]=e.split(".");const a=n.startsWith("-")?"-":"";if(a&&(n=n.slice(1)),r=r.padEnd(t,"0"),t===0)r[0]&&Number.parseInt(r[0])>=5&&(n=(BigInt(n)+1n).toString()),r="";else if(r.length>t){const i=r[t];i&&Number.parseInt(i,10)>=5?(r=(BigInt(r.substring(0,t))+1n).toString().padStart(t,"0"),r.length>t&&(n=(BigInt(n)+1n).toString(),r=r.substring(r.length-t))):r=r.substring(0,t)}return BigInt(`${a}${n}${r}`)}function Be(e){return I(e,18)}function Se(e){return I(e,9)}const mt=Object.freeze(Object.defineProperty({__proto__:null,fromGwei:Se,toEther:Te,toTokens:J,toUnits:I,toWei:Be},Symbol.toStringTag,{value:"Module"}));async function $e(e){const t=await e({method:"eth_gasPrice"});return U(t)}async function L(e){const{client:t,chain:n,percentMultiplier:r}=e,a=S({chain:n,client:t}),i=await $e(a),s=r?i/BigInt(100)*BigInt(r):0n;return i+s}function v(e){if(e===0n||(e&e-1n)===0n)return e;let t=1n;for(;e>0n;)e>>=1n,t<<=1n;return t}const De=[78600,2040,248,9372,841,842,2016,9768,2442,1942999413,1952959480,994873017,19011,40875,1511670449,5464,2020,2021,98866,1417429182];async function K(e){var s;const[t,n,r,a]=await Promise.all([l(e.maxFeePerGas),l(e.maxPriorityFeePerGas),l(e.gasPrice),l(e.type)]);if(t!==void 0&&n!==void 0)return{maxFeePerGas:t,maxPriorityFeePerGas:n};if(typeof r=="bigint")return{gasPrice:r};const i=await Y(e.client,e.chain,a==="legacy"?"legacy":"eip1559");return(s=e.chain.experimental)!=null&&s.increaseZeroByteCount?i.gasPrice?{gasPrice:v(i.gasPrice)}:{maxFeePerGas:t??v(i.maxFeePerGas??0n),maxPriorityFeePerGas:n??v(i.maxPriorityFeePerGas??0n)}:i.gasPrice!==void 0?i:{maxFeePerGas:t??i.maxFeePerGas,maxPriorityFeePerGas:n??i.maxPriorityFeePerGas}}async function Y(e,t,n){if((n??t.feeType)==="legacy"||De.includes(t.id))return{gasPrice:await L({chain:t,client:e,percentMultiplier:10})};const a=await Ce(e,t);return a.maxFeePerGas!==null&&a.maxPriorityFeePerGas!==null?{maxFeePerGas:a.maxFeePerGas,maxPriorityFeePerGas:a.maxPriorityFeePerGas}:{gasPrice:await L({chain:t,client:e,percentMultiplier:10})}}async function Ce(e,t,n=10){let r=null,a=null;const i=S({chain:t,client:e}),[s,d]=await Promise.all([Ie(i,{blockTag:"latest"}),Ee(i).catch(()=>null)]),c=s==null?void 0:s.baseFeePerGas,o=t.id;return o===220||o===1220?{maxFeePerGas:null,maxPriorityFeePerGas:null}:(o===80002||o===137?a=await Oe(o):d!==null&&(a=d),a==null||c==null?{maxFeePerGas:null,maxPriorityFeePerGas:null}:(a=Re(a,n),r=c*2n+a,(o===42220||o===44787||o===62320)&&(a=r),{maxFeePerGas:r,maxPriorityFeePerGas:a}))}function Re(e,t=10){const n=e/BigInt(100)*BigInt(t);return e+n}function Le(e){switch(e){case 137:return"https://gasstation.polygon.technology/v2";case 80002:return"https://gasstation.polygon.technology/amoy"}}const Me=31n;async function Oe(e){const t=Le(e);try{const r=(await(await fetch(t)).json()).fast.maxPriorityFee;if(r>0){const a=Number.parseFloat(r).toFixed(9);return I(a,9)}}catch(n){console.error("failed to fetch gas",n)}return Me}const pt=Object.freeze(Object.defineProperty({__proto__:null,getDefaultGasOverrides:Y,getGasOverridesForTransaction:K},Symbol.toStringTag,{value:"Module"}));async function Ne(e){if(e.id===1337||e.id===31337)return!1;if(e.id===324||e.id===300||e.id===302||e.id===11124||e.id===282||e.id===388||e.id===4654||e.id===333271||e.id===37111||e.id===978658||e.id===531050104||e.id===4457845||e.id===2741||e.id===240||e.id===555271||e.id===61166||e.id===555272)return!0;try{const{getChainMetadata:t}=await f(async()=>{const{getChainMetadata:r}=await import("./utils-DA456_1A.js").then(a=>a.u);return{getChainMetadata:r}},__vite__mapDeps([2,3,4]));return(await t(e)).stackType==="zksync_stack"}catch{return!1}}const M=/^tuple(?<array>(\[(\d*)\])*)$/;function B(e){let t=e.type;if(M.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let a=0;a<n;a++){const i=e.components[a];t+=B(i),a<n-1&&(t+=", ")}const r=ce(M,e.type);return t+=`)${(r==null?void 0:r.array)??""}`,B({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function F(e){let t="";const n=e.length;for(let r=0;r<n;r++){const a=e[r];t+=B(a),r!==n-1&&(t+=", ")}return t}function Ue(e){var t;return e.type==="function"?`function ${e.name}(${F(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${(t=e.outputs)!=null&&t.length?` returns (${F(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${F(e.inputs)})`:e.type==="error"?`error ${e.name}(${F(e.inputs)})`:e.type==="constructor"?`constructor(${F(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}function je(e){const t=[],n=e.length;for(let r=0;r<n;r++){const a=e[r],i=Ue(a);t.push(i)}return t}function Ve(e){const t=de(e),n=[],r=e.length;for(let a=0;a<r;a++){const i=e[a];ue(i)||n.push(le(i,t))}return n}const ke=Ae({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://11155111.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:8928790}},testnet:!0}),He="https://{clientId}.ipfscdn.io/ipfs/{cid}";function We(e){var t,n;if(e.uri.startsWith("ipfs://")){const r=((n=(t=e.client.config)==null?void 0:t.storage)==null?void 0:n.gatewayUrl)??He,a=e.client.clientId,i=Ze(e.uri);let s;return typeof globalThis<"u"&&"Application"in globalThis&&(s=globalThis.Application.applicationId),`${r.replace("{clientId}",a).split("/ipfs")[0]}/ipfs/${i}${s?`?bundleId=${s}`:""}`}if(e.uri.startsWith("http"))return e.uri;throw new Error('Invalid URI scheme, expected "ipfs://" or "http(s)://"')}function Ze(e){if(!e.startsWith("ipfs://"))return e;const t=e.search(/\/(Qm|baf)/i);return e.slice(t+1)}async function Q(e){var r,a,i,s,d,c,o,g,b;let t;if(e.uri.startsWith("ar://")){const{resolveArweaveScheme:m}=await f(async()=>{const{resolveArweaveScheme:_}=await import("./arweave-BXABR57J.js");return{resolveArweaveScheme:_}},[]);t=m(e)}else t=We(e);const n=await j(e.client)(t,{headers:(i=(a=(r=e.client.config)==null?void 0:r.storage)==null?void 0:a.fetch)==null?void 0:i.headers,keepalive:(c=(d=(s=e.client.config)==null?void 0:s.storage)==null?void 0:d.fetch)==null?void 0:c.keepalive,requestTimeoutMs:e.requestTimeoutMs??((b=(g=(o=e.client.config)==null?void 0:o.storage)==null?void 0:g.fetch)==null?void 0:b.requestTimeoutMs)??6e4});if(!n.ok){const m=await n.text();throw new Error(`Failed to download file: ${n.status} ${n.statusText} ${m||""}`)}return n}const gt=Object.freeze(Object.defineProperty({__proto__:null,download:Q},Symbol.toStringTag,{value:"Module"}));function ze(e,t="https://contract.thirdweb.com/abi"){return pe(async()=>{if(e.abi)return e.abi;if(e.chain.id===31337||e.chain.id===1337||e.chain.id===ke.id)return await O(e);try{return await Je(e,t)}catch{return await O(e)}},{cacheKey:`${e.chain.id}-${e.address}`,cacheTime:1e3*60*60*1})}async function Je(e,t="https://contract.thirdweb.com/abi"){const r=await(await j(e.client)(`${t}/${e.chain.id}/${e.address}`)).json();if(!r||r.error)throw new Error(`Failed to resolve ABI from contract API. ${r.error||""}`);return r}async function X(e){const[{resolveImplementation:t},{extractIPFSUri:n}]=await Promise.all([f(()=>import("./resolveImplementation-CUvrhOz5.js"),__vite__mapDeps([11,10,1,2,3,4,12,5,6,7,8,9,13])),f(()=>import("./extractIPFS-BFJ52Qik.js"),__vite__mapDeps([14,1,2,3,4]))]),{bytecode:r}=await t(e);if(r==="0x"){const{id:i,name:s}=e.chain;throw new Error(`Failed to load contract bytecode. Make sure the contract [${e.address}] exists on the chain [${s||"Unknown Chain"} (chain id: ${i})]`)}const a=n(r);if(!a)return[];try{return(await(await Q({client:e.client,uri:a})).json()).output.abi}catch{return[]}}const Ke={inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"registered",type:"tuple[]"}],stateMutability:"view",type:"function"},Ye={inputs:[],name:"getAllExtensions",outputs:[{components:[{components:[{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"metadataURI",type:"string"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IExtension.ExtensionMetadata",name:"metadata",type:"tuple"},{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"}],internalType:"struct IExtension.ExtensionFunction[]",name:"functions",type:"tuple[]"}],internalType:"struct IExtension.Extension[]",name:"allExtensions",type:"tuple[]"}],stateMutability:"view",type:"function"},Qe={inputs:[],name:"facets",outputs:[{components:[{internalType:"address",name:"facetAddress",type:"address"},{internalType:"bytes4[]",name:"functionSelectors",type:"bytes4[]"}],type:"tuple[]"}],stateMutability:"view",type:"function"};async function O(e,t,n){const[r,a,i,s,d]=await Promise.all([X(e),Xe(e),qe(e),et(e),tt(e)]),c=[...new Set([...a,...i,...s,...d])];if(!c.length)return r;const o=await nt({contract:e,plugins:c,resolveSubAbi:n});return rt({pluginAbis:o,rootAbi:r})}async function Xe(e){try{const{readContract:t}=await f(async()=>{const{readContract:r}=await import("./prepare-contract-call-Cd3rzK4m.js").then(a=>a.c9);return{readContract:r}},__vite__mapDeps([1,2,3,4])),n=await t({contract:e,method:Ke});return n.length?[...new Set(n.map(r=>r.pluginAddress))]:[]}catch{}return[]}async function qe(e){try{const{readContract:t}=await f(async()=>{const{readContract:r}=await import("./prepare-contract-call-Cd3rzK4m.js").then(a=>a.c9);return{readContract:r}},__vite__mapDeps([1,2,3,4])),n=await t({contract:e,method:Ye});return n.length?[...new Set(n.map(r=>r.metadata.implementation))]:[]}catch{}return[]}async function et(e){try{const{getInstalledModules:t}=await f(async()=>{const{getInstalledModules:r}=await import("./getInstalledModules-DgeolJcX.js");return{getInstalledModules:r}},__vite__mapDeps([15,1,2,3,4,16])),n=await t({contract:e});return n.length?[...new Set(n.map(r=>r.implementation))]:[]}catch{}return[]}async function tt(e){try{const{readContract:t}=await f(async()=>{const{readContract:r}=await import("./prepare-contract-call-Cd3rzK4m.js").then(a=>a.c9);return{readContract:r}},__vite__mapDeps([1,2,3,4])),n=await t({contract:e,method:Qe});return n.length?n.map(r=>r.facetAddress):[]}catch{}return[]}async function nt(e){return Promise.all(e.plugins.map(t=>{const n=ge({...e.contract,address:t});return e.resolveSubAbi?e.resolveSubAbi(n):X(n)}))}function rt(e){let t=e.pluginAbis.flat().filter(r=>r.type!=="constructor");e.rootAbi&&(t=[...e.rootAbi,...t].filter(r=>r.type!=="fallback"&&r.type!=="receive").filter(Boolean));const n=[...new Set(je(t))];return Ve(n)}async function N(e){var i;const{error:t,contract:n,fromAddress:r}=e;ye(t)&&n&&me({chainId:(i=n.chain)==null?void 0:i.id,client:n.client,contractAddress:n.address,error:t,walletAddress:r});const a=await at({contract:n,error:t});return a?new it(a,n):t}async function at(e){const{error:t,contract:n}=e;if(typeof t=="object"){const r=t;if(r.data&&r.data!=="0x"&&fe(r.data)){let a=n==null?void 0:n.abi;n&&!a&&(a=await ze(n).catch(()=>{}));const i=be({abi:a,data:r.data});return`${i.errorName}${i.args?` - ${i.args}`:""}`}}return`Execution Reverted: ${xe(t)}`}class it extends Error{constructor(t,n){var a;let r=t;super(r),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"chainId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="TransactionError",this.contractAddress=n==null?void 0:n.address,this.chainId=(a=n==null?void 0:n.chain)==null?void 0:a.id,this.message=r}}const T=new WeakMap;async function q(e){var i,s;const t=typeof e.from=="string"?e.from??void 0:((i=e.from)==null?void 0:i.address)??((s=e.account)==null?void 0:s.address),n={...e.transaction,from:t};if(T.has(n))return T.get(n);const{account:r}=e,a=(async()=>{var p,G;const d=await l(e.transaction.gas);if(d!==void 0)return d;if(r!=null&&r.estimateGas)try{let u=await r.estimateGas(e.transaction);return(p=e.transaction.chain.experimental)!=null&&p.increaseZeroByteCount&&(u=v(u)),u}catch(u){throw await N({contract:e.transaction.__contract,error:u,fromAddress:t})}const{encode:c}=await f(async()=>{const{encode:u}=await Promise.resolve().then(()=>Ge);return{encode:u}},void 0),[o,g,b,m]=await Promise.all([c(e.transaction),l(e.transaction.to),l(e.transaction.value),l(e.transaction.authorizationList)]),[{getRpcClient:_},{eth_estimateGas:A}]=await Promise.all([f(()=>import("./prepare-contract-call-Cd3rzK4m.js").then(u=>u.c8),__vite__mapDeps([1,2,3,4])),f(()=>import("./eth_estimateGas-CZaRMpws.js"),__vite__mapDeps([17,1,2,3,4]))]),x=_(e.transaction);try{const u=V({authorizationList:m==null?void 0:m.map(P=>({...P,address:h(P.address),nonce:Number(P.nonce),r:R(P.r),s:R(P.s)})),data:o,from:t?h(t):void 0,to:g?h(g):void 0,value:b});let w=await A(x,u);return(G=e.transaction.chain.experimental)!=null&&G.increaseZeroByteCount&&(w=v(w)),w}catch(u){throw await N({contract:e.transaction.__contract,error:u,fromAddress:t})}})();return T.set(n,a),a}const Pt=Object.freeze(Object.defineProperty({__proto__:null,estimateGas:q},Symbol.toStringTag,{value:"Module"}));async function ht(e){if(await Ne(e.transaction.chain)){const{getZkGasFees:x}=await f(async()=>{const{getZkGasFees:w}=await import("./send-eip712-transaction-SnaEyRTO.js").then(P=>P.a);return{getZkGasFees:w}},__vite__mapDeps([18,5,4,6,3,7,8,9,19,1,2,0,10,20])),{gas:p,maxFeePerGas:G,maxPriorityFeePerGas:u}=await x({from:typeof e.from=="string"?h(e.from):e.from!==void 0?h(e.from.address):void 0,transaction:e.transaction});e.transaction={...e.transaction,gas:p,maxFeePerGas:G,maxPriorityFeePerGas:u}}const n=S(e.transaction),r=e.transaction.chain.id,a=e.from;let[i,s,d,c,o,g,b,m,_]=await Promise.all([W(e.transaction),(async()=>{const x=await l(e.transaction.nonce);return x!==void 0?x:a?await f(async()=>{const{eth_getTransactionCount:p}=await import("./eth_getTransactionCount-58y45L6E.js");return{eth_getTransactionCount:p}},__vite__mapDeps([21,1,2,3,4])).then(({eth_getTransactionCount:p})=>p(n,{address:typeof a=="string"?h(a):h(a.address),blockTag:"pending"})):void 0})(),q({...e,from:e.from}),K(e.transaction),l(e.transaction.to),l(e.transaction.accessList),l(e.transaction.value),l(e.transaction.authorizationList),l(e.transaction.type)]);const A=await l(e.transaction.extraGas);return A&&(d+=A),{accessList:g,authorizationList:m,chainId:r,data:i,gas:d,nonce:s,to:o,type:_,value:b,...c}}export{L as A,yt as B,Ae as C,ft as D,lt as E,_e as F,ke as G,ut as H,Pe as I,mt as J,pt as K,gt as L,Pt as M,Fe as a,be as b,J as c,$ as d,W as e,I as f,ge as g,Be as h,Y as i,Ne as j,Ue as k,F as l,H as m,k as n,q as o,Ve as p,Te as q,ze as r,xe as s,ht as t,V as u,N as v,$e as w,Ie as x,Ee as y,Se as z};
|
|
3
|
+
//# sourceMappingURL=to-serializable-transaction-BUXwOt0l.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{d,e as a,r as c}from"./prepare-contract-call-Cd3rzK4m.js";import{d as f}from"./detectExtension-D7EH5FOC.js";import"./utils-DA456_1A.js";import"./sentry-B0Y62cGL.js";import"./react-xTOg_zXI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="a5109d7e-54e4-4c4f-95fb-30fe8af93fed",e._sentryDebugIdIdentifier="sentry-dbid-a5109d7e-54e4-4c4f-95fb-30fe8af93fed")}catch{}})();const t="0xbd85b039",n=[{name:"id",type:"uint256"}],r=[{type:"uint256"}];function b(e){return f({availableSelectors:e,method:[t,n,r]})}function i(e){return a(n,[e.id])}function S(e){return t+i(e).slice(2)}function T(e){return d(r,e)[0]}async function _(e){return c({contract:e.contract,method:[t,n,r],params:[e.id]})}export{t as FN_SELECTOR,T as decodeTotalSupplyResult,S as encodeTotalSupply,i as encodeTotalSupplyParams,b as isTotalSupplySupported,_ as totalSupply};
|
|
2
|
+
//# sourceMappingURL=totalSupply-BbOY-Ah8.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as u,B as re}from"./dcl-schemas-B-Ph0Ls4.js";import{c as _,b as x,D as ae,bh as se,l as U,M as ie,h as g,j as y,x as oe,bi as ce,g as de,bj as ue}from"./index-BRNshUaV.js";import"./react-COwX0Zlk.js";import{M as le,E as pe,s as fe}from"./sendMetaTransaction-Cpk-JkUY.js";import{C as l,M as ge,Z as z,J as ye,I as we,p as G,h as A,r as $,a as h,b as L,u as Ae,B as S}from"./ethers-bR7FzlYq.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c47ba80f-4ef0-45c9-b3fc-c8ddffcef90a",e._sentryDebugIdIdentifier="sentry-dbid-c47ba80f-4ef0-45c9-b3fc-c8ddffcef90a")}catch{}})();const O="".trim().toLowerCase(),R={enabled:O!=="0"&&O!=="false",relayerUrl:_.relayerUrl};function qe(){return R.enabled}class E extends Error{constructor(t,n){super(`${t} reverted on-chain`),this.what=t,this.txHash=n,this.name="MetaTxRevertedError"}}class k extends Error{constructor(t,n,r){super(`${t} was submitted but not confirmed in time`),this.what=t,this.txHash=n,this.name="MetaTxPendingError",r&&"cause"in r&&(this.cause=r.cause)}}async function he(e,t,n){const r=p();let a;try{a=await r.waitForTransaction(e,1,(n==null?void 0:n.timeoutMs)??12e4)}catch(s){throw new k(t,e,{cause:s})}if(!a)throw new k(t,e);if(a.status===0)throw new E(t,e);return e}async function We(e){const{txHash:t,what:n,isDone:r,timeoutMs:a=10*6e4,onWaiting:s}=e,i=Math.max(e.pollMs??5e3,50),o=p(),c=Date.now();for(;Date.now()-c<a;){try{if(await r())return t}catch{}try{const d=await o.getTransactionReceipt(t);if(d){if(d.status===0)throw new E(n,t);return t}}catch(d){if(d instanceof E)throw d}s==null||s(Date.now()-c),await new Promise(d=>setTimeout(d,i))}try{if(await r())return t}catch{}throw new k(n,t)}var q=(e=>(e.Allowance="allowance",e.Approval="approval",e.Minter="minter",e))(q||{});const D=["function allowance(address owner, address spender) view returns (uint256)","function approve(address spender, uint256 amount) returns (bool)"],P=["function isApprovedForAll(address owner, address operator) view returns (bool)","function setApprovalForAll(address operator, bool approved)"],N=["function globalMinters(address minter) view returns (bool)","function setMinters(address[] minters, bool[] values)"],W=ge;function p(){return new ye(_.rpcUrl)}async function V(e,t,n){const r=p();switch(e.kind){case"allowance":{const s=await new l(e.contractAddress,D,r).allowance(t,e.spenderAddress);return n==null||n<=0n?s.gt(0):s.gte(n.toString())}case"approval":return new l(e.contractAddress,P,r).isApprovedForAll(t,e.spenderAddress);case"minter":{const a=new l(e.contractAddress,N,r);try{return await a.globalMinters(e.spenderAddress)}catch{return!1}}}}function me(e){return e.kind==="allowance"?g(y.MANAToken,e.chainId):{...g(y.ERC721CollectionV2,e.chainId),address:e.contractAddress}}function xe(e,t){const n=new we(e.kind==="allowance"?D:e.kind==="approval"?P:N);switch(e.kind){case"allowance":return n.encodeFunctionData("approve",[e.spenderAddress,t?W:z]);case"approval":return n.encodeFunctionData("setApprovalForAll",[e.spenderAddress,t]);case"minter":return n.encodeFunctionData("setMinters",[[e.spenderAddress],[t]])}}const ve=new Set(["eth_signTypedData_v4","eth_signTypedData","eth_sign","personal_sign","eth_requestAccounts","eth_accounts","eth_chainId"]);function Te(e,t){return{send:(n,r=[])=>ve.has(n)?e.send(n,r):t.send(n,r)}}async function be(e,t,n){const r=xe(e,n),a=me(e),s=p(),i=Te(t.provider,s),o=await fe(i,s,r,a,{serverURL:R.relayerUrl});await he(o,"the authorization")}function Ie(){var e;try{return((e=oe.getState().session)==null?void 0:e.providerType)??null}catch{return null}}async function Ce(e,t){try{return await ce(e.provider)===t}catch{return!1}}async function Se(e){const{auth:t,signer:n,active:r}=e;if(R.enabled)try{await be(t,n,r);return}catch(a){if(a instanceof le&&a.code===pe.USER_DENIED)throw a;const s=se(Ie()),i=s&&await Ce(n,t.chainId);if(!s||!i)throw U(a,{flow:"authorizations",step:"gasless_no_fallback",reason:s?"wrong-chain":"managed-wallet"}),a;U(a,{flow:"authorizations",step:"gasless_fallback"})}switch(await ie(n.provider,t.chainId),t.kind){case"allowance":{await(await new l(t.contractAddress,D,n).approve(t.spenderAddress,r?W:z)).wait();return}case"approval":{await(await new l(t.contractAddress,P,n).setApprovalForAll(t.spenderAddress,r)).wait();return}case"minter":{await(await new l(t.contractAddress,N,n).setMinters([t.spenderAddress],[r])).wait();return}}}async function Y(e){const t=await e.signer.getAddress();await V(e.auth,t,e.requiredWei)||await Se({auth:e.auth,signer:e.signer,active:!0})}function Ve(e,t){return ae(e)&&!t}function Ye(e,t){return{kind:"allowance",contractAddress:g(y.MANAToken,e).address,spenderAddress:t,chainId:e}}function Ee(e,t){const n=x(t);return{id:`selling:${e.toLowerCase()}`,group:"selling",kind:"approval",contractAddress:e,spenderAddress:n.address,chainId:t}}const B=e=>Math.floor(e/1e3);async function ke(e){return await de()&&await ue()?_.treasuryAddress:e}function m(e){switch(e.assetType){case u.TradeAssetType.ERC721:return e.tokenId;case u.TradeAssetType.COLLECTION_ITEM:return e.itemId;case u.TradeAssetType.ERC20:case u.TradeAssetType.USD_PEGGED_MANA:return e.amount;default:throw new Error(`Unsupported assetType ${String(e.assetType)}`)}}function Z(e){return{checks:{uses:e.checks.uses,expiration:B(e.checks.expiration),effective:B(e.checks.effective),salt:h(e.checks.salt,32),contractSignatureIndex:e.checks.contractSignatureIndex,signerSignatureIndex:e.checks.signerSignatureIndex,allowedRoot:h(e.checks.allowedRoot||"0x",32),externalChecks:(e.checks.externalChecks??[]).map(t=>({contractAddress:t.contractAddress,selector:t.selector,value:t.value?t.value:"0x",required:t.required}))},sent:e.sent.map(t=>({assetType:t.assetType,contractAddress:t.contractAddress,value:m(t),extra:t.extra?t.extra:"0x"})),received:e.received.map(t=>({assetType:t.assetType,contractAddress:t.contractAddress,value:m(t),extra:t.extra?t.extra:"0x",beneficiary:t.beneficiary}))}}const j={Trade:[{name:"checks",type:"Checks"},{name:"sent",type:"AssetWithoutBeneficiary[]"},{name:"received",type:"Asset[]"}],Asset:[{name:"assetType",type:"uint256"},{name:"contractAddress",type:"address"},{name:"value",type:"uint256"},{name:"extra",type:"bytes"},{name:"beneficiary",type:"address"}],AssetWithoutBeneficiary:[{name:"assetType",type:"uint256"},{name:"contractAddress",type:"address"},{name:"value",type:"uint256"},{name:"extra",type:"bytes"}],Checks:[{name:"uses",type:"uint256"},{name:"expiration",type:"uint256"},{name:"effective",type:"uint256"},{name:"salt",type:"bytes32"},{name:"contractSignatureIndex",type:"uint256"},{name:"signerSignatureIndex",type:"uint256"},{name:"allowedRoot",type:"bytes32"},{name:"externalChecks",type:"ExternalCheck[]"}],ExternalCheck:[{name:"contractAddress",type:"address"},{name:"selector",type:"bytes4"},{name:"value",type:"bytes"},{name:"required",type:"bool"}]},H=["function contractSignatureIndex() view returns (uint256)","function signerSignatureIndex(address) view returns (uint256)"];function J(e,t){const n=x(t);return{kind:q.Minter,contractAddress:e,spenderAddress:n.address,chainId:t}}async function Ze(e){const t=Ee(e.contractAddress,e.chainId);await Y({auth:t,signer:e.signer})}async function je(e){const{signer:t,nft:n,usdPrice:r,expiresAtMs:a,fingerprint:s=""}=e,i=(await t.getAddress()).toLowerCase(),o=x(n.chainId),c=g(y.MANAToken,n.chainId),d=new l(o.address,H,p()),T=await d.contractSignatureIndex(),b=await d.signerSignatureIndex(i),f={signer:i,network:n.network,chainId:n.chainId,type:u.TradeType.PUBLIC_NFT_ORDER,checks:{uses:1,expiration:a,effective:Date.now(),salt:A($(32)),contractSignatureIndex:T.toNumber(),signerSignatureIndex:b.toNumber(),allowedRoot:"0x",externalChecks:[]},sent:[{assetType:u.TradeAssetType.ERC721,contractAddress:n.contractAddress,tokenId:n.tokenId,extra:s}],received:[{assetType:u.TradeAssetType.USD_PEGGED_MANA,contractAddress:c.address,amount:G(String(r)).toString(),extra:"",beneficiary:await ke(i)}]},I={name:o.name,version:o.version,salt:h(A(n.chainId),32),verifyingContract:o.address},C=await t._signTypedData(I,j,Z(f));return{...f,signature:C}}async function He(e){return V(J(e.contractAddress,e.chainId),"")}async function Je(e){await Y({auth:J(e.contractAddress,e.chainId),signer:e.signer})}async function Xe(e){const{signer:t,item:n,usdPrice:r,expiresAtMs:a}=e,s=(await t.getAddress()).toLowerCase(),i=x(n.chainId),o=g(y.MANAToken,n.chainId),c=new l(i.address,H,p()),d=await c.contractSignatureIndex(),T=await c.signerSignatureIndex(s),b=Math.max(1,Math.floor(e.uses??1)),f={signer:s,network:n.network,chainId:n.chainId,type:u.TradeType.PUBLIC_ITEM_ORDER,checks:{uses:b,expiration:a,effective:Date.now(),salt:A($(32)),contractSignatureIndex:d.toNumber(),signerSignatureIndex:T.toNumber(),allowedRoot:"0x",externalChecks:[]},sent:[{assetType:u.TradeAssetType.COLLECTION_ITEM,contractAddress:n.contractAddress,itemId:n.itemId,extra:""}],received:[{assetType:u.TradeAssetType.USD_PEGGED_MANA,contractAddress:o.address,amount:G(String(r)).toString(),extra:"",beneficiary:s}]},I={name:i.name,version:i.version,salt:h(A(n.chainId),32),verifyingContract:i.address},C=await t._signTypedData(I,j,Z(f));return{...f,signature:C}}const{defaultAbiCoder:w,Interface:v,hexZeroPad:M,hexlify:Me,randomBytes:_e}=Ae,Re="tuple(address collection,uint256[] ids,uint256[] prices,address[] beneficiaries)[]",X="tuple(address signer,bytes signature,tuple(uint256 uses,uint256 expiration,uint256 effective,bytes32 salt,uint256 contractSignatureIndex,uint256 signerSignatureIndex,bytes32 allowedRoot,bytes32[] allowedProof,tuple(address contractAddress,bytes4 selector,bytes value,bool required)[] externalChecks) checks,tuple(uint256 assetType,address contractAddress,uint256 value,address beneficiary,bytes extra)[] sent,tuple(uint256 assetType,address contractAddress,uint256 value,address beneficiary,bytes extra)[] received)[]",De="tuple(bytes signature,tuple(uint256 uses,uint256 expiration,uint256 effective,bytes32 salt,uint256 contractSignatureIndex,uint256 signerSignatureIndex,bytes32 allowedRoot,bytes32[] allowedProof,tuple(address contractAddress,bytes4 selector,bytes value,bool required)[] externalChecks) checks,address couponAddress,bytes data,bytes callerData)[]",Q="0x"+"0".repeat(64),F=e=>{const t=Number(e);return t>1e12?Math.floor(t/1e3):t};function K(e,t){return{signer:e.signer,signature:e.signature,checks:ee(e.checks),sent:e.sent.map(n=>({assetType:n.assetType,contractAddress:n.contractAddress,value:m(n),beneficiary:t,extra:n.extra||"0x"})),received:e.received.map(n=>({assetType:n.assetType,contractAddress:n.contractAddress,value:m(n),beneficiary:"beneficiary"in n&&n.beneficiary?n.beneficiary:t,extra:n.extra||"0x"}))}}function Pe(e,t,n){const r=new v(n).getSighash("accept"),a=w.encode([X],[e.map(s=>K(s,t))]);return{selector:r,data:a}}function ee(e){return{uses:e.uses,expiration:F(e.expiration),effective:F(e.effective),salt:M(e.salt,32),contractSignatureIndex:e.contractSignatureIndex,signerSignatureIndex:e.signerSignatureIndex,allowedRoot:e.allowedRoot&&e.allowedRoot!=="0x"?e.allowedRoot:Q,allowedProof:[],externalChecks:(e.externalChecks??[]).map(t=>({contractAddress:t.contractAddress,selector:t.selector,value:t.value,required:t.required}))}}function Ne(e,t=1){return{signature:e.signature,checks:ee(e.checks),couponAddress:e.couponAddress,data:w.encode(["uint256","uint256","bytes32"],[e.discountType,e.discount,e.root]),callerData:w.encode(["tuple(bytes32[][] proofs)"],[{proofs:Array.from({length:Math.max(1,t)},()=>e.proof)}])}}function Ue(e,t,n,r){if(e.length!==t.length)throw new Error(`acceptWithCoupon needs one coupon per trade, got ${t.length} for ${e.length} trades`);const a=new v(r).getSighash("acceptWithCoupon"),s=w.encode([X,De],[e.map(i=>K(i,n)),t.map((i,o)=>Ne(i,e[o].sent.length))]);return{selector:a,data:s}}function Qe(e){if(e!==80002)return{};const t=L("30","gwei");return{maxPriorityFeePerGas:t,maxFeePerGas:t.add(L("50","gwei"))}}function Le(e){return e?e.startsWith("0x")?M(e,32):M("0x"+re.from(e).toString("hex"),32):Q}function Ke(e,t,n,r,a,s,i){const{selector:o,data:c}=i!=null&&i.length?Ue(n,i,r,t):Pe(n,r,t);return ne({target:e,selector:o,data:c,credits:a,maxCreditedValue:s})}function te(e,t){return e.map(n=>({collection:n.collection,ids:[n.itemId],prices:[n.priceWei],beneficiaries:[t]}))}function Oe(e,t,n){const r=new v(n).getSighash("buy"),a=w.encode([Re],[te(e,t)]);return{selector:r,data:a}}function et(e,t,n){return new v(n).encodeFunctionData("buy",[te(e,t)])}function tt(e,t,n,r,a,s){const{selector:i,data:o}=Oe(n,r,t);return ne({target:e,selector:i,data:o,credits:a,maxCreditedValue:s})}function ne(e){const{target:t,selector:n,data:r,credits:a,maxCreditedValue:s}=e,i=a.reduce((c,d)=>c.add(S.from(d.availableAmount)),S.from(0)),o=S.from(s).sub(i);return{credits:a.map(c=>({value:c.amount,expiresAt:Number(c.expiresAt),salt:Le(c.id)})),creditsSignatures:a.map(c=>c.signature),externalCall:{target:t,selector:n,data:r,expiresAt:Math.floor(Date.now()/1e3)+3600*24,salt:Me(_e(32))},customExternalCallSignature:"0x",maxUncreditedValue:o.isNegative()?"0":o.toString(),maxCreditedValue:s}}export{q as A,te as B,Le as C,E as M,j as O,Ee as a,Ze as b,Xe as c,je as d,Je as e,R as f,V as g,tt as h,He as i,Ke as j,Qe as k,K as l,k as m,Te as n,We as o,he as p,qe as q,p as r,Ye as s,Ve as t,Y as u,Se as v,Ne as w,Ue as x,Pe as y,et as z};
|
|
2
|
-
//# sourceMappingURL=trade-encoding-
|
|
1
|
+
import{d as u,B as re}from"./dcl-schemas-D-5rZ83i.js";import{c as _,b as x,D as ae,bh as se,l as U,M as ie,h as g,j as y,x as oe,bi as ce,g as de,bj as ue}from"./index-x3_oOTlT.js";import"./react-xTOg_zXI.js";import{M as le,E as pe,s as fe}from"./sendMetaTransaction-BVZGqOEK.js";import{C as l,M as ge,Z as z,J as ye,I as we,p as G,h as A,r as $,a as h,b as L,u as Ae,B as S}from"./ethers-CopgDOSY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c47ba80f-4ef0-45c9-b3fc-c8ddffcef90a",e._sentryDebugIdIdentifier="sentry-dbid-c47ba80f-4ef0-45c9-b3fc-c8ddffcef90a")}catch{}})();const O="".trim().toLowerCase(),R={enabled:O!=="0"&&O!=="false",relayerUrl:_.relayerUrl};function qe(){return R.enabled}class E extends Error{constructor(t,n){super(`${t} reverted on-chain`),this.what=t,this.txHash=n,this.name="MetaTxRevertedError"}}class k extends Error{constructor(t,n,r){super(`${t} was submitted but not confirmed in time`),this.what=t,this.txHash=n,this.name="MetaTxPendingError",r&&"cause"in r&&(this.cause=r.cause)}}async function he(e,t,n){const r=p();let a;try{a=await r.waitForTransaction(e,1,(n==null?void 0:n.timeoutMs)??12e4)}catch(s){throw new k(t,e,{cause:s})}if(!a)throw new k(t,e);if(a.status===0)throw new E(t,e);return e}async function We(e){const{txHash:t,what:n,isDone:r,timeoutMs:a=10*6e4,onWaiting:s}=e,i=Math.max(e.pollMs??5e3,50),o=p(),c=Date.now();for(;Date.now()-c<a;){try{if(await r())return t}catch{}try{const d=await o.getTransactionReceipt(t);if(d){if(d.status===0)throw new E(n,t);return t}}catch(d){if(d instanceof E)throw d}s==null||s(Date.now()-c),await new Promise(d=>setTimeout(d,i))}try{if(await r())return t}catch{}throw new k(n,t)}var q=(e=>(e.Allowance="allowance",e.Approval="approval",e.Minter="minter",e))(q||{});const D=["function allowance(address owner, address spender) view returns (uint256)","function approve(address spender, uint256 amount) returns (bool)"],P=["function isApprovedForAll(address owner, address operator) view returns (bool)","function setApprovalForAll(address operator, bool approved)"],N=["function globalMinters(address minter) view returns (bool)","function setMinters(address[] minters, bool[] values)"],W=ge;function p(){return new ye(_.rpcUrl)}async function V(e,t,n){const r=p();switch(e.kind){case"allowance":{const s=await new l(e.contractAddress,D,r).allowance(t,e.spenderAddress);return n==null||n<=0n?s.gt(0):s.gte(n.toString())}case"approval":return new l(e.contractAddress,P,r).isApprovedForAll(t,e.spenderAddress);case"minter":{const a=new l(e.contractAddress,N,r);try{return await a.globalMinters(e.spenderAddress)}catch{return!1}}}}function me(e){return e.kind==="allowance"?g(y.MANAToken,e.chainId):{...g(y.ERC721CollectionV2,e.chainId),address:e.contractAddress}}function xe(e,t){const n=new we(e.kind==="allowance"?D:e.kind==="approval"?P:N);switch(e.kind){case"allowance":return n.encodeFunctionData("approve",[e.spenderAddress,t?W:z]);case"approval":return n.encodeFunctionData("setApprovalForAll",[e.spenderAddress,t]);case"minter":return n.encodeFunctionData("setMinters",[[e.spenderAddress],[t]])}}const ve=new Set(["eth_signTypedData_v4","eth_signTypedData","eth_sign","personal_sign","eth_requestAccounts","eth_accounts","eth_chainId"]);function Te(e,t){return{send:(n,r=[])=>ve.has(n)?e.send(n,r):t.send(n,r)}}async function be(e,t,n){const r=xe(e,n),a=me(e),s=p(),i=Te(t.provider,s),o=await fe(i,s,r,a,{serverURL:R.relayerUrl});await he(o,"the authorization")}function Ie(){var e;try{return((e=oe.getState().session)==null?void 0:e.providerType)??null}catch{return null}}async function Ce(e,t){try{return await ce(e.provider)===t}catch{return!1}}async function Se(e){const{auth:t,signer:n,active:r}=e;if(R.enabled)try{await be(t,n,r);return}catch(a){if(a instanceof le&&a.code===pe.USER_DENIED)throw a;const s=se(Ie()),i=s&&await Ce(n,t.chainId);if(!s||!i)throw U(a,{flow:"authorizations",step:"gasless_no_fallback",reason:s?"wrong-chain":"managed-wallet"}),a;U(a,{flow:"authorizations",step:"gasless_fallback"})}switch(await ie(n.provider,t.chainId),t.kind){case"allowance":{await(await new l(t.contractAddress,D,n).approve(t.spenderAddress,r?W:z)).wait();return}case"approval":{await(await new l(t.contractAddress,P,n).setApprovalForAll(t.spenderAddress,r)).wait();return}case"minter":{await(await new l(t.contractAddress,N,n).setMinters([t.spenderAddress],[r])).wait();return}}}async function Y(e){const t=await e.signer.getAddress();await V(e.auth,t,e.requiredWei)||await Se({auth:e.auth,signer:e.signer,active:!0})}function Ve(e,t){return ae(e)&&!t}function Ye(e,t){return{kind:"allowance",contractAddress:g(y.MANAToken,e).address,spenderAddress:t,chainId:e}}function Ee(e,t){const n=x(t);return{id:`selling:${e.toLowerCase()}`,group:"selling",kind:"approval",contractAddress:e,spenderAddress:n.address,chainId:t}}const B=e=>Math.floor(e/1e3);async function ke(e){return await de()&&await ue()?_.treasuryAddress:e}function m(e){switch(e.assetType){case u.TradeAssetType.ERC721:return e.tokenId;case u.TradeAssetType.COLLECTION_ITEM:return e.itemId;case u.TradeAssetType.ERC20:case u.TradeAssetType.USD_PEGGED_MANA:return e.amount;default:throw new Error(`Unsupported assetType ${String(e.assetType)}`)}}function Z(e){return{checks:{uses:e.checks.uses,expiration:B(e.checks.expiration),effective:B(e.checks.effective),salt:h(e.checks.salt,32),contractSignatureIndex:e.checks.contractSignatureIndex,signerSignatureIndex:e.checks.signerSignatureIndex,allowedRoot:h(e.checks.allowedRoot||"0x",32),externalChecks:(e.checks.externalChecks??[]).map(t=>({contractAddress:t.contractAddress,selector:t.selector,value:t.value?t.value:"0x",required:t.required}))},sent:e.sent.map(t=>({assetType:t.assetType,contractAddress:t.contractAddress,value:m(t),extra:t.extra?t.extra:"0x"})),received:e.received.map(t=>({assetType:t.assetType,contractAddress:t.contractAddress,value:m(t),extra:t.extra?t.extra:"0x",beneficiary:t.beneficiary}))}}const j={Trade:[{name:"checks",type:"Checks"},{name:"sent",type:"AssetWithoutBeneficiary[]"},{name:"received",type:"Asset[]"}],Asset:[{name:"assetType",type:"uint256"},{name:"contractAddress",type:"address"},{name:"value",type:"uint256"},{name:"extra",type:"bytes"},{name:"beneficiary",type:"address"}],AssetWithoutBeneficiary:[{name:"assetType",type:"uint256"},{name:"contractAddress",type:"address"},{name:"value",type:"uint256"},{name:"extra",type:"bytes"}],Checks:[{name:"uses",type:"uint256"},{name:"expiration",type:"uint256"},{name:"effective",type:"uint256"},{name:"salt",type:"bytes32"},{name:"contractSignatureIndex",type:"uint256"},{name:"signerSignatureIndex",type:"uint256"},{name:"allowedRoot",type:"bytes32"},{name:"externalChecks",type:"ExternalCheck[]"}],ExternalCheck:[{name:"contractAddress",type:"address"},{name:"selector",type:"bytes4"},{name:"value",type:"bytes"},{name:"required",type:"bool"}]},H=["function contractSignatureIndex() view returns (uint256)","function signerSignatureIndex(address) view returns (uint256)"];function J(e,t){const n=x(t);return{kind:q.Minter,contractAddress:e,spenderAddress:n.address,chainId:t}}async function Ze(e){const t=Ee(e.contractAddress,e.chainId);await Y({auth:t,signer:e.signer})}async function je(e){const{signer:t,nft:n,usdPrice:r,expiresAtMs:a,fingerprint:s=""}=e,i=(await t.getAddress()).toLowerCase(),o=x(n.chainId),c=g(y.MANAToken,n.chainId),d=new l(o.address,H,p()),T=await d.contractSignatureIndex(),b=await d.signerSignatureIndex(i),f={signer:i,network:n.network,chainId:n.chainId,type:u.TradeType.PUBLIC_NFT_ORDER,checks:{uses:1,expiration:a,effective:Date.now(),salt:A($(32)),contractSignatureIndex:T.toNumber(),signerSignatureIndex:b.toNumber(),allowedRoot:"0x",externalChecks:[]},sent:[{assetType:u.TradeAssetType.ERC721,contractAddress:n.contractAddress,tokenId:n.tokenId,extra:s}],received:[{assetType:u.TradeAssetType.USD_PEGGED_MANA,contractAddress:c.address,amount:G(String(r)).toString(),extra:"",beneficiary:await ke(i)}]},I={name:o.name,version:o.version,salt:h(A(n.chainId),32),verifyingContract:o.address},C=await t._signTypedData(I,j,Z(f));return{...f,signature:C}}async function He(e){return V(J(e.contractAddress,e.chainId),"")}async function Je(e){await Y({auth:J(e.contractAddress,e.chainId),signer:e.signer})}async function Xe(e){const{signer:t,item:n,usdPrice:r,expiresAtMs:a}=e,s=(await t.getAddress()).toLowerCase(),i=x(n.chainId),o=g(y.MANAToken,n.chainId),c=new l(i.address,H,p()),d=await c.contractSignatureIndex(),T=await c.signerSignatureIndex(s),b=Math.max(1,Math.floor(e.uses??1)),f={signer:s,network:n.network,chainId:n.chainId,type:u.TradeType.PUBLIC_ITEM_ORDER,checks:{uses:b,expiration:a,effective:Date.now(),salt:A($(32)),contractSignatureIndex:d.toNumber(),signerSignatureIndex:T.toNumber(),allowedRoot:"0x",externalChecks:[]},sent:[{assetType:u.TradeAssetType.COLLECTION_ITEM,contractAddress:n.contractAddress,itemId:n.itemId,extra:""}],received:[{assetType:u.TradeAssetType.USD_PEGGED_MANA,contractAddress:o.address,amount:G(String(r)).toString(),extra:"",beneficiary:s}]},I={name:i.name,version:i.version,salt:h(A(n.chainId),32),verifyingContract:i.address},C=await t._signTypedData(I,j,Z(f));return{...f,signature:C}}const{defaultAbiCoder:w,Interface:v,hexZeroPad:M,hexlify:Me,randomBytes:_e}=Ae,Re="tuple(address collection,uint256[] ids,uint256[] prices,address[] beneficiaries)[]",X="tuple(address signer,bytes signature,tuple(uint256 uses,uint256 expiration,uint256 effective,bytes32 salt,uint256 contractSignatureIndex,uint256 signerSignatureIndex,bytes32 allowedRoot,bytes32[] allowedProof,tuple(address contractAddress,bytes4 selector,bytes value,bool required)[] externalChecks) checks,tuple(uint256 assetType,address contractAddress,uint256 value,address beneficiary,bytes extra)[] sent,tuple(uint256 assetType,address contractAddress,uint256 value,address beneficiary,bytes extra)[] received)[]",De="tuple(bytes signature,tuple(uint256 uses,uint256 expiration,uint256 effective,bytes32 salt,uint256 contractSignatureIndex,uint256 signerSignatureIndex,bytes32 allowedRoot,bytes32[] allowedProof,tuple(address contractAddress,bytes4 selector,bytes value,bool required)[] externalChecks) checks,address couponAddress,bytes data,bytes callerData)[]",Q="0x"+"0".repeat(64),F=e=>{const t=Number(e);return t>1e12?Math.floor(t/1e3):t};function K(e,t){return{signer:e.signer,signature:e.signature,checks:ee(e.checks),sent:e.sent.map(n=>({assetType:n.assetType,contractAddress:n.contractAddress,value:m(n),beneficiary:t,extra:n.extra||"0x"})),received:e.received.map(n=>({assetType:n.assetType,contractAddress:n.contractAddress,value:m(n),beneficiary:"beneficiary"in n&&n.beneficiary?n.beneficiary:t,extra:n.extra||"0x"}))}}function Pe(e,t,n){const r=new v(n).getSighash("accept"),a=w.encode([X],[e.map(s=>K(s,t))]);return{selector:r,data:a}}function ee(e){return{uses:e.uses,expiration:F(e.expiration),effective:F(e.effective),salt:M(e.salt,32),contractSignatureIndex:e.contractSignatureIndex,signerSignatureIndex:e.signerSignatureIndex,allowedRoot:e.allowedRoot&&e.allowedRoot!=="0x"?e.allowedRoot:Q,allowedProof:[],externalChecks:(e.externalChecks??[]).map(t=>({contractAddress:t.contractAddress,selector:t.selector,value:t.value,required:t.required}))}}function Ne(e,t=1){return{signature:e.signature,checks:ee(e.checks),couponAddress:e.couponAddress,data:w.encode(["uint256","uint256","bytes32"],[e.discountType,e.discount,e.root]),callerData:w.encode(["tuple(bytes32[][] proofs)"],[{proofs:Array.from({length:Math.max(1,t)},()=>e.proof)}])}}function Ue(e,t,n,r){if(e.length!==t.length)throw new Error(`acceptWithCoupon needs one coupon per trade, got ${t.length} for ${e.length} trades`);const a=new v(r).getSighash("acceptWithCoupon"),s=w.encode([X,De],[e.map(i=>K(i,n)),t.map((i,o)=>Ne(i,e[o].sent.length))]);return{selector:a,data:s}}function Qe(e){if(e!==80002)return{};const t=L("30","gwei");return{maxPriorityFeePerGas:t,maxFeePerGas:t.add(L("50","gwei"))}}function Le(e){return e?e.startsWith("0x")?M(e,32):M("0x"+re.from(e).toString("hex"),32):Q}function Ke(e,t,n,r,a,s,i){const{selector:o,data:c}=i!=null&&i.length?Ue(n,i,r,t):Pe(n,r,t);return ne({target:e,selector:o,data:c,credits:a,maxCreditedValue:s})}function te(e,t){return e.map(n=>({collection:n.collection,ids:[n.itemId],prices:[n.priceWei],beneficiaries:[t]}))}function Oe(e,t,n){const r=new v(n).getSighash("buy"),a=w.encode([Re],[te(e,t)]);return{selector:r,data:a}}function et(e,t,n){return new v(n).encodeFunctionData("buy",[te(e,t)])}function tt(e,t,n,r,a,s){const{selector:i,data:o}=Oe(n,r,t);return ne({target:e,selector:i,data:o,credits:a,maxCreditedValue:s})}function ne(e){const{target:t,selector:n,data:r,credits:a,maxCreditedValue:s}=e,i=a.reduce((c,d)=>c.add(S.from(d.availableAmount)),S.from(0)),o=S.from(s).sub(i);return{credits:a.map(c=>({value:c.amount,expiresAt:Number(c.expiresAt),salt:Le(c.id)})),creditsSignatures:a.map(c=>c.signature),externalCall:{target:t,selector:n,data:r,expiresAt:Math.floor(Date.now()/1e3)+3600*24,salt:Me(_e(32))},customExternalCallSignature:"0x",maxUncreditedValue:o.isNegative()?"0":o.toString(),maxCreditedValue:s}}export{q as A,te as B,Le as C,E as M,j as O,Ee as a,Ze as b,Xe as c,je as d,Je as e,R as f,V as g,tt as h,He as i,Ke as j,Qe as k,K as l,k as m,Te as n,We as o,he as p,qe as q,p as r,Ye as s,Ve as t,Y as u,Se as v,Ne as w,Ue as x,Pe as y,et as z};
|
|
2
|
+
//# sourceMappingURL=trade-encoding-BeeCLIbm.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{o as i,s as a}from"./prepare-contract-call-
|
|
2
|
-
//# sourceMappingURL=transaction-
|
|
1
|
+
import{o as i,s as a}from"./prepare-contract-call-Cd3rzK4m.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="3e3a3b85-51d3-4d46-a722-29fda8cc5e51",n._sentryDebugIdIdentifier="sentry-dbid-3e3a3b85-51d3-4d46-a722-29fda8cc5e51")}catch{}})();function l(n){var s;if(!n)return!1;const t=(typeof n=="string"?n:(n==null?void 0:n.message)||((s=n==null?void 0:n.data)==null?void 0:s.message)||"").toLowerCase();return t.includes("insufficient funds")||t.includes("insufficient balance")||t.includes("insufficient")&&(t.includes("native")||t.includes("gas"))||(n==null?void 0:n.code)==="INSUFFICIENT_FUNDS"||(n==null?void 0:n.reason)==="insufficient funds"}function d(n){var s;if(!n)return{message:"Unknown error"};const e=typeof n=="string"?n:(n==null?void 0:n.message)||((s=n==null?void 0:n.data)==null?void 0:s.message)||String(n);return{code:(n==null?void 0:n.code)||(n==null?void 0:n.reason),message:e}}async function o(n){return u({...n,action:"transaction:sent"})}function u(n){return i({client:n.client,data:{action:n.action,chainId:n.chainId,clientId:n.client.clientId,contractAddress:n.contractAddress,errorCode:a(n.error),functionName:n.functionName,gasPrice:n.gasPrice,transactionHash:n.transactionHash,walletAddress:n.walletAddress,walletType:n.walletType},ecosystem:n.ecosystem})}async function m(n){var t,s,c;const e=d(n.error);return i({client:n.client,data:{action:"transaction:insufficient_funds",chainId:n.chainId,clientId:n.client.clientId,contractAddress:n.contractAddress,errorCode:e.code?a(e.code):void 0,errorMessage:e.message,functionName:n.functionName,requiredAmount:(t=n.requiredAmount)==null?void 0:t.toString(),transactionValue:(s=n.transactionValue)==null?void 0:s.toString(),userBalance:(c=n.userBalance)==null?void 0:c.toString(),walletAddress:n.walletAddress},ecosystem:n.ecosystem})}export{m as a,l as i,o as t};
|
|
2
|
+
//# sourceMappingURL=transaction-f7fSDSEv.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{m as e}from"./prepare-contract-call-Cd3rzK4m.js";import{d as b,a as r}from"./to-serializable-transaction-BUXwOt0l.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new s.Error().stack;l&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[l]="95f5bd38-dd6f-49d6-b722-b428085d2055",s._sentryDebugIdIdentifier="sentry-dbid-95f5bd38-dd6f-49d6-b722-b428085d2055")}catch{}})();function n(s,{args:l,eventName:d}={}){return{...s,blockHash:s.blockHash?s.blockHash:null,blockNumber:s.blockNumber?BigInt(s.blockNumber):null,logIndex:s.logIndex?Number(s.logIndex):null,transactionHash:s.transactionHash?s.transactionHash:null,transactionIndex:s.transactionIndex?Number(s.transactionIndex):null,...d?{args:l,eventName:d}:{}}}const f={"0x0":"reverted","0x1":"success"};function o(s,l){const d={...s,blockNumber:s.blockNumber?BigInt(s.blockNumber):null,contractAddress:s.contractAddress?s.contractAddress:null,cumulativeGasUsed:s.cumulativeGasUsed?BigInt(s.cumulativeGasUsed):null,effectiveGasPrice:s.effectiveGasPrice?BigInt(s.effectiveGasPrice):null,gasUsed:s.gasUsed?BigInt(s.gasUsed):null,logs:s.logs?s.logs.map(u=>n(u)):null,to:s.to?s.to:null,transactionIndex:s.transactionIndex?e(s.transactionIndex):null,status:s.status?f[s.status]:null,type:s.type?r[s.type]||s.type:null};return s.blobGasPrice&&(d.blobGasPrice=BigInt(s.blobGasPrice)),s.blobGasUsed&&(d.blobGasUsed=BigInt(s.blobGasUsed)),d}const m=b("transactionReceipt",o);export{n as a,m as d,o as f,f as r};
|
|
2
|
+
//# sourceMappingURL=transactionReceipt-BNvHMRIb.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import{a as m,i as s,b as c}from"./lit-element-wjYUA6aF.js";import"./index-Cw3ZjlHu.js";import{c as d}from"./index-CVvFzoi-.js";import"./index-BGXJtQVe.js";import"./index-x3_oOTlT.js";import"./react-xTOg_zXI.js";import"./dcl-schemas-D-5rZ83i.js";import"./sentry-B0Y62cGL.js";import"./ethers-CopgDOSY.js";import"./intl-AKLEHPeO.js";import"./W3MFrameProviderSingleton-B4cXTRps.js";import"./index-CS-Fo7Dd.js";import"./index-CEosqueA.js";import"./events-Ws3Yj1Vh.js";import"./browser-ponyfill-DjCvoPa9.js";import"./NetworkUtil-Dn6I5ZVR.js";import"./index-Be5CQ9Ek.js";import"./index-OpYIGLSa.js";import"./index-Co7rAvqY.js";import"./index.es-DvYgO4WC.js";import"./class-map-BxMzgOIb.js";import"./index-BhQyMuiB.js";import"./index-DVU_sbVS.js";import"./index-B0jKErn5.js";import"./index-DwSlWQJc.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="9b52bfc8-8dcc-426e-bbe6-b17282968619",t._sentryDebugIdIdentifier="sentry-dbid-9b52bfc8-8dcc-426e-bbe6-b17282968619")}catch{}})();const a=m`
|
|
2
|
+
:host > wui-flex:first-child {
|
|
3
|
+
height: 500px;
|
|
4
|
+
overflow-y: auto;
|
|
5
|
+
overflow-x: hidden;
|
|
6
|
+
scrollbar-width: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:host > wui-flex:first-child::-webkit-scrollbar {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
`;var b=function(t,e,o,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,o):r,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,r);else for(var f=t.length-1;f>=0;f--)(p=t[f])&&(i=(n<3?p(i):n>3?p(e,o,i):p(e,o))||i);return n>3&&i&&Object.defineProperty(e,o,i),i};let l=class extends s{render(){return c`
|
|
13
|
+
<wui-flex flexDirection="column" .padding=${["0","3","3","3"]} gap="3">
|
|
14
|
+
<w3m-activity-list page="activity"></w3m-activity-list>
|
|
15
|
+
</wui-flex>
|
|
16
|
+
`}};l.styles=a;l=b([d("w3m-transactions-view")],l);export{l as W3mTransactionsView};
|
|
17
|
+
//# sourceMappingURL=transactions-swTuiqzl.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as
|
|
1
|
+
import{w as i}from"./lit-element-wjYUA6aF.js";(function(){try{var f=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new f.Error().stack;l&&(f._sentryDebugIds=f._sentryDebugIds||{},f._sentryDebugIds[l]="f573bfac-fb51-46d1-95ba-0475a3d0cc08",f._sentryDebugIdIdentifier="sentry-dbid-f573bfac-fb51-46d1-95ba-0475a3d0cc08")}catch{}})();const d=i`<svg fill="none" viewBox="0 0 40 40">
|
|
2
2
|
<g clip-path="url(#a)">
|
|
3
3
|
<g clip-path="url(#b)">
|
|
4
4
|
<circle cx="20" cy="19.89" r="20" fill="#5A3E85" />
|
|
@@ -16,4 +16,4 @@ import{w as l}from"./lit-element-wjYUA6aF.js";(function(){try{var f=typeof windo
|
|
|
16
16
|
<clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath>
|
|
17
17
|
</defs>
|
|
18
18
|
</svg>`;export{d as twitchSvg};
|
|
19
|
-
//# sourceMappingURL=twitch-
|
|
19
|
+
//# sourceMappingURL=twitch-BJQCmiGz.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{w as n}from"./lit-element-wjYUA6aF.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="
|
|
1
|
+
import{w as n}from"./lit-element-wjYUA6aF.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="2d842e0d-8707-45c3-9779-ac523100dced",e._sentryDebugIdIdentifier="sentry-dbid-2d842e0d-8707-45c3-9779-ac523100dced")}catch{}})();const r=n`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
d="m14.36 4.74.01.42c0 4.34-3.3 9.34-9.34 9.34A9.3 9.3 0 0 1 0 13.03a6.6 6.6 0 0 0 4.86-1.36 3.29 3.29 0 0 1-3.07-2.28c.5.1 1 .07 1.48-.06A3.28 3.28 0 0 1 .64 6.11v-.04c.46.26.97.4 1.49.41A3.29 3.29 0 0 1 1.11 2.1a9.32 9.32 0 0 0 6.77 3.43 3.28 3.28 0 0 1 5.6-3 6.59 6.59 0 0 0 2.08-.8 3.3 3.3 0 0 1-1.45 1.82A6.53 6.53 0 0 0 16 3.04c-.44.66-1 1.23-1.64 1.7Z"
|
|
5
5
|
/>
|
|
6
6
|
</svg>`;export{r as twitterIconSvg};
|
|
7
|
-
//# sourceMappingURL=twitterIcon-
|
|
7
|
+
//# sourceMappingURL=twitterIcon-B78o99Zv.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{az as b,aA as x,aB as p,aC as N,aD as y}from"./index-
|
|
2
|
-
//# sourceMappingURL=useInfiniteGrid-
|
|
1
|
+
import{az as b,aA as x,aB as p,aC as N,aD as y}from"./index-x3_oOTlT.js";import"./react-xTOg_zXI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="39f555b2-006d-4e8e-a520-608c0658bbbc",e._sentryDebugIdIdentifier="sentry-dbid-39f555b2-006d-4e8e-a520-608c0658bbbc")}catch{}})();var v=class extends b{constructor(e,r){super(e,r)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,r){var P,l;const{state:i}=e,t=super.createResult(e,r),{isFetching:o,isRefetching:g,isError:n,isRefetchError:h}=t,a=(l=(P=i.fetchMeta)==null?void 0:P.fetchMore)==null?void 0:l.direction,s=n&&a==="forward",u=o&&a==="forward",c=n&&a==="backward",d=o&&a==="backward";return{...t,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:p(r,i.data),hasPreviousPage:x(r,i.data),isFetchNextPageError:s,isFetchingNextPage:u,isFetchPreviousPageError:c,isFetchingPreviousPage:d,isRefetchError:h&&!s&&!c,isRefetching:g&&!u&&!d}}};function m(e,r){return N(e,v)}function E(e,r,i={}){var n,h,a;const t=m({queryKey:e,enabled:i.enabled,queryFn:({pageParam:s})=>r(s),initialPageParam:0,getNextPageParam:(s,u)=>{if(s.items.length===0)return;const c=u.reduce((d,f)=>d+f.items.length,0);return c<s.total?c:void 0},placeholderData:y}),o=(((n=t.data)==null?void 0:n.pages)??[]).flatMap(s=>s.items),g=((a=(h=t.data)==null?void 0:h.pages[0])==null?void 0:a.total)??0;return{items:o,total:g,isLoading:t.isLoading,isPlaceholderData:t.isPlaceholderData,isError:t.isError,error:t.error,hasNextPage:t.hasNextPage,isFetchingNextPage:t.isFetchingNextPage,isFetchNextPageError:t.isFetchNextPageError,fetchNextPage:t.fetchNextPage}}export{E as u};
|
|
2
|
+
//# sourceMappingURL=useInfiniteGrid-BEX_xsnJ.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-BpUtXe3X.js","_assets/react-xTOg_zXI.js","_assets/index-C6gyBlSG.js","_assets/sentry-B0Y62cGL.js","_assets/index-BYR5agWV.js","_assets/index-CMSu9Fi8.js","_assets/index-BMNT4Vj8.js","_assets/ethers-CopgDOSY.js","_assets/events-Ws3Yj1Vh.js","_assets/dcl-schemas-D-5rZ83i.js","_assets/DeploymentBuilder-DFQ5QdOZ.js","_assets/ContentClient-DTdXtBSl.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as h,v as b,c as v,l as _,w as k}from"./index-x3_oOTlT.js";import{d as g}from"./dcl-schemas-D-5rZ83i.js";import"./react-xTOg_zXI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a7e07e65-f87e-42d2-a7bf-0126be2ef76f",e._sentryDebugIdIdentifier="sentry-dbid-a7e07e65-f87e-42d2-a7bf-0126be2ef76f")}catch{}})();const w=()=>({cover:"",coverHash:"",description:"",links:{website:"",twitter:"",discord:"",facebook:""}}),m=e=>`urn:decentraland:off-chain:marketplace-stores:${e.toLowerCase()}`;function d(e,t){var n;const o=((n=e==null?void 0:e.find(r=>r.name===t))==null?void 0:n.url)??"";return o.startsWith("https://")?o:""}async function E(e){var t,o,n;try{const r=await fetch(`${v.peerUrl}/content/entities/active`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pointers:[m(e)]})});if(!r.ok)return w();const i=await r.json(),c=i==null?void 0:i[0];if(!(c!=null&&c.metadata))return w();const{metadata:s,content:f}=c,u=(o=(t=s.images)==null?void 0:t.find(l=>l.name==="cover"))==null?void 0:o.file,p=u?(n=f==null?void 0:f.find(l=>l.file===u))==null?void 0:n.hash:void 0;return{cover:p?`${v.peerUrl}/content/contents/${p}`:"",coverHash:p??"",description:(s.description??"").trim(),links:{website:d(s.links,"website"),twitter:d(s.links,"twitter"),discord:d(s.links,"discord"),facebook:d(s.links,"facebook")}}}catch{return w()}}const I=["website","twitter","discord","facebook"],S={website:"https://",twitter:"https://www.twitter.com/",discord:"https://discord.gg/",facebook:"https://www.facebook.com/"};function U(e){return{cover:e.cover,coverName:e.cover?C(e.cover):"",coverHash:e.coverHash,description:e.description,links:{...e.links}}}const y=new Map;function H(e){let t=y.get(e);return t||(t=(async()=>{const{hashV1:o}=await h(async()=>{const{hashV1:r}=await import("./index-BpUtXe3X.js").then(i=>i.i);return{hashV1:r}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])),n=new Uint8Array(await(await fetch(e)).arrayBuffer());return o(n)})(),y.set(e,t)),t}function C(e){return`cover/${decodeURIComponent(e.split("?")[0].split("/").pop()||"")||"cover.jpeg"}`}function $(e,t){return t===""||t.startsWith(S[e])}function L(e,t){const o=e.toLowerCase(),n=I.filter(i=>t.links[i]).map(i=>({name:i,url:t.links[i]})),r=t.cover&&t.coverName?[{name:"cover",file:t.coverName}]:[];return{id:m(o),owner:o,description:t.description,images:r,links:n,version:1}}async function T(e){const t=new Map;if(e.cover&&e.coverName){const o=await fetch(e.cover);t.set(e.coverName,new Uint8Array(await o.arrayBuffer()))}return t}async function A(e,t,o){try{const[{buildEntity:n},{createContentClient:r}]=await Promise.all([h(()=>import("./DeploymentBuilder-DFQ5QdOZ.js").then(a=>a.D),__vite__mapDeps([10,1,2,3,4,5,6,7,8,9])),h(()=>import("./ContentClient-DTdXtBSl.js").then(a=>a.C),__vite__mapDeps([11,1,2,3,4,5,6,7,8,9]))]),i=L(e,t),c=await T(t),s=await n({type:g.EntityType.STORE,pointers:[m(e)],files:c,metadata:i,timestamp:Date.now()}),f=b.Authenticator.signPayload(o,s.entityId),u={fetch:(a,l)=>globalThis.fetch(a,l)};await r({url:`${v.peerUrl}/content`,fetcher:u}).deploy({...s,authChain:f})}catch(n){_(n,{flow:"saveStore"});const r=new Error("save-failed");throw r.cause=n,r}}function F(e){return k({queryKey:["store",e==null?void 0:e.toLowerCase()],enabled:!!e,staleTime:5*6e4,queryFn:()=>E(e)})}export{I as L,S as a,U as d,$ as i,A as s,H as t,F as u};
|
|
3
|
+
//# sourceMappingURL=useStore-B7dt3ckg.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./react-
|
|
2
|
-
//# sourceMappingURL=useTheme-
|
|
1
|
+
import"./react-xTOg_zXI.js";import{u as d,o as n,q as f}from"./index-x3_oOTlT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fe6f548d-ca29-4b4e-936b-933702a9fd57",e._sentryDebugIdIdentifier="sentry-dbid-fe6f548d-ca29-4b4e-936b-933702a9fd57")}catch{}})();function u(){const e=d(f);return e[n]||e}export{u};
|
|
2
|
+
//# sourceMappingURL=useTheme-CCKeGB3A.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as z}from"./sentry-D9BarSwm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="15f53e91-5b4c-4476-af89-157f78f1215c",e._sentryDebugIdIdentifier="sentry-dbid-15f53e91-5b4c-4476-af89-157f78f1215c")}catch{}})();const b="rpc.thirdweb.com",L="social.thirdweb.com",A="embedded-wallet.thirdweb.com",R="pay.thirdweb.com",v="storage.thirdweb.com",x="bundler.thirdweb.com",$="c.thirdweb.com",C="insight.thirdweb.com",N="engine.thirdweb.com",O="bridge.thirdweb.com";let _={analytics:$,bridge:O,bundler:x,engineCloud:N,inAppWallet:A,insight:C,pay:R,rpc:b,social:L,storage:v};const H=e=>{_={analytics:e.analytics??$,bridge:e.bridge??O,bundler:e.bundler??x,engineCloud:e.engineCloud??N,inAppWallet:e.inAppWallet??A,insight:e.insight??C,pay:e.pay??R,rpc:e.rpc??b,social:e.social??L,storage:e.storage??v}},d=()=>_,V=e=>{const t=_[e];return t.startsWith("localhost")?`http://${t}`:`https://${t}`};let k=null;const X=e=>{k=e},M=()=>k,Ue=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_RPC_URL:b,getServiceKey:M,getThirdwebBaseUrl:V,getThirdwebDomains:d,setServiceKey:X,setThirdwebDomains:H},Symbol.toStringTag,{value:"Module"})),G="5.120.1";class Q extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=this.keys().next().value;r&&this.delete(r)}return this}}const U=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Y(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?"mobile":typeof navigator<"u"?"browser":"node"}function q(e){for(let t=0,n=U.length;t<n;t++){const[r,s]=U[t];if(s.exec(e))return r}return null}function E(e){return e.split(".").length===3}var J={};const Z=typeof z<"u"&&J&&!1,ee=6e4;function te(e,t){async function n(r,s){const{requestTimeoutMs:c=ee,useAuthToken:o,...y}=s||{};let i=y.headers?new Headers(y.headers):typeof r=="object"?r.headers:void 0;const f=typeof r=="string"?r:r.url;if(T(f)){i||(i=new Headers);const p=o&&e.secretKey&&E(e.secretKey)?e.secretKey:void 0,I=e.secretKey&&!E(e.secretKey)?e.secretKey:void 0,m=e.clientId;p&&ie(f)?(i.set("authorization",`Bearer ${p}`),e.teamId&&i.set("x-team-id",e.teamId),m&&i.set("x-client-id",m)):p&&!re(f)&&!se(f)?(i.set("authorization",`Bearer ${p}`),e.teamId&&i.set("x-team-id",e.teamId)):(I&&i.set("x-secret-key",I),m&&i.set("x-client-id",m)),t&&(i.set("x-ecosystem-id",t.id),t.partnerId&&i.set("x-ecosystem-partner-id",t.partnerId));for(const[j,K]of P())i.set(j,K);const W=M();W&&i.set("x-service-api-key",W)}let u,g;return c&&(u=new AbortController,g=setTimeout(()=>{u==null||u.abort("timeout")},c)),fetch(r,{...y,headers:i,signal:u==null?void 0:u.signal}).finally(()=>{g&&clearTimeout(g)})}return n}const ne=[".thirdweb.com",".ipfscdn.io",".thirdweb.dev",".thirdweb-dev.com",".thirdwebstorage-dev.com"],l=new Q(4096);function T(e){if(l.has(e))return l.get(e);try{const{hostname:t}=new URL(e),n=ne.some(r=>t.endsWith(r));return l.set(e,n),n}catch{return l.set(e,!1),!1}}function re(e){try{const{hostname:t}=new URL(e);return t.startsWith("pay.")}catch{return!1}}function se(e){try{const{hostname:t}=new URL(e);return t.startsWith("in-app-wallet.")||t.startsWith("embedded-wallet.")}catch{return!1}}function ie(e){try{const{hostname:t}=new URL(e);return t.endsWith(".bundler.thirdweb.com")||t.endsWith(".bundler.thirdweb-dev.com")}catch{return!1}}const ce="unified-sdk";let h;function P(){if(h)return h;let e=null;typeof navigator<"u"&&(e=q(navigator.userAgent));let t;return typeof globalThis<"u"&&"Application"in globalThis&&(t=globalThis.Application.applicationId),h=Object.entries({"x-sdk-name":ce,"x-sdk-os":e?oe(e):"unknown","x-sdk-platform":Y(),"x-sdk-version":G,...t?{"x-bundle-id":t}:{}}),h}function oe(e){const t=e.toLowerCase();if(t.startsWith("win"))return"win";switch(e){case"Mac OS":return"mac";case"iOS":return"ios";case"Android OS":return"android";default:return t.replace(/\s/gi,"_")}}const Ee=Object.freeze(Object.defineProperty({__proto__:null,IS_THIRDWEB_URL_CACHE:l,getClientFetch:te,getPlatformHeaders:P,isThirdwebUrl:T},Symbol.toStringTag,{value:"Module"})),ue=new Map,ae=new Map;function de(e){const t=(s,c)=>({clear:()=>c.delete(s),get:()=>c.get(s),set:o=>c.set(s,o)}),n=t(e,ue),r=t(e,ae);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}async function D(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){const r=de(t),s=r.response.get();if(s&&n>0&&Date.now()-s.created.getTime()<n)return s.data;let c=r.promise.get();c||(c=e(),r.promise.set(c));try{const o=await c;return r.response.set({created:new Date,data:o}),o}finally{r.promise.clear()}}const a=new Map;function le(e){const t=d().rpc;if(typeof e=="number")return{id:e,rpc:`https://${e}.${t}`};if(be(e))return F(e);if(he(e))return B(e);let n=e.rpc;n||(n=`https://${e.id}.${t}`);const r={...e,rpc:n};return a.set(e.id,r),r}function fe(e){for(const t of e)a.set(t.id,t)}function pe(e){if(a.has(e))return a.get(e);const t=d().rpc;return{id:e,rpc:`https://${e}.${t}`}}function me(e){return a.get(e)}function he(e){return"rpc"in e&&Array.isArray(e.rpc)&&"slug"in e}function B(e){var n;const t=d().rpc;return{blockExplorers:(n=e==null?void 0:e.explorers)==null?void 0:n.map(r=>({apiUrl:r.url,name:r.name,url:r.url})),faucets:e.faucets?[...e.faucets]:void 0,icon:e.icon,id:e.chainId,name:e.name,nativeCurrency:{decimals:e.nativeCurrency.decimals,name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol},rpc:e.rpc[0]??`https://${e.chainId}.${t}`,testnet:e.testnet?!0:void 0}}function be(e){return"rpcUrls"in e&&!("rpc"in e)}function F(e){const t=d().rpc;return{blockExplorers:e!=null&&e.blockExplorers?Object.values(e==null?void 0:e.blockExplorers).map(n=>({apiUrl:n.apiUrl,name:n.name,url:n.url})):[],id:e.id,name:e.name,nativeCurrency:{decimals:e.nativeCurrency.decimals,name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol},rpc:e.rpcUrls.default.http[0]??`https://${e.id}.${t}`,testnet:e.testnet?!0:void 0}}function we(e){const t=d().rpc;if(typeof e.chain=="number")return`https://${e.chain}.${t}/${e.client.clientId}`;const{rpc:n}=e.chain;if(T(n)){const r=new URL(e.chain.rpc.replace(b,t));return(r.pathname==="/"||r.pathname.startsWith("/$"))&&(r.pathname=`/${e.client.clientId}`),r.toString()}return n}async function ye(e){var t;return(t=e.nativeCurrency)!=null&&t.symbol?e.nativeCurrency.symbol:w(e).then(n=>n.nativeCurrency.symbol).catch(()=>"ETH")}async function ge(e){var t;return(t=e.nativeCurrency)!=null&&t.decimals?e.nativeCurrency.decimals:w(e).then(n=>n.nativeCurrency.decimals).catch(()=>18)}async function _e(e){var t;return(t=e.nativeCurrency)!=null&&t.name?e.nativeCurrency.name:w(e).then(n=>n.nativeCurrency.name).catch(()=>"ETH")}function w(e){const t=e.id;return D(async()=>{try{const n=await fetch(`https://api.thirdweb.com/v1/chains/${t}`);if(!n.ok)throw new Error(`Failed to fetch chain data for chainId ${t}. ${n.status} ${n.statusText}`);const r=await n.json();if(r.error)throw new Error(`Failed to fetch chain data for chainId ${t}`);if(!r.data)throw new Error(`Failed to fetch chain data for chainId ${t}`);const s=r.data;return S(e,s)}catch{return S(e)}},{cacheKey:`chain:${t}`,cacheTime:300*1e3})}async function Te(){return D(async()=>{const e=await fetch("https://api.thirdweb.com/v1/chains/services?service=insight");if(!e.ok)throw new Error(`Failed to fetch services. ${e.status} ${e.statusText}`);const t=await e.json();return Object.keys(t.data).map(n=>Number(n))},{cacheKey:"chain:insight-enabled",cacheTime:1440*60*1e3})}function Ie(e){var t;return{blockExplorers:(t=e.explorers)==null?void 0:t.map(n=>({apiUrl:n.url,name:n.name,url:n.url})),faucets:e.faucets?[...e.faucets]:void 0,icon:e.icon,id:e.chainId,name:e.name,nativeCurrency:e.nativeCurrency,rpc:e.rpc[0]||"",testnet:e.testnet===!0?!0:void 0}}function S(e,t){var r;const n=e.nativeCurrency?{...t==null?void 0:t.nativeCurrency,...e.nativeCurrency}:t==null?void 0:t.nativeCurrency;return{...t,chain:(t==null?void 0:t.chain)||e.name||"",chainId:e.id||(t==null?void 0:t.chainId)||-1,explorers:((r=e.blockExplorers)==null?void 0:r.map(s=>({name:s.name,standard:"EIP3091",url:s.url})))||(t==null?void 0:t.explorers),icon:e.icon||(t==null?void 0:t.icon),name:e.name||(t==null?void 0:t.name)||"",nativeCurrency:{decimals:(n==null?void 0:n.decimals)||18,name:(n==null?void 0:n.name)||"",symbol:(n==null?void 0:n.symbol)||""},rpc:e.rpc?[e.rpc]:(t==null?void 0:t.rpc)||[""],shortName:(t==null?void 0:t.shortName)||e.name||"",slug:(t==null?void 0:t.slug)||e.name||"",stackType:(t==null?void 0:t.stackType)||"",testnet:e.testnet||(t==null?void 0:t.testnet)||!1}}const Se=Object.freeze(Object.defineProperty({__proto__:null,CUSTOM_CHAIN_MAP:a,cacheChains:fe,convertApiChainToChain:Ie,convertLegacyChain:B,convertViemChain:F,defineChain:le,getCachedChain:pe,getCachedChainIfExists:me,getChainDecimals:ge,getChainMetadata:w,getChainNativeCurrencyName:_e,getChainSymbol:ye,getInsightEnabledChainIds:Te,getRpcUrlForChain:we},Symbol.toStringTag,{value:"Module"}));export{Q as L,pe as a,we as b,V as c,le as d,te as e,d as f,Te as g,me as h,T as i,E as j,w as k,q as l,ye as m,ge as n,_e as o,fe as p,Ue as q,Ee as r,Se as u,D as w};
|
|
2
|
-
//# sourceMappingURL=utils-
|
|
1
|
+
import{p as z}from"./sentry-B0Y62cGL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="15f53e91-5b4c-4476-af89-157f78f1215c",e._sentryDebugIdIdentifier="sentry-dbid-15f53e91-5b4c-4476-af89-157f78f1215c")}catch{}})();const b="rpc.thirdweb.com",L="social.thirdweb.com",A="embedded-wallet.thirdweb.com",R="pay.thirdweb.com",v="storage.thirdweb.com",x="bundler.thirdweb.com",$="c.thirdweb.com",C="insight.thirdweb.com",N="engine.thirdweb.com",O="bridge.thirdweb.com";let _={analytics:$,bridge:O,bundler:x,engineCloud:N,inAppWallet:A,insight:C,pay:R,rpc:b,social:L,storage:v};const H=e=>{_={analytics:e.analytics??$,bridge:e.bridge??O,bundler:e.bundler??x,engineCloud:e.engineCloud??N,inAppWallet:e.inAppWallet??A,insight:e.insight??C,pay:e.pay??R,rpc:e.rpc??b,social:e.social??L,storage:e.storage??v}},d=()=>_,V=e=>{const t=_[e];return t.startsWith("localhost")?`http://${t}`:`https://${t}`};let k=null;const X=e=>{k=e},M=()=>k,Ue=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_RPC_URL:b,getServiceKey:M,getThirdwebBaseUrl:V,getThirdwebDomains:d,setServiceKey:X,setThirdwebDomains:H},Symbol.toStringTag,{value:"Module"})),G="5.120.1";class Q extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=this.keys().next().value;r&&this.delete(r)}return this}}const U=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Y(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?"mobile":typeof navigator<"u"?"browser":"node"}function q(e){for(let t=0,n=U.length;t<n;t++){const[r,s]=U[t];if(s.exec(e))return r}return null}function E(e){return e.split(".").length===3}var J={};const Z=typeof z<"u"&&J&&!1,ee=6e4;function te(e,t){async function n(r,s){const{requestTimeoutMs:c=ee,useAuthToken:o,...y}=s||{};let i=y.headers?new Headers(y.headers):typeof r=="object"?r.headers:void 0;const f=typeof r=="string"?r:r.url;if(T(f)){i||(i=new Headers);const p=o&&e.secretKey&&E(e.secretKey)?e.secretKey:void 0,I=e.secretKey&&!E(e.secretKey)?e.secretKey:void 0,m=e.clientId;p&&ie(f)?(i.set("authorization",`Bearer ${p}`),e.teamId&&i.set("x-team-id",e.teamId),m&&i.set("x-client-id",m)):p&&!re(f)&&!se(f)?(i.set("authorization",`Bearer ${p}`),e.teamId&&i.set("x-team-id",e.teamId)):(I&&i.set("x-secret-key",I),m&&i.set("x-client-id",m)),t&&(i.set("x-ecosystem-id",t.id),t.partnerId&&i.set("x-ecosystem-partner-id",t.partnerId));for(const[j,K]of P())i.set(j,K);const W=M();W&&i.set("x-service-api-key",W)}let u,g;return c&&(u=new AbortController,g=setTimeout(()=>{u==null||u.abort("timeout")},c)),fetch(r,{...y,headers:i,signal:u==null?void 0:u.signal}).finally(()=>{g&&clearTimeout(g)})}return n}const ne=[".thirdweb.com",".ipfscdn.io",".thirdweb.dev",".thirdweb-dev.com",".thirdwebstorage-dev.com"],l=new Q(4096);function T(e){if(l.has(e))return l.get(e);try{const{hostname:t}=new URL(e),n=ne.some(r=>t.endsWith(r));return l.set(e,n),n}catch{return l.set(e,!1),!1}}function re(e){try{const{hostname:t}=new URL(e);return t.startsWith("pay.")}catch{return!1}}function se(e){try{const{hostname:t}=new URL(e);return t.startsWith("in-app-wallet.")||t.startsWith("embedded-wallet.")}catch{return!1}}function ie(e){try{const{hostname:t}=new URL(e);return t.endsWith(".bundler.thirdweb.com")||t.endsWith(".bundler.thirdweb-dev.com")}catch{return!1}}const ce="unified-sdk";let h;function P(){if(h)return h;let e=null;typeof navigator<"u"&&(e=q(navigator.userAgent));let t;return typeof globalThis<"u"&&"Application"in globalThis&&(t=globalThis.Application.applicationId),h=Object.entries({"x-sdk-name":ce,"x-sdk-os":e?oe(e):"unknown","x-sdk-platform":Y(),"x-sdk-version":G,...t?{"x-bundle-id":t}:{}}),h}function oe(e){const t=e.toLowerCase();if(t.startsWith("win"))return"win";switch(e){case"Mac OS":return"mac";case"iOS":return"ios";case"Android OS":return"android";default:return t.replace(/\s/gi,"_")}}const Ee=Object.freeze(Object.defineProperty({__proto__:null,IS_THIRDWEB_URL_CACHE:l,getClientFetch:te,getPlatformHeaders:P,isThirdwebUrl:T},Symbol.toStringTag,{value:"Module"})),ue=new Map,ae=new Map;function de(e){const t=(s,c)=>({clear:()=>c.delete(s),get:()=>c.get(s),set:o=>c.set(s,o)}),n=t(e,ue),r=t(e,ae);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}async function D(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){const r=de(t),s=r.response.get();if(s&&n>0&&Date.now()-s.created.getTime()<n)return s.data;let c=r.promise.get();c||(c=e(),r.promise.set(c));try{const o=await c;return r.response.set({created:new Date,data:o}),o}finally{r.promise.clear()}}const a=new Map;function le(e){const t=d().rpc;if(typeof e=="number")return{id:e,rpc:`https://${e}.${t}`};if(be(e))return F(e);if(he(e))return B(e);let n=e.rpc;n||(n=`https://${e.id}.${t}`);const r={...e,rpc:n};return a.set(e.id,r),r}function fe(e){for(const t of e)a.set(t.id,t)}function pe(e){if(a.has(e))return a.get(e);const t=d().rpc;return{id:e,rpc:`https://${e}.${t}`}}function me(e){return a.get(e)}function he(e){return"rpc"in e&&Array.isArray(e.rpc)&&"slug"in e}function B(e){var n;const t=d().rpc;return{blockExplorers:(n=e==null?void 0:e.explorers)==null?void 0:n.map(r=>({apiUrl:r.url,name:r.name,url:r.url})),faucets:e.faucets?[...e.faucets]:void 0,icon:e.icon,id:e.chainId,name:e.name,nativeCurrency:{decimals:e.nativeCurrency.decimals,name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol},rpc:e.rpc[0]??`https://${e.chainId}.${t}`,testnet:e.testnet?!0:void 0}}function be(e){return"rpcUrls"in e&&!("rpc"in e)}function F(e){const t=d().rpc;return{blockExplorers:e!=null&&e.blockExplorers?Object.values(e==null?void 0:e.blockExplorers).map(n=>({apiUrl:n.apiUrl,name:n.name,url:n.url})):[],id:e.id,name:e.name,nativeCurrency:{decimals:e.nativeCurrency.decimals,name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol},rpc:e.rpcUrls.default.http[0]??`https://${e.id}.${t}`,testnet:e.testnet?!0:void 0}}function we(e){const t=d().rpc;if(typeof e.chain=="number")return`https://${e.chain}.${t}/${e.client.clientId}`;const{rpc:n}=e.chain;if(T(n)){const r=new URL(e.chain.rpc.replace(b,t));return(r.pathname==="/"||r.pathname.startsWith("/$"))&&(r.pathname=`/${e.client.clientId}`),r.toString()}return n}async function ye(e){var t;return(t=e.nativeCurrency)!=null&&t.symbol?e.nativeCurrency.symbol:w(e).then(n=>n.nativeCurrency.symbol).catch(()=>"ETH")}async function ge(e){var t;return(t=e.nativeCurrency)!=null&&t.decimals?e.nativeCurrency.decimals:w(e).then(n=>n.nativeCurrency.decimals).catch(()=>18)}async function _e(e){var t;return(t=e.nativeCurrency)!=null&&t.name?e.nativeCurrency.name:w(e).then(n=>n.nativeCurrency.name).catch(()=>"ETH")}function w(e){const t=e.id;return D(async()=>{try{const n=await fetch(`https://api.thirdweb.com/v1/chains/${t}`);if(!n.ok)throw new Error(`Failed to fetch chain data for chainId ${t}. ${n.status} ${n.statusText}`);const r=await n.json();if(r.error)throw new Error(`Failed to fetch chain data for chainId ${t}`);if(!r.data)throw new Error(`Failed to fetch chain data for chainId ${t}`);const s=r.data;return S(e,s)}catch{return S(e)}},{cacheKey:`chain:${t}`,cacheTime:300*1e3})}async function Te(){return D(async()=>{const e=await fetch("https://api.thirdweb.com/v1/chains/services?service=insight");if(!e.ok)throw new Error(`Failed to fetch services. ${e.status} ${e.statusText}`);const t=await e.json();return Object.keys(t.data).map(n=>Number(n))},{cacheKey:"chain:insight-enabled",cacheTime:1440*60*1e3})}function Ie(e){var t;return{blockExplorers:(t=e.explorers)==null?void 0:t.map(n=>({apiUrl:n.url,name:n.name,url:n.url})),faucets:e.faucets?[...e.faucets]:void 0,icon:e.icon,id:e.chainId,name:e.name,nativeCurrency:e.nativeCurrency,rpc:e.rpc[0]||"",testnet:e.testnet===!0?!0:void 0}}function S(e,t){var r;const n=e.nativeCurrency?{...t==null?void 0:t.nativeCurrency,...e.nativeCurrency}:t==null?void 0:t.nativeCurrency;return{...t,chain:(t==null?void 0:t.chain)||e.name||"",chainId:e.id||(t==null?void 0:t.chainId)||-1,explorers:((r=e.blockExplorers)==null?void 0:r.map(s=>({name:s.name,standard:"EIP3091",url:s.url})))||(t==null?void 0:t.explorers),icon:e.icon||(t==null?void 0:t.icon),name:e.name||(t==null?void 0:t.name)||"",nativeCurrency:{decimals:(n==null?void 0:n.decimals)||18,name:(n==null?void 0:n.name)||"",symbol:(n==null?void 0:n.symbol)||""},rpc:e.rpc?[e.rpc]:(t==null?void 0:t.rpc)||[""],shortName:(t==null?void 0:t.shortName)||e.name||"",slug:(t==null?void 0:t.slug)||e.name||"",stackType:(t==null?void 0:t.stackType)||"",testnet:e.testnet||(t==null?void 0:t.testnet)||!1}}const Se=Object.freeze(Object.defineProperty({__proto__:null,CUSTOM_CHAIN_MAP:a,cacheChains:fe,convertApiChainToChain:Ie,convertLegacyChain:B,convertViemChain:F,defineChain:le,getCachedChain:pe,getCachedChainIfExists:me,getChainDecimals:ge,getChainMetadata:w,getChainNativeCurrencyName:_e,getChainSymbol:ye,getInsightEnabledChainIds:Te,getRpcUrlForChain:we},Symbol.toStringTag,{value:"Module"}));export{Q as L,pe as a,we as b,V as c,le as d,te as e,d as f,Te as g,me as h,T as i,E as j,w as k,q as l,ye as m,ge as n,_e as o,fe as p,Ue as q,Ee as r,Se as u,D as w};
|
|
2
|
+
//# sourceMappingURL=utils-DA456_1A.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{w as a}from"./lit-element-wjYUA6aF.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new l.Error().stack;e&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[e]="
|
|
1
|
+
import{w as a}from"./lit-element-wjYUA6aF.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new l.Error().stack;e&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[e]="4cbc44e4-253a-4ea9-99fa-53c68ac1f148",l._sentryDebugIdIdentifier="sentry-dbid-4cbc44e4-253a-4ea9-99fa-53c68ac1f148")}catch{}})();const d=a`<svg fill="none" viewBox="0 0 28 28">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
5
5
|
d="M18.1 4.76c-.42-.73-1.33-1.01-2.09-.66l-1.42.66c-.37.18-.8.18-1.18 0l-1.4-.65a1.63 1.63 0 0 0-2.1.66l-.84 1.45c-.2.34-.53.59-.92.67l-1.7.35c-.83.17-1.39.94-1.3 1.78l.19 1.56c.04.39-.08.78-.33 1.07l-1.12 1.3c-.52.6-.52 1.5 0 2.11L5 16.38c.25.3.37.68.33 1.06l-.18 1.57c-.1.83.46 1.6 1.28 1.78l1.7.35c.4.08.73.32.93.66l.84 1.43a1.63 1.63 0 0 0 2.09.66l1.41-.66c.37-.17.8-.17 1.18 0l1.43.67c.76.35 1.66.07 2.08-.65l.86-1.45c.2-.34.54-.58.92-.66l1.68-.35A1.63 1.63 0 0 0 22.84 19l-.18-1.57a1.4 1.4 0 0 1 .33-1.06l1.12-1.32c.52-.6.52-1.5 0-2.11l-1.12-1.3a1.4 1.4 0 0 1-.33-1.07l.18-1.57c.1-.83-.46-1.6-1.28-1.77l-1.68-.35a1.4 1.4 0 0 1-.92-.66l-.86-1.47Zm-3.27-3.2a4.43 4.43 0 0 1 5.69 1.78l.54.93 1.07.22a4.43 4.43 0 0 1 3.5 4.84l-.11.96.7.83a4.43 4.43 0 0 1 .02 5.76l-.72.85.1.96a4.43 4.43 0 0 1-3.5 4.84l-1.06.22-.54.92a4.43 4.43 0 0 1-5.68 1.77l-.84-.4-.82.39a4.43 4.43 0 0 1-5.7-1.79l-.51-.89-1.09-.22a4.43 4.43 0 0 1-3.5-4.84l.1-.96-.72-.85a4.43 4.43 0 0 1 .01-5.76l.71-.83-.1-.95a4.43 4.43 0 0 1 3.5-4.84l1.08-.23.53-.9a4.43 4.43 0 0 1 5.7-1.8l.81.38.83-.39ZM18.2 9.4c.65.42.84 1.28.42 1.93l-4.4 6.87a1.4 1.4 0 0 1-2.26.14L9.5 15.39a1.4 1.4 0 0 1 2.15-1.8l1.23 1.48 3.38-5.26a1.4 1.4 0 0 1 1.93-.42Z"
|
|
6
6
|
clip-rule="evenodd"
|
|
7
7
|
/>
|
|
8
|
-
</svg>`;export{
|
|
9
|
-
//# sourceMappingURL=verify-
|
|
8
|
+
</svg>`;export{d as verifySvg};
|
|
9
|
+
//# sourceMappingURL=verify-CrYE2kna.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{w as
|
|
1
|
+
import{w as d}from"./lit-element-wjYUA6aF.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="11ccb9a4-9174-4dd9-be5d-58f9fdf1b5ee",e._sentryDebugIdIdentifier="sentry-dbid-11ccb9a4-9174-4dd9-be5d-58f9fdf1b5ee")}catch{}})();const r=d`<svg fill="none" viewBox="0 0 14 14">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
5
5
|
d="m4.1 12.43-.45-.78-.93-.2a1.65 1.65 0 0 1-1.31-1.8l.1-.86-.61-.71a1.65 1.65 0 0 1 0-2.16l.6-.7-.09-.85c-.1-.86.47-1.64 1.3-1.81l.94-.2.45-.78A1.65 1.65 0 0 1 6.23.9l.77.36.78-.36c.77-.36 1.69-.07 2.12.66l.47.8.91.2c.84.17 1.4.95 1.31 1.8l-.1.86.6.7c.54.62.54 1.54.01 2.16l-.6.71.09.86c.1.85-.47 1.63-1.3 1.8l-.92.2-.47.79a1.65 1.65 0 0 1-2.12.66L7 12.74l-.77.36c-.78.35-1.7.07-2.13-.67Zm5.74-6.9a1 1 0 1 0-1.68-1.07L6.32 7.3l-.55-.66a1 1 0 0 0-1.54 1.28l1.43 1.71a1 1 0 0 0 1.61-.1l2.57-4Z"
|
|
6
6
|
clip-rule="evenodd"
|
|
7
7
|
/>
|
|
8
|
-
</svg>`;export{
|
|
9
|
-
//# sourceMappingURL=verify-filled-
|
|
8
|
+
</svg>`;export{r as verifyFilledSvg};
|
|
9
|
+
//# sourceMappingURL=verify-filled-CwwnY5h6.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{bV as re,bW as we,bX as xe,K as We,bY as ne,bZ as se,b_ as ie,L as He,b$ as Fe,c0 as Pe,c1 as x,c2 as Ye,c3 as H,c4 as w,c5 as l,c6 as b,c7 as p,c8 as ve,c9 as qe,ca as Ie,cb as m,cc as $e,cd as Ge,ce as oe,cf as g,cg as Ze,ch as Xe,ci as Je,cj as Qe,ck as Ke,cl as B,cm as Ae,cn as et,co as S,cp as F,cq as O,cr as tt,cs as k,bU as rt,ct as nt,aQ as V,b8 as st,aI as _,az as Y,b9 as R,bi as Ee,aq as it,aK as ot,aX as ae,am as at,cu as ct,ay as ut,aA as ft,C as dt,x as lt}from"./sendRawTransaction-CmggkI48.js";import{a7 as ce,a9 as ht,ac as yt,$ as pt,af as ue,ad as mt,ay as Be,a1 as fe,a8 as bt}from"./NetworkUtil-DB3XDe5L.js";import{s as gt}from"./secp256k1-l4zSwoMY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e239c254-97e0-497e-b68a-32ecb13d32ab",e._sentryDebugIdIdentifier="sentry-dbid-e239c254-97e0-497e-b68a-32ecb13d32ab")}catch{}})();function kr(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};function n(r){return s=>{const i=typeof s=="function"?s(r):s,o={...r,...i};return Object.assign(o,{extend:n(o)})}}return Object.assign(t,{extend:n(t)})}function Vr(){return{}}function de(e){let t;if(typeof e=="string")t=re(e);else{const n=we(e),r=e.length;for(let s=0;s<r;s++){const i=e[s];if(!xe(i)){t=re(i,n);break}}}if(!t)throw new We({signature:e});return t}function le(e){const t=[];if(typeof e=="string"){const n=ne(e),r=n.length;for(let s=0;s<r;s++)t.push(se(n[s],{modifiers:ie}))}else{const n=we(e),r=e.length;for(let s=0;s<r;s++){const i=e[s];if(xe(i))continue;const o=ne(i),a=o.length;for(let u=0;u<a;u++)t.push(se(o[u],{modifiers:ie,structs:n}))}}if(t.length===0)throw new He({params:e});return t}function q(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,r=Fe(Pe(e));return n==="Bytes"?r:x(r)}function _r(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,r=Ye(Pe(e));return n==="Bytes"?r:x(r)}function Ur(e){return H(e)&&w(e)===32}const wt={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new vt({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new Pt({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new he({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new he({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function xt(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(wt);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}class he extends l{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class Pt extends l{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class vt extends l{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}class It extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=this.keys().next().value;r&&this.delete(r)}return this}}const $t={checksum:new It(8192)},N=$t.checksum;function Se(e,t={}){const{compressed:n}=t,{prefix:r,x:s,y:i}=e;if(n===!1||typeof s=="bigint"&&typeof i=="bigint"){if(r!==4)throw new ye({prefix:r,cause:new St});return}if(n===!0||typeof s=="bigint"&&typeof i>"u"){if(r!==3&&r!==2)throw new ye({prefix:r,cause:new Bt});return}throw new Et({publicKey:e})}function Tr(e){const t=(()=>{if(H(e))return ze(e);if(qe(e))return At(e);const{prefix:n,x:r,y:s}=e;return typeof r=="bigint"&&typeof s=="bigint"?{prefix:n??4,x:r,y:s}:{prefix:n,x:r}})();return Se(t),t}function At(e){return ze(x(e))}function ze(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new zt({publicKey:e});if(e.length===130){const r=BigInt(m(e,0,32)),s=BigInt(m(e,32,64));return{prefix:4,x:r,y:s}}if(e.length===132){const r=Number(m(e,0,1)),s=BigInt(m(e,1,33)),i=BigInt(m(e,33,65));return{prefix:r,x:s,y:i}}const t=Number(m(e,0,1)),n=BigInt(m(e,1,33));return{prefix:t,x:n}}function Dr(e,t={}){return ve(Ce(e,t))}function Ce(e,t={}){Se(e);const{prefix:n,x:r,y:s}=e,{includePrefix:i=!0}=t;return b(i?p(n,{size:1}):"0x",p(r,{size:32}),typeof s=="bigint"?p(s,{size:32}):"0x")}class Et extends l{constructor({publicKey:t}){super(`Value \`${Ie(t)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}class ye extends l{constructor({prefix:t,cause:n}){super(`Prefix "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}class Bt extends l{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}class St extends l{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}let zt=class extends l{constructor({publicKey:t}){super(`Value \`${t}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${w($e(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}};const Ct=/^0x[a-fA-F0-9]{40}$/;function v(e,t={}){const{strict:n=!0}=t;if(!Ct.test(e))throw new pe({address:e,cause:new Rt});if(n){if(e.toLowerCase()===e)return;if(G(e)!==e)throw new pe({address:e,cause:new Lt})}}function G(e){if(N.has(e))return N.get(e);v(e,{strict:!1});const t=e.substring(2).toLowerCase(),n=q(Ge(t),{as:"Bytes"}),r=t.split("");for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&r[i]&&(r[i]=r[i].toUpperCase()),(n[i>>1]&15)>=8&&r[i+1]&&(r[i+1]=r[i+1].toUpperCase());const s=`0x${r.join("")}`;return N.set(e,s),s}function Ot(e,t={}){const{checksum:n=!1}=t;return v(e),n?G(e):e}function Wr(e,t={}){const n=q(`0x${Ce(e).slice(4)}`).substring(26);return Ot(`0x${n}`,t)}function Hr(e,t){return v(e,{strict:!1}),v(t,{strict:!1}),e.toLowerCase()===t.toLowerCase()}function U(e,t={}){const{strict:n=!0}=t??{};try{return v(e,{strict:n}),!0}catch{return!1}}class pe extends l{constructor({address:t,cause:n}){super(`Address "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class Rt extends l{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class Lt extends l{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}const Nt=/^(.*)\[([0-9]*)\]$/,jt=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Oe=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,me=2n**256n-1n;function Z(e,t={}){const{recovered:n}=t;if(typeof e.r>"u")throw new j({signature:e});if(typeof e.s>"u")throw new j({signature:e});if(n&&typeof e.yParity>"u")throw new j({signature:e});if(e.r<0n||e.r>me)throw new Wt({value:e.r});if(e.s<0n||e.s>me)throw new Ht({value:e.s});if(typeof e.yParity=="number"&&e.yParity!==0&&e.yParity!==1)throw new L({value:e.yParity})}function kt(e){return Re(x(e))}function Re(e){if(e.length!==130&&e.length!==132)throw new Mt({signature:e});const t=BigInt(m(e,0,32)),n=BigInt(m(e,32,64)),r=(()=>{const s=+`0x${e.slice(130)}`;if(!Number.isNaN(s))try{return X(s)}catch{throw new L({value:s})}})();return typeof r>"u"?{r:t,s:n}:{r:t,s:n,yParity:r}}function Vt(e){if(!(typeof e.r>"u")&&!(typeof e.s>"u"))return Le(e)}function Le(e){const t=typeof e=="string"?Re(e):e instanceof Uint8Array?kt(e):typeof e.r=="string"?Ut(e):e.v?_t(e):{r:e.r,s:e.s,...typeof e.yParity<"u"?{yParity:e.yParity}:{}};return Z(t),t}function _t(e){return{r:e.r,s:e.s,yParity:X(e.v)}}function Ut(e){const t=(()=>{const n=e.v?Number(e.v):void 0;let r=e.yParity?Number(e.yParity):void 0;if(typeof n=="number"&&typeof r!="number"&&(r=X(n)),typeof r!="number")throw new L({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function Fr(e){const[t,n,r]=e;return Le({r:n==="0x"?0n:BigInt(n),s:r==="0x"?0n:BigInt(r),yParity:t==="0x"?0:Number(t)})}function Yr(e){Z(e);const t=e.r,n=e.s;return b(p(t,{size:32}),p(n,{size:32}),typeof e.yParity=="number"?p(Dt(e.yParity),{size:1}):"0x")}function Tt(e){const{r:t,s:n,yParity:r}=e;return{r:p(t,{size:32}),s:p(n,{size:32}),yParity:r===0?"0x0":"0x1"}}function qr(e){const{r:t,s:n,yParity:r}=e;return[r?"0x01":"0x",t===0n?"0x":oe(p(t)),n===0n?"0x":oe(p(n))]}function X(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new Ft({value:e})}function Dt(e){if(e===0)return 27;if(e===1)return 28;throw new L({value:e})}class Mt extends l{constructor({signature:t}){super(`Value \`${t}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${w($e(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class j extends l{constructor({signature:t}){super(`Signature \`${Ie(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class Wt extends l{constructor({value:t}){super(`Value \`${t}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class Ht extends l{constructor({value:t}){super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class L extends l{constructor({value:t}){super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class Ft extends l{constructor({value:t}){super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}function E(e,t,n){const{checksumAddress:r,staticPosition:s}=n,i=K(t.type);if(i){const[o,a]=i;return qt(e,{...t,type:a},{checksumAddress:r,length:o,staticPosition:s})}if(t.type==="tuple")return Jt(e,t,{checksumAddress:r,staticPosition:s});if(t.type==="address")return Yt(e,{checksum:r});if(t.type==="bool")return Gt(e);if(t.type.startsWith("bytes"))return Zt(e,t,{staticPosition:s});if(t.type.startsWith("uint")||t.type.startsWith("int"))return Xt(e,t);if(t.type==="string")return Qt(e,{staticPosition:s});throw new ee(t.type)}const be=32,T=32;function Yt(e,t={}){const{checksum:n=!1}=t,r=e.readBytes(32);return[(i=>n?G(i):i)(x(Ze(r,-20))),32]}function qt(e,t,n){const{checksumAddress:r,length:s,staticPosition:i}=n;if(!s){const u=g(e.readBytes(T)),c=i+u,f=c+be;e.setPosition(c);const d=g(e.readBytes(be)),y=z(t);let h=0;const $=[];for(let P=0;P<d;++P){e.setPosition(f+(y?P*32:h));const[C,Me]=E(e,t,{checksumAddress:r,staticPosition:f});h+=Me,$.push(C)}return e.setPosition(i+32),[$,32]}if(z(t)){const u=g(e.readBytes(T)),c=i+u,f=[];for(let d=0;d<s;++d){e.setPosition(c+d*32);const[y]=E(e,t,{checksumAddress:r,staticPosition:c});f.push(y)}return e.setPosition(i+32),[f,32]}let o=0;const a=[];for(let u=0;u<s;++u){const[c,f]=E(e,t,{checksumAddress:r,staticPosition:i+o});o+=f,a.push(c)}return[a,o]}function Gt(e){return[Xe(e.readBytes(32),{size:32}),32]}function Zt(e,t,{staticPosition:n}){const[r,s]=t.type.split("bytes");if(!s){const o=g(e.readBytes(32));e.setPosition(n+o);const a=g(e.readBytes(32));if(a===0)return e.setPosition(n+32),["0x",32];const u=e.readBytes(a);return e.setPosition(n+32),[x(u),32]}return[x(e.readBytes(Number.parseInt(s,10),32)),32]}function Xt(e,t){const n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256",10),s=e.readBytes(32);return[r>48?Je(s,{signed:n}):g(s,{signed:n}),32]}function Jt(e,t,n){const{checksumAddress:r,staticPosition:s}=n,i=t.components.length===0||t.components.some(({name:u})=>!u),o=i?[]:{};let a=0;if(z(t)){const u=g(e.readBytes(T)),c=s+u;for(let f=0;f<t.components.length;++f){const d=t.components[f];e.setPosition(c+a);const[y,h]=E(e,d,{checksumAddress:r,staticPosition:c});a+=h,o[i?f:d==null?void 0:d.name]=y}return e.setPosition(s+32),[o,32]}for(let u=0;u<t.components.length;++u){const c=t.components[u],[f,d]=E(e,c,{checksumAddress:r,staticPosition:s});o[i?u:c==null?void 0:c.name]=f,a+=d}return[o,a]}function Qt(e,{staticPosition:t}){const n=g(e.readBytes(32)),r=t+n;e.setPosition(r);const s=g(e.readBytes(32));if(s===0)return e.setPosition(t+32),["",32];const i=e.readBytes(s,32),o=Qe(Ke(i));return e.setPosition(t+32),[o,32]}function Kt({checksumAddress:e,parameters:t,values:n}){const r=[];for(let s=0;s<t.length;s++)r.push(J({checksumAddress:e,parameter:t[s],value:n[s]}));return r}function J({checksumAddress:e=!1,parameter:t,value:n}){const r=t,s=K(r.type);if(s){const[i,o]=s;return tr(n,{checksumAddress:e,length:i,parameter:{...r,type:o}})}if(r.type==="tuple")return or(n,{checksumAddress:e,parameter:r});if(r.type==="address")return er(n,{checksum:e});if(r.type==="bool")return nr(n);if(r.type.startsWith("uint")||r.type.startsWith("int")){const i=r.type.startsWith("int"),[,,o="256"]=Oe.exec(r.type)??[];return sr(n,{signed:i,size:Number(o)})}if(r.type.startsWith("bytes"))return rr(n,{type:r.type});if(r.type==="string")return ir(n);throw new ee(r.type)}function Q(e){let t=0;for(let i=0;i<e.length;i++){const{dynamic:o,encoded:a}=e[i];o?t+=32:t+=w(a)}const n=[],r=[];let s=0;for(let i=0;i<e.length;i++){const{dynamic:o,encoded:a}=e[i];o?(n.push(p(t+s,{size:32})),r.push(a),s+=w(a)):n.push(a)}return b(...n,...r)}function er(e,t){const{checksum:n=!1}=t;return v(e,{strict:n}),{dynamic:!1,encoded:B(e.toLowerCase())}}function tr(e,t){const{checksumAddress:n,length:r,parameter:s}=t,i=r===null;if(!Array.isArray(e))throw new lr(e);if(!i&&e.length!==r)throw new dr({expectedLength:r,givenLength:e.length,type:`${s.type}[${r}]`});let o=!1;const a=[];for(let u=0;u<e.length;u++){const c=J({checksumAddress:n,parameter:s,value:e[u]});c.dynamic&&(o=!0),a.push(c)}if(i||o){const u=Q(a);if(i){const c=p(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?b(c,u):c}}if(o)return{dynamic:!0,encoded:u}}return{dynamic:!1,encoded:b(...a.map(({encoded:u})=>u))}}function rr(e,{type:t}){const[,n]=t.split("bytes"),r=w(e);if(!n){let s=e;return r%32!==0&&(s=S(s,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:b(B(p(r,{size:32})),s)}}if(r!==Number.parseInt(n,10))throw new je({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:S(e)}}function nr(e){if(typeof e!="boolean")throw new l(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:B(Ae(e))}}function sr(e,{signed:t,size:n}){if(typeof n=="number"){const r=2n**(BigInt(n)-(t?1n:0n))-1n,s=t?-r-1n:0n;if(e>r||e<s)throw new et({max:r.toString(),min:s.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:p(e,{size:32,signed:t})}}function ir(e){const t=F(e),n=Math.ceil(w(t)/32),r=[];for(let s=0;s<n;s++)r.push(S(m(t,s*32,(s+1)*32)));return{dynamic:!0,encoded:b(S(p(w(t),{size:32})),...r)}}function or(e,t){const{checksumAddress:n,parameter:r}=t;let s=!1;const i=[];for(let o=0;o<r.components.length;o++){const a=r.components[o],u=Array.isArray(e)?o:a.name,c=J({checksumAddress:n,parameter:a,value:e[u]});i.push(c),c.dynamic&&(s=!0)}return{dynamic:s,encoded:s?Q(i):b(...i.map(({encoded:o})=>o))}}function K(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function z(e){var r;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(r=e.components)==null?void 0:r.some(z);const n=K(e.type);return!!(n&&z({...e,type:n[1]}))}function ar(e,t,n={}){const{as:r="Array",checksumAddress:s=!1}=n,i=typeof t=="string"?ve(t):t,o=xt(i);if(O(i)===0&&e.length>0)throw new fr;if(O(i)&&O(i)<32)throw new ur({data:typeof t=="string"?t:x(t),parameters:e,size:O(i)});let a=0;const u=r==="Array"?[]:{};for(let c=0;c<e.length;++c){const f=e[c];o.setPosition(a);const[d,y]=E(o,f,{checksumAddress:s,staticPosition:0});a+=y,r==="Array"?u.push(d):u[f.name??c]=d}return u}function cr(e,t,n){const{checksumAddress:r=!1}={};if(e.length!==t.length)throw new ke({expectedLength:e.length,givenLength:t.length});const s=Kt({checksumAddress:r,parameters:e,values:t}),i=Q(s);return i.length===0?"0x":i}function D(e,t){if(e.length!==t.length)throw new ke({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;r<e.length;r++){const s=e[r],i=t[r];n.push(D.encode(s,i))}return b(...n)}(function(e){function t(n,r,s=!1){if(n==="address"){const u=r;return v(u),B(u.toLowerCase(),s?32:0)}if(n==="string")return F(r);if(n==="bytes")return r;if(n==="bool")return B(Ae(r),s?32:1);const i=n.match(Oe);if(i){const[u,c,f="256"]=i,d=Number.parseInt(f,10)/8;return p(r,{size:s?32:d,signed:c==="int"})}const o=n.match(jt);if(o){const[u,c]=o;if(Number.parseInt(c,10)!==(r.length-2)/2)throw new je({expectedSize:Number.parseInt(c,10),value:r});return S(r,s?32:0)}const a=n.match(Nt);if(a&&Array.isArray(r)){const[u,c]=a,f=[];for(let d=0;d<r.length;d++)f.push(t(c,r[d],!0));return f.length===0?"0x":b(...f)}throw new ee(n)}e.encode=t})(D||(D={}));function Ne(e){return Array.isArray(e)&&typeof e[0]=="string"||typeof e=="string"?le(e):e}class ur extends l{constructor({data:t,parameters:n,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${tt(n)})`,`Data: ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class fr extends l{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class dr extends l{constructor({expectedLength:t,givenLength:n,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${t}\`. Given: \`${n}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class je extends l{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${w(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class ke extends l{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${n}`].join(`
|
|
1
|
+
import{bV as re,bW as we,bX as xe,K as We,bY as ne,bZ as se,b_ as ie,L as He,b$ as Fe,c0 as Pe,c1 as x,c2 as Ye,c3 as H,c4 as w,c5 as l,c6 as b,c7 as p,c8 as ve,c9 as qe,ca as Ie,cb as m,cc as $e,cd as Ge,ce as oe,cf as g,cg as Ze,ch as Xe,ci as Je,cj as Qe,ck as Ke,cl as B,cm as Ae,cn as et,co as S,cp as F,cq as O,cr as tt,cs as k,bU as rt,ct as nt,aQ as V,b8 as st,aI as _,az as Y,b9 as R,bi as Ee,aq as it,aK as ot,aX as ae,am as at,cu as ct,ay as ut,aA as ft,C as dt,x as lt}from"./sendRawTransaction-CkffR3oO.js";import{a7 as ce,a9 as ht,ac as yt,$ as pt,af as ue,ad as mt,ay as Be,a1 as fe,a8 as bt}from"./NetworkUtil-Dn6I5ZVR.js";import{s as gt}from"./secp256k1-CW_LtzZ8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e239c254-97e0-497e-b68a-32ecb13d32ab",e._sentryDebugIdIdentifier="sentry-dbid-e239c254-97e0-497e-b68a-32ecb13d32ab")}catch{}})();function kr(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};function n(r){return s=>{const i=typeof s=="function"?s(r):s,o={...r,...i};return Object.assign(o,{extend:n(o)})}}return Object.assign(t,{extend:n(t)})}function Vr(){return{}}function de(e){let t;if(typeof e=="string")t=re(e);else{const n=we(e),r=e.length;for(let s=0;s<r;s++){const i=e[s];if(!xe(i)){t=re(i,n);break}}}if(!t)throw new We({signature:e});return t}function le(e){const t=[];if(typeof e=="string"){const n=ne(e),r=n.length;for(let s=0;s<r;s++)t.push(se(n[s],{modifiers:ie}))}else{const n=we(e),r=e.length;for(let s=0;s<r;s++){const i=e[s];if(xe(i))continue;const o=ne(i),a=o.length;for(let u=0;u<a;u++)t.push(se(o[u],{modifiers:ie,structs:n}))}}if(t.length===0)throw new He({params:e});return t}function q(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,r=Fe(Pe(e));return n==="Bytes"?r:x(r)}function _r(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,r=Ye(Pe(e));return n==="Bytes"?r:x(r)}function Ur(e){return H(e)&&w(e)===32}const wt={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new vt({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new Pt({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new he({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new he({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function xt(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(wt);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}class he extends l{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class Pt extends l{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class vt extends l{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}class It extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=this.keys().next().value;r&&this.delete(r)}return this}}const $t={checksum:new It(8192)},N=$t.checksum;function Se(e,t={}){const{compressed:n}=t,{prefix:r,x:s,y:i}=e;if(n===!1||typeof s=="bigint"&&typeof i=="bigint"){if(r!==4)throw new ye({prefix:r,cause:new St});return}if(n===!0||typeof s=="bigint"&&typeof i>"u"){if(r!==3&&r!==2)throw new ye({prefix:r,cause:new Bt});return}throw new Et({publicKey:e})}function Tr(e){const t=(()=>{if(H(e))return ze(e);if(qe(e))return At(e);const{prefix:n,x:r,y:s}=e;return typeof r=="bigint"&&typeof s=="bigint"?{prefix:n??4,x:r,y:s}:{prefix:n,x:r}})();return Se(t),t}function At(e){return ze(x(e))}function ze(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new zt({publicKey:e});if(e.length===130){const r=BigInt(m(e,0,32)),s=BigInt(m(e,32,64));return{prefix:4,x:r,y:s}}if(e.length===132){const r=Number(m(e,0,1)),s=BigInt(m(e,1,33)),i=BigInt(m(e,33,65));return{prefix:r,x:s,y:i}}const t=Number(m(e,0,1)),n=BigInt(m(e,1,33));return{prefix:t,x:n}}function Dr(e,t={}){return ve(Ce(e,t))}function Ce(e,t={}){Se(e);const{prefix:n,x:r,y:s}=e,{includePrefix:i=!0}=t;return b(i?p(n,{size:1}):"0x",p(r,{size:32}),typeof s=="bigint"?p(s,{size:32}):"0x")}class Et extends l{constructor({publicKey:t}){super(`Value \`${Ie(t)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}class ye extends l{constructor({prefix:t,cause:n}){super(`Prefix "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}class Bt extends l{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}class St extends l{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}let zt=class extends l{constructor({publicKey:t}){super(`Value \`${t}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${w($e(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}};const Ct=/^0x[a-fA-F0-9]{40}$/;function v(e,t={}){const{strict:n=!0}=t;if(!Ct.test(e))throw new pe({address:e,cause:new Rt});if(n){if(e.toLowerCase()===e)return;if(G(e)!==e)throw new pe({address:e,cause:new Lt})}}function G(e){if(N.has(e))return N.get(e);v(e,{strict:!1});const t=e.substring(2).toLowerCase(),n=q(Ge(t),{as:"Bytes"}),r=t.split("");for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&r[i]&&(r[i]=r[i].toUpperCase()),(n[i>>1]&15)>=8&&r[i+1]&&(r[i+1]=r[i+1].toUpperCase());const s=`0x${r.join("")}`;return N.set(e,s),s}function Ot(e,t={}){const{checksum:n=!1}=t;return v(e),n?G(e):e}function Wr(e,t={}){const n=q(`0x${Ce(e).slice(4)}`).substring(26);return Ot(`0x${n}`,t)}function Hr(e,t){return v(e,{strict:!1}),v(t,{strict:!1}),e.toLowerCase()===t.toLowerCase()}function U(e,t={}){const{strict:n=!0}=t??{};try{return v(e,{strict:n}),!0}catch{return!1}}class pe extends l{constructor({address:t,cause:n}){super(`Address "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class Rt extends l{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class Lt extends l{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}const Nt=/^(.*)\[([0-9]*)\]$/,jt=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Oe=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,me=2n**256n-1n;function Z(e,t={}){const{recovered:n}=t;if(typeof e.r>"u")throw new j({signature:e});if(typeof e.s>"u")throw new j({signature:e});if(n&&typeof e.yParity>"u")throw new j({signature:e});if(e.r<0n||e.r>me)throw new Wt({value:e.r});if(e.s<0n||e.s>me)throw new Ht({value:e.s});if(typeof e.yParity=="number"&&e.yParity!==0&&e.yParity!==1)throw new L({value:e.yParity})}function kt(e){return Re(x(e))}function Re(e){if(e.length!==130&&e.length!==132)throw new Mt({signature:e});const t=BigInt(m(e,0,32)),n=BigInt(m(e,32,64)),r=(()=>{const s=+`0x${e.slice(130)}`;if(!Number.isNaN(s))try{return X(s)}catch{throw new L({value:s})}})();return typeof r>"u"?{r:t,s:n}:{r:t,s:n,yParity:r}}function Vt(e){if(!(typeof e.r>"u")&&!(typeof e.s>"u"))return Le(e)}function Le(e){const t=typeof e=="string"?Re(e):e instanceof Uint8Array?kt(e):typeof e.r=="string"?Ut(e):e.v?_t(e):{r:e.r,s:e.s,...typeof e.yParity<"u"?{yParity:e.yParity}:{}};return Z(t),t}function _t(e){return{r:e.r,s:e.s,yParity:X(e.v)}}function Ut(e){const t=(()=>{const n=e.v?Number(e.v):void 0;let r=e.yParity?Number(e.yParity):void 0;if(typeof n=="number"&&typeof r!="number"&&(r=X(n)),typeof r!="number")throw new L({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function Fr(e){const[t,n,r]=e;return Le({r:n==="0x"?0n:BigInt(n),s:r==="0x"?0n:BigInt(r),yParity:t==="0x"?0:Number(t)})}function Yr(e){Z(e);const t=e.r,n=e.s;return b(p(t,{size:32}),p(n,{size:32}),typeof e.yParity=="number"?p(Dt(e.yParity),{size:1}):"0x")}function Tt(e){const{r:t,s:n,yParity:r}=e;return{r:p(t,{size:32}),s:p(n,{size:32}),yParity:r===0?"0x0":"0x1"}}function qr(e){const{r:t,s:n,yParity:r}=e;return[r?"0x01":"0x",t===0n?"0x":oe(p(t)),n===0n?"0x":oe(p(n))]}function X(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new Ft({value:e})}function Dt(e){if(e===0)return 27;if(e===1)return 28;throw new L({value:e})}class Mt extends l{constructor({signature:t}){super(`Value \`${t}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${w($e(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class j extends l{constructor({signature:t}){super(`Signature \`${Ie(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class Wt extends l{constructor({value:t}){super(`Value \`${t}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class Ht extends l{constructor({value:t}){super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class L extends l{constructor({value:t}){super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class Ft extends l{constructor({value:t}){super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}function E(e,t,n){const{checksumAddress:r,staticPosition:s}=n,i=K(t.type);if(i){const[o,a]=i;return qt(e,{...t,type:a},{checksumAddress:r,length:o,staticPosition:s})}if(t.type==="tuple")return Jt(e,t,{checksumAddress:r,staticPosition:s});if(t.type==="address")return Yt(e,{checksum:r});if(t.type==="bool")return Gt(e);if(t.type.startsWith("bytes"))return Zt(e,t,{staticPosition:s});if(t.type.startsWith("uint")||t.type.startsWith("int"))return Xt(e,t);if(t.type==="string")return Qt(e,{staticPosition:s});throw new ee(t.type)}const be=32,T=32;function Yt(e,t={}){const{checksum:n=!1}=t,r=e.readBytes(32);return[(i=>n?G(i):i)(x(Ze(r,-20))),32]}function qt(e,t,n){const{checksumAddress:r,length:s,staticPosition:i}=n;if(!s){const u=g(e.readBytes(T)),c=i+u,f=c+be;e.setPosition(c);const d=g(e.readBytes(be)),y=z(t);let h=0;const $=[];for(let P=0;P<d;++P){e.setPosition(f+(y?P*32:h));const[C,Me]=E(e,t,{checksumAddress:r,staticPosition:f});h+=Me,$.push(C)}return e.setPosition(i+32),[$,32]}if(z(t)){const u=g(e.readBytes(T)),c=i+u,f=[];for(let d=0;d<s;++d){e.setPosition(c+d*32);const[y]=E(e,t,{checksumAddress:r,staticPosition:c});f.push(y)}return e.setPosition(i+32),[f,32]}let o=0;const a=[];for(let u=0;u<s;++u){const[c,f]=E(e,t,{checksumAddress:r,staticPosition:i+o});o+=f,a.push(c)}return[a,o]}function Gt(e){return[Xe(e.readBytes(32),{size:32}),32]}function Zt(e,t,{staticPosition:n}){const[r,s]=t.type.split("bytes");if(!s){const o=g(e.readBytes(32));e.setPosition(n+o);const a=g(e.readBytes(32));if(a===0)return e.setPosition(n+32),["0x",32];const u=e.readBytes(a);return e.setPosition(n+32),[x(u),32]}return[x(e.readBytes(Number.parseInt(s,10),32)),32]}function Xt(e,t){const n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256",10),s=e.readBytes(32);return[r>48?Je(s,{signed:n}):g(s,{signed:n}),32]}function Jt(e,t,n){const{checksumAddress:r,staticPosition:s}=n,i=t.components.length===0||t.components.some(({name:u})=>!u),o=i?[]:{};let a=0;if(z(t)){const u=g(e.readBytes(T)),c=s+u;for(let f=0;f<t.components.length;++f){const d=t.components[f];e.setPosition(c+a);const[y,h]=E(e,d,{checksumAddress:r,staticPosition:c});a+=h,o[i?f:d==null?void 0:d.name]=y}return e.setPosition(s+32),[o,32]}for(let u=0;u<t.components.length;++u){const c=t.components[u],[f,d]=E(e,c,{checksumAddress:r,staticPosition:s});o[i?u:c==null?void 0:c.name]=f,a+=d}return[o,a]}function Qt(e,{staticPosition:t}){const n=g(e.readBytes(32)),r=t+n;e.setPosition(r);const s=g(e.readBytes(32));if(s===0)return e.setPosition(t+32),["",32];const i=e.readBytes(s,32),o=Qe(Ke(i));return e.setPosition(t+32),[o,32]}function Kt({checksumAddress:e,parameters:t,values:n}){const r=[];for(let s=0;s<t.length;s++)r.push(J({checksumAddress:e,parameter:t[s],value:n[s]}));return r}function J({checksumAddress:e=!1,parameter:t,value:n}){const r=t,s=K(r.type);if(s){const[i,o]=s;return tr(n,{checksumAddress:e,length:i,parameter:{...r,type:o}})}if(r.type==="tuple")return or(n,{checksumAddress:e,parameter:r});if(r.type==="address")return er(n,{checksum:e});if(r.type==="bool")return nr(n);if(r.type.startsWith("uint")||r.type.startsWith("int")){const i=r.type.startsWith("int"),[,,o="256"]=Oe.exec(r.type)??[];return sr(n,{signed:i,size:Number(o)})}if(r.type.startsWith("bytes"))return rr(n,{type:r.type});if(r.type==="string")return ir(n);throw new ee(r.type)}function Q(e){let t=0;for(let i=0;i<e.length;i++){const{dynamic:o,encoded:a}=e[i];o?t+=32:t+=w(a)}const n=[],r=[];let s=0;for(let i=0;i<e.length;i++){const{dynamic:o,encoded:a}=e[i];o?(n.push(p(t+s,{size:32})),r.push(a),s+=w(a)):n.push(a)}return b(...n,...r)}function er(e,t){const{checksum:n=!1}=t;return v(e,{strict:n}),{dynamic:!1,encoded:B(e.toLowerCase())}}function tr(e,t){const{checksumAddress:n,length:r,parameter:s}=t,i=r===null;if(!Array.isArray(e))throw new lr(e);if(!i&&e.length!==r)throw new dr({expectedLength:r,givenLength:e.length,type:`${s.type}[${r}]`});let o=!1;const a=[];for(let u=0;u<e.length;u++){const c=J({checksumAddress:n,parameter:s,value:e[u]});c.dynamic&&(o=!0),a.push(c)}if(i||o){const u=Q(a);if(i){const c=p(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?b(c,u):c}}if(o)return{dynamic:!0,encoded:u}}return{dynamic:!1,encoded:b(...a.map(({encoded:u})=>u))}}function rr(e,{type:t}){const[,n]=t.split("bytes"),r=w(e);if(!n){let s=e;return r%32!==0&&(s=S(s,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:b(B(p(r,{size:32})),s)}}if(r!==Number.parseInt(n,10))throw new je({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:S(e)}}function nr(e){if(typeof e!="boolean")throw new l(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:B(Ae(e))}}function sr(e,{signed:t,size:n}){if(typeof n=="number"){const r=2n**(BigInt(n)-(t?1n:0n))-1n,s=t?-r-1n:0n;if(e>r||e<s)throw new et({max:r.toString(),min:s.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:p(e,{size:32,signed:t})}}function ir(e){const t=F(e),n=Math.ceil(w(t)/32),r=[];for(let s=0;s<n;s++)r.push(S(m(t,s*32,(s+1)*32)));return{dynamic:!0,encoded:b(S(p(w(t),{size:32})),...r)}}function or(e,t){const{checksumAddress:n,parameter:r}=t;let s=!1;const i=[];for(let o=0;o<r.components.length;o++){const a=r.components[o],u=Array.isArray(e)?o:a.name,c=J({checksumAddress:n,parameter:a,value:e[u]});i.push(c),c.dynamic&&(s=!0)}return{dynamic:s,encoded:s?Q(i):b(...i.map(({encoded:o})=>o))}}function K(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function z(e){var r;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(r=e.components)==null?void 0:r.some(z);const n=K(e.type);return!!(n&&z({...e,type:n[1]}))}function ar(e,t,n={}){const{as:r="Array",checksumAddress:s=!1}=n,i=typeof t=="string"?ve(t):t,o=xt(i);if(O(i)===0&&e.length>0)throw new fr;if(O(i)&&O(i)<32)throw new ur({data:typeof t=="string"?t:x(t),parameters:e,size:O(i)});let a=0;const u=r==="Array"?[]:{};for(let c=0;c<e.length;++c){const f=e[c];o.setPosition(a);const[d,y]=E(o,f,{checksumAddress:s,staticPosition:0});a+=y,r==="Array"?u.push(d):u[f.name??c]=d}return u}function cr(e,t,n){const{checksumAddress:r=!1}={};if(e.length!==t.length)throw new ke({expectedLength:e.length,givenLength:t.length});const s=Kt({checksumAddress:r,parameters:e,values:t}),i=Q(s);return i.length===0?"0x":i}function D(e,t){if(e.length!==t.length)throw new ke({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;r<e.length;r++){const s=e[r],i=t[r];n.push(D.encode(s,i))}return b(...n)}(function(e){function t(n,r,s=!1){if(n==="address"){const u=r;return v(u),B(u.toLowerCase(),s?32:0)}if(n==="string")return F(r);if(n==="bytes")return r;if(n==="bool")return B(Ae(r),s?32:1);const i=n.match(Oe);if(i){const[u,c,f="256"]=i,d=Number.parseInt(f,10)/8;return p(r,{size:s?32:d,signed:c==="int"})}const o=n.match(jt);if(o){const[u,c]=o;if(Number.parseInt(c,10)!==(r.length-2)/2)throw new je({expectedSize:Number.parseInt(c,10),value:r});return S(r,s?32:0)}const a=n.match(Nt);if(a&&Array.isArray(r)){const[u,c]=a,f=[];for(let d=0;d<r.length;d++)f.push(t(c,r[d],!0));return f.length===0?"0x":b(...f)}throw new ee(n)}e.encode=t})(D||(D={}));function Ne(e){return Array.isArray(e)&&typeof e[0]=="string"||typeof e=="string"?le(e):e}class ur extends l{constructor({data:t,parameters:n,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${tt(n)})`,`Data: ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class fr extends l{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class dr extends l{constructor({expectedLength:t,givenLength:n,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${t}\`. Given: \`${n}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class je extends l{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${w(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class ke extends l{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${n}`].join(`
|
|
2
2
|
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class lr extends l{constructor(t){super(`Value \`${t}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class ee extends l{constructor(t){super(`Type \`${t}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}function M(e){let t=!0,n="",r=0,s="",i=!1;for(let o=0;o<e.length;o++){const a=e[o];if(["(",")",","].includes(a)&&(t=!0),a==="("&&r++,a===")"&&r--,!!t){if(r===0){if(a===" "&&["event","function","error",""].includes(s))s="";else if(s+=a,a===")"){i=!0;break}continue}if(a===" "){e[o-1]!==","&&n!==","&&n!==",("&&(n="",t=!1);continue}s+=a,n+=a}}if(!i)throw new l("Unable to normalize signature.");return s}function W(e,t){const n=typeof e,r=t.type;switch(r){case"address":return U(e,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return r==="tuple"&&"components"in t?Object.values(t.components).every((s,i)=>W(Object.values(e)[i],s)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)?Array.isArray(e)&&e.every(s=>W(s,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function Ve(e,t,n){for(const r in e){const s=e[r],i=t[r];if(s.type==="tuple"&&i.type==="tuple"&&"components"in s&&"components"in i)return Ve(s.components,i.components,n[r]);const o=[s.type,i.type];if(o.includes("address")&&o.includes("bytes20")?!0:o.includes("address")&&o.includes("string")?U(n[r],{strict:!1}):o.includes("address")&&o.includes("bytes")?U(n[r],{strict:!1}):!1)return o}}function Gr(e,t={}){const{prepare:n=!0}=t,r=Array.isArray(e)||typeof e=="string"?de(e):e;return{...r,...n?{hash:A(r)}:{}}}function te(e,t,n){const{args:r=[],prepare:s=!0}=n??{},i=H(t,{strict:!1}),o=e.filter(c=>i?c.type==="function"||c.type==="error"?hr(c)===m(t,0,4):c.type==="event"?A(c)===t:!1:"name"in c&&c.name===t);if(o.length===0)throw new ge({name:t});if(o.length===1)return{...o[0],...s?{hash:A(o[0])}:{}};let a;for(const c of o){if(!("inputs"in c))continue;if(!r||r.length===0){if(!c.inputs||c.inputs.length===0)return{...c,...s?{hash:A(c)}:{}};continue}if(!c.inputs||c.inputs.length===0||c.inputs.length!==r.length)continue;if(r.every((d,y)=>{const h="inputs"in c&&c.inputs[y];return h?W(d,h):!1})){if(a&&"inputs"in a&&a.inputs){const d=Ve(c.inputs,a.inputs,r);if(d)throw new pr({abiItem:c,type:d[0]},{abiItem:a,type:d[1]})}a=c}}const u=(()=>{if(a)return a;const[c,...f]=o;return{...c,overloads:f}})();if(!u)throw new ge({name:t});return{...u,...s?{hash:A(u)}:{}}}function hr(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,r]=e;return te(n,r)}return e[0]})();return m(A(t),0,4)}function yr(...e){const t=(()=>{if(Array.isArray(e[0])){const[r,s]=e;return te(r,s)}return e[0]})(),n=typeof t=="string"?t:k(t);return M(n)}function A(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,r]=e;return te(n,r)}return e[0]})();return typeof t!="string"&&"hash"in t&&t.hash?t.hash:q(F(yr(t)))}class pr extends l{constructor(t,n){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${M(k(t.abiItem))}\`, and`,`\`${n.type}\` in \`${M(k(n.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class ge extends l{constructor({name:t,data:n,type:r="item"}){const s=t?` with name "${t}"`:n?` with data "${n}"`:"";super(`ABI ${r}${s} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}function mr(e,t={}){return typeof e.chainId=="string"?_e(e):{...e,...t.signature}}function _e(e){const{address:t,chainId:n,nonce:r}=e,s=Vt(e);return{address:t,chainId:Number(n),nonce:BigInt(r),...s}}function Zr(e){return e.map(_e)}function br(e){const{address:t,chainId:n,nonce:r,...s}=e;return{address:t,chainId:p(n),nonce:p(r),...Tt(s)}}function Xr(e){return e.map(br)}async function gr(e,{address:t,blockHash:n,blockNumber:r,blockTag:s="latest",requireCanonical:i}){const o=rt({blockHash:n,blockNumber:r,blockTag:s,requireCanonical:i}),a=await e.request({method:"eth_getCode",params:[t,o]},{dedupe:typeof r=="bigint"||n!==void 0});if(a!=="0x")return a}const Ue="0x6492649264926492649264926492649264926492649264926492649264926492";function wr(e){if(m(e,-32)!==Ue)throw new vr(e)}function xr(e){const{data:t,signature:n,to:r}=e;return b(cr(Ne("address, bytes, bytes"),[r,t,n]),Ue)}function Pr(e){try{return wr(e),!0}catch{return!1}}let vr=class extends l{constructor(t){super(`Value \`${t}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}};const Ir="0x8010801080108010801080108010801080108010801080108010801080108010",$r=Ne("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function Te(e){if(typeof e=="string"){if(m(e,-32)!==Ir)throw new Br(e)}else Z(e.authorization)}function Ar(e){Te(e);const t=nt(m(e,-64,-32)),n=m(e,-t-64,-64),r=m(e,0,-t-64),[s,i,o]=ar($r,n);return{authorization:mr({address:s.delegation,chainId:Number(s.chainId),nonce:s.nonce,yParity:s.yParity,r:s.r,s:s.s}),signature:r,...o&&o!=="0x"?{data:o,to:i}:{}}}function Er(e){try{return Te(e),!0}catch{return!1}}class Br extends l{constructor(t){super(`Value \`${t}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}}async function Sr({address:e,authorization:t,signature:n}){return V(_(e),await st({authorization:t,signature:n}))}function zr({r:e,s:t,to:n="hex",v:r,yParity:s}){const i=(()=>{if(s===0||s===1)return s;if(r&&(r===27n||r===28n||r>=35n))return r%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),o=`0x${new gt.Signature(ce(e),ce(t)).toCompactHex()}${i===0?"1b":"1c"}`;return n==="hex"?o:ht(o)}async function De(e,t){const{abi:n,address:r,args:s,functionName:i,...o}=t,a=Y({abi:n,args:s,functionName:i});try{const{data:u}=await R(e,Ee,"call")({...o,data:a,to:r});return it({abi:n,args:s,functionName:i,data:u||"0x"})}catch(u){throw ot(u,{abi:n,address:r,args:s,docsPath:"/docs/contract/readContract",functionName:i})}}async function Qr(e,t){var c,f,d,y;const{address:n,chain:r=e.chain,hash:s,erc6492VerifierAddress:i=t.universalSignatureVerifierAddress??((f=(c=r==null?void 0:r.contracts)==null?void 0:c.erc6492Verifier)==null?void 0:f.address),multicallAddress:o=t.multicallAddress??((y=(d=r==null?void 0:r.contracts)==null?void 0:d.multicall3)==null?void 0:y.address),mode:a="auto"}=t;if(r!=null&&r.verifyHash)return await r.verifyHash(e,t);const u=(()=>{const h=t.signature;return yt(h)?h:typeof h=="object"&&"r"in h&&"s"in h?zr(h):pt(h)})();try{if(a==="eoa")try{if(V(_(n),await ae({hash:s,signature:u})))return!0}catch{}return Er(u)?await Cr(e,{...t,multicallAddress:o,signature:u}):await Or(e,{...t,verifierAddress:i,signature:u})}catch(h){if(a!=="eoa")try{if(V(_(n),await ae({hash:s,signature:u})))return!0}catch{}if(h instanceof I)return!1;throw h}}async function Cr(e,t){var C;const{address:n,blockNumber:r,blockTag:s,hash:i,multicallAddress:o}=t,{authorization:a,data:u,signature:c,to:f}=Ar(t.signature);if(await gr(e,{address:n,blockNumber:r,blockTag:s})===at(["0xef0100",a.address]))return await Rr(e,{address:n,blockNumber:r,blockTag:s,hash:i,signature:c});const y={address:a.address,chainId:Number(a.chainId),nonce:Number(a.nonce),r:ue(a.r,{size:32}),s:ue(a.s,{size:32}),yParity:a.yParity};if(!await Sr({address:n,authorization:y}))throw new I;const $=await R(e,De,"readContract")({...o?{address:o}:{code:ct},authorizationList:[y],abi:mt,blockNumber:r,blockTag:"pending",functionName:"aggregate3",args:[[...u?[{allowFailure:!0,target:f??n,callData:u}]:[],{allowFailure:!0,target:n,callData:Y({abi:Be,functionName:"isValidSignature",args:[i,c]})}]]}),P=(C=$[$.length-1])==null?void 0:C.returnData;if(P!=null&&P.startsWith("0x1626ba7e"))return!0;throw new I}async function Or(e,t){const{address:n,factory:r,factoryData:s,hash:i,signature:o,verifierAddress:a,...u}=t,c=await(async()=>!r&&!s||Pr(o)?o:xr({data:s,signature:o,to:r}))(),f=a?{to:a,data:Y({abi:fe,functionName:"isValidSig",args:[n,i,c]}),...u}:{data:ut({abi:fe,args:[n,i,c],bytecode:ft}),...u},{data:d}=await R(e,Ee,"call")(f).catch(y=>{throw y instanceof dt?new I:y});if(bt(d??"0x0"))return!0;throw new I}async function Rr(e,t){const{address:n,blockNumber:r,blockTag:s,hash:i,signature:o}=t;if((await R(e,De,"readContract")({address:n,abi:Be,args:[i,o],blockNumber:r,blockTag:s,functionName:"isValidSignature"}).catch(u=>{throw u instanceof lt?new I:u})).startsWith("0x1626ba7e"))return!0;throw new I}class I extends Error{}export{Tt as A,G as B,v as C,Vt as D,Zr as E,Dt as F,Xr as G,Ur as H,Le as I,qr as J,Fr as K,ze as L,ge as N,le as a,cr as b,te as c,kr as d,Vr as e,Gr as f,gr as g,hr as h,xt as i,Hr as j,Dr as k,Tr as l,Wr as m,_r as n,q as o,de as p,Ot as q,De as r,zr as s,Ce as t,U as u,Qr as v,Re as w,Z as x,Ut as y,Yr as z};
|
|
3
|
-
//# sourceMappingURL=verifyHash-
|
|
3
|
+
//# sourceMappingURL=verifyHash-BvlEdLQe.js.map
|