PageSourceSearch

https://blockchainacademics.com/_next/static/chunks/9073.4581a94c2c7a4f1e.js

js blockchainacademics.com collected 2026-10-04 20:59:29 UTC 3,120 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="58e7f777-7a4b-49e6-94a5-0fa7928eaa9d",e._sentryDebugIdIdentifier="sentry-dbid-58e7f777-7a4b-49e6-94a5-0fa7928eaa9d")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9073],{49073:(e,a,t)=>{t.d(a,{offchainLookup:()=>m,offchainLookupSignature:()=>g});var s=t(19772),r=t(37614),n=t(52925),o=t(34834);class c extends n.C{constructor({callbackSelector:e,cause:a,data:t,extraData:s,sender:r,urls:n}){super(a.shortMessage||"An error occurred while fetching for an offchain result.",{cause:a,metaMessages:[...a.metaMessages||[],a.metaMessages?.length?"":[],"Offchain Gateway Call:",n&&["  Gateway URL(s):",...n.map(e=>`    ${(0,o.I)(e)}`)],`  Sender: ${r}`,`  Data: ${t}`,`  Callback selector: ${e}`,`  Extra data: ${s}`].flat(),name:"OffchainLookupError"})}}class d extends n.C{constructor({result:e,url:a}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,o.I)(a)}`,`Response: ${(0,r.A)(e)}`],name:"OffchainLookupResponseMalformedError"})}}class i extends n.C{constructor({sender:e,to:a}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${a}`,`OffchainLookup sender address: ${e}`],name:"OffchainLookupSenderMismatchError"})}}var f=t(12882),u=t(80103),l=t(9282),p=t(516),h=t(30602),y=t(46931),w=t(26814);let g="0x556f1830",b={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 m(e,{blockNumber:a,blockTag:t,data:r,to:n}){let{args:o}=(0,u.W)({data:r,abi:[b]}),[d,f,y,g,m]=o,{ccipRead:C}=e,O=C&&"function"==typeof C?.request?C.request:k;try{if(!(0,p.h)(n,d))throw new i({sender:d,to:n});let r=f.includes(w.J)?await (0,w.X)({data:y,ccipRequest:O}):await O({data:y,sender:d,urls:f}),{data:o}=await (0,s.T)(e,{blockNumber:a,blockTag:t,data:(0,h.xW)([g,(0,l.h)([{type:"bytes"},{type:"bytes"}],[r,m])]),to:n});return o}catch(e){throw new c({callbackSelector:g,cause:e,data:r,extraData:m,sender:d,urls:f})}}async function k({data:e,sender:a,urls:t}){let s=Error("An unknown error occurred.");for(let n=0;n<t.length;n++){let o=t[n],c=o.includes("{data}")?"GET":"POST",i="POST"===c?{data:e,sender:a}:void 0,u="POST"===c?{"Content-Type":"application/json"}:{};try{let t,n=await fetch(o.replace("{sender}",a.toLowerCase()).replace("{data}",e),{body:JSON.stringify(i),headers:u,method:c});if(t=n.headers.get("Content-Type")?.startsWith("application/json")?(await n.json()).data:await n.text(),!n.ok){s=new f.Ci({body:i,details:t?.error?(0,r.A)(t.error):n.statusText,headers:n.headers,status:n.status,url:o});continue}if(!(0,y.q)(t)){s=new d({result:t,url:o});continue}return t}catch(e){s=new f.Ci({body:i,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.