PageSourceSearch

https://www.slonks.art/_next/static/chunks/1964-56c619f7c5387401.js?dpl=dpl_4KR4gujyuZwxu3nSmWSxPEagcjqj

js slonks.art collected 2026-10-07 06:03:43 UTC 6,214 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1964],{64783:(t,e,r)=>{r.d(e,{Q:()=>s});var a=r(2774),n=r(72242),o=r(47002),i=r(5573),c=r(42482);function s(t={}){let{abi:e,address:r,functionName:u,query:d={}}=t,h=t.code,l=(0,c.U)(t),w=(0,i.i)({config:l}),f=function(t,e={}){return{async queryFn({queryKey:r}){let n=e.abi;if(!n)throw Error("abi is required");let{functionName:o,scopeKey:i,...c}=r[1],s=(()=>{let t=r[1];if(t.address)return{address:t.address};if(t.code)return{code:t.code};throw Error("address or code is required")})();if(!o)throw Error("functionName is required");return(0,a.J)(t,{abi:n,functionName:o,args:c.args,...s,...c})},queryKey:function(t={}){let{abi:e,...r}=t;return["readContract",(0,n.xO)(r)]}(e)}}(l,{...t,chainId:t.chainId??w}),p=!!((r||h)&&e&&u&&(d.enabled??!0));return(0,o.IT)({...d,...f,enabled:p,structuralSharing:d.structuralSharing??n.I_})}},73321:(t,e,r)=>{var a=r(74645);r.o(a,"usePathname")&&r.d(e,{usePathname:function(){return a.usePathname}}),r.o(a,"useRouter")&&r.d(e,{useRouter:function(){return a.useRouter}}),r.o(a,"useSearchParams")&&r.d(e,{useSearchParams:function(){return a.useSearchParams}})},79705:(t,e,r)=>{r.d(e,{x:()=>F});var a=r(48934),n=r(51011),o=r(6593),i=r(4181),c=r(4016),s=r(49586),u=r(66568),d=r(58275),h=r(4879),l=r(76429),w=r(70969),f=r(89649),p=r(58637),y=r(86301),m=r(95420),T=r(69960),g=r(15674),v=r(45312);let P=new y.A(128);async function C(t,e){let{account:r=t.account,assertChainId:a=!0,chain:i=t.chain,accessList:c,authorizationList:y,blobs:C,data:R,dataSuffix:x="string"==typeof t.dataSuffix?t.dataSuffix:t.dataSuffix?.value,gas:I,gasPrice:E,maxFeePerBlobGas:q,maxFeePerGas:F,maxPriorityFeePerGas:b,nonce:S,type:M,value:_,...N}=e;if(void 0===r)throw new o.T({docsPath:"/docs/actions/wallet/sendTransaction"});let k=r?(0,n.J)(r):null;try{(0,m.c)(e);let r=await (async()=>e.to?e.to:null!==e.to&&y&&y.length>0?await (0,d.g)({authorization:y[0]}).catch(()=>{throw new u.C("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if(k?.type==="json-rpc"||null===k){let e;null!==i&&(e=await (0,s.T)(t,T.T,"getChainId")({}),a&&function({chain:t,currentChainId:e}){if(!t)throw new h.jF;if(e!==t.id)throw new h.EH({chain:t,currentChainId:e})}({currentChainId:e,chain:i}));let n=t.chain?.formatters?.transactionRequest?.format,o=(n||p.Bv)({...(0,f.o)(N,{format:n}),accessList:c,account:k,authorizationList:y,blobs:C,chainId:e,data:x?(0,l.xW)([R??"0x",x]):R,gas:I,gasPrice:E,maxFeePerBlobGas:q,maxFeePerGas:F,maxPriorityFeePerGas:b,nonce:S,to:r,type:M,value:_},"sendTransaction"),u=P.get(t.uid);try{return await t.request({method:u?"wallet_sendTransaction":"eth_sendTransaction",params:[o]},{retryCount:0})}catch(e){if(!1===u)throw e;if("InvalidInputRpcError"===e.name||"InvalidParamsRpcError"===e.name||"MethodNotFoundRpcError"===e.name||"MethodNotSupportedRpcError"===e.name)return await t.request({method:"wallet_sendTransaction",params:[o]},{retryCount:0}).then(e=>(P.set(t.uid,!0),e)).catch(r=>{if("MethodNotFoundRpcError"===r.name||"MethodNotSupportedRpcError"===r.name)throw P.set(t.uid,!1),e;throw r});throw e}}if(k?.type==="local"){let e=await (0,s.T)(t,g.ft,"prepareTransactionRequest")({account:k,accessList:c,authorizationList:y,blobs:C,chain:i,data:x?(0,l.xW)([R??"0x",x]):R,gas:I,gasPrice:E,maxFeePerBlobGas:q,maxFeePerGas:F,maxPriorityFeePerGas:b,nonce:S,nonceManager:k.nonceManager,parameters:[...g.MM,"sidecars"],type:M,value:_,...N,to:r}),a=i?.serializers?.transaction,n=await k.signTransaction(e,{serializer:a});return await (0,s.T)(t,v.L,"sendRawTransaction")({serializedTransaction:n})}if(k?.type==="smart")throw new o.Z({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new o.Z({docsPath:"/docs/actions/wallet/sendTransaction",type:k?.type})}catch(t){if(t instanceof o.Z)throw t;throw(0,w.p)(t,{...e,account:k,chain:e.chain||void 0})}}async function R(t,e){return R.internal(t,C,"sendTransaction",e)}(R||(R={})).internal=async function(t,e,r,a){let{abi:u,account:d=t.account,address:h,args:l,functionName:w,...f}=a;if(void 0===d)throw new o.T({docsPath:"/docs/contract/writeContract"});let p=d?(0,n.J)(d):null,y=(0,i.p)({abi:u,args:l,functionName:w});try{return await (0,s.T)(t,e,r)({data:y,to:h,account:p,...f})}catch(t){throw(0,c.j)(t,{abi:u,address:h,args:l,docsPath:"/docs/contract/writeContract",functionName:w,sender:p?.address})}};var x=r(64200),I=r(86484);async function E(t,e){let r,{account:a,chainId:n,connector:o,...i}=e;r="object"==typeof a&&a?.type==="local"?t.getClient({chainId:n}):await (0,I.r)(t,{account:a??void 0,assertChainId:!1,chainId:n,connector:o});let c=(0,x.T)(r,R,"writeContract");return await c({...i,...a?{account:a}:{},chain:n?{id:n}:null})}var q=r(42482);function F(t={}){var e;let{mutation:r}=t,n=(e=(0,q.U)(t),{mutationFn:t=>E(e,t),mutationKey:["writeContract"]}),{mutate:o,mutateAsync:i,...c}=(0,a.n)({...r,...n});return{...c,writeContract:o,writeContractAsync:i}}},82040:(t,e,r)=>{r.d(e,{g:()=>w});var a=r(94747),n=r(1864),o=r(33828),i=r(76900),c=r(64200);async function s(t,e){let{chainId:r,timeout:s=0,...u}=e,d=t.getClient({chainId:r}),h=(0,c.T)(d,n.n,"waitForTransactionReceipt"),l=await h({...u,timeout:s}
1);if("reverted"===l.status){let t=(0,c.T)(d,o.x,"getTransaction"),{from:e,...r}=await t({hash:l.transactionHash}),n=(0,c.T)(d,i.T,"call"),s=await n({...r,account:e,data:r.input,gasPrice:"eip1559"!==r.type?r.gasPrice:void 0,maxFeePerGas:"eip1559"===r.type?r.maxFeePerGas:void 0,maxPriorityFeePerGas:"eip1559"===r.type?r.maxPriorityFeePerGas:void 0});throw Error(s?.data?(0,a.IQ)(`0x${s.data.substring(138)}`):"unknown reason")}return{...l,chainId:d.chain.id}}var u=r(72242),d=r(47002),h=r(5573),l=r(42482);function w(t={}){let{hash:e,query:r={}}=t,a=(0,l.U)(t),n=(0,h.i)({config:a}),o=function(t,e={}){return{async queryFn({queryKey:r}){let{hash:a,...n}=r[1];if(!a)throw Error("hash is required");return s(t,{...n,onReplaced:e.onReplaced,hash:a})},queryKey:function(t={}){let{onReplaced:e,...r}=t;return["waitForTransactionReceipt",(0,u.xO)(r)]}(e)}}(a,{...t,chainId:t.chainId??n}),i=!!(e&&(r.enabled??!0));return(0,d.IT)({...r,...o,enabled:i})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.