@dcl/auth-site 4.20.1-29258723513.commit-cae3306 → 4.20.1-29269215567.commit-a168e3f
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/{ConstantsUtil-BjWpx7T2.js → ConstantsUtil-D1WLKDE-.js} +1 -1
- package/assets/{ContentfulRichText-BfCmpZFl.js → ContentfulRichText-FVjmh8mR.js} +1 -1
- package/assets/{ExchangeController-BWl9iaFL.js → ExchangeController-BxyxYUKZ.js} +1 -1
- package/assets/{HelpersUtil-CfGGchds.js → HelpersUtil-DtAz3pBV.js} +1 -1
- package/assets/{LoginPage-DVLMDBaV.js → LoginPage-DeOWBfwU.js} +1 -1
- package/assets/{NetworkUtil-CfnkiECb.js → NetworkUtil-BcejqRTW.js} +1 -1
- package/assets/{SwapController-CYmwHGJz.js → SwapController-73H8AJso.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-BjLnTdbd.js → W3MFrameProviderSingleton-Ch6ChvE7.js} +3 -3
- package/assets/{biconomy-Z4Ml6LcT.js → biconomy-D8d8IXiO.js} +1 -1
- package/assets/{browser-D-ehd5mn.js → browser-W1csxV8_.js} +1 -1
- package/assets/browser-ponyfill-mmJvcXGA.js +1 -0
- package/assets/{ccip-D3j6mW_p.js → ccip-D27X7965.js} +1 -1
- package/assets/{ccip-mqdjgI8a.js → ccip-DCHn-5Ly.js} +1 -1
- package/assets/{chains-DgHaRQQo.js → chains-Cn1WlLOp.js} +1 -1
- package/assets/{common-XZEVAD11.js → common-tpLjuIr4.js} +1 -1
- package/assets/{controller-D8avnVns.js → controller-UwO1SN8i.js} +2 -2
- package/assets/{data-capture-4EXUByXV.js → data-capture-Dh-nweo4.js} +1 -1
- package/assets/{email-D3adTb9O.js → email-1UrgYZj-.js} +1 -1
- package/assets/{embedded-wallet-B1bMmAkq.js → embedded-wallet-CLpjPJB3.js} +1 -1
- package/assets/{engine-CIjctzmA.js → engine-DCBK_VOQ.js} +1 -1
- package/assets/{estimate-l1-fee-CgWKwYl1.js → estimate-l1-fee-BiwlHSf1.js} +1 -1
- package/assets/{ethereum-DTOspYzU.js → ethereum--b_BvyFy.js} +1 -1
- package/assets/{extractIPFS-DbNQ1ZZ1.js → extractIPFS-B5PPp_Gm.js} +1 -1
- package/assets/{features-DGCEZ85b.js → features-C5Jgw5I-.js} +1 -1
- package/assets/{fetchTokenMetadata-DflkFEm7.js → fetchTokenMetadata-vXUP7U_6.js} +1 -1
- package/assets/{fortmatic-Da9wiqsL.js → fortmatic-vxyuQsp3.js} +1 -1
- package/assets/{get-ecosystem-wallet-info-Yc0jwh4E.js → get-ecosystem-wallet-info-k8z19lvl.js} +1 -1
- package/assets/{getBalance-CUqsth07.js → getBalance-BMgSFA2M.js} +1 -1
- package/assets/{getInstalledModules-5vWGWL48.js → getInstalledModules-DfESwpSd.js} +1 -1
- package/assets/{getNFT-DUzk33cX.js → getNFT-CR4D5mRM.js} +2 -2
- package/assets/{getNFT-DkfSQdYL.js → getNFT-Drb8KYgY.js} +1 -1
- package/assets/{if-defined-DCopXNZS.js → if-defined-BLUpxRFe.js} +1 -1
- package/assets/{in-app-wallet-calls-C9O-RFto.js → in-app-wallet-calls-CpSZ4AEs.js} +1 -1
- package/assets/{index-BATYHfSr.js → index-0Xh_8t-W.js} +1 -1
- package/assets/{index-ml3rUNwI.js → index-6iU19F1Q.js} +1 -1
- package/assets/{index-DhBkZu0c.js → index-B0b0mXhy.js} +1 -1
- package/assets/{index-Cl-OwcGb.js → index-B0zN8-JK.js} +1 -1
- package/assets/{index-DK0Bt-Wd.js → index-B61juR-E.js} +1 -1
- package/assets/{index-CMUvim3v.js → index-BBbd2JGA.js} +1 -1
- package/assets/{index-DeBgqNL8.js → index-BGImxKnk.js} +1 -1
- package/assets/{index-Ctf22atn.js → index-BOhMx_xq.js} +1 -1
- package/assets/{index-Dup8pmdS.js → index-BRSVe_Ha.js} +1 -1
- package/assets/{index-Cc-CvbmM.js → index-BbU4jWmF.js} +1 -1
- package/assets/{index-CeotffFj.js → index-BeJFBKfZ.js} +1 -1
- package/assets/{index-DQiBk_Ys.js → index-BfS3YMbV.js} +1 -1
- package/assets/{index-sBYypQxE.js → index-BgJCDn2i.js} +3 -3
- package/assets/{index-CJyln68U.js → index-BgXz7S15.js} +1 -1
- package/assets/{index-DwMcfG7D.js → index-BjMnYwkm.js} +1 -1
- package/assets/{index-BPuklqdK.js → index-BjRsFS7f.js} +1 -1
- package/assets/{index-BDaLj5Px.js → index-BnBi3XT_.js} +1 -1
- package/assets/{index-B3krs25g.js → index-Boyp-nKd.js} +3 -3
- package/assets/{index-DLiFbqtz.js → index-BqL1TOTU.js} +1 -1
- package/assets/{index-ByytQPhZ.js → index-BqsCFid8.js} +1 -1
- package/assets/{index-ipSabmF7.js → index-ButPZc2m.js} +1 -1
- package/assets/{index-g80snjIg.js → index-Bw38Qien.js} +1 -1
- package/assets/{index-sITL-8BM.js → index-BxcO2eus.js} +1 -1
- package/assets/{index-BO59eDsp.js → index-Byc3YIzR.js} +2 -2
- package/assets/{index-DvAGrr_i.js → index-C7rQpKd5.js} +1 -1
- package/assets/{index-DVhT4X-3.js → index-CLhB4G-z.js} +2 -2
- package/assets/{index-CN1IjigP.js → index-CRvP0-6j.js} +1 -1
- package/assets/{index-CiJidnr0.js → index-CYQL0N_2.js} +1 -1
- package/assets/{index-BY4NlcmY.js → index-CfRwmSIm.js} +18 -18
- package/assets/{index-BORF4fWz.js → index-ChZiIgQr.js} +1 -1
- package/assets/{index-B4pSUR6E.js → index-D4MI3QNi.js} +1 -1
- package/assets/{index-B4drTZRO.js → index-D7YbgLzU.js} +1 -1
- package/assets/{index-nO17hoA5.js → index-DbBb4_zM.js} +1 -1
- package/assets/{index-C8cqnNjb.js → index-Dc7LPwqa.js} +1 -1
- package/assets/{index-53Q8flld.js → index-Dpiro8hw.js} +1 -1
- package/assets/{index-ByhJb4Ih.js → index-DqsqcBWz.js} +1 -1
- package/assets/{index-Ccp6ERTg.js → index-Dw0jehUl.js} +1 -1
- package/assets/{index-_xPKVrQn.js → index-Dy0kafyd.js} +1 -1
- package/assets/{index-CbygmjoX.js → index-FC7wyxSL.js} +1 -1
- package/assets/{index-C4fiE5-u.js → index-FTloM5tR.js} +1 -1
- package/assets/{index-DQ0zTbeB.js → index-bVJLpFe9.js} +1 -1
- package/assets/{index-D7pmAMgG.js → index-gEWsoeoj.js} +1 -1
- package/assets/{index-pVmAeDrn.js → index-hV7VprO9.js} +1 -1
- package/assets/{index-DfGi8q2I.js → index-t4TDOvhg.js} +1 -1
- package/assets/{index-B0ZJSTkn.js → index-uMURdbl1.js} +1 -1
- package/assets/{index-IpYAUNd_.js → index-wa52fI50.js} +1 -1
- package/assets/{index-C89TfD5l.js → index-y1LmxmxV.js} +1 -1
- package/assets/{index-B7V-nRWu.css → index-zwxMhp39.css} +1 -1
- package/assets/{index.es-BwZcPOdM.js → index.es-CwJH2io5.js} +1 -1
- package/assets/{index.es-BYcrNAKX.js → index.es-bckiMtUI.js} +1 -1
- package/assets/{native-Bo5F-dEa.js → native-BxoXPUnu.js} +1 -1
- package/assets/{networks-LwU8vdsD.js → networks-DJg10bEc.js} +3 -3
- package/assets/{onramp-DTZoRR_S.js → onramp-B4pEvCie.js} +1 -1
- package/assets/{openzeppelin-F9RpoISL.js → openzeppelin-aTaIao0N.js} +1 -1
- package/assets/{ownerOf-B3Zr2zns.js → ownerOf-_31Y1xvr.js} +1 -1
- package/assets/{parseNft-DTgzSFLX.js → parseNft-BreIwf-v.js} +2 -2
- package/assets/{pay-with-exchange-DfkBevGx.js → pay-with-exchange-DWzTSiHz.js} +1 -1
- package/assets/{qr-overlay-CdqFzcAP.js → qr-overlay-ri_FAG95.js} +3 -3
- package/assets/{receive-dkrgLBnV.js → receive-BhwBfPBx.js} +1 -1
- package/assets/{ref-BrcF-6zM.js → ref-C6y6rEPL.js} +1 -1
- package/assets/{resolveImplementation-DIVc-dsH.js → resolveImplementation-DDfKMK0l.js} +1 -1
- package/assets/{secp256k1-Xe1NL0HC.js → secp256k1-fwuTEIeg.js} +1 -1
- package/assets/{send-Y70p6kOL.js → send-DQ_s7hBA.js} +1 -1
- package/assets/{send-eip712-transaction-XyoSUCoI.js → send-eip712-transaction-P-r3Ko22.js} +1 -1
- package/assets/{send-gasless-transaction-DJTroDJ7.js → send-gasless-transaction-CA021mhn.js} +2 -2
- package/assets/{session-proposal-C6FylYAa.js → session-proposal-2lV42kFm.js} +1 -1
- package/assets/{session-request-BEK1bzJi.js → session-request-BG0E-HG_.js} +2 -2
- package/assets/{socials-klWMjU_b.js → socials-BwTV76GY.js} +1 -1
- package/assets/{swaps-CIxrpugR.js → swaps-BlfTMX7q.js} +1 -1
- package/assets/{thirdweb-fDOh4yMb.js → thirdweb-CT38Qh_V.js} +5 -5
- package/assets/{totalSupply-JOkSK4qj.js → totalSupply-DKb8yY1T.js} +1 -1
- package/assets/{transactions-BmVnfQ2v.js → transactions-CacIfnoG.js} +1 -1
- package/assets/{ui-wp2UWukJ.js → ui-WV8OFH8_.js} +5 -5
- package/assets/{vendor-CnDTCxi8.js → vendor-0sbCgRYC.js} +1 -1
- package/assets/{w3m-modal-Dsf51JPh.js → w3m-modal-DD7YQQ5K.js} +1 -1
- package/assets/{wallets-BtCC5Qdr.js → wallets-chAGIjBC.js} +5 -5
- package/assets/{web-connector-CBgneeYJ.js → web-connector-B_sMPq36.js} +3 -3
- package/index.html +5 -5
- package/package.json +3 -3
- package/assets/browser-ponyfill-ny6VoCwj.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as v,r as _,e as W,i as f,h as l,j as ee}from"./index-
|
|
1
|
+
import{d as v,r as _,e as W,i as f,h as l,j as ee}from"./index-BgJCDn2i.js";import{n as c,c as p,U as F,r as u,b as Ii}from"./index-B0b0mXhy.js";import{o as w}from"./if-defined-BLUpxRFe.js";import"./index-BjRsFS7f.js";import"./index-BGImxKnk.js";import"./index-FTloM5tR.js";import{C as d,O as m,D as Ee,j as S,a as y,M as P,E as C,k as me,i as b,R as h,b as D,S as A,d as x,e as ze,W as Fe,a4 as Xt,a3 as he,U as J,L as qi,q as I,a8 as tt,A as _i,u as Ki,t as Gi,o as Xi,T as ft,F as Yt,G as Qt,a6 as Yi,ad as Qi,I as Bt,ae as Ji}from"./W3MFrameProviderSingleton-Ch6ChvE7.js";import"./index-BbU4jWmF.js";import{a as Ps,W as Ds}from"./index-hV7VprO9.js";import"./index-D7YbgLzU.js";import"./index-BqL1TOTU.js";import"./index-BeJFBKfZ.js";import{C as E}from"./NetworkUtil-BcejqRTW.js";import{H as Jt}from"./HelpersUtil-DtAz3pBV.js";import{n as Zi}from"./index-BOhMx_xq.js";import{E as Q}from"./ExchangeController-BxyxYUKZ.js";import"./index-wa52fI50.js";import"./index-CYQL0N_2.js";import"./index-CRvP0-6j.js";import{M as mt}from"./MathUtil-BGCe3rZ3.js";import"./index-BqsCFid8.js";import{e as Zt,n as ei}from"./ref-C6y6rEPL.js";import"./index-6iU19F1Q.js";import"./index-DqsqcBWz.js";import"./index-BjMnYwkm.js";import"./index-0Xh_8t-W.js";import{O as bt}from"./index-y1LmxmxV.js";import{e as en}from"./index-Bw38Qien.js";import"./index-BxcO2eus.js";import"./index-C7rQpKd5.js";import{N as tn}from"./NavigationUtil-DmfK5sOV.js";import"./index-B0zN8-JK.js";import"./thirdweb-CT38Qh_V.js";import"./ui-WV8OFH8_.js";import"./vendor-0sbCgRYC.js";import"./index-CfRwmSIm.js";import"./index-Dw0jehUl.js";import"./index-BgXz7S15.js";import"./index-nibyPLVP.js";import"./index.es-CwJH2io5.js";import"./browser-ponyfill-mmJvcXGA.js";import"./fromHex-CMtWckFK.js";import"./ConstantsUtil-D1WLKDE-.js";import"./browser-W1csxV8_.js";const nn=v`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as uv,g as dv}from"./thirdweb-
|
|
1
|
+
import{a as uv,g as dv}from"./thirdweb-CT38Qh_V.js";import{r as fv}from"./index-CpWZ5dtQ.js";import{n as lv}from"./native-BxoXPUnu.js";import{t as bv}from"./ui-WV8OFH8_.js";function mv(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 yd={},Rn={},Bt={},Zr={},Er={},Bn={},On={},il;function Lp(){if(il)return On;il=1,Object.defineProperty(On,"__esModule",{value:!0}),On.getSDKVersion=void 0;const e=()=>"9.1.0";return On.getSDKVersion=e,On}var xn={},al;function hv(){if(al)return xn;al=1,Object.defineProperty(xn,"__esModule",{value:!0}),xn.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 xn.generateRequestId=n,xn}var sl;function Dp(){if(sl)return Bn;sl=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.MessageFormatter=void 0;const e=Lp(),r=hv();class n{}return Bn.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}),Bn}var jr={},cl;function Fr(){if(cl)return jr;cl=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.RestrictedMethods=jr.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||(jr.Methods=e={}));var r;return function(n){n.requestAddressBook="requestAddressBook"}(r||(jr.RestrictedMethods=r={})),jr}var ul;function yv(){return ul||(ul=1,function(e){var r=Er&&Er.__createBinding||(Object.create?function(s,i,a,c){c===void 0&&(c=a);var u=Object.getOwnPropertyDescriptor(i,a);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(s,c,u)}:function(s,i,a,c){c===void 0&&(c=a),s[c]=i[a]}),n=Er&&Er.__exportStar||function(s,i){for(var a in s)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&r(i,s,a)};Object.defineProperty(e,"__esModule",{value:!0});const t=Dp();class o{constructor(i=null,a=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:c,data:u,source:f})=>{const l=!u,b=!this.isServer&&f===window.parent,v=typeof u.version<"u"&&parseInt(u.version.split(".")[0]),h=typeof v=="number"&&v>=1;let m=!0;return Array.isArray(this.allowedOrigins)&&(m=this.allowedOrigins.find(_=>_.test(c))!==void 0),!l&&b&&h&&m},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:u}=c,f=this.callbacks.get(u);f&&(f(c),this.callbacks.delete(u))},this.send=(c,u)=>{const f=t.MessageFormatter.makeRequest(c,u);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(f,"*"),new Promise((l,b)=>{this.callbacks.set(f.id,v=>{if(!v.success){b(new Error(v.error));return}l(v)})})},this.allowedOrigins=i,this.debugMode=a,this.isServer||window.addEventListener("message",this.onParentMessage)}}e.default=o,n(Fr(),e)}(Er)),Er}var Cn={},wr={},qn={},dl;function pv(){if(dl)return qn;dl=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.isObjectEIP712TypedData=void 0;const e=r=>typeof r=="object"&&r!=null&&"domain"in r&&"types"in r&&"message"in r;return qn.isObjectEIP712TypedData=e,qn}var pd={},fl;function gv(){return fl||(fl=1,Object.defineProperty(pd,"__esModule",{value:!0})),pd}var gd={},ll;function _v(){return ll||(ll=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TransferDirection=e.TransactionStatus=e.TokenType=e.Operation=void 0;var r=fv();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}})}(gd)),gd}var _d={},bl;function vv(){return bl||(bl=1,Object.defineProperty(_d,"__esModule",{value:!0}),Fr()),_d}var ml;function Kd(){return ml||(ml=1,function(e){var r=wr&&wr.__createBinding||(Object.create?function(t,o,s,i){i===void 0&&(i=s);var a=Object.getOwnPropertyDescriptor(o,s);(!a||("get"in a?!o.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(t,i,a)}:function(t,o,s,i){i===void 0&&(i=s),t[i]=o[s]}),n=wr&&wr.__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(pv(),e),n(gv(),e),n(_v(),e),n(vv(),e)}(wr)),wr}var hl;function Ev(){if(hl)return Cn;hl=1,Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.TXs=void 0;const e=Fr(),r=Kd();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 i={txs:o,params:s};return(await this.communicator.send(e.Methods.sendTransactions,i)).data}}return Cn.TXs=n,Cn}var Mn={},Hn={},yl;function Zd(){return yl||(yl=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.RPC_CALLS=void 0,Hn.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"}),Hn}var pl;function jv(){if(pl)return Mn;pl=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.Eth=void 0;const e=Zd(),r=Fr(),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=i=>this.buildRequest({call:e.RPC_CALLS.eth_estimateGas})([i]),this.setSafeSettings=this.buildRequest({call:e.RPC_CALLS.safe_setSettings})}buildRequest(s){const{call:i,formatters:a}=s;return async c=>{a&&Array.isArray(c)&&a.forEach((l,b)=>{l&&(c[b]=l(c[b]))});const u={call:i,params:c||[]};return(await this.communicator.send(r.Methods.rpcCall,u)).data}}}return Mn.Eth=t,Mn}var Ot={},vd={},Ed={},kn={},Fn={},gl;function wv(){return gl||(gl=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.version=void 0,Fn.version="1.2.3"),Fn}var _l;function yn(){if(_l)return kn;_l=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.BaseError=void 0;const e=wv();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,i=o.cause instanceof r&&o.cause.docsPath||o.docsPath,a=[t||"An error occurred.","",...o.metaMessages?[...o.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...s?[`Details: ${s}`]:[],`Version: abitype@${e.version}`].join(`
|
|
2
2
|
`);super(a),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=i,this.metaMessages=o.metaMessages,this.shortMessage=t}}return kn.BaseError=r,kn}var ui={},vl;function Pv(){if(vl)return ui;vl=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.narrow=e;function e(r){return r}return ui}var di={},fi={},li={},bi={},Tt={},El;function wu(){if(El)return Tt;El=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.isTupleRegex=Tt.integerRegex=Tt.bytesRegex=void 0,Tt.execTyped=e;function e(r,n){const t=r.exec(n);return t==null?void 0:t.groups}return Tt.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Tt.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)?$/,Tt.isTupleRegex=/^\(.+?\).*?$/,Tt}var jl;function Gp(){if(jl)return bi;jl=1,Object.defineProperty(bi,"__esModule",{value:!0}),bi.formatAbiParameter=n;const e=wu(),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 a=0;a<s;a++){const c=t.components[a];o+=n(c),a<s-1&&(o+=", ")}const i=(0,e.execTyped)(r,t.type);return o+=`)${(i==null?void 0:i.array)||""}`,n({...t,type:o})}return"indexed"in t&&t.indexed&&(o=`${o} indexed`),t.name?`${o} ${t.name}`:o}return bi}var wl;function Vp(){if(wl)return li;wl=1,Object.defineProperty(li,"__esModule",{value:!0}),li.formatAbiParameters=r;const e=Gp();function r(n){let t="";const o=n.length;for(let s=0;s<o;s++){const i=n[s];t+=(0,e.formatAbiParameter)(i),s!==o-1&&(t+=", ")}return t}return li}var Pl;function Wp(){if(Pl)return fi;Pl=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.formatAbiItem=r;const e=Vp();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 fi}var Al;function Av(){if(Al)return di;Al=1,Object.defineProperty(di,"__esModule",{value:!0}),di.formatAbi=r;const e=Wp();function r(n){const t=[],o=n.length;for(let s=0;s<o;s++){const i=n[s],a=(0,e.formatAbiItem)(i);t.push(a)}return t}return di}var mi={},Se={},Tl;function pn(){if(Tl)return Se;Tl=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.functionModifiers=Se.eventModifiers=Se.modifiers=void 0,Se.isErrorSignature=n,Se.execErrorSignature=t,Se.isEventSignature=s,Se.execEventSignature=i,Se.isFunctionSignature=c,Se.execFunctionSignature=u,Se.isStructSignature=l,Se.execStructSignature=b,Se.isConstructorSignature=h,Se.execConstructorSignature=m,Se.isFallbackSignature=E,Se.execFallbackSignature=g,Se.isReceiveSignature=d;const e=wu(),r=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function n(j){return r.test(j)}function t(j){return(0,e.execTyped)(r,j)}const o=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function s(j){return o.test(j)}function i(j){return(0,e.execTyped)(o,j)}const a=/^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(j){return a.test(j)}function u(j){return(0,e.execTyped)(a,j)}const f=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function l(j){return f.test(j)}function b(j){return(0,e.execTyped)(f,j)}const v=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function h(j){return v.test(j)}function m(j){return(0,e.execTyped)(v,j)}const _=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function E(j){return _.test(j)}function g(j){return(0,e.execTyped)(_,j)}const w=/^receive\(\) external payable$/;function d(j){return w.test(j)}return Se.modifiers=new Set(["memory","indexed","storage","calldata"]),Se.eventModifiers=new Set(["indexed"]),Se.functionModifiers=new Set(["calldata","memory","storage"]),Se}var hi={},xt={},Il;function Pu(){if(Il)return xt;Il=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.UnknownSolidityTypeError=xt.UnknownTypeError=xt.InvalidAbiItemError=void 0;const e=yn();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"})}}xt.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"})}}xt.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 xt.UnknownSolidityTypeError=t,xt}var ke={},Sl;function Oo(){if(Sl)return ke;Sl=1,Object.defineProperty(ke,"__esModule",{value:!0}),ke.InvalidAbiTypeParameterError=ke.InvalidFunctionModifierError=ke.InvalidModifierError=ke.SolidityProtectedKeywordError=ke.InvalidParameterError=ke.InvalidAbiParametersError=ke.InvalidAbiParameterError=void 0;const e=yn();class r extends e.BaseError{constructor({param:u}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(u,null,2)})`,docsPath:"/api/human#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}ke.InvalidAbiParameterError=r;class n extends e.BaseError{constructor({params:u}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(u,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}ke.InvalidAbiParametersError=n;class t extends e.BaseError{constructor({param:u}){super("Invalid ABI parameter.",{details:u}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}ke.InvalidParameterError=t;class o extends e.BaseError{constructor({param:u,name:f}){super("Invalid ABI parameter.",{details:u,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"})}}ke.SolidityProtectedKeywordError=o;class s extends e.BaseError{constructor({param:u,type:f,modifier:l}){super("Invalid ABI parameter.",{details:u,metaMessages:[`Modifier "${l}" not allowed${f?` in "${f}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}ke.InvalidModifierError=s;class i extends e.BaseError{constructor({param:u,type:f,modifier:l}){super("Invalid ABI parameter.",{details:u,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"})}}ke.InvalidFunctionModifierError=i;class a extends e.BaseError{constructor({abiParameter:u}){super("Invalid ABI parameter.",{details:JSON.stringify(u,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}return ke.InvalidAbiTypeParameterError=a,ke}var Ct={},Rl;function Yd(){if(Rl)return Ct;Rl=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.InvalidStructSignatureError=Ct.UnknownSignatureError=Ct.InvalidSignatureError=void 0;const e=yn();class r extends e.BaseError{constructor({signature:s,type:i}){super(`Invalid ${i} signature.`,{details:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}Ct.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"})}}Ct.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 Ct.InvalidStructSignatureError=t,Ct}var Nn={},Bl;function Kp(){if(Bl)return Nn;Bl=1,Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.CircularReferenceError=void 0;const e=yn();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 Nn.CircularReferenceError=r,Nn}var Ze={},zn={},Ol;function Zp(){if(Ol)return zn;Ol=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.InvalidParenthesisError=void 0;const e=yn();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 zn.InvalidParenthesisError=r,zn}var Yr={},xl;function Tv(){if(xl)return Yr;xl=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.parameterCache=void 0,Yr.getParameterCacheKey=e;function e(r,n,t){let o="";if(t)for(const s of Object.entries(t)){if(!s)continue;let i="";for(const a of s[1])i+=`[${a.type}${a.name?`:${a.name}`:""}]`;o+=`(${s[0]}{${i}})`}return n?`${n}:${r}${o}`:`${r}${o}`}return Yr.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}]]),Yr}var Cl;function hn(){if(Cl)return Ze;Cl=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.parseSignature=a,Ze.parseFunctionSignature=c,Ze.parseEventSignature=u,Ze.parseErrorSignature=f,Ze.parseConstructorSignature=l,Ze.parseFallbackSignature=b,Ze.parseAbiParameter=_,Ze.splitParameters=E,Ze.isSolidityType=g,Ze.isSolidityKeyword=d,Ze.isValidDataLocation=j;const e=wu(),r=Pu(),n=Oo(),t=Yd(),o=Zp(),s=Tv(),i=pn();function a(p,y={}){if((0,i.isFunctionSignature)(p))return c(p,y);if((0,i.isEventSignature)(p))return u(p,y);if((0,i.isErrorSignature)(p))return f(p,y);if((0,i.isConstructorSignature)(p))return l(p,y);if((0,i.isFallbackSignature)(p))return b(p);if((0,i.isReceiveSignature)(p))return{type:"receive",stateMutability:"payable"};throw new t.UnknownSignatureError({signature:p})}function c(p,y={}){const A=(0,i.execFunctionSignature)(p);if(!A)throw new t.InvalidSignatureError({signature:p,type:"function"});const P=E(A.parameters),T=[],O=P.length;for(let S=0;S<O;S++)T.push(_(P[S],{modifiers:i.functionModifiers,structs:y,type:"function"}));const R=[];if(A.returns){const S=E(A.returns),x=S.length;for(let F=0;F<x;F++)R.push(_(S[F],{modifiers:i.functionModifiers,structs:y,type:"function"}))}return{name:A.name,type:"function",stateMutability:A.stateMutability??"nonpayable",inputs:T,outputs:R}}function u(p,y={}){const A=(0,i.execEventSignature)(p);if(!A)throw new t.InvalidSignatureError({signature:p,type:"event"});const P=E(A.parameters),T=[],O=P.length;for(let R=0;R<O;R++)T.push(_(P[R],{modifiers:i.eventModifiers,structs:y,type:"event"}));return{name:A.name,type:"event",inputs:T}}function f(p,y={}){const A=(0,i.execErrorSignature)(p);if(!A)throw new t.InvalidSignatureError({signature:p,type:"error"});const P=E(A.parameters),T=[],O=P.length;for(let R=0;R<O;R++)T.push(_(P[R],{structs:y,type:"error"}));return{name:A.name,type:"error",inputs:T}}function l(p,y={}){const A=(0,i.execConstructorSignature)(p);if(!A)throw new t.InvalidSignatureError({signature:p,type:"constructor"});const P=E(A.parameters),T=[],O=P.length;for(let R=0;R<O;R++)T.push(_(P[R],{structs:y,type:"constructor"}));return{type:"constructor",stateMutability:A.stateMutability??"nonpayable",inputs:T}}function b(p){const y=(0,i.execFallbackSignature)(p);if(!y)throw new t.InvalidSignatureError({signature:p,type:"fallback"});return{type:"fallback",stateMutability:y.stateMutability??"nonpayable"}}const v=/^(?<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$_]*))?$/,m=/^u?int$/;function _(p,y){var I,k;const A=(0,s.getParameterCacheKey)(p,y==null?void 0:y.type,y==null?void 0:y.structs);if(s.parameterCache.has(A))return s.parameterCache.get(A);const P=e.isTupleRegex.test(p),T=(0,e.execTyped)(P?h:v,p);if(!T)throw new n.InvalidParameterError({param:p});if(T.name&&d(T.name))throw new n.SolidityProtectedKeywordError({param:p,name:T.name});const O=T.name?{name:T.name}:{},R=T.modifier==="indexed"?{indexed:!0}:{},S=(y==null?void 0:y.structs)??{};let x,F={};if(P){x="tuple";const B=E(T.type),q=[],M=B.length;for(let H=0;H<M;H++)q.push(_(B[H],{structs:S}));F={components:q}}else if(T.type in S)x="tuple",F={components:S[T.type]};else if(m.test(T.type))x=`${T.type}256`;else if(T.type==="address payable")x="address";else if(x=T.type,(y==null?void 0:y.type)!=="struct"&&!g(x))throw new r.UnknownSolidityTypeError({type:x});if(T.modifier){if(!((k=(I=y==null?void 0:y.modifiers)==null?void 0:I.has)!=null&&k.call(I,T.modifier)))throw new n.InvalidModifierError({param:p,type:y==null?void 0:y.type,modifier:T.modifier});if(i.functionModifiers.has(T.modifier)&&!j(x,!!T.array))throw new n.InvalidFunctionModifierError({param:p,type:y==null?void 0:y.type,modifier:T.modifier})}const C={type:`${x}${T.array??""}`,...O,...R,...F};return s.parameterCache.set(A,C),C}function E(p,y=[],A="",P=0){const T=p.trim().length;for(let O=0;O<T;O++){const R=p[O],S=p.slice(O+1);switch(R){case",":return P===0?E(S,[...y,A.trim()]):E(S,y,`${A}${R}`,P);case"(":return E(S,y,`${A}${R}`,P+1);case")":return E(S,y,`${A}${R}`,P-1);default:return E(S,y,`${A}${R}`,P)}}if(A==="")return y;if(P!==0)throw new o.InvalidParenthesisError({current:A,depth:P});return y.push(A.trim()),y}function g(p){return p==="address"||p==="bool"||p==="function"||p==="string"||e.bytesRegex.test(p)||e.integerRegex.test(p)}const w=/^(?: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 d(p){return p==="address"||p==="bool"||p==="function"||p==="string"||p==="tuple"||e.bytesRegex.test(p)||e.integerRegex.test(p)||w.test(p)}function j(p,y){return y||p==="bytes"||p==="string"||p==="tuple"}return Ze}var ql;function Au(){if(ql)return hi;ql=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.parseStructs=a;const e=wu(),r=Pu(),n=Oo(),t=Yd(),o=Kp(),s=pn(),i=hn();function a(f){const l={},b=f.length;for(let _=0;_<b;_++){const E=f[_];if(!(0,s.isStructSignature)(E))continue;const g=(0,s.execStructSignature)(E);if(!g)throw new t.InvalidSignatureError({signature:E,type:"struct"});const w=g.properties.split(";"),d=[],j=w.length;for(let p=0;p<j;p++){const A=w[p].trim();if(!A)continue;const P=(0,i.parseAbiParameter)(A,{type:"struct"});d.push(P)}if(!d.length)throw new t.InvalidStructSignatureError({signature:E});l[g.name]=d}const v={},h=Object.entries(l),m=h.length;for(let _=0;_<m;_++){const[E,g]=h[_];v[E]=u(g,l)}return v}const c=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function u(f=[],l={},b=new Set){const v=[],h=f.length;for(let m=0;m<h;m++){const _=f[m];if(e.isTupleRegex.test(_.type))v.push(_);else{const g=(0,e.execTyped)(c,_.type);if(!(g!=null&&g.type))throw new n.InvalidAbiTypeParameterError({abiParameter:_});const{array:w,type:d}=g;if(d in l){if(b.has(d))throw new o.CircularReferenceError({type:d});v.push({..._,type:`tuple${w??""}`,components:u(l[d],l,new Set([...b,d]))})}else if((0,i.isSolidityType)(d))v.push(_);else throw new r.UnknownTypeError({type:d})}}return v}return hi}var Ml;function Iv(){if(Ml)return mi;Ml=1,Object.defineProperty(mi,"__esModule",{value:!0}),mi.parseAbi=t;const e=pn(),r=Au(),n=hn();function t(o){const s=(0,r.parseStructs)(o),i=[],a=o.length;for(let c=0;c<a;c++){const u=o[c];(0,e.isStructSignature)(u)||i.push((0,n.parseSignature)(u,s))}return i}return mi}var yi={},Hl;function Sv(){if(Hl)return yi;Hl=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.parseAbiItem=o;const e=Pu(),r=pn(),n=Au(),t=hn();function o(s){let i;if(typeof s=="string")i=(0,t.parseSignature)(s);else{const a=(0,n.parseStructs)(s),c=s.length;for(let u=0;u<c;u++){const f=s[u];if(!(0,r.isStructSignature)(f)){i=(0,t.parseSignature)(f,a);break}}}if(!i)throw new e.InvalidAbiItemError({signature:s});return i}return yi}var pi={},kl;function Rv(){if(kl)return pi;kl=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.parseAbiParameter=o;const e=Oo(),r=pn(),n=Au(),t=hn();function o(s){let i;if(typeof s=="string")i=(0,t.parseAbiParameter)(s,{modifiers:r.modifiers});else{const a=(0,n.parseStructs)(s),c=s.length;for(let u=0;u<c;u++){const f=s[u];if(!(0,r.isStructSignature)(f)){i=(0,t.parseAbiParameter)(f,{modifiers:r.modifiers,structs:a});break}}}if(!i)throw new e.InvalidAbiParameterError({param:s});return i}return pi}var gi={},Fl;function Bv(){if(Fl)return gi;Fl=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.parseAbiParameters=s;const e=Oo(),r=pn(),n=Au(),t=hn(),o=hn();function s(i){const a=[];if(typeof i=="string"){const c=(0,t.splitParameters)(i),u=c.length;for(let f=0;f<u;f++)a.push((0,o.parseAbiParameter)(c[f],{modifiers:r.modifiers}))}else{const c=(0,n.parseStructs)(i),u=i.length;for(let f=0;f<u;f++){const l=i[f];if((0,r.isStructSignature)(l))continue;const b=(0,t.splitParameters)(l),v=b.length;for(let h=0;h<v;h++)a.push((0,o.parseAbiParameter)(b[h],{modifiers:r.modifiers,structs:c}))}}if(a.length===0)throw new e.InvalidAbiParametersError({params:i});return a}return gi}var Nl;function nr(){return Nl||(Nl=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=yn();Object.defineProperty(e,"BaseError",{enumerable:!0,get:function(){return r.BaseError}});var n=Pv();Object.defineProperty(e,"narrow",{enumerable:!0,get:function(){return n.narrow}});var t=Av();Object.defineProperty(e,"formatAbi",{enumerable:!0,get:function(){return t.formatAbi}});var o=Wp();Object.defineProperty(e,"formatAbiItem",{enumerable:!0,get:function(){return o.formatAbiItem}});var s=Gp();Object.defineProperty(e,"formatAbiParameter",{enumerable:!0,get:function(){return s.formatAbiParameter}});var i=Vp();Object.defineProperty(e,"formatAbiParameters",{enumerable:!0,get:function(){return i.formatAbiParameters}});var a=Iv();Object.defineProperty(e,"parseAbi",{enumerable:!0,get:function(){return a.parseAbi}});var c=Sv();Object.defineProperty(e,"parseAbiItem",{enumerable:!0,get:function(){return c.parseAbiItem}});var u=Rv();Object.defineProperty(e,"parseAbiParameter",{enumerable:!0,get:function(){return u.parseAbiParameter}});var f=Bv();Object.defineProperty(e,"parseAbiParameters",{enumerable:!0,get:function(){return f.parseAbiParameters}});var l=Pu();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 b=Oo();Object.defineProperty(e,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return b.InvalidAbiTypeParameterError}}),Object.defineProperty(e,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return b.InvalidFunctionModifierError}}),Object.defineProperty(e,"InvalidModifierError",{enumerable:!0,get:function(){return b.InvalidModifierError}}),Object.defineProperty(e,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return b.SolidityProtectedKeywordError}}),Object.defineProperty(e,"InvalidParameterError",{enumerable:!0,get:function(){return b.InvalidParameterError}}),Object.defineProperty(e,"InvalidAbiParametersError",{enumerable:!0,get:function(){return b.InvalidAbiParametersError}}),Object.defineProperty(e,"InvalidAbiParameterError",{enumerable:!0,get:function(){return b.InvalidAbiParameterError}});var v=Yd();Object.defineProperty(e,"InvalidStructSignatureError",{enumerable:!0,get:function(){return v.InvalidStructSignatureError}}),Object.defineProperty(e,"InvalidSignatureError",{enumerable:!0,get:function(){return v.InvalidSignatureError}}),Object.defineProperty(e,"UnknownSignatureError",{enumerable:!0,get:function(){return v.UnknownSignatureError}});var h=Zp();Object.defineProperty(e,"InvalidParenthesisError",{enumerable:!0,get:function(){return h.InvalidParenthesisError}});var m=Kp();Object.defineProperty(e,"CircularReferenceError",{enumerable:!0,get:function(){return m.CircularReferenceError}})}(Ed)),Ed}var Jr={},_i={},zl;function me(){if(zl)return _i;zl=1,Object.defineProperty(_i,"__esModule",{value:!0}),_i.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:i=>n(r,i)}return _i}var vi={},Ei={},ae={},Un={},Ul;function Gt(){if(Ul)return Un;Ul=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.formatAbiItem=r,Un.formatAbiParams=n;const e=Ae();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(i=>t(i,{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 Un}var ji={},wi={},Ll;function Ve(){if(Ll)return wi;Ll=1,Object.defineProperty(wi,"__esModule",{value:!0}),wi.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 wi}var Dl;function Je(){if(Dl)return ji;Dl=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.size=r;const e=Ve();function r(n){return(0,e.isHex)(n,{strict:!1})?Math.ceil((n.length-2)/2):n.length}return ji}var Xr={},Ln={},Gl;function Ov(){return Gl||(Gl=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.version=void 0,Ln.version="2.43.4"),Ln}var Vl;function ue(){if(Vl)return Xr;Vl=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.BaseError=void 0,Xr.setErrorConfig=n;const e=Ov();let r={getDocsUrl:({docsBaseUrl:s,docsPath:i="",docsSlug:a})=>i?`${s??"https://viem.sh"}${i}${a?`#${a}`:""}`:void 0,version:`viem@${e.version}`};function n(s){r=s}class t extends Error{constructor(i,a={}){var b;const c=(()=>{var v;return a.cause instanceof t?a.cause.details:(v=a.cause)!=null&&v.message?a.cause.message:a.details})(),u=a.cause instanceof t&&a.cause.docsPath||a.docsPath,f=(b=r.getDocsUrl)==null?void 0:b.call(r,{...a,docsPath:u}),l=[i||"An error occurred.","",...a.metaMessages?[...a.metaMessages,""]:[],...f?[`Docs: ${f}`]:[],...c?[`Details: ${c}`]:[],...r.version?[`Version: ${r.version}`]:[]].join(`
|
|
3
3
|
`);super(l,a.cause?{cause:a.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=u,this.metaMessages=a.metaMessages,this.name=a.name??this.name,this.shortMessage=i,this.version=e.version}walk(i){return o(this,i)}}Xr.BaseError=t;function o(s,i){return i!=null&&i(s)?s:s&&typeof s=="object"&&"cause"in s&&s.cause!==void 0?o(s.cause,i):i?null:s}return Xr}var Wl;function Ae(){if(Wl)return ae;Wl=1,Object.defineProperty(ae,"__esModule",{value:!0}),ae.UnsupportedPackedAbiType=ae.InvalidDefinitionTypeError=ae.InvalidArrayError=ae.InvalidAbiDecodingTypeError=ae.InvalidAbiEncodingTypeError=ae.DecodeLogTopicsMismatch=ae.DecodeLogDataMismatch=ae.BytesSizeMismatchError=ae.AbiItemAmbiguityError=ae.AbiFunctionSignatureNotFoundError=ae.AbiFunctionOutputsNotFoundError=ae.AbiFunctionNotFoundError=ae.AbiEventNotFoundError=ae.AbiEventSignatureNotFoundError=ae.AbiEventSignatureEmptyTopicsError=ae.AbiErrorSignatureNotFoundError=ae.AbiErrorNotFoundError=ae.AbiErrorInputsNotFoundError=ae.AbiEncodingLengthMismatchError=ae.AbiEncodingBytesSizeMismatchError=ae.AbiEncodingArrayLengthMismatchError=ae.AbiDecodingZeroDataError=ae.AbiDecodingDataSizeTooSmallError=ae.AbiDecodingDataSizeInvalidError=ae.AbiConstructorParamsNotFoundError=ae.AbiConstructorNotFoundError=void 0;const e=Gt(),r=Je(),n=ue();class t extends n.BaseError{constructor({docsPath:x}){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:x,name:"AbiConstructorNotFoundError"})}}ae.AbiConstructorNotFoundError=t;class o extends n.BaseError{constructor({docsPath:x}){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(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as l,r as b,e as p,i as h,h as v}from"./index-
|
|
1
|
+
import{d as l,r as b,e as p,i as h,h as v}from"./index-BgJCDn2i.js";import{n as r,c as f}from"./index-B0b0mXhy.js";const m=l`
|
|
2
2
|
button {
|
|
3
3
|
background-color: transparent;
|
|
4
4
|
padding: ${({spacing:t})=>t[1]};
|