1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4295],{27043:function(e,t,n){n.d(t,{mainnet:function(){return B},sepolia:function(){return v}});var r=n(24311);function defineChain(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}let s={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844"};function formatTransaction(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,r.h)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,r.h)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?s[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}let a=(0,r.d)("transaction",formatTransaction),i=(0,r.d)("block",function(e){let t=e.transactions?.map(e=>"string"==typeof e?e:formatTransaction(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}});function formatLog(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}let o={"0x0":"reverted","0x1":"success"},l=(0,r.d)("transactionReceipt",function(e){let t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>formatLog(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,r.h)(e.transactionIndex):null,status:e.status?o[e.status]:null,type:e.type?s[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}),c={block:i({format(e){let t=e.transactions?.map(e=>{if("string"==typeof e)return e;let t=formatTransaction(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?r.a(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t});return{transactions:t,stateRoot:e.stateRoot}}}),transaction:a({format(e){let t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,r.a)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:l({format:e=>({l1GasPrice:e.l1GasPrice?(0,r.a)(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?(0,r.a)(e.l1GasUsed):null,l1Fee:e.l1Fee?(0,r.a)(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})};function toRlp(e,t="hex"){let n=function getEncodable(e){return Array.isArray(e)?function(e){let t=e.reduce((e,t)=>
1e+t.length,0),n=getSizeOfLength(t),r=t<=55?1+t:1+n+t;return{length:r,encode(r){for(let{encode:s}of(t<=55?r.pushByte(192+t):(r.pushByte(247+n),1===n?r.pushUint8(t):2===n?r.pushUint16(t):3===n?r.pushUint24(t):r.pushUint32(t)),e))s(r)}}}(e.map(e=>getEncodable(e))):function(e){let t="string"==typeof e?(0,r.e)(e):e,n=getSizeOfLength(t.length),s=1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length;return{length:s,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+n),1===n?e.pushUint8(t.length):2===n?e.pushUint16(t.length):3===n?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(e)}(e),s=(0,r.c)(new Uint8Array(n.length));return(n.encode(s),"hex"===t)?(0,r.b)(s.bytes):s.bytes}function getSizeOfLength(e){if(e<256)return 1;if(e<65536)return 2;if(e<16777216)return 3;if(e<4294967296)return 4;throw new r.B("Length is too large.")}function blobsToCommitments(e){let{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),s="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,r.e)(e)):e.blobs,a=[];for(let e of s)a.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===n?a:a.map(e=>(0,r.b)(e))}function blobsToProofs(e){let{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),s="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,r.e)(e)):e.blobs,a="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,r.e)(e)):e.commitments,i=[];for(let e=0;e<s.length;e++){let n=s[e],r=a[e];i.push(Uint8Array.from(t.computeBlobKzgProof(n,r)))}return"bytes"===n?i:i.map(e=>(0,r.b)(e))}let SHA2=class SHA2 extends r.H{constructor(e,t,n,s){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,r.f)(this.buffer)}update(e){(0,r.g)(this);let{view:t,buffer:n,blockLen:s}=this;e=(0,r.t)(e);let a=e.length;for(let i=0;i<a;){let o=Math.min(s-this.pos,a-i);if(o===s){let t=(0,r.f)(e);for(;s<=a-i;i+=s)this.process(t,i);continue}n.set(e.subarray(i,i+o),this.pos),this.pos+=o,i+=o,this.pos===s&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.g)(this),(0,r.o)(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:s,isLE:a}=this,{pos:i}=this;t[i++]=128,this.buffer.subarray(i).fill(0),this.padOffset>s-i&&(this.process(n,0),i=0);for(let e=i;e<s;e++)t[e]=0;!function(e,t,n,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);let s=BigInt(32),a=BigInt(4294967295),i=Number(n>>s&a),o=Number(n&a),l=r?4:0,c=r?0:4;e.setUint32(t+l,i,r),e.setUint32(t+c,o,r)}(n,s-8,BigInt(8*this.length),a),this.process(n,0);let o=(0,r.f)(e),l=this.outputLen;if(l%4)throw Error("_sha2: outputLen should be aligned to 32bit");let c=l/4,u=this.get();if(c>u.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<c;e++)o.setUint32(4*e,u[e],a)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:s,destroyed:a,pos:i}=this;return e.length=r,e.pos=i,e.finished=s,e.destroyed=a,r%t&&e.buffer.set(n),e}};let Chi=(e,t,n)=>e&t^~e&n,Maj=(e,t,n)=>e&t^e&n^t&n,u=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),d=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),h=new Uint32Array(64);let SHA256=class SHA256 extends SHA2{constructor(){super(64,32,8,!1),this.A=0|d[0],this.B=0|d[1],this.C=0|d[2],this.D=0|d[3],this.E=0|d[4],this.F=0|d[5],this.G=0|d[6],this.H=0|d[7]}get(){let{A:e,B:t,C:n,D:r,E:s,F:a,G:i,H:o}=this;return[e,t,n,r,s,a,i,o]}set(e,t,n,r,s,a,i,o){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|s,this.F=0|a,this.G=0|i,this.H=0|o}process(e,t){for(let n=0;n<16;n++,t+=4)h[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=h[e-15],n=h[e-2],s=(0,r.r)(t,7)^(0,r.r)(t,18)^t>>>3,a=(0,r.r)(n,17)^(0,r.r)(n,19)^n>>>10;h[e]=a+h[e-7]+s+h[e-16]|0}let{A:n,B:s,C:a,D:i,E:o,F:l,G:c,H:d}=this;for(let e=0;e<64;e++){let t=(0,r.r)(o,6)^(0,r.r)(o,11)^(0,r.r)(o,25),p=d+t+Chi(o,l,c)+u[e]+h[e]|0,m=(0,r.r)(n,2)^(0,r.r)(n,13)^(0,r.r)(n,22),b=m+Maj(n,s,a)|0;d=c,c=l,l=o,o=i+p|0,i=a,a=s,s=n,n=p+b|0}n=n+this.A|0,s=s+this.B|0,a=a+this.C|0,i=i+this.D|0,o=o+this.E|0,l=l+this.F|0,c=c+this.G|0,d=d+this.H|0,this.set(n,s,a,i,o,l,c,d)}roundClean(){h.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};let p=(0,r.w)(()=>new SHA256);function sha256(e,t){let n=p((0,r.i)(e,{strict:!1})?(0,r.j)(e):e);return"bytes"===(t||"hex")?n:(0,r.k)(n)}let BlobSizeTooLargeError=class BlobSizeTooLargeError extends r.B{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlobSizeTooLargeError"})}};let EmptyBlobError=class EmptyBlobError extends r.B{constructor(){super("Blob data must not be empty."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EmptyBlobError"})}};let InvalidVersionedHashSizeError=class InvalidVersionedHashSizeError extends r.B{constructor({hash:e,size:t}){super(`Versioned hash "${e}
1" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidVersionedHashSizeError"})}};let InvalidVersionedHashVersionError=class InvalidVersionedHashVersionError extends r.B{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:["Expected: 1",`Received: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidVersionedHashVersionError"})}};function assertTransactionEIP1559(e){let{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:s,to:a}=e;if(t<=0)throw new r.I({chainId:t});if(a&&!(0,r.m)(a))throw new r.n({address:a});if(s&&s>2n**256n-1n)throw new r.F({maxFeePerGas:s});if(n&&s&&n>s)throw new r.T({maxFeePerGas:s,maxPriorityFeePerGas:n})}function serializeAccessList(e){if(!e||0===e.length)return[];let t=[];for(let n=0;n<e.length;n++){let{address:s,storageKeys:a}=e[n];for(let e=0;e<a.length;e++)if(a[e].length-2!=64)throw new r.q({storageKey:a[e]});if(!(0,r.m)(s,{strict:!1}))throw new r.n({address:s});t.push([s,a])}return t}function serializeTransaction$3(e,t){let n=function(e){if(e.type)return e.type;if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new r.p({transaction:e})}(e);return"eip1559"===n?function(e,t){let{chainId:n,gas:s,nonce:a,to:i,value:o,maxFeePerGas:l,maxPriorityFeePerGas:c,accessList:u,data:d}=e;assertTransactionEIP1559(e);let h=serializeAccessList(u),p=[(0,r.k)(n),a?(0,r.k)(a):"0x",c?(0,r.k)(c):"0x",l?(0,r.k)(l):"0x",s?(0,r.k)(s):"0x",i??"0x",o?(0,r.k)(o):"0x",d??"0x",h,...toYParitySignatureArray(e,t)];return(0,r.u)(["0x02",toRlp(p)])}(e,t):"eip2930"===n?function(e,t){let{chainId:n,gas:s,data:a,nonce:i,to:o,value:l,accessList:c,gasPrice:u}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:s,maxFeePerGas:a,to:i}=e;if(t<=0)throw new r.I({chainId:t});if(i&&!(0,r.m)(i))throw new r.n({address:i});if(n||a)throw new r.B("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(s&&s>2n**256n-1n)throw new r.F({maxFeePerGas:s})}(e);let d=serializeAccessList(c),h=[(0,r.k)(n),i?(0,r.k)(i):"0x",u?(0,r.k)(u):"0x",s?(0,r.k)(s):"0x",o??"0x",l?(0,r.k)(l):"0x",a??"0x",d,...toYParitySignatureArray(e,t)];return(0,r.u)(["0x01",toRlp(h)])}(e,t):"eip4844"===n?function(e,t){let{chainId:n,gas:s,nonce:a,to:i,value:o,maxFeePerBlobGas:l,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:d,data:h}=e;!function(e){let{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new EmptyBlobError;for(let e of t){let t=(0,r.s)(e),n=(0,r.h)((0,r.l)(e,0,1));if(32!==t)throw new InvalidVersionedHashSizeError({hash:e,size:t});if(1!==n)throw new InvalidVersionedHashVersionError({hash:e,version:n})}}assertTransactionEIP1559(e)}(e);let p=e.blobVersionedHashes,m=e.sidecars;if(e.blobs&&(void 0===p||void 0===m)){let t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>(0,r.b)(e)),n=e.kzg,s=blobsToCommitments({blobs:t,kzg:n});if(void 0===p&&(p=function(e){let{commitments:t,version:n}=e,s=e.to??("string"==typeof t[0]?"hex":"bytes"),a=[];for(let e of t)a.push(function(e){let{commitment:t,version:n=1}=e,s=e.to??("string"==typeof t?"hex":"bytes"),a=sha256(t,"bytes");return a.set([n],0),"bytes"===s?a:(0,r.b)(a)}({commitment:e,to:s,version:n}));return a}({commitments:s})),void 0===m){let e=blobsToProofs({blobs:t,commitments:s,kzg:n});m=function(e){let{data:t,kzg:n,to:s}=e,a=e.blobs??function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),n="string"==typeof e.data?(0,r.e)(e.data):e.data,s=(0,r.s)(n);if(!s)throw new EmptyBlobError;if(s>761855)throw new BlobSizeTooLargeError({maxSize:761855,size:s});let a=[],i=!0,o=0;for(;i;){let e=(0,r.c)(new Uint8Array(131072)),t=0;for(;t<4096;){let r=n.slice(o,o+31);if(e.pushByte(0),e.pushBytes(r),r.length<31){e.pushByte(128),i=!1;break}t++,o+=31}a.push(e)}return"bytes"===t?a.map(e=>e.bytes):a.map(e=>(0,r.b)(e.bytes))}({data:t,to:s}),i=e.commitments??blobsToCommitments({blobs:a,kzg:n,to:s}),o=e.proofs??blobsToProofs({blobs:a,commitments:i,kzg:n,to:s}),l=[];for(let e=0;e<a.length;e++)l.push({blob:a[e],commitment:i[e],proof:o[e]});return l}({blobs:t,commitments:s,proofs:e})}}let b=serializeAccessList(d),f=[(0,r.k)(n),a?(0,r.k)(a):"0x",u?(0,r.k)(u):"0x",c?(0,r.k)(c):"0x",s?(0,r.k)(s):"0x",i??"0x",o?(0,r.k)(o):"0x",h??"0x",b,l?(0,r.k)(l):"0x",p??[],...toYParitySignatureArray(e,t)],y=[],g=[],x=[];if(m)for(let e=0;e<m.length;e++){let{blob:t,commitment:n,proof:r}=m[e];y.push(t),g.push(n),x.push(r)}return(0,r.u)(["0x03",m?toRlp([f,y,g,x]):toRlp(f)])}(e,t):function(e,t){let{chainId:n=0,gas:s,data:a,nonce:i,to:o,value:l,gasPrice:c}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:n,gasPrice:s,maxFeePerGas:a,to:i,accessList:o}=e;if(i&&!(0,r.m)(i))throw new r.n({address:i});if(void 0!==t&&t<=0)throw new r.I({chainId:t});if(n||a)throw new r.B("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(s&&s>2n**256n-1n)throw new r.F({maxFeePerGas:s});if(o)throw new r.B("`accessList` is not a valid Legacy Transaction attribute.")}(e);let u=[i?(0,r.k)(i):"0x",c?(0,r.k)(c):"0x",s?(0,r.k)(s):"0x",o??"0x",l?(0,r.k)(l):"0x",a??"0x"];if(t){let e=(()=>
1{if(t.v>=35n){let e=(t.v-35n)/2n;return e>0?t.v:27n+(35n===t.v?0n:1n)}if(n>0)return BigInt(2*n)+BigInt(35n+t.v-27n);let e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new r.v({v:t.v});return e})();u=[...u,(0,r.k)(e),t.r,t.s]}else n>0&&(u=[...u,(0,r.k)(n),"0x","0x"]);return toRlp(u)}(e,t)}function toYParitySignatureArray(e,t){let{r:n,s,v:a,yParity:i}=t??e;if(void 0===n||void 0===s||void 0===a&&void 0===i)return[];let o="number"==typeof i?i?(0,r.k)(1):"0x":0n===a?"0x":1n===a?(0,r.k)(1):27n===a?"0x":(0,r.k)(1);return[o,(0,r.x)(n),(0,r.x)(s)]}let m={contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:c,serializers:{transaction:function(e,t){return"deposit"===e.type||void 0!==e.sourceHash?function(e){!function(e){let{from:t,to:n}=e;if(t&&!(0,r.m)(t))throw new r.n({address:t});if(n&&!(0,r.m)(n))throw new r.n({address:n})}(e);let{sourceHash:t,data:n,from:s,gas:a,isSystemTx:i,mint:o,to:l,value:c}=e,u=[t,s,l??"0x",o?(0,r.k)(o):"0x",c?(0,r.k)(c):"0x",a?(0,r.k)(a):"0x",i?"0x1":"0x",n??"0x"];return(0,r.u)(["0x7e",toRlp(u)])}(e):serializeTransaction$3(e,t)}}};async function estimateFeePerGasInFeeCurrency(e,t){let n=await e.request({method:"eth_gasPrice",params:[t]});return BigInt(n)}async function estimateMaxPriorityFeePerGasInFeeCurrency(e,t){let n=await e.request({method:"eth_maxPriorityFeePerGas",params:[t]});return BigInt(n)}function isEmpty(e){return 0===e||0n===e||null==e||"0"===e||""===e||"string"==typeof e&&("0x"===(0,r.x)(e).toLowerCase()||"0x00"===(0,r.x)(e).toLowerCase())}function isCIP64(e){return"cip64"===e.type||void 0!==e.maxFeePerGas&&void 0!==e.maxPriorityFeePerGas&&!isEmpty(e.feeCurrency)}m.contracts,m.contracts,m.contracts,m.contracts,m.contracts,defineChain({id:60808,name:"BOB",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.gobob.xyz"],webSocket:["wss://rpc.gobob.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.gobob.xyz"}},contracts:{multicall3:{address:"0x63f8279bccDb75c0F38e0CD6B6A0c72a0a760FF9",blockCreated:457045}},testnet:!1});let b={block:i({exclude:["difficulty","gasLimit","mixHash","nonce","uncles"],format(e){let t=e.transactions?.map(e=>"string"==typeof e?e:{...formatTransaction(e),feeCurrency:e.feeCurrency,..."0x7b"!==e.type?{gatewayFee:e.gatewayFee?r.a(e.gatewayFee):null,gatewayFeeRecipient:e.gatewayFeeRecipient||null}:{}});return{randomness:e.randomness,transactions:t}}}),transaction:a({format(e){let t={feeCurrency:e.feeCurrency};return"0x7b"===e.type?t.type="cip64":("0x7c"===e.type&&(t.type="cip42"),t.gatewayFee=e.gatewayFee?(0,r.a)(e.gatewayFee):null,t.gatewayFeeRecipient=e.gatewayFeeRecipient),t}}),transactionRequest:(0,r.y)({format(e){let t={feeCurrency:e.feeCurrency};return isCIP64(e)&&(t.type="0x7b"),t}})},f=2n**256n-1n;defineChain({id:53457,name:"DODOchain Testnet",nativeCurrency:{decimals:18,name:"DODO",symbol:"DODO"},rpcUrls:{default:{http:["https://dodochain-testnet.alt.technology"],webSocket:["wss://dodochain-testnet.alt.technology/ws"]}},blockExplorers:{default:{name:"DODOchain Testnet (Sepolia) Explorer",url:"https://testnet-scan.dodochain.com"}},testnet:!0}),m.contracts,m.contracts,defineChain({...m,id:3397901,network:"funkiSepolia",name:"Funki Sepolia Sandbox",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://funki-testnet.alt.technology"]}},blockExplorers:{default:{name:"Funki Sepolia Sandbox Explorer",url:"https://sepolia-sandbox.funkichain.com/"}},testnet:!0,contracts:{...m.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204}},sourceId:11155111});let y=32n*(2n**16n-1n),g={block:i({format(e){let t=e.transactions?.map(e=>{if("string"==typeof e)return e;let t=g.transaction?.format(e);return"0x71"===t.typeHex?t.type="eip712":"0xff"===t.typeHex&&(t.type="priority"),t});return{l1BatchNumber:e.l1BatchNumber?(0,r.a)(e.l1BatchNumber):null,l1BatchTimestamp:e.l1BatchTimestamp?(0,r.a)(e.l1BatchTimestamp):null,transactions:t}}}),transaction:a({format(e){let t={};return"0x71"===e.type?t.type="eip712":"0xff"===e.type&&(t.type="priority"),{...t,l1B
1atchNumber:e.l1BatchNumber?(0,r.a)(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?(0,r.a)(e.l1BatchTxIndex):null}}}),transactionReceipt:l({format:e=>({l1BatchNumber:e.l1BatchNumber?(0,r.a)(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?(0,r.a)(e.l1BatchTxIndex):null,logs:e.logs.map(e=>({...formatLog(e),l1BatchNumber:e.l1BatchNumber?(0,r.a)(e.l1BatchNumber):null,transactionLogIndex:(0,r.h)(e.transactionLogIndex),logType:e.logType})),l2ToL1Logs:e.l2ToL1Logs.map(e=>({blockNumber:(0,r.a)(e.blockHash),blockHash:e.blockHash,l1BatchNumber:(0,r.a)(e.l1BatchNumber),transactionIndex:(0,r.a)(e.transactionIndex),shardId:(0,r.a)(e.shardId),isService:e.isService,sender:e.sender,key:e.key,value:e.value,transactionHash:e.transactionHash,logIndex:(0,r.a)(e.logIndex)}))})}),transactionRequest:(0,r.y)({exclude:["customSignature","factoryDeps","gasPerPubdata","paymaster","paymasterInput"],format:e=>e.gasPerPubdata||e.paymaster&&e.paymasterInput||e.factoryDeps||e.customSignature?{eip712Meta:{...e.gasPerPubdata?{gasPerPubdata:(0,r.k)(e.gasPerPubdata)}:{gasPerPubdata:(0,r.k)(50000n)},...e.paymaster&&e.paymasterInput?{paymasterParams:{paymaster:e.paymaster,paymasterInput:Array.from((0,r.e)(e.paymasterInput))}}:{},...e.factoryDeps?{factoryDeps:e.factoryDeps.map(e=>Array.from((0,r.e)(e)))}:{},...e.customSignature?{customSignature:Array.from((0,r.e)(e.customSignature))}:{}},type:"0x71"}:{}})};let InvalidEip712TransactionError=class InvalidEip712TransactionError extends r.B{constructor(){super('Transaction is not an EIP712 transaction.\n\nTransaction must:\n - include `type: "eip712"`\n - include one of the following: `customSignature`, `paymaster`, `paymasterInput`, `gasPerPubdata`, `factoryDeps`'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidEip712TransactionError"})}};function isEIP712Transaction(e){return"eip712"===e.type||"customSignature"in e&&!!e.customSignature||"paymaster"in e&&!!e.paymaster||"paymasterInput"in e&&!!e.paymasterInput||"gasPerPubdata"in e&&"bigint"==typeof e.gasPerPubdata||"factoryDeps"in e&&!!e.factoryDeps}function assertEip712Transaction(e){let{chainId:t,to:n,from:s,paymaster:a,paymasterInput:i}=e;if(!isEIP712Transaction(e))throw new InvalidEip712TransactionError;if(!t||t<=0)throw new r.I({chainId:t});if(n&&!(0,r.m)(n))throw new r.n({address:n});if(s&&!(0,r.m)(s))throw new r.n({address:s});if(a&&!(0,r.m)(a))throw new r.n({address:a});if(a&&!i)throw new r.B("`paymasterInput` must be provided when `paymaster` is defined");if(!a&&i)throw new r.B("`paymaster` must be provided when `paymasterInput` is defined")}let BytecodeLengthExceedsMaxSizeError=class BytecodeLengthExceedsMaxSizeError extends r.B{constructor({givenLength:e,maxBytecodeSize:t}){super(`Bytecode cannot be longer than ${t} bytes. Given length: ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytecodeLengthExceedsMaxSizeError"})}};let BytecodeLengthInWordsMustBeOddError=class BytecodeLengthInWordsMustBeOddError extends r.B{constructor({givenLengthInWords:e}){super(`Bytecode length in 32-byte words must be odd. Given length in words: ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytecodeLengthInWordsMustBeOddError"})}};let BytecodeLengthMustBeDivisibleBy32Error=class BytecodeLengthMustBeDivisibleBy32Error extends r.B{constructor({givenLength:e}){super(`The bytecode length in bytes must be divisible by 32. Given length: ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytecodeLengthMustBeDivisibleBy32Error"})}};let x={formatters:g,serializers:{transaction:function(e,t){return isEIP712Transaction(e)?function(e){let{chainId:t,gas:n,nonce:s,to:a,from:i,value:o,maxFeePerGas:l,maxPriorityFeePerGas:c,customSignature:u,factoryDeps:d,paymaster:h,paymasterInput:p,gasPerPubdata:m,data:b}=e;assertEip712Transaction(e);let f=[s?(0,r.k)(s):"0x",c?(0,r.k)(c):"0x",l?(0,r.k)(l):"0x",n?(0,r.k)(n):"0x",a??"0x",o?(0,r.k)(o):"0x",b??"0x0",(0,r.k)(t),(0,r.k)(""),(0,r.k)(""),(0,r.k)(t),i??"0x",m?(0,r.k)(m):(0,r.k)(50000n),d??[],u??"0x",h&&p?[h,p]:[]];return(0,r.u)(["0x71",toRlp(f)])}(e):serializeTransaction$3(e,t)}},custom:{getEip712Domain:e=>{assertEip712Transaction(e);let t=function(e){let{gas:t,nonce:n,to:s,from:a,value:i,maxFeePerGas:o,maxPriorityFeePerGas:l,factoryDeps:c,paymaster:u,paymasterInput:d,gasPerPubdata:h,data:p}=e;
1return{txType:113n,from:BigInt(a),to:s?BigInt(s):0n,gasLimit:t??0n,gasPerPubdataByteLimit:h??50000n,maxFeePerGas:o??0n,maxPriorityFeePerGas:l??0n,paymaster:u?BigInt(u):0n,nonce:n?BigInt(n):0n,value:i??0n,data:p||"0x0",factoryDeps:c?.map(e=>r.k(function(e){let t=(0,r.j)(e);if(t.length%32!=0)throw new BytecodeLengthMustBeDivisibleBy32Error({givenLength:t.length});if(t.length>y)throw new BytecodeLengthExceedsMaxSizeError({givenLength:t.length,maxBytecodeSize:y});let n=sha256(t),s=(0,r.j)(n),a=t.length/32;if(a%2==0)throw new BytecodeLengthInWordsMustBeOddError({givenLengthInWords:a});let i=(0,r.j)(a),o=(0,r.z)(i,{size:2}),l=new Uint8Array([1,0]);return s.set(l,0),s.set(o,2),s}(e)))??[],paymasterInput:d||"0x"}}(e);return{domain:{name:"zkSync",version:"2",chainId:e.chainId},types:{Transaction:[{name:"txType",type:"uint256"},{name:"from",type:"uint256"},{name:"to",type:"uint256"},{name:"gasLimit",type:"uint256"},{name:"gasPerPubdataByteLimit",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymaster",type:"uint256"},{name:"nonce",type:"uint256"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"factoryDeps",type:"bytes32[]"},{name:"paymasterInput",type:"bytes"}]},primaryType:"Transaction",message:t}}}};({...m,contracts:{...m.contracts,l2OutputOracle:{11155111:{address:"0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{11155111:{address:"0xe3d90F21490686Ec7eF37BE788E02dfC12787264"}},l1StandardBridge:{11155111:{address:"0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5"}}}});let B=defineChain({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cloudflare-eth.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xce01f8eee7E479C928F8919abD53E553a36CeF67",blockCreated:19258213},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}});m.contracts,m.contracts,m.contracts,m.contracts,m.contracts,m.contracts;let v=defineChain({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0});m.contracts,m.contracts,m.contracts}}]);
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.