@antseed/payments 0.1.18 → 0.1.19
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/dist/web/assets/{add-DO48uBkb.js → add-CnMN3crk.js} +1 -1
- package/dist/web/assets/{all-wallets-BkWVVAS1.js → all-wallets-CY8BcvnH.js} +1 -1
- package/dist/web/assets/{app-store-C1GcxcuM.js → app-store-OpsQnL6b.js} +1 -1
- package/dist/web/assets/{apple-DRlSkxCJ.js → apple-ea3D3QG1.js} +1 -1
- package/dist/web/assets/{arrow-bottom-Dy6m-dGR.js → arrow-bottom-B1RJNhVt.js} +1 -1
- package/dist/web/assets/{arrow-bottom-circle-OaPyrZJI.js → arrow-bottom-circle-CrgfViQF.js} +1 -1
- package/dist/web/assets/{arrow-left-B-xL79ld.js → arrow-left-DkHmoNvs.js} +1 -1
- package/dist/web/assets/{arrow-right-CDDOEehx.js → arrow-right-Csa95zhd.js} +1 -1
- package/dist/web/assets/{arrow-top-B2DPbEC0.js → arrow-top-FaPVX-uA.js} +1 -1
- package/dist/web/assets/{bank-Dp2d_jcI.js → bank-BdQ45jz6.js} +1 -1
- package/dist/web/assets/{basic-wb3lzxpj.js → basic-CYj2N0nx.js} +1 -1
- package/dist/web/assets/{browser-DiavMjo3.js → browser-BoS_K-M3.js} +1 -1
- package/dist/web/assets/{card-CXol1E6y.js → card-BtYRyglp.js} +1 -1
- package/dist/web/assets/{ccip-C830ozAe.js → ccip-B4aTczMO.js} +1 -1
- package/dist/web/assets/{checkmark-e7H-qhu3.js → checkmark-C4aM1CTR.js} +1 -1
- package/dist/web/assets/{checkmark-bold-DxsScgl-.js → checkmark-bold-CwiMjf2_.js} +1 -1
- package/dist/web/assets/{chevron-bottom-CvZfXzBT.js → chevron-bottom-Dg2nJ-vc.js} +1 -1
- package/dist/web/assets/{chevron-left-DFBaQyQK.js → chevron-left-BT4V5m6Y.js} +1 -1
- package/dist/web/assets/{chevron-right-Bf_SF_cp.js → chevron-right-DhickjFC.js} +1 -1
- package/dist/web/assets/{chevron-top-B0n_Zh87.js → chevron-top-CVkdNR-y.js} +1 -1
- package/dist/web/assets/{chrome-store-BDZONbOt.js → chrome-store-CtpJcJBk.js} +1 -1
- package/dist/web/assets/{clock-C_BVK706.js → clock-Ddq19c2D.js} +1 -1
- package/dist/web/assets/{close-eHk8a8tJ.js → close-Ch_Zjhnl.js} +1 -1
- package/dist/web/assets/{coinPlaceholder-aL7BEX1k.js → coinPlaceholder-Dk0xB-4L.js} +1 -1
- package/dist/web/assets/{compass-RZbEaXGl.js → compass-DHU-Eoc1.js} +1 -1
- package/dist/web/assets/{copy-CHkGGl5J.js → copy-CIH7xqvE.js} +1 -1
- package/dist/web/assets/{core-_kiBKHZY.js → core-C3Yl6Mm6.js} +4 -4
- package/dist/web/assets/{cursor-DFJbazqp.js → cursor-D3PJzTqV.js} +1 -1
- package/dist/web/assets/{cursor-transparent-B67EeEQg.js → cursor-transparent-BPNS5ab7.js} +1 -1
- package/dist/web/assets/{desktop-BU69u1US.js → desktop-_65_UECo.js} +1 -1
- package/dist/web/assets/{disconnect-BbDef4m-.js → disconnect-6eyuiyri.js} +1 -1
- package/dist/web/assets/{discord-oXIadhpF.js → discord-Cf2hwWyf.js} +1 -1
- package/dist/web/assets/{etherscan-CoQpNlDL.js → etherscan-BapHdepb.js} +1 -1
- package/dist/web/assets/{exclamation-triangle-CjfzUL4g.js → exclamation-triangle-DNuKoicx.js} +1 -1
- package/dist/web/assets/{extension-C5L64T6f.js → extension-CittGz5d.js} +1 -1
- package/dist/web/assets/{external-link-D_sy6vDx.js → external-link-BPb10Q9a.js} +1 -1
- package/dist/web/assets/{facebook-DjmrhmFq.js → facebook-CzRVpdnP.js} +1 -1
- package/dist/web/assets/{farcaster-DmMF77Xj.js → farcaster-B-lGNr6N.js} +1 -1
- package/dist/web/assets/{filters-D2f0XPGO.js → filters--rzAOlrK.js} +1 -1
- package/dist/web/assets/{github-BDybahrF.js → github-CTEelle6.js} +1 -1
- package/dist/web/assets/{google-CSB9Kfmf.js → google-CmzeLQ_U.js} +1 -1
- package/dist/web/assets/{help-circle-DB23Ty7u.js → help-circle-BLW90gxf.js} +1 -1
- package/dist/web/assets/{id-D5gPzS6F.js → id-E4FhvAgG.js} +1 -1
- package/dist/web/assets/{image-NZoxDgOK.js → image-ColOE3YA.js} +1 -1
- package/dist/web/assets/{index-C21LFfGU.js → index-Ag1x6xBG.js} +1 -1
- package/dist/web/assets/{index-Lr-e9hfO.js → index-C9xiIbcG.js} +1 -1
- package/dist/web/assets/{index-DtljJr-y.js → index-Cqasp_n2.js} +1 -1
- package/dist/web/assets/{index-g2oIv4aL.js → index-DTf1bmxt.js} +4 -4
- package/dist/web/assets/{index-CkhAWBO6.js → index-dHgF-FOE.js} +3 -3
- package/dist/web/assets/{index.es-DNztKQ9p.js → index.es-ALp3MGS5.js} +4 -4
- package/dist/web/assets/{info-C4wx9Htm.js → info-Br_-WZd9.js} +1 -1
- package/dist/web/assets/{info-circle-D1Cmx7mJ.js → info-circle-D78XIBku.js} +1 -1
- package/dist/web/assets/{lightbulb-CvsAEXZz.js → lightbulb-C1ECZ8jL.js} +1 -1
- package/dist/web/assets/{mail-C7pHszz9.js → mail-Do2GnVbr.js} +1 -1
- package/dist/web/assets/{metamask-sdk-gqt9hhaE.js → metamask-sdk-CgX-loxF.js} +1 -1
- package/dist/web/assets/{mobile-D2ktYh20.js → mobile-D50Myghj.js} +1 -1
- package/dist/web/assets/{more-BDcZRHGE.js → more-vq2zeyDZ.js} +1 -1
- package/dist/web/assets/{network-placeholder-uAsFZ0N6.js → network-placeholder-D07MKx65.js} +1 -1
- package/dist/web/assets/{nftPlaceholder-CAmeFtDk.js → nftPlaceholder-BTd7mq2G.js} +1 -1
- package/dist/web/assets/{off-CnsMLe4a.js → off-DnWATN7w.js} +1 -1
- package/dist/web/assets/{play-store-BWBCekI3.js → play-store-Dw6y8hrx.js} +1 -1
- package/dist/web/assets/{plus-DcqOmNnO.js → plus-CJIfFTYE.js} +1 -1
- package/dist/web/assets/{qr-code-kWARpZ1V.js → qr-code-C-FBJMjl.js} +1 -1
- package/dist/web/assets/{recycle-horizontal-CRjP5bVY.js → recycle-horizontal-BX_gsTVv.js} +1 -1
- package/dist/web/assets/{refresh-BmgOAu1R.js → refresh-Igllc8bx.js} +1 -1
- package/dist/web/assets/{reown-logo-D_NG_fWN.js → reown-logo-z9Aesban.js} +1 -1
- package/dist/web/assets/{search-Dx7e5lJ3.js → search-C-Rknfr6.js} +1 -1
- package/dist/web/assets/{secp256k1-DffysWcZ.js → secp256k1-6d2CBDnL.js} +1 -1
- package/dist/web/assets/{secp256k1-qFgvCj4z.js → secp256k1-Uj-zatzh.js} +1 -1
- package/dist/web/assets/{send-Dq_-74KT.js → send-k0QJymly.js} +1 -1
- package/dist/web/assets/{swapHorizontal-Do1Xf2eE.js → swapHorizontal-BAueetaF.js} +1 -1
- package/dist/web/assets/{swapHorizontalBold-DSAw1A-e.js → swapHorizontalBold-CoG1Ey0L.js} +1 -1
- package/dist/web/assets/{swapHorizontalMedium-NQgPkERU.js → swapHorizontalMedium-DBqBgzBM.js} +1 -1
- package/dist/web/assets/{swapHorizontalRoundedBold-WIVym2ML.js → swapHorizontalRoundedBold-Cw2ZXD15.js} +1 -1
- package/dist/web/assets/{swapVertical-iz1iMNzs.js → swapVertical-Bh1Ycta5.js} +1 -1
- package/dist/web/assets/{telegram-BdaGOXYA.js → telegram-bdNgqRn8.js} +1 -1
- package/dist/web/assets/{three-dots-CJe04iHO.js → three-dots-DI11H0oD.js} +1 -1
- package/dist/web/assets/{twitch-Dn95Orvn.js → twitch-Bwu0TgyB.js} +1 -1
- package/dist/web/assets/{twitterIcon-dHRfC90o.js → twitterIcon-Bu0Rh7Om.js} +1 -1
- package/dist/web/assets/{verify-BQMMiIyf.js → verify-DZDJ6x_t.js} +1 -1
- package/dist/web/assets/{verify-filled-C9AnpVj0.js → verify-filled-D58UQZWu.js} +1 -1
- package/dist/web/assets/{w3m-modal-C2ckylSw.js → w3m-modal-CPJVgPFT.js} +1 -1
- package/dist/web/assets/{wallet-BEeQhJEj.js → wallet-Y9MCfLD3.js} +1 -1
- package/dist/web/assets/{wallet-placeholder-CiPjLH93.js → wallet-placeholder-DuDXqEaN.js} +1 -1
- package/dist/web/assets/{walletconnect-ByWXqkux.js → walletconnect-C3X4V4na.js} +1 -1
- package/dist/web/assets/{warning-circle-B0jejq5j.js → warning-circle-C4YIEenB.js} +1 -1
- package/dist/web/assets/{x-y1x93MqW.js → x-Da_Yzzg_.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as lv,n as bv}from"./index-
|
|
1
|
+
import{r as lv,n as bv}from"./index-DTf1bmxt.js";import{r as mv}from"./index-kzlEvkEN.js";import{r as hv}from"./events-DQ172AOg.js";function yv(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function pv(){if(typeof WebSocket<"u")return WebSocket;if(typeof global.WebSocket<"u")return global.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const gv=pv(),_v=Object.freeze(Object.defineProperty({__proto__:null,WebSocket:gv},Symbol.toStringTag,{value:"Module"}));var pd={},On={},xt={},Zr={},jr={},xn={},Cn={},al;function G1(){if(al)return Cn;al=1,Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.getSDKVersion=void 0;const e=()=>"9.1.0";return Cn.getSDKVersion=e,Cn}var qn={},sl;function vv(){if(sl)return qn;sl=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.generateRequestId=void 0;const e=r=>r.toString(16).padStart(2,"0"),t=r=>{const o=new Uint8Array(r/2);return window.crypto.getRandomValues(o),Array.from(o,e).join("")},n=()=>typeof window<"u"?t(10):new Date().getTime().toString(36);return qn.generateRequestId=n,qn}var cl;function V1(){if(cl)return xn;cl=1,Object.defineProperty(xn,"__esModule",{value:!0}),xn.MessageFormatter=void 0;const e=G1(),t=vv();class n{}return xn.MessageFormatter=n,n.makeRequest=(r,o)=>({id:(0,t.generateRequestId)(),method:r,params:o,env:{sdkVersion:(0,e.getSDKVersion)()}}),n.makeResponse=(r,o,s)=>({id:r,success:!0,version:s,data:o}),n.makeErrorResponse=(r,o,s)=>({id:r,success:!1,error:o,version:s}),xn}var wr={},ul;function Fr(){if(ul)return wr;ul=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.RestrictedMethods=wr.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||(wr.Methods=e={}));var t;return(function(n){n.requestAddressBook="requestAddressBook"})(t||(wr.RestrictedMethods=t={})),wr}var dl;function Ev(){return dl||(dl=1,(function(e){var t=jr&&jr.__createBinding||(Object.create?(function(s,i,a,c){c===void 0&&(c=a);var d=Object.getOwnPropertyDescriptor(i,a);(!d||("get"in d?!i.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(s,c,d)}):(function(s,i,a,c){c===void 0&&(c=a),s[c]=i[a]})),n=jr&&jr.__exportStar||function(s,i){for(var a in s)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,s,a)};Object.defineProperty(e,"__esModule",{value:!0});const r=V1();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:d,source:l})=>{const f=!d,m=!this.isServer&&l===window.parent,g=typeof d.version<"u"&&parseInt(d.version.split(".")[0]),h=typeof g=="number"&&g>=1;let b=!0;return Array.isArray(this.allowedOrigins)&&(b=this.allowedOrigins.find(v=>v.test(c))!==void 0),!f&&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,l=this.callbacks.get(d);l&&(l(c),this.callbacks.delete(d))},this.send=(c,d)=>{const l=r.MessageFormatter.makeRequest(c,d);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(l,"*"),new Promise((f,m)=>{this.callbacks.set(l.id,g=>{if(!g.success){m(new Error(g.error));return}f(g)})})},this.allowedOrigins=i,this.debugMode=a,this.isServer||window.addEventListener("message",this.onParentMessage)}}e.default=o,n(Fr(),e)})(jr)),jr}var Mn={},Pr={},Hn={},fl;function jv(){if(fl)return Hn;fl=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.isObjectEIP712TypedData=void 0;const e=t=>typeof t=="object"&&t!=null&&"domain"in t&&"types"in t&&"message"in t;return Hn.isObjectEIP712TypedData=e,Hn}var gd={},ll;function wv(){return ll||(ll=1,Object.defineProperty(gd,"__esModule",{value:!0})),gd}var _d={},bl;function Pv(){return bl||(bl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TransferDirection=e.TransactionStatus=e.TokenType=e.Operation=void 0;var t=mv();Object.defineProperty(e,"Operation",{enumerable:!0,get:function(){return t.Operation}}),Object.defineProperty(e,"TokenType",{enumerable:!0,get:function(){return t.TokenType}}),Object.defineProperty(e,"TransactionStatus",{enumerable:!0,get:function(){return t.TransactionStatus}}),Object.defineProperty(e,"TransferDirection",{enumerable:!0,get:function(){return t.TransferDirection}})})(_d)),_d}var vd={},ml;function Av(){return ml||(ml=1,Object.defineProperty(vd,"__esModule",{value:!0}),Fr()),vd}var hl;function Zd(){return hl||(hl=1,(function(e){var t=Pr&&Pr.__createBinding||(Object.create?(function(r,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(r,i,a)}):(function(r,o,s,i){i===void 0&&(i=s),r[i]=o[s]})),n=Pr&&Pr.__exportStar||function(r,o){for(var s in r)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&t(o,r,s)};Object.defineProperty(e,"__esModule",{value:!0}),n(jv(),e),n(wv(),e),n(Pv(),e),n(Av(),e)})(Pr)),Pr}var yl;function Tv(){if(yl)return Mn;yl=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.TXs=void 0;const e=Fr(),t=Zd();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,t.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 Mn.TXs=n,Mn}var kn={},Fn={},pl;function Jd(){return pl||(pl=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.RPC_CALLS=void 0,Fn.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"}),Fn}var gl;function Sv(){if(gl)return kn;gl=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.Eth=void 0;const e=Jd(),t=Fr(),n={defaultBlockParam:(o="latest")=>o,returnFullTxObjectParam:(o=!1)=>o,blockNumberToHex:o=>Number.isInteger(o)?`0x${o.toString(16)}`:o};class r{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((f,m)=>{f&&(c[m]=f(c[m]))});const d={call:i,params:c||[]};return(await this.communicator.send(t.Methods.rpcCall,d)).data}}}return kn.Eth=r,kn}var Ct={},Ed={},jd={},Nn={},zn={},_l;function Iv(){return _l||(_l=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.version=void 0,zn.version="1.2.3"),zn}var vl;function pn(){if(vl)return Nn;vl=1,Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.BaseError=void 0;const e=Iv();class t extends Error{constructor(r,o={}){var c;const s=o.cause instanceof t?o.cause.details:(c=o.cause)!=null&&c.message?o.cause.message:o.details,i=o.cause instanceof t&&o.cause.docsPath||o.docsPath,a=[r||"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=r}}return Nn.BaseError=t,Nn}var di={},El;function Rv(){if(El)return di;El=1,Object.defineProperty(di,"__esModule",{value:!0}),di.narrow=e;function e(t){return t}return di}var fi={},li={},bi={},mi={},Tt={},jl;function Pu(){if(jl)return Tt;jl=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.isTupleRegex=Tt.integerRegex=Tt.bytesRegex=void 0,Tt.execTyped=e;function e(t,n){const r=t.exec(n);return r==null?void 0:r.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 wl;function W1(){if(wl)return mi;wl=1,Object.defineProperty(mi,"__esModule",{value:!0}),mi.formatAbiParameter=n;const e=Pu(),t=/^tuple(?<array>(\[(\d*)\])*)$/;function n(r){let o=r.type;if(t.test(r.type)&&"components"in r){o="(";const s=r.components.length;for(let a=0;a<s;a++){const c=r.components[a];o+=n(c),a<s-1&&(o+=", ")}const i=(0,e.execTyped)(t,r.type);return o+=`)${(i==null?void 0:i.array)||""}`,n({...r,type:o})}return"indexed"in r&&r.indexed&&(o=`${o} indexed`),r.name?`${o} ${r.name}`:o}return mi}var Pl;function K1(){if(Pl)return bi;Pl=1,Object.defineProperty(bi,"__esModule",{value:!0}),bi.formatAbiParameters=t;const e=W1();function t(n){let r="";const o=n.length;for(let s=0;s<o;s++){const i=n[s];r+=(0,e.formatAbiParameter)(i),s!==o-1&&(r+=", ")}return r}return bi}var Al;function Z1(){if(Al)return li;Al=1,Object.defineProperty(li,"__esModule",{value:!0}),li.formatAbiItem=t;const e=K1();function t(n){var r;return n.type==="function"?`function ${n.name}(${(0,e.formatAbiParameters)(n.inputs)})${n.stateMutability&&n.stateMutability!=="nonpayable"?` ${n.stateMutability}`:""}${(r=n.outputs)!=null&&r.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 li}var Tl;function Bv(){if(Tl)return fi;Tl=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.formatAbi=t;const e=Z1();function t(n){const r=[],o=n.length;for(let s=0;s<o;s++){const i=n[s],a=(0,e.formatAbiItem)(i);r.push(a)}return r}return fi}var hi={},Re={},Sl;function gn(){if(Sl)return Re;Sl=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.functionModifiers=Re.eventModifiers=Re.modifiers=void 0,Re.isErrorSignature=n,Re.execErrorSignature=r,Re.isEventSignature=s,Re.execEventSignature=i,Re.isFunctionSignature=c,Re.execFunctionSignature=d,Re.isStructSignature=f,Re.execStructSignature=m,Re.isConstructorSignature=h,Re.execConstructorSignature=b,Re.isFallbackSignature=_,Re.execFallbackSignature=E,Re.isReceiveSignature=u;const e=Pu(),t=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function n(j){return t.test(j)}function r(j){return(0,e.execTyped)(t,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 d(j){return(0,e.execTyped)(a,j)}const l=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function f(j){return l.test(j)}function m(j){return(0,e.execTyped)(l,j)}const g=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function h(j){return g.test(j)}function b(j){return(0,e.execTyped)(g,j)}const v=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function _(j){return v.test(j)}function E(j){return(0,e.execTyped)(v,j)}const P=/^receive\(\) external payable$/;function u(j){return P.test(j)}return Re.modifiers=new Set(["memory","indexed","storage","calldata"]),Re.eventModifiers=new Set(["indexed"]),Re.functionModifiers=new Set(["calldata","memory","storage"]),Re}var yi={},qt={},Il;function Au(){if(Il)return qt;Il=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.UnknownSolidityTypeError=qt.UnknownTypeError=qt.InvalidAbiItemError=void 0;const e=pn();class t 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"})}}qt.InvalidAbiItemError=t;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"})}}qt.UnknownTypeError=n;class r 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 qt.UnknownSolidityTypeError=r,qt}var ke={},Rl;function Co(){if(Rl)return ke;Rl=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=pn();class t 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"})}}ke.InvalidAbiParameterError=t;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"})}}ke.InvalidAbiParametersError=n;class r extends e.BaseError{constructor({param:d}){super("Invalid ABI parameter.",{details:d}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}ke.InvalidParameterError=r;class o extends e.BaseError{constructor({param:d,name:l}){super("Invalid ABI parameter.",{details:d,metaMessages:[`"${l}" 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:d,type:l,modifier:f}){super("Invalid ABI parameter.",{details:d,metaMessages:[`Modifier "${f}" not allowed${l?` in "${l}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}ke.InvalidModifierError=s;class i extends e.BaseError{constructor({param:d,type:l,modifier:f}){super("Invalid ABI parameter.",{details:d,metaMessages:[`Modifier "${f}" not allowed${l?` in "${l}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${f}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}ke.InvalidFunctionModifierError=i;class a 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 ke.InvalidAbiTypeParameterError=a,ke}var Mt={},Bl;function Yd(){if(Bl)return Mt;Bl=1,Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.InvalidStructSignatureError=Mt.UnknownSignatureError=Mt.InvalidSignatureError=void 0;const e=pn();class t 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"})}}Mt.InvalidSignatureError=t;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"})}}Mt.UnknownSignatureError=n;class r 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 Mt.InvalidStructSignatureError=r,Mt}var Un={},Ol;function J1(){if(Ol)return Un;Ol=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.CircularReferenceError=void 0;const e=pn();class t extends e.BaseError{constructor({type:r}){super("Circular reference detected.",{metaMessages:[`Struct "${r}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}return Un.CircularReferenceError=t,Un}var Ye={},Ln={},xl;function Y1(){if(xl)return Ln;xl=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.InvalidParenthesisError=void 0;const e=pn();class t extends e.BaseError{constructor({current:r,depth:o}){super("Unbalanced parentheses.",{metaMessages:[`"${r.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 Ln.InvalidParenthesisError=t,Ln}var Jr={},Cl;function Ov(){if(Cl)return Jr;Cl=1,Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.parameterCache=void 0,Jr.getParameterCacheKey=e;function e(t,n,r){let o="";if(r)for(const s of Object.entries(r)){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}:${t}${o}`:`${t}${o}`}return Jr.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}]]),Jr}var ql;function yn(){if(ql)return Ye;ql=1,Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.parseSignature=a,Ye.parseFunctionSignature=c,Ye.parseEventSignature=d,Ye.parseErrorSignature=l,Ye.parseConstructorSignature=f,Ye.parseFallbackSignature=m,Ye.parseAbiParameter=v,Ye.splitParameters=_,Ye.isSolidityType=E,Ye.isSolidityKeyword=u,Ye.isValidDataLocation=j;const e=Pu(),t=Au(),n=Co(),r=Yd(),o=Y1(),s=Ov(),i=gn();function a(p,y={}){if((0,i.isFunctionSignature)(p))return c(p,y);if((0,i.isEventSignature)(p))return d(p,y);if((0,i.isErrorSignature)(p))return l(p,y);if((0,i.isConstructorSignature)(p))return f(p,y);if((0,i.isFallbackSignature)(p))return m(p);if((0,i.isReceiveSignature)(p))return{type:"receive",stateMutability:"payable"};throw new r.UnknownSignatureError({signature:p})}function c(p,y={}){const I=(0,i.execFunctionSignature)(p);if(!I)throw new r.InvalidSignatureError({signature:p,type:"function"});const w=_(I.parameters),A=[],B=w.length;for(let S=0;S<B;S++)A.push(v(w[S],{modifiers:i.functionModifiers,structs:y,type:"function"}));const R=[];if(I.returns){const S=_(I.returns),x=S.length;for(let F=0;F<x;F++)R.push(v(S[F],{modifiers:i.functionModifiers,structs:y,type:"function"}))}return{name:I.name,type:"function",stateMutability:I.stateMutability??"nonpayable",inputs:A,outputs:R}}function d(p,y={}){const I=(0,i.execEventSignature)(p);if(!I)throw new r.InvalidSignatureError({signature:p,type:"event"});const w=_(I.parameters),A=[],B=w.length;for(let R=0;R<B;R++)A.push(v(w[R],{modifiers:i.eventModifiers,structs:y,type:"event"}));return{name:I.name,type:"event",inputs:A}}function l(p,y={}){const I=(0,i.execErrorSignature)(p);if(!I)throw new r.InvalidSignatureError({signature:p,type:"error"});const w=_(I.parameters),A=[],B=w.length;for(let R=0;R<B;R++)A.push(v(w[R],{structs:y,type:"error"}));return{name:I.name,type:"error",inputs:A}}function f(p,y={}){const I=(0,i.execConstructorSignature)(p);if(!I)throw new r.InvalidSignatureError({signature:p,type:"constructor"});const w=_(I.parameters),A=[],B=w.length;for(let R=0;R<B;R++)A.push(v(w[R],{structs:y,type:"constructor"}));return{type:"constructor",stateMutability:I.stateMutability??"nonpayable",inputs:A}}function m(p){const y=(0,i.execFallbackSignature)(p);if(!y)throw new r.InvalidSignatureError({signature:p,type:"fallback"});return{type:"fallback",stateMutability:y.stateMutability??"nonpayable"}}const g=/^(?<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 v(p,y){var T,k;const I=(0,s.getParameterCacheKey)(p,y==null?void 0:y.type,y==null?void 0:y.structs);if(s.parameterCache.has(I))return s.parameterCache.get(I);const w=e.isTupleRegex.test(p),A=(0,e.execTyped)(w?h:g,p);if(!A)throw new n.InvalidParameterError({param:p});if(A.name&&u(A.name))throw new n.SolidityProtectedKeywordError({param:p,name:A.name});const B=A.name?{name:A.name}:{},R=A.modifier==="indexed"?{indexed:!0}:{},S=(y==null?void 0:y.structs)??{};let x,F={};if(w){x="tuple";const O=_(A.type),C=[],q=O.length;for(let M=0;M<q;M++)C.push(v(O[M],{structs:S}));F={components:C}}else if(A.type in S)x="tuple",F={components:S[A.type]};else if(b.test(A.type))x=`${A.type}256`;else if(A.type==="address payable")x="address";else if(x=A.type,(y==null?void 0:y.type)!=="struct"&&!E(x))throw new t.UnknownSolidityTypeError({type:x});if(A.modifier){if(!((k=(T=y==null?void 0:y.modifiers)==null?void 0:T.has)!=null&&k.call(T,A.modifier)))throw new n.InvalidModifierError({param:p,type:y==null?void 0:y.type,modifier:A.modifier});if(i.functionModifiers.has(A.modifier)&&!j(x,!!A.array))throw new n.InvalidFunctionModifierError({param:p,type:y==null?void 0:y.type,modifier:A.modifier})}const H={type:`${x}${A.array??""}`,...B,...R,...F};return s.parameterCache.set(I,H),H}function _(p,y=[],I="",w=0){const A=p.trim().length;for(let B=0;B<A;B++){const R=p[B],S=p.slice(B+1);switch(R){case",":return w===0?_(S,[...y,I.trim()]):_(S,y,`${I}${R}`,w);case"(":return _(S,y,`${I}${R}`,w+1);case")":return _(S,y,`${I}${R}`,w-1);default:return _(S,y,`${I}${R}`,w)}}if(I==="")return y;if(w!==0)throw new o.InvalidParenthesisError({current:I,depth:w});return y.push(I.trim()),y}function E(p){return p==="address"||p==="bool"||p==="function"||p==="string"||e.bytesRegex.test(p)||e.integerRegex.test(p)}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(p){return p==="address"||p==="bool"||p==="function"||p==="string"||p==="tuple"||e.bytesRegex.test(p)||e.integerRegex.test(p)||P.test(p)}function j(p,y){return y||p==="bytes"||p==="string"||p==="tuple"}return Ye}var Ml;function Tu(){if(Ml)return yi;Ml=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.parseStructs=a;const e=Pu(),t=Au(),n=Co(),r=Yd(),o=J1(),s=gn(),i=yn();function a(l){const f={},m=l.length;for(let v=0;v<m;v++){const _=l[v];if(!(0,s.isStructSignature)(_))continue;const E=(0,s.execStructSignature)(_);if(!E)throw new r.InvalidSignatureError({signature:_,type:"struct"});const P=E.properties.split(";"),u=[],j=P.length;for(let p=0;p<j;p++){const I=P[p].trim();if(!I)continue;const w=(0,i.parseAbiParameter)(I,{type:"struct"});u.push(w)}if(!u.length)throw new r.InvalidStructSignatureError({signature:_});f[E.name]=u}const g={},h=Object.entries(f),b=h.length;for(let v=0;v<b;v++){const[_,E]=h[v];g[_]=d(E,f)}return g}const c=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function d(l=[],f={},m=new Set){const g=[],h=l.length;for(let b=0;b<h;b++){const v=l[b];if(e.isTupleRegex.test(v.type))g.push(v);else{const E=(0,e.execTyped)(c,v.type);if(!(E!=null&&E.type))throw new n.InvalidAbiTypeParameterError({abiParameter:v});const{array:P,type:u}=E;if(u in f){if(m.has(u))throw new o.CircularReferenceError({type:u});g.push({...v,type:`tuple${P??""}`,components:d(f[u],f,new Set([...m,u]))})}else if((0,i.isSolidityType)(u))g.push(v);else throw new t.UnknownTypeError({type:u})}}return g}return yi}var Hl;function xv(){if(Hl)return hi;Hl=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.parseAbi=r;const e=gn(),t=Tu(),n=yn();function r(o){const s=(0,t.parseStructs)(o),i=[],a=o.length;for(let c=0;c<a;c++){const d=o[c];(0,e.isStructSignature)(d)||i.push((0,n.parseSignature)(d,s))}return i}return hi}var pi={},kl;function Cv(){if(kl)return pi;kl=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.parseAbiItem=o;const e=Au(),t=gn(),n=Tu(),r=yn();function o(s){let i;if(typeof s=="string")i=(0,r.parseSignature)(s);else{const a=(0,n.parseStructs)(s),c=s.length;for(let d=0;d<c;d++){const l=s[d];if(!(0,t.isStructSignature)(l)){i=(0,r.parseSignature)(l,a);break}}}if(!i)throw new e.InvalidAbiItemError({signature:s});return i}return pi}var gi={},Fl;function qv(){if(Fl)return gi;Fl=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.parseAbiParameter=o;const e=Co(),t=gn(),n=Tu(),r=yn();function o(s){let i;if(typeof s=="string")i=(0,r.parseAbiParameter)(s,{modifiers:t.modifiers});else{const a=(0,n.parseStructs)(s),c=s.length;for(let d=0;d<c;d++){const l=s[d];if(!(0,t.isStructSignature)(l)){i=(0,r.parseAbiParameter)(l,{modifiers:t.modifiers,structs:a});break}}}if(!i)throw new e.InvalidAbiParameterError({param:s});return i}return gi}var _i={},Nl;function Mv(){if(Nl)return _i;Nl=1,Object.defineProperty(_i,"__esModule",{value:!0}),_i.parseAbiParameters=s;const e=Co(),t=gn(),n=Tu(),r=yn(),o=yn();function s(i){const a=[];if(typeof i=="string"){const c=(0,r.splitParameters)(i),d=c.length;for(let l=0;l<d;l++)a.push((0,o.parseAbiParameter)(c[l],{modifiers:t.modifiers}))}else{const c=(0,n.parseStructs)(i),d=i.length;for(let l=0;l<d;l++){const f=i[l];if((0,t.isStructSignature)(f))continue;const m=(0,r.splitParameters)(f),g=m.length;for(let h=0;h<g;h++)a.push((0,o.parseAbiParameter)(m[h],{modifiers:t.modifiers,structs:c}))}}if(a.length===0)throw new e.InvalidAbiParametersError({params:i});return a}return _i}var zl;function ir(){return zl||(zl=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 t=pn();Object.defineProperty(e,"BaseError",{enumerable:!0,get:function(){return t.BaseError}});var n=Rv();Object.defineProperty(e,"narrow",{enumerable:!0,get:function(){return n.narrow}});var r=Bv();Object.defineProperty(e,"formatAbi",{enumerable:!0,get:function(){return r.formatAbi}});var o=Z1();Object.defineProperty(e,"formatAbiItem",{enumerable:!0,get:function(){return o.formatAbiItem}});var s=W1();Object.defineProperty(e,"formatAbiParameter",{enumerable:!0,get:function(){return s.formatAbiParameter}});var i=K1();Object.defineProperty(e,"formatAbiParameters",{enumerable:!0,get:function(){return i.formatAbiParameters}});var a=xv();Object.defineProperty(e,"parseAbi",{enumerable:!0,get:function(){return a.parseAbi}});var c=Cv();Object.defineProperty(e,"parseAbiItem",{enumerable:!0,get:function(){return c.parseAbiItem}});var d=qv();Object.defineProperty(e,"parseAbiParameter",{enumerable:!0,get:function(){return d.parseAbiParameter}});var l=Mv();Object.defineProperty(e,"parseAbiParameters",{enumerable:!0,get:function(){return l.parseAbiParameters}});var f=Au();Object.defineProperty(e,"UnknownTypeError",{enumerable:!0,get:function(){return f.UnknownTypeError}}),Object.defineProperty(e,"InvalidAbiItemError",{enumerable:!0,get:function(){return f.InvalidAbiItemError}}),Object.defineProperty(e,"UnknownSolidityTypeError",{enumerable:!0,get:function(){return f.UnknownSolidityTypeError}});var m=Co();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 g=Yd();Object.defineProperty(e,"InvalidStructSignatureError",{enumerable:!0,get:function(){return g.InvalidStructSignatureError}}),Object.defineProperty(e,"InvalidSignatureError",{enumerable:!0,get:function(){return g.InvalidSignatureError}}),Object.defineProperty(e,"UnknownSignatureError",{enumerable:!0,get:function(){return g.UnknownSignatureError}});var h=Y1();Object.defineProperty(e,"InvalidParenthesisError",{enumerable:!0,get:function(){return h.InvalidParenthesisError}});var b=J1();Object.defineProperty(e,"CircularReferenceError",{enumerable:!0,get:function(){return b.CircularReferenceError}})})(jd)),jd}var Yr={},vi={},Ul;function me(){if(Ul)return vi;Ul=1,Object.defineProperty(vi,"__esModule",{value:!0}),vi.getAction=e;function e(t,n,r){const o=t[n.name];if(typeof o=="function")return o;const s=t[r];return typeof s=="function"?s:i=>n(t,i)}return vi}var Ei={},ji={},ae={},Dn={},Ll;function Wt(){if(Ll)return Dn;Ll=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.formatAbiItem=t,Dn.formatAbiParams=n;const e=Se();function t(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=>r(i,{includeName:s})).join(s?", ":","):""}function r(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 Dn}var wi={},Pi={},Dl;function Ve(){if(Dl)return Pi;Dl=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.isHex=e;function e(t,{strict:n=!0}={}){return!t||typeof t!="string"?!1:n?/^0x[0-9a-fA-F]*$/.test(t):t.startsWith("0x")}return Pi}var Gl;function We(){if(Gl)return wi;Gl=1,Object.defineProperty(wi,"__esModule",{value:!0}),wi.size=t;const e=Ve();function t(n){return(0,e.isHex)(n,{strict:!1})?Math.ceil((n.length-2)/2):n.length}return wi}var Xr={},Gn={},Vl;function Hv(){return Vl||(Vl=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.version=void 0,Gn.version="2.47.12"),Gn}var Wl;function ue(){if(Wl)return Xr;Wl=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.BaseError=void 0,Xr.setErrorConfig=n;const e=Hv();let t={getDocsUrl:({docsBaseUrl:s,docsPath:i="",docsSlug:a})=>i?`${s??"https://viem.sh"}${i}${a?`#${a}`:""}`:void 0,version:`viem@${e.version}`};function n(s){t=s}class r extends Error{constructor(i,a={}){var m;const c=(()=>{var g;return a.cause instanceof r?a.cause.details:(g=a.cause)!=null&&g.message?a.cause.message:a.details})(),d=a.cause instanceof r&&a.cause.docsPath||a.docsPath,l=(m=t.getDocsUrl)==null?void 0:m.call(t,{...a,docsPath:d}),f=[i||"An error occurred.","",...a.metaMessages?[...a.metaMessages,""]:[],...l?[`Docs: ${l}`]:[],...c?[`Details: ${c}`]:[],...t.version?[`Version: ${t.version}`]:[]].join(`
|
|
3
3
|
`);super(f,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=d,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=r;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 Kl;function Se(){if(Kl)return ae;Kl=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=Wt(),t=We(),n=ue();class r 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=r;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(`
|