@dcl/shop 0.1.0-28716868442.commit-8bfb3b0 → 0.1.0-28747573214.commit-462a45d
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/{Assets-nmQB2810.js → Assets-DfOXKOnR.js} +1 -1
- package/assets/{Cart-CVq8ErN4.js → Cart-DbbHo7Lp.js} +1 -1
- package/assets/{Collection-DrWaGsbD.js → Collection-BBAHD9v7.js} +1 -1
- package/assets/{Creator-CODX4HY-.js → Creator-Cf3awWfr.js} +1 -1
- package/assets/{ExchangeController-DGYlS1u1.js → ExchangeController-C636pVri.js} +1 -1
- package/assets/GetCredits-BbICBHrS.js +2 -0
- package/assets/{HelpersUtil-Cs7A9lff.js → HelpersUtil-D13uBBzL.js} +1 -1
- package/assets/{ImportListings-DWEJuGBQ.js → ImportListings-BBkMIFrL.js} +1 -1
- package/assets/{ItemDetail-CLZiYPr_.js → ItemDetail-Dn0l_owe.js} +1 -1
- package/assets/{Market-C5YZkU0k.js → Market-CMksg97B.js} +1 -1
- package/assets/{MyAssets-DiQ1f-Nx.js → MyAssets-Ly529Qzy.js} +1 -1
- package/assets/{MyFavorites-D2neF-WT.js → MyFavorites-BM98-wNr.js} +1 -1
- package/assets/{MyPurchases-CX-sT4T9.js → MyPurchases-DDXg_7hF.js} +1 -1
- package/assets/{RealCheckout-DVYTPQMi.js → RealCheckout-CZ81fyEJ.js} +1 -1
- package/assets/{Success-Dty0MEac.js → Success-De5n3cBh.js} +1 -1
- package/assets/SvgIcon-DMAonb7f.js +1 -0
- package/assets/{SwapController-CTsLqo0R.js → SwapController-DPv5gEgC.js} +1 -1
- package/assets/TradeService-BuOZVMe-.js +1 -0
- package/assets/{W3MFrameProviderSingleton-DBf03HGk.js → W3MFrameProviderSingleton-C53Q9nWr.js} +3 -3
- package/assets/{WebCryptoP256-BMVi41Tf.js → WebCryptoP256-DpIFc-YF.js} +1 -1
- package/assets/{basic-BKlH1yZE.js → basic-9TVVZq54.js} +1 -1
- package/assets/{biconomy-BuC8Y20q.js → biconomy-BqDW4_Fp.js} +1 -1
- package/assets/{buy-qVYsiH8c.js → buy-WskP4uLn.js} +1 -1
- package/assets/{buy-gasless-EwLKJESl.js → buy-gasless-BGYfXddW.js} +1 -1
- package/assets/{ccip-BXAlyEXK.js → ccip-Bj2uK6oU.js} +1 -1
- package/assets/{ccip-BhXlCEl_.js → ccip-D_jnTLJz.js} +1 -1
- package/assets/{collection-yK7CsBpq.js → collection-BxPtwR5Z.js} +1 -1
- package/assets/{controller-D31V5T7x.js → controller-B8DfbcQK.js} +2 -2
- package/assets/{core-HiY9JG8Q.js → core-CwPOZw31.js} +4 -4
- package/assets/{custom-CNeK1SBe.js → custom-CGIKAcy_.js} +1 -1
- package/assets/{data-capture-BGCV8f_8.js → data-capture-DxwcCoJo.js} +1 -1
- package/assets/decimals-B0WxCOWV.js +1 -0
- package/assets/{decimals-eyiqtEAM.js → decimals-DxJOLJvr.js} +1 -1
- package/assets/{detectExtension-HGgsLFYa.js → detectExtension-C1tdnZ3w.js} +1 -1
- package/assets/{email-D3mSaTDc.js → email-D72jCMmT.js} +1 -1
- package/assets/{embedded-wallet-BIpOn63k.js → embedded-wallet-Bog9n_tH.js} +1 -1
- package/assets/{engine-Cp4bGvGY.js → engine-Bog4mCpH.js} +1 -1
- package/assets/{estimate-l1-fee-DqCr-VRj.js → estimate-l1-fee-CuQIe1md.js} +1 -1
- package/assets/{eth_estimateGas-Btj3BdU3.js → eth_estimateGas-BeOmUDSu.js} +1 -1
- package/assets/{eth_getStorageAt-cAsXEzwb.js → eth_getStorageAt-9X28hhH4.js} +1 -1
- package/assets/{eth_getTransactionCount-9mRngMvR.js → eth_getTransactionCount-CHvlH_2Q.js} +1 -1
- package/assets/{extractIPFS-Cos3MMqA.js → extractIPFS-CzVhnm6X.js} +1 -1
- package/assets/{features-CS9ITEyv.js → features-Ds8qi8e0.js} +1 -1
- package/assets/{fetchTokenMetadata--27nDLvT.js → fetchTokenMetadata-DyKFRjaS.js} +2 -2
- package/assets/{get-ecosystem-wallet-info-DsGpr1v9.js → get-ecosystem-wallet-info-DVtQmxfc.js} +1 -1
- package/assets/{getBalance-C1EIeWK3.js → getBalance-CPtlpRd8.js} +1 -1
- package/assets/{getInstalledModules-CSy_anIJ.js → getInstalledModules-jCIwW2OV.js} +1 -1
- package/assets/{getNFT-Biv4Mkbw.js → getNFT-17KjVI3E.js} +1 -1
- package/assets/{getNFT-C3k4-I_M.js → getNFT-D71TQwqJ.js} +2 -2
- package/assets/{hashTypedData-DCkFFbNQ.js → hashTypedData-22Nm0csw.js} +1 -1
- package/assets/{hashTypedData-D-eX1daT.js → hashTypedData-BsHEgjBY.js} +1 -1
- package/assets/{import-DjExR-_c.js → import-CcQ3dh0l.js} +1 -1
- package/assets/{in-app-wallet-calls-BsZ7t_xW.js → in-app-wallet-calls-t-sxRkB2.js} +1 -1
- package/assets/{index-BDnsSs1l.js → index--aCrl8ym.js} +1 -1
- package/assets/{index-BSTJA_7O.js → index-1QyqBynD.js} +2 -2
- package/assets/{index-zhHTnO6h.js → index-B6FpnCqN.js} +1 -1
- package/assets/{index-DDLsPu5_.js → index-BHOQ04tl.js} +16 -16
- package/assets/{index-BgPhxGKT.js → index-BHoDUeMz.js} +1 -1
- package/assets/{index-DGoPqCsR.js → index-BRXlFZYr.js} +1 -1
- package/assets/{index-C0nXxFCO.js → index-BSHqxnWX.js} +1 -1
- package/assets/{index-m9UlXIqW.js → index-BU0oqH1v.js} +1 -1
- package/assets/{index-BnFty3Li.js → index-BW0vL61p.js} +1 -1
- package/assets/{index-B-iF1tO2.js → index-BW4u89-l.js} +1 -1
- package/assets/{index-DgAZv7hc.js → index-BitTsk-8.js} +1 -1
- package/assets/{index-DUVY_38U.js → index-BopweyiH.js} +1 -1
- package/assets/{index-CWgv2cWv.js → index-BuiY2b5V.js} +1 -1
- package/assets/{index-BTkTkfcn.js → index-Bvp-iyve.js} +1 -1
- package/assets/{index-Cmk_xiBk.js → index-Bw9N_kF_.js} +1 -1
- package/assets/{index-D-S19rzI.js → index-BwKjjXxD.js} +1 -1
- package/assets/{index-0QSHJ5kM.js → index-BwNwknii.js} +1 -1
- package/assets/{index-Xk2toQGa.js → index-C4O-XKSm.js} +1 -1
- package/assets/{index-DpcKgN-v.js → index-CNbUbmHm.js} +1 -1
- package/assets/{index-BoJsJx--.js → index-COCOMkF6.js} +1 -1
- package/assets/{index-BEDCm9Wu.js → index-Cf02sP_a.js} +1 -1
- package/assets/{index-BP1BUYI1.js → index-CfzTflc3.js} +1 -1
- package/assets/{index-KarPC4Z4.js → index-Ck94hhTo.js} +1 -1
- package/assets/{index-cWedEEGZ.js → index-Cm04cZlI.js} +1 -1
- package/assets/{index-kpX0X-RL.js → index-CtdBxwRn.js} +1 -1
- package/assets/{index-Brg6cgDQ.js → index-CwQ4WZHg.js} +1 -1
- package/assets/{index-xmSB5b1v.js → index-CwbrgNKr.js} +1 -1
- package/assets/{index-CdcrnJ5_.js → index-Cx5vMrtt.js} +1 -1
- package/assets/{index-DquEMs4O.js → index-D-XWUY--.js} +1 -1
- package/assets/{index-Cj7vACZe.js → index-D1Hm6q3z.js} +1 -1
- package/assets/{index-D1cUVAY6.js → index-D2i3ctoC.js} +1 -1
- package/assets/{index-CrBV_1yu.js → index-DEh0LiFK.js} +1 -1
- package/assets/{index-CLE07-_x.js → index-DHKMIodB.js} +1 -1
- package/assets/{index-NdfBDpoO.js → index-DLUxEVXI.js} +1 -1
- package/assets/{index-BbTcdIk0.js → index-DLXCkPW8.js} +1 -1
- package/assets/{index-CLy-wBAP.js → index-DT36RcnA.js} +2 -2
- package/assets/{index-B91_eufC.js → index-DXqcXSOs.js} +1 -1
- package/assets/{index-XzW65SVh.js → index-DYPF9UsI.js} +1 -1
- package/assets/{index-BkdaY7_G.js → index-DpzUBtKq.js} +3 -3
- package/assets/{index-CJEb8Kzs.js → index-DuzIppyc.js} +1 -1
- package/assets/{index-CqIROolS.js → index-DvOTdACV.js} +1 -1
- package/assets/{index-CWRbefrn.js → index-DxHbUIT4.js} +1 -1
- package/assets/{index-DOExxORl.js → index-RrpD-c5G.js} +1 -1
- package/assets/{index-BBWsjtyi.js → index-VI4KjHoC.js} +1 -1
- package/assets/{index-CyqLliR_.js → index-heQt9VsF.js} +3 -3
- package/assets/{index-CXiOQLIu.js → index-iwu8tO4Z.js} +1 -1
- package/assets/{index-D5uLI4BM.js → index-jHxTGJdg.js} +1 -1
- package/assets/{index-CLkVyB5o.js → index-o5cecGpl.js} +1 -1
- package/assets/{index-CLXqEKlA.js → index-sHr-hGKY.js} +1 -1
- package/assets/{index-CQtzuPXx.js → index-wg2QrcW5.js} +1 -1
- package/assets/{index-DccLoKMC.js → index-xXtPh54p.js} +2 -2
- package/assets/{index.es-CFwo152a.js → index.es-2PzIAt_1.js} +1 -1
- package/assets/{index.es-BtrYS_gk.js → index.es-DEttXaJp.js} +4 -4
- package/assets/{index.es-Cw0Wg8zr.js → index.es-DdKll-wt.js} +1 -1
- package/assets/{localBatchGatewayRequest-W5wM5RIw.js → localBatchGatewayRequest-C-g14orC.js} +1 -1
- package/assets/{mana-rate-D91Nq-wO.js → mana-rate-DeQxAZWf.js} +1 -1
- package/assets/network-Cc_j76mj.js +1 -0
- package/assets/{networks-DLxu9QYW.js → networks-DQ_uJOW0.js} +1 -1
- package/assets/{onramp-DjMFTSAW.js → onramp-Fj0QTWoK.js} +1 -1
- package/assets/{openzeppelin-2ZkXoMQF.js → openzeppelin-C05m57x-.js} +1 -1
- package/assets/{ownerOf-BAgrPslR.js → ownerOf-iDx9Bfmb.js} +1 -1
- package/assets/{parseNft-xmwbSwKx.js → parseNft-BbqeSraZ.js} +2 -2
- package/assets/{parseSignature-DS_qYYXg.js → parseSignature-BpHf1ckR.js} +3 -3
- package/assets/{parseSignature-Dfqx4qdB.js → parseSignature-DecPFzAG.js} +1 -1
- package/assets/{pay-with-exchange-BfqKWl-i.js → pay-with-exchange-DcOvi8il.js} +1 -1
- package/assets/{qr-overlay-CuzJkOyH.js → qr-overlay-C42zumtd.js} +1 -1
- package/assets/{receive-BXV5EvIe.js → receive-CBWc5sHm.js} +1 -1
- package/assets/{resolveImplementation-Cp1kSEV-.js → resolveImplementation-Dfnpuqfy.js} +1 -1
- package/assets/{rpc-Dtax0ZGB.js → rpc-CpwULMGN.js} +1 -1
- package/assets/{secp256k1-C95i4S9L.js → secp256k1-BnqRXIY8.js} +1 -1
- package/assets/{secp256k1-yf38iHjx.js → secp256k1-C6oufD3A.js} +1 -1
- package/assets/{secp256k1-D8wYY9C6.js → secp256k1-yeQJ89oh.js} +1 -1
- package/assets/{send-bACcTxXh.js → send-BkoLHxtn.js} +1 -1
- package/assets/{send-batch-transaction-vUlQ3f8W.js → send-batch-transaction-BSK7bmqA.js} +1 -1
- package/assets/{send-eip712-transaction-BAhg0sSO.js → send-eip712-transaction-Dn-wh_B2.js} +2 -2
- package/assets/{send-gasless-transaction-Bbc--ckt.js → send-gasless-transaction-Ca3gem0_.js} +2 -2
- package/assets/{sendRawTransaction-Cn-exoEI.js → sendRawTransaction-Cs49dy2x.js} +3 -3
- package/assets/{serializeTransaction-CI3T0WRP.js → serializeTransaction-KiaMgBPL.js} +1 -1
- package/assets/{session-proposal-D0XHSqV_.js → session-proposal-vzIJwf7D.js} +1 -1
- package/assets/{session-request-BsTTXWj7.js → session-request-BEIJZaAK.js} +2 -2
- package/assets/{sha256-DMkvy9Cz.js → sha256-BiN04lIc.js} +1 -1
- package/assets/{signing-DeH43Aaw.js → signing-BwGscoGI.js} +4 -4
- package/assets/{socials-D-IAo2yx.js → socials-CkBpzoYO.js} +1 -1
- package/assets/{swaps-BWMX0U3I.js → swaps-DQ5hCG4G.js} +1 -1
- package/assets/{thirdweb-iPhsIfpR.js → thirdweb-DGSIWchy.js} +3 -3
- package/assets/{totalSupply-CSwsdpN_.js → totalSupply--7Gy53iL.js} +1 -1
- package/assets/{transactionReceipt-U1NdpKCV.js → transactionReceipt-BqWcSLOT.js} +1 -1
- package/assets/{transactions-BkfWn19q.js → transactions-BLMRTJRj.js} +1 -1
- package/assets/{useInfiniteGrid-6pBFQ8Kh.js → useInfiniteGrid-DPeVNTF0.js} +1 -1
- package/assets/{verifyHash-C7RY1nlI.js → verifyHash-BbyYMDj2.js} +1 -1
- package/assets/{w3m-modal-1UZQLvps.js → w3m-modal-BO7VJd_F.js} +1 -1
- package/assets/{w3m-modal-DMTcXY8g.js → w3m-modal-CU9GrhG1.js} +1 -1
- package/assets/{wait-for-tx-receipt-Dy501zTV.js → wait-for-tx-receipt-B7zpFNTs.js} +1 -1
- package/assets/{wallet-kind-By432Wm8.js → wallet-kind-I50FvVNZ.js} +1 -1
- package/assets/{wallets-DpuodgNe.js → wallets-3KLAORfj.js} +6 -6
- package/assets/{web-connector-C0IKOCFh.js → web-connector-n3P_8fE1.js} +3 -3
- package/assets/{writeContract-B_fZae2g.js → writeContract-CuPR4V-g.js} +1 -1
- package/assets/{zoraTestnet-DBtbozoi.js → zoraTestnet-lp6nJymD.js} +1 -1
- package/index.html +8 -8
- package/package.json +2 -2
- package/assets/GetCredits-BJ-vtPKx.js +0 -2
- package/assets/SvgIcon-CqOcU2_R.js +0 -1
- package/assets/TradeService-Co6yXz1n.js +0 -1
- package/assets/decimals-690uYbRk.js +0 -1
- package/assets/network-ivZE_UMc.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as m,b as h}from"./lit-element-B3y9oplH.js";import{n as b,o as v,r as C}from"./class-map-CxwNmq0D.js";import{d as k,r as g}from"./index-
|
|
1
|
+
import{i as m,b as h}from"./lit-element-B3y9oplH.js";import{n as b,o as v,r as C}from"./class-map-CxwNmq0D.js";import{d as k,r as g}from"./index-heQt9VsF.js";import{c as y}from"./index-DEh0LiFK.js";import{e as O,n as _}from"./ref-BsAZ42-h.js";import{e as L,i as R,p as j,O as l}from"./W3MFrameProviderSingleton-C53Q9nWr.js";const d=j({isLegalCheckboxChecked:!1}),f={state:d,subscribe(e){return R(d,()=>e(d))},subscribeKey(e,t){return L(d,e,t)},setIsLegalCheckboxChecked(e){d.isLegalCheckboxChecked=e}},z=k`
|
|
2
2
|
label {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as b,i as g,b as m}from"./lit-element-B3y9oplH.js";import{n as v,r as h}from"./class-map-CxwNmq0D.js";import{d as y}from"./index-
|
|
1
|
+
import{a as b,i as g,b as m}from"./lit-element-B3y9oplH.js";import{n as v,r as h}from"./class-map-CxwNmq0D.js";import{d as y}from"./index-heQt9VsF.js";import{c as w}from"./index-DEh0LiFK.js";import{j as x,e as $,i as R,p as T,R as C,M as P}from"./W3MFrameProviderSingleton-C53Q9nWr.js";const s=T({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),_={state:s,subscribe(t){return R(s,()=>t(s))},subscribeKey(t,e){return $(s,t,e)},showTooltip({message:t,triggerRect:e,variant:o}){s.open=!0,s.message=t,s.triggerRect=e,s.variant=o},hide(){s.open=!1,s.message="",s.triggerRect={width:0,height:0,top:0,left:0}}},a=x(_),j=b`
|
|
2
2
|
:host {
|
|
3
3
|
width: 100%;
|
|
4
4
|
display: block;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as _,b as l,a as ve}from"./lit-element-B3y9oplH.js";import{n as b,o as f,r as h,a as Ie}from"./class-map-CxwNmq0D.js";import{d as U,r as Ne,e as Se,v as ke}from"./index-
|
|
1
|
+
import{i as _,b as l,a as ve}from"./lit-element-B3y9oplH.js";import{n as b,o as f,r as h,a as Ie}from"./class-map-CxwNmq0D.js";import{d as U,r as Ne,e as Se,v as ke}from"./index-heQt9VsF.js";import{c as C,U as _e}from"./index-DEh0LiFK.js";import"./index-BopweyiH.js";import"./index-D2i3ctoC.js";import"./index-COCOMkF6.js";import"./index-Cm04cZlI.js";import"./index-Cx5vMrtt.js";import"./index-BU0oqH1v.js";import"./index-sHr-hGKY.js";import{$ as Ce,k as v,a0 as $e,a1 as y,b as O,a2 as Re,a3 as N,O as ce,N as A,a4 as me,C as m,q as T,E as M,S as R,n as Oe,M as G,e as Ue,i as Le,p as qe,o as P,R as z}from"./W3MFrameProviderSingleton-C53Q9nWr.js";import{au as I}from"./NetworkUtil-DRBYr7tG.js";import"./index-BW0vL61p.js";import{M as ge}from"./MathUtil-BGCe3rZ3.js";const De=U`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as f,i as w,b as l}from"./lit-element-B3y9oplH.js";import{n as o,o as y}from"./class-map-CxwNmq0D.js";import{c as v,U as $}from"./index-
|
|
1
|
+
import{w as f,i as w,b as l}from"./lit-element-B3y9oplH.js";import{n as o,o as y}from"./class-map-CxwNmq0D.js";import{c as v,U as $}from"./index-DEh0LiFK.js";import"./index-COCOMkF6.js";import{d as b,r as x,e as z}from"./index-heQt9VsF.js";import"./index-Ck94hhTo.js";const S=f`<svg width="86" height="96" fill="none">
|
|
2
2
|
<path
|
|
3
3
|
d="M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z"
|
|
4
4
|
/>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as m,b as f}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{c as l}from"./index-
|
|
1
|
+
import{i as m,b as f}from"./lit-element-B3y9oplH.js";import{n as h}from"./class-map-CxwNmq0D.js";import{c as l}from"./index-DEh0LiFK.js";import{d as c}from"./index-heQt9VsF.js";const p=c`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
background: linear-gradient(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as f,b as l,a as ee}from"./lit-element-B3y9oplH.js";import{n as c,o as w,r as u,a as Ii}from"./class-map-CxwNmq0D.js";import{d as v,r as _,e as W}from"./index-
|
|
1
|
+
import{i as f,b as l,a as ee}from"./lit-element-B3y9oplH.js";import{n as c,o as w,r as u,a as Ii}from"./class-map-CxwNmq0D.js";import{d as v,r as _,e as W}from"./index-heQt9VsF.js";import{c as p,U as F}from"./index-DEh0LiFK.js";import"./index-COCOMkF6.js";import"./index-Cx5vMrtt.js";import"./index-CfzTflc3.js";import{O as m,C as d,L as Ee,q as E,b as y,M as P,E as C,t as me,o as b,R as h,d as D,S as A,k as x,l as ze,W as Fe,ak as Xt,aj as he,a3 as J,a1 as qi,z as I,am as tt,A as _i,F as Ki,D as Gi,y as Xi,T as ft,V as Yt,X as Qt,a9 as Yi,ao as Qi,Z as Bt,ap as Ji}from"./W3MFrameProviderSingleton-C53Q9nWr.js";import"./index-Ck94hhTo.js";import{W as Ls,a as js}from"./index-DuzIppyc.js";import"./index-D2i3ctoC.js";import"./index-Cm04cZlI.js";import"./index-BopweyiH.js";import{au as S}from"./NetworkUtil-DRBYr7tG.js";import{H as Jt}from"./HelpersUtil-D13uBBzL.js";import{n as Zi}from"./index-BU0oqH1v.js";import{E as Q}from"./ExchangeController-C636pVri.js";import"./index-iwu8tO4Z.js";import"./index-DvOTdACV.js";import"./index-BRXlFZYr.js";import{M as mt}from"./MathUtil-BGCe3rZ3.js";import"./index-sHr-hGKY.js";import{e as Zt,n as ei}from"./ref-BsAZ42-h.js";import"./index--aCrl8ym.js";import"./index-BW0vL61p.js";import"./index-DYPF9UsI.js";import"./index-VI4KjHoC.js";import{O as bt}from"./index-BHoDUeMz.js";import{e as en}from"./index-DxHbUIT4.js";import"./index-BwKjjXxD.js";import"./index-DXqcXSOs.js";import{N as tn}from"./NavigationUtil-DmfK5sOV.js";import"./index-D-XWUY--.js";import"./index-BHOQ04tl.js";import"./react-E8ng6RF2.js";import"./ethers-BxoDGoYp.js";import"./index-xXtPh54p.js";import"./index-B6FpnCqN.js";import"./index-BwWuCRvy.js";import"./index-nibyPLVP.js";import"./index-CwQ4WZHg.js";import"./index.es-2PzIAt_1.js";import"./browser-ponyfill-DgNUJw98.js";import"./ConstantsUtil-CkFCQ14z.js";import"./async-directive-BRxn_Py3.js";import"./browser-tNtPL9tA.js";const nn=v`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as k}from"./index-BV8s6ez1.js";import{az as w}from"./sendRawTransaction-
|
|
1
|
+
import{r as k}from"./index-BV8s6ez1.js";import{az as w}from"./sendRawTransaction-Cs49dy2x.js";import{c as I,e as q}from"./hashTypedData-BsHEgjBY.js";import"./NetworkUtil-DRBYr7tG.js";import"./ethers-BxoDGoYp.js";import"./react-E8ng6RF2.js";import"./index-BHOQ04tl.js";const v=()=>"9.1.0",C=t=>t.toString(16).padStart(2,"0"),R=t=>{const e=new Uint8Array(t/2);return window.crypto.getRandomValues(e),Array.from(e,C).join("")},E=()=>typeof window<"u"?R(10):new Date().getTime().toString(36);class g{}g.makeRequest=(t,e)=>({id:E(),method:t,params:e,env:{sdkVersion:v()}});g.makeResponse=(t,e,s)=>({id:t,success:!0,version:s,data:e});g.makeErrorResponse=(t,e,s)=>({id:t,success:!1,error:e,version:s});var r;(function(t){t.sendTransactions="sendTransactions",t.rpcCall="rpcCall",t.getChainInfo="getChainInfo",t.getSafeInfo="getSafeInfo",t.getTxBySafeTxHash="getTxBySafeTxHash",t.getSafeBalances="getSafeBalances",t.signMessage="signMessage",t.signTypedMessage="signTypedMessage",t.getEnvironmentInfo="getEnvironmentInfo",t.getOffChainSignature="getOffChainSignature",t.requestAddressBook="requestAddressBook",t.wallet_getPermissions="wallet_getPermissions",t.wallet_requestPermissions="wallet_requestPermissions"})(r||(r={}));var f;(function(t){t.requestAddressBook="requestAddressBook"})(f||(f={}));class H{constructor(e=null,s=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:a,data:n,source:i})=>{const o=!n,l=!this.isServer&&i===window.parent,u=typeof n.version<"u"&&parseInt(n.version.split(".")[0]),B=typeof u=="number"&&u>=1;let y=!0;return Array.isArray(this.allowedOrigins)&&(y=this.allowedOrigins.find(P=>P.test(a))!==void 0),!o&&l&&B&&y},this.logIncomingMessage=a=>{console.info(`Safe Apps SDK v1: A message was received from origin ${a.origin}. `,a.data)},this.onParentMessage=a=>{this.isValidMessage(a)&&(this.debugMode&&this.logIncomingMessage(a),this.handleIncomingMessage(a.data))},this.handleIncomingMessage=a=>{const{id:n}=a,i=this.callbacks.get(n);i&&(i(a),this.callbacks.delete(n))},this.send=(a,n)=>{const i=g.makeRequest(a,n);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(i,"*"),new Promise((o,l)=>{this.callbacks.set(i.id,u=>{if(!u.success){l(new Error(u.error));return}o(u)})})},this.allowedOrigins=e,this.debugMode=s,this.isServer||window.addEventListener("message",this.onParentMessage)}}const S=t=>typeof t=="object"&&t!=null&&"domain"in t&&"types"in t&&"message"in t;var m=k();class A{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(r.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const s={message:e};return(await this.communicator.send(r.signMessage,s)).data}async signTypedMessage(e){if(!S(e))throw new Error("Invalid typed data");return(await this.communicator.send(r.signTypedMessage,{typedData:e})).data}async send({txs:e,params:s}){if(!e||!e.length)throw new Error("No transactions were passed");const a={txs:e,params:s};return(await this.communicator.send(r.sendTransactions,a)).data}}const c={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"},h={defaultBlockParam:(t="latest")=>t,returnFullTxObjectParam:(t=!1)=>t,blockNumberToHex:t=>Number.isInteger(t)?`0x${t.toString(16)}`:t};class O{constructor(e){this.communicator=e,this.call=this.buildRequest({call:c.eth_call,formatters:[null,h.defaultBlockParam]}),this.getBalance=this.buildRequest({call:c.eth_getBalance,formatters:[null,h.defaultBlockParam]}),this.getCode=this.buildRequest({call:c.eth_getCode,formatters:[null,h.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:c.eth_getStorageAt,formatters:[null,h.blockNumberToHex,h.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:c.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:c.eth_getBlockByHash,formatters:[null,h.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:c.eth_getBlockByNumber,formatters:[h.blockNumberToHex,h.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:c.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:c.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:c.eth_getTransactionCount,formatters:[null,h.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:c.eth_gasPrice}),this.getEstimateGas=s=>this.buildRequest({call:c.eth_estimateGas})([s]),this.setSafeSettings=this.buildRequest({call:c.safe_setSettings})}buildRequest(e){const{call:s,formatters:a}=e;return async n=>{a&&Array.isArray(n)&&a.forEach((l,u)=>{l&&(n[u]=l(n[u]))});const i={call:s,params:n||[]};return(await this.communicator.send(r.rpcCall,i)).data}}}const x="0x1626ba7e",V="0x20c13b0b",p=4001;class d extends Error{constructor(e,s,a){super(e),this.code=s,this.data=a,Object.setPrototypeOf(this,d.prototype)}}class _{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(r.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new d("Permissions request is invalid",p);try{return(await this.communicator.send(r.wallet_requestPermissions,e)).data}catch{throw new d("Permissions rejected",p)}}isPermissionRequestValid(e){return e.every(s=>typeof s=="object"?Object.keys(s).every(a=>!!Object.values(f).includes(a)):!1)}}const b=(t,e)=>e.some(s=>s.parentCapability===t),M=()=>(t,e,s)=>{const a=s.value;return s.value=async function(){const n=new _(this.communicator);let i=await n.getPermissions();if(b(e,i)||(i=await n.requestPermissions([{[e]:{}}])),!b(e,i))throw new d("Permissions rejected",p);return a.apply(this)},s};var j=function(t,e,s,a){var n=arguments.length,i=n<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,s):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,s,a);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(i=(n<3?o(i):n>3?o(e,s,i):o(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};class T{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(r.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(r.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(r.getSafeBalances,{currency:e})).data}async check1271Signature(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===x}catch{return!1}}async check1271SignatureBytes(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===V}catch{return!1}}calculateMessageHash(e){return I(e)}calculateTypedMessageHash(e){const s=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let a=e.primaryType;if(!a){const n=Object.values(e.types),i=Object.keys(e.types).filter(o=>n.every(l=>l.every(({type:u})=>u.replace("[","").replace("]","")!==o)));if(i.length===0||i.length>1)throw new Error("Please specify primaryType");a=i[0]}return q({message:e.message,domain:{...e.domain,chainId:s,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt},types:e.types,primaryType:a})}async getOffChainSignature(e){return(await this.communicator.send(r.getOffChainSignature,e)).data}async isMessageSigned(e,s="0x"){let a;if(typeof e=="string"&&(a=async()=>{const n=this.calculateMessageHash(e);return await this.isMessageHashSigned(n,s)}),S(e)&&(a=async()=>{const n=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(n,s)}),a)return await a();throw new Error("Invalid message type")}async isMessageHashSigned(e,s="0x"){const a=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const n of a)if(await n(e,s))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(r.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(r.requestAddressBook,void 0)).data}}j([M()],T.prototype,"requestAddressBook",null);class W{constructor(e={}){const{allowedDomains:s=null,debug:a=!1}=e;this.communicator=new H(s,a),this.eth=new O(this.communicator),this.txs=new A(this.communicator),this.safe=new T(this.communicator),this.wallet=new _(this.communicator)}}const $=m.Operation,z=m.TokenType,J=m.TransactionStatus,Q=m.TransferDirection;export{g as MessageFormatter,r as Methods,$ as Operation,c as RPC_CALLS,f as RestrictedMethods,z as TokenType,J as TransactionStatus,Q as TransferDirection,W as default,v as getSDKVersion,S as isObjectEIP712TypedData};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as b,b as c}from"./lit-element-B3y9oplH.js";import{n}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-
|
|
1
|
+
import{i as b,b as c}from"./lit-element-B3y9oplH.js";import{n}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-DEh0LiFK.js";import"./index-Cx5vMrtt.js";import{d as g,r as m,e as h}from"./index-heQt9VsF.js";const v=g`
|
|
2
2
|
:host {
|
|
3
3
|
width: var(--local-width);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Vv,g as Wv}from"./react-E8ng6RF2.js";import{r as Kv}from"./index-BV8s6ez1.js";import{n as Zv}from"./native-Df5jPT-i.js";import{r as Yv}from"./index-
|
|
1
|
+
import{e as Vv,g as Wv}from"./react-E8ng6RF2.js";import{r as Kv}from"./index-BV8s6ez1.js";import{n as Zv}from"./native-Df5jPT-i.js";import{r as Yv}from"./index-xXtPh54p.js";function Jv(e,r){for(var n=0;n<r.length;n++){const t=r[n];if(typeof t!="string"&&!Array.isArray(t)){for(const o in t)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(t,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>t[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Nd={},Wn={},Nt={},sn={},xr={},Kn={},Zn={},Tl;function wg(){if(Tl)return Zn;Tl=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.getSDKVersion=void 0;const e=()=>"9.1.0";return Zn.getSDKVersion=e,Zn}var Yn={},Sl;function Xv(){if(Sl)return Yn;Sl=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.generateRequestId=void 0;const e=t=>t.toString(16).padStart(2,"0"),r=t=>{const o=new Uint8Array(t/2);return window.crypto.getRandomValues(o),Array.from(o,e).join("")},n=()=>typeof window<"u"?r(10):new Date().getTime().toString(36);return Yn.generateRequestId=n,Yn}var Il;function Pg(){if(Il)return Kn;Il=1,Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.MessageFormatter=void 0;const e=wg(),r=Xv();class n{}return Kn.MessageFormatter=n,n.makeRequest=(t,o)=>({id:(0,r.generateRequestId)(),method:t,params:o,env:{sdkVersion:(0,e.getSDKVersion)()}}),n.makeResponse=(t,o,s)=>({id:t,success:!0,version:s,data:o}),n.makeErrorResponse=(t,o,s)=>({id:t,success:!1,error:o,version:s}),Kn}var qr={},Rl;function Kr(){if(Rl)return qr;Rl=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.RestrictedMethods=qr.Methods=void 0;var e;(function(n){n.sendTransactions="sendTransactions",n.rpcCall="rpcCall",n.getChainInfo="getChainInfo",n.getSafeInfo="getSafeInfo",n.getTxBySafeTxHash="getTxBySafeTxHash",n.getSafeBalances="getSafeBalances",n.signMessage="signMessage",n.signTypedMessage="signTypedMessage",n.getEnvironmentInfo="getEnvironmentInfo",n.getOffChainSignature="getOffChainSignature",n.requestAddressBook="requestAddressBook",n.wallet_getPermissions="wallet_getPermissions",n.wallet_requestPermissions="wallet_requestPermissions"})(e||(qr.Methods=e={}));var r;return(function(n){n.requestAddressBook="requestAddressBook"})(r||(qr.RestrictedMethods=r={})),qr}var Bl;function Qv(){return Bl||(Bl=1,(function(e){var r=xr&&xr.__createBinding||(Object.create?(function(s,a,i,c){c===void 0&&(c=i);var d=Object.getOwnPropertyDescriptor(a,i);(!d||("get"in d?!a.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(s,c,d)}):(function(s,a,i,c){c===void 0&&(c=i),s[c]=a[i]})),n=xr&&xr.__exportStar||function(s,a){for(var i in s)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&r(a,s,i)};Object.defineProperty(e,"__esModule",{value:!0});const t=Pg();class o{constructor(a=null,i=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:c,data:d,source:f})=>{const l=!d,m=!this.isServer&&f===window.parent,y=typeof d.version<"u"&&parseInt(d.version.split(".")[0]),h=typeof y=="number"&&y>=1;let b=!0;return Array.isArray(this.allowedOrigins)&&(b=this.allowedOrigins.find(E=>E.test(c))!==void 0),!l&&m&&h&&b},this.logIncomingMessage=c=>{console.info(`Safe Apps SDK v1: A message was received from origin ${c.origin}. `,c.data)},this.onParentMessage=c=>{this.isValidMessage(c)&&(this.debugMode&&this.logIncomingMessage(c),this.handleIncomingMessage(c.data))},this.handleIncomingMessage=c=>{const{id:d}=c,f=this.callbacks.get(d);f&&(f(c),this.callbacks.delete(d))},this.send=(c,d)=>{const f=t.MessageFormatter.makeRequest(c,d);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(f,"*"),new Promise((l,m)=>{this.callbacks.set(f.id,y=>{if(!y.success){m(new Error(y.error));return}l(y)})})},this.allowedOrigins=a,this.debugMode=i,this.isServer||window.addEventListener("message",this.onParentMessage)}}e.default=o,n(Kr(),e)})(xr)),xr}var Jn={},Mr={},Xn={},Ol;function e6(){if(Ol)return Xn;Ol=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.isObjectEIP712TypedData=void 0;const e=r=>typeof r=="object"&&r!=null&&"domain"in r&&"types"in r&&"message"in r;return Xn.isObjectEIP712TypedData=e,Xn}var $d={},Cl;function t6(){return Cl||(Cl=1,Object.defineProperty($d,"__esModule",{value:!0})),$d}var zd={},xl;function r6(){return xl||(xl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TransferDirection=e.TransactionStatus=e.TokenType=e.Operation=void 0;var r=Kv();Object.defineProperty(e,"Operation",{enumerable:!0,get:function(){return r.Operation}}),Object.defineProperty(e,"TokenType",{enumerable:!0,get:function(){return r.TokenType}}),Object.defineProperty(e,"TransactionStatus",{enumerable:!0,get:function(){return r.TransactionStatus}}),Object.defineProperty(e,"TransferDirection",{enumerable:!0,get:function(){return r.TransferDirection}})})(zd)),zd}var Ld={},ql;function n6(){return ql||(ql=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Kr()),Ld}var Ml;function gf(){return Ml||(Ml=1,(function(e){var r=Mr&&Mr.__createBinding||(Object.create?(function(t,o,s,a){a===void 0&&(a=s);var i=Object.getOwnPropertyDescriptor(o,s);(!i||("get"in i?!o.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(t,a,i)}):(function(t,o,s,a){a===void 0&&(a=s),t[a]=o[s]})),n=Mr&&Mr.__exportStar||function(t,o){for(var s in t)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&r(o,t,s)};Object.defineProperty(e,"__esModule",{value:!0}),n(e6(),e),n(t6(),e),n(r6(),e),n(n6(),e)})(Mr)),Mr}var kl;function o6(){if(kl)return Jn;kl=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.TXs=void 0;const e=Kr(),r=gf();class n{constructor(o){this.communicator=o}async getBySafeTxHash(o){if(!o)throw new Error("Invalid safeTxHash");return(await this.communicator.send(e.Methods.getTxBySafeTxHash,{safeTxHash:o})).data}async signMessage(o){const s={message:o};return(await this.communicator.send(e.Methods.signMessage,s)).data}async signTypedMessage(o){if(!(0,r.isObjectEIP712TypedData)(o))throw new Error("Invalid typed data");return(await this.communicator.send(e.Methods.signTypedMessage,{typedData:o})).data}async send({txs:o,params:s}){if(!o||!o.length)throw new Error("No transactions were passed");const a={txs:o,params:s};return(await this.communicator.send(e.Methods.sendTransactions,a)).data}}return Jn.TXs=n,Jn}var Qn={},eo={},Hl;function _f(){return Hl||(Hl=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.RPC_CALLS=void 0,eo.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"}),eo}var Fl;function a6(){if(Fl)return Qn;Fl=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.Eth=void 0;const e=_f(),r=Kr(),n={defaultBlockParam:(o="latest")=>o,returnFullTxObjectParam:(o=!1)=>o,blockNumberToHex:o=>Number.isInteger(o)?`0x${o.toString(16)}`:o};class t{constructor(s){this.communicator=s,this.call=this.buildRequest({call:e.RPC_CALLS.eth_call,formatters:[null,n.defaultBlockParam]}),this.getBalance=this.buildRequest({call:e.RPC_CALLS.eth_getBalance,formatters:[null,n.defaultBlockParam]}),this.getCode=this.buildRequest({call:e.RPC_CALLS.eth_getCode,formatters:[null,n.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:e.RPC_CALLS.eth_getStorageAt,formatters:[null,n.blockNumberToHex,n.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:e.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:e.RPC_CALLS.eth_getBlockByHash,formatters:[null,n.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:e.RPC_CALLS.eth_getBlockByNumber,formatters:[n.blockNumberToHex,n.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionCount,formatters:[null,n.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:e.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=a=>this.buildRequest({call:e.RPC_CALLS.eth_estimateGas})([a]),this.setSafeSettings=this.buildRequest({call:e.RPC_CALLS.safe_setSettings})}buildRequest(s){const{call:a,formatters:i}=s;return async c=>{i&&Array.isArray(c)&&i.forEach((l,m)=>{l&&(c[m]=l(c[m]))});const d={call:a,params:c||[]};return(await this.communicator.send(r.Methods.rpcCall,d)).data}}}return Qn.Eth=t,Qn}var $t={},Ud={},Dd={},to={},ro={},Nl;function i6(){return Nl||(Nl=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.version=void 0,ro.version="1.2.3"),ro}var $l;function Bn(){if($l)return to;$l=1,Object.defineProperty(to,"__esModule",{value:!0}),to.BaseError=void 0;const e=i6();class r extends Error{constructor(t,o={}){var c;const s=o.cause instanceof r?o.cause.details:(c=o.cause)!=null&&c.message?o.cause.message:o.details,a=o.cause instanceof r&&o.cause.docsPath||o.docsPath,i=[t||"An error occurred.","",...o.metaMessages?[...o.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...s?[`Details: ${s}`]:[],`Version: abitype@${e.version}`].join(`
|
|
2
2
|
`);super(i),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),o.cause&&(this.cause=o.cause),this.details=s,this.docsPath=a,this.metaMessages=o.metaMessages,this.shortMessage=t}}return to.BaseError=r,to}var Ia={},zl;function s6(){if(zl)return Ia;zl=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.narrow=e;function e(r){return r}return Ia}var Ra={},Ba={},Oa={},Ca={},qt={},Ll;function Ku(){if(Ll)return qt;Ll=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.isTupleRegex=qt.integerRegex=qt.bytesRegex=void 0,qt.execTyped=e;function e(r,n){const t=r.exec(n);return t==null?void 0:t.groups}return qt.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,qt.integerRegex=/^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)?$/,qt.isTupleRegex=/^\(.+?\).*?$/,qt}var Ul;function Ag(){if(Ul)return Ca;Ul=1,Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.formatAbiParameter=n;const e=Ku(),r=/^tuple(?<array>(\[(\d*)\])*)$/;function n(t){let o=t.type;if(r.test(t.type)&&"components"in t){o="(";const s=t.components.length;for(let i=0;i<s;i++){const c=t.components[i];o+=n(c),i<s-1&&(o+=", ")}const a=(0,e.execTyped)(r,t.type);return o+=`)${(a==null?void 0:a.array)||""}`,n({...t,type:o})}return"indexed"in t&&t.indexed&&(o=`${o} indexed`),t.name?`${o} ${t.name}`:o}return Ca}var Dl;function Tg(){if(Dl)return Oa;Dl=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.formatAbiParameters=r;const e=Ag();function r(n){let t="";const o=n.length;for(let s=0;s<o;s++){const a=n[s];t+=(0,e.formatAbiParameter)(a),s!==o-1&&(t+=", ")}return t}return Oa}var Gl;function Sg(){if(Gl)return Ba;Gl=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.formatAbiItem=r;const e=Tg();function r(n){var t;return n.type==="function"?`function ${n.name}(${(0,e.formatAbiParameters)(n.inputs)})${n.stateMutability&&n.stateMutability!=="nonpayable"?` ${n.stateMutability}`:""}${(t=n.outputs)!=null&&t.length?` returns (${(0,e.formatAbiParameters)(n.outputs)})`:""}`:n.type==="event"?`event ${n.name}(${(0,e.formatAbiParameters)(n.inputs)})`:n.type==="error"?`error ${n.name}(${(0,e.formatAbiParameters)(n.inputs)})`:n.type==="constructor"?`constructor(${(0,e.formatAbiParameters)(n.inputs)})${n.stateMutability==="payable"?" payable":""}`:n.type==="fallback"?`fallback() external${n.stateMutability==="payable"?" payable":""}`:"receive() external payable"}return Ba}var Vl;function c6(){if(Vl)return Ra;Vl=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.formatAbi=r;const e=Sg();function r(n){const t=[],o=n.length;for(let s=0;s<o;s++){const a=n[s],i=(0,e.formatAbiItem)(a);t.push(i)}return t}return Ra}var xa={},Ce={},Wl;function On(){if(Wl)return Ce;Wl=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.functionModifiers=Ce.eventModifiers=Ce.modifiers=void 0,Ce.isErrorSignature=n,Ce.execErrorSignature=t,Ce.isEventSignature=s,Ce.execEventSignature=a,Ce.isFunctionSignature=c,Ce.execFunctionSignature=d,Ce.isStructSignature=l,Ce.execStructSignature=m,Ce.isConstructorSignature=h,Ce.execConstructorSignature=b,Ce.isFallbackSignature=g,Ce.execFallbackSignature=v,Ce.isReceiveSignature=u;const e=Ku(),r=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function n(w){return r.test(w)}function t(w){return(0,e.execTyped)(r,w)}const o=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function s(w){return o.test(w)}function a(w){return(0,e.execTyped)(o,w)}const i=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function c(w){return i.test(w)}function d(w){return(0,e.execTyped)(i,w)}const f=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function l(w){return f.test(w)}function m(w){return(0,e.execTyped)(f,w)}const y=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function h(w){return y.test(w)}function b(w){return(0,e.execTyped)(y,w)}const E=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function g(w){return E.test(w)}function v(w){return(0,e.execTyped)(E,w)}const P=/^receive\(\) external payable$/;function u(w){return P.test(w)}return Ce.modifiers=new Set(["memory","indexed","storage","calldata"]),Ce.eventModifiers=new Set(["indexed"]),Ce.functionModifiers=new Set(["calldata","memory","storage"]),Ce}var qa={},zt={},Kl;function Zu(){if(Kl)return zt;Kl=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.UnknownSolidityTypeError=zt.UnknownTypeError=zt.InvalidAbiItemError=void 0;const e=Bn();class r extends e.BaseError{constructor({signature:s}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(s,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}zt.InvalidAbiItemError=r;class n extends e.BaseError{constructor({type:s}){super("Unknown type.",{metaMessages:[`Type "${s}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}zt.UnknownTypeError=n;class t extends e.BaseError{constructor({type:s}){super("Unknown type.",{metaMessages:[`Type "${s}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}return zt.UnknownSolidityTypeError=t,zt}var Fe={},Zl;function Qo(){if(Zl)return Fe;Zl=1,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.InvalidAbiTypeParameterError=Fe.InvalidFunctionModifierError=Fe.InvalidModifierError=Fe.SolidityProtectedKeywordError=Fe.InvalidParameterError=Fe.InvalidAbiParametersError=Fe.InvalidAbiParameterError=void 0;const e=Bn();class r extends e.BaseError{constructor({param:d}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(d,null,2)})`,docsPath:"/api/human#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}Fe.InvalidAbiParameterError=r;class n extends e.BaseError{constructor({params:d}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(d,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}Fe.InvalidAbiParametersError=n;class t extends e.BaseError{constructor({param:d}){super("Invalid ABI parameter.",{details:d}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}Fe.InvalidParameterError=t;class o extends e.BaseError{constructor({param:d,name:f}){super("Invalid ABI parameter.",{details:d,metaMessages:[`"${f}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}Fe.SolidityProtectedKeywordError=o;class s extends e.BaseError{constructor({param:d,type:f,modifier:l}){super("Invalid ABI parameter.",{details:d,metaMessages:[`Modifier "${l}" not allowed${f?` in "${f}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}Fe.InvalidModifierError=s;class a extends e.BaseError{constructor({param:d,type:f,modifier:l}){super("Invalid ABI parameter.",{details:d,metaMessages:[`Modifier "${l}" not allowed${f?` in "${f}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${l}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}Fe.InvalidFunctionModifierError=a;class i extends e.BaseError{constructor({abiParameter:d}){super("Invalid ABI parameter.",{details:JSON.stringify(d,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}return Fe.InvalidAbiTypeParameterError=i,Fe}var Lt={},Yl;function vf(){if(Yl)return Lt;Yl=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.InvalidStructSignatureError=Lt.UnknownSignatureError=Lt.InvalidSignatureError=void 0;const e=Bn();class r extends e.BaseError{constructor({signature:s,type:a}){super(`Invalid ${a} signature.`,{details:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}Lt.InvalidSignatureError=r;class n extends e.BaseError{constructor({signature:s}){super("Unknown signature.",{details:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}Lt.UnknownSignatureError=n;class t extends e.BaseError{constructor({signature:s}){super("Invalid struct signature.",{details:s,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}return Lt.InvalidStructSignatureError=t,Lt}var no={},Jl;function Ig(){if(Jl)return no;Jl=1,Object.defineProperty(no,"__esModule",{value:!0}),no.CircularReferenceError=void 0;const e=Bn();class r extends e.BaseError{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}return no.CircularReferenceError=r,no}var at={},oo={},Xl;function Rg(){if(Xl)return oo;Xl=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.InvalidParenthesisError=void 0;const e=Bn();class r extends e.BaseError{constructor({current:t,depth:o}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${o>0?"opening":"closing"} parentheses.`],details:`Depth "${o}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}return oo.InvalidParenthesisError=r,oo}var cn={},Ql;function u6(){if(Ql)return cn;Ql=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.parameterCache=void 0,cn.getParameterCacheKey=e;function e(r,n,t){let o="";if(t)for(const s of Object.entries(t)){if(!s)continue;let a="";for(const i of s[1])a+=`[${i.type}${i.name?`:${i.name}`:""}]`;o+=`(${s[0]}{${a}})`}return n?`${n}:${r}${o}`:`${r}${o}`}return cn.parameterCache=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]),cn}var e0;function Rn(){if(e0)return at;e0=1,Object.defineProperty(at,"__esModule",{value:!0}),at.parseSignature=i,at.parseFunctionSignature=c,at.parseEventSignature=d,at.parseErrorSignature=f,at.parseConstructorSignature=l,at.parseFallbackSignature=m,at.parseAbiParameter=E,at.splitParameters=g,at.isSolidityType=v,at.isSolidityKeyword=u,at.isValidDataLocation=w;const e=Ku(),r=Zu(),n=Qo(),t=vf(),o=Rg(),s=u6(),a=On();function i(_,p={}){if((0,a.isFunctionSignature)(_))return c(_,p);if((0,a.isEventSignature)(_))return d(_,p);if((0,a.isErrorSignature)(_))return f(_,p);if((0,a.isConstructorSignature)(_))return l(_,p);if((0,a.isFallbackSignature)(_))return m(_);if((0,a.isReceiveSignature)(_))return{type:"receive",stateMutability:"payable"};throw new t.UnknownSignatureError({signature:_})}function c(_,p={}){const S=(0,a.execFunctionSignature)(_);if(!S)throw new t.InvalidSignatureError({signature:_,type:"function"});const A=g(S.parameters),T=[],O=A.length;for(let R=0;R<O;R++)T.push(E(A[R],{modifiers:a.functionModifiers,structs:p,type:"function"}));const I=[];if(S.returns){const R=g(S.returns),H=R.length;for(let F=0;F<H;F++)I.push(E(R[F],{modifiers:a.functionModifiers,structs:p,type:"function"}))}return{name:S.name,type:"function",stateMutability:S.stateMutability??"nonpayable",inputs:T,outputs:I}}function d(_,p={}){const S=(0,a.execEventSignature)(_);if(!S)throw new t.InvalidSignatureError({signature:_,type:"event"});const A=g(S.parameters),T=[],O=A.length;for(let I=0;I<O;I++)T.push(E(A[I],{modifiers:a.eventModifiers,structs:p,type:"event"}));return{name:S.name,type:"event",inputs:T}}function f(_,p={}){const S=(0,a.execErrorSignature)(_);if(!S)throw new t.InvalidSignatureError({signature:_,type:"error"});const A=g(S.parameters),T=[],O=A.length;for(let I=0;I<O;I++)T.push(E(A[I],{structs:p,type:"error"}));return{name:S.name,type:"error",inputs:T}}function l(_,p={}){const S=(0,a.execConstructorSignature)(_);if(!S)throw new t.InvalidSignatureError({signature:_,type:"constructor"});const A=g(S.parameters),T=[],O=A.length;for(let I=0;I<O;I++)T.push(E(A[I],{structs:p,type:"constructor"}));return{type:"constructor",stateMutability:S.stateMutability??"nonpayable",inputs:T}}function m(_){const p=(0,a.execFallbackSignature)(_);if(!p)throw new t.InvalidSignatureError({signature:_,type:"fallback"});return{type:"fallback",stateMutability:p.stateMutability??"nonpayable"}}const y=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,b=/^u?int$/;function E(_,p){var j,k;const S=(0,s.getParameterCacheKey)(_,p==null?void 0:p.type,p==null?void 0:p.structs);if(s.parameterCache.has(S))return s.parameterCache.get(S);const A=e.isTupleRegex.test(_),T=(0,e.execTyped)(A?h:y,_);if(!T)throw new n.InvalidParameterError({param:_});if(T.name&&u(T.name))throw new n.SolidityProtectedKeywordError({param:_,name:T.name});const O=T.name?{name:T.name}:{},I=T.modifier==="indexed"?{indexed:!0}:{},R=(p==null?void 0:p.structs)??{};let H,F={};if(A){H="tuple";const B=g(T.type),C=[],q=B.length;for(let M=0;M<q;M++)C.push(E(B[M],{structs:R}));F={components:C}}else if(T.type in R)H="tuple",F={components:R[T.type]};else if(b.test(T.type))H=`${T.type}256`;else if(T.type==="address payable")H="address";else if(H=T.type,(p==null?void 0:p.type)!=="struct"&&!v(H))throw new r.UnknownSolidityTypeError({type:H});if(T.modifier){if(!((k=(j=p==null?void 0:p.modifiers)==null?void 0:j.has)!=null&&k.call(j,T.modifier)))throw new n.InvalidModifierError({param:_,type:p==null?void 0:p.type,modifier:T.modifier});if(a.functionModifiers.has(T.modifier)&&!w(H,!!T.array))throw new n.InvalidFunctionModifierError({param:_,type:p==null?void 0:p.type,modifier:T.modifier})}const x={type:`${H}${T.array??""}`,...O,...I,...F};return s.parameterCache.set(S,x),x}function g(_,p=[],S="",A=0){const T=_.trim().length;for(let O=0;O<T;O++){const I=_[O],R=_.slice(O+1);switch(I){case",":return A===0?g(R,[...p,S.trim()]):g(R,p,`${S}${I}`,A);case"(":return g(R,p,`${S}${I}`,A+1);case")":return g(R,p,`${S}${I}`,A-1);default:return g(R,p,`${S}${I}`,A)}}if(S==="")return p;if(A!==0)throw new o.InvalidParenthesisError({current:S,depth:A});return p.push(S.trim()),p}function v(_){return _==="address"||_==="bool"||_==="function"||_==="string"||e.bytesRegex.test(_)||e.integerRegex.test(_)}const P=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function u(_){return _==="address"||_==="bool"||_==="function"||_==="string"||_==="tuple"||e.bytesRegex.test(_)||e.integerRegex.test(_)||P.test(_)}function w(_,p){return p||_==="bytes"||_==="string"||_==="tuple"}return at}var t0;function Yu(){if(t0)return qa;t0=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.parseStructs=i;const e=Ku(),r=Zu(),n=Qo(),t=vf(),o=Ig(),s=On(),a=Rn();function i(f){const l={},m=f.length;for(let E=0;E<m;E++){const g=f[E];if(!(0,s.isStructSignature)(g))continue;const v=(0,s.execStructSignature)(g);if(!v)throw new t.InvalidSignatureError({signature:g,type:"struct"});const P=v.properties.split(";"),u=[],w=P.length;for(let _=0;_<w;_++){const S=P[_].trim();if(!S)continue;const A=(0,a.parseAbiParameter)(S,{type:"struct"});u.push(A)}if(!u.length)throw new t.InvalidStructSignatureError({signature:g});l[v.name]=u}const y={},h=Object.entries(l),b=h.length;for(let E=0;E<b;E++){const[g,v]=h[E];y[g]=d(v,l)}return y}const c=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function d(f=[],l={},m=new Set){const y=[],h=f.length;for(let b=0;b<h;b++){const E=f[b];if(e.isTupleRegex.test(E.type))y.push(E);else{const v=(0,e.execTyped)(c,E.type);if(!(v!=null&&v.type))throw new n.InvalidAbiTypeParameterError({abiParameter:E});const{array:P,type:u}=v;if(u in l){if(m.has(u))throw new o.CircularReferenceError({type:u});y.push({...E,type:`tuple${P??""}`,components:d(l[u],l,new Set([...m,u]))})}else if((0,a.isSolidityType)(u))y.push(E);else throw new r.UnknownTypeError({type:u})}}return y}return qa}var r0;function d6(){if(r0)return xa;r0=1,Object.defineProperty(xa,"__esModule",{value:!0}),xa.parseAbi=t;const e=On(),r=Yu(),n=Rn();function t(o){const s=(0,r.parseStructs)(o),a=[],i=o.length;for(let c=0;c<i;c++){const d=o[c];(0,e.isStructSignature)(d)||a.push((0,n.parseSignature)(d,s))}return a}return xa}var Ma={},n0;function f6(){if(n0)return Ma;n0=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.parseAbiItem=o;const e=Zu(),r=On(),n=Yu(),t=Rn();function o(s){let a;if(typeof s=="string")a=(0,t.parseSignature)(s);else{const i=(0,n.parseStructs)(s),c=s.length;for(let d=0;d<c;d++){const f=s[d];if(!(0,r.isStructSignature)(f)){a=(0,t.parseSignature)(f,i);break}}}if(!a)throw new e.InvalidAbiItemError({signature:s});return a}return Ma}var ka={},o0;function l6(){if(o0)return ka;o0=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.parseAbiParameter=o;const e=Qo(),r=On(),n=Yu(),t=Rn();function o(s){let a;if(typeof s=="string")a=(0,t.parseAbiParameter)(s,{modifiers:r.modifiers});else{const i=(0,n.parseStructs)(s),c=s.length;for(let d=0;d<c;d++){const f=s[d];if(!(0,r.isStructSignature)(f)){a=(0,t.parseAbiParameter)(f,{modifiers:r.modifiers,structs:i});break}}}if(!a)throw new e.InvalidAbiParameterError({param:s});return a}return ka}var Ha={},a0;function b6(){if(a0)return Ha;a0=1,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.parseAbiParameters=s;const e=Qo(),r=On(),n=Yu(),t=Rn(),o=Rn();function s(a){const i=[];if(typeof a=="string"){const c=(0,t.splitParameters)(a),d=c.length;for(let f=0;f<d;f++)i.push((0,o.parseAbiParameter)(c[f],{modifiers:r.modifiers}))}else{const c=(0,n.parseStructs)(a),d=a.length;for(let f=0;f<d;f++){const l=a[f];if((0,r.isStructSignature)(l))continue;const m=(0,t.splitParameters)(l),y=m.length;for(let h=0;h<y;h++)i.push((0,o.parseAbiParameter)(m[h],{modifiers:r.modifiers,structs:c}))}}if(i.length===0)throw new e.InvalidAbiParametersError({params:a});return i}return Ha}var i0;function hr(){return i0||(i0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CircularReferenceError=e.InvalidParenthesisError=e.UnknownSignatureError=e.InvalidSignatureError=e.InvalidStructSignatureError=e.InvalidAbiParameterError=e.InvalidAbiParametersError=e.InvalidParameterError=e.SolidityProtectedKeywordError=e.InvalidModifierError=e.InvalidFunctionModifierError=e.InvalidAbiTypeParameterError=e.UnknownSolidityTypeError=e.InvalidAbiItemError=e.UnknownTypeError=e.parseAbiParameters=e.parseAbiParameter=e.parseAbiItem=e.parseAbi=e.formatAbiParameters=e.formatAbiParameter=e.formatAbiItem=e.formatAbi=e.narrow=e.BaseError=void 0;var r=Bn();Object.defineProperty(e,"BaseError",{enumerable:!0,get:function(){return r.BaseError}});var n=s6();Object.defineProperty(e,"narrow",{enumerable:!0,get:function(){return n.narrow}});var t=c6();Object.defineProperty(e,"formatAbi",{enumerable:!0,get:function(){return t.formatAbi}});var o=Sg();Object.defineProperty(e,"formatAbiItem",{enumerable:!0,get:function(){return o.formatAbiItem}});var s=Ag();Object.defineProperty(e,"formatAbiParameter",{enumerable:!0,get:function(){return s.formatAbiParameter}});var a=Tg();Object.defineProperty(e,"formatAbiParameters",{enumerable:!0,get:function(){return a.formatAbiParameters}});var i=d6();Object.defineProperty(e,"parseAbi",{enumerable:!0,get:function(){return i.parseAbi}});var c=f6();Object.defineProperty(e,"parseAbiItem",{enumerable:!0,get:function(){return c.parseAbiItem}});var d=l6();Object.defineProperty(e,"parseAbiParameter",{enumerable:!0,get:function(){return d.parseAbiParameter}});var f=b6();Object.defineProperty(e,"parseAbiParameters",{enumerable:!0,get:function(){return f.parseAbiParameters}});var l=Zu();Object.defineProperty(e,"UnknownTypeError",{enumerable:!0,get:function(){return l.UnknownTypeError}}),Object.defineProperty(e,"InvalidAbiItemError",{enumerable:!0,get:function(){return l.InvalidAbiItemError}}),Object.defineProperty(e,"UnknownSolidityTypeError",{enumerable:!0,get:function(){return l.UnknownSolidityTypeError}});var m=Qo();Object.defineProperty(e,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return m.InvalidAbiTypeParameterError}}),Object.defineProperty(e,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return m.InvalidFunctionModifierError}}),Object.defineProperty(e,"InvalidModifierError",{enumerable:!0,get:function(){return m.InvalidModifierError}}),Object.defineProperty(e,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return m.SolidityProtectedKeywordError}}),Object.defineProperty(e,"InvalidParameterError",{enumerable:!0,get:function(){return m.InvalidParameterError}}),Object.defineProperty(e,"InvalidAbiParametersError",{enumerable:!0,get:function(){return m.InvalidAbiParametersError}}),Object.defineProperty(e,"InvalidAbiParameterError",{enumerable:!0,get:function(){return m.InvalidAbiParameterError}});var y=vf();Object.defineProperty(e,"InvalidStructSignatureError",{enumerable:!0,get:function(){return y.InvalidStructSignatureError}}),Object.defineProperty(e,"InvalidSignatureError",{enumerable:!0,get:function(){return y.InvalidSignatureError}}),Object.defineProperty(e,"UnknownSignatureError",{enumerable:!0,get:function(){return y.UnknownSignatureError}});var h=Rg();Object.defineProperty(e,"InvalidParenthesisError",{enumerable:!0,get:function(){return h.InvalidParenthesisError}});var b=Ig();Object.defineProperty(e,"CircularReferenceError",{enumerable:!0,get:function(){return b.CircularReferenceError}})})(Dd)),Dd}var un={},Fa={},s0;function me(){if(s0)return Fa;s0=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.getAction=e;function e(r,n,t){const o=r[n.name];if(typeof o=="function")return o;const s=r[t];return typeof s=="function"?s:a=>n(r,a)}return Fa}var Na={},$a={},se={},ao={},c0;function er(){if(c0)return ao;c0=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.formatAbiItem=r,ao.formatAbiParams=n;const e=Be();function r(o,{includeName:s=!1}={}){if(o.type!=="function"&&o.type!=="event"&&o.type!=="error")throw new e.InvalidDefinitionTypeError(o.type);return`${o.name}(${n(o.inputs,{includeName:s})})`}function n(o,{includeName:s=!1}={}){return o?o.map(a=>t(a,{includeName:s})).join(s?", ":","):""}function t(o,{includeName:s}){return o.type.startsWith("tuple")?`(${n(o.components,{includeName:s})})${o.type.slice(5)}`:o.type+(s&&o.name?` ${o.name}`:"")}return ao}var za={},La={},u0;function Qe(){if(u0)return La;u0=1,Object.defineProperty(La,"__esModule",{value:!0}),La.isHex=e;function e(r,{strict:n=!0}={}){return!r||typeof r!="string"?!1:n?/^0x[0-9a-fA-F]*$/.test(r):r.startsWith("0x")}return La}var d0;function De(){if(d0)return za;d0=1,Object.defineProperty(za,"__esModule",{value:!0}),za.size=r;const e=Qe();function r(n){return(0,e.isHex)(n,{strict:!1})?Math.ceil((n.length-2)/2):n.length}return za}var dn={},io={},f0;function m6(){return f0||(f0=1,Object.defineProperty(io,"__esModule",{value:!0}),io.version=void 0,io.version="2.54.1"),io}var l0;function ue(){if(l0)return dn;l0=1,Object.defineProperty(dn,"__esModule",{value:!0}),dn.BaseError=void 0,dn.setErrorConfig=n;const e=m6();let r={getDocsUrl:({docsBaseUrl:s,docsPath:a="",docsSlug:i})=>a?`${s??"https://viem.sh"}${a}${i?`#${i}`:""}`:void 0,version:`viem@${e.version}`};function n(s){r=s}class t extends Error{constructor(a,i={}){var m;const c=(()=>{var y;return i.cause instanceof t?i.cause.details:(y=i.cause)!=null&&y.message?i.cause.message:i.details})(),d=i.cause instanceof t&&i.cause.docsPath||i.docsPath,f=(m=r.getDocsUrl)==null?void 0:m.call(r,{...i,docsPath:d}),l=[a||"An error occurred.","",...i.metaMessages?[...i.metaMessages,""]:[],...f?[`Docs: ${f}`]:[],...c?[`Details: ${c}`]:[],...r.version?[`Version: ${r.version}`]:[]].join(`
|
|
3
3
|
`);super(l,i.cause?{cause:i.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=c,this.docsPath=d,this.metaMessages=i.metaMessages,this.name=i.name??this.name,this.shortMessage=a,this.version=e.version}walk(a){return o(this,a)}}dn.BaseError=t;function o(s,a){return a!=null&&a(s)?s:s&&typeof s=="object"&&"cause"in s&&s.cause!==void 0?o(s.cause,a):a?null:s}return dn}var b0;function Be(){if(b0)return se;b0=1,Object.defineProperty(se,"__esModule",{value:!0}),se.UnsupportedPackedAbiType=se.InvalidDefinitionTypeError=se.InvalidArrayError=se.InvalidAbiDecodingTypeError=se.InvalidAbiEncodingTypeError=se.DecodeLogTopicsMismatch=se.DecodeLogDataMismatch=se.BytesSizeMismatchError=se.AbiItemAmbiguityError=se.AbiFunctionSignatureNotFoundError=se.AbiFunctionOutputsNotFoundError=se.AbiFunctionNotFoundError=se.AbiEventNotFoundError=se.AbiEventSignatureNotFoundError=se.AbiEventSignatureEmptyTopicsError=se.AbiErrorSignatureNotFoundError=se.AbiErrorNotFoundError=se.AbiErrorInputsNotFoundError=se.AbiEncodingLengthMismatchError=se.AbiEncodingBytesSizeMismatchError=se.AbiEncodingArrayLengthMismatchError=se.AbiDecodingZeroDataError=se.AbiDecodingDataSizeTooSmallError=se.AbiDecodingDataSizeInvalidError=se.AbiConstructorParamsNotFoundError=se.AbiConstructorNotFoundError=void 0;const e=er(),r=De(),n=ue();class t extends n.BaseError{constructor({docsPath:H}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
|
|
4
4
|
`),{docsPath:H,name:"AbiConstructorNotFoundError"})}}se.AbiConstructorNotFoundError=t;class o extends n.BaseError{constructor({docsPath:H}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
|