PageSourceSearch

https://seascape.network/1785.7a202414.async.js

js seascape.network collected 2026-10-06 07:40:04 UTC 2,808 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkseascape_web=self.webpackChunkseascape_web||[]).push([[1785],{21785:function(e,a,t){t.d(a,{offchainLookup:function(){return g},offchainLookupSignature:function(){return m}});var s=t(2612),r=t(96070),n=t(36117),o=t(29008);class c extends n.G{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.G)(e)}`))],`  Sender: ${r}`,`  Data: ${t}`,`  Callback selector: ${e}`,`  Extra data: ${s}`].flat(),name:"OffchainLookupError"})}}class d extends n.G{constructor({result:e,url:a}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,o.G)(a)}`,`Response: ${(0,r.P)(e)}`],name:"OffchainLookupResponseMalformedError"})}}class u extends n.G{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 l=t(78863),i=t(86899),f=t(45444),p=t(61228),h=t(57040),y=t(15102),w=t(18737);const m="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 g(e,{blockNumber:a,blockTag:t,data:r,to:n}){const{args:o}=(0,i.p)({data:r,abi:[b]}),[d,l,y,m,g]=o,{ccipRead:x}=e,G=x&&"function"==typeof x?.request?x.request:k;try{if(!(0,p.E)(n,d))throw new u({sender:d,to:n});const r=l.includes(w.M)?await(0,w.w)({data:y,ccipRequest:G}):await G({data:y,sender:d,urls:l}),{data:o}=await(0,s.R)(e,{blockNumber:a,blockTag:t,data:(0,h.zo)([m,(0,f.E)([{type:"bytes"},{type:"bytes"}],[r,g])]),to:n});return o}catch(e){throw new c({callbackSelector:m,cause:e,data:r,extraData:g,sender:d,urls:l})}}async function k({data:e,sender:a,urls:t}){let s=new Error("An unknown error occurred.");for(let n=0;n<t.length;n++){const o=t[n],c=o.includes("{data}")?"GET":"POST",u="POST"===c?{data:e,sender:a}:void 0,i="POST"===c?{"Content-Type":"application/json"}:{};try{const t=await fetch(o.replace("{sender}",a.toLowerCase()).replace("{data}",e),{body:JSON.stringify(u),headers:i,method:c});let n;if(n=t.headers.get("Content-Type")?.startsWith("application/json")?(await t.json()).data:await t.text(),!t.ok){s=new l.Gg({body:u,details:n?.error?(0,r.P)(n.error):t.statusText,headers:t.headers,status:t.status,url:o});continue}if(!(0,y.v)(n)){s=new d({result:n,url:o});continue}return n}catch(e){s=new l.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.