PageSourceSearch

https://dex.guru/static/js/9036.1d407444.js

js dex.guru collected 2026-10-02 11:01:56 UTC 14,860 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdexguru=self.webpackChunkdexguru||[]).push([[9036],{82320:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ccipFetch=t.offchainLookup=t.offchainLookupAbiItem=t.offchainLookupSignature=void 0;const r=n(15626),o=n(7569),i=n(68589),s=n(65816),c=n(37209),a=n(87767),u=n(74865),l=n(34055),f=n(28404);async function d(e){let{data:t,sender:n,urls:r}=e,s=new Error("An unknown error occurred.");for(let a=0;a<r.length;a++){const e=r[a],u=e.includes("{sender}")||e.includes("{data}")?"GET":"POST",d="POST"===u?{data:t,sender:n}:void 0;try{const r=await fetch(e.replace("{sender}",n).replace("{data}",t),{body:JSON.stringify(d),method:u});let c;if(c=r.headers.get("Content-Type")?.startsWith("application/json")?(await r.json()).data:await r.text(),!r.ok){s=new i.HttpRequestError({body:d,details:(0,f.stringify)(c.error)||r.statusText,headers:r.headers,status:r.status,url:e});continue}if(!(0,l.isHex)(c)){s=new o.OffchainLookupResponseMalformedError({result:c,url:e});continue}return c}catch(c){s=new i.HttpRequestError({body:d,details:c.message,url:e})}}throw s}t.offchainLookupSignature="0x556f1830",t.offchainLookupAbiItem={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"}]},t.offchainLookup=async function(e,n){let{blockNumber:i,blockTag:l,data:f,to:h}=n;const{args:g}=(0,s.decodeErrorResult)({data:f,abi:[t.offchainLookupAbiItem]}),[y,p,b,x,m]=g;try{if(!(0,a.isAddressEqual)(h,y))throw new o.OffchainLookupSenderMismatchError({sender:y,to:h});const t=await d({data:b,sender:y,urls:p}),{data:n}=await(0,r.call)(e,{blockNumber:i,blockTag:l,data:(0,u.concat)([x,(0,c.encodeAbiParameters)([{type:"bytes"},{type:"bytes"}],[t,m])]),to:h});return n}catch(z){throw new o.OffchainLookupError({callbackSelector:x,cause:z,data:f,extraData:m,sender:y,urls:p})}},t.ccipFetch=d},30627:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getChainContractAddress=t.defineChain=t.assertCurrentChain=void 0;const r=n(47988);t.assertCurrentChain=function(e){let{chain:t,currentChainId:n}=e;if(!t)throw new r.ChainNotFoundError;if(n!==t.id)throw new r.ChainMismatchError({chain:t,currentChainId:n})},t.defineChain=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{fees:n=e.fees,formatters:r=e.formatters,serializers:o=e.serializers}=t;return{...e,fees:n,formatters:r,serializers:o}},t.getChainContractAddress=function(e){let{blockNumber:t,chain:n,contract:o}=e;const i=n?.contracts?.[o];if(!i)throw new r.ChainDoesNotSupportContract({chain:n,contract:{name:o}});if(t&&i.blockCreated&&i.blockCreated>t)throw new r.ChainDoesNotSupportContract({blockNumber:t,chain:n,contract:{name:o,blockCreated:i.blockCreated}});return i.address}},35663:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.extractFunctionType=t.extractFunctionParams=t.extractFunctionName=t.extractFunctionParts=void 0;const n=/((function|event)\s)?(.*)(\((.*)\))/;function r(e){const t=e.match(n),r=t?.[2]||void 0,o=t?.[3];return{type:r,name:o,params:t?.[5]||void 0}}t.extractFunctionParts=r,t.extractFunctionName=function(e){return r(e).name},t.extractFunctionParams=function(e){const t=r(e).params,n=t?.split(",").map((e=>e.trim().split(" ")));return n?.map((e=>({type:e[0],name:"indexed"===e[1]?e[2]:e[1],..."indexed"===e[1]?{indexed:!0}:{}})))},t.extractFunctionType=function(e){return r(e).type}},74865:(e,t)=>{function n(e){let t=0;for(const o of e)t+=o.length;const n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function r(e){return`0x${e.reduce(((e,t)=>e+t.replace("0x","")),"")}`}Object.defineProperty(t,"__esModule",{value:!0}),t.concatHex=t.concatBytes=t.concat=void 0,t.concat=function(e){return"string"===typeof e[0]?r(e):n(e)},t.concatBytes=n,t.concatHex=r},7717:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isBytes=void 0,t.isBytes=function(e){return!!e&&("object"===typeof e&&("BYTES_PER_ELEMENT"in e&&(1===e.BYTES_PER_ELEMENT&&"Uint8Array"===e.constructor.name)))}}
1,54462:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isBytesEqual=void 0;const r=n(59625),o=n(22867),i=n(34055);t.isBytesEqual=function(e,t){const n=(0,i.isHex)(e)?(0,o.toBytes)(e):e,s=(0,i.isHex)(t)?(0,o.toBytes)(t):t;return(0,r.equalBytes)(n,s)}},34055:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isHex=void 0,t.isHex=function(e){let{strict:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!e&&("string"===typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")))}},31005:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.padBytes=t.padHex=t.pad=void 0;const r=n(93080);function o(e){let{dir:t,size:n=32}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===n)return e;const o=e.replace("0x","");if(o.length>2*n)throw new r.SizeExceedsPaddingSizeError({size:Math.ceil(o.length/2),targetSize:n,type:"hex"});return`0x${o["right"===t?"padEnd":"padStart"](2*n,"0")}`}function i(e){let{dir:t,size:n=32}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===n)return e;if(e.length>n)throw new r.SizeExceedsPaddingSizeError({size:e.length,targetSize:n,type:"bytes"});const o=new Uint8Array(n);for(let r=0;r<n;r++){const i="right"===t;o[i?r:n-r-1]=e[i?r:e.length-r-1]}return o}t.pad=function(e){let{dir:t,size:n=32}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e?o(e,{dir:t,size:n}):i(e,{dir:t,size:n})},t.padHex=o,t.padBytes=i},73723:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.size=void 0;const r=n(34055);t.size=function(e){return(0,r.isHex)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},90762:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sliceHex=t.sliceBytes=t.slice=void 0;const r=n(93080),o=n(34055),i=n(73723);function s(e,t){if("number"===typeof t&&t>0&&t>(0,i.size)(e)-1)throw new r.SliceOffsetOutOfBoundsError({offset:t,position:"start",size:(0,i.size)(e)})}function c(e,t,n){if("number"===typeof t&&"number"===typeof n&&(0,i.size)(e)!==n-t)throw new r.SliceOffsetOutOfBoundsError({offset:n,position:"end",size:(0,i.size)(e)})}function a(e,t,n){let{strict:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};s(e,t);const o=e.slice(t,n);return r&&c(o,t,n),o}function u(e,t,n){let{strict:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};s(e,t);const o=`0x${e.replace("0x","").slice(2*(t??0),2*(n??e.length))}`;return r&&c(o,t,n),o}t.slice=function(e,t,n){let{strict:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,o.isHex)(e,{strict:!1})?u(e,t,n,{strict:r}):a(e,t,n,{strict:r})},t.sliceBytes=a,t.sliceHex=u},67523:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.trim=void 0,t.trim=function(e){let{dir:t="left"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"===typeof e?e.replace("0x",""):e,r=0;for(let o=0;o<n.length-1&&"0"===n["left"===t?o:n.length-o-1].toString();o++)r++;return n="left"===t?n.slice(r):n.slice(0,n.length-r),"string"===typeof e?(1===n.length&&"right"===t&&(n=`${n}0`),`0x${n.length%2===1?`0${n}`:n}`):n}}
1,76243:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.bytesToString=t.bytesToNumber=t.bytesToBool=t.bytesToBigint=t.fromBytes=void 0;const r=n(19750),o=n(67523),i=n(43149),s=n(79239);function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"undefined"!==typeof t.size&&(0,i.assertSize)(e,{size:t.size});const n=(0,s.bytesToHex)(e,t);return(0,i.hexToBigInt)(n)}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if("undefined"!==typeof t.size&&((0,i.assertSize)(n,{size:t.size}),n=(0,o.trim)(n)),n.length>1||n[0]>1)throw new r.InvalidBytesBooleanError(n);return Boolean(n[0])}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"undefined"!==typeof t.size&&(0,i.assertSize)(e,{size:t.size});const n=(0,s.bytesToHex)(e,t);return(0,i.hexToNumber)(n)}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;return"undefined"!==typeof t.size&&((0,i.assertSize)(n,{size:t.size}),n=(0,o.trim)(n,{dir:"right"})),(new TextDecoder).decode(n)}t.fromBytes=function(e,t){const n="string"===typeof t?{to:t}:t,r=n.to;return"number"===r?u(e,n):"bigint"===r?c(e,n):"boolean"===r?a(e,n):"string"===r?l(e,n):(0,s.bytesToHex)(e,n)},t.bytesToBigint=c,t.bytesToBool=a,t.bytesToNumber=u,t.bytesToString=l},43149:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hexToString=t.hexToNumber=t.hexToBool=t.hexToBigInt=t.fromHex=t.assertSize=void 0;const r=n(19750),o=n(73723),i=n(67523),s=n(22867);function c(e,t){let{size:n}=t;if((0,o.size)(e)>n)throw new r.SizeOverflowError({givenSize:(0,o.size)(e),maxSize:n})}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{signed:n}=t;t.size&&c(e,{size:t.size});const r=BigInt(e);if(!n)return r;const o=(e.length-2)/2;return r<=(1n<<8n*BigInt(o)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*o,"f")}`)-1n}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if(t.size&&(c(n,{size:t.size}),n=(0,i.trim)(n)),"0x00"===(0,i.trim)(n))return!1;if("0x01"===(0,i.trim)(n))return!0;throw new r.InvalidHexBooleanError(n)}function l(e){return Number(a(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,s.hexToBytes)(e);return t.size&&(c(n,{size:t.size}),n=(0,i.trim)(n,{dir:"right"})),(new TextDecoder).decode(n)}t.assertSize=c,t.fromHex=function(e,t){const n="string"===typeof t?{to:t}:t,r=n.to;return"number"===r?l(e,n):"bigint"===r?a(e,n):"string"===r?f(e,n):"boolean"===r?u(e,n):(0,s.hexToBytes)(e,n)},t.hexToBigInt=a,t.hexToBool=u,t.hexToNumber=l,t.hexToString=f},46592:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.fromRlp=void 0;const r=n(19750),o=n(76243),i=n(22867),s=n(79239);function c(e,t){return Array.isArray(e)?e.map((e=>c(e,t))):"hex"===t?(0,s.bytesToHex)(e):e}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0===e.length)return[new Uint8Array([]),0];const n=e[t];if(n<=127)return[new Uint8Array([e[t]]),1];if(n<=183){const o=n-128,i=t+1;if(i+o>e.length)throw new r.DataLengthTooShortError({length:i+o,dataLength:e.length});return[e.slice(i,i+o),1+o]}if(n<=191){const i=n-183,s=t+1,c=(0,o.bytesToNumber)(e.slice(s,s+i));if(s+i+c>e.length)throw new r.DataLengthTooShortError({length:i+c,dataLength:e.length-i});return[e.slice(s+i,s+i+c),1+i+c]}let i=0,s=n-192;n>247&&(i=n-247,s=(0,o.bytesToNumber)(e.slice(t+1,t+1+i)));let c=t+1+i;if(c>e.length)throw new r.DataLengthTooShortError({length:c,dataLength:e.length});const u=1+i+s,l=[];for(;c<t+u;){const n=a(e,c);if(l.push(n[0]),c+=n[1],c>t+u)throw new r.OffsetOutOfBoundsError({nextOffset:c,offset:t+u})}return[l,u]}t.fromRlp=function(e,t){const n=function(e){if("string"===typeof e){if(e.length>3&&e.length%2!==0)throw new r.InvalidHexValueError(e);return(0,i.hexToBytes)(e)}return e}(e),[o,s]=a(n);if(s<n.length)throw new r.DataLengthTooLongError({consumed:s,length:n.length});return c(o,t)}},22867:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.stringToBytes=t.numberToBytes=t.hexToBytes=t.boolToBytes=t.toBytes=void 0;const r=n(2798),o=n(34055),i=n(31005),s=n(43149),c=n(79239),a=new TextEncoder;function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Uint8Array(1);return n[0]=Number(e),"number"===typeof t.size?((0,s.assertSize)(n,{size:t.size}),(0,i.pad)(n,{size:t.size})):n}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;t.size&&((0,s.assertSize)(n,{size:t.size}),n=(0,i.pad)(n,{dir:"right",size:t.size}));let o=n.slice(2);o.length%2&&(o=`0${o}`);const c=new Uint8Array(o.length/2);for(let i=0;i<c.length;i++){const e=2*i,t=o.slice(e,e+2),n=Number.parseInt(t,16);if(Number.isNaN(n)||n<0)throw new r.BaseError(`Invalid byte sequence ("${t}" in "${o}").`);c[i]=n}return c}function f(e,t){return l((0,c.numberToHex)(e,t))}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=a.encode(e);return"number"===typeof t.size?((0,s.assertSize)(n,{size:t.size}),(0,i.pad)(n,{dir:"right",size:t.size})):n}t.toBytes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"number"===typeof e||"bigint"===typeof e?f(e,t):"boolean"===typeof e?u(e,t):(0,o.isHex)(e)?l(e,t):d(e,t)},t.boolToBytes=u,t.hexToBytes=l,t.numberToBytes=f,t.stringToBytes=d}
1,79239:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.stringToHex=t.numberToHex=t.bytesToHex=t.boolToHex=t.toHex=void 0;const r=n(19750),o=n(31005),i=n(43149),s=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=`0x${Number(e)}`;return"number"===typeof t.size?((0,i.assertSize)(n,{size:t.size}),(0,o.pad)(n,{size:t.size})):n}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="";for(let o=0;o<e.length;o++)n+=s[e[o]];const r=`0x${n}`;return"number"===typeof t.size?((0,i.assertSize)(r,{size:t.size}),(0,o.pad)(r,{dir:"right",size:t.size})):r}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{signed:n,size:i}=t,s=BigInt(e);let c;i?c=n?(1n<<8n*BigInt(i)-1n)-1n:2n**(8n*BigInt(i))-1n:"number"===typeof e&&(c=BigInt(Number.MAX_SAFE_INTEGER));const a="bigint"===typeof c&&n?-c-1n:0;if(c&&s>c||s<a){const t="bigint"===typeof e?"n":"";throw new r.IntegerOutOfRangeError({max:c?`${c}${t}`:void 0,min:`${a}${t}`,signed:n,size:i,value:`${e}${t}`})}const u=`0x${(n&&s<0?(1n<<BigInt(8*i))+BigInt(s):s).toString(16)}`;return i?(0,o.pad)(u,{size:i}):u}t.toHex=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"number"===typeof e||"bigint"===typeof e?u(e,t):"string"===typeof e?f(e,t):"boolean"===typeof e?c(e,t):a(e,t)},t.boolToHex=c,t.bytesToHex=a,t.numberToHex=u;const l=new TextEncoder;function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(l.encode(e),t)}t.stringToHex=f},62070:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.bytesToRlp=t.toRlp=void 0;const r=n(74865),o=n(22867),i=n(79239);function s(e){return Array.isArray(e)?e.map(s):"string"===typeof e?(0,o.toBytes)(e):e}function c(e){if(Array.isArray(e)){const t=(0,r.concat)(e.map(c));return new Uint8Array([...a(t.length,192),...t])}return 1===e.length&&e[0]<128?e:new Uint8Array([...a(e.length,128),...e])}function a(e,t){return e<56?[t+e]:[(0,o.toBytes)(e).length+t+55,...(0,o.toBytes)(e)]}t.toRlp=function(e,t){const n=t||"hex";return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bytes";return"hex"===t?(0,i.bytesToHex)(e):e}(c(s(e)),n)},t.bytesToRlp=c}}]);

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.