PageSourceSearch

https://www.solienne.ai/_next/static/chunks/6669.ca98c2de4f1ed750.js

js solienne.ai collected 2026-10-05 12:40:49 UTC 4,957 bytes, 1 lines download raw bytes

vendor: 4,759 bytes, line 1
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6669],{18331:function(t,e,a){a.d(e,{p:function(){return c}});var n=a(46047),r=a(94030),s=a(37802),o=a(47064),i=a(87951);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}}},80276:function(t,e,a){a.d(e,{E:function(){return s}});var n=a(62422),r=a(55288);function s(t,e){if(!(0,r.U)(t,{strict:!1}))throw new n.b({address:t});if(!(0,r.U)(e,{strict:!1}))throw new n.b({address:e});return t.toLowerCase()===e.toLowerCase()}},56669:function(t,e,a){a.d(e,{offchainLookup:function(){return b},offchainLookupSignature:function(){return y}});var n=a(49246),r=a(51563),s=a(49304),o=a(73474);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(22208),d=a(44515),l=a(19698),p=a(80276),h=a(90990),w=a(26629),m=a(91254);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 b(t,{blockNumber:e,blockTag:a,data:r,to:s}){let{args:o}=(0,d.p)({data:r,abi:[g]}),[c,f,w,y,b]=o,{ccipRead:M}=t,k=M&&"function"==typeof M?.request?M.request:E;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,b])]),to:s});return o}catch(t){throw new i({callbackSelector:y,cause:t,data:r,extraData:b,sender:c,urls:f})}}async function E({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}},91254:function(t,e,a){a.d(e,{w:function(){return m},M:function(){return w}});var n=a(56511),r=a(36507),s=a(18331),o=a(46047),i=a(90990),c=a(37802),u=a(19698),f=a(87951),d=a(29543);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.