1"use strict";(self.webpackChunkdexguru=self.webpackChunkdexguru||[]).push([[1637],{28404:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=void 0;t.stringify=(e,t,r)=>JSON.stringify(e,((e,r)=>{const n="bigint"===typeof r?r.toString():r;return"function"===typeof t?t(e,n):n}),r)},85974:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertRequest=void 0;const n=r(12482),i=r(78865),s=r(50630),a=r(6460),o=r(77079);t.assertRequest=function(e){const{account:t,gasPrice:r,maxFeePerGas:c,maxPriorityFeePerGas:d,to:l}=e,x=t?(0,n.parseAccount)(t):void 0;if(x&&!(0,o.isAddress)(x.address))throw new i.InvalidAddressError({address:x.address});if(l&&!(0,o.isAddress)(l))throw new i.InvalidAddressError({address:l});if("undefined"!==typeof r&&("undefined"!==typeof c||"undefined"!==typeof d))throw new a.FeeConflictError;if(c&&c>2n**256n-1n)throw new s.FeeCapTooHighError({maxFeePerGas:c});if(d&&c&&d>c)throw new s.TipAboveFeeCapError({maxFeePerGas:c,maxPriorityFeePerGas:d})}},3350:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertTransactionLegacy=t.assertTransactionEIP2930=t.assertTransactionEIP1559=void 0;const n=r(78865),i=r(2798),s=r(47988),a=r(50630),o=r(77079);t.assertTransactionEIP1559=function(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:c,maxFeePerGas:d,to:l}=e;if(t<=0)throw new s.InvalidChainIdError({chainId:t});if(l&&!(0,o.isAddress)(l))throw new n.InvalidAddressError({address:l});if(c)throw new i.BaseError("`gasPrice` is not a valid EIP-1559 Transaction attribute.");if(d&&d>2n**256n-1n)throw new a.FeeCapTooHighError({maxFeePerGas:d});if(r&&d&&r>d)throw new a.TipAboveFeeCapError({maxFeePerGas:d,maxPriorityFeePerGas:r})},t.assertTransactionEIP2930=function(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:c,maxFeePerGas:d,to:l}=e;if(t<=0)throw new s.InvalidChainIdError({chainId:t});if(l&&!(0,o.isAddress)(l))throw new n.InvalidAddressError({address:l});if(r||d)throw new i.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(c&&c>2n**256n-1n)throw new a.FeeCapTooHighError({maxFeePerGas:c})},t.assertTransactionLegacy=function(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:c,maxFeePerGas:d,to:l,accessList:x}=e;if(l&&!(0,o.isAddress)(l))throw new n.InvalidAddressError({address:l});if("undefined"!==typeof t&&t<=0)throw new s.InvalidChainIdError({chainId:t});if(r||d)throw new i.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(c&&c>2n**256n-1n)throw new a.FeeCapTooHighError({maxFeePerGas:c});if(x)throw new i.BaseError("`accessList` is not a valid Legacy Transaction attribute.")}},51642:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSerializedTransactionType=void 0;const n=r(6460),i=r(90762),s=r(43149);t.getSerializedTransactionType=function(e){const t=(0,i.sliceHex)(e,0,1);if("0x02"===t)return"eip1559";if("0x01"===t)return"eip2930";if("0x"!==t&&(0,s.hexToNumber)(t)>=192)return"legacy";throw new n.InvalidSerializedTransactionTypeError({serializedType:t})}},42150:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionType=void 0;const n=r(6460);t.getTransactionType=function(e){if(e.type)return e.type;if("undefined"!==typeof e.maxFeePerGas||"undefined"!==typeof e.maxPriorityFeePerGas)return"eip1559";if("undefined"!==typeof e.gasPrice)return"undefined"!==typeof e.accessList?"eip2930":"legacy";throw new n.InvalidSerializableTransactionError({transaction:e})}},91560:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAccessList=t.toTransactionArray=t.parseTransaction=void 0;const n=r(78865),i=r(6460),s=r(77079),a=r(34055),o=r(31005),c=r(67523),d=r(43149),l=r(46592),x=r(14456),u=r(3350),f=r(51642);function h(e){return(0,l.fromRlp)(`0x${e.slice(4)}`,"hex")}function g(e){const t=[];for(let r=0;r<e.length;r++){const[i,a]=e[r];if(!(0,s.isAddress)(i))throw new n.InvalidAddressError({address:i});t.push({address:i,storageKeys:a.map((e=>(0,x.isHash)(e)?e:(0,c.trim)(e)))})}return t}function p(e){const t=e.slice(-3),r="0x"===t[0]||0n===(0,d.hexToBigInt)(t[0])?27n:28n;return{r:(0,o.padHex)(t[1],{size:32}),s:(0,o.padHex)(t[2],{size:32}),v:r,yParity:27n===r?0:1}}t.parseTransaction=function(e){const t=(0,f.getSerializedTransactionType)(e);return"eip1559"===t?function(e){const t=h(e),[r,n,s,o,c,l,x,f,v,y,P,w]=t;if(9!==t.length&&12!==t.length)throw new i.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,maxPriorityFeePerGas:s,maxFeePerGas:o,gas:c,to:l,value:x,data:f,accessList:v,...t.length>9?{v:y,r:P,s:w}:{}},serializedTransaction:e,type:"eip1559"});const T={chainId:(0,d.hexToNumber)(r),type:"eip1559"};(0,a.isHex)(l)&&"0x"!==l&&(T.to=l);(0,a.isHex)(c)&&"0x"!==c&&(T.gas=(0,d.hexToBigInt)(c));(0,a.isHex)(f)&&"0x"!==f&&(T.data=f);(0,a.isHex)(n)&&"0x"!==n&&(T.nonce=(0,d.hexToNumber)(n));(0,a.isHex)(x)&&"0x"!==x&&(T.value=(0,d.hexToBigInt)(x));(0,a.isHex)(o)&&"0x"!==o&&(T.maxFeePerGas=(0,d.hexToBigInt)(o));(0,a.isHex)(s)&&"0x"!==s&&(T.maxPriorityFeePerGas=(0,d.hexToBigInt)(s));0!==v.length&&"0x"!==v&&(T.accessList=g(v));(0,u.assertTransactionEIP1559)(T);return{...12===t.length?p(t):void 0,...T}}(e):"eip2930"===t?function(e){const t=h(e),[r,n,s,o,c,l,x,f,v,y,P]=t;if(8!==t.length&&11!==t.length)throw new i.InvalidSerializedTransactionError({attributes:{chainId:r,nonce:n,gasPrice:s,gas:o,to:c,value:l,data:x,accessList:f,...t.length>8?{v:v,r:y,s:P}:{}},serializedTransaction:e,type:"eip2930"});const w={chainId:(0,d.hexToNumber)(r),type:"eip2930"};(0,a.isHex)(c)&&"0x"!==c&&(w.to=c);(0,a.isHex)(o)&&"0x"!==o&&(w.gas=(0,d.hexToBigInt)(o));(0,a.isHex)(x)&&"0x"!==x&&(w.data=x);(0,a.isHex)(n)&&"0x"!==n&&(w.nonce=(0,d.hexToNumber)(n));(0,a.isHex)(l)&&"0x"!==l&&(w.value=(0,d.hexToBigInt)(l));(0,a.isHex)(s)&&"0x"!==s&&(w.gasPrice=(0,d.hexToBigInt)(s));0!==f.length&&"0x"!==f&&(w.accessList=g(f));(0,u.assertTransactionEIP2930)(w);return{...11===t.length?p(t):void 0,...w}}(e):function(e){const t=(0,l.fromRlp)(e,"hex"),[r,n,s,o,c,x,f,h,g]=t;if(6!==t.length&&9!==t.length)throw new i.InvalidSerializedTransactionError({attributes:{nonce:r,gasPrice:n,gas:s,to:o,value:c,data:x,...t.length>6?{v:f,r:h,s:g}:{}},serializedTransaction:e,type:"legacy"});const p={type:"legacy"};(0,a.isHex)(o)&&"0x"!==o&&(p.to=o);(0,a.isHex)(s)&&"0x"!==s&&(p.gas=(0,d.hexToBigInt)(s));(0,a.isHex)(x)&&"0x"!==x&&(p.data=x);(0,a.isHex)(r)&&"0x"!==r&&(p.nonce=(0,d.hexToNumber)(r));(0,a.isHex)(c)&&"0x"!==c&&(p.value=(0,d.hexToBigInt)(c));(0,a.isHex)(n)&&"0x"!==n&&(p.gasPrice=(0,d.hexToBigInt)(n));if((0,u.assertTransactionLegacy)(p),6===t.length)return p;const v=(0,a.isHex)(f)&&"0x"!==f?(0,d.hexToBigInt)(f):0n;
1if("0x"===g&&"0x"===h)return v>0&&(p.chainId=Number(v)),p;const y=v,P=Number((y-35n)/2n);if(P>0)p.chainId=P;else if(27n!==y&&28n!==y)throw new i.InvalidLegacyVError({v:y});return p.v=y,p.s=g,p.r=h,p}(e)},t.toTransactionArray=h,t.parseAccessList=g},81720:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeAccessList=void 0;const n=r(78865),i=r(6460),s=r(77079);t.serializeAccessList=function(e){if(!e||0===e.length)return[];const t=[];for(let r=0;r<e.length;r++){const{address:a,storageKeys:o}=e[r];for(let e=0;e<o.length;e++)if(o[e].length-2!==64)throw new i.InvalidStorageKeySizeError({storageKey:o[e]});if(!(0,s.isAddress)(a))throw new n.InvalidAddressError({address:a});t.push([a,o])}return t}},70230:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.serializeTransaction=void 0;const n=r(6460),i=r(74865),s=r(67523),a=r(79239),o=r(62070),c=r(3350),d=r(42150),l=r(81720);t.serializeTransaction=function(e,t){const r=(0,d.getTransactionType)(e);return"eip1559"===r?function(e,t){const{chainId:r,gas:n,nonce:d,to:x,value:u,maxFeePerGas:f,maxPriorityFeePerGas:h,accessList:g,data:p}=e;(0,c.assertTransactionEIP1559)(e);const v=(0,l.serializeAccessList)(g),y=[(0,a.toHex)(r),d?(0,a.toHex)(d):"0x",h?(0,a.toHex)(h):"0x",f?(0,a.toHex)(f):"0x",n?(0,a.toHex)(n):"0x",x??"0x",u?(0,a.toHex)(u):"0x",p??"0x",v];t&&y.push(27n===t.v?"0x":(0,a.toHex)(1),(0,s.trim)(t.r),(0,s.trim)(t.s));return(0,i.concatHex)(["0x02",(0,o.toRlp)(y)])}(e,t):"eip2930"===r?function(e,t){const{chainId:r,gas:n,data:s,nonce:d,to:x,value:u,accessList:f,gasPrice:h}=e;(0,c.assertTransactionEIP2930)(e);const g=(0,l.serializeAccessList)(f),p=[(0,a.toHex)(r),d?(0,a.toHex)(d):"0x",h?(0,a.toHex)(h):"0x",n?(0,a.toHex)(n):"0x",x??"0x",u?(0,a.toHex)(u):"0x",s??"0x",g];t&&p.push(27n===t.v?"0x":(0,a.toHex)(1),t.r,t.s);return(0,i.concatHex)(["0x01",(0,o.toRlp)(p)])}(e,t):function(e,t){const{chainId:r=0,gas:i,data:s,nonce:d,to:l,value:x,gasPrice:u}=e;(0,c.assertTransactionLegacy)(e);let f=[d?(0,a.toHex)(d):"0x",u?(0,a.toHex)(u):"0x",i?(0,a.toHex)(i):"0x",l??"0x",x?(0,a.toHex)(x):"0x",s??"0x"];if(t){let e=27n+(27n===t.v?0n:1n);if(r>0)e=BigInt(2*r)+BigInt(35n+t.v-27n);else if(t.v!==e)throw new n.InvalidLegacyVError({v:t.v});f=[...f,(0,a.toHex)(e),t.r,t.s]}else r>0&&(f=[...f,(0,a.toHex)(r),"0x","0x"]);return(0,o.toRlp)(f)}(e,t)}},23901:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateTypedData=void 0;const n=r(88808),i=r(78865),s=r(77079),a=r(73723),o=r(79239),c=r(38598);t.validateTypedData=function(e){let{domain:t,message:r,primaryType:d,types:l}=e;const x=l,u=(e,t)=>{for(const r of e){const{name:e,type:d}=r,l=d,f=t[e],h=l.match(c.integerRegex);if(h&&("number"===typeof f||"bigint"===typeof f)){const[e,t,r]=h;(0,o.numberToHex)(f,{signed:"int"===t,size:parseInt(r)/8})}if("address"===l&&"string"===typeof f&&!(0,s.isAddress)(f))throw new i.InvalidAddressError({address:f});const g=l.match(c.bytesRegex);if(g){const[e,t]=g;if(t&&(0,a.size)(f)!==parseInt(t))throw new n.BytesSizeMismatchError({expectedSize:parseInt(t),givenSize:(0,a.size)(f)})}const p=x[l];p&&u(p,f)}};if(x.EIP712Domain&&t&&u(x.EIP712Domain,t),"EIP712Domain"!==d){const e=x[d];u(e,r)}}},51066:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.uid=void 0;let r,n=256;t.uid=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:11;if(!r||n+e>512){r="",n=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(n,n+++e)}},31546:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatEther=void 0;const n=r(91684),i=r(65733);t.formatEther=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wei";return(0,i.formatUnits)(e,n.etherUnits[t])}},5028:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatGwei=void 0;const n=r(91684),i=r(65733);t.formatGwei=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wei";return(0,i.formatUnits)(e,n.gweiUnits[t])}},65733:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatUnits=void 0,t.formatUnits=function(e,t){let r=e.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(t,"0");let[i,s]=[r.slice(0,r.length-t),r.slice(r.length-t)];return s=s.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${s?`.${s}`:""}`}},80122:(e,t,r)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=void 0;const n=r(91684),i=r(44177);t.parseEther=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wei";return(0,i.parseUnits)(e,n.etherUnits[t])}},80598:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseGwei=void 0;const n=r(91684),i=r(44177);t.parseGwei=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wei";return(0,i.parseUnits)(e,n.gweiUnits[t])}},44177:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseUnits=void 0,t.parseUnits=function(e,t){let[r,n="0"]=e.split(".");const i=r.startsWith("-");if(i&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${n}`))&&(r=`${BigInt(r)+1n}`),n="";else if(n.length>t){const[e,i,s]=[n.slice(0,t-1),n.slice(t-1,t),n.slice(t)],a=Math.round(Number(`${i}.${s}`));n=a>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${a}`,n.length>t&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,t)}else n=n.padEnd(t,"0");return BigInt(`${i?"-":""}${r}${n}`)}},63048:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wait=void 0,t.wait=async function(e){return new Promise((t=>setTimeout(t,e)))}}}]);
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.