PageSourceSearch

https://laguna.network/_next/static/chunks/1735.55875fdc3aa247dd.js

js laguna.network collected 2026-09-26 03:57:09 UTC 4,706 bytes, 1 lines download raw bytes

vendor: 4,508 bytes, line 1
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1735],{87721:function(t,e,a){a.d(e,{p:function(){return c}});var n=a(65531),r=a(69921),s=a(10464),o=a(28917),i=a(7275);function c(t){let{abi:e,data:a}=t,c=(0,r.tP)(a,0,4),u=e.find(t=>"function"===t.type&&c===(0,s.C)((0,i.t)(t)));if(!u)throw new n.eF(c,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:u.name,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,o.r)(u.inputs,(0,r.tP)(a,4)):void 0}}},71735:function(t,e,a){a.d(e,{offchainLookup:function(){return E},offchainLookupSignature:function(){return y}});var n=a(50550),r=a(31853),s=a(81544),o=a(97564);class i extends s.G{constructor({callbackSelector:t,cause:e,data:a,extraData:n,sender:r,urls:s}){super(e.shortMessage||"An error occurred while fetching for an offchain result.",{cause:e,metaMessages:[...e.metaMessages||[],e.metaMessages?.length?"":[],"Offchain Gateway Call:",s&&["  Gateway URL(s):",...s.map(t=>`    ${(0,o.G)(t)}`)],`  Sender: ${r}`,`  Data: ${a}`,`  Callback selector: ${t}`,`  Extra data: ${n}`].flat(),name:"OffchainLookupError"})}}class c extends s.G{constructor({result:t,url:e}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,o.G)(e)}`,`Response: ${(0,r.P)(t)}`],name:"OffchainLookupResponseMalformedError"})}}class u extends s.G{constructor({sender:t,to:e}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${e}`,`OffchainLookup sender address: ${t}`],name:"OffchainLookupSenderMismatchError"})}}var f=a(17057),d=a(33591),l=a(30056),p=a(93637),h=a(89256),w=a(93610),m=a(7143);let y="0x556f1830",g={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function E(t,{blockNumber:e,blockTag:a,data:r,to:s}){let{args:o}=(0,d.p)({data:r,abi:[g]}),[c,f,w,y,E]=o,{ccipRead:M}=t,k=M&&"function"==typeof M?.request?M.request:b;try{if(!(0,p.E)(s,c))throw new u({sender:c,to:s});let r=f.includes(m.M)?await (0,m.w)({data:w,ccipRequest:k}):await k({data:w,sender:c,urls:f}),{data:o}=await (0,n.R)(t,{blockNumber:e,blockTag:a,data:(0,h.zo)([y,(0,l.E)([{type:"bytes"},{type:"bytes"}],[r,E])]),to:s});return o}catch(t){throw new i({callbackSelector:y,cause:t,data:r,extraData:E,sender:c,urls:f})}}async function b({data:t,sender:e,urls:a}){let n=Error("An unknown error occurred.");for(let s=0;s<a.length;s++){let o=a[s],i=o.includes("{data}")?"GET":"POST",u="POST"===i?{data:t,sender:e}:void 0,d="POST"===i?{"Content-Type":"application/json"}:{};try{let a;let s=await fetch(o.replace("{sender}",e.toLowerCase()).replace("{data}",t),{body:JSON.stringify(u),headers:d,method:i});if(a=s.headers.get("Content-Type")?.startsWith("application/json")?(await s.json()).data:await s.text(),!s.ok){n=new f.Gg({body:u,details:a?.error?(0,r.P)(a.error):s.statusText,headers:s.headers,status:s.status,url:o});continue}if(!(0,w.v)(a)){n=new c({result:a,url:o});continue}return a}catch(t){n=new f.Gg({body:u,details:t.message,url:o})}}throw n}},7143:function(t,e,a){a.d(e,{w:function(){return m},M:function(){return w}});var n=a(98158),r=a(55246),s=a(87721),o=a(65531),i=a(89256),c=a(10464),u=a(30056),f=a(7275),d=a(64043);let l="/docs/contract/encodeErrorResult";function p(t){let{abi:e,errorName:a,args:n}=t,r=e[0];if(a){let t=(0,d.mE)({abi:e,args:n,name:a});if(!t)throw new o.MS(a,{docsPath:l});r=t}if("error"!==r.type)throw new o.MS(void 0,{docsPath:l});let s=(0,f.t)(r),p=(0,c.C)(s),h="0x";if(n&&n.length>0){if(!r.inputs)throw new o.Zh(r.name,{docsPath:l});h=(0,u.E)(r.inputs,n)}return(0,i.SM)([p,h])}let h="/docs/contract/encodeFunctionResult",w="x-batch-gateway:true";async function m(t){let{data:e,ccipRequest:a}=t,{args:[i]}=(0,s.p)({abi:n.Yi,data:e}),c=[],f=[];return await Promise.all(i.map(async(t,e)=>{try{f[e]=t.urls.includes(w)?await m({data:t.data,ccipRequest:a}):await a(t),c[e]=!1}catch(t){c[e]=!0,f[e]="HttpRequestError"===t.name&&t.status?p({abi:n.Yi,errorName:"HttpError",args:[t.status,t.shortMessage]}):p({abi:[r.Up],errorName:"Error",args:["shortMessage"in t?t.shortMessage:t.message]})}})),function(t){let{abi:e,functionName:a,result:n}=t,r=e[0];if(a){let t=(0,d.mE)({abi:e,name:a});if(!t)throw new o.xL(a,{docsPath:h});r=t}if("function"!==r.type)throw new o.xL(void 0,{docsPath:h});if(!r.outputs)throw new o.MX(r.name,{docsPath:h});let s=(()=>
1{if(0===r.outputs.length)return[];if(1===r.outputs.length)return[n];if(Array.isArray(n))return n;throw new o.hn(n)})();return(0,u.E)(r.outputs,s)}({abi:n.Yi,functionName:"query",result:[c,f]})}}}]);

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.