PageSourceSearch

https://blockcellar.com/_next/static/chunks/4948.6b730307f0489f92.js

js blockcellar.com collected 2026-10-08 11:26:47 UTC 2,778 bytes, 1 lines download raw bytes

vendor: 2,778 bytes, line 1
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4948],{4948:function(e,t,a){a.d(t,{offchainLookup:function(){return k},offchainLookupSignature:function(){return m}});var s=a(80660),r=a(76614),n=a(59265),o=a(90922);class c extends n.G{constructor({callbackSelector:e,cause:t,data:a,extraData:s,sender:r,urls:n}){super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],t.metaMessages?.length?"":[],"Offchain Gateway Call:",n&&["  Gateway URL(s):",...n.map(e=>`    ${(0,o.G)(e)}`)],`  Sender: ${r}`,`  Data: ${a}`,`  Callback selector: ${e}`,`  Extra data: ${s}`].flat(),name:"OffchainLookupError"})}}class i extends n.G{constructor({result:e,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,o.G)(t)}`,`Response: ${(0,r.P)(e)}`],name:"OffchainLookupResponseMalformedError"})}}class u extends n.G{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`],name:"OffchainLookupSenderMismatchError"})}}var d=a(52042),f=a(80275),l=a(69842),p=a(76226),h=a(22553),y=a(59593),w=a(48019);let m="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 k(e,{blockNumber:t,blockTag:a,data:r,to:n}){let{args:o}=(0,f.p)({data:r,abi:[g]}),[i,d,y,m,k]=o,{ccipRead:G}=e,O=G&&"function"==typeof G?.request?G.request:b;try{if(!(0,p.E)(n,i))throw new u({sender:i,to:n});let r=d.includes(w.M)?await (0,w.w)({data:y,ccipRequest:O}):await O({data:y,sender:i,urls:d}),{data:o}=await (0,s.R)(e,{blockNumber:t,blockTag:a,data:(0,h.zo)([m,(0,l.E)([{type:"bytes"},{type:"bytes"}],[r,k])]),to:n});return o}catch(e){throw new c({callbackSelector:m,cause:e,data:r,extraData:k,sender:i,urls:d})}}async function b({data:e,sender:t,urls:a}){let s=Error("An unknown error occurred.");for(let n=0;n<a.length;n++){let o=a[n],c=o.includes("{data}")?"GET":"POST",u="POST"===c?{data:e,sender:t}:void 0,f="POST"===c?{"Content-Type":"application/json"}:{};try{let a;let n=await fetch(o.replace("{sender}",t.toLowerCase()).replace("{data}",e),{body:JSON.stringify(u),headers:f,method:c});if(a=n.headers.get("Content-Type")?.startsWith("application/json")?(await n.json()).data:await n.text(),!n.ok){s=new d.Gg({body:u,details:a?.error?(0,r.P)(a.error):n.statusText,headers:n.headers,status:n.status,url:o});continue}if(!(0,y.v)(a)){s=new i({result:a,url:o});continue}return a}catch(e){s=new d.Gg({body:u,details:e.message,url:o})}}throw s}}}]);

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.