@boostxyz/cli 7.0.0 → 7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ccip-BN7gY2C0.js +239 -0
- package/dist/ccip-Cg-IYyJw.cjs +1 -0
- package/dist/ccip-DbO2zGlz.cjs +1 -0
- package/dist/{ccip-D-TTnaIp.js → ccip-Dj5XDCKt.js} +52 -49
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +2 -2
- package/dist/commands/deploy.cjs +13 -14
- package/dist/commands/deploy.js +1699 -1570
- package/dist/commands/seed.cjs +1 -1
- package/dist/commands/seed.js +9 -9
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/seed-C_yVUARN.cjs +38 -0
- package/dist/{seed-Dq5rIA2E.js → seed-Qm19Cx2B.js} +5197 -4643
- package/dist/utils-BTtae95l.cjs +51 -0
- package/dist/{utils-ClgLOuAN.js → utils-godznAAS.js} +14927 -8068
- package/dist/utils.d.ts +4 -4
- package/dist/utils.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/ccip-BZMQ5y3q.js +0 -153
- package/dist/ccip-CovqiIHj.cjs +0 -1
- package/dist/ccip-h61XKzWe.cjs +0 -1
- package/dist/seed-CHyq3tBu.cjs +0 -35
- package/dist/utils-dz3mUqTs.cjs +0 -48
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";function Os(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function Va(e){return Os(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const hl="2.41.2";let vr={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${hl}`},Re=class Ka extends Error{constructor(t,r={}){var i;const n=(()=>{var c;return r.cause instanceof Ka?r.cause.details:(c=r.cause)!=null&&c.message?r.cause.message:r.details})(),s=r.cause instanceof Ka&&r.cause.docsPath||r.docsPath,a=(i=vr.getDocsUrl)==null?void 0:i.call(vr,{...r,docsPath:s}),o=[t||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...n?[`Details: ${n}`]:[],...vr.version?[`Version: ${vr.version}`]:[]].join(`
|
|
2
|
+
`);super(o,r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=n,this.docsPath=s,this.metaMessages=r.metaMessages,this.name=r.name??this.name,this.shortMessage=t,this.version=hl}walk(t){return bl(this,t)}};function bl(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?bl(e.cause,t):t?null:e}let yl=class extends Re{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}},R0=class extends Re{constructor({offset:t,position:r,size:n}){super(`Slice ${r==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}},xl=class extends Re{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${r}).`,{name:"SizeExceedsPaddingSizeError"})}},D0=class extends Re{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${r} ${n} long, but is ${t} ${n} long.`,{name:"InvalidBytesLengthError"})}};function cr(e,{dir:t,size:r=32}={}){return typeof e=="string"?gl(e,{dir:t,size:r}):_0(e,{dir:t,size:r})}function gl(e,{dir:t,size:r=32}={}){if(r===null)return e;const n=e.replace("0x","");if(n.length>r*2)throw new xl({size:Math.ceil(n.length/2),targetSize:r,type:"hex"});return`0x${n[t==="right"?"padEnd":"padStart"](r*2,"0")}`}function _0(e,{dir:t,size:r=32}={}){if(r===null)return e;if(e.length>r)throw new xl({size:e.length,targetSize:r,type:"bytes"});const n=new Uint8Array(r);for(let s=0;s<r;s++){const a=t==="right";n[a?s:r-s-1]=e[a?s:e.length-s-1]}return n}let wl=class extends Re{constructor({max:t,min:r,signed:n,size:s,value:a}){super(`Number "${a}" is not in safe ${s?`${s*8}-bit ${n?"signed":"unsigned"} `:""}integer range ${t?`(${r} to ${t})`:`(above ${r})`}`,{name:"IntegerOutOfRangeError"})}},L0=class extends Re{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed ${r} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}};function lr(e,{size:t}){if(Va(e)>t)throw new L0({givenSize:Va(e),maxSize:t})}function El(e,t={}){const{signed:r}=t;t.size&&lr(e,{size:t.size});const n=BigInt(e);if(!r)return n;const s=(e.length-2)/2,a=(1n<<BigInt(s)*8n-1n)-1n;return n<=a?n:n-BigInt(`0x${"f".padStart(s*2,"f")}`)-1n}function H0(e,t={}){return Number(El(e,t))}const j0=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function kl(e,t={}){return typeof e=="number"||typeof e=="bigint"?jr(e,t):typeof e=="string"?Cl(e,t):typeof e=="boolean"?vl(e,t):Ro(e,t)}function vl(e,t={}){const r=`0x${Number(e)}`;return typeof t.size=="number"?(lr(r,{size:t.size}),cr(r,{size:t.size})):r}function Ro(e,t={}){let r="";for(let s=0;s<e.length;s++)r+=j0[e[s]];const n=`0x${r}`;return typeof t.size=="number"?(lr(n,{size:t.size}),cr(n,{dir:"right",size:t.size})):n}function jr(e,t={}){const{signed:r,size:n}=t,s=BigInt(e);let a;n?r?a=(1n<<BigInt(n)*8n-1n)-1n:a=2n**(BigInt(n)*8n)-1n:typeof e=="number"&&(a=BigInt(Number.MAX_SAFE_INTEGER));const o=typeof a=="bigint"&&r?-a-1n:0;if(a&&s>a||s<o){const c=typeof e=="bigint"?"n":"";throw new wl({max:a?`${a}${c}`:void 0,min:`${o}${c}`,signed:r,size:n,value:`${e}${c}`})}const i=`0x${(r&&s<0?(1n<<BigInt(n*8))+BigInt(s):s).toString(16)}`;return n?cr(i,{size:n}):i}const G0=new TextEncoder;function Cl(e,t={}){const r=G0.encode(e);return Ro(r,t)}const q0=new TextEncoder;function Tl(e,t={}){return typeof e=="number"||typeof e=="bigint"?K0(e,t):typeof e=="boolean"?V0(e,t):Os(e)?Do(e,t):Al(e,t)}function V0(e,t={}){const r=new Uint8Array(1);return r[0]=Number(e),typeof t.size=="number"?(lr(r,{size:t.size}),cr(r,{size:t.size})):r}const Ve={zero:48,nine:57,A:65,F:70,a:97,f:102};function Xi(e){if(e>=Ve.zero&&e<=Ve.nine)return e-Ve.zero;if(e>=Ve.A&&e<=Ve.F)return e-(Ve.A-10);if(e>=Ve.a&&e<=Ve.f)return e-(Ve.a-10)}function Do(e,t={}){let r=e;t.size&&(lr(r,{size:t.size}),r=cr(r,{dir:"right",size:t.size}));let n=r.slice(2);n.length%2&&(n=`0${n}`);const s=n.length/2,a=new Uint8Array(s);for(let o=0,i=0;o<s;o++){const c=Xi(n.charCodeAt(i++)),u=Xi(n.charCodeAt(i++));if(c===void 0||u===void 0)throw new Re(`Invalid byte sequence ("${n[i-2]}${n[i-1]}" in "${n}").`);a[o]=c*16+u}return a}function K0(e,t){const r=jr(e,t);return Do(r)}function Al(e,t={}){const r=q0.encode(e);return typeof t.size=="number"?(lr(r,{size:t.size}),cr(r,{dir:"right",size:t.size})):r}const zn=BigInt(2**32-1),Ji=BigInt(32);function W0(e,t=!1){return t?{h:Number(e&zn),l:Number(e>>Ji&zn)}:{h:Number(e>>Ji&zn)|0,l:Number(e&zn)|0}}function Sl(e,t=!1){const r=e.length;let n=new Uint32Array(r),s=new Uint32Array(r);for(let a=0;a<r;a++){const{h:o,l:i}=W0(e[a],t);[n[a],s[a]]=[o,i]}return[n,s]}const Yi=(e,t,r)=>e>>>r,Qi=(e,t,r)=>e<<32-r|t>>>r,Dt=(e,t,r)=>e>>>r|t<<32-r,_t=(e,t,r)=>e<<32-r|t>>>r,On=(e,t,r)=>e<<64-r|t>>>r-32,Nn=(e,t,r)=>e>>>r-32|t<<64-r,Z0=(e,t,r)=>e<<r|t>>>32-r,X0=(e,t,r)=>t<<r|e>>>32-r,J0=(e,t,r)=>t<<r-32|e>>>64-r,Y0=(e,t,r)=>e<<r-32|t>>>64-r;function Ke(e,t,r,n){const s=(t>>>0)+(n>>>0);return{h:e+r+(s/2**32|0)|0,l:s|0}}const Q0=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),ef=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,tf=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),rf=(e,t,r,n,s)=>t+r+n+s+(e/2**32|0)|0,nf=(e,t,r,n,s)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(s>>>0),sf=(e,t,r,n,s,a)=>t+r+n+s+a+(e/2**32|0)|0,Lt=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function af(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function pt(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function ce(e,...t){if(!af(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Bl(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");pt(e.outputLen),pt(e.blockLen)}function tr(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Ul(e,t){ce(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function of(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function $e(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Tt(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Le(e,t){return e<<32-t|e>>>t}function Rn(e,t){return e<<t|e>>>32-t>>>0}const cf=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function lf(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function uf(e){for(let t=0;t<e.length;t++)e[t]=lf(e[t]);return e}const ec=cf?e=>e:uf,Pl=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",df=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function pf(e){if(ce(e),Pl)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=df[e[r]];return t}const We={_0:48,_9:57,A:65,F:70,a:97,f:102};function tc(e){if(e>=We._0&&e<=We._9)return e-We._0;if(e>=We.A&&e<=We.F)return e-(We.A-10);if(e>=We.a&&e<=We.f)return e-(We.a-10)}function ff(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(Pl)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let s=0,a=0;s<r;s++,a+=2){const o=tc(e.charCodeAt(a)),i=tc(e.charCodeAt(a+1));if(o===void 0||i===void 0){const c=e[a]+e[a+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+a)}n[s]=o*16+i}return n}function _o(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Ns(e){return typeof e=="string"&&(e=_o(e)),ce(e),e}function rc(e){return typeof e=="string"&&(e=_o(e)),ce(e),e}function Rr(...e){let t=0;for(let n=0;n<e.length;n++){const s=e[n];ce(s),t+=s.length}const r=new Uint8Array(t);for(let n=0,s=0;n<e.length;n++){const a=e[n];r.set(a,s),s+=a.length}return r}function mf(e,t){if(t!==void 0&&{}.toString.call(t)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(e,t)}class Lo{}function Rs(e){const t=n=>e().update(Ns(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function hf(e=32){if(Lt&&typeof Lt.getRandomValues=="function")return Lt.getRandomValues(new Uint8Array(e));if(Lt&&typeof Lt.randomBytes=="function")return Uint8Array.from(Lt.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}const bf=BigInt(0),Cr=BigInt(1),yf=BigInt(2),xf=BigInt(7),gf=BigInt(256),wf=BigInt(113),Il=[],Fl=[],$l=[];for(let e=0,t=Cr,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],Il.push(2*(5*n+r)),Fl.push((e+1)*(e+2)/2%64);let s=bf;for(let a=0;a<7;a++)t=(t<<Cr^(t>>xf)*wf)%gf,t&yf&&(s^=Cr<<(Cr<<BigInt(a))-Cr);$l.push(s)}const Ml=Sl($l,!0),Ef=Ml[0],kf=Ml[1],nc=(e,t,r)=>r>32?J0(e,t,r):Z0(e,t,r),sc=(e,t,r)=>r>32?Y0(e,t,r):X0(e,t,r);function vf(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let o=0;o<10;o++)r[o]=e[o]^e[o+10]^e[o+20]^e[o+30]^e[o+40];for(let o=0;o<10;o+=2){const i=(o+8)%10,c=(o+2)%10,u=r[c],d=r[c+1],p=nc(u,d,1)^r[i],f=sc(u,d,1)^r[i+1];for(let m=0;m<50;m+=10)e[o+m]^=p,e[o+m+1]^=f}let s=e[2],a=e[3];for(let o=0;o<24;o++){const i=Fl[o],c=nc(s,a,i),u=sc(s,a,i),d=Il[o];s=e[d],a=e[d+1],e[d]=c,e[d+1]=u}for(let o=0;o<50;o+=10){for(let i=0;i<10;i++)r[i]=e[o+i];for(let i=0;i<10;i++)e[o+i]^=~r[(i+2)%10]&r[(i+4)%10]}e[0]^=Ef[n],e[1]^=kf[n]}$e(r)}class Ho extends Lo{constructor(t,r,n,s=!1,a=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=r,this.outputLen=n,this.enableXOF=s,this.rounds=a,pt(n),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=of(this.state)}clone(){return this._cloneInto()}keccak(){ec(this.state32),vf(this.state32,this.rounds),ec(this.state32),this.posOut=0,this.pos=0}update(t){tr(this),t=Ns(t),ce(t);const{blockLen:r,state:n}=this,s=t.length;for(let a=0;a<s;){const o=Math.min(r-this.pos,s-a);for(let i=0;i<o;i++)n[this.pos++]^=t[a++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:r,pos:n,blockLen:s}=this;t[n]^=r,r&128&&n===s-1&&this.keccak(),t[s-1]^=128,this.keccak()}writeInto(t){tr(this,!1),ce(t),this.finish();const r=this.state,{blockLen:n}=this;for(let s=0,a=t.length;s<a;){this.posOut>=n&&this.keccak();const o=Math.min(n-this.posOut,a-s);t.set(r.subarray(this.posOut,this.posOut+o),s),this.posOut+=o,s+=o}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return pt(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(Ul(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,$e(this.state)}_cloneInto(t){const{blockLen:r,suffix:n,outputLen:s,rounds:a,enableXOF:o}=this;return t||(t=new Ho(r,n,s,o,a)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=n,t.outputLen=s,t.enableXOF=o,t.destroyed=this.destroyed,t}}const Cf=(e,t,r)=>Rs(()=>new Ho(t,e,r)),Ds=Cf(1,136,256/8);function zl(e,t){const r=t||"hex",n=Ds(Os(e,{strict:!1})?Tl(e):e);return r==="bytes"?n:kl(n)}let jo=class extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const r=super.get(t);return super.has(t)&&r!==void 0&&(this.delete(t),super.set(t,r)),r}set(t,r){if(super.set(t,r),this.maxSize&&this.size>this.maxSize){const n=this.keys().next().value;n&&this.delete(n)}return this}};const Tf=/^0x[a-fA-F0-9]{40}$/,la=new jo(8192);function Ol(e,t){const{strict:r=!0}=t??{},n=`${e}.${r}`;if(la.has(n))return la.get(n);const s=Tf.test(e)?e.toLowerCase()===e?!0:r?Go(e)===e:!0:!1;return la.set(n,s),s}const ua=new jo(8192);function Go(e,t){if(ua.has(`${e}.${t}`))return ua.get(`${e}.${t}`);const r=e.substring(2).toLowerCase(),n=zl(Al(r),"bytes"),s=r.split("");for(let o=0;o<40;o+=2)n[o>>1]>>4>=8&&s[o]&&(s[o]=s[o].toUpperCase()),(n[o>>1]&15)>=8&&s[o+1]&&(s[o+1]=s[o+1].toUpperCase());const a=`0x${s.join("")}`;return ua.set(`${e}.${t}`,a),a}function Dr(e,t){if(!Ol(e,{strict:!1}))throw new yl({address:e});return Go(e,t)}const Af="1.1.0";let he=class Wa extends Error{constructor(t,r={}){var o;const n=r.cause instanceof Wa?r.cause.details:(o=r.cause)!=null&&o.message?r.cause.message:r.details,s=r.cause instanceof Wa&&r.cause.docsPath||r.docsPath,a=[t||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...s?[`Docs: https://abitype.dev${s}`]:[],...n?[`Details: ${n}`]:[],`Version: abitype@${Af}`].join(`
|
|
3
|
+
`);super(a),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),r.cause&&(this.cause=r.cause),this.details=n,this.docsPath=s,this.metaMessages=r.metaMessages,this.shortMessage=t}};function at(e,t){const r=e.exec(t);return r==null?void 0:r.groups}const Nl=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Rl=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,Dl=/^\(.+?\).*?$/,ac=/^tuple(?<array>(\[(\d*)\])*)$/;function Za(e){let t=e.type;if(ac.test(e.type)&&"components"in e){t="(";const r=e.components.length;for(let s=0;s<r;s++){const a=e.components[s];t+=Za(a),s<r-1&&(t+=", ")}const n=at(ac,e.type);return t+=`)${(n==null?void 0:n.array)??""}`,Za({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function Vt(e){let t="";const r=e.length;for(let n=0;n<r;n++){const s=e[n];t+=Za(s),n!==r-1&&(t+=", ")}return t}function Bs(e){var t;return e.type==="function"?`function ${e.name}(${Vt(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${(t=e.outputs)!=null&&t.length?` returns (${Vt(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${Vt(e.inputs)})`:e.type==="error"?`error ${e.name}(${Vt(e.inputs)})`:e.type==="constructor"?`constructor(${Vt(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}const _l=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function Sf(e){return _l.test(e)}function Bf(e){return at(_l,e)}const Ll=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function Uf(e){return Ll.test(e)}function Pf(e){return at(Ll,e)}const Hl=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function If(e){return Hl.test(e)}function Ff(e){return at(Hl,e)}const jl=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function _s(e){return jl.test(e)}function $f(e){return at(jl,e)}const Gl=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function Mf(e){return Gl.test(e)}function zf(e){return at(Gl,e)}const ql=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function Of(e){return ql.test(e)}function Nf(e){return at(ql,e)}const Rf=/^receive\(\) external payable$/;function Df(e){return Rf.test(e)}const oc=new Set(["memory","indexed","storage","calldata"]),_f=new Set(["indexed"]),Xa=new Set(["calldata","memory","storage"]);class Lf extends he{constructor({signature:t}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class Hf extends he{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class jf extends he{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class Gf extends he{constructor({params:t}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class qf extends he{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class Vf extends he{constructor({param:t,name:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${r}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class Kf extends he{constructor({param:t,type:r,modifier:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${n}" not allowed${r?` in "${r}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class Wf extends he{constructor({param:t,type:r,modifier:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${n}" not allowed${r?` in "${r}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class Zf extends he{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class ur extends he{constructor({signature:t,type:r}){super(`Invalid ${r} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class Xf extends he{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class Jf extends he{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class Yf extends he{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class Qf extends he{constructor({current:t,depth:r}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${r>0?"opening":"closing"} parentheses.`],details:`Depth "${r}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}function em(e,t,r){let n="";if(r)for(const s of Object.entries(r)){if(!s)continue;let a="";for(const o of s[1])a+=`[${o.type}${o.name?`:${o.name}`:""}]`;n+=`(${s[0]}{${a}})`}return t?`${t}:${e}${n}`:e}const da=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function Ja(e,t={}){if(If(e))return tm(e,t);if(Uf(e))return rm(e,t);if(Sf(e))return nm(e,t);if(Mf(e))return sm(e,t);if(Of(e))return am(e);if(Df(e))return{type:"receive",stateMutability:"payable"};throw new Xf({signature:e})}function tm(e,t={}){const r=Ff(e);if(!r)throw new ur({signature:e,type:"function"});const n=ge(r.parameters),s=[],a=n.length;for(let i=0;i<a;i++)s.push(nt(n[i],{modifiers:Xa,structs:t,type:"function"}));const o=[];if(r.returns){const i=ge(r.returns),c=i.length;for(let u=0;u<c;u++)o.push(nt(i[u],{modifiers:Xa,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:s,outputs:o}}function rm(e,t={}){const r=Pf(e);if(!r)throw new ur({signature:e,type:"event"});const n=ge(r.parameters),s=[],a=n.length;for(let o=0;o<a;o++)s.push(nt(n[o],{modifiers:_f,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:s}}function nm(e,t={}){const r=Bf(e);if(!r)throw new ur({signature:e,type:"error"});const n=ge(r.parameters),s=[],a=n.length;for(let o=0;o<a;o++)s.push(nt(n[o],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:s}}function sm(e,t={}){const r=zf(e);if(!r)throw new ur({signature:e,type:"constructor"});const n=ge(r.parameters),s=[],a=n.length;for(let o=0;o<a;o++)s.push(nt(n[o],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:s}}function am(e){const t=Nf(e);if(!t)throw new ur({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}const om=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,im=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,cm=/^u?int$/;function nt(e,t){var p,f;const r=em(e,t==null?void 0:t.type,t==null?void 0:t.structs);if(da.has(r))return da.get(r);const n=Dl.test(e),s=at(n?im:om,e);if(!s)throw new qf({param:e});if(s.name&&um(s.name))throw new Vf({param:e,name:s.name});const a=s.name?{name:s.name}:{},o=s.modifier==="indexed"?{indexed:!0}:{},i=(t==null?void 0:t.structs)??{};let c,u={};if(n){c="tuple";const m=ge(s.type),h=[],b=m.length;for(let y=0;y<b;y++)h.push(nt(m[y],{structs:i}));u={components:h}}else if(s.type in i)c="tuple",u={components:i[s.type]};else if(cm.test(s.type))c=`${s.type}256`;else if(s.type==="address payable")c="address";else if(c=s.type,(t==null?void 0:t.type)!=="struct"&&!Vl(c))throw new jf({type:c});if(s.modifier){if(!((f=(p=t==null?void 0:t.modifiers)==null?void 0:p.has)!=null&&f.call(p,s.modifier)))throw new Kf({param:e,type:t==null?void 0:t.type,modifier:s.modifier});if(Xa.has(s.modifier)&&!dm(c,!!s.array))throw new Wf({param:e,type:t==null?void 0:t.type,modifier:s.modifier})}const d={type:`${c}${s.array??""}`,...a,...o,...u};return da.set(r,d),d}function ge(e,t=[],r="",n=0){const s=e.trim().length;for(let a=0;a<s;a++){const o=e[a],i=e.slice(a+1);switch(o){case",":return n===0?ge(i,[...t,r.trim()]):ge(i,t,`${r}${o}`,n);case"(":return ge(i,t,`${r}${o}`,n+1);case")":return ge(i,t,`${r}${o}`,n-1);default:return ge(i,t,`${r}${o}`,n)}}if(r==="")return t;if(n!==0)throw new Qf({current:r,depth:n});return t.push(r.trim()),t}function Vl(e){return e==="address"||e==="bool"||e==="function"||e==="string"||Nl.test(e)||Rl.test(e)}const lm=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function um(e){return e==="address"||e==="bool"||e==="function"||e==="string"||e==="tuple"||Nl.test(e)||Rl.test(e)||lm.test(e)}function dm(e,t){return t||e==="bytes"||e==="string"||e==="tuple"}function qo(e){const t={},r=e.length;for(let o=0;o<r;o++){const i=e[o];if(!_s(i))continue;const c=$f(i);if(!c)throw new ur({signature:i,type:"struct"});const u=c.properties.split(";"),d=[],p=u.length;for(let f=0;f<p;f++){const h=u[f].trim();if(!h)continue;const b=nt(h,{type:"struct"});d.push(b)}if(!d.length)throw new Jf({signature:i});t[c.name]=d}const n={},s=Object.entries(t),a=s.length;for(let o=0;o<a;o++){const[i,c]=s[o];n[i]=Kl(c,t)}return n}const pm=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function Kl(e,t,r=new Set){const n=[],s=e.length;for(let a=0;a<s;a++){const o=e[a];if(Dl.test(o.type))n.push(o);else{const c=at(pm,o.type);if(!(c!=null&&c.type))throw new Zf({abiParameter:o});const{array:u,type:d}=c;if(d in t){if(r.has(d))throw new Yf({type:d});n.push({...o,type:`tuple${u??""}`,components:Kl(t[d]??[],t,new Set([...r,d]))})}else if(Vl(d))n.push(o);else throw new Hf({type:d})}}return n}function Wl(e){const t=qo(e),r=[],n=e.length;for(let s=0;s<n;s++){const a=e[s];_s(a)||r.push(Ja(a,t))}return r}function ic(e){let t;if(typeof e=="string")t=Ja(e);else{const r=qo(e),n=e.length;for(let s=0;s<n;s++){const a=e[s];if(!_s(a)){t=Ja(a,r);break}}}if(!t)throw new Lf({signature:e});return t}function cc(e){const t=[];if(typeof e=="string"){const r=ge(e),n=r.length;for(let s=0;s<n;s++)t.push(nt(r[s],{modifiers:oc}))}else{const r=qo(e),n=e.length;for(let s=0;s<n;s++){const a=e[s];if(_s(a))continue;const o=ge(a),i=o.length;for(let c=0;c<i;c++)t.push(nt(o[c],{modifiers:oc,structs:r}))}}if(t.length===0)throw new Gf({params:e});return t}function Zl(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}const Vo=(e,t,r)=>JSON.stringify(e,(n,s)=>typeof s=="bigint"?s.toString():s,r),Xl=e=>e;let fm=class extends Re{constructor({body:t,cause:r,details:n,headers:s,status:a,url:o}){super("HTTP request failed.",{cause:r,details:n,metaMessages:[a&&`Status: ${a}`,`URL: ${Xl(o)}`,t&&`Request body: ${Vo(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=s,this.status=a,this.url=o}},mm=class extends Re{constructor({body:t,error:r,url:n}){super("RPC Request failed.",{cause:r,details:r.message,metaMessages:[`URL: ${Xl(n)}`,`Request body: ${Vo(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=r.code,this.data=r.data,this.url=n}};const hm=-1;let be=class extends Re{constructor(t,{code:r,docsPath:n,metaMessages:s,name:a,shortMessage:o}){super(o,{cause:t,docsPath:n,metaMessages:s||(t==null?void 0:t.metaMessages),name:a||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a||t.name,this.code=t instanceof mm?t.code:r??hm}},ke=class extends be{constructor(t,r){super(t,r),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r.data}},Jl=class Yl extends be{constructor(t){super(t,{code:Yl.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}};Object.defineProperty(Jl,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});let Ql=class eu extends be{constructor(t){super(t,{code:eu.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}};Object.defineProperty(Ql,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});let tu=class ru extends be{constructor(t,{method:r}={}){super(t,{code:ru.code,name:"MethodNotFoundRpcError",shortMessage:`The method${r?` "${r}"`:""} does not exist / is not available.`})}};Object.defineProperty(tu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});let nu=class su extends be{constructor(t){super(t,{code:su.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
|
|
4
|
+
`)})}};Object.defineProperty(nu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});let au=class ou extends be{constructor(t){super(t,{code:ou.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}};Object.defineProperty(au,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});let iu=class cu extends be{constructor(t){super(t,{code:cu.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
|
|
5
|
+
`)})}};Object.defineProperty(iu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});let lu=class uu extends be{constructor(t){super(t,{code:uu.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}};Object.defineProperty(lu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});let Hr=class du extends be{constructor(t){super(t,{code:du.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}};Object.defineProperty(Hr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});let pu=class fu extends be{constructor(t){super(t,{code:fu.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}};Object.defineProperty(pu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});let mu=class hu extends be{constructor(t,{method:r}={}){super(t,{code:hu.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${r?` "${r}"`:""} is not supported.`})}};Object.defineProperty(mu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});let bu=class yu extends be{constructor(t){super(t,{code:yu.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}};Object.defineProperty(bu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});let xu=class gu extends be{constructor(t){super(t,{code:gu.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}};Object.defineProperty(xu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});let Ie=class wu extends ke{constructor(t){super(t,{code:wu.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}};Object.defineProperty(Ie,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});let Eu=class ku extends ke{constructor(t){super(t,{code:ku.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}};Object.defineProperty(Eu,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});let vu=class Cu extends ke{constructor(t,{method:r}={}){super(t,{code:Cu.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${r?` " ${r}"`:""}.`})}};Object.defineProperty(vu,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});let Tu=class Au extends ke{constructor(t){super(t,{code:Au.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}};Object.defineProperty(Tu,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});let Su=class Bu extends ke{constructor(t){super(t,{code:Bu.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}};Object.defineProperty(Su,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});let Us=class Uu extends ke{constructor(t){super(t,{code:Uu.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}};Object.defineProperty(Us,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});let Pu=class Iu extends ke{constructor(t){super(t,{code:Iu.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}};Object.defineProperty(Pu,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});let Fu=class $u extends ke{constructor(t){super(t,{code:$u.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}};Object.defineProperty(Fu,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});let Mu=class zu extends ke{constructor(t){super(t,{code:zu.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}};Object.defineProperty(Mu,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});let Ou=class Nu extends ke{constructor(t){super(t,{code:Nu.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}};Object.defineProperty(Ou,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});let Ru=class Du extends ke{constructor(t){super(t,{code:Du.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}};Object.defineProperty(Ru,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});let _u=class Lu extends ke{constructor(t){super(t,{code:Lu.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}};Object.defineProperty(_u,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});let Hu=class ju extends ke{constructor(t){super(t,{code:ju.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}};Object.defineProperty(Hu,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});let bm=class extends be{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}};/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ko=BigInt(0),Ya=BigInt(1);function xn(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Wo(e){if(!xn(e))throw new Error("Uint8Array expected")}function Gr(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function Dn(e){const t=e.toString(16);return t.length&1?"0"+t:t}function Gu(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?Ko:BigInt("0x"+e)}const qu=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",ym=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function qr(e){if(Wo(e),qu)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=ym[e[r]];return t}const Ze={_0:48,_9:57,A:65,F:70,a:97,f:102};function lc(e){if(e>=Ze._0&&e<=Ze._9)return e-Ze._0;if(e>=Ze.A&&e<=Ze.F)return e-(Ze.A-10);if(e>=Ze.a&&e<=Ze.f)return e-(Ze.a-10)}function Ps(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(qu)return Uint8Array.fromHex(e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let s=0,a=0;s<r;s++,a+=2){const o=lc(e.charCodeAt(a)),i=lc(e.charCodeAt(a+1));if(o===void 0||i===void 0){const c=e[a]+e[a+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+a)}n[s]=o*16+i}return n}function At(e){return Gu(qr(e))}function Vu(e){return Wo(e),Gu(qr(Uint8Array.from(e).reverse()))}function gn(e,t){return Ps(e.toString(16).padStart(t*2,"0"))}function Ku(e,t){return gn(e,t).reverse()}function Be(e,t,r){let n;if(typeof t=="string")try{n=Ps(t)}catch(a){throw new Error(e+" must be hex string or Uint8Array, cause: "+a)}else if(xn(t))n=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const s=n.length;if(typeof r=="number"&&s!==r)throw new Error(e+" of length "+r+" expected, got "+s);return n}function Is(...e){let t=0;for(let n=0;n<e.length;n++){const s=e[n];Wo(s),t+=s.length}const r=new Uint8Array(t);for(let n=0,s=0;n<e.length;n++){const a=e[n];r.set(a,s),s+=a.length}return r}const pa=e=>typeof e=="bigint"&&Ko<=e;function Zo(e,t,r){return pa(e)&&pa(t)&&pa(r)&&t<=e&&e<r}function Xt(e,t,r,n){if(!Zo(t,r,n))throw new Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}function xm(e){let t;for(t=0;e>Ko;e>>=Ya,t+=1);return t}const Ls=e=>(Ya<<BigInt(e))-Ya,fa=e=>new Uint8Array(e),uc=e=>Uint8Array.from(e);function gm(e,t,r){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let n=fa(e),s=fa(e),a=0;const o=()=>{n.fill(1),s.fill(0),a=0},i=(...p)=>r(s,n,...p),c=(p=fa(0))=>{s=i(uc([0]),p),n=i(),p.length!==0&&(s=i(uc([1]),p),n=i())},u=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let p=0;const f=[];for(;p<t;){n=i();const m=n.slice();f.push(m),p+=n.length}return Is(...f)};return(p,f)=>{o(),c(p);let m;for(;!(m=f(u()));)c();return o(),m}}const wm={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||xn(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function Hs(e,t,r={}){const n=(s,a,o)=>{const i=wm[a];if(typeof i!="function")throw new Error("invalid validator function");const c=e[s];if(!(o&&c===void 0)&&!i(c,e))throw new Error("param "+String(s)+" is invalid. Expected "+a+", got "+c)};for(const[s,a]of Object.entries(t))n(s,a,!1);for(const[s,a]of Object.entries(r))n(s,a,!0);return e}function dc(e){const t=new WeakMap;return(r,...n)=>{const s=t.get(r);if(s!==void 0)return s;const a=e(r,...n);return t.set(r,a),a}}const Em="0.1.1";function km(){return Em}let G=class Qa extends Error{constructor(t,r={}){const n=(()=>{var c;if(r.cause instanceof Qa){if(r.cause.details)return r.cause.details;if(r.cause.shortMessage)return r.cause.shortMessage}return r.cause&&"details"in r.cause&&typeof r.cause.details=="string"?r.cause.details:(c=r.cause)!=null&&c.message?r.cause.message:r.details})(),s=r.cause instanceof Qa&&r.cause.docsPath||r.docsPath,o=`https://oxlib.sh${s??""}`,i=[t||"An error occurred.",...r.metaMessages?["",...r.metaMessages]:[],...n||s?["",n?`Details: ${n}`:void 0,s?`See: ${o}`:void 0]:[]].filter(c=>typeof c=="string").join(`
|
|
6
|
+
`);super(i,r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${km()}`}),this.cause=r.cause,this.details=n,this.docs=o,this.docsPath=s,this.shortMessage=t}walk(t){return Wu(this,t)}};function Wu(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?Wu(e.cause,t):t?null:e}function wn(e,t){if(Kt(e)>t)throw new Dm({givenSize:Kt(e),maxSize:t})}const Xe={zero:48,nine:57,A:65,F:70,a:97,f:102};function pc(e){if(e>=Xe.zero&&e<=Xe.nine)return e-Xe.zero;if(e>=Xe.A&&e<=Xe.F)return e-(Xe.A-10);if(e>=Xe.a&&e<=Xe.f)return e-(Xe.a-10)}function vm(e,t={}){const{dir:r,size:n=32}=t;if(n===0)return e;if(e.length>n)throw new _m({size:e.length,targetSize:n,type:"Bytes"});const s=new Uint8Array(n);for(let a=0;a<n;a++){const o=r==="right";s[o?a:n-a-1]=e[o?a:e.length-a-1]}return s}function Zu(e,t={}){const{dir:r="left"}=t;let n=e,s=0;for(let a=0;a<n.length-1&&n[r==="left"?a:n.length-a-1].toString()==="0";a++)s++;return n=r==="left"?n.slice(s):n.slice(0,n.length-s),n}function js(e,t){if(we(e)>t)throw new Vm({givenSize:we(e),maxSize:t})}function Cm(e,t){if(typeof t=="number"&&t>0&&t>we(e)-1)throw new sd({offset:t,position:"start",size:we(e)})}function Tm(e,t,r){if(typeof t=="number"&&typeof r=="number"&&we(e)!==r-t)throw new sd({offset:r,position:"end",size:we(e)})}function Xu(e,t={}){const{dir:r,size:n=32}=t;if(n===0)return e;const s=e.replace("0x","");if(s.length>n*2)throw new Km({size:Math.ceil(s.length/2),targetSize:n,type:"Hex"});return`0x${s[r==="right"?"padEnd":"padStart"](n*2,"0")}`}const Am="#__bigint";function Ju(e,t,r){return JSON.stringify(e,(n,s)=>typeof s=="bigint"?s.toString()+Am:s,r)}const Sm=new TextDecoder,Bm=new TextEncoder;function Um(e){return e instanceof Uint8Array?e:typeof e=="string"?Yu(e):Pm(e)}function Pm(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function Yu(e,t={}){const{size:r}=t;let n=e;r&&(js(e,r),n=Pt(e,r));let s=n.slice(2);s.length%2&&(s=`0${s}`);const a=s.length/2,o=new Uint8Array(a);for(let i=0,c=0;i<a;i++){const u=pc(s.charCodeAt(c++)),d=pc(s.charCodeAt(c++));if(u===void 0||d===void 0)throw new G(`Invalid byte sequence ("${s[c-2]}${s[c-1]}" in "${s}").`);o[i]=u*16+d}return o}function Im(e,t={}){const{size:r}=t,n=Bm.encode(e);return typeof r=="number"?(wn(n,r),Fm(n,r)):n}function Fm(e,t){return vm(e,{dir:"right",size:t})}function Kt(e){return e.length}function $m(e,t,r,n={}){return e.slice(t,r)}function Mm(e,t={}){const{size:r}=t;typeof r<"u"&&wn(e,r);const n=ze(e,t);return td(n,t)}function zm(e,t={}){const{size:r}=t;let n=e;if(typeof r<"u"&&(wn(n,r),n=Qu(n)),n.length>1||n[0]>1)throw new Rm(n);return!!n[0]}function et(e,t={}){const{size:r}=t;typeof r<"u"&&wn(e,r);const n=ze(e,t);return rd(n,t)}function Om(e,t={}){const{size:r}=t;let n=e;return typeof r<"u"&&(wn(n,r),n=Nm(n)),Sm.decode(n)}function Qu(e){return Zu(e,{dir:"left"})}function Nm(e){return Zu(e,{dir:"right"})}let Rm=class extends G{constructor(t){super(`Bytes value \`${t}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}},Dm=class extends G{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed \`${r}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},_m=class extends G{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}};const Lm=new TextEncoder,Hm=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function jm(e,t={}){const{strict:r=!1}=t;if(!e)throw new fc(e);if(typeof e!="string")throw new fc(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e))throw new mc(e);if(!e.startsWith("0x"))throw new mc(e)}function Me(...e){return`0x${e.reduce((t,r)=>t+r.replace("0x",""),"")}`}function Gm(e){return e instanceof Uint8Array?ze(e):Array.isArray(e)?ze(new Uint8Array(e)):e}function ed(e,t={}){const r=`0x${Number(e)}`;return typeof t.size=="number"?(js(r,t.size),Ut(r,t.size)):r}function ze(e,t={}){let r="";for(let s=0;s<e.length;s++)r+=Hm[e[s]];const n=`0x${r}`;return typeof t.size=="number"?(js(n,t.size),Pt(n,t.size)):n}function ie(e,t={}){const{signed:r,size:n}=t,s=BigInt(e);let a;n?r?a=(1n<<BigInt(n)*8n-1n)-1n:a=2n**(BigInt(n)*8n)-1n:typeof e=="number"&&(a=BigInt(Number.MAX_SAFE_INTEGER));const o=typeof a=="bigint"&&r?-a-1n:0;if(a&&s>a||s<o){const u=typeof e=="bigint"?"n":"";throw new nd({max:a?`${a}${u}`:void 0,min:`${o}${u}`,signed:r,size:n,value:`${e}${u}`})}const c=`0x${(r&&s<0?(1n<<BigInt(n*8))+BigInt(s):s).toString(16)}`;return n?Ut(c,n):c}function Xo(e,t={}){return ze(Lm.encode(e),t)}function Ut(e,t){return Xu(e,{dir:"left",size:t})}function Pt(e,t){return Xu(e,{dir:"right",size:t})}function He(e,t,r,n={}){const{strict:s}=n;Cm(e,t);const a=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return s&&Tm(a,t,r),a}function we(e){return Math.ceil((e.length-2)/2)}function td(e,t={}){const{signed:r}=t;t.size&&js(e,t.size);const n=BigInt(e);if(!r)return n;const s=(e.length-2)/2,a=(1n<<BigInt(s)*8n)-1n,o=a>>1n;return n<=o?n:n-a-1n}function rd(e,t={}){const{signed:r,size:n}=t;return Number(!r&&!n?e:td(e,t))}function qm(e,t={}){const{strict:r=!1}=t;try{return jm(e,{strict:r}),!0}catch{return!1}}let nd=class extends G{constructor({max:t,min:r,signed:n,size:s,value:a}){super(`Number \`${a}\` is not in safe${s?` ${s*8}-bit`:""}${n?" signed":" unsigned"} integer range ${t?`(\`${r}\` to \`${t}\`)`:`(above \`${r}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}};class fc extends G{constructor(t){super(`Value \`${typeof t=="object"?Ju(t):t}\` of type \`${typeof t}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class mc extends G{constructor(t){super(`Value \`${t}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}let Vm=class extends G{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed \`${r}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}},sd=class extends G{constructor({offset:t,position:r,size:n}){super(`Slice ${r==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}},Km=class extends G{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}};function Wm(e){return{address:e.address,amount:ie(e.amount),index:ie(e.index),validatorIndex:ie(e.validatorIndex)}}function ad(e){return{...typeof e.baseFeePerGas=="bigint"&&{baseFeePerGas:ie(e.baseFeePerGas)},...typeof e.blobBaseFee=="bigint"&&{blobBaseFee:ie(e.blobBaseFee)},...typeof e.feeRecipient=="string"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit=="bigint"&&{gasLimit:ie(e.gasLimit)},...typeof e.number=="bigint"&&{number:ie(e.number)},...typeof e.prevRandao=="bigint"&&{prevRandao:ie(e.prevRandao)},...typeof e.time=="bigint"&&{time:ie(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(Wm)}}}function Zm(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const s=BigInt(32),a=BigInt(4294967295),o=Number(r>>s&a),i=Number(r&a),c=n?4:0,u=n?0:4;e.setUint32(t+c,o,n),e.setUint32(t+u,i,n)}function Xm(e,t,r){return e&t^~e&r}function Jm(e,t,r){return e&t^e&r^t&r}class Jo extends Lo{constructor(t,r,n,s){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=s,this.buffer=new Uint8Array(t),this.view=Tt(this.buffer)}update(t){tr(this),t=Ns(t),ce(t);const{view:r,buffer:n,blockLen:s}=this,a=t.length;for(let o=0;o<a;){const i=Math.min(s-this.pos,a-o);if(i===s){const c=Tt(t);for(;s<=a-o;o+=s)this.process(c,o);continue}n.set(t.subarray(o,o+i),this.pos),this.pos+=i,o+=i,this.pos===s&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){tr(this),Ul(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:s,isLE:a}=this;let{pos:o}=this;r[o++]=128,$e(this.buffer.subarray(o)),this.padOffset>s-o&&(this.process(n,0),o=0);for(let p=o;p<s;p++)r[p]=0;Zm(n,s-8,BigInt(this.length*8),a),this.process(n,0);const i=Tt(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=c/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let p=0;p<u;p++)i.setUint32(4*p,d[p],a)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:n,length:s,finished:a,destroyed:o,pos:i}=this;return t.destroyed=o,t.finished=a,t.length=s,t.pos=i,s%r&&t.buffer.set(n),t}clone(){return this._cloneInto()}}const ct=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),ne=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Ym=Uint32Array.from([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]),lt=new Uint32Array(64);class Qm extends Jo{constructor(t=32){super(64,t,8,!1),this.A=ct[0]|0,this.B=ct[1]|0,this.C=ct[2]|0,this.D=ct[3]|0,this.E=ct[4]|0,this.F=ct[5]|0,this.G=ct[6]|0,this.H=ct[7]|0}get(){const{A:t,B:r,C:n,D:s,E:a,F:o,G:i,H:c}=this;return[t,r,n,s,a,o,i,c]}set(t,r,n,s,a,o,i,c){this.A=t|0,this.B=r|0,this.C=n|0,this.D=s|0,this.E=a|0,this.F=o|0,this.G=i|0,this.H=c|0}process(t,r){for(let p=0;p<16;p++,r+=4)lt[p]=t.getUint32(r,!1);for(let p=16;p<64;p++){const f=lt[p-15],m=lt[p-2],h=Le(f,7)^Le(f,18)^f>>>3,b=Le(m,17)^Le(m,19)^m>>>10;lt[p]=b+lt[p-7]+h+lt[p-16]|0}let{A:n,B:s,C:a,D:o,E:i,F:c,G:u,H:d}=this;for(let p=0;p<64;p++){const f=Le(i,6)^Le(i,11)^Le(i,25),m=d+f+Xm(i,c,u)+Ym[p]+lt[p]|0,b=(Le(n,2)^Le(n,13)^Le(n,22))+Jm(n,s,a)|0;d=u,u=c,c=i,i=o+m|0,o=a,a=s,s=n,n=m+b|0}n=n+this.A|0,s=s+this.B|0,a=a+this.C|0,o=o+this.D|0,i=i+this.E|0,c=c+this.F|0,u=u+this.G|0,d=d+this.H|0,this.set(n,s,a,o,i,c,u,d)}roundClean(){$e(lt)}destroy(){this.set(0,0,0,0,0,0,0,0),$e(this.buffer)}}const od=Sl(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),e1=od[0],t1=od[1],ut=new Uint32Array(80),dt=new Uint32Array(80);class r1 extends Jo{constructor(t=64){super(128,t,16,!1),this.Ah=ne[0]|0,this.Al=ne[1]|0,this.Bh=ne[2]|0,this.Bl=ne[3]|0,this.Ch=ne[4]|0,this.Cl=ne[5]|0,this.Dh=ne[6]|0,this.Dl=ne[7]|0,this.Eh=ne[8]|0,this.El=ne[9]|0,this.Fh=ne[10]|0,this.Fl=ne[11]|0,this.Gh=ne[12]|0,this.Gl=ne[13]|0,this.Hh=ne[14]|0,this.Hl=ne[15]|0}get(){const{Ah:t,Al:r,Bh:n,Bl:s,Ch:a,Cl:o,Dh:i,Dl:c,Eh:u,El:d,Fh:p,Fl:f,Gh:m,Gl:h,Hh:b,Hl:y}=this;return[t,r,n,s,a,o,i,c,u,d,p,f,m,h,b,y]}set(t,r,n,s,a,o,i,c,u,d,p,f,m,h,b,y){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=s|0,this.Ch=a|0,this.Cl=o|0,this.Dh=i|0,this.Dl=c|0,this.Eh=u|0,this.El=d|0,this.Fh=p|0,this.Fl=f|0,this.Gh=m|0,this.Gl=h|0,this.Hh=b|0,this.Hl=y|0}process(t,r){for(let g=0;g<16;g++,r+=4)ut[g]=t.getUint32(r),dt[g]=t.getUint32(r+=4);for(let g=16;g<80;g++){const w=ut[g-15]|0,x=dt[g-15]|0,C=Dt(w,x,1)^Dt(w,x,8)^Yi(w,x,7),k=_t(w,x,1)^_t(w,x,8)^Qi(w,x,7),T=ut[g-2]|0,S=dt[g-2]|0,O=Dt(T,S,19)^On(T,S,61)^Yi(T,S,6),U=_t(T,S,19)^Nn(T,S,61)^Qi(T,S,6),z=tf(k,U,dt[g-7],dt[g-16]),I=rf(z,C,O,ut[g-7],ut[g-16]);ut[g]=I|0,dt[g]=z|0}let{Ah:n,Al:s,Bh:a,Bl:o,Ch:i,Cl:c,Dh:u,Dl:d,Eh:p,El:f,Fh:m,Fl:h,Gh:b,Gl:y,Hh:E,Hl:v}=this;for(let g=0;g<80;g++){const w=Dt(p,f,14)^Dt(p,f,18)^On(p,f,41),x=_t(p,f,14)^_t(p,f,18)^Nn(p,f,41),C=p&m^~p&b,k=f&h^~f&y,T=nf(v,x,k,t1[g],dt[g]),S=sf(T,E,w,C,e1[g],ut[g]),O=T|0,U=Dt(n,s,28)^On(n,s,34)^On(n,s,39),z=_t(n,s,28)^Nn(n,s,34)^Nn(n,s,39),I=n&a^n&i^a&i,L=s&o^s&c^o&c;E=b|0,v=y|0,b=m|0,y=h|0,m=p|0,h=f|0,{h:p,l:f}=Ke(u|0,d|0,S|0,O|0),u=i|0,d=c|0,i=a|0,c=o|0,a=n|0,o=s|0;const A=Q0(O,z,L);n=ef(A,S,U,I),s=A|0}({h:n,l:s}=Ke(this.Ah|0,this.Al|0,n|0,s|0)),{h:a,l:o}=Ke(this.Bh|0,this.Bl|0,a|0,o|0),{h:i,l:c}=Ke(this.Ch|0,this.Cl|0,i|0,c|0),{h:u,l:d}=Ke(this.Dh|0,this.Dl|0,u|0,d|0),{h:p,l:f}=Ke(this.Eh|0,this.El|0,p|0,f|0),{h:m,l:h}=Ke(this.Fh|0,this.Fl|0,m|0,h|0),{h:b,l:y}=Ke(this.Gh|0,this.Gl|0,b|0,y|0),{h:E,l:v}=Ke(this.Hh|0,this.Hl|0,E|0,v|0),this.set(n,s,a,o,i,c,u,d,p,f,m,h,b,y,E,v)}roundClean(){$e(ut,dt)}destroy(){$e(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const Gs=Rs(()=>new Qm),eo=Rs(()=>new r1),id=Gs;async function n1(e){return new Promise(t=>setTimeout(t,e))}function cd(e,{delay:t=100,retryCount:r=2,shouldRetry:n=()=>!0}={}){return new Promise((s,a)=>{const o=async({count:i=0}={})=>{const c=async({error:u})=>{const d=typeof t=="function"?t({count:i,error:u}):t;d&&await n1(d),o({count:i+1})};try{const u=await e();s(u)}catch(u){if(i<r&&await n({count:i,error:u}))return c({error:u});a(u)}};o()})}const s1=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),ld=Uint8Array.from(new Array(16).fill(0).map((e,t)=>t)),a1=ld.map(e=>(9*e+5)%16),ud=(()=>{const r=[[ld],[a1]];for(let n=0;n<4;n++)for(let s of r)s.push(s[n].map(a=>s1[a]));return r})(),dd=ud[0],pd=ud[1],fd=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>Uint8Array.from(e)),o1=dd.map((e,t)=>e.map(r=>fd[t][r])),i1=pd.map((e,t)=>e.map(r=>fd[t][r])),c1=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),l1=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function hc(e,t,r,n){return e===0?t^r^n:e===1?t&r|~t&n:e===2?(t|~r)^n:e===3?t&n|r&~n:t^(r|~n)}const _n=new Uint32Array(16);class u1 extends Jo{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:t,h1:r,h2:n,h3:s,h4:a}=this;return[t,r,n,s,a]}set(t,r,n,s,a){this.h0=t|0,this.h1=r|0,this.h2=n|0,this.h3=s|0,this.h4=a|0}process(t,r){for(let m=0;m<16;m++,r+=4)_n[m]=t.getUint32(r,!0);let n=this.h0|0,s=n,a=this.h1|0,o=a,i=this.h2|0,c=i,u=this.h3|0,d=u,p=this.h4|0,f=p;for(let m=0;m<5;m++){const h=4-m,b=c1[m],y=l1[m],E=dd[m],v=pd[m],g=o1[m],w=i1[m];for(let x=0;x<16;x++){const C=Rn(n+hc(m,a,i,u)+_n[E[x]]+b,g[x])+p|0;n=p,p=u,u=Rn(i,10)|0,i=a,a=C}for(let x=0;x<16;x++){const C=Rn(s+hc(h,o,c,d)+_n[v[x]]+y,w[x])+f|0;s=f,f=d,d=Rn(c,10)|0,c=o,o=C}}this.set(this.h1+i+d|0,this.h2+u+f|0,this.h3+p+s|0,this.h4+n+o|0,this.h0+a+c|0)}roundClean(){$e(_n)}destroy(){this.destroyed=!0,$e(this.buffer),this.set(0,0,0,0,0)}}const d1=Rs(()=>new u1);function p1(e,{errorInstance:t=new Error("timed out"),timeout:r,signal:n}){return new Promise((s,a)=>{(async()=>{let o;try{const i=new AbortController;r>0&&(o=setTimeout(()=>{n?i.abort():a(t)},r)),s(await e({signal:(i==null?void 0:i.signal)||null}))}catch(i){(i==null?void 0:i.name)==="AbortError"&&a(t),a(i)}finally{clearTimeout(o)}})()})}let f1=class extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const r=super.get(t);return super.has(t)&&r!==void 0&&(this.delete(t),super.set(t,r)),r}set(t,r){if(super.set(t,r),this.maxSize&&this.size>this.maxSize){const n=this.keys().next().value;n&&this.delete(n)}return this}};const m1={checksum:new f1(8192)},ma=m1.checksum;function md(e,t={}){const{as:r=typeof e=="string"?"Hex":"Bytes"}=t,n=Ds(Um(e));return r==="Bytes"?n:ze(n)}const h1=/^0x[a-fA-F0-9]{40}$/;function qs(e,t={}){const{strict:r=!0}=t;if(!h1.test(e))throw new bc({address:e,cause:new b1});if(r){if(e.toLowerCase()===e)return;if(hd(e)!==e)throw new bc({address:e,cause:new y1})}}function hd(e){if(ma.has(e))return ma.get(e);qs(e,{strict:!1});const t=e.substring(2).toLowerCase(),r=md(Im(t),{as:"Bytes"}),n=t.split("");for(let a=0;a<40;a+=2)r[a>>1]>>4>=8&&n[a]&&(n[a]=n[a].toUpperCase()),(r[a>>1]&15)>=8&&n[a+1]&&(n[a+1]=n[a+1].toUpperCase());const s=`0x${n.join("")}`;return ma.set(e,s),s}function to(e,t={}){const{strict:r=!0}=t??{};try{return qs(e,{strict:r}),!0}catch{return!1}}let bc=class extends G{constructor({address:t,cause:r}){super(`Address "${t}" is invalid.`,{cause:r}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}};class b1 extends G{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class y1 extends G{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}const x1=/^(.*)\[([0-9]*)\]$/,g1=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,bd=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,yc=2n**256n-1n;function Jt(e,t,r){const{checksumAddress:n,staticPosition:s}=r,a=ei(t.type);if(a){const[o,i]=a;return E1(e,{...t,type:i},{checksumAddress:n,length:o,staticPosition:s})}if(t.type==="tuple")return T1(e,t,{checksumAddress:n,staticPosition:s});if(t.type==="address")return w1(e,{checksum:n});if(t.type==="bool")return k1(e);if(t.type.startsWith("bytes"))return v1(e,t,{staticPosition:s});if(t.type.startsWith("uint")||t.type.startsWith("int"))return C1(e,t);if(t.type==="string")return A1(e,{staticPosition:s});throw new ri(t.type)}const xc=32,ro=32;function w1(e,t={}){const{checksum:r=!1}=t,n=e.readBytes(32);return[(a=>r?hd(a):a)(ze($m(n,-20))),32]}function E1(e,t,r){const{checksumAddress:n,length:s,staticPosition:a}=r;if(!s){const c=et(e.readBytes(ro)),u=a+c,d=u+xc;e.setPosition(u);const p=et(e.readBytes(xc)),f=Vr(t);let m=0;const h=[];for(let b=0;b<p;++b){e.setPosition(d+(f?b*32:m));const[y,E]=Jt(e,t,{checksumAddress:n,staticPosition:d});m+=E,h.push(y)}return e.setPosition(a+32),[h,32]}if(Vr(t)){const c=et(e.readBytes(ro)),u=a+c,d=[];for(let p=0;p<s;++p){e.setPosition(u+p*32);const[f]=Jt(e,t,{checksumAddress:n,staticPosition:u});d.push(f)}return e.setPosition(a+32),[d,32]}let o=0;const i=[];for(let c=0;c<s;++c){const[u,d]=Jt(e,t,{checksumAddress:n,staticPosition:a+o});o+=d,i.push(u)}return[i,o]}function k1(e){return[zm(e.readBytes(32),{size:32}),32]}function v1(e,t,{staticPosition:r}){const[n,s]=t.type.split("bytes");if(!s){const o=et(e.readBytes(32));e.setPosition(r+o);const i=et(e.readBytes(32));if(i===0)return e.setPosition(r+32),["0x",32];const c=e.readBytes(i);return e.setPosition(r+32),[ze(c),32]}return[ze(e.readBytes(Number.parseInt(s,10),32)),32]}function C1(e,t){const r=t.type.startsWith("int"),n=Number.parseInt(t.type.split("int")[1]||"256",10),s=e.readBytes(32);return[n>48?Mm(s,{signed:r}):et(s,{signed:r}),32]}function T1(e,t,r){const{checksumAddress:n,staticPosition:s}=r,a=t.components.length===0||t.components.some(({name:c})=>!c),o=a?[]:{};let i=0;if(Vr(t)){const c=et(e.readBytes(ro)),u=s+c;for(let d=0;d<t.components.length;++d){const p=t.components[d];e.setPosition(u+i);const[f,m]=Jt(e,p,{checksumAddress:n,staticPosition:u});i+=m,o[a?d:p==null?void 0:p.name]=f}return e.setPosition(s+32),[o,32]}for(let c=0;c<t.components.length;++c){const u=t.components[c],[d,p]=Jt(e,u,{checksumAddress:n,staticPosition:s});o[a?c:u==null?void 0:u.name]=d,i+=p}return[o,i]}function A1(e,{staticPosition:t}){const r=et(e.readBytes(32)),n=t+r;e.setPosition(n);const s=et(e.readBytes(32));if(s===0)return e.setPosition(t+32),["",32];const a=e.readBytes(s,32),o=Om(Qu(a));return e.setPosition(t+32),[o,32]}function S1({checksumAddress:e,parameters:t,values:r}){const n=[];for(let s=0;s<t.length;s++)n.push(Yo({checksumAddress:e,parameter:t[s],value:r[s]}));return n}function Yo({checksumAddress:e=!1,parameter:t,value:r}){const n=t,s=ei(n.type);if(s){const[a,o]=s;return U1(r,{checksumAddress:e,length:a,parameter:{...n,type:o}})}if(n.type==="tuple")return M1(r,{checksumAddress:e,parameter:n});if(n.type==="address")return B1(r,{checksum:e});if(n.type==="bool")return I1(r);if(n.type.startsWith("uint")||n.type.startsWith("int")){const a=n.type.startsWith("int"),[,,o="256"]=bd.exec(n.type)??[];return F1(r,{signed:a,size:Number(o)})}if(n.type.startsWith("bytes"))return P1(r,{type:n.type});if(n.type==="string")return $1(r);throw new ri(n.type)}function Qo(e){let t=0;for(let a=0;a<e.length;a++){const{dynamic:o,encoded:i}=e[a];o?t+=32:t+=we(i)}const r=[],n=[];let s=0;for(let a=0;a<e.length;a++){const{dynamic:o,encoded:i}=e[a];o?(r.push(ie(t+s,{size:32})),n.push(i),s+=we(i)):r.push(i)}return Me(...r,...n)}function B1(e,t){const{checksum:r=!1}=t;return qs(e,{strict:r}),{dynamic:!1,encoded:Ut(e.toLowerCase())}}function U1(e,t){const{checksumAddress:r,length:n,parameter:s}=t,a=n===null;if(!Array.isArray(e))throw new j1(e);if(!a&&e.length!==n)throw new H1({expectedLength:n,givenLength:e.length,type:`${s.type}[${n}]`});let o=!1;const i=[];for(let c=0;c<e.length;c++){const u=Yo({checksumAddress:r,parameter:s,value:e[c]});u.dynamic&&(o=!0),i.push(u)}if(a||o){const c=Qo(i);if(a){const u=ie(i.length,{size:32});return{dynamic:!0,encoded:i.length>0?Me(u,c):u}}if(o)return{dynamic:!0,encoded:c}}return{dynamic:!1,encoded:Me(...i.map(({encoded:c})=>c))}}function P1(e,{type:t}){const[,r]=t.split("bytes"),n=we(e);if(!r){let s=e;return n%32!==0&&(s=Pt(s,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:Me(Ut(ie(n,{size:32})),s)}}if(n!==Number.parseInt(r,10))throw new xd({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:Pt(e)}}function I1(e){if(typeof e!="boolean")throw new G(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Ut(ed(e))}}function F1(e,{signed:t,size:r}){if(typeof r=="number"){const n=2n**(BigInt(r)-(t?1n:0n))-1n,s=t?-n-1n:0n;if(e>n||e<s)throw new nd({max:n.toString(),min:s.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:ie(e,{size:32,signed:t})}}function $1(e){const t=Xo(e),r=Math.ceil(we(t)/32),n=[];for(let s=0;s<r;s++)n.push(Pt(He(t,s*32,(s+1)*32)));return{dynamic:!0,encoded:Me(Pt(ie(we(t),{size:32})),...n)}}function M1(e,t){const{checksumAddress:r,parameter:n}=t;let s=!1;const a=[];for(let o=0;o<n.components.length;o++){const i=n.components[o],c=Array.isArray(e)?o:i.name,u=Yo({checksumAddress:r,parameter:i,value:e[c]});a.push(u),u.dynamic&&(s=!0)}return{dynamic:s,encoded:s?Qo(a):Me(...a.map(({encoded:o})=>o))}}function ei(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function Vr(e){var n;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(n=e.components)==null?void 0:n.some(Vr);const r=ei(e.type);return!!(r&&Vr({...e,type:r[1]}))}const z1={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new R1({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new N1({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new gc({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new gc({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function O1(e,{recursiveReadLimit:t=8192}={}){const r=Object.create(z1);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}let gc=class extends G{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}},N1=class extends G{constructor({length:t,position:r}){super(`Position \`${r}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}},R1=class extends G{constructor({count:t,limit:r}){super(`Recursive read limit of \`${r}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}};function D1(e,t,r={}){const{as:n="Array",checksumAddress:s=!1}=r,a=typeof t=="string"?Yu(t):t,o=O1(a);if(Kt(a)===0&&e.length>0)throw new L1;if(Kt(a)&&Kt(a)<32)throw new _1({data:typeof t=="string"?t:ze(t),parameters:e,size:Kt(a)});let i=0;const c=n==="Array"?[]:{};for(let u=0;u<e.length;++u){const d=e[u];o.setPosition(i);const[p,f]=Jt(o,d,{checksumAddress:s,staticPosition:0});i+=f,n==="Array"?c.push(p):c[d.name??u]=p}return c}function ti(e,t,r){const{checksumAddress:n=!1}={};if(e.length!==t.length)throw new gd({expectedLength:e.length,givenLength:t.length});const s=S1({checksumAddress:n,parameters:e,values:t}),a=Qo(s);return a.length===0?"0x":a}function no(e,t){if(e.length!==t.length)throw new gd({expectedLength:e.length,givenLength:t.length});const r=[];for(let n=0;n<e.length;n++){const s=e[n],a=t[n];r.push(no.encode(s,a))}return Me(...r)}(function(e){function t(r,n,s=!1){if(r==="address"){const c=n;return qs(c),Ut(c.toLowerCase(),s?32:0)}if(r==="string")return Xo(n);if(r==="bytes")return n;if(r==="bool")return Ut(ed(n),s?32:1);const a=r.match(bd);if(a){const[c,u,d="256"]=a,p=Number.parseInt(d,10)/8;return ie(n,{size:s?32:p,signed:u==="int"})}const o=r.match(g1);if(o){const[c,u]=o;if(Number.parseInt(u,10)!==(n.length-2)/2)throw new xd({expectedSize:Number.parseInt(u,10),value:n});return Pt(n,s?32:0)}const i=r.match(x1);if(i&&Array.isArray(n)){const[c,u]=i,d=[];for(let p=0;p<n.length;p++)d.push(t(u,n[p],!0));return d.length===0?"0x":Me(...d)}throw new ri(r)}e.encode=t})(no||(no={}));function yd(e){return Array.isArray(e)&&typeof e[0]=="string"||typeof e=="string"?cc(e):e}class _1 extends G{constructor({data:t,parameters:r,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${Vt(r)})`,`Data: ${t} (${n} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class L1 extends G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class H1 extends G{constructor({expectedLength:t,givenLength:r,type:n}){super(`Array length mismatch for type \`${n}\`. Expected: \`${t}\`. Given: \`${r}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}let xd=class extends G{constructor({expectedSize:t,value:r}){super(`Size of bytes "${r}" (bytes${we(r)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}};class gd extends G{constructor({expectedLength:t,givenLength:r}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${r}`].join(`
|
|
7
|
+
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}let j1=class extends G{constructor(t){super(`Value \`${t}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}};class ri extends G{constructor(t){super(`Type \`${t}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}class wd extends Lo{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,Bl(t);const n=Ns(r);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,a=new Uint8Array(s);a.set(n.length>s?t.create().update(n).digest():n);for(let o=0;o<a.length;o++)a[o]^=54;this.iHash.update(a),this.oHash=t.create();for(let o=0;o<a.length;o++)a[o]^=106;this.oHash.update(a),$e(a)}update(t){return tr(this),this.iHash.update(t),this}digestInto(t){tr(this),ce(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:n,finished:s,destroyed:a,blockLen:o,outputLen:i}=this;return t=t,t.finished=s,t.destroyed=a,t.blockLen=o,t.outputLen=i,t.oHash=r._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Kr=(e,t,r)=>new wd(e,t).update(r).digest();Kr.create=(e,t)=>new wd(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const de=BigInt(0),le=BigInt(1),vt=BigInt(2),G1=BigInt(3),Ed=BigInt(4),kd=BigInt(5),vd=BigInt(8);function oe(e,t){const r=e%t;return r>=de?r:t+r}function Se(e,t,r){let n=e;for(;t-- >de;)n*=n,n%=r;return n}function so(e,t){if(e===de)throw new Error("invert: expected non-zero number");if(t<=de)throw new Error("invert: expected positive modulus, got "+t);let r=oe(e,t),n=t,s=de,a=le;for(;r!==de;){const i=n/r,c=n%r,u=s-a*i;n=r,r=c,s=a,a=u}if(n!==le)throw new Error("invert: does not exist");return oe(s,t)}function Cd(e,t){const r=(e.ORDER+le)/Ed,n=e.pow(t,r);if(!e.eql(e.sqr(n),t))throw new Error("Cannot find square root");return n}function q1(e,t){const r=(e.ORDER-kd)/vd,n=e.mul(t,vt),s=e.pow(n,r),a=e.mul(t,s),o=e.mul(e.mul(a,vt),s),i=e.mul(a,e.sub(o,e.ONE));if(!e.eql(e.sqr(i),t))throw new Error("Cannot find square root");return i}function V1(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-le,r=0;for(;t%vt===de;)t/=vt,r++;let n=vt;const s=ni(e);for(;wc(s,n)===1;)if(n++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return Cd;let a=s.pow(n,t);const o=(t+le)/vt;return function(c,u){if(c.is0(u))return u;if(wc(c,u)!==1)throw new Error("Cannot find square root");let d=r,p=c.mul(c.ONE,a),f=c.pow(u,t),m=c.pow(u,o);for(;!c.eql(f,c.ONE);){if(c.is0(f))return c.ZERO;let h=1,b=c.sqr(f);for(;!c.eql(b,c.ONE);)if(h++,b=c.sqr(b),h===d)throw new Error("Cannot find square root");const y=le<<BigInt(d-h-1),E=c.pow(p,y);d=h,p=c.sqr(E),f=c.mul(f,p),m=c.mul(m,E)}return m}}function K1(e){return e%Ed===G1?Cd:e%vd===kd?q1:V1(e)}const W1=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Z1(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=W1.reduce((n,s)=>(n[s]="function",n),t);return Hs(e,r)}function X1(e,t,r){if(r<de)throw new Error("invalid exponent, negatives unsupported");if(r===de)return e.ONE;if(r===le)return t;let n=e.ONE,s=t;for(;r>de;)r&le&&(n=e.mul(n,s)),s=e.sqr(s),r>>=le;return n}function Td(e,t,r=!1){const n=new Array(t.length).fill(r?e.ZERO:void 0),s=t.reduce((o,i,c)=>e.is0(i)?o:(n[c]=o,e.mul(o,i)),e.ONE),a=e.inv(s);return t.reduceRight((o,i,c)=>e.is0(i)?o:(n[c]=e.mul(o,n[c]),e.mul(o,i)),a),n}function wc(e,t){const r=(e.ORDER-le)/vt,n=e.pow(t,r),s=e.eql(n,e.ONE),a=e.eql(n,e.ZERO),o=e.eql(n,e.neg(e.ONE));if(!s&&!a&&!o)throw new Error("invalid Legendre symbol result");return s?1:a?0:-1}function Ad(e,t){t!==void 0&&pt(t);const r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function ni(e,t,r=!1,n={}){if(e<=de)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:s,nByteLength:a}=Ad(e,t);if(a>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let o;const i=Object.freeze({ORDER:e,isLE:r,BITS:s,BYTES:a,MASK:Ls(s),ZERO:de,ONE:le,create:c=>oe(c,e),isValid:c=>{if(typeof c!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof c);return de<=c&&c<e},is0:c=>c===de,isOdd:c=>(c&le)===le,neg:c=>oe(-c,e),eql:(c,u)=>c===u,sqr:c=>oe(c*c,e),add:(c,u)=>oe(c+u,e),sub:(c,u)=>oe(c-u,e),mul:(c,u)=>oe(c*u,e),pow:(c,u)=>X1(i,c,u),div:(c,u)=>oe(c*so(u,e),e),sqrN:c=>c*c,addN:(c,u)=>c+u,subN:(c,u)=>c-u,mulN:(c,u)=>c*u,inv:c=>so(c,e),sqrt:n.sqrt||(c=>(o||(o=K1(e)),o(i,c))),toBytes:c=>r?Ku(c,a):gn(c,a),fromBytes:c=>{if(c.length!==a)throw new Error("Field.fromBytes: expected "+a+" bytes, got "+c.length);return r?Vu(c):At(c)},invertBatch:c=>Td(i,c),cmov:(c,u,d)=>d?u:c});return Object.freeze(i)}function Sd(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function Bd(e){const t=Sd(e);return t+Math.ceil(t/2)}function J1(e,t,r=!1){const n=e.length,s=Sd(t),a=Bd(t);if(n<16||n<a||n>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+n);const o=r?Vu(e):At(e),i=oe(o,t-le)+le;return r?Ku(i,s):gn(i,s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ec=BigInt(0),ao=BigInt(1);function ha(e,t){const r=t.negate();return e?r:t}function Ud(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function ba(e,t){Ud(e,t);const r=Math.ceil(t/e)+1,n=2**(e-1),s=2**e,a=Ls(e),o=BigInt(e);return{windows:r,windowSize:n,mask:a,maxNumber:s,shiftBy:o}}function kc(e,t,r){const{windowSize:n,mask:s,maxNumber:a,shiftBy:o}=r;let i=Number(e&s),c=e>>o;i>n&&(i-=a,c+=ao);const u=t*n,d=u+Math.abs(i)-1,p=i===0,f=i<0,m=t%2!==0;return{nextN:c,offset:d,isZero:p,isNeg:f,isNegF:m,offsetF:u}}function Y1(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((r,n)=>{if(!(r instanceof t))throw new Error("invalid point at index "+n)})}function Q1(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((r,n)=>{if(!t.isValid(r))throw new Error("invalid scalar at index "+n)})}const ya=new WeakMap,Pd=new WeakMap;function xa(e){return Pd.get(e)||1}function eh(e,t){return{constTimeNegate:ha,hasPrecomputes(r){return xa(r)!==1},unsafeLadder(r,n,s=e.ZERO){let a=r;for(;n>Ec;)n&ao&&(s=s.add(a)),a=a.double(),n>>=ao;return s},precomputeWindow(r,n){const{windows:s,windowSize:a}=ba(n,t),o=[];let i=r,c=i;for(let u=0;u<s;u++){c=i,o.push(c);for(let d=1;d<a;d++)c=c.add(i),o.push(c);i=c.double()}return o},wNAF(r,n,s){let a=e.ZERO,o=e.BASE;const i=ba(r,t);for(let c=0;c<i.windows;c++){const{nextN:u,offset:d,isZero:p,isNeg:f,isNegF:m,offsetF:h}=kc(s,c,i);s=u,p?o=o.add(ha(m,n[h])):a=a.add(ha(f,n[d]))}return{p:a,f:o}},wNAFUnsafe(r,n,s,a=e.ZERO){const o=ba(r,t);for(let i=0;i<o.windows&&s!==Ec;i++){const{nextN:c,offset:u,isZero:d,isNeg:p}=kc(s,i,o);if(s=c,!d){const f=n[u];a=a.add(p?f.negate():f)}}return a},getPrecomputes(r,n,s){let a=ya.get(n);return a||(a=this.precomputeWindow(n,r),r!==1&&ya.set(n,s(a))),a},wNAFCached(r,n,s){const a=xa(r);return this.wNAF(a,this.getPrecomputes(a,r,s),n)},wNAFCachedUnsafe(r,n,s,a){const o=xa(r);return o===1?this.unsafeLadder(r,n,a):this.wNAFUnsafe(o,this.getPrecomputes(o,r,s),n,a)},setWindowSize(r,n){Ud(n,t),Pd.set(r,n),ya.delete(r)}}}function th(e,t,r,n){Y1(r,e),Q1(n,t);const s=r.length,a=n.length;if(s!==a)throw new Error("arrays of points and scalars must have equal length");const o=e.ZERO,i=xm(BigInt(s));let c=1;i>12?c=i-3:i>4?c=i-2:i>0&&(c=2);const u=Ls(c),d=new Array(Number(u)+1).fill(o),p=Math.floor((t.BITS-1)/c)*c;let f=o;for(let m=p;m>=0;m-=c){d.fill(o);for(let b=0;b<a;b++){const y=n[b],E=Number(y>>BigInt(m)&u);d[E]=d[E].add(r[b])}let h=o;for(let b=d.length-1,y=o;b>0;b--)y=y.add(d[b]),h=h.add(y);if(f=f.add(h),m!==0)for(let b=0;b<c;b++)f=f.double()}return f}function Id(e){return Z1(e.Fp),Hs(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Ad(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function vc(e){e.lowS!==void 0&&Gr("lowS",e.lowS),e.prehash!==void 0&&Gr("prehash",e.prehash)}function rh(e){const t=Id(e);Hs(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:r,Fp:n,a:s}=t;if(r){if(!n.eql(s,n.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}class nh extends Error{constructor(t=""){super(t)}}const Ye={Err:nh,_tlv:{encode:(e,t)=>{const{Err:r}=Ye;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length&1)throw new r("tlv.encode: unpadded data");const n=t.length/2,s=Dn(n);if(s.length/2&128)throw new r("tlv.encode: long form length too big");const a=n>127?Dn(s.length/2|128):"";return Dn(e)+a+s+t},decode(e,t){const{Err:r}=Ye;let n=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length<2||t[n++]!==e)throw new r("tlv.decode: wrong tlv");const s=t[n++],a=!!(s&128);let o=0;if(!a)o=s;else{const c=s&127;if(!c)throw new r("tlv.decode(long): indefinite length not supported");if(c>4)throw new r("tlv.decode(long): byte length is too big");const u=t.subarray(n,n+c);if(u.length!==c)throw new r("tlv.decode: length bytes not complete");if(u[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(const d of u)o=o<<8|d;if(n+=c,o<128)throw new r("tlv.decode(long): not minimal encoding")}const i=t.subarray(n,n+o);if(i.length!==o)throw new r("tlv.decode: wrong value length");return{v:i,l:t.subarray(n+o)}}},_int:{encode(e){const{Err:t}=Ye;if(e<Qe)throw new t("integer: negative integers are not allowed");let r=Dn(e);if(Number.parseInt(r[0],16)&8&&(r="00"+r),r.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){const{Err:t}=Ye;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return At(e)}},toSig(e){const{Err:t,_int:r,_tlv:n}=Ye,s=Be("signature",e),{v:a,l:o}=n.decode(48,s);if(o.length)throw new t("invalid signature: left bytes after parsing");const{v:i,l:c}=n.decode(2,a),{v:u,l:d}=n.decode(2,c);if(d.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(i),s:r.decode(u)}},hexFromSig(e){const{_tlv:t,_int:r}=Ye,n=t.encode(2,r.encode(e.r)),s=t.encode(2,r.encode(e.s)),a=n+s;return t.encode(48,a)}};function ga(e,t){return qr(gn(e,t))}const Qe=BigInt(0),ee=BigInt(1);BigInt(2);const wa=BigInt(3),sh=BigInt(4);function ah(e){const t=rh(e),{Fp:r}=t,n=ni(t.n,t.nBitLength),s=t.toBytes||((g,w,x)=>{const C=w.toAffine();return Is(Uint8Array.from([4]),r.toBytes(C.x),r.toBytes(C.y))}),a=t.fromBytes||(g=>{const w=g.subarray(1),x=r.fromBytes(w.subarray(0,r.BYTES)),C=r.fromBytes(w.subarray(r.BYTES,2*r.BYTES));return{x,y:C}});function o(g){const{a:w,b:x}=t,C=r.sqr(g),k=r.mul(C,g);return r.add(r.add(k,r.mul(g,w)),x)}function i(g,w){const x=r.sqr(w),C=o(g);return r.eql(x,C)}if(!i(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const c=r.mul(r.pow(t.a,wa),sh),u=r.mul(r.sqr(t.b),BigInt(27));if(r.is0(r.add(c,u)))throw new Error("bad curve params: a or b");function d(g){return Zo(g,ee,t.n)}function p(g){const{allowedPrivateKeyLengths:w,nByteLength:x,wrapPrivateKey:C,n:k}=t;if(w&&typeof g!="bigint"){if(xn(g)&&(g=qr(g)),typeof g!="string"||!w.includes(g.length))throw new Error("invalid private key");g=g.padStart(x*2,"0")}let T;try{T=typeof g=="bigint"?g:At(Be("private key",g,x))}catch{throw new Error("invalid private key, expected hex or "+x+" bytes, got "+typeof g)}return C&&(T=oe(T,k)),Xt("private key",T,ee,k),T}function f(g){if(!(g instanceof b))throw new Error("ProjectivePoint expected")}const m=dc((g,w)=>{const{px:x,py:C,pz:k}=g;if(r.eql(k,r.ONE))return{x,y:C};const T=g.is0();w==null&&(w=T?r.ONE:r.inv(k));const S=r.mul(x,w),O=r.mul(C,w),U=r.mul(k,w);if(T)return{x:r.ZERO,y:r.ZERO};if(!r.eql(U,r.ONE))throw new Error("invZ was invalid");return{x:S,y:O}}),h=dc(g=>{if(g.is0()){if(t.allowInfinityPoint&&!r.is0(g.py))return;throw new Error("bad point: ZERO")}const{x:w,y:x}=g.toAffine();if(!r.isValid(w)||!r.isValid(x))throw new Error("bad point: x or y not FE");if(!i(w,x))throw new Error("bad point: equation left != right");if(!g.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class b{constructor(w,x,C){if(w==null||!r.isValid(w))throw new Error("x required");if(x==null||!r.isValid(x)||r.is0(x))throw new Error("y required");if(C==null||!r.isValid(C))throw new Error("z required");this.px=w,this.py=x,this.pz=C,Object.freeze(this)}static fromAffine(w){const{x,y:C}=w||{};if(!w||!r.isValid(x)||!r.isValid(C))throw new Error("invalid affine point");if(w instanceof b)throw new Error("projective point not allowed");const k=T=>r.eql(T,r.ZERO);return k(x)&&k(C)?b.ZERO:new b(x,C,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(w){const x=Td(r,w.map(C=>C.pz));return w.map((C,k)=>C.toAffine(x[k])).map(b.fromAffine)}static fromHex(w){const x=b.fromAffine(a(Be("pointHex",w)));return x.assertValidity(),x}static fromPrivateKey(w){return b.BASE.multiply(p(w))}static msm(w,x){return th(b,n,w,x)}_setWindowSize(w){v.setWindowSize(this,w)}assertValidity(){h(this)}hasEvenY(){const{y:w}=this.toAffine();if(r.isOdd)return!r.isOdd(w);throw new Error("Field doesn't support isOdd")}equals(w){f(w);const{px:x,py:C,pz:k}=this,{px:T,py:S,pz:O}=w,U=r.eql(r.mul(x,O),r.mul(T,k)),z=r.eql(r.mul(C,O),r.mul(S,k));return U&&z}negate(){return new b(this.px,r.neg(this.py),this.pz)}double(){const{a:w,b:x}=t,C=r.mul(x,wa),{px:k,py:T,pz:S}=this;let O=r.ZERO,U=r.ZERO,z=r.ZERO,I=r.mul(k,k),L=r.mul(T,T),A=r.mul(S,S),$=r.mul(k,T);return $=r.add($,$),z=r.mul(k,S),z=r.add(z,z),O=r.mul(w,z),U=r.mul(C,A),U=r.add(O,U),O=r.sub(L,U),U=r.add(L,U),U=r.mul(O,U),O=r.mul($,O),z=r.mul(C,z),A=r.mul(w,A),$=r.sub(I,A),$=r.mul(w,$),$=r.add($,z),z=r.add(I,I),I=r.add(z,I),I=r.add(I,A),I=r.mul(I,$),U=r.add(U,I),A=r.mul(T,S),A=r.add(A,A),I=r.mul(A,$),O=r.sub(O,I),z=r.mul(A,L),z=r.add(z,z),z=r.add(z,z),new b(O,U,z)}add(w){f(w);const{px:x,py:C,pz:k}=this,{px:T,py:S,pz:O}=w;let U=r.ZERO,z=r.ZERO,I=r.ZERO;const L=t.a,A=r.mul(t.b,wa);let $=r.mul(x,T),R=r.mul(C,S),M=r.mul(k,O),N=r.add(x,C),_=r.add(T,S);N=r.mul(N,_),_=r.add($,R),N=r.sub(N,_),_=r.add(x,k);let H=r.add(T,O);return _=r.mul(_,H),H=r.add($,M),_=r.sub(_,H),H=r.add(C,k),U=r.add(S,O),H=r.mul(H,U),U=r.add(R,M),H=r.sub(H,U),I=r.mul(L,_),U=r.mul(A,M),I=r.add(U,I),U=r.sub(R,I),I=r.add(R,I),z=r.mul(U,I),R=r.add($,$),R=r.add(R,$),M=r.mul(L,M),_=r.mul(A,_),R=r.add(R,M),M=r.sub($,M),M=r.mul(L,M),_=r.add(_,M),$=r.mul(R,_),z=r.add(z,$),$=r.mul(H,_),U=r.mul(N,U),U=r.sub(U,$),$=r.mul(N,R),I=r.mul(H,I),I=r.add(I,$),new b(U,z,I)}subtract(w){return this.add(w.negate())}is0(){return this.equals(b.ZERO)}wNAF(w){return v.wNAFCached(this,w,b.normalizeZ)}multiplyUnsafe(w){const{endo:x,n:C}=t;Xt("scalar",w,Qe,C);const k=b.ZERO;if(w===Qe)return k;if(this.is0()||w===ee)return this;if(!x||v.hasPrecomputes(this))return v.wNAFCachedUnsafe(this,w,b.normalizeZ);let{k1neg:T,k1:S,k2neg:O,k2:U}=x.splitScalar(w),z=k,I=k,L=this;for(;S>Qe||U>Qe;)S&ee&&(z=z.add(L)),U&ee&&(I=I.add(L)),L=L.double(),S>>=ee,U>>=ee;return T&&(z=z.negate()),O&&(I=I.negate()),I=new b(r.mul(I.px,x.beta),I.py,I.pz),z.add(I)}multiply(w){const{endo:x,n:C}=t;Xt("scalar",w,ee,C);let k,T;if(x){const{k1neg:S,k1:O,k2neg:U,k2:z}=x.splitScalar(w);let{p:I,f:L}=this.wNAF(O),{p:A,f:$}=this.wNAF(z);I=v.constTimeNegate(S,I),A=v.constTimeNegate(U,A),A=new b(r.mul(A.px,x.beta),A.py,A.pz),k=I.add(A),T=L.add($)}else{const{p:S,f:O}=this.wNAF(w);k=S,T=O}return b.normalizeZ([k,T])[0]}multiplyAndAddUnsafe(w,x,C){const k=b.BASE,T=(O,U)=>U===Qe||U===ee||!O.equals(k)?O.multiplyUnsafe(U):O.multiply(U),S=T(this,x).add(T(w,C));return S.is0()?void 0:S}toAffine(w){return m(this,w)}isTorsionFree(){const{h:w,isTorsionFree:x}=t;if(w===ee)return!0;if(x)return x(b,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:w,clearCofactor:x}=t;return w===ee?this:x?x(b,this):this.multiplyUnsafe(t.h)}toRawBytes(w=!0){return Gr("isCompressed",w),this.assertValidity(),s(b,this,w)}toHex(w=!0){return Gr("isCompressed",w),qr(this.toRawBytes(w))}}b.BASE=new b(t.Gx,t.Gy,r.ONE),b.ZERO=new b(r.ZERO,r.ONE,r.ZERO);const{endo:y,nBitLength:E}=t,v=eh(b,y?Math.ceil(E/2):E);return{CURVE:t,ProjectivePoint:b,normPrivateKeyToScalar:p,weierstrassEquation:o,isWithinCurveOrder:d}}function oh(e){const t=Id(e);return Hs(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function ih(e){const t=oh(e),{Fp:r,n,nByteLength:s,nBitLength:a}=t,o=r.BYTES+1,i=2*r.BYTES+1;function c(A){return oe(A,n)}function u(A){return so(A,n)}const{ProjectivePoint:d,normPrivateKeyToScalar:p,weierstrassEquation:f,isWithinCurveOrder:m}=ah({...t,toBytes(A,$,R){const M=$.toAffine(),N=r.toBytes(M.x),_=Is;return Gr("isCompressed",R),R?_(Uint8Array.from([$.hasEvenY()?2:3]),N):_(Uint8Array.from([4]),N,r.toBytes(M.y))},fromBytes(A){const $=A.length,R=A[0],M=A.subarray(1);if($===o&&(R===2||R===3)){const N=At(M);if(!Zo(N,ee,r.ORDER))throw new Error("Point is not on curve");const _=f(N);let H;try{H=r.sqrt(_)}catch(re){const Q=re instanceof Error?": "+re.message:"";throw new Error("Point is not on curve"+Q)}const X=(H&ee)===ee;return(R&1)===1!==X&&(H=r.neg(H)),{x:N,y:H}}else if($===i&&R===4){const N=r.fromBytes(M.subarray(0,r.BYTES)),_=r.fromBytes(M.subarray(r.BYTES,2*r.BYTES));return{x:N,y:_}}else{const N=o,_=i;throw new Error("invalid Point, expected length of "+N+", or uncompressed "+_+", got "+$)}}});function h(A){const $=n>>ee;return A>$}function b(A){return h(A)?c(-A):A}const y=(A,$,R)=>At(A.slice($,R));class E{constructor($,R,M){Xt("r",$,ee,n),Xt("s",R,ee,n),this.r=$,this.s=R,M!=null&&(this.recovery=M),Object.freeze(this)}static fromCompact($){const R=s;return $=Be("compactSignature",$,R*2),new E(y($,0,R),y($,R,2*R))}static fromDER($){const{r:R,s:M}=Ye.toSig(Be("DER",$));return new E(R,M)}assertValidity(){}addRecoveryBit($){return new E(this.r,this.s,$)}recoverPublicKey($){const{r:R,s:M,recovery:N}=this,_=k(Be("msgHash",$));if(N==null||![0,1,2,3].includes(N))throw new Error("recovery id invalid");const H=N===2||N===3?R+t.n:R;if(H>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const X=N&1?"03":"02",se=d.fromHex(X+ga(H,r.BYTES)),re=u(H),Q=c(-_*re),ae=c(M*re),it=d.BASE.multiplyAndAddUnsafe(se,Q,ae);if(!it)throw new Error("point at infinify");return it.assertValidity(),it}hasHighS(){return h(this.s)}normalizeS(){return this.hasHighS()?new E(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return Ps(this.toDERHex())}toDERHex(){return Ye.hexFromSig(this)}toCompactRawBytes(){return Ps(this.toCompactHex())}toCompactHex(){const $=s;return ga(this.r,$)+ga(this.s,$)}}const v={isValidPrivateKey(A){try{return p(A),!0}catch{return!1}},normPrivateKeyToScalar:p,randomPrivateKey:()=>{const A=Bd(t.n);return J1(t.randomBytes(A),t.n)},precompute(A=8,$=d.BASE){return $._setWindowSize(A),$.multiply(BigInt(3)),$}};function g(A,$=!0){return d.fromPrivateKey(A).toRawBytes($)}function w(A){if(typeof A=="bigint")return!1;if(A instanceof d)return!0;const R=Be("key",A).length,M=r.BYTES,N=M+1,_=2*M+1;if(!(t.allowedPrivateKeyLengths||s===N))return R===N||R===_}function x(A,$,R=!0){if(w(A)===!0)throw new Error("first arg must be private key");if(w($)===!1)throw new Error("second arg must be public key");return d.fromHex($).multiply(p(A)).toRawBytes(R)}const C=t.bits2int||function(A){if(A.length>8192)throw new Error("input is too large");const $=At(A),R=A.length*8-a;return R>0?$>>BigInt(R):$},k=t.bits2int_modN||function(A){return c(C(A))},T=Ls(a);function S(A){return Xt("num < 2^"+a,A,Qe,T),gn(A,s)}function O(A,$,R=U){if(["recovered","canonical"].some(wt=>wt in R))throw new Error("sign() legacy options not supported");const{hash:M,randomBytes:N}=t;let{lowS:_,prehash:H,extraEntropy:X}=R;_==null&&(_=!0),A=Be("msgHash",A),vc(R),H&&(A=Be("prehashed msgHash",M(A)));const se=k(A),re=p($),Q=[S(re),S(se)];if(X!=null&&X!==!1){const wt=X===!0?N(r.BYTES):X;Q.push(Be("extraEntropy",wt))}const ae=Is(...Q),it=se;function ia(wt){const Nt=C(wt);if(!m(Nt))return;const ca=u(Nt),wr=d.BASE.multiply(Nt).toAffine(),Et=c(wr.x);if(Et===Qe)return;const Er=c(ca*c(it+Et*re));if(Er===Qe)return;let kr=(wr.x===Et?0:2)|Number(wr.y&ee),Rt=Er;return _&&h(Er)&&(Rt=b(Er),kr^=1),new E(Et,Rt,kr)}return{seed:ae,k2sig:ia}}const U={lowS:t.lowS,prehash:!1},z={lowS:t.lowS,prehash:!1};function I(A,$,R=U){const{seed:M,k2sig:N}=O(A,$,R),_=t;return gm(_.hash.outputLen,_.nByteLength,_.hmac)(M,N)}d.BASE._setWindowSize(8);function L(A,$,R,M=z){var kr;const N=A;$=Be("msgHash",$),R=Be("publicKey",R);const{lowS:_,prehash:H,format:X}=M;if(vc(M),"strict"in M)throw new Error("options.strict was renamed to lowS");if(X!==void 0&&X!=="compact"&&X!=="der")throw new Error("format must be compact or der");const se=typeof N=="string"||xn(N),re=!se&&!X&&typeof N=="object"&&N!==null&&typeof N.r=="bigint"&&typeof N.s=="bigint";if(!se&&!re)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let Q,ae;try{if(re&&(Q=new E(N.r,N.s)),se){try{X!=="compact"&&(Q=E.fromDER(N))}catch(Rt){if(!(Rt instanceof Ye.Err))throw Rt}!Q&&X!=="der"&&(Q=E.fromCompact(N))}ae=d.fromHex(R)}catch{return!1}if(!Q||_&&Q.hasHighS())return!1;H&&($=t.hash($));const{r:it,s:ia}=Q,wt=k($),Nt=u(ia),ca=c(wt*Nt),wr=c(it*Nt),Et=(kr=d.BASE.multiplyAndAddUnsafe(ae,ca,wr))==null?void 0:kr.toAffine();return Et?c(Et.x)===it:!1}return{CURVE:t,getPublicKey:g,getSharedSecret:x,sign:I,verify:L,ProjectivePoint:d,Signature:E,utils:v}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function ch(e){return{hash:e,hmac:(t,...r)=>Kr(e,t,Rr(...r)),randomBytes:hf}}function lh(e,t){const r=n=>ih({...e,...ch(n)});return{...r(t),create:r}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Fd=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Cc=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),uh=BigInt(0),dh=BigInt(1),oo=BigInt(2),Tc=(e,t)=>(e+t/oo)/t;function ph(e){const t=Fd,r=BigInt(3),n=BigInt(6),s=BigInt(11),a=BigInt(22),o=BigInt(23),i=BigInt(44),c=BigInt(88),u=e*e*e%t,d=u*u*e%t,p=Se(d,r,t)*d%t,f=Se(p,r,t)*d%t,m=Se(f,oo,t)*u%t,h=Se(m,s,t)*m%t,b=Se(h,a,t)*h%t,y=Se(b,i,t)*b%t,E=Se(y,c,t)*y%t,v=Se(E,i,t)*b%t,g=Se(v,r,t)*d%t,w=Se(g,o,t)*h%t,x=Se(w,n,t)*u%t,C=Se(x,oo,t);if(!io.eql(io.sqr(C),e))throw new Error("Cannot find square root");return C}const io=ni(Fd,void 0,void 0,{sqrt:ph}),xe=lh({a:uh,b:BigInt(7),Fp:io,n:Cc,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=Cc,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-dh*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=r,o=BigInt("0x100000000000000000000000000000000"),i=Tc(a*e,t),c=Tc(-n*e,t);let u=oe(e-i*r-c*s,t),d=oe(-i*n-c*a,t);const p=u>o,f=d>o;if(p&&(u=t-u),f&&(d=t-d),u>o||d>o)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:p,k1:u,k2neg:f,k2:d}}}},Gs),$d=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:xe},Symbol.toStringTag,{value:"Module"}));function Md(e,t={}){const{recovered:r}=t;if(typeof e.r>"u")throw new Ea({signature:e});if(typeof e.s>"u")throw new Ea({signature:e});if(r&&typeof e.yParity>"u")throw new Ea({signature:e});if(e.r<0n||e.r>yc)throw new gh({value:e.r});if(e.s<0n||e.s>yc)throw new wh({value:e.s});if(typeof e.yParity=="number"&&e.yParity!==0&&e.yParity!==1)throw new ai({value:e.yParity})}function fh(e){return zd(ze(e))}function zd(e){if(e.length!==130&&e.length!==132)throw new xh({signature:e});const t=BigInt(He(e,0,32)),r=BigInt(He(e,32,64)),n=(()=>{const s=+`0x${e.slice(130)}`;if(!Number.isNaN(s))try{return si(s)}catch{throw new ai({value:s})}})();return typeof n>"u"?{r:t,s:r}:{r:t,s:r,yParity:n}}function mh(e){if(!(typeof e.r>"u")&&!(typeof e.s>"u"))return hh(e)}function hh(e){const t=typeof e=="string"?zd(e):e instanceof Uint8Array?fh(e):typeof e.r=="string"?yh(e):e.v?bh(e):{r:e.r,s:e.s,...typeof e.yParity<"u"?{yParity:e.yParity}:{}};return Md(t),t}function bh(e){return{r:e.r,s:e.s,yParity:si(e.v)}}function yh(e){const t=(()=>{const r=e.v?Number(e.v):void 0;let n=e.yParity?Number(e.yParity):void 0;if(typeof r=="number"&&typeof n!="number"&&(n=si(r)),typeof n!="number")throw new ai({value:e.yParity});return n})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function si(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new Eh({value:e})}class xh extends G{constructor({signature:t}){super(`Value \`${t}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${we(Gm(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class Ea extends G{constructor({signature:t}){super(`Signature \`${Ju(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class gh extends G{constructor({value:t}){super(`Value \`${t}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class wh extends G{constructor({value:t}){super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class ai extends G{constructor({value:t}){super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class Eh extends G{constructor({value:t}){super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}function kh(e,t={}){return typeof e.chainId=="string"?vh(e):{...e,...t.signature}}function vh(e){const{address:t,chainId:r,nonce:n}=e,s=mh(e);return{address:t,chainId:Number(r),nonce:BigInt(n),...s}}const Ch="0x8010801080108010801080108010801080108010801080108010801080108010",Th=yd("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function Od(e){if(typeof e=="string"){if(He(e,-32)!==Ch)throw new Bh(e)}else Md(e.authorization)}function Ah(e){Od(e);const t=rd(He(e,-64,-32)),r=He(e,-t-64,-64),n=He(e,0,-t-64),[s,a,o]=D1(Th,r);return{authorization:kh({address:s.delegation,chainId:Number(s.chainId),nonce:s.nonce,yParity:s.yParity,r:s.r,s:s.s}),signature:n,...o&&o!=="0x"?{data:o,to:a}:{}}}function Sh(e){try{return Od(e),!0}catch{return!1}}let Bh=class extends G{constructor(t){super(`Value \`${t}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}};function co(e){let t=!0,r="",n=0,s="",a=!1;for(let o=0;o<e.length;o++){const i=e[o];if(["(",")",","].includes(i)&&(t=!0),i==="("&&n++,i===")"&&n--,!!t){if(n===0){if(i===" "&&["event","function","error",""].includes(s))s="";else if(s+=i,i===")"){a=!0;break}continue}if(i===" "){e[o-1]!==","&&r!==","&&r!==",("&&(r="",t=!1);continue}s+=i,r+=i}}if(!a)throw new G("Unable to normalize signature.");return s}function lo(e,t){const r=typeof e,n=t.type;switch(n){case"address":return to(e,{strict:!1});case"bool":return r==="boolean";case"function":return r==="string";case"string":return r==="string";default:return n==="tuple"&&"components"in t?Object.values(t.components).every((s,a)=>lo(Object.values(e)[a],s)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n)?r==="number"||r==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?r==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n)?Array.isArray(e)&&e.every(s=>lo(s,{...t,type:n.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function Nd(e,t,r){for(const n in e){const s=e[n],a=t[n];if(s.type==="tuple"&&a.type==="tuple"&&"components"in s&&"components"in a)return Nd(s.components,a.components,r[n]);const o=[s.type,a.type];if(o.includes("address")&&o.includes("bytes20")?!0:o.includes("address")&&o.includes("string")?to(r[n],{strict:!1}):o.includes("address")&&o.includes("bytes")?to(r[n],{strict:!1}):!1)return o}}function Rd(e,t={}){const{prepare:r=!0}=t,n=Array.isArray(e)||typeof e=="string"?ic(e):e;return{...n,...r?{hash:Wt(n)}:{}}}function Vs(e,t,r){const{args:n=[],prepare:s=!0}=r??{},a=qm(t,{strict:!1}),o=e.filter(u=>a?u.type==="function"||u.type==="error"?Dd(u)===He(t,0,4):u.type==="event"?Wt(u)===t:!1:"name"in u&&u.name===t);if(o.length===0)throw new Fs({name:t});if(o.length===1)return{...o[0],...s?{hash:Wt(o[0])}:{}};let i;for(const u of o){if(!("inputs"in u))continue;if(!n||n.length===0){if(!u.inputs||u.inputs.length===0)return{...u,...s?{hash:Wt(u)}:{}};continue}if(!u.inputs||u.inputs.length===0||u.inputs.length!==n.length)continue;if(n.every((p,f)=>{const m="inputs"in u&&u.inputs[f];return m?lo(p,m):!1})){if(i&&"inputs"in i&&i.inputs){const p=Nd(u.inputs,i.inputs,n);if(p)throw new Ph({abiItem:u,type:p[0]},{abiItem:i,type:p[1]})}i=u}}const c=(()=>{if(i)return i;const[u,...d]=o;return{...u,overloads:d}})();if(!c)throw new Fs({name:t});return{...c,...s?{hash:Wt(c)}:{}}}function Dd(...e){const t=(()=>{if(Array.isArray(e[0])){const[r,n]=e;return Vs(r,n)}return e[0]})();return He(Wt(t),0,4)}function Uh(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,s]=e;return Vs(n,s)}return e[0]})(),r=typeof t=="string"?t:Bs(t);return co(r)}function Wt(...e){const t=(()=>{if(Array.isArray(e[0])){const[r,n]=e;return Vs(r,n)}return e[0]})();return typeof t!="string"&&"hash"in t&&t.hash?t.hash:md(Xo(Uh(t)))}class Ph extends G{constructor(t,r){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${co(Bs(t.abiItem))}\`, and`,`\`${r.type}\` in \`${co(Bs(r.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class Fs extends G{constructor({name:t,data:r,type:n="item"}){const s=t?` with name "${t}"`:r?` with data "${r}"`:"";super(`ABI ${n}${s} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}function Ih(...e){var a;const[t,r]=(()=>{if(Array.isArray(e[0])){const[o,i]=e;return[$h(o),i]}return e})(),{bytecode:n,args:s}=r;return Me(n,(a=t.inputs)!=null&&a.length&&(s!=null&&s.length)?ti(t.inputs,s):"0x")}function Fh(e){return Rd(e)}function $h(e){const t=e.find(r=>r.type==="constructor");if(!t)throw new Fs({name:"constructor"});return t}function Mh(...e){const[t,r=[]]=(()=>{if(Array.isArray(e[0])){const[u,d,p]=e;return[Ac(u,d,{args:p}),p]}const[i,c]=e;return[i,c]})(),{overloads:n}=t,s=n?Ac([t,...n],t.name,{args:r}):t,a=zh(s),o=r.length>0?ti(s.inputs,r):void 0;return o?Me(a,o):a}function Ht(e,t={}){return Rd(e,t)}function Ac(e,t,r){const n=Vs(e,t,r);if(n.type!=="function")throw new Fs({name:t,type:"function"});return n}function zh(e){return Dd(e)}const _d="0x6492649264926492649264926492649264926492649264926492649264926492";function Oh(e){if(He(e,-32)!==_d)throw new Dh(e)}function Nh(e){const{data:t,signature:r,to:n}=e;return Me(ti(yd("address, bytes, bytes"),[n,t,r]),_d)}function Rh(e){try{return Oh(e),!0}catch{return!1}}class Dh extends G{constructor(t){super(`Value \`${t}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}const Ts="2.13.8",_h=()=>`@wagmi/core@${Ts}`;var Ld=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},$s,Hd;let dr=class uo extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return _h()}constructor(t,r={}){var a;super(),$s.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});const n=r.cause instanceof uo?r.cause.details:(a=r.cause)!=null&&a.message?r.cause.message:r.details,s=r.cause instanceof uo&&r.cause.docsPath||r.docsPath;this.message=[t||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...s?[`Docs: ${this.docsBaseUrl}${s}.html${r.docsSlug?`#${r.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join(`
|
|
8
|
+
`),r.cause&&(this.cause=r.cause),this.details=n,this.docsPath=s,this.metaMessages=r.metaMessages,this.shortMessage=t}walk(t){return Ld(this,$s,"m",Hd).call(this,this,t)}};$s=new WeakSet,Hd=function e(t,r){return r!=null&&r(t)?t:t.cause?Ld(this,$s,"m",e).call(this,t.cause,r):t};class po extends dr{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class Lh extends dr{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class Hh extends dr{constructor({address:t,connector:r}){super(`Account "${t}" not found for connector "${r.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class jh extends dr{constructor({connectionChainId:t,connectorChainId:r}){super(`The current chain of the connector (id: ${r}) does not match the connection's chain (id: ${t}).`,{metaMessages:[`Current Chain ID: ${r}`,`Expected Chain ID: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class Gh extends dr{constructor({connector:t}){super(`Connector "${t.name}" unavailable while reconnecting.`,{details:["During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uuid`.","All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored.","This error commonly occurs for connectors that asynchronously inject after reconnection has already started."].join(" ")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}const fo=256;let Ln=fo,Hn;function jd(e=11){if(!Hn||Ln+e>fo*2){Hn="",Ln=0;for(let t=0;t<fo;t++)Hn+=(256+Math.random()*256|0).toString(16).substring(1)}return Hn.substring(Ln,Ln+++e)}function Gd(e){const{batch:t,chain:r,ccipRead:n,key:s="base",name:a="Base Client",type:o="base"}=e,i=e.experimental_blockTag??(typeof(r==null?void 0:r.experimental_preconfirmationTime)=="number"?"pending":void 0),c=(r==null?void 0:r.blockTime)??12e3,u=Math.min(Math.max(Math.floor(c/2),500),4e3),d=e.pollingInterval??u,p=e.cacheTime??d,f=e.account?Zl(e.account):void 0,{config:m,request:h,value:b}=e.transport({account:f,chain:r,pollingInterval:d}),y={...m,...b},E={account:f,batch:t,cacheTime:p,ccipRead:n,chain:r,key:s,name:a,pollingInterval:d,request:h,transport:y,type:o,uid:jd(),...i?{experimental_blockTag:i}:{}};function v(g){return w=>{const x=w(g);for(const k in E)delete x[k];const C={...g,...x};return Object.assign(C,{extend:v(C)})}}return Object.assign(E,{extend:v(E)})}class jt extends dr{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}const qh=/(rabby|trustwallet)/,Vh={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider(e){return e!=null&&e.coinbaseWalletExtension?e.coinbaseWalletExtension:As(e,"isCoinbaseWallet")}},metaMask:{id:"metaMask",name:"MetaMask",provider(e){return As(e,t=>{if(!t.isMetaMask||t.isBraveWallet&&!t._events&&!t._state)return!1;const r=["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPortal","isRabby","isTokenPocket","isTokenary","isZerion"];for(const n of r)if(t[n])return!1;return!0})}},phantom:{id:"phantom",name:"Phantom",provider(e){var t,r;return(t=e==null?void 0:e.phantom)!=null&&t.ethereum?(r=e.phantom)==null?void 0:r.ethereum:As(e,"isPhantom")}}};oi.type="injected";function oi(e={}){const{shimDisconnect:t=!0,unstable_shimAsyncInject:r}=e;function n(){const c=e.target;if(typeof c=="function"){const u=c();if(u)return u}return typeof c=="object"?c:typeof c=="string"?{...Vh[c]??{id:c,name:`${c[0].toUpperCase()}${c.slice(1)}`,provider:`is${c[0].toUpperCase()}${c.slice(1)}`}}:{id:"injected",name:"Injected",provider(u){return u==null?void 0:u.ethereum}}}let s,a,o,i;return c=>({get icon(){return n().icon},get id(){return n().id},get name(){return n().name},get supportsSimulation(){return qh.test(this.id.toLowerCase())},type:oi.type,async setup(){const u=await this.getProvider();u!=null&&u.on&&e.target&&(o||(o=this.onConnect.bind(this),u.on("connect",o)),s||(s=this.onAccountsChanged.bind(this),u.on("accountsChanged",s)))},async connect({chainId:u,isReconnecting:d}={}){var m,h,b,y,E,v;const p=await this.getProvider();if(!p)throw new jt;let f=[];if(d)f=await this.getAccounts().catch(()=>[]);else if(t)try{f=(y=(b=(h=(m=(await p.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}))[0])==null?void 0:m.caveats)==null?void 0:h[0])==null?void 0:b.value)==null?void 0:y.map(w=>Dr(w)),f.length>0&&(f=await this.getAccounts())}catch(g){const w=g;if(w.code===Ie.code)throw new Ie(w);if(w.code===Hr.code)throw w}try{!(f!=null&&f.length)&&!d&&(f=(await p.request({method:"eth_requestAccounts"})).map(x=>Dr(x))),o&&(p.removeListener("connect",o),o=void 0),s||(s=this.onAccountsChanged.bind(this),p.on("accountsChanged",s)),a||(a=this.onChainChanged.bind(this),p.on("chainChanged",a)),i||(i=this.onDisconnect.bind(this),p.on("disconnect",i));let g=await this.getChainId();if(u&&g!==u){const w=await this.switchChain({chainId:u}).catch(x=>{if(x.code===Ie.code)throw x;return{id:g}});g=(w==null?void 0:w.id)??g}return t&&await((E=c.storage)==null?void 0:E.removeItem(`${this.id}.disconnected`)),e.target||await((v=c.storage)==null?void 0:v.setItem("injected.connected",!0)),{accounts:f,chainId:g}}catch(g){const w=g;throw w.code===Ie.code?new Ie(w):w.code===Hr.code?new Hr(w):w}},async disconnect(){var d,p;const u=await this.getProvider();if(!u)throw new jt;a&&(u.removeListener("chainChanged",a),a=void 0),i&&(u.removeListener("disconnect",i),i=void 0),o||(o=this.onConnect.bind(this),u.on("connect",o));try{await p1(()=>u.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}t&&await((d=c.storage)==null?void 0:d.setItem(`${this.id}.disconnected`,!0)),e.target||await((p=c.storage)==null?void 0:p.removeItem("injected.connected"))},async getAccounts(){const u=await this.getProvider();if(!u)throw new jt;return(await u.request({method:"eth_accounts"})).map(p=>Dr(p))},async getChainId(){const u=await this.getProvider();if(!u)throw new jt;const d=await u.request({method:"eth_chainId"});return Number(d)},async getProvider(){if(typeof window>"u")return;let u;const d=n();return typeof d.provider=="function"?u=d.provider(window):typeof d.provider=="string"?u=As(window,d.provider):u=d.provider,u&&!u.removeListener&&("off"in u&&typeof u.off=="function"?u.removeListener=u.off:u.removeListener=()=>{}),u},async isAuthorized(){var u,d;try{if(t&&await((u=c.storage)==null?void 0:u.getItem(`${this.id}.disconnected`))||!e.target&&!await((d=c.storage)==null?void 0:d.getItem("injected.connected")))return!1;if(!await this.getProvider()){if(r!==void 0&&r!==!1){const h=async()=>(typeof window<"u"&&window.removeEventListener("ethereum#initialized",h),!!await this.getProvider()),b=typeof r=="number"?r:1e3;if(await Promise.race([...typeof window<"u"?[new Promise(E=>window.addEventListener("ethereum#initialized",()=>E(h()),{once:!0}))]:[],new Promise(E=>setTimeout(()=>E(h()),b))]))return!0}throw new jt}return!!(await cd(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:u,chainId:d}){var m,h,b,y;const p=await this.getProvider();if(!p)throw new jt;const f=c.chains.find(E=>E.id===d);if(!f)throw new Us(new po);try{return await Promise.all([p.request({method:"wallet_switchEthereumChain",params:[{chainId:jr(d)}]}).then(async()=>{await this.getChainId()===d&&c.emitter.emit("change",{chainId:d})}),new Promise(E=>{const v=g=>{"chainId"in g&&g.chainId===d&&(c.emitter.off("change",v),E())};c.emitter.on("change",v)})]),f}catch(E){const v=E;if(v.code===4902||((h=(m=v==null?void 0:v.data)==null?void 0:m.originalError)==null?void 0:h.code)===4902)try{const{default:g,...w}=f.blockExplorers??{};let x;u!=null&&u.blockExplorerUrls?x=u.blockExplorerUrls:g&&(x=[g.url,...Object.values(w).map(S=>S.url)]);let C;(b=u==null?void 0:u.rpcUrls)!=null&&b.length?C=u.rpcUrls:C=[((y=f.rpcUrls.default)==null?void 0:y.http[0])??""];const k={blockExplorerUrls:x,chainId:jr(d),chainName:(u==null?void 0:u.chainName)??f.name,iconUrls:u==null?void 0:u.iconUrls,nativeCurrency:(u==null?void 0:u.nativeCurrency)??f.nativeCurrency,rpcUrls:C};if(await p.request({method:"wallet_addEthereumChain",params:[k]}),await this.getChainId()!==d)throw new Ie(new Error("User rejected switch after adding network."));return f}catch(g){throw new Ie(g)}throw v.code===Ie.code?new Ie(v):new Us(v)}},async onAccountsChanged(u){var d;if(u.length===0)this.onDisconnect();else if(c.emitter.listenerCount("connect")){const p=(await this.getChainId()).toString();this.onConnect({chainId:p}),t&&await((d=c.storage)==null?void 0:d.removeItem(`${this.id}.disconnected`))}else c.emitter.emit("change",{accounts:u.map(p=>Dr(p))})},onChainChanged(u){const d=Number(u);c.emitter.emit("change",{chainId:d})},async onConnect(u){const d=await this.getAccounts();if(d.length===0)return;const p=Number(u.chainId);c.emitter.emit("connect",{accounts:d,chainId:p});const f=await this.getProvider();f&&(o&&(f.removeListener("connect",o),o=void 0),s||(s=this.onAccountsChanged.bind(this),f.on("accountsChanged",s)),a||(a=this.onChainChanged.bind(this),f.on("chainChanged",a)),i||(i=this.onDisconnect.bind(this),f.on("disconnect",i)))},async onDisconnect(u){const d=await this.getProvider();u&&u.code===1013&&d&&(await this.getAccounts()).length||(c.emitter.emit("disconnect"),d&&(a&&(d.removeListener("chainChanged",a),a=void 0),i&&(d.removeListener("disconnect",i),i=void 0),o||(o=this.onConnect.bind(this),d.on("connect",o))))}})}function As(e,t){function r(s){return typeof t=="function"?t(s):typeof t=="string"?s[t]:!0}const n=e.ethereum;if(n!=null&&n.providers)return n.providers.find(s=>r(s));if(n&&r(n))return n}function Kh(e){if(typeof window>"u")return;const t=r=>e(r.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)}function Wh(){const e=new Set;let t=[];const r=()=>Kh(s=>{t.some(({info:a})=>a.uuid===s.info.uuid)||(t=[...t,s],e.forEach(a=>a(t,{added:[s]})))});let n=r();return{_listeners(){return e},clear(){e.forEach(s=>s([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),n==null||n()},findProvider({rdns:s}){return t.find(a=>a.info.rdns===s)},getProviders(){return t},reset(){this.clear(),n==null||n(),n=r()},subscribe(s,{emitImmediately:a}={}){return e.add(s),a&&s(t,{added:t}),()=>e.delete(s)}}}const Zh={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_BOOST_MAINNET_SIGNER_EOA:"0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480",VITE_BOOST_TESTNET_SIGNER_EOA:"0xd63167e9db11B108940b2E8236581F961f33f396"},Xh=e=>(t,r,n)=>{const s=n.subscribe;return n.subscribe=(o,i,c)=>{let u=o;if(i){const d=(c==null?void 0:c.equalityFn)||Object.is;let p=o(n.getState());u=f=>{const m=o(f);if(!d(p,m)){const h=p;i(p=m,h)}},c!=null&&c.fireImmediately&&i(p,p)}return s(u)},e(t,r,n)},Jh=Xh;function Yh(e,t){let r;try{r=e()}catch{return}return{getItem:s=>{var a;const o=c=>c===null?null:JSON.parse(c,void 0),i=(a=r.getItem(s))!=null?a:null;return i instanceof Promise?i.then(o):o(i)},setItem:(s,a)=>r.setItem(s,JSON.stringify(a,void 0)),removeItem:s=>r.removeItem(s)}}const Wr=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(n){return Wr(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return Wr(n)(r)}}}},Qh=(e,t)=>(r,n,s)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:y=>y,version:0,merge:(y,E)=>({...E,...y}),...t},o=!1;const i=new Set,c=new Set;let u;try{u=a.getStorage()}catch{}if(!u)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...y)},n,s);const d=Wr(a.serialize),p=()=>{const y=a.partialize({...n()});let E;const v=d({state:y,version:a.version}).then(g=>u.setItem(a.name,g)).catch(g=>{E=g});if(E)throw E;return v},f=s.setState;s.setState=(y,E)=>{f(y,E),p()};const m=e((...y)=>{r(...y),p()},n,s);let h;const b=()=>{var y;if(!u)return;o=!1,i.forEach(v=>v(n()));const E=((y=a.onRehydrateStorage)==null?void 0:y.call(a,n()))||void 0;return Wr(u.getItem.bind(u))(a.name).then(v=>{if(v)return a.deserialize(v)}).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==a.version){if(a.migrate)return a.migrate(v.state,v.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return v.state}).then(v=>{var g;return h=a.merge(v,(g=n())!=null?g:m),r(h,!0),p()}).then(()=>{E==null||E(h,void 0),o=!0,c.forEach(v=>v(h))}).catch(v=>{E==null||E(void 0,v)})};return s.persist={setOptions:y=>{a={...a,...y},y.getStorage&&(u=y.getStorage())},clearStorage:()=>{u==null||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>b(),hasHydrated:()=>o,onHydrate:y=>(i.add(y),()=>{i.delete(y)}),onFinishHydration:y=>(c.add(y),()=>{c.delete(y)})},b(),h||m},eb=(e,t)=>(r,n,s)=>{let a={storage:Yh(()=>localStorage),partialize:b=>b,version:0,merge:(b,y)=>({...y,...b}),...t},o=!1;const i=new Set,c=new Set;let u=a.storage;if(!u)return e((...b)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...b)},n,s);const d=()=>{const b=a.partialize({...n()});return u.setItem(a.name,{state:b,version:a.version})},p=s.setState;s.setState=(b,y)=>{p(b,y),d()};const f=e((...b)=>{r(...b),d()},n,s);let m;const h=()=>{var b,y;if(!u)return;o=!1,i.forEach(v=>{var g;return v((g=n())!=null?g:f)});const E=((y=a.onRehydrateStorage)==null?void 0:y.call(a,(b=n())!=null?b:f))||void 0;return Wr(u.getItem.bind(u))(a.name).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==a.version){if(a.migrate)return a.migrate(v.state,v.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return v.state}).then(v=>{var g;return m=a.merge(v,(g=n())!=null?g:f),r(m,!0),d()}).then(()=>{E==null||E(m,void 0),m=n(),o=!0,c.forEach(v=>v(m))}).catch(v=>{E==null||E(void 0,v)})};return s.persist={setOptions:b=>{a={...a,...b},b.storage&&(u=b.storage)},clearStorage:()=>{u==null||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:b=>(i.add(b),()=>{i.delete(b)}),onFinishHydration:b=>(c.add(b),()=>{c.delete(b)})},a.skipHydration||h(),m||f},tb=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((Zh?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Qh(e,t)):eb(e,t),rb=tb,nb={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_BOOST_MAINNET_SIGNER_EOA:"0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480",VITE_BOOST_TESTNET_SIGNER_EOA:"0xd63167e9db11B108940b2E8236581F961f33f396"},Sc=e=>{let t;const r=new Set,n=(c,u)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const p=t;t=u??typeof d!="object"?d:Object.assign({},t,d),r.forEach(f=>f(t,p))}},s=()=>t,i={setState:n,getState:s,subscribe:c=>(r.add(c),()=>r.delete(c)),destroy:()=>{(nb?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(n,s,i),i},ka=e=>e?Sc(e):Sc;function qd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vd={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function s(c,u,d){this.fn=c,this.context=u,this.once=d||!1}function a(c,u,d,p,f){if(typeof d!="function")throw new TypeError("The listener must be a function");var m=new s(d,p||c,f),h=r?r+u:u;return c._events[h]?c._events[h].fn?c._events[h]=[c._events[h],m]:c._events[h].push(m):(c._events[h]=m,c._eventsCount++),c}function o(c,u){--c._eventsCount===0?c._events=new n:delete c._events[u]}function i(){this._events=new n,this._eventsCount=0}i.prototype.eventNames=function(){var u=[],d,p;if(this._eventsCount===0)return u;for(p in d=this._events)t.call(d,p)&&u.push(r?p.slice(1):p);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},i.prototype.listeners=function(u){var d=r?r+u:u,p=this._events[d];if(!p)return[];if(p.fn)return[p.fn];for(var f=0,m=p.length,h=new Array(m);f<m;f++)h[f]=p[f].fn;return h},i.prototype.listenerCount=function(u){var d=r?r+u:u,p=this._events[d];return p?p.fn?1:p.length:0},i.prototype.emit=function(u,d,p,f,m,h){var b=r?r+u:u;if(!this._events[b])return!1;var y=this._events[b],E=arguments.length,v,g;if(y.fn){switch(y.once&&this.removeListener(u,y.fn,void 0,!0),E){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,d),!0;case 3:return y.fn.call(y.context,d,p),!0;case 4:return y.fn.call(y.context,d,p,f),!0;case 5:return y.fn.call(y.context,d,p,f,m),!0;case 6:return y.fn.call(y.context,d,p,f,m,h),!0}for(g=1,v=new Array(E-1);g<E;g++)v[g-1]=arguments[g];y.fn.apply(y.context,v)}else{var w=y.length,x;for(g=0;g<w;g++)switch(y[g].once&&this.removeListener(u,y[g].fn,void 0,!0),E){case 1:y[g].fn.call(y[g].context);break;case 2:y[g].fn.call(y[g].context,d);break;case 3:y[g].fn.call(y[g].context,d,p);break;case 4:y[g].fn.call(y[g].context,d,p,f);break;default:if(!v)for(x=1,v=new Array(E-1);x<E;x++)v[x-1]=arguments[x];y[g].fn.apply(y[g].context,v)}}return!0},i.prototype.on=function(u,d,p){return a(this,u,d,p,!1)},i.prototype.once=function(u,d,p){return a(this,u,d,p,!0)},i.prototype.removeListener=function(u,d,p,f){var m=r?r+u:u;if(!this._events[m])return this;if(!d)return o(this,m),this;var h=this._events[m];if(h.fn)h.fn===d&&(!f||h.once)&&(!p||h.context===p)&&o(this,m);else{for(var b=0,y=[],E=h.length;b<E;b++)(h[b].fn!==d||f&&!h[b].once||p&&h[b].context!==p)&&y.push(h[b]);y.length?this._events[m]=y.length===1?y[0]:y:o(this,m)}return this},i.prototype.removeAllListeners=function(u){var d;return u?(d=r?r+u:u,this._events[d]&&o(this,d)):(this._events=new n,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prefixed=r,i.EventEmitter=i,e.exports=i})(Vd);var sb=Vd.exports;const ab=qd(sb);class ob{constructor(t){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new ab})}on(t,r){this._emitter.on(t,r)}once(t,r){this._emitter.once(t,r)}off(t,r){this._emitter.off(t,r)}emit(t,...r){const n=r[0];this._emitter.emit(t,{uid:this.uid,...n})}listenerCount(t){return this._emitter.listenerCount(t)}}function ib(e){return new ob(e)}function cb(e,t){return JSON.parse(e,(r,n)=>{let s=n;return(s==null?void 0:s.__type)==="bigint"&&(s=BigInt(s.value)),(s==null?void 0:s.__type)==="Map"&&(s=new Map(s.value)),(t==null?void 0:t(r,s))??s})}function Bc(e,t){return e.slice(0,t).join(".")||"."}function Uc(e,t){const{length:r}=e;for(let n=0;n<r;++n)if(e[n]===t)return n+1;return 0}function lb(e,t){const r=typeof e=="function",n=typeof t=="function",s=[],a=[];return function(i,c){if(typeof c=="object")if(s.length){const u=Uc(s,this);u===0?s[s.length]=this:(s.splice(u),a.splice(u)),a[a.length]=i;const d=Uc(s,c);if(d!==0)return n?t.call(this,i,c,Bc(a,d)):`[ref=${Bc(a,d)}]`}else s[0]=c,a[0]=i;return r?e.call(this,i,c):c}}function ub(e,t,r,n){return JSON.stringify(e,lb((s,a)=>{let o=a;return typeof o=="bigint"&&(o={__type:"bigint",value:a.toString()}),o instanceof Map&&(o={__type:"Map",value:Array.from(a.entries())}),(t==null?void 0:t(s,o))??o},n),r??void 0)}function db(e){const{deserialize:t=cb,key:r="wagmi",serialize:n=ub,storage:s=Kd}=e;function a(o){return o instanceof Promise?o.then(i=>i).catch(()=>null):o}return{...s,key:r,async getItem(o,i){const c=s.getItem(`${r}.${o}`),u=await a(c);return u?t(u)??null:i??null},async setItem(o,i){const c=`${r}.${o}`;i===null?await a(s.removeItem(c)):await a(s.setItem(c,n(i)))},async removeItem(o){await a(s.removeItem(`${r}.${o}`))}}}const Kd={getItem:()=>null,setItem:()=>{},removeItem:()=>{}},mo=256;let jn=mo,Gn;function pb(e=11){if(!Gn||jn+e>mo*2){Gn="",jn=0;for(let t=0;t<mo;t++)Gn+=(256+Math.random()*256|0).toString(16).substring(1)}return Gn.substring(jn,jn+++e)}function fb(e){const{multiInjectedProviderDiscovery:t=!0,storage:r=db({storage:typeof window<"u"&&window.localStorage?window.localStorage:Kd}),syncConnectedChain:n=!0,ssr:s=!1,...a}=e,o=typeof window<"u"&&t?Wh():void 0,i=ka(()=>a.chains),c=ka(()=>[...a.connectors??[],...s?[]:(o==null?void 0:o.getProviders().map(d))??[]].map(u));function u(x){var T;const C=ib(pb()),k={...x({emitter:C,chains:i.getState(),storage:r,transports:a.transports}),emitter:C,uid:C.uid};return C.on("connect",g),(T=k.setup)==null||T.call(k),k}function d(x){const{info:C}=x,k=x.provider;return oi({target:{...C,id:C.rdns,provider:k}})}const p=new Map;function f(x={}){const C=x.chainId??y.getState().chainId,k=i.getState().find(S=>S.id===C);if(x.chainId&&!k)throw new po;{const S=p.get(y.getState().chainId);if(S&&!k)return S;if(!k)throw new po}{const S=p.get(C);if(S)return S}let T;if(a.client)T=a.client({chain:k});else{const S=k.id,O=i.getState().map(I=>I.id),U={},z=Object.entries(a);for(const[I,L]of z)if(!(I==="chains"||I==="client"||I==="connectors"||I==="transports"))if(typeof L=="object")if(S in L)U[I]=L[S];else{if(O.some($=>$ in L))continue;U[I]=L}else U[I]=L;T=Gd({...U,chain:k,batch:U.batch??{multicall:!0},transport:I=>a.transports[S]({...I,connectors:c})})}return p.set(C,T),T}function m(){return{chainId:i.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let h;const b="0.0.0-canary-";Ts.startsWith(b)?h=Number.parseInt(Ts.replace(b,"")):h=Number.parseInt(Ts.split(".")[0]??"0");const y=ka(Jh(r?rb(m,{migrate(x,C){if(C===h)return x;const k=m(),T=E(x,k.chainId);return{...k,chainId:T}},name:"store",partialize(x){return{connections:{__type:"Map",value:Array.from(x.connections.entries()).map(([C,k])=>{const{id:T,name:S,type:O,uid:U}=k.connector;return[C,{...k,connector:{id:T,name:S,type:O,uid:U}}]})},chainId:x.chainId,current:x.current}},merge(x,C){typeof x=="object"&&x&&"status"in x&&delete x.status;const k=E(x,C.chainId);return{...C,...x,chainId:k}},skipHydration:s,storage:r,version:h}):m));function E(x,C){return x&&typeof x=="object"&&"chainId"in x&&typeof x.chainId=="number"&&i.getState().some(k=>k.id===x.chainId)?x.chainId:C}n&&y.subscribe(({connections:x,current:C})=>{var k;return C?(k=x.get(C))==null?void 0:k.chainId:void 0},x=>{if(i.getState().some(k=>k.id===x))return y.setState(k=>({...k,chainId:x??k.chainId}))}),o==null||o.subscribe(x=>{const C=new Map;for(const T of c.getState())C.set(T.id,!0);const k=[];for(const T of x){const S=u(d(T));C.has(S.id)||k.push(S)}r&&!y.persist.hasHydrated()||c.setState(T=>[...T,...k],!0)});function v(x){y.setState(C=>{const k=C.connections.get(x.uid);return k?{...C,connections:new Map(C.connections).set(x.uid,{accounts:x.accounts??k.accounts,chainId:x.chainId??k.chainId,connector:k.connector})}:C})}function g(x){y.getState().status==="connecting"||y.getState().status==="reconnecting"||y.setState(C=>{const k=c.getState().find(T=>T.uid===x.uid);return k?(k.emitter.listenerCount("connect")&&k.emitter.off("connect",v),k.emitter.listenerCount("change")||k.emitter.on("change",v),k.emitter.listenerCount("disconnect")||k.emitter.on("disconnect",w),{...C,connections:new Map(C.connections).set(x.uid,{accounts:x.accounts,chainId:x.chainId,connector:k}),current:x.uid,status:"connected"}):C})}function w(x){y.setState(C=>{const k=C.connections.get(x.uid);if(k){const S=k.connector;S.emitter.listenerCount("change")&&k.connector.emitter.off("change",v),S.emitter.listenerCount("disconnect")&&k.connector.emitter.off("disconnect",w),S.emitter.listenerCount("connect")||k.connector.emitter.on("connect",g)}if(C.connections.delete(x.uid),C.connections.size===0)return{...C,connections:new Map,current:null,status:"disconnected"};const T=C.connections.values().next().value;return{...C,connections:new Map(C.connections),current:T.connector.uid}})}return{get chains(){return i.getState()},get connectors(){return c.getState()},storage:r,getClient:f,get state(){return y.getState()},setState(x){let C;typeof x=="function"?C=x(y.getState()):C=x;const k=m();typeof C!="object"&&(C=k),Object.keys(k).some(S=>!(S in C))&&(C=k),y.setState(C,!0)},subscribe(x,C,k){return y.subscribe(x,C,k?{...k,fireImmediately:k.emitImmediately}:void 0)},_internal:{mipd:o,store:y,ssr:!!s,syncConnectedChain:n,transports:a.transports,chains:{setState(x){const C=typeof x=="function"?x(i.getState()):x;if(C.length!==0)return i.setState(C,!0)},subscribe(x){return i.subscribe(x)}},connectors:{providerDetailToConnector:d,setup:u,setState(x){return c.setState(typeof x=="function"?x(c.getState()):x,!0)},subscribe(x){return c.subscribe(x)}},events:{change:v,connect:g,disconnect:w}}}}function D(e,t,r){const n=e[t.name];if(typeof n=="function")return n;const s=e[r];return typeof s=="function"?s:a=>t(e,a)}function Oe(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new Ab(e.type);return`${e.name}(${Ks(e.inputs,{includeName:t})})`}function Ks(e,{includeName:t=!1}={}){return e?e.map(r=>mb(r,{includeName:t})).join(t?", ":","):""}function mb(e,{includeName:t}){return e.type.startsWith("tuple")?`(${Ks(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}function Ue(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function W(e){return Ue(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const Wd="2.41.2";let Tr={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${Wd}`};class B extends Error{constructor(t,r={}){var i;const n=(()=>{var c;return r.cause instanceof B?r.cause.details:(c=r.cause)!=null&&c.message?r.cause.message:r.details})(),s=r.cause instanceof B&&r.cause.docsPath||r.docsPath,a=(i=Tr.getDocsUrl)==null?void 0:i.call(Tr,{...r,docsPath:s}),o=[t||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...n?[`Details: ${n}`]:[],...Tr.version?[`Version: ${Tr.version}`]:[]].join(`
|
|
9
|
+
`);super(o,r.cause?{cause:r.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=n,this.docsPath=s,this.metaMessages=r.metaMessages,this.name=r.name??this.name,this.shortMessage=t,this.version=Wd}walk(t){return Zd(this,t)}}function Zd(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?Zd(e.cause,t):t?null:e}class hb extends B{constructor({docsPath:t}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
|
|
10
|
+
`),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class Pc extends B{constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
|
|
11
|
+
`),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}class Xd extends B{constructor({data:t,params:r,size:n}){super([`Data size of ${n} bytes is too small for given parameters.`].join(`
|
|
12
|
+
`),{metaMessages:[`Params: (${Ks(r,{includeName:!0})})`,`Data: ${t} (${n} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=r,this.size=n}}class En extends B{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class bb extends B{constructor({expectedLength:t,givenLength:r,type:n}){super([`ABI encoding array length mismatch for type ${n}.`,`Expected length: ${t}`,`Given length: ${r}`].join(`
|
|
13
|
+
`),{name:"AbiEncodingArrayLengthMismatchError"})}}class yb extends B{constructor({expectedSize:t,value:r}){super(`Size of bytes "${r}" (bytes${W(r)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class xb extends B{constructor({expectedLength:t,givenLength:r}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${r}`].join(`
|
|
14
|
+
`),{name:"AbiEncodingLengthMismatchError"})}}class gb extends B{constructor(t,{docsPath:r}){super([`Arguments (\`args\`) were provided to "${t}", but "${t}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join(`
|
|
15
|
+
`),{docsPath:r,name:"AbiErrorInputsNotFoundError"})}}class Ic extends B{constructor(t,{docsPath:r}={}){super([`Error ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(`
|
|
16
|
+
`),{docsPath:r,name:"AbiErrorNotFoundError"})}}class Jd extends B{constructor(t,{docsPath:r}){super([`Encoded error signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${t}.`].join(`
|
|
17
|
+
`),{docsPath:r,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class wb extends B{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t,name:"AbiEventSignatureEmptyTopicsError"})}}class Yd extends B{constructor(t,{docsPath:r}){super([`Encoded event signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join(`
|
|
18
|
+
`),{docsPath:r,name:"AbiEventSignatureNotFoundError"})}}class Fc extends B{constructor(t,{docsPath:r}={}){super([`Event ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(`
|
|
19
|
+
`),{docsPath:r,name:"AbiEventNotFoundError"})}}class rr extends B{constructor(t,{docsPath:r}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
|
|
20
|
+
`),{docsPath:r,name:"AbiFunctionNotFoundError"})}}class Qd extends B{constructor(t,{docsPath:r}){super([`Function "${t}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join(`
|
|
21
|
+
`),{docsPath:r,name:"AbiFunctionOutputsNotFoundError"})}}class Eb extends B{constructor(t,{docsPath:r}){super([`Encoded function signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join(`
|
|
22
|
+
`),{docsPath:r,name:"AbiFunctionSignatureNotFoundError"})}}class kb extends B{constructor(t,r){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${Oe(t.abiItem)}\`, and`,`\`${r.type}\` in \`${Oe(r.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class vb extends B{constructor({expectedSize:t,givenSize:r}){super(`Expected bytes${t}, got bytes${r}.`,{name:"BytesSizeMismatchError"})}}class Zr extends B{constructor({abiItem:t,data:r,params:n,size:s}){super([`Data size of ${s} bytes is too small for non-indexed event parameters.`].join(`
|
|
23
|
+
`),{metaMessages:[`Params: (${Ks(n,{includeName:!0})})`,`Data: ${r} (${s} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=r,this.params=n,this.size=s}}class Ws extends B{constructor({abiItem:t,param:r}){super([`Expected a topic for indexed event parameter${r.name?` "${r.name}"`:""} on event "${Oe(t,{includeName:!0})}".`].join(`
|
|
24
|
+
`),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class Cb extends B{constructor(t,{docsPath:r}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
|
|
25
|
+
`),{docsPath:r,name:"InvalidAbiEncodingType"})}}class Tb extends B{constructor(t,{docsPath:r}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
|
|
26
|
+
`),{docsPath:r,name:"InvalidAbiDecodingType"})}}class ep extends B{constructor(t){super([`Value "${t}" is not a valid array.`].join(`
|
|
27
|
+
`),{name:"InvalidArrayError"})}}class Ab extends B{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
|
|
28
|
+
`),{name:"InvalidDefinitionTypeError"})}}class Sb extends B{constructor(t){super(`Filter type "${t}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}class tp extends B{constructor({offset:t,position:r,size:n}){super(`Slice ${r==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}}class rp extends B{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${r}).`,{name:"SizeExceedsPaddingSizeError"})}}class $c extends B{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${r} ${n} long, but is ${t} ${n} long.`,{name:"InvalidBytesLengthError"})}}function bt(e,{dir:t,size:r=32}={}){return typeof e=="string"?ft(e,{dir:t,size:r}):Bb(e,{dir:t,size:r})}function ft(e,{dir:t,size:r=32}={}){if(r===null)return e;const n=e.replace("0x","");if(n.length>r*2)throw new rp({size:Math.ceil(n.length/2),targetSize:r,type:"hex"});return`0x${n[t==="right"?"padEnd":"padStart"](r*2,"0")}`}function Bb(e,{dir:t,size:r=32}={}){if(r===null)return e;if(e.length>r)throw new rp({size:e.length,targetSize:r,type:"bytes"});const n=new Uint8Array(r);for(let s=0;s<r;s++){const a=t==="right";n[a?s:r-s-1]=e[a?s:e.length-s-1]}return n}class np extends B{constructor({max:t,min:r,signed:n,size:s,value:a}){super(`Number "${a}" is not in safe ${s?`${s*8}-bit ${n?"signed":"unsigned"} `:""}integer range ${t?`(${r} to ${t})`:`(above ${r})`}`,{name:"IntegerOutOfRangeError"})}}class Ub extends B{constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class Pb extends B{constructor(t){super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class Ib extends B{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed ${r} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}}function pe(e,{dir:t="left"}={}){let r=typeof e=="string"?e.replace("0x",""):e,n=0;for(let s=0;s<r.length-1&&r[t==="left"?s:r.length-s-1].toString()==="0";s++)n++;return r=t==="left"?r.slice(n):r.slice(0,r.length-n),typeof e=="string"?(r.length===1&&t==="right"&&(r=`${r}0`),`0x${r.length%2===1?`0${r}`:r}`):r}function De(e,{size:t}){if(W(e)>t)throw new Ib({givenSize:W(e),maxSize:t})}function q(e,t={}){const{signed:r}=t;t.size&&De(e,{size:t.size});const n=BigInt(e);if(!r)return n;const s=(e.length-2)/2,a=(1n<<BigInt(s)*8n-1n)-1n;return n<=a?n:n-BigInt(`0x${"f".padStart(s*2,"f")}`)-1n}function Fb(e,t={}){let r=e;if(t.size&&(De(r,{size:t.size}),r=pe(r)),pe(r)==="0x00")return!1;if(pe(r)==="0x01")return!0;throw new Pb(r)}function ue(e,t={}){return Number(q(e,t))}const $b=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function j(e,t={}){return typeof e=="number"||typeof e=="bigint"?P(e,t):typeof e=="string"?nr(e,t):typeof e=="boolean"?sp(e,t):Y(e,t)}function sp(e,t={}){const r=`0x${Number(e)}`;return typeof t.size=="number"?(De(r,{size:t.size}),bt(r,{size:t.size})):r}function Y(e,t={}){let r="";for(let s=0;s<e.length;s++)r+=$b[e[s]];const n=`0x${r}`;return typeof t.size=="number"?(De(n,{size:t.size}),bt(n,{dir:"right",size:t.size})):n}function P(e,t={}){const{signed:r,size:n}=t,s=BigInt(e);let a;n?r?a=(1n<<BigInt(n)*8n-1n)-1n:a=2n**(BigInt(n)*8n)-1n:typeof e=="number"&&(a=BigInt(Number.MAX_SAFE_INTEGER));const o=typeof a=="bigint"&&r?-a-1n:0;if(a&&s>a||s<o){const c=typeof e=="bigint"?"n":"";throw new np({max:a?`${a}${c}`:void 0,min:`${o}${c}`,signed:r,size:n,value:`${e}${c}`})}const i=`0x${(r&&s<0?(1n<<BigInt(n*8))+BigInt(s):s).toString(16)}`;return n?bt(i,{size:n}):i}const Mb=new TextEncoder;function nr(e,t={}){const r=Mb.encode(e);return Y(r,t)}const zb=new TextEncoder;function tt(e,t={}){return typeof e=="number"||typeof e=="bigint"?Nb(e,t):typeof e=="boolean"?Ob(e,t):Ue(e)?fe(e,t):St(e,t)}function Ob(e,t={}){const r=new Uint8Array(1);return r[0]=Number(e),typeof t.size=="number"?(De(r,{size:t.size}),bt(r,{size:t.size})):r}const Je={zero:48,nine:57,A:65,F:70,a:97,f:102};function Mc(e){if(e>=Je.zero&&e<=Je.nine)return e-Je.zero;if(e>=Je.A&&e<=Je.F)return e-(Je.A-10);if(e>=Je.a&&e<=Je.f)return e-(Je.a-10)}function fe(e,t={}){let r=e;t.size&&(De(r,{size:t.size}),r=bt(r,{dir:"right",size:t.size}));let n=r.slice(2);n.length%2&&(n=`0${n}`);const s=n.length/2,a=new Uint8Array(s);for(let o=0,i=0;o<s;o++){const c=Mc(n.charCodeAt(i++)),u=Mc(n.charCodeAt(i++));if(c===void 0||u===void 0)throw new B(`Invalid byte sequence ("${n[i-2]}${n[i-1]}" in "${n}").`);a[o]=c*16+u}return a}function Nb(e,t){const r=P(e,t);return fe(r)}function St(e,t={}){const r=zb.encode(e);return typeof t.size=="number"?(De(r,{size:t.size}),bt(r,{dir:"right",size:t.size})):r}function te(e,t){const r=t||"hex",n=Ds(Ue(e,{strict:!1})?tt(e):e);return r==="bytes"?n:j(n)}const Rb=e=>te(tt(e));function Db(e){return Rb(e)}function _b(e){let t=!0,r="",n=0,s="",a=!1;for(let o=0;o<e.length;o++){const i=e[o];if(["(",")",","].includes(i)&&(t=!0),i==="("&&n++,i===")"&&n--,!!t){if(n===0){if(i===" "&&["event","function",""].includes(s))s="";else if(s+=i,i===")"){a=!0;break}continue}if(i===" "){e[o-1]!==","&&r!==","&&r!==",("&&(r="",t=!1);continue}s+=i,r+=i}}if(!a)throw new B("Unable to normalize signature.");return s}const Lb=e=>{const t=typeof e=="string"?e:Bs(e);return _b(t)};function ap(e){return Db(Lb(e))}const kn=ap;class Z extends B{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}class pr extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const r=super.get(t);return super.has(t)&&r!==void 0&&(this.delete(t),super.set(t,r)),r}set(t,r){if(super.set(t,r),this.maxSize&&this.size>this.maxSize){const n=this.keys().next().value;n&&this.delete(n)}return this}}const va=new pr(8192);function vn(e,t){if(va.has(`${e}.${t}`))return va.get(`${e}.${t}`);const r=e.substring(2).toLowerCase(),n=te(St(r),"bytes"),s=r.split("");for(let o=0;o<40;o+=2)n[o>>1]>>4>=8&&s[o]&&(s[o]=s[o].toUpperCase()),(n[o>>1]&15)>=8&&s[o+1]&&(s[o+1]=s[o+1].toUpperCase());const a=`0x${s.join("")}`;return va.set(`${e}.${t}`,a),a}function ii(e,t){if(!V(e,{strict:!1}))throw new Z({address:e});return vn(e,t)}const Hb=/^0x[a-fA-F0-9]{40}$/,Ca=new pr(8192);function V(e,t){const{strict:r=!0}=t??{},n=`${e}.${r}`;if(Ca.has(n))return Ca.get(n);const s=Hb.test(e)?e.toLowerCase()===e?!0:r?vn(e)===e:!0:!1;return Ca.set(n,s),s}function Ee(e){return typeof e[0]=="string"?ve(e):jb(e)}function jb(e){let t=0;for(const s of e)t+=s.length;const r=new Uint8Array(t);let n=0;for(const s of e)r.set(s,n),n+=s.length;return r}function ve(e){return`0x${e.reduce((t,r)=>t+r.replace("0x",""),"")}`}function It(e,t,r,{strict:n}={}){return Ue(e,{strict:!1})?ho(e,t,r,{strict:n}):cp(e,t,r,{strict:n})}function op(e,t){if(typeof t=="number"&&t>0&&t>W(e)-1)throw new tp({offset:t,position:"start",size:W(e)})}function ip(e,t,r){if(typeof t=="number"&&typeof r=="number"&&W(e)!==r-t)throw new tp({offset:r,position:"end",size:W(e)})}function cp(e,t,r,{strict:n}={}){op(e,t);const s=e.slice(t,r);return n&&ip(s,t,r),s}function ho(e,t,r,{strict:n}={}){op(e,t);const s=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&ip(s,t,r),s}const Gb=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,lp=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function yt(e,t){if(e.length!==t.length)throw new xb({expectedLength:e.length,givenLength:t.length});const r=qb({params:e,values:t}),n=li(r);return n.length===0?"0x":n}function qb({params:e,values:t}){const r=[];for(let n=0;n<e.length;n++)r.push(ci({param:e[n],value:t[n]}));return r}function ci({param:e,value:t}){const r=ui(e.type);if(r){const[n,s]=r;return Kb(t,{length:n,param:{...e,type:s}})}if(e.type==="tuple")return Yb(t,{param:e});if(e.type==="address")return Vb(t);if(e.type==="bool")return Zb(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const n=e.type.startsWith("int"),[,,s="256"]=lp.exec(e.type)??[];return Xb(t,{signed:n,size:Number(s)})}if(e.type.startsWith("bytes"))return Wb(t,{param:e});if(e.type==="string")return Jb(t);throw new Cb(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function li(e){let t=0;for(let a=0;a<e.length;a++){const{dynamic:o,encoded:i}=e[a];o?t+=32:t+=W(i)}const r=[],n=[];let s=0;for(let a=0;a<e.length;a++){const{dynamic:o,encoded:i}=e[a];o?(r.push(P(t+s,{size:32})),n.push(i),s+=W(i)):r.push(i)}return Ee([...r,...n])}function Vb(e){if(!V(e))throw new Z({address:e});return{dynamic:!1,encoded:ft(e.toLowerCase())}}function Kb(e,{length:t,param:r}){const n=t===null;if(!Array.isArray(e))throw new ep(e);if(!n&&e.length!==t)throw new bb({expectedLength:t,givenLength:e.length,type:`${r.type}[${t}]`});let s=!1;const a=[];for(let o=0;o<e.length;o++){const i=ci({param:r,value:e[o]});i.dynamic&&(s=!0),a.push(i)}if(n||s){const o=li(a);if(n){const i=P(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?Ee([i,o]):i}}if(s)return{dynamic:!0,encoded:o}}return{dynamic:!1,encoded:Ee(a.map(({encoded:o})=>o))}}function Wb(e,{param:t}){const[,r]=t.type.split("bytes"),n=W(e);if(!r){let s=e;return n%32!==0&&(s=ft(s,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:Ee([ft(P(n,{size:32})),s])}}if(n!==Number.parseInt(r,10))throw new yb({expectedSize:Number.parseInt(r,10),value:e});return{dynamic:!1,encoded:ft(e,{dir:"right"})}}function Zb(e){if(typeof e!="boolean")throw new B(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:ft(sp(e))}}function Xb(e,{signed:t,size:r=256}){if(typeof r=="number"){const n=2n**(BigInt(r)-(t?1n:0n))-1n,s=t?-n-1n:0n;if(e>n||e<s)throw new np({max:n.toString(),min:s.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:P(e,{size:32,signed:t})}}function Jb(e){const t=nr(e),r=Math.ceil(W(t)/32),n=[];for(let s=0;s<r;s++)n.push(ft(It(t,s*32,(s+1)*32),{dir:"right"}));return{dynamic:!0,encoded:Ee([ft(P(W(t),{size:32})),...n])}}function Yb(e,{param:t}){let r=!1;const n=[];for(let s=0;s<t.components.length;s++){const a=t.components[s],o=Array.isArray(e)?s:a.name,i=ci({param:a,value:e[o]});n.push(i),i.dynamic&&(r=!0)}return{dynamic:r,encoded:r?li(n):Ee(n.map(({encoded:s})=>s))}}function ui(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}const fr=e=>It(ap(e),0,4);function zt(e){const{abi:t,args:r=[],name:n}=e,s=Ue(n,{strict:!1}),a=t.filter(i=>s?i.type==="function"?fr(i)===n:i.type==="event"?kn(i)===n:!1:"name"in i&&i.name===n);if(a.length===0)return;if(a.length===1)return a[0];let o;for(const i of a){if(!("inputs"in i))continue;if(!r||r.length===0){if(!i.inputs||i.inputs.length===0)return i;continue}if(!i.inputs||i.inputs.length===0||i.inputs.length!==r.length)continue;if(r.every((u,d)=>{const p="inputs"in i&&i.inputs[d];return p?bo(u,p):!1})){if(o&&"inputs"in o&&o.inputs){const u=up(i.inputs,o.inputs,r);if(u)throw new kb({abiItem:i,type:u[0]},{abiItem:o,type:u[1]})}o=i}}return o||a[0]}function bo(e,t){const r=typeof e,n=t.type;switch(n){case"address":return V(e,{strict:!1});case"bool":return r==="boolean";case"function":return r==="string";case"string":return r==="string";default:return n==="tuple"&&"components"in t?Object.values(t.components).every((s,a)=>bo(Object.values(e)[a],s)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n)?r==="number"||r==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?r==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n)?Array.isArray(e)&&e.every(s=>bo(s,{...t,type:n.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function up(e,t,r){for(const n in e){const s=e[n],a=t[n];if(s.type==="tuple"&&a.type==="tuple"&&"components"in s&&"components"in a)return up(s.components,a.components,r[n]);const o=[s.type,a.type];if(o.includes("address")&&o.includes("bytes20")?!0:o.includes("address")&&o.includes("string")?V(r[n],{strict:!1}):o.includes("address")&&o.includes("bytes")?V(r[n],{strict:!1}):!1)return o}}const zc="/docs/contract/encodeEventTopics";function Cn(e){var c;const{abi:t,eventName:r,args:n}=e;let s=t[0];if(r){const u=zt({abi:t,name:r});if(!u)throw new Fc(r,{docsPath:zc});s=u}if(s.type!=="event")throw new Fc(void 0,{docsPath:zc});const a=Oe(s),o=kn(a);let i=[];if(n&&"inputs"in s){const u=(c=s.inputs)==null?void 0:c.filter(p=>"indexed"in p&&p.indexed),d=Array.isArray(n)?n:Object.values(n).length>0?(u==null?void 0:u.map(p=>n[p.name]))??[]:[];d.length>0&&(i=(u==null?void 0:u.map((p,f)=>Array.isArray(d[f])?d[f].map((m,h)=>Oc({param:p,value:d[f][h]})):typeof d[f]<"u"&&d[f]!==null?Oc({param:p,value:d[f]}):null))??[])}return[o,...i]}function Oc({param:e,value:t}){if(e.type==="string"||e.type==="bytes")return te(tt(t));if(e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/))throw new Sb(e.type);return yt([e],[t])}function Zs(e,{method:t}){var n,s;const r={};return e.transport.type==="fallback"&&((s=(n=e.transport).onResponse)==null||s.call(n,({method:a,response:o,status:i,transport:c})=>{i==="success"&&t===a&&(r[o]=c.request)})),a=>r[a]||e.request}async function dp(e,t){const{address:r,abi:n,args:s,eventName:a,fromBlock:o,strict:i,toBlock:c}=t,u=Zs(e,{method:"eth_newFilter"}),d=a?Cn({abi:n,args:s,eventName:a}):void 0,p=await e.request({method:"eth_newFilter",params:[{address:r,fromBlock:typeof o=="bigint"?P(o):o,toBlock:typeof c=="bigint"?P(c):c,topics:d}]});return{abi:n,args:s,eventName:a,id:p,request:u(p),strict:!!i,type:"event"}}function K(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}const Nc="/docs/contract/encodeFunctionData";function Qb(e){const{abi:t,args:r,functionName:n}=e;let s=t[0];if(n){const a=zt({abi:t,args:r,name:n});if(!a)throw new rr(n,{docsPath:Nc});s=a}if(s.type!=="function")throw new rr(void 0,{docsPath:Nc});return{abi:[s],functionName:fr(Oe(s))}}function Ce(e){const{args:t}=e,{abi:r,functionName:n}=(()=>{var i;return e.abi.length===1&&((i=e.functionName)!=null&&i.startsWith("0x"))?e:Qb(e)})(),s=r[0],a=n,o="inputs"in s&&s.inputs?yt(s.inputs,t??[]):void 0;return ve([a,o??"0x"])}const ey={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},pp={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},ty={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};class Rc extends B{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class fp extends B{constructor({length:t,position:r}){super(`Position \`${r}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}}class ry extends B{constructor({count:t,limit:r}){super(`Recursive read limit of \`${r}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}}const ny={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new ry({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new fp({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new Rc({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new Rc({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function di(e,{recursiveReadLimit:t=8192}={}){const r=Object.create(ny);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}function sy(e,t={}){typeof t.size<"u"&&De(e,{size:t.size});const r=Y(e,t);return q(r,t)}function ay(e,t={}){let r=e;if(typeof t.size<"u"&&(De(r,{size:t.size}),r=pe(r)),r.length>1||r[0]>1)throw new Ub(r);return!!r[0]}function rt(e,t={}){typeof t.size<"u"&&De(e,{size:t.size});const r=Y(e,t);return ue(r,t)}function oy(e,t={}){let r=e;return typeof t.size<"u"&&(De(r,{size:t.size}),r=pe(r,{dir:"right"})),new TextDecoder().decode(r)}function Tn(e,t){const r=typeof t=="string"?fe(t):t,n=di(r);if(W(r)===0&&e.length>0)throw new En;if(W(t)&&W(t)<32)throw new Xd({data:typeof t=="string"?t:Y(t),params:e,size:W(t)});let s=0;const a=[];for(let o=0;o<e.length;++o){const i=e[o];n.setPosition(s);const[c,u]=Yt(n,i,{staticPosition:0});s+=u,a.push(c)}return a}function Yt(e,t,{staticPosition:r}){const n=ui(t.type);if(n){const[s,a]=n;return cy(e,{...t,type:a},{length:s,staticPosition:r})}if(t.type==="tuple")return py(e,t,{staticPosition:r});if(t.type==="address")return iy(e);if(t.type==="bool")return ly(e);if(t.type.startsWith("bytes"))return uy(e,t,{staticPosition:r});if(t.type.startsWith("uint")||t.type.startsWith("int"))return dy(e,t);if(t.type==="string")return fy(e,{staticPosition:r});throw new Tb(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const Dc=32,yo=32;function iy(e){const t=e.readBytes(32);return[vn(Y(cp(t,-20))),32]}function cy(e,t,{length:r,staticPosition:n}){if(!r){const o=rt(e.readBytes(yo)),i=n+o,c=i+Dc;e.setPosition(i);const u=rt(e.readBytes(Dc)),d=Xr(t);let p=0;const f=[];for(let m=0;m<u;++m){e.setPosition(c+(d?m*32:p));const[h,b]=Yt(e,t,{staticPosition:c});p+=b,f.push(h)}return e.setPosition(n+32),[f,32]}if(Xr(t)){const o=rt(e.readBytes(yo)),i=n+o,c=[];for(let u=0;u<r;++u){e.setPosition(i+u*32);const[d]=Yt(e,t,{staticPosition:i});c.push(d)}return e.setPosition(n+32),[c,32]}let s=0;const a=[];for(let o=0;o<r;++o){const[i,c]=Yt(e,t,{staticPosition:n+s});s+=c,a.push(i)}return[a,s]}function ly(e){return[ay(e.readBytes(32),{size:32}),32]}function uy(e,t,{staticPosition:r}){const[n,s]=t.type.split("bytes");if(!s){const o=rt(e.readBytes(32));e.setPosition(r+o);const i=rt(e.readBytes(32));if(i===0)return e.setPosition(r+32),["0x",32];const c=e.readBytes(i);return e.setPosition(r+32),[Y(c),32]}return[Y(e.readBytes(Number.parseInt(s,10),32)),32]}function dy(e,t){const r=t.type.startsWith("int"),n=Number.parseInt(t.type.split("int")[1]||"256",10),s=e.readBytes(32);return[n>48?sy(s,{signed:r}):rt(s,{signed:r}),32]}function py(e,t,{staticPosition:r}){const n=t.components.length===0||t.components.some(({name:o})=>!o),s=n?[]:{};let a=0;if(Xr(t)){const o=rt(e.readBytes(yo)),i=r+o;for(let c=0;c<t.components.length;++c){const u=t.components[c];e.setPosition(i+a);const[d,p]=Yt(e,u,{staticPosition:i});a+=p,s[n?c:u==null?void 0:u.name]=d}return e.setPosition(r+32),[s,32]}for(let o=0;o<t.components.length;++o){const i=t.components[o],[c,u]=Yt(e,i,{staticPosition:r});s[n?o:i==null?void 0:i.name]=c,a+=u}return[s,a]}function fy(e,{staticPosition:t}){const r=rt(e.readBytes(32)),n=t+r;e.setPosition(n);const s=rt(e.readBytes(32));if(s===0)return e.setPosition(t+32),["",32];const a=e.readBytes(s,32),o=oy(pe(a));return e.setPosition(t+32),[o,32]}function Xr(e){var n;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(n=e.components)==null?void 0:n.some(Xr);const r=ui(e.type);return!!(r&&Xr({...e,type:r[1]}))}function mp(e){const{abi:t,data:r}=e,n=It(r,0,4);if(n==="0x")throw new En;const a=[...t||[],pp,ty].find(o=>o.type==="error"&&n===fr(Oe(o)));if(!a)throw new Jd(n,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:a,args:"inputs"in a&&a.inputs&&a.inputs.length>0?Tn(a.inputs,It(r,4)):void 0,errorName:a.name}}const J=(e,t,r)=>JSON.stringify(e,(n,s)=>typeof s=="bigint"?s.toString():s,r);function hp({abiItem:e,args:t,includeFunctionName:r=!0,includeName:n=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((s,a)=>`${n&&s.name?`${s.name}: `:""}${typeof t[a]=="object"?J(t[a]):t[a]}`).join(", ")})`}const bp={gwei:9,wei:18},my={ether:-9,wei:9};function yp(e,t){let r=e.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(t,"0");let[s,a]=[r.slice(0,r.length-t),r.slice(r.length-t)];return a=a.replace(/(0+)$/,""),`${n?"-":""}${s||"0"}${a?`.${a}`:""}`}function pi(e,t="wei"){return yp(e,bp[t])}function me(e,t="wei"){return yp(e,my[t])}class hy extends B{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}}class by extends B{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function _c(e){return e.reduce((t,{slot:r,value:n})=>`${t} ${r}: ${n}
|
|
29
|
+
`,"")}function yy(e){return e.reduce((t,{address:r,...n})=>{let s=`${t} ${r}:
|
|
30
|
+
`;return n.nonce&&(s+=` nonce: ${n.nonce}
|
|
31
|
+
`),n.balance&&(s+=` balance: ${n.balance}
|
|
32
|
+
`),n.code&&(s+=` code: ${n.code}
|
|
33
|
+
`),n.state&&(s+=` state:
|
|
34
|
+
`,s+=_c(n.state)),n.stateDiff&&(s+=` stateDiff:
|
|
35
|
+
`,s+=_c(n.stateDiff)),s},` State Override:
|
|
36
|
+
`).slice(0,-1)}function An(e){const t=Object.entries(e).map(([n,s])=>s===void 0||s===!1?null:[n,s]).filter(Boolean),r=t.reduce((n,[s])=>Math.max(n,s.length),0);return t.map(([n,s])=>` ${`${n}:`.padEnd(r+1)} ${s}`).join(`
|
|
37
|
+
`)}class xy extends B{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class gy extends B{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",An(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class wy extends B{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class Ey extends B{constructor(t,{account:r,docsPath:n,chain:s,data:a,gas:o,gasPrice:i,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:d,to:p,value:f}){var h;const m=An({chain:s&&`${s==null?void 0:s.name} (id: ${s==null?void 0:s.id})`,from:r==null?void 0:r.address,to:p,value:typeof f<"u"&&`${pi(f)} ${((h=s==null?void 0:s.nativeCurrency)==null?void 0:h.symbol)||"ETH"}`,data:a,gas:o,gasPrice:typeof i<"u"&&`${me(i)} gwei`,maxFeePerGas:typeof c<"u"&&`${me(c)} gwei`,maxPriorityFeePerGas:typeof u<"u"&&`${me(u)} gwei`,nonce:d});super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",m].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class xp extends B{constructor({blockHash:t,blockNumber:r,blockTag:n,hash:s,index:a}){let o="Transaction";n&&a!==void 0&&(o=`Transaction at block time "${n}" at index "${a}"`),t&&a!==void 0&&(o=`Transaction at block hash "${t}" at index "${a}"`),r&&a!==void 0&&(o=`Transaction at block number "${r}" at index "${a}"`),s&&(o=`Transaction with hash "${s}"`),super(`${o} could not be found.`,{name:"TransactionNotFoundError"})}}class gp extends B{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class wp extends B{constructor({receipt:t}){super(`Transaction with hash "${t.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=t}}class ky extends B{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}const vy=e=>e,Xs=e=>e;class Ep extends B{constructor(t,{account:r,docsPath:n,chain:s,data:a,gas:o,gasPrice:i,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:d,to:p,value:f,stateOverride:m}){var y;const h=r?K(r):void 0;let b=An({from:h==null?void 0:h.address,to:p,value:typeof f<"u"&&`${pi(f)} ${((y=s==null?void 0:s.nativeCurrency)==null?void 0:y.symbol)||"ETH"}`,data:a,gas:o,gasPrice:typeof i<"u"&&`${me(i)} gwei`,maxFeePerGas:typeof c<"u"&&`${me(c)} gwei`,maxPriorityFeePerGas:typeof u<"u"&&`${me(u)} gwei`,nonce:d});m&&(b+=`
|
|
38
|
+
${yy(m)}`),super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",b].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class kp extends B{constructor(t,{abi:r,args:n,contractAddress:s,docsPath:a,functionName:o,sender:i}){const c=zt({abi:r,args:n,name:o}),u=c?hp({abiItem:c,args:n,includeFunctionName:!1,includeName:!1}):void 0,d=c?Oe(c,{includeName:!0}):void 0,p=An({address:s&&vy(s),function:d,args:u&&u!=="()"&&`${[...Array((o==null?void 0:o.length)??0).keys()].map(()=>" ").join("")}${u}`,sender:i});super(t.shortMessage||`An unknown error occurred while executing the contract function "${o}".`,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],p&&"Contract Call:",p].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=r,this.args=n,this.cause=t,this.contractAddress=s,this.functionName=o,this.sender=i}}class xo extends B{constructor({abi:t,data:r,functionName:n,message:s}){let a,o,i,c;if(r&&r!=="0x")try{o=mp({abi:t,data:r});const{abiItem:d,errorName:p,args:f}=o;if(p==="Error")c=f[0];else if(p==="Panic"){const[m]=f;c=ey[m]}else{const m=d?Oe(d,{includeName:!0}):void 0,h=d&&f?hp({abiItem:d,args:f,includeFunctionName:!1,includeName:!1}):void 0;i=[m?`Error: ${m}`:"",h&&h!=="()"?` ${[...Array((p==null?void 0:p.length)??0).keys()].map(()=>" ").join("")}${h}`:""]}}catch(d){a=d}else s&&(c=s);let u;a instanceof Jd&&(u=a.signature,i=[`Unable to decode signature "${u}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${u}.`]),super(c&&c!=="execution reverted"||u?[`The contract function "${n}" reverted with the following ${u?"signature":"reason"}:`,c||u].join(`
|
|
39
|
+
`):`The contract function "${n}" reverted.`,{cause:a,metaMessages:i,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=o,this.raw=r,this.reason=c,this.signature=u}}class Cy extends B{constructor({functionName:t}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class Ty extends B{constructor({factory:t}){super(`Deployment for counterfactual contract call failed${t?` for factory "${t}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class Js extends B{constructor({data:t,message:r}){super(r||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}class Qt extends B{constructor({body:t,cause:r,details:n,headers:s,status:a,url:o}){super("HTTP request failed.",{cause:r,details:n,metaMessages:[a&&`Status: ${a}`,`URL: ${Xs(o)}`,t&&`Request body: ${J(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=s,this.status=a,this.url=o}}class fi extends B{constructor({body:t,error:r,url:n}){super("RPC Request failed.",{cause:r,details:r.message,metaMessages:[`URL: ${Xs(n)}`,`Request body: ${J(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=r.code,this.data=r.data,this.url=n}}class Lc extends B{constructor({body:t,url:r}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${Xs(r)}`,`Request body: ${J(t)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=r}}const Ay=-1;class ye extends B{constructor(t,{code:r,docsPath:n,metaMessages:s,name:a,shortMessage:o}){super(o,{cause:t,docsPath:n,metaMessages:s||(t==null?void 0:t.metaMessages),name:a||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a||t.name,this.code=t instanceof fi?t.code:r??Ay}}class Te extends ye{constructor(t,r){super(t,r),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r.data}}class Jr extends ye{constructor(t){super(t,{code:Jr.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(Jr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class Yr extends ye{constructor(t){super(t,{code:Yr.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(Yr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class Qr extends ye{constructor(t,{method:r}={}){super(t,{code:Qr.code,name:"MethodNotFoundRpcError",shortMessage:`The method${r?` "${r}"`:""} does not exist / is not available.`})}}Object.defineProperty(Qr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class en extends ye{constructor(t){super(t,{code:en.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
|
|
40
|
+
`)})}}Object.defineProperty(en,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Ft extends ye{constructor(t){super(t,{code:Ft.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(Ft,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class mt extends ye{constructor(t){super(t,{code:mt.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
|
|
41
|
+
`)})}}Object.defineProperty(mt,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class tn extends ye{constructor(t){super(t,{code:tn.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(tn,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class rn extends ye{constructor(t){super(t,{code:rn.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(rn,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class nn extends ye{constructor(t){super(t,{code:nn.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(nn,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class Ct extends ye{constructor(t,{method:r}={}){super(t,{code:Ct.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${r?` "${r}"`:""} is not supported.`})}}Object.defineProperty(Ct,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class sr extends ye{constructor(t){super(t,{code:sr.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(sr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class sn extends ye{constructor(t){super(t,{code:sn.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(sn,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class er extends Te{constructor(t){super(t,{code:er.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(er,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class an extends Te{constructor(t){super(t,{code:an.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(an,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class on extends Te{constructor(t,{method:r}={}){super(t,{code:on.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${r?` " ${r}"`:""}.`})}}Object.defineProperty(on,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class cn extends Te{constructor(t){super(t,{code:cn.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(cn,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class ln extends Te{constructor(t){super(t,{code:ln.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(ln,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class un extends Te{constructor(t){super(t,{code:un.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(un,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class ar extends Te{constructor(t){super(t,{code:ar.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(ar,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class dn extends Te{constructor(t){super(t,{code:dn.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(dn,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class pn extends Te{constructor(t){super(t,{code:pn.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(pn,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class fn extends Te{constructor(t){super(t,{code:fn.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(fn,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class mn extends Te{constructor(t){super(t,{code:mn.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(mn,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class hn extends Te{constructor(t){super(t,{code:hn.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(hn,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class or extends Te{constructor(t){super(t,{code:or.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(or,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class Sy extends ye{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const By=3;function $t(e,{abi:t,address:r,args:n,docsPath:s,functionName:a,sender:o}){const i=e instanceof Js?e:e instanceof B?e.walk(h=>"data"in h)||e.walk():{},{code:c,data:u,details:d,message:p,shortMessage:f}=i,m=e instanceof En?new Cy({functionName:a}):[By,Ft.code].includes(c)&&(u||d||p||f)||c===mt.code&&d==="execution reverted"&&u?new xo({abi:t,data:typeof u=="object"?u.data:u,functionName:a,message:i instanceof fi?d:f??p}):e;return new kp(m,{abi:t,args:n,contractAddress:r,docsPath:s,functionName:a,sender:o})}function vp(e){const t=te(`0x${e.substring(4)}`).substring(26);return vn(`0x${t}`)}async function Uy({hash:e,signature:t}){const r=Ue(e)?e:j(e),{secp256k1:n}=await Promise.resolve().then(()=>$d);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:u,s:d,v:p,yParity:f}=t,m=Number(f??p),h=Hc(m);return new n.Signature(q(u),q(d)).addRecoveryBit(h)}const o=Ue(t)?t:j(t);if(W(o)!==65)throw new Error("invalid signature length");const i=ue(`0x${o.slice(130)}`),c=Hc(i);return n.Signature.fromCompact(o.substring(2,130)).addRecoveryBit(c)})().recoverPublicKey(r.substring(2)).toHex(!1)}`}function Hc(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}async function Cp({hash:e,signature:t}){return vp(await Uy({hash:e,signature:t}))}function je(e,t="hex"){const r=Tp(e),n=di(new Uint8Array(r.length));return r.encode(n),t==="hex"?Y(n.bytes):n.bytes}function Tp(e){return Array.isArray(e)?Py(e.map(t=>Tp(t))):Iy(e)}function Py(e){const t=e.reduce((s,a)=>s+a.length,0),r=Ap(t);return{length:t<=55?1+t:1+r+t,encode(s){t<=55?s.pushByte(192+t):(s.pushByte(247+r),r===1?s.pushUint8(t):r===2?s.pushUint16(t):r===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:a}of e)a(s)}}}function Iy(e){const t=typeof e=="string"?fe(e):e,r=Ap(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(s){t.length===1&&t[0]<128?s.pushBytes(t):t.length<=55?(s.pushByte(128+t.length),s.pushBytes(t)):(s.pushByte(183+r),r===1?s.pushUint8(t.length):r===2?s.pushUint16(t.length):r===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function Ap(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new B("Length is too large.")}function Sp(e){const{chainId:t,nonce:r,to:n}=e,s=e.contractAddress??e.address,a=te(ve(["0x05",je([t?P(t):"0x",s,r?P(r):"0x"])]));return n==="bytes"?fe(a):a}async function Ys(e){const{authorization:t,signature:r}=e;return Cp({hash:Sp(t),signature:r??t})}class Fy extends B{constructor(t,{account:r,docsPath:n,chain:s,data:a,gas:o,gasPrice:i,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:d,to:p,value:f}){var h;const m=An({from:r==null?void 0:r.address,to:p,value:typeof f<"u"&&`${pi(f)} ${((h=s==null?void 0:s.nativeCurrency)==null?void 0:h.symbol)||"ETH"}`,data:a,gas:o,gasPrice:typeof i<"u"&&`${me(i)} gwei`,maxFeePerGas:typeof c<"u"&&`${me(c)} gwei`,maxPriorityFeePerGas:typeof u<"u"&&`${me(u)} gwei`,nonce:d});super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",m].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class Zt extends B{constructor({cause:t,message:r}={}){var s;const n=(s=r==null?void 0:r.replace("execution reverted: ",""))==null?void 0:s.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}}Object.defineProperty(Zt,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Zt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class ht extends B{constructor({cause:t,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${me(r)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(ht,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class go extends B{constructor({cause:t,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${me(r)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(go,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class wo extends B{constructor({cause:t,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(wo,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class Eo extends B{constructor({cause:t,nonce:r}={}){super([`Nonce provided for the transaction ${r?`(${r}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
|
|
42
|
+
`),{cause:t,name:"NonceTooLowError"})}}Object.defineProperty(Eo,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class ko extends B{constructor({cause:t,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(ko,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class vo extends B{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
|
|
43
|
+
`),{cause:t,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(vo,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class Co extends B{constructor({cause:t,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(Co,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class To extends B{constructor({cause:t,gas:r}={}){super(`The amount of gas ${r?`(${r}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(To,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class Ao extends B{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(Ao,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class ir extends B{constructor({cause:t,maxPriorityFeePerGas:r,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${r?` = ${me(r)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${me(n)} gwei`:""}).`].join(`
|
|
44
|
+
`),{cause:t,name:"TipAboveFeeCapError"})}}Object.defineProperty(ir,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class Sn extends B{constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}function Qs(e,t){const r=(e.details||"").toLowerCase(),n=e instanceof B?e.walk(s=>(s==null?void 0:s.code)===Zt.code):e;return n instanceof B?new Zt({cause:e,message:n.details}):Zt.nodeMessage.test(r)?new Zt({cause:e,message:e.details}):ht.nodeMessage.test(r)?new ht({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):go.nodeMessage.test(r)?new go({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):wo.nodeMessage.test(r)?new wo({cause:e,nonce:t==null?void 0:t.nonce}):Eo.nodeMessage.test(r)?new Eo({cause:e,nonce:t==null?void 0:t.nonce}):ko.nodeMessage.test(r)?new ko({cause:e,nonce:t==null?void 0:t.nonce}):vo.nodeMessage.test(r)?new vo({cause:e}):Co.nodeMessage.test(r)?new Co({cause:e,gas:t==null?void 0:t.gas}):To.nodeMessage.test(r)?new To({cause:e,gas:t==null?void 0:t.gas}):Ao.nodeMessage.test(r)?new Ao({cause:e}):ir.nodeMessage.test(r)?new ir({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new Sn({cause:e})}function $y(e,{docsPath:t,...r}){const n=(()=>{const s=Qs(e,r);return s instanceof Sn?e:s})();return new Fy(n,{docsPath:t,...r})}function xt(e,{format:t}){if(!t)return{};const r={};function n(a){const o=Object.keys(a);for(const i of o)i in e&&(r[i]=e[i]),a[i]&&typeof a[i]=="object"&&!Array.isArray(a[i])&&n(a[i])}const s=t(e||{});return n(s),r}function ea(e,t){return({exclude:r,format:n})=>({exclude:r,format:(s,a)=>{const o=t(s,a);if(r)for(const i of r)delete o[i];return{...o,...n(s,a)}},type:e})}const My={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function _e(e,t){const r={};return typeof e.authorizationList<"u"&&(r.authorizationList=zy(e.authorizationList)),typeof e.accessList<"u"&&(r.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(r.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?r.blobs=e.blobs.map(n=>Y(n)):r.blobs=e.blobs),typeof e.data<"u"&&(r.data=e.data),e.account&&(r.from=e.account.address),typeof e.from<"u"&&(r.from=e.from),typeof e.gas<"u"&&(r.gas=P(e.gas)),typeof e.gasPrice<"u"&&(r.gasPrice=P(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(r.maxFeePerBlobGas=P(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(r.maxFeePerGas=P(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(r.maxPriorityFeePerGas=P(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(r.nonce=P(e.nonce)),typeof e.to<"u"&&(r.to=e.to),typeof e.type<"u"&&(r.type=My[e.type]),typeof e.value<"u"&&(r.value=P(e.value)),r}const Bp=ea("transactionRequest",_e);function zy(e){return e.map(t=>({address:t.address,r:t.r?P(BigInt(t.r)):t.r,s:t.s?P(BigInt(t.s)):t.s,chainId:P(t.chainId),nonce:P(t.nonce),...typeof t.yParity<"u"?{yParity:P(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:P(t.v)}:{}}))}function jc(e){if(!(!e||e.length===0))return e.reduce((t,{slot:r,value:n})=>{if(r.length!==66)throw new $c({size:r.length,targetSize:66,type:"hex"});if(n.length!==66)throw new $c({size:n.length,targetSize:66,type:"hex"});return t[r]=n,t},{})}function Oy(e){const{balance:t,nonce:r,state:n,stateDiff:s,code:a}=e,o={};if(a!==void 0&&(o.code=a),t!==void 0&&(o.balance=P(t)),r!==void 0&&(o.nonce=P(r)),n!==void 0&&(o.state=jc(n)),s!==void 0){if(o.state)throw new by;o.stateDiff=jc(s)}return o}function mi(e){if(!e)return;const t={};for(const{address:r,...n}of e){if(!V(r,{strict:!1}))throw new Z({address:r});if(t[r])throw new hy({address:r});t[r]=Oy(n)}return t}const Ny=2n**16n-1n,Bn=2n**256n-1n;function qe(e){const{account:t,maxFeePerGas:r,maxPriorityFeePerGas:n,to:s}=e,a=t?K(t):void 0;if(a&&!V(a.address))throw new Z({address:a.address});if(s&&!V(s))throw new Z({address:s});if(r&&r>Bn)throw new ht({maxFeePerGas:r});if(n&&r&&n>r)throw new ir({maxFeePerGas:r,maxPriorityFeePerGas:n})}class Up extends B{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class hi extends B{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class Ry extends B{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${me(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class Pp extends B{constructor({blockHash:t,blockNumber:r}){let n="Block";t&&(n=`Block at hash "${t}"`),r&&(n=`Block at number "${r}"`),super(`${n} could not be found.`,{name:"BlockNotFoundError"})}}const Ip={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function mr(e,t){const r={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?ue(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?ue(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Ip[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 e.authorizationList&&(r.authorizationList=Dy(e.authorizationList)),r.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof r.v=="bigint"){if(r.v===0n||r.v===27n)return 0;if(r.v===1n||r.v===28n)return 1;if(r.v>=35n)return r.v%2n===0n?1:0}})(),r.type==="legacy"&&(delete r.accessList,delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas,delete r.yParity),r.type==="eip2930"&&(delete r.maxFeePerBlobGas,delete r.maxFeePerGas,delete r.maxPriorityFeePerGas),r.type==="eip1559"&&delete r.maxFeePerBlobGas,r}const bi=ea("transaction",mr);function Dy(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function yi(e,t){const r=(e.transactions??[]).map(n=>typeof n=="string"?n:mr(n));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:r,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const xi=ea("block",yi);async function Fe(e,{blockHash:t,blockNumber:r,blockTag:n=e.experimental_blockTag??"latest",includeTransactions:s}={}){var u,d,p;const a=s??!1,o=r!==void 0?P(r):void 0;let i=null;if(t?i=await e.request({method:"eth_getBlockByHash",params:[t,a]},{dedupe:!0}):i=await e.request({method:"eth_getBlockByNumber",params:[o||n,a]},{dedupe:!!o}),!i)throw new Pp({blockHash:t,blockNumber:r});return(((p=(d=(u=e.chain)==null?void 0:u.formatters)==null?void 0:d.block)==null?void 0:p.format)||yi)(i,"getBlock")}async function gi(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function _y(e,t){return Fp(e,t)}async function Fp(e,t){var a,o;const{block:r,chain:n=e.chain,request:s}=t||{};try{const i=((a=n==null?void 0:n.fees)==null?void 0:a.maxPriorityFeePerGas)??((o=n==null?void 0:n.fees)==null?void 0:o.defaultPriorityFee);if(typeof i=="function"){const u=r||await D(e,Fe,"getBlock")({}),d=await i({block:u,client:e,request:s});if(d===null)throw new Error;return d}if(typeof i<"u")return i;const c=await e.request({method:"eth_maxPriorityFeePerGas"});return q(c)}catch{const[i,c]=await Promise.all([r?Promise.resolve(r):D(e,Fe,"getBlock")({}),D(e,gi,"getGasPrice")({})]);if(typeof i.baseFeePerGas!="bigint")throw new hi;const u=c-i.baseFeePerGas;return u<0n?0n:u}}async function Ly(e,t){return So(e,t)}async function So(e,t){var f,m;const{block:r,chain:n=e.chain,request:s,type:a="eip1559"}=t||{},o=await(async()=>{var h,b;return typeof((h=n==null?void 0:n.fees)==null?void 0:h.baseFeeMultiplier)=="function"?n.fees.baseFeeMultiplier({block:r,client:e,request:s}):((b=n==null?void 0:n.fees)==null?void 0:b.baseFeeMultiplier)??1.2})();if(o<1)throw new Up;const c=10**(((f=o.toString().split(".")[1])==null?void 0:f.length)??0),u=h=>h*BigInt(Math.ceil(o*c))/BigInt(c),d=r||await D(e,Fe,"getBlock")({});if(typeof((m=n==null?void 0:n.fees)==null?void 0:m.estimateFeesPerGas)=="function"){const h=await n.fees.estimateFeesPerGas({block:r,client:e,multiply:u,request:s,type:a});if(h!==null)return h}if(a==="eip1559"){if(typeof d.baseFeePerGas!="bigint")throw new hi;const h=typeof(s==null?void 0:s.maxPriorityFeePerGas)=="bigint"?s.maxPriorityFeePerGas:await Fp(e,{block:d,chain:n,request:s}),b=u(d.baseFeePerGas);return{maxFeePerGas:(s==null?void 0:s.maxFeePerGas)??b+h,maxPriorityFeePerGas:h}}return{gasPrice:(s==null?void 0:s.gasPrice)??u(await D(e,gi,"getGasPrice")({}))}}async function wi(e,{address:t,blockTag:r="latest",blockNumber:n}){const s=await e.request({method:"eth_getTransactionCount",params:[t,typeof n=="bigint"?P(n):r]},{dedupe:!!n});return ue(s)}function Ei(e){const{kzg:t}=e,r=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),n=typeof e.blobs[0]=="string"?e.blobs.map(a=>fe(a)):e.blobs,s=[];for(const a of n)s.push(Uint8Array.from(t.blobToKzgCommitment(a)));return r==="bytes"?s:s.map(a=>Y(a))}function ki(e){const{kzg:t}=e,r=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),n=typeof e.blobs[0]=="string"?e.blobs.map(o=>fe(o)):e.blobs,s=typeof e.commitments[0]=="string"?e.commitments.map(o=>fe(o)):e.commitments,a=[];for(let o=0;o<n.length;o++){const i=n[o],c=s[o];a.push(Uint8Array.from(t.computeBlobKzgProof(i,c)))}return r==="bytes"?a:a.map(o=>Y(o))}function $p(e,t){const r=t||"hex",n=id(Ue(e,{strict:!1})?tt(e):e);return r==="bytes"?n:j(n)}function Hy(e){const{commitment:t,version:r=1}=e,n=e.to??(typeof t=="string"?"hex":"bytes"),s=$p(t,"bytes");return s.set([r],0),n==="bytes"?s:Y(s)}function Mp(e){const{commitments:t,version:r}=e,n=e.to??(typeof t[0]=="string"?"hex":"bytes"),s=[];for(const a of t)s.push(Hy({commitment:a,to:n,version:r}));return s}const Gc=6,zp=32,vi=4096,Op=zp*vi,qc=Op*Gc-1-1*vi*Gc,Np=1;class jy extends B{constructor({maxSize:t,size:r}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${r} bytes`],name:"BlobSizeTooLargeError"})}}class Rp extends B{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class Gy extends B{constructor({hash:t,size:r}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${r}`],name:"InvalidVersionedHashSizeError"})}}class qy extends B{constructor({hash:t,version:r}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${Np}`,`Received: ${r}`],name:"InvalidVersionedHashVersionError"})}}function Vy(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),r=typeof e.data=="string"?fe(e.data):e.data,n=W(r);if(!n)throw new Rp;if(n>qc)throw new jy({maxSize:qc,size:n});const s=[];let a=!0,o=0;for(;a;){const i=di(new Uint8Array(Op));let c=0;for(;c<vi;){const u=r.slice(o,o+(zp-1));if(i.pushByte(0),i.pushBytes(u),u.length<31){i.pushByte(128),a=!1;break}c++,o+=31}s.push(i)}return t==="bytes"?s.map(i=>i.bytes):s.map(i=>Y(i.bytes))}function Dp(e){const{data:t,kzg:r,to:n}=e,s=e.blobs??Vy({data:t,to:n}),a=e.commitments??Ei({blobs:s,kzg:r,to:n}),o=e.proofs??ki({blobs:s,commitments:a,kzg:r,to:n}),i=[];for(let c=0;c<s.length;c++)i.push({blob:s[c],commitment:a[c],proof:o[c]});return i}function _p(e){if(e.type)return e.type;if(typeof e.authorizationList<"u")return"eip7702";if(typeof e.blobs<"u"||typeof e.blobVersionedHashes<"u"||typeof e.maxFeePerBlobGas<"u"||typeof e.sidecars<"u")return"eip4844";if(typeof e.maxFeePerGas<"u"||typeof e.maxPriorityFeePerGas<"u")return"eip1559";if(typeof e.gasPrice<"u")return typeof e.accessList<"u"?"eip2930":"legacy";throw new gy({transaction:e})}function ta(e,{docsPath:t,...r}){const n=(()=>{const s=Qs(e,r);return s instanceof Sn?e:s})();return new Ey(n,{docsPath:t,...r})}async function gt(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return ue(t)}async function Ci(e,t){var T,S,O,U,z;const{account:r=e.account,accessList:n,authorizationList:s,chain:a=e.chain,blobVersionedHashes:o,blobs:i,data:c,gas:u,gasPrice:d,maxFeePerBlobGas:p,maxFeePerGas:f,maxPriorityFeePerGas:m,nonce:h,nonceManager:b,to:y,type:E,value:v,...g}=t,w=await(async()=>{if(!r||!b||typeof h<"u")return h;const I=K(r),L=a?a.id:await D(e,gt,"getChainId")({});return await b.consume({address:I.address,chainId:L,client:e})})();qe(t);const x=(S=(T=a==null?void 0:a.formatters)==null?void 0:T.transactionRequest)==null?void 0:S.format,k=(x||_e)({...xt(g,{format:x}),account:r?K(r):void 0,accessList:n,authorizationList:s,blobs:i,blobVersionedHashes:o,data:c,gas:u,gasPrice:d,maxFeePerBlobGas:p,maxFeePerGas:f,maxPriorityFeePerGas:m,nonce:w,to:y,type:E,value:v},"fillTransaction");try{const I=await e.request({method:"eth_fillTransaction",params:[k]}),A=(((U=(O=a==null?void 0:a.formatters)==null?void 0:O.transaction)==null?void 0:U.format)||mr)(I.tx);delete A.blockHash,delete A.blockNumber,delete A.r,delete A.s,delete A.transactionIndex,delete A.v,delete A.yParity,A.data=A.input,A.gas&&(A.gas=t.gas??A.gas),A.gasPrice&&(A.gasPrice=t.gasPrice??A.gasPrice),A.maxFeePerBlobGas&&(A.maxFeePerBlobGas=t.maxFeePerBlobGas??A.maxFeePerBlobGas),A.maxFeePerGas&&(A.maxFeePerGas=t.maxFeePerGas??A.maxFeePerGas),A.maxPriorityFeePerGas&&(A.maxPriorityFeePerGas=t.maxPriorityFeePerGas??A.maxPriorityFeePerGas),A.nonce&&(A.nonce=t.nonce??A.nonce);const $=await(async()=>{var _,H;if(typeof((_=a==null?void 0:a.fees)==null?void 0:_.baseFeeMultiplier)=="function"){const X=await D(e,Fe,"getBlock")({});return a.fees.baseFeeMultiplier({block:X,client:e,request:t})}return((H=a==null?void 0:a.fees)==null?void 0:H.baseFeeMultiplier)??1.2})();if($<1)throw new Up;const M=10**(((z=$.toString().split(".")[1])==null?void 0:z.length)??0),N=_=>_*BigInt(Math.ceil($*M))/BigInt(M);return A.maxFeePerGas&&!t.maxFeePerGas&&(A.maxFeePerGas=N(A.maxFeePerGas)),A.gasPrice&&!t.gasPrice&&(A.gasPrice=N(A.gasPrice)),{raw:I.raw,transaction:{from:k.from,...A}}}catch(I){throw ta(I,{...t,chain:e.chain})}}const Ti=["blobVersionedHashes","chainId","fees","gas","nonce","type"],Vc=new Map,Ta=new pr(128);async function Un(e,t){var w,x,C;let r=t;const{account:n=e.account,chain:s=e.chain,nonceManager:a,parameters:o=Ti}=r,i=(()=>{if(typeof(s==null?void 0:s.prepareTransactionRequest)=="function")return{fn:s.prepareTransactionRequest,runAt:["beforeFillTransaction"]};if(Array.isArray(s==null?void 0:s.prepareTransactionRequest))return{fn:s.prepareTransactionRequest[0],runAt:s.prepareTransactionRequest[1].runAt}})();let c;async function u(){return c||(typeof r.chainId<"u"?r.chainId:s?s.id:(c=await D(e,gt,"getChainId")({}),c))}const d=n&&K(n);let p=r.nonce;if(o.includes("nonce")&&typeof p>"u"&&d&&a){const k=await u();p=await a.consume({address:d.address,chainId:k,client:e})}i!=null&&i.fn&&((w=i.runAt)!=null&&w.includes("beforeFillTransaction"))&&(r=await i.fn(r,{phase:"beforeFillTransaction"}),p??(p=r.nonce));const m=((o.includes("blobVersionedHashes")||o.includes("sidecars"))&&r.kzg&&r.blobs||Ta.get(e.uid)===!1||!["fees","gas"].some(T=>o.includes(T))?!1:!!(o.includes("chainId")&&typeof r.chainId!="number"||o.includes("nonce")&&typeof p!="number"||o.includes("fees")&&typeof r.gasPrice!="bigint"&&(typeof r.maxFeePerGas!="bigint"||typeof r.maxPriorityFeePerGas!="bigint")||o.includes("gas")&&typeof r.gas!="bigint"))?await D(e,Ci,"fillTransaction")({...r,nonce:p}).then(k=>{const{chainId:T,from:S,gas:O,gasPrice:U,nonce:z,maxFeePerBlobGas:I,maxFeePerGas:L,maxPriorityFeePerGas:A,type:$,...R}=k.transaction;return Ta.set(e.uid,!0),{...r,...S?{from:S}:{},...$?{type:$}:{},...typeof T<"u"?{chainId:T}:{},...typeof O<"u"?{gas:O}:{},...typeof U<"u"?{gasPrice:U}:{},...typeof z<"u"?{nonce:z}:{},...typeof I<"u"?{maxFeePerBlobGas:I}:{},...typeof L<"u"?{maxFeePerGas:L}:{},...typeof A<"u"?{maxPriorityFeePerGas:A}:{},..."nonceKey"in R&&typeof R.nonceKey<"u"?{nonceKey:R.nonceKey}:{}}}).catch(k=>{var O;const T=k;return((O=T.walk)==null?void 0:O.call(T,U=>{const z=U;return z.name==="MethodNotFoundRpcError"||z.name==="MethodNotSupportedRpcError"}))&&Ta.set(e.uid,!1),r}):r;p??(p=m.nonce),r={...m,...d?{from:d==null?void 0:d.address}:{},...p?{nonce:p}:{}};const{blobs:h,gas:b,kzg:y,type:E}=r;i!=null&&i.fn&&((x=i.runAt)!=null&&x.includes("beforeFillParameters"))&&(r=await i.fn(r,{phase:"beforeFillParameters"}));let v;async function g(){return v||(v=await D(e,Fe,"getBlock")({blockTag:"latest"}),v)}if(o.includes("nonce")&&typeof p>"u"&&d&&!a&&(r.nonce=await D(e,wi,"getTransactionCount")({address:d.address,blockTag:"pending"})),(o.includes("blobVersionedHashes")||o.includes("sidecars"))&&h&&y){const k=Ei({blobs:h,kzg:y});if(o.includes("blobVersionedHashes")){const T=Mp({commitments:k,to:"hex"});r.blobVersionedHashes=T}if(o.includes("sidecars")){const T=ki({blobs:h,commitments:k,kzg:y}),S=Dp({blobs:h,commitments:k,proofs:T,to:"hex"});r.sidecars=S}}if(o.includes("chainId")&&(r.chainId=await u()),(o.includes("fees")||o.includes("type"))&&typeof E>"u")try{r.type=_p(r)}catch{let k=Vc.get(e.uid);if(typeof k>"u"){const T=await g();k=typeof(T==null?void 0:T.baseFeePerGas)=="bigint",Vc.set(e.uid,k)}r.type=k?"eip1559":"legacy"}if(o.includes("fees"))if(r.type!=="legacy"&&r.type!=="eip2930"){if(typeof r.maxFeePerGas>"u"||typeof r.maxPriorityFeePerGas>"u"){const k=await g(),{maxFeePerGas:T,maxPriorityFeePerGas:S}=await So(e,{block:k,chain:s,request:r});if(typeof r.maxPriorityFeePerGas>"u"&&r.maxFeePerGas&&r.maxFeePerGas<S)throw new Ry({maxPriorityFeePerGas:S});r.maxPriorityFeePerGas=S,r.maxFeePerGas=T}}else{if(typeof r.maxFeePerGas<"u"||typeof r.maxPriorityFeePerGas<"u")throw new hi;if(typeof r.gasPrice>"u"){const k=await g(),{gasPrice:T}=await So(e,{block:k,chain:s,request:r,type:"legacy"});r.gasPrice=T}}return o.includes("gas")&&typeof b>"u"&&(r.gas=await D(e,Ai,"estimateGas")({...r,account:d,prepare:(d==null?void 0:d.type)==="local"?[]:["blobVersionedHashes"]})),i!=null&&i.fn&&((C=i.runAt)!=null&&C.includes("afterFillParameters"))&&(r=await i.fn(r,{phase:"afterFillParameters"})),qe(r),delete r.parameters,r}async function Ai(e,t){var o,i,c;const{account:r=e.account,prepare:n=!0}=t,s=r?K(r):void 0,a=(()=>{if(Array.isArray(n))return n;if((s==null?void 0:s.type)!=="local")return["blobVersionedHashes"]})();try{const u=await(async()=>{if(t.to)return t.to;if(t.authorizationList&&t.authorizationList.length>0)return await Ys({authorization:t.authorizationList[0]}).catch(()=>{throw new B("`to` is required. Could not infer from `authorizationList`")})})(),{accessList:d,authorizationList:p,blobs:f,blobVersionedHashes:m,blockNumber:h,blockTag:b,data:y,gas:E,gasPrice:v,maxFeePerBlobGas:g,maxFeePerGas:w,maxPriorityFeePerGas:x,nonce:C,value:k,stateOverride:T,...S}=n?await Un(e,{...t,parameters:a,to:u}):t;if(E&&t.gas!==E)return E;const U=(typeof h=="bigint"?P(h):void 0)||b,z=mi(T);qe(t);const I=(c=(i=(o=e.chain)==null?void 0:o.formatters)==null?void 0:i.transactionRequest)==null?void 0:c.format,A=(I||_e)({...xt(S,{format:I}),account:s,accessList:d,authorizationList:p,blobs:f,blobVersionedHashes:m,data:y,gasPrice:v,maxFeePerBlobGas:g,maxFeePerGas:w,maxPriorityFeePerGas:x,nonce:C,to:u,value:k},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:z?[A,U??e.experimental_blockTag??"latest",z]:U?[A,U]:[A]}))}catch(u){throw $y(u,{...t,account:s,chain:e.chain})}}async function Ky(e,t){const{abi:r,address:n,args:s,functionName:a,dataSuffix:o,...i}=t,c=Ce({abi:r,args:s,functionName:a});try{return await D(e,Ai,"estimateGas")({data:`${c}${o?o.replace("0x",""):""}`,to:n,...i})}catch(u){const d=i.account?K(i.account):void 0;throw $t(u,{abi:r,address:n,args:s,docsPath:"/docs/contract/estimateContractGas",functionName:a,sender:d==null?void 0:d.address})}}function hr(e,t){if(!V(e,{strict:!1}))throw new Z({address:e});if(!V(t,{strict:!1}))throw new Z({address:t});return e.toLowerCase()===t.toLowerCase()}const Kc="/docs/contract/decodeEventLog";function Si(e){const{abi:t,data:r,strict:n,topics:s}=e,a=n??!0,[o,...i]=s;if(!o)throw new wb({docsPath:Kc});const c=t.find(b=>b.type==="event"&&o===kn(Oe(b)));if(!(c&&"name"in c)||c.type!=="event")throw new Yd(o,{docsPath:Kc});const{name:u,inputs:d}=c,p=d==null?void 0:d.some(b=>!("name"in b&&b.name)),f=p?[]:{},m=d.map((b,y)=>[b,y]).filter(([b])=>"indexed"in b&&b.indexed);for(let b=0;b<m.length;b++){const[y,E]=m[b],v=i[b];if(!v)throw new Ws({abiItem:c,param:y});f[p?E:y.name||E]=Wy({param:y,value:v})}const h=d.filter(b=>!("indexed"in b&&b.indexed));if(h.length>0){if(r&&r!=="0x")try{const b=Tn(h,r);if(b)if(p)for(let y=0;y<d.length;y++)f[y]=f[y]??b.shift();else for(let y=0;y<h.length;y++)f[h[y].name]=b[y]}catch(b){if(a)throw b instanceof Xd||b instanceof fp?new Zr({abiItem:c,data:r,params:h,size:W(r)}):b}else if(a)throw new Zr({abiItem:c,data:"0x",params:h,size:0})}return{eventName:u,args:Object.values(f).length>0?f:void 0}}function Wy({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:(Tn([e],t)||[])[0]}function Bi(e){const{abi:t,args:r,logs:n,strict:s=!0}=e,a=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return n.map(o=>{var i;try{const c=t.find(d=>d.type==="event"&&o.topics[0]===kn(d));if(!c)return null;const u=Si({...o,abi:[c],strict:s});return a&&!a.includes(u.eventName)||!Zy({args:u.args,inputs:c.inputs,matchArgs:r})?null:{...u,...o}}catch(c){let u,d;if(c instanceof Yd)return null;if(c instanceof Zr||c instanceof Ws){if(s)return null;u=c.abiItem.name,d=(i=c.abiItem.inputs)==null?void 0:i.some(p=>!("name"in p&&p.name))}return{...o,args:d?[]:{},eventName:u}}}).filter(Boolean)}function Zy(e){const{args:t,inputs:r,matchArgs:n}=e;if(!n)return!0;if(!t)return!1;function s(a,o,i){try{return a.type==="address"?hr(o,i):a.type==="string"||a.type==="bytes"?te(tt(o))===i:o===i}catch{return!1}}return Array.isArray(t)&&Array.isArray(n)?n.every((a,o)=>{if(a==null)return!0;const i=r[o];return i?(Array.isArray(a)?a:[a]).some(u=>s(i,u,t[o])):!1}):typeof t=="object"&&!Array.isArray(t)&&typeof n=="object"&&!Array.isArray(n)?Object.entries(n).every(([a,o])=>{if(o==null)return!0;const i=r.find(u=>u.name===a);return i?(Array.isArray(o)?o:[o]).some(u=>s(i,u,t[a])):!1}):!1}function Ge(e,{args:t,eventName:r}={}){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,...r?{args:t,eventName:r}:{}}}async function Ui(e,{address:t,blockHash:r,fromBlock:n,toBlock:s,event:a,events:o,args:i,strict:c}={}){const u=c??!1,d=o??(a?[a]:void 0);let p=[];d&&(p=[d.flatMap(b=>Cn({abi:[b],eventName:b.name,args:o?void 0:i}))],a&&(p=p[0]));let f;r?f=await e.request({method:"eth_getLogs",params:[{address:t,topics:p,blockHash:r}]}):f=await e.request({method:"eth_getLogs",params:[{address:t,topics:p,fromBlock:typeof n=="bigint"?P(n):n,toBlock:typeof s=="bigint"?P(s):s}]});const m=f.map(h=>Ge(h));return d?Bi({abi:d,args:i,logs:m,strict:u}):m}async function Lp(e,t){const{abi:r,address:n,args:s,blockHash:a,eventName:o,fromBlock:i,toBlock:c,strict:u}=t,d=o?zt({abi:r,name:o}):void 0,p=d?void 0:r.filter(f=>f.type==="event");return D(e,Ui,"getLogs")({address:n,args:s,blockHash:a,event:d,events:p,fromBlock:i,toBlock:c,strict:u})}const Aa="/docs/contract/decodeFunctionResult";function Ot(e){const{abi:t,args:r,functionName:n,data:s}=e;let a=t[0];if(n){const i=zt({abi:t,args:r,name:n});if(!i)throw new rr(n,{docsPath:Aa});a=i}if(a.type!=="function")throw new rr(void 0,{docsPath:Aa});if(!a.outputs)throw new Qd(a.name,{docsPath:Aa});const o=Tn(a.outputs,s);if(o&&o.length>1)return o;if(o&&o.length===1)return o[0]}const Ms=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],Bo=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],Hp=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],jp=[...Hp,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],Xy=[...Hp,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],Wc=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],Zc=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],Gp=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],Xc=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],Jy="0x82ad56cb",qp="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",Yy="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",Qy="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",Pi="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033";class Uo extends B{constructor({blockNumber:t,chain:r,contract:n}){super(`Chain "${r.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...t&&n.blockCreated&&n.blockCreated>t?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${n.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class e6 extends B{constructor({chain:t,currentChainId:r}){super(`The current chain of the wallet (id: ${r}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`,{metaMessages:[`Current Chain ID: ${r}`,`Expected Chain ID: ${t.id} – ${t.name}`],name:"ChainMismatchError"})}}class t6 extends B{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(`
|
|
45
|
+
`),{name:"ChainNotFoundError"})}}class Vp extends B{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class br extends B{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}const Sa="/docs/contract/encodeDeployData";function ra(e){const{abi:t,args:r,bytecode:n}=e;if(!r||r.length===0)return n;const s=t.find(o=>"type"in o&&o.type==="constructor");if(!s)throw new hb({docsPath:Sa});if(!("inputs"in s))throw new Pc({docsPath:Sa});if(!s.inputs||s.inputs.length===0)throw new Pc({docsPath:Sa});const a=yt(s.inputs,r);return ve([n,a])}function yr({blockNumber:e,chain:t,contract:r}){var s;const n=(s=t==null?void 0:t.contracts)==null?void 0:s[r];if(!n)throw new Uo({chain:t,contract:{name:r}});if(e&&n.blockCreated&&n.blockCreated>e)throw new Uo({blockNumber:e,chain:t,contract:{name:r,blockCreated:n.blockCreated}});return n.address}function Ii(e,{docsPath:t,...r}){const n=(()=>{const s=Qs(e,r);return s instanceof Sn?e:s})();return new Ep(n,{docsPath:t,...r})}function Fi(){let e=()=>{},t=()=>{};return{promise:new Promise((n,s)=>{e=n,t=s}),resolve:e,reject:t}}const Ba=new Map;function Kp({fn:e,id:t,shouldSplitBatch:r,wait:n=0,sort:s}){const a=async()=>{const d=c();o();const p=d.map(({args:f})=>f);p.length!==0&&e(p).then(f=>{s&&Array.isArray(f)&&f.sort(s);for(let m=0;m<d.length;m++){const{resolve:h}=d[m];h==null||h([f[m],f])}}).catch(f=>{for(let m=0;m<d.length;m++){const{reject:h}=d[m];h==null||h(f)}})},o=()=>Ba.delete(t),i=()=>c().map(({args:d})=>d),c=()=>Ba.get(t)||[],u=d=>Ba.set(t,[...c(),d]);return{flush:o,async schedule(d){const{promise:p,resolve:f,reject:m}=Fi();return(r==null?void 0:r([...i(),d]))&&a(),c().length>0?(u({args:d,resolve:f,reject:m}),p):(u({args:d,resolve:f,reject:m}),setTimeout(a,n),p)}}}async function Pn(e,t){var I,L,A,$;const{account:r=e.account,authorizationList:n,batch:s=!!((I=e.batch)!=null&&I.multicall),blockNumber:a,blockTag:o=e.experimental_blockTag??"latest",accessList:i,blobs:c,blockOverrides:u,code:d,data:p,factory:f,factoryData:m,gas:h,gasPrice:b,maxFeePerBlobGas:y,maxFeePerGas:E,maxPriorityFeePerGas:v,nonce:g,to:w,value:x,stateOverride:C,...k}=t,T=r?K(r):void 0;if(d&&(f||m))throw new B("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(d&&w)throw new B("Cannot provide both `code` & `to` as parameters.");const S=d&&p,O=f&&m&&w&&p,U=S||O,z=S?Wp({code:d,data:p}):O?s6({data:p,factory:f,factoryData:m,to:w}):p;try{qe(t);const M=(typeof a=="bigint"?P(a):void 0)||o,N=u?ad(u):void 0,_=mi(C),H=($=(A=(L=e.chain)==null?void 0:L.formatters)==null?void 0:A.transactionRequest)==null?void 0:$.format,se=(H||_e)({...xt(k,{format:H}),accessList:i,account:T,authorizationList:n,blobs:c,data:z,gas:h,gasPrice:b,maxFeePerBlobGas:y,maxFeePerGas:E,maxPriorityFeePerGas:v,nonce:g,to:U?void 0:w,value:x},"call");if(s&&r6({request:se})&&!_&&!N)try{return await n6(e,{...se,blockNumber:a,blockTag:o})}catch(ae){if(!(ae instanceof Vp)&&!(ae instanceof Uo))throw ae}const re=(()=>{const ae=[se,M];return _&&N?[...ae,_,N]:_?[...ae,_]:N?[...ae,{},N]:ae})(),Q=await e.request({method:"eth_call",params:re});return Q==="0x"?{data:void 0}:{data:Q}}catch(R){const M=a6(R),{offchainLookup:N,offchainLookupSignature:_}=await Promise.resolve().then(()=>require("./ccip-DbO2zGlz.cjs"));if(e.ccipRead!==!1&&(M==null?void 0:M.slice(0,10))===_&&w)return{data:await N(e,{data:M,to:w})};throw U&&(M==null?void 0:M.slice(0,10))==="0x101bb98d"?new Ty({factory:f}):Ii(R,{...t,account:T,chain:e.chain})}}function r6({request:e}){const{data:t,to:r,...n}=e;return!(!t||t.startsWith(Jy)||!r||Object.values(n).filter(s=>typeof s<"u").length>0)}async function n6(e,t){var b;const{batchSize:r=1024,deployless:n=!1,wait:s=0}=typeof((b=e.batch)==null?void 0:b.multicall)=="object"?e.batch.multicall:{},{blockNumber:a,blockTag:o=e.experimental_blockTag??"latest",data:i,to:c}=t,u=(()=>{if(n)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return yr({blockNumber:a,chain:e.chain,contract:"multicall3"});throw new Vp})(),p=(typeof a=="bigint"?P(a):void 0)||o,{schedule:f}=Kp({id:`${e.uid}.${p}`,wait:s,shouldSplitBatch(y){return y.reduce((v,{data:g})=>v+(g.length-2),0)>r*2},fn:async y=>{const E=y.map(w=>({allowFailure:!0,callData:w.data,target:w.to})),v=Ce({abi:Ms,args:[E],functionName:"aggregate3"}),g=await e.request({method:"eth_call",params:[{...u===null?{data:Wp({code:Pi,data:v})}:{to:u,data:v}},p]});return Ot({abi:Ms,args:[E],functionName:"aggregate3",data:g||"0x"})}}),[{returnData:m,success:h}]=await f({data:i,to:c});if(!h)throw new Js({data:m});return m==="0x"?{data:void 0}:{data:m}}function Wp(e){const{code:t,data:r}=e;return ra({abi:Wl(["constructor(bytes, bytes)"]),bytecode:qp,args:[t,r]})}function s6(e){const{data:t,factory:r,factoryData:n,to:s}=e;return ra({abi:Wl(["constructor(address, bytes, address, bytes)"]),bytecode:Yy,args:[s,t,r,n]})}function a6(e){var r;if(!(e instanceof B))return;const t=e.walk();return typeof(t==null?void 0:t.data)=="object"?(r=t.data)==null?void 0:r.data:t.data}async function Ne(e,t){const{abi:r,address:n,args:s,functionName:a,...o}=t,i=Ce({abi:r,args:s,functionName:a});try{const{data:c}=await D(e,Pn,"call")({...o,data:i,to:n});return Ot({abi:r,args:s,functionName:a,data:c||"0x"})}catch(c){throw $t(c,{abi:r,address:n,args:s,docsPath:"/docs/contract/readContract",functionName:a})}}async function o6(e,t){const{abi:r,address:n,args:s,dataSuffix:a,functionName:o,...i}=t,c=i.account?K(i.account):e.account,u=Ce({abi:r,args:s,functionName:o});try{const{data:d}=await D(e,Pn,"call")({batch:!1,data:`${u}${a?a.replace("0x",""):""}`,to:n,...i,account:c}),p=Ot({abi:r,args:s,functionName:o,data:d||"0x"}),f=r.filter(m=>"name"in m&&m.name===t.functionName);return{result:p,request:{abi:f,address:n,args:s,dataSuffix:a,functionName:o,...i,account:c}}}catch(d){throw $t(d,{abi:r,address:n,args:s,docsPath:"/docs/contract/simulateContract",functionName:o,sender:c==null?void 0:c.address})}}const Ua=new Map,Jc=new Map;let i6=0;function st(e,t,r){const n=++i6,s=()=>Ua.get(e)||[],a=()=>{const d=s();Ua.set(e,d.filter(p=>p.id!==n))},o=()=>{const d=s();if(!d.some(f=>f.id===n))return;const p=Jc.get(e);if(d.length===1&&p){const f=p();f instanceof Promise&&f.catch(()=>{})}a()},i=s();if(Ua.set(e,[...i,{id:n,fns:t}]),i&&i.length>0)return o;const c={};for(const d in t)c[d]=(...p)=>{var m,h;const f=s();if(f.length!==0)for(const b of f)(h=(m=b.fns)[d])==null||h.call(m,...p)};const u=r(c);return typeof u=="function"&&Jc.set(e,u),o}async function Po(e){return new Promise(t=>setTimeout(t,e))}function xr(e,{emitOnBegin:t,initialWaitTime:r,interval:n}){let s=!0;const a=()=>s=!1;return(async()=>{let i;t&&(i=await e({unpoll:a}));const c=await(r==null?void 0:r(i))??n;await Po(c);const u=async()=>{s&&(await e({unpoll:a}),await Po(n),u())};u()})(),a}const c6=new Map,l6=new Map;function u6(e){const t=(s,a)=>({clear:()=>a.delete(s),get:()=>a.get(s),set:o=>a.set(s,o)}),r=t(e,c6),n=t(e,l6);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}async function d6(e,{cacheKey:t,cacheTime:r=Number.POSITIVE_INFINITY}){const n=u6(t),s=n.response.get();if(s&&r>0&&Date.now()-s.created.getTime()<r)return s.data;let a=n.promise.get();a||(a=e(),n.promise.set(a));try{const o=await a;return n.response.set({created:new Date,data:o}),o}finally{n.promise.clear()}}const p6=e=>`blockNumber.${e}`;async function In(e,{cacheTime:t=e.cacheTime}={}){const r=await d6(()=>e.request({method:"eth_blockNumber"}),{cacheKey:p6(e.uid),cacheTime:t});return BigInt(r)}async function na(e,{filter:t}){const r="strict"in t&&t.strict,n=await t.request({method:"eth_getFilterChanges",params:[t.id]});if(typeof n[0]=="string")return n;const s=n.map(a=>Ge(a));return!("abi"in t)||!t.abi?s:Bi({abi:t.abi,logs:s,strict:r})}async function sa(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}function f6(e,t){const{abi:r,address:n,args:s,batch:a=!0,eventName:o,fromBlock:i,onError:c,onLogs:u,poll:d,pollingInterval:p=e.pollingInterval,strict:f}=t;return(typeof d<"u"?d:typeof i=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")))?(()=>{const y=f??!1,E=J(["watchContractEvent",n,s,a,e.uid,o,p,y,i]);return st(E,{onLogs:u,onError:c},v=>{let g;i!==void 0&&(g=i-1n);let w,x=!1;const C=xr(async()=>{var k;if(!x){try{w=await D(e,dp,"createContractEventFilter")({abi:r,address:n,args:s,eventName:o,strict:y,fromBlock:i})}catch{}x=!0;return}try{let T;if(w)T=await D(e,na,"getFilterChanges")({filter:w});else{const S=await D(e,In,"getBlockNumber")({});g&&g<S?T=await D(e,Lp,"getContractEvents")({abi:r,address:n,args:s,eventName:o,fromBlock:g+1n,toBlock:S,strict:y}):T=[],g=S}if(T.length===0)return;if(a)v.onLogs(T);else for(const S of T)v.onLogs([S])}catch(T){w&&T instanceof mt&&(x=!1),(k=v.onError)==null||k.call(v,T)}},{emitOnBegin:!0,interval:p});return async()=>{w&&await D(e,sa,"uninstallFilter")({filter:w}),C()}})})():(()=>{const y=f??!1,E=J(["watchContractEvent",n,s,a,e.uid,o,p,y]);let v=!0,g=()=>v=!1;return st(E,{onLogs:u,onError:c},w=>((async()=>{try{const x=(()=>{if(e.transport.type==="fallback"){const T=e.transport.transports.find(S=>S.config.type==="webSocket"||S.config.type==="ipc");return T?T.value:e.transport}return e.transport})(),C=o?Cn({abi:r,eventName:o,args:s}):[],{unsubscribe:k}=await x.subscribe({params:["logs",{address:n,topics:C}],onData(T){var O;if(!v)return;const S=T.result;try{const{eventName:U,args:z}=Si({abi:r,data:S.data,topics:S.topics,strict:f}),I=Ge(S,{args:z,eventName:U});w.onLogs([I])}catch(U){let z,I;if(U instanceof Zr||U instanceof Ws){if(f)return;z=U.abiItem.name,I=(O=U.abiItem.inputs)==null?void 0:O.some(A=>!("name"in A&&A.name))}const L=Ge(S,{args:I?[]:{},eventName:z});w.onLogs([L])}},onError(T){var S;(S=w.onError)==null||S.call(w,T)}});g=k,v||g()}catch(x){c==null||c(x)}})(),()=>g()))})()}class ot extends B{constructor({docsPath:t}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`
|
|
46
|
+
`),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class Bt extends B{constructor({docsPath:t,metaMessages:r,type:n}){super(`Account type "${n}" is not supported.`,{docsPath:t,metaMessages:r,name:"AccountTypeNotSupportedError"})}}function $i({chain:e,currentChainId:t}){if(!e)throw new t6;if(t!==e.id)throw new e6({chain:e,currentChainId:t})}async function Mi(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}const Pa=new pr(128);async function aa(e,t){var v,g,w,x;const{account:r=e.account,chain:n=e.chain,accessList:s,authorizationList:a,blobs:o,data:i,gas:c,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:p,maxPriorityFeePerGas:f,nonce:m,type:h,value:b,...y}=t;if(typeof r>"u")throw new ot({docsPath:"/docs/actions/wallet/sendTransaction"});const E=r?K(r):null;try{qe(t);const C=await(async()=>{if(t.to)return t.to;if(t.to!==null&&a&&a.length>0)return await Ys({authorization:a[0]}).catch(()=>{throw new B("`to` is required. Could not infer from `authorizationList`.")})})();if((E==null?void 0:E.type)==="json-rpc"||E===null){let k;n!==null&&(k=await D(e,gt,"getChainId")({}),$i({currentChainId:k,chain:n}));const T=(w=(g=(v=e.chain)==null?void 0:v.formatters)==null?void 0:g.transactionRequest)==null?void 0:w.format,O=(T||_e)({...xt(y,{format:T}),accessList:s,account:E,authorizationList:a,blobs:o,chainId:k,data:i,gas:c,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:p,maxPriorityFeePerGas:f,nonce:m,to:C,type:h,value:b},"sendTransaction"),U=Pa.get(e.uid),z=U?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:z,params:[O]},{retryCount:0})}catch(I){if(U===!1)throw I;const L=I;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[O]},{retryCount:0}).then(A=>(Pa.set(e.uid,!0),A)).catch(A=>{const $=A;throw $.name==="MethodNotFoundRpcError"||$.name==="MethodNotSupportedRpcError"?(Pa.set(e.uid,!1),L):$});throw L}}if((E==null?void 0:E.type)==="local"){const k=await D(e,Un,"prepareTransactionRequest")({account:E,accessList:s,authorizationList:a,blobs:o,chain:n,data:i,gas:c,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:p,maxPriorityFeePerGas:f,nonce:m,nonceManager:E.nonceManager,parameters:[...Ti,"sidecars"],type:h,value:b,...y,to:C}),T=(x=n==null?void 0:n.serializers)==null?void 0:x.transaction,S=await E.signTransaction(k,{serializer:T});return await D(e,Mi,"sendRawTransaction")({serializedTransaction:S})}throw(E==null?void 0:E.type)==="smart"?new Bt({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new Bt({docsPath:"/docs/actions/wallet/sendTransaction",type:E==null?void 0:E.type})}catch(C){throw C instanceof Bt?C:ta(C,{...t,account:E,chain:t.chain||void 0})}}async function bn(e,t){return bn.internal(e,aa,"sendTransaction",t)}(function(e){async function t(r,n,s,a){const{abi:o,account:i=r.account,address:c,args:u,dataSuffix:d,functionName:p,...f}=a;if(typeof i>"u")throw new ot({docsPath:"/docs/contract/writeContract"});const m=i?K(i):null,h=Ce({abi:o,args:u,functionName:p});try{return await D(r,n,s)({data:`${h}${d?d.replace("0x",""):""}`,to:c,account:m,...f})}catch(b){throw $t(b,{abi:o,address:c,args:u,docsPath:"/docs/contract/writeContract",functionName:p,sender:m==null?void 0:m.address})}}e.internal=t})(bn||(bn={}));class m6 extends B{constructor(t){super(`Call bundle failed with status: ${t.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=t}}function zs(e,{delay:t=100,retryCount:r=2,shouldRetry:n=()=>!0}={}){return new Promise((s,a)=>{const o=async({count:i=0}={})=>{const c=async({error:u})=>{const d=typeof t=="function"?t({count:i,error:u}):t;d&&await Po(d),o({count:i+1})};try{const u=await e();s(u)}catch(u){if(i<r&&await n({count:i,error:u}))return c({error:u});a(u)}};o()})}const Zp={"0x0":"reverted","0x1":"success"};function zi(e,t){const r={...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(n=>Ge(n)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?ue(e.transactionIndex):null,status:e.status?Zp[e.status]:null,type:e.type?Ip[e.type]||e.type:null};return e.blobGasPrice&&(r.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(r.blobGasUsed=BigInt(e.blobGasUsed)),r}const Xp=ea("transactionReceipt",zi),Jp="0x5792579257925792579257925792579257925792579257925792579257925792",Yp=P(0,{size:32});async function Qp(e,t){const{account:r=e.account,capabilities:n,chain:s=e.chain,experimental_fallback:a,experimental_fallbackDelay:o=32,forceAtomic:i=!1,id:c,version:u="2.0.0"}=t,d=r?K(r):null,p=t.calls.map(f=>{const m=f,h=m.abi?Ce({abi:m.abi,functionName:m.functionName,args:m.args}):m.data;return{data:m.dataSuffix&&h?Ee([h,m.dataSuffix]):h,to:m.to,value:m.value?P(m.value):void 0}});try{const f=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:i,calls:p,capabilities:n,chainId:P(s.id),from:d==null?void 0:d.address,id:c,version:u}]},{retryCount:0});return typeof f=="string"?{id:f}:f}catch(f){const m=f;if(a&&(m.name==="MethodNotFoundRpcError"||m.name==="MethodNotSupportedRpcError"||m.name==="UnknownRpcError"||m.details.toLowerCase().includes("does not exist / is not available")||m.details.toLowerCase().includes("missing or invalid. request()")||m.details.toLowerCase().includes("did not match any variant of untagged enum")||m.details.toLowerCase().includes("account upgraded to unsupported contract")||m.details.toLowerCase().includes("eip-7702 not supported")||m.details.toLowerCase().includes("unsupported wc_ method")||m.details.toLowerCase().includes("feature toggled misconfigured")||m.details.toLowerCase().includes("jsonrpcengine: response has no error or result for request"))){if(n&&Object.values(n).some(v=>!v.optional)){const v="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new ar(new B(v,{details:v}))}if(i&&p.length>1){const E="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new or(new B(E,{details:E}))}const h=[];for(const E of p){const v=aa(e,{account:d,chain:s,data:E.data,to:E.to,value:E.value?q(E.value):void 0});h.push(v),o>0&&await new Promise(g=>setTimeout(g,o))}const b=await Promise.allSettled(h);if(b.every(E=>E.status==="rejected"))throw b[0].reason;const y=b.map(E=>E.status==="fulfilled"?E.value:Yp);return{id:Ee([...y,P(s.id,{size:32}),Jp])}}throw ta(f,{...t,account:d,chain:t.chain})}}async function e0(e,t){async function r(d){if(d.endsWith(Jp.slice(2))){const f=pe(ho(d,-64,-32)),m=ho(d,0,-64).slice(2).match(/.{1,64}/g),h=await Promise.all(m.map(y=>Yp.slice(2)!==y?e.request({method:"eth_getTransactionReceipt",params:[`0x${y}`]},{dedupe:!0}):void 0)),b=h.some(y=>y===null)?100:h.every(y=>(y==null?void 0:y.status)==="0x1")?200:h.every(y=>(y==null?void 0:y.status)==="0x0")?500:600;return{atomic:!1,chainId:ue(f),receipts:h.filter(Boolean),status:b,version:"2.0.0"}}return e.request({method:"wallet_getCallsStatus",params:[d]})}const{atomic:n=!1,chainId:s,receipts:a,version:o="2.0.0",...i}=await r(t.id),[c,u]=(()=>{const d=i.status;return d>=100&&d<200?["pending",d]:d>=200&&d<300?["success",d]:d>=300&&d<700?["failure",d]:d==="CONFIRMED"?["success",200]:d==="PENDING"?["pending",100]:[void 0,d]})();return{...i,atomic:n,chainId:s?ue(s):void 0,receipts:(a==null?void 0:a.map(d=>({...d,blockNumber:q(d.blockNumber),gasUsed:q(d.gasUsed),status:Zp[d.status]})))??[],statusCode:u,status:c,version:o}}async function t0(e,t){const{id:r,pollingInterval:n=e.pollingInterval,status:s=({statusCode:b})=>b===200||b>=300,retryCount:a=4,retryDelay:o=({count:b})=>~~(1<<b)*200,timeout:i=6e4,throwOnFailure:c=!1}=t,u=J(["waitForCallsStatus",e.uid,r]),{promise:d,resolve:p,reject:f}=Fi();let m;const h=st(u,{resolve:p,reject:f},b=>{const y=xr(async()=>{const E=v=>{clearTimeout(m),y(),v(),h()};try{const v=await zs(async()=>{const g=await D(e,e0,"getCallsStatus")({id:r});if(c&&g.status==="failure")throw new m6(g);return g},{retryCount:a,delay:o});if(!s(v))return;E(()=>b.resolve(v))}catch(v){E(()=>b.reject(v))}},{interval:n,emitOnBegin:!0});return y});return m=i?setTimeout(()=>{h(),clearTimeout(m),f(new h6({id:r}))},i):void 0,await d}class h6 extends B{constructor({id:t}){super(`Timed out while waiting for call bundle with id "${t}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}const Io=256;let qn=Io,Vn;function r0(e=11){if(!Vn||qn+e>Io*2){Vn="",qn=0;for(let t=0;t<Io;t++)Vn+=(256+Math.random()*256|0).toString(16).substring(1)}return Vn.substring(qn,qn+++e)}function n0(e){const{batch:t,chain:r,ccipRead:n,key:s="base",name:a="Base Client",type:o="base"}=e,i=e.experimental_blockTag??(typeof(r==null?void 0:r.experimental_preconfirmationTime)=="number"?"pending":void 0),c=(r==null?void 0:r.blockTime)??12e3,u=Math.min(Math.max(Math.floor(c/2),500),4e3),d=e.pollingInterval??u,p=e.cacheTime??d,f=e.account?K(e.account):void 0,{config:m,request:h,value:b}=e.transport({account:f,chain:r,pollingInterval:d}),y={...m,...b},E={account:f,batch:t,cacheTime:p,ccipRead:n,chain:r,key:s,name:a,pollingInterval:d,request:h,transport:y,type:o,uid:r0(),...i?{experimental_blockTag:i}:{}};function v(g){return w=>{const x=w(g);for(const k in E)delete x[k];const C={...g,...x};return Object.assign(C,{extend:v(C)})}}return Object.assign(E,{extend:v(E)})}function Oi(e){var r,n,s,a,o,i;if(!(e instanceof B))return!1;const t=e.walk(c=>c instanceof xo);return t instanceof xo?((r=t.data)==null?void 0:r.errorName)==="HttpError"||((n=t.data)==null?void 0:n.errorName)==="ResolverError"||((s=t.data)==null?void 0:s.errorName)==="ResolverNotContract"||((a=t.data)==null?void 0:a.errorName)==="ResolverNotFound"||((o=t.data)==null?void 0:o.errorName)==="ReverseAddressMismatch"||((i=t.data)==null?void 0:i.errorName)==="UnsupportedResolverProfile":!1}function b6(e){const{abi:t,data:r}=e,n=It(r,0,4),s=t.find(a=>a.type==="function"&&n===fr(Oe(a)));if(!s)throw new Eb(n,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:s.name,args:"inputs"in s&&s.inputs&&s.inputs.length>0?Tn(s.inputs,It(r,4)):void 0}}const Ia="/docs/contract/encodeErrorResult";function Yc(e){const{abi:t,errorName:r,args:n}=e;let s=t[0];if(r){const c=zt({abi:t,args:n,name:r});if(!c)throw new Ic(r,{docsPath:Ia});s=c}if(s.type!=="error")throw new Ic(void 0,{docsPath:Ia});const a=Oe(s),o=fr(a);let i="0x";if(n&&n.length>0){if(!s.inputs)throw new gb(s.name,{docsPath:Ia});i=yt(s.inputs,n)}return ve([o,i])}const Fa="/docs/contract/encodeFunctionResult";function y6(e){const{abi:t,functionName:r,result:n}=e;let s=t[0];if(r){const o=zt({abi:t,name:r});if(!o)throw new rr(r,{docsPath:Fa});s=o}if(s.type!=="function")throw new rr(void 0,{docsPath:Fa});if(!s.outputs)throw new Qd(s.name,{docsPath:Fa});const a=(()=>{if(s.outputs.length===0)return[];if(s.outputs.length===1)return[n];if(Array.isArray(n))return n;throw new ep(n)})();return yt(s.outputs,a)}const Fn="x-batch-gateway:true";async function s0(e){const{data:t,ccipRequest:r}=e,{args:[n]}=b6({abi:Bo,data:t}),s=[],a=[];return await Promise.all(n.map(async(o,i)=>{try{a[i]=o.urls.includes(Fn)?await s0({data:o.data,ccipRequest:r}):await r(o),s[i]=!1}catch(c){s[i]=!0,a[i]=x6(c)}})),y6({abi:Bo,functionName:"query",result:[s,a]})}function x6(e){return e.name==="HttpRequestError"&&e.status?Yc({abi:Bo,errorName:"HttpError",args:[e.status,e.shortMessage]}):Yc({abi:[pp],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}function a0(e){if(e.length!==66||e.indexOf("[")!==0||e.indexOf("]")!==65)return null;const t=`0x${e.slice(1,65)}`;return Ue(t)?t:null}function Fo(e){let t=new Uint8Array(32).fill(0);if(!e)return Y(t);const r=e.split(".");for(let n=r.length-1;n>=0;n-=1){const s=a0(r[n]),a=s?tt(s):te(St(r[n]),"bytes");t=te(Ee([t,a]),"bytes")}return Y(t)}function g6(e){return`[${e.slice(2)}]`}function w6(e){const t=new Uint8Array(32).fill(0);return e?a0(e)||te(St(e)):Y(t)}function Ni(e){const t=e.replace(/^\.|\.$/gm,"");if(t.length===0)return new Uint8Array(1);const r=new Uint8Array(St(t).byteLength+2);let n=0;const s=t.split(".");for(let a=0;a<s.length;a++){let o=St(s[a]);o.byteLength>255&&(o=St(g6(w6(s[a])))),r[n]=o.length,r.set(o,n+1),n+=o.length+1}return r.byteLength!==n+1?r.slice(0,n+1):r}async function E6(e,t){const{blockNumber:r,blockTag:n,coinType:s,name:a,gatewayUrls:o,strict:i}=t,{chain:c}=e,u=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return yr({blockNumber:r,chain:c,contract:"ensUniversalResolver"})})(),d=c==null?void 0:c.ensTlds;if(d&&!d.some(f=>a.endsWith(f)))return null;const p=s!=null?[Fo(a),BigInt(s)]:[Fo(a)];try{const f=Ce({abi:Zc,functionName:"addr",args:p}),m={address:u,abi:jp,functionName:"resolveWithGateways",args:[j(Ni(a)),f,o??[Fn]],blockNumber:r,blockTag:n},b=await D(e,Ne,"readContract")(m);if(b[0]==="0x")return null;const y=Ot({abi:Zc,args:p,functionName:"addr",data:b[0]});return y==="0x"||pe(y)==="0x00"?null:y}catch(f){if(i)throw f;if(Oi(f))return null;throw f}}class k6 extends B{constructor({data:t}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(t)}`],name:"EnsAvatarInvalidMetadataError"})}}class Ar extends B{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:"EnsAvatarInvalidNftUriError"})}}class Ri extends B{constructor({uri:t}){super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class v6 extends B{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}const C6=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,T6=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,A6=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,S6=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function B6(e){try{const t=await fetch(e,{method:"HEAD"});if(t.status===200){const r=t.headers.get("content-type");return r==null?void 0:r.startsWith("image/")}return!1}catch(t){return typeof t=="object"&&typeof t.response<"u"||!Object.hasOwn(globalThis,"Image")?!1:new Promise(r=>{const n=new Image;n.onload=()=>{r(!0)},n.onerror=()=>{r(!1)},n.src=e})}}function Qc(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function o0({uri:e,gatewayUrls:t}){const r=A6.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};const n=Qc(t==null?void 0:t.ipfs,"https://ipfs.io"),s=Qc(t==null?void 0:t.arweave,"https://arweave.net"),a=e.match(C6),{protocol:o,subpath:i,target:c,subtarget:u=""}=(a==null?void 0:a.groups)||{},d=o==="ipns:/"||i==="ipns/",p=o==="ipfs:/"||i==="ipfs/"||T6.test(e);if(e.startsWith("http")&&!d&&!p){let m=e;return t!=null&&t.arweave&&(m=e.replace(/https:\/\/arweave.net/g,t==null?void 0:t.arweave)),{uri:m,isOnChain:!1,isEncoded:!1}}if((d||p)&&c)return{uri:`${n}/${d?"ipns":"ipfs"}/${c}${u}`,isOnChain:!1,isEncoded:!1};if(o==="ar:/"&&c)return{uri:`${s}/${c}${u||""}`,isOnChain:!1,isEncoded:!1};let f=e.replace(S6,"");if(f.startsWith("<svg")&&(f=`data:image/svg+xml;base64,${btoa(f)}`),f.startsWith("data:")||f.startsWith("{"))return{uri:f,isOnChain:!0,isEncoded:!1};throw new Ri({uri:e})}function i0(e){if(typeof e!="object"||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new k6({data:e});return e.image||e.image_url||e.image_data}async function U6({gatewayUrls:e,uri:t}){try{const r=await fetch(t).then(s=>s.json());return await Di({gatewayUrls:e,uri:i0(r)})}catch{throw new Ri({uri:t})}}async function Di({gatewayUrls:e,uri:t}){const{uri:r,isOnChain:n}=o0({uri:t,gatewayUrls:e});if(n||await B6(r))return r;throw new Ri({uri:t})}function P6(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[r,n,s]=t.split("/"),[a,o]=r.split(":"),[i,c]=n.split(":");if(!a||a.toLowerCase()!=="eip155")throw new Ar({reason:"Only EIP-155 supported"});if(!o)throw new Ar({reason:"Chain ID not found"});if(!c)throw new Ar({reason:"Contract address not found"});if(!s)throw new Ar({reason:"Token ID not found"});if(!i)throw new Ar({reason:"ERC namespace not found"});return{chainID:Number.parseInt(o,10),namespace:i.toLowerCase(),contractAddress:c,tokenID:s}}async function I6(e,{nft:t}){if(t.namespace==="erc721")return Ne(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if(t.namespace==="erc1155")return Ne(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new v6({namespace:t.namespace})}async function F6(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?$6(e,{gatewayUrls:t,record:r}):Di({uri:r,gatewayUrls:t})}async function $6(e,{gatewayUrls:t,record:r}){const n=P6(r),s=await I6(e,{nft:n}),{uri:a,isOnChain:o,isEncoded:i}=o0({uri:s,gatewayUrls:t});if(o&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){const u=i?atob(a.replace("data:application/json;base64,","")):a,d=JSON.parse(u);return Di({uri:i0(d),gatewayUrls:t})}let c=n.tokenID;return n.namespace==="erc1155"&&(c=c.replace("0x","").padStart(64,"0")),U6({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,c)})}async function c0(e,t){const{blockNumber:r,blockTag:n,key:s,name:a,gatewayUrls:o,strict:i}=t,{chain:c}=e,u=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return yr({blockNumber:r,chain:c,contract:"ensUniversalResolver"})})(),d=c==null?void 0:c.ensTlds;if(d&&!d.some(p=>a.endsWith(p)))return null;try{const p={address:u,abi:jp,args:[j(Ni(a)),Ce({abi:Wc,functionName:"text",args:[Fo(a),s]}),o??[Fn]],functionName:"resolveWithGateways",blockNumber:r,blockTag:n},m=await D(e,Ne,"readContract")(p);if(m[0]==="0x")return null;const h=Ot({abi:Wc,functionName:"text",data:m[0]});return h===""?null:h}catch(p){if(i)throw p;if(Oi(p))return null;throw p}}async function M6(e,{blockNumber:t,blockTag:r,assetGatewayUrls:n,name:s,gatewayUrls:a,strict:o,universalResolverAddress:i}){const c=await D(e,c0,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:s,universalResolverAddress:i,gatewayUrls:a,strict:o});if(!c)return null;try{return await F6(e,{record:c,gatewayUrls:n})}catch{return null}}async function z6(e,t){const{address:r,blockNumber:n,blockTag:s,coinType:a=60n,gatewayUrls:o,strict:i}=t,{chain:c}=e,u=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return yr({blockNumber:n,chain:c,contract:"ensUniversalResolver"})})();try{const d={address:u,abi:Xy,args:[r,a,o??[Fn]],functionName:"reverseWithGateways",blockNumber:n,blockTag:s},p=D(e,Ne,"readContract"),[f]=await p(d);return f||null}catch(d){if(i)throw d;if(Oi(d))return null;throw d}}async function O6(e,t){const{blockNumber:r,blockTag:n,name:s}=t,{chain:a}=e,o=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!a)throw new Error("client chain not configured. universalResolverAddress is required.");return yr({blockNumber:r,chain:a,contract:"ensUniversalResolver"})})(),i=a==null?void 0:a.ensTlds;if(i&&!i.some(u=>s.endsWith(u)))throw new Error(`${s} is not a valid ENS TLD (${i==null?void 0:i.join(", ")}) for chain "${a.name}" (id: ${a.id}).`);const[c]=await D(e,Ne,"readContract")({address:o,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[j(Ni(s))],blockNumber:r,blockTag:n});return c}async function l0(e,t){var y,E,v;const{account:r=e.account,blockNumber:n,blockTag:s="latest",blobs:a,data:o,gas:i,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:p,to:f,value:m,...h}=t,b=r?K(r):void 0;try{qe(t);const w=(typeof n=="bigint"?P(n):void 0)||s,x=(v=(E=(y=e.chain)==null?void 0:y.formatters)==null?void 0:E.transactionRequest)==null?void 0:v.format,k=(x||_e)({...xt(h,{format:x}),account:b,blobs:a,data:o,gas:i,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:p,to:f,value:m},"createAccessList"),T=await e.request({method:"eth_createAccessList",params:[k,w]});return{accessList:T.accessList,gasUsed:BigInt(T.gasUsed)}}catch(g){throw Ii(g,{...t,account:b,chain:e.chain})}}async function N6(e){const t=Zs(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}async function u0(e,{address:t,args:r,event:n,events:s,fromBlock:a,strict:o,toBlock:i}={}){const c=s??(n?[n]:void 0),u=Zs(e,{method:"eth_newFilter"});let d=[];c&&(d=[c.flatMap(m=>Cn({abi:[m],eventName:m.name,args:r}))],n&&(d=d[0]));const p=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof a=="bigint"?P(a):a,toBlock:typeof i=="bigint"?P(i):i,...d.length?{topics:d}:{}}]});return{abi:c,args:r,eventName:n?n.name:void 0,fromBlock:a,id:p,request:u(p),strict:!!o,toBlock:i,type:"event"}}async function d0(e){const t=Zs(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}async function R6(e,{address:t,blockNumber:r,blockTag:n=e.experimental_blockTag??"latest"}){const s=typeof r=="bigint"?P(r):void 0,a=await e.request({method:"eth_getBalance",params:[t,s||n]});return BigInt(a)}async function D6(e){const t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}async function _6(e,{blockHash:t,blockNumber:r,blockTag:n="latest"}={}){const s=r!==void 0?P(r):void 0;let a;return t?a=await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):a=await e.request({method:"eth_getBlockTransactionCountByNumber",params:[s||n]},{dedupe:!!s}),ue(a)}async function $o(e,{address:t,blockNumber:r,blockTag:n="latest"}){const s=r!==void 0?P(r):void 0,a=await e.request({method:"eth_getCode",params:[t,s||n]},{dedupe:!!s});if(a!=="0x")return a}class L6 extends B{constructor({address:t}){super(`No EIP-712 domain found on contract "${t}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${t}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}async function H6(e,t){const{address:r,factory:n,factoryData:s}=t;try{const[a,o,i,c,u,d,p]=await D(e,Ne,"readContract")({abi:j6,address:r,functionName:"eip712Domain",factory:n,factoryData:s});return{domain:{name:o,version:i,chainId:Number(c),verifyingContract:u,salt:d},extensions:p,fields:a}}catch(a){const o=a;throw o.name==="ContractFunctionExecutionError"&&o.cause.name==="ContractFunctionZeroDataError"?new L6({address:r}):o}}const j6=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];function G6(e){var t;return{baseFeePerGas:e.baseFeePerGas.map(r=>BigInt(r)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:(t=e.reward)==null?void 0:t.map(r=>r.map(n=>BigInt(n)))}}async function q6(e,{blockCount:t,blockNumber:r,blockTag:n="latest",rewardPercentiles:s}){const a=typeof r=="bigint"?P(r):void 0,o=await e.request({method:"eth_feeHistory",params:[P(t),a||n,s]},{dedupe:!!a});return G6(o)}async function V6(e,{filter:t}){const r=t.strict??!1,s=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(a=>Ge(a));return t.abi?Bi({abi:t.abi,logs:s,strict:r}):s}function K6(e){const{authorizationList:t}=e;if(t)for(const r of t){const{chainId:n}=r,s=r.address;if(!V(s))throw new Z({address:s});if(n<0)throw new br({chainId:n})}_i(e)}function W6(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new Rp;for(const r of t){const n=W(r),s=ue(It(r,0,1));if(n!==32)throw new Gy({hash:r,size:n});if(s!==Np)throw new qy({hash:r,version:s})}}_i(e)}function _i(e){const{chainId:t,maxPriorityFeePerGas:r,maxFeePerGas:n,to:s}=e;if(t<=0)throw new br({chainId:t});if(s&&!V(s))throw new Z({address:s});if(n&&n>Bn)throw new ht({maxFeePerGas:n});if(r&&n&&r>n)throw new ir({maxFeePerGas:n,maxPriorityFeePerGas:r})}function Z6(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:a}=e;if(t<=0)throw new br({chainId:t});if(a&&!V(a))throw new Z({address:a});if(r||s)throw new B("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(n&&n>Bn)throw new ht({maxFeePerGas:n})}function X6(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:a}=e;if(a&&!V(a))throw new Z({address:a});if(typeof t<"u"&&t<=0)throw new br({chainId:t});if(r||s)throw new B("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(n&&n>Bn)throw new ht({maxFeePerGas:n})}function $n(e){if(!e||e.length===0)return[];const t=[];for(let r=0;r<e.length;r++){const{address:n,storageKeys:s}=e[r];for(let a=0;a<s.length;a++)if(s[a].length-2!==64)throw new wy({storageKey:s[a]});if(!V(n,{strict:!1}))throw new Z({address:n});t.push([n,s])}return t}function Li(e,t){const r=_p(e);return r==="eip1559"?Q6(e,t):r==="eip2930"?e2(e,t):r==="eip4844"?Y6(e,t):r==="eip7702"?J6(e,t):t2(e,t)}function J6(e,t){const{authorizationList:r,chainId:n,gas:s,nonce:a,to:o,value:i,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:d,data:p}=e;K6(e);const f=$n(d),m=r2(r);return ve(["0x04",je([P(n),a?P(a):"0x",u?P(u):"0x",c?P(c):"0x",s?P(s):"0x",o??"0x",i?P(i):"0x",p??"0x",f,m,...gr(e,t)])])}function Y6(e,t){const{chainId:r,gas:n,nonce:s,to:a,value:o,maxFeePerBlobGas:i,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:d,data:p}=e;W6(e);let f=e.blobVersionedHashes,m=e.sidecars;if(e.blobs&&(typeof f>"u"||typeof m>"u")){const g=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(C=>Y(C)),w=e.kzg,x=Ei({blobs:g,kzg:w});if(typeof f>"u"&&(f=Mp({commitments:x})),typeof m>"u"){const C=ki({blobs:g,commitments:x,kzg:w});m=Dp({blobs:g,commitments:x,proofs:C})}}const h=$n(d),b=[P(r),s?P(s):"0x",u?P(u):"0x",c?P(c):"0x",n?P(n):"0x",a??"0x",o?P(o):"0x",p??"0x",h,i?P(i):"0x",f??[],...gr(e,t)],y=[],E=[],v=[];if(m)for(let g=0;g<m.length;g++){const{blob:w,commitment:x,proof:C}=m[g];y.push(w),E.push(x),v.push(C)}return ve(["0x03",je(m?[b,y,E,v]:b)])}function Q6(e,t){const{chainId:r,gas:n,nonce:s,to:a,value:o,maxFeePerGas:i,maxPriorityFeePerGas:c,accessList:u,data:d}=e;_i(e);const p=$n(u),f=[P(r),s?P(s):"0x",c?P(c):"0x",i?P(i):"0x",n?P(n):"0x",a??"0x",o?P(o):"0x",d??"0x",p,...gr(e,t)];return ve(["0x02",je(f)])}function e2(e,t){const{chainId:r,gas:n,data:s,nonce:a,to:o,value:i,accessList:c,gasPrice:u}=e;Z6(e);const d=$n(c),p=[P(r),a?P(a):"0x",u?P(u):"0x",n?P(n):"0x",o??"0x",i?P(i):"0x",s??"0x",d,...gr(e,t)];return ve(["0x01",je(p)])}function t2(e,t){const{chainId:r=0,gas:n,data:s,nonce:a,to:o,value:i,gasPrice:c}=e;X6(e);let u=[a?P(a):"0x",c?P(c):"0x",n?P(n):"0x",o??"0x",i?P(i):"0x",s??"0x"];if(t){const d=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);if(r>0)return BigInt(r*2)+BigInt(35n+t.v-27n);const m=27n+(t.v===27n?0n:1n);if(t.v!==m)throw new xy({v:t.v});return m})(),p=pe(t.r),f=pe(t.s);u=[...u,P(d),p==="0x00"?"0x":p,f==="0x00"?"0x":f]}else r>0&&(u=[...u,P(r),"0x","0x"]);return je(u)}function gr(e,t){const r=t??e,{v:n,yParity:s}=r;if(typeof r.r>"u")return[];if(typeof r.s>"u")return[];if(typeof n>"u"&&typeof s>"u")return[];const a=pe(r.r),o=pe(r.s);return[typeof s=="number"?s?P(1):"0x":n===0n?"0x":n===1n?P(1):n===27n?"0x":P(1),a==="0x00"?"0x":a,o==="0x00"?"0x":o]}function r2(e){if(!e||e.length===0)return[];const t=[];for(const r of e){const{chainId:n,nonce:s,...a}=r,o=r.address;t.push([n?j(n):"0x",o,s?j(s):"0x",...gr({},a)])}return t}async function n2({address:e,authorization:t,signature:r}){return hr(ii(e),await Ys({authorization:t,signature:r}))}const Kn=new pr(8192);function s2(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(Kn.get(r))return Kn.get(r);const n=e().finally(()=>Kn.delete(r));return Kn.set(r,n),n}function a2(e,t={}){return async(r,n={})=>{var p;const{dedupe:s=!1,methods:a,retryDelay:o=150,retryCount:i=3,uid:c}={...t,...n},{method:u}=r;if((p=a==null?void 0:a.exclude)!=null&&p.includes(u))throw new Ct(new Error("method not supported"),{method:u});if(a!=null&&a.include&&!a.include.includes(u))throw new Ct(new Error("method not supported"),{method:u});const d=s?nr(`${c}.${J(r)}`):void 0;return s2(()=>zs(async()=>{try{return await e(r)}catch(f){const m=f;switch(m.code){case Jr.code:throw new Jr(m);case Yr.code:throw new Yr(m);case Qr.code:throw new Qr(m,{method:r.method});case en.code:throw new en(m);case Ft.code:throw new Ft(m);case mt.code:throw new mt(m);case tn.code:throw new tn(m);case rn.code:throw new rn(m);case nn.code:throw new nn(m);case Ct.code:throw new Ct(m,{method:r.method});case sr.code:throw new sr(m);case sn.code:throw new sn(m);case er.code:throw new er(m);case an.code:throw new an(m);case on.code:throw new on(m);case cn.code:throw new cn(m);case ln.code:throw new ln(m);case un.code:throw new un(m);case ar.code:throw new ar(m);case dn.code:throw new dn(m);case pn.code:throw new pn(m);case fn.code:throw new fn(m);case mn.code:throw new mn(m);case hn.code:throw new hn(m);case or.code:throw new or(m);case 5e3:throw new er(m);default:throw f instanceof B?f:new Sy(m)}}},{delay:({count:f,error:m})=>{var h;if(m&&m instanceof Qt){const b=(h=m==null?void 0:m.headers)==null?void 0:h.get("Retry-After");if(b!=null&&b.match(/\d/))return Number.parseInt(b,10)*1e3}return~~(1<<f)*o},retryCount:i,shouldRetry:({error:f})=>o2(f)}),{enabled:s,id:d})}}function o2(e){return"code"in e&&typeof e.code=="number"?e.code===-1||e.code===sr.code||e.code===Ft.code:e instanceof Qt&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}function l(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}function i2(e,{errorInstance:t=new Error("timed out"),timeout:r,signal:n}){return new Promise((s,a)=>{(async()=>{let o;try{const i=new AbortController;r>0&&(o=setTimeout(()=>{n?i.abort():a(t)},r)),s(await e({signal:(i==null?void 0:i.signal)||null}))}catch(i){(i==null?void 0:i.name)==="AbortError"&&a(t),a(i)}finally{clearTimeout(o)}})()})}function c2(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const el=c2();function l2(e,t={}){return{async request(r){var f;const{body:n,fetchFn:s=t.fetchFn??fetch,onRequest:a=t.onRequest,onResponse:o=t.onResponse,timeout:i=t.timeout??1e4}=r,c={...t.fetchOptions??{},...r.fetchOptions??{}},{headers:u,method:d,signal:p}=c;try{const m=await i2(async({signal:b})=>{const y={...c,body:Array.isArray(n)?J(n.map(w=>({jsonrpc:"2.0",id:w.id??el.take(),...w}))):J({jsonrpc:"2.0",id:n.id??el.take(),...n}),headers:{"Content-Type":"application/json",...u},method:d||"POST",signal:p||(i>0?b:null)},E=new Request(e,y),v=await(a==null?void 0:a(E,y))??{...y,url:e};return await s(v.url??e,v)},{errorInstance:new Lc({body:n,url:e}),timeout:i,signal:!0});o&&await o(m);let h;if((f=m.headers.get("Content-Type"))!=null&&f.startsWith("application/json"))h=await m.json();else{h=await m.text();try{h=JSON.parse(h||"{}")}catch(b){if(m.ok)throw b;h={error:h}}}if(!m.ok)throw new Qt({body:n,details:J(h.error)||m.statusText,headers:m.headers,status:m.status,url:e});return h}catch(m){throw m instanceof Qt||m instanceof Lc?m:new Qt({body:n,cause:m,url:e})}}}}const u2=`Ethereum Signed Message:
|
|
47
|
+
`;function d2(e){const t=typeof e=="string"?nr(e):typeof e.raw=="string"?e.raw:Y(e.raw),r=nr(`${u2}${W(t)}`);return Ee([r,t])}function Hi(e,t){return te(d2(e),t)}class p2 extends B{constructor({domain:t}){super(`Invalid domain "${J(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class f2 extends B{constructor({primaryType:t,types:r}){super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(r))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class m2 extends B{constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function h2(e){const{domain:t,message:r,primaryType:n,types:s}=e,a=(c,u)=>{const d={...u};for(const p of c){const{name:f,type:m}=p;m==="address"&&(d[f]=d[f].toLowerCase())}return d},o=s.EIP712Domain?t?a(s.EIP712Domain,t):{}:{},i=(()=>{if(n!=="EIP712Domain")return a(s[n],r)})();return J({domain:o,message:i,primaryType:n,types:s})}function p0(e){const{domain:t,message:r,primaryType:n,types:s}=e,a=(o,i)=>{for(const c of o){const{name:u,type:d}=c,p=i[u],f=d.match(lp);if(f&&(typeof p=="number"||typeof p=="bigint")){const[b,y,E]=f;P(p,{signed:y==="int",size:Number.parseInt(E,10)/8})}if(d==="address"&&typeof p=="string"&&!V(p))throw new Z({address:p});const m=d.match(Gb);if(m){const[b,y]=m;if(y&&W(p)!==Number.parseInt(y,10))throw new vb({expectedSize:Number.parseInt(y,10),givenSize:W(p)})}const h=s[d];h&&(b2(d),a(h,p))}};if(s.EIP712Domain&&t){if(typeof t!="object")throw new p2({domain:t});a(s.EIP712Domain,t)}if(n!=="EIP712Domain")if(s[n])a(s[n],r);else throw new f2({primaryType:n,types:s})}function f0({domain:e}){return[typeof(e==null?void 0:e.name)=="string"&&{name:"name",type:"string"},(e==null?void 0:e.version)&&{name:"version",type:"string"},(typeof(e==null?void 0:e.chainId)=="number"||typeof(e==null?void 0:e.chainId)=="bigint")&&{name:"chainId",type:"uint256"},(e==null?void 0:e.verifyingContract)&&{name:"verifyingContract",type:"address"},(e==null?void 0:e.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function b2(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new m2({type:e})}function m0(e){const{domain:t={},message:r,primaryType:n}=e,s={EIP712Domain:f0({domain:t}),...e.types};p0({domain:t,message:r,primaryType:n,types:s});const a=["0x1901"];return t&&a.push(y2({domain:t,types:s})),n!=="EIP712Domain"&&a.push(h0({data:r,primaryType:n,types:s})),te(Ee(a))}function y2({domain:e,types:t}){return h0({data:e,primaryType:"EIP712Domain",types:t})}function h0({data:e,primaryType:t,types:r}){const n=b0({data:e,primaryType:t,types:r});return te(n)}function b0({data:e,primaryType:t,types:r}){const n=[{type:"bytes32"}],s=[x2({primaryType:t,types:r})];for(const a of r[t]){const[o,i]=x0({types:r,name:a.name,type:a.type,value:e[a.name]});n.push(o),s.push(i)}return yt(n,s)}function x2({primaryType:e,types:t}){const r=j(g2({primaryType:e,types:t}));return te(r)}function g2({primaryType:e,types:t}){let r="";const n=y0({primaryType:e,types:t});n.delete(e);const s=[e,...Array.from(n).sort()];for(const a of s)r+=`${a}(${t[a].map(({name:o,type:i})=>`${i} ${o}`).join(",")})`;return r}function y0({primaryType:e,types:t},r=new Set){const n=e.match(/^\w*/u),s=n==null?void 0:n[0];if(r.has(s)||t[s]===void 0)return r;r.add(s);for(const a of t[s])y0({primaryType:a.type,types:t},r);return r}function x0({types:e,name:t,type:r,value:n}){if(e[r]!==void 0)return[{type:"bytes32"},te(b0({data:n,primaryType:r,types:e}))];if(r==="bytes")return[{type:"bytes32"},te(n)];if(r==="string")return[{type:"bytes32"},te(j(n))];if(r.lastIndexOf("]")===r.length-1){const s=r.slice(0,r.lastIndexOf("[")),a=n.map(o=>x0({name:t,type:s,types:e,value:o}));return[{type:"bytes32"},te(yt(a.map(([o])=>o),a.map(([,o])=>o)))]}return[{type:r},n]}function w2(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function E2(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?ue(e.nonce):void 0,storageProof:e.storageProof?w2(e.storageProof):void 0}}async function k2(e,{address:t,blockNumber:r,blockTag:n,storageKeys:s}){const a=n??"latest",o=r!==void 0?P(r):void 0,i=await e.request({method:"eth_getProof",params:[t,s,o||a]});return E2(i)}async function v2(e,{address:t,blockNumber:r,blockTag:n="latest",slot:s}){const a=r!==void 0?P(r):void 0;return await e.request({method:"eth_getStorageAt",params:[t,s,a||n]})}async function ji(e,{blockHash:t,blockNumber:r,blockTag:n,hash:s,index:a,sender:o,nonce:i}){var f,m,h;const c=n||"latest",u=r!==void 0?P(r):void 0;let d=null;if(s?d=await e.request({method:"eth_getTransactionByHash",params:[s]},{dedupe:!0}):t?d=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,P(a)]},{dedupe:!0}):(u||c)&&typeof a=="number"?d=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[u||c,P(a)]},{dedupe:!!u}):o&&typeof i=="number"&&(d=await e.request({method:"eth_getTransactionBySenderAndNonce",params:[o,P(i)]},{dedupe:!0})),!d)throw new xp({blockHash:t,blockNumber:r,blockTag:c,hash:s,index:a});return(((h=(m=(f=e.chain)==null?void 0:f.formatters)==null?void 0:m.transaction)==null?void 0:h.format)||mr)(d,"getTransaction")}async function C2(e,{hash:t,transactionReceipt:r}){const[n,s]=await Promise.all([D(e,In,"getBlockNumber")({}),t?D(e,ji,"getTransaction")({hash:t}):void 0]),a=(r==null?void 0:r.blockNumber)||(s==null?void 0:s.blockNumber);return a?n-a+1n:0n}async function Ss(e,{hash:t}){var s,a,o;const r=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!r)throw new gp({hash:t});return(((o=(a=(s=e.chain)==null?void 0:s.formatters)==null?void 0:a.transactionReceipt)==null?void 0:o.format)||zi)(r,"getTransactionReceipt")}async function T2(e,t){var v;const{account:r,authorizationList:n,allowFailure:s=!0,blockNumber:a,blockOverrides:o,blockTag:i,stateOverride:c}=t,u=t.contracts,{batchSize:d=t.batchSize??1024,deployless:p=t.deployless??!1}=typeof((v=e.batch)==null?void 0:v.multicall)=="object"?e.batch.multicall:{},f=(()=>{if(t.multicallAddress)return t.multicallAddress;if(p)return null;if(e.chain)return yr({blockNumber:a,chain:e.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),m=[[]];let h=0,b=0;for(let g=0;g<u.length;g++){const{abi:w,address:x,args:C,functionName:k}=u[g];try{const T=Ce({abi:w,args:C,functionName:k});b+=(T.length-2)/2,d>0&&b>d&&m[h].length>0&&(h++,b=(T.length-2)/2,m[h]=[]),m[h]=[...m[h],{allowFailure:!0,callData:T,target:x}]}catch(T){const S=$t(T,{abi:w,address:x,args:C,docsPath:"/docs/contract/multicall",functionName:k,sender:r});if(!s)throw S;m[h]=[...m[h],{allowFailure:!0,callData:"0x",target:x}]}}const y=await Promise.allSettled(m.map(g=>D(e,Ne,"readContract")({...f===null?{code:Pi}:{address:f},abi:Ms,account:r,args:[g],authorizationList:n,blockNumber:a,blockOverrides:o,blockTag:i,functionName:"aggregate3",stateOverride:c}))),E=[];for(let g=0;g<y.length;g++){const w=y[g];if(w.status==="rejected"){if(!s)throw w.reason;for(let C=0;C<m[g].length;C++)E.push({status:"failure",error:w.reason,result:void 0});continue}const x=w.value;for(let C=0;C<x.length;C++){const{returnData:k,success:T}=x[C],{callData:S}=m[g][C],{abi:O,address:U,functionName:z,args:I}=u[E.length];try{if(S==="0x")throw new En;if(!T)throw new Js({data:k});const L=Ot({abi:O,args:I,data:k,functionName:z});E.push(s?{result:L,status:"success"}:L)}catch(L){const A=$t(L,{abi:O,address:U,args:I,docsPath:"/docs/contract/multicall",functionName:z});if(!s)throw A;E.push({error:A,result:void 0,status:"failure"})}}}if(E.length!==u.length)throw new B("multicall results mismatch");return E}async function Mo(e,t){const{blockNumber:r,blockTag:n=e.experimental_blockTag??"latest",blocks:s,returnFullTransactions:a,traceTransfers:o,validation:i}=t;try{const c=[];for(const f of s){const m=f.blockOverrides?ad(f.blockOverrides):void 0,h=f.calls.map(y=>{const E=y,v=E.account?K(E.account):void 0,g=E.abi?Ce(E):E.data,w={...E,account:v,data:E.dataSuffix?Ee([g||"0x",E.dataSuffix]):g,from:E.from??(v==null?void 0:v.address)};return qe(w),_e(w)}),b=f.stateOverrides?mi(f.stateOverrides):void 0;c.push({blockOverrides:m,calls:h,stateOverrides:b})}const d=(typeof r=="bigint"?P(r):void 0)||n;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:c,returnFullTransactions:a,traceTransfers:o,validation:i},d]})).map((f,m)=>({...yi(f),calls:f.calls.map((h,b)=>{var O,U;const{abi:y,args:E,functionName:v,to:g}=s[m].calls[b],w=((O=h.error)==null?void 0:O.data)??h.returnData,x=BigInt(h.gasUsed),C=(U=h.logs)==null?void 0:U.map(z=>Ge(z)),k=h.status==="0x1"?"success":"failure",T=y&&k==="success"&&w!=="0x"?Ot({abi:y,data:w,functionName:v}):null,S=(()=>{var I;if(k==="success")return;let z;if(((I=h.error)==null?void 0:I.data)==="0x"?z=new En:h.error&&(z=new Js(h.error)),!!z)return $t(z,{abi:y??[],address:g??"0x",args:E,functionName:v??"<unknown>"})})();return{data:w,gasUsed:x,logs:C,status:k,...k==="success"?{result:T}:{error:S}}})}))}catch(c){const u=c,d=Qs(u,{});throw d instanceof Sn?u:d}}const A2="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",Pe="0x0000000000000000000000000000000000000000",S2="0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";async function B2(e,t){const{blockNumber:r,blockTag:n,calls:s,stateOverrides:a,traceAssetChanges:o,traceTransfers:i,validation:c}=t,u=t.account?K(t.account):void 0;if(o&&!u)throw new B("`account` is required when `traceAssetChanges` is true");const d=u?Ih(Fh("constructor(bytes, bytes)"),{bytecode:qp,args:[S2,Mh(Ht("function getBalance(address)"),[u.address])]}):void 0,p=o?await Promise.all(t.calls.map(async M=>{if(!M.data&&!M.abi)return;const{accessList:N}=await l0(e,{account:u.address,...M,data:M.abi?Ce(M):M.data});return N.map(({address:_,storageKeys:H})=>H.length>0?_:null)})).then(M=>M.flat().filter(Boolean)):[],f=await Mo(e,{blockNumber:r,blockTag:n,blocks:[...o?[{calls:[{data:d}],stateOverrides:a},{calls:p.map((M,N)=>({abi:[Ht("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[u.address],to:M,from:Pe,nonce:N})),stateOverrides:[{address:Pe,nonce:0}]}]:[],{calls:[...s,{}].map(M=>({...M,from:u==null?void 0:u.address})),stateOverrides:a},...o?[{calls:[{data:d}]},{calls:p.map((M,N)=>({abi:[Ht("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[u.address],to:M,from:Pe,nonce:N})),stateOverrides:[{address:Pe,nonce:0}]},{calls:p.map((M,N)=>({to:M,abi:[Ht("function decimals() returns (uint256)")],functionName:"decimals",from:Pe,nonce:N})),stateOverrides:[{address:Pe,nonce:0}]},{calls:p.map((M,N)=>({to:M,abi:[Ht("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:Pe,nonce:N})),stateOverrides:[{address:Pe,nonce:0}]},{calls:p.map((M,N)=>({to:M,abi:[Ht("function symbol() returns (string)")],functionName:"symbol",from:Pe,nonce:N})),stateOverrides:[{address:Pe,nonce:0}]}]:[]],traceTransfers:i,validation:c}),m=o?f[2]:f[0],[h,b,,y,E,v,g,w]=o?f:[],{calls:x,...C}=m,k=x.slice(0,-1)??[],T=(h==null?void 0:h.calls)??[],S=(b==null?void 0:b.calls)??[],O=[...T,...S].map(M=>M.status==="success"?q(M.data):null),U=(y==null?void 0:y.calls)??[],z=(E==null?void 0:E.calls)??[],I=[...U,...z].map(M=>M.status==="success"?q(M.data):null),L=((v==null?void 0:v.calls)??[]).map(M=>M.status==="success"?M.result:null),A=((w==null?void 0:w.calls)??[]).map(M=>M.status==="success"?M.result:null),$=((g==null?void 0:g.calls)??[]).map(M=>M.status==="success"?M.result:null),R=[];for(const[M,N]of I.entries()){const _=O[M];if(typeof N!="bigint"||typeof _!="bigint")continue;const H=L[M-1],X=A[M-1],se=$[M-1],re=M===0?{address:A2,decimals:18,symbol:"ETH"}:{address:p[M-1],decimals:se||H?Number(H??1):void 0,symbol:X??void 0};R.some(Q=>Q.token.address===re.address)||R.push({token:re,value:{pre:_,post:N,diff:N-_}})}return{assetChanges:R,block:C,results:k}}function g0({r:e,s:t,to:r="hex",v:n,yParity:s}){const a=(()=>{if(s===0||s===1)return s;if(n&&(n===27n||n===28n||n>=35n))return n%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),o=`0x${new xe.Signature(q(e),q(t)).toCompactHex()}${a===0?"1b":"1c"}`;return r==="hex"?o:fe(o)}async function oa(e,t){var i,c,u,d,p,f;const{address:r,hash:n,erc6492VerifierAddress:s=t.universalSignatureVerifierAddress??((u=(c=(i=e.chain)==null?void 0:i.contracts)==null?void 0:c.erc6492Verifier)==null?void 0:u.address),multicallAddress:a=t.multicallAddress??((f=(p=(d=e.chain)==null?void 0:d.contracts)==null?void 0:p.multicall3)==null?void 0:f.address)}=t,o=(()=>{const m=t.signature;return Ue(m)?m:typeof m=="object"&&"r"in m&&"s"in m?g0(m):Y(m)})();try{return Sh(o)?await U2(e,{...t,multicallAddress:a,signature:o}):await P2(e,{...t,verifierAddress:s,signature:o})}catch(m){try{if(hr(ii(r),await Cp({hash:n,signature:o})))return!0}catch{}if(m instanceof Mt)return!1;throw m}}async function U2(e,t){var y;const{address:r,blockNumber:n,blockTag:s,hash:a,multicallAddress:o}=t,{authorization:i,data:c,signature:u,to:d}=Ah(t.signature);if(await $o(e,{address:r,blockNumber:n,blockTag:s})===ve(["0xef0100",i.address]))return await I2(e,{address:r,blockNumber:n,blockTag:s,hash:a,signature:u});const f={address:i.address,chainId:Number(i.chainId),nonce:Number(i.nonce),r:P(i.r,{size:32}),s:P(i.s,{size:32}),yParity:i.yParity};if(!await n2({address:r,authorization:f}))throw new Mt;const h=await D(e,Ne,"readContract")({...o?{address:o}:{code:Pi},authorizationList:[f],abi:Ms,blockNumber:n,blockTag:"pending",functionName:"aggregate3",args:[[...c?[{allowFailure:!0,target:d??r,callData:c}]:[],{allowFailure:!0,target:r,callData:Ce({abi:Gp,functionName:"isValidSignature",args:[a,u]})}]]}),b=(y=h[h.length-1])==null?void 0:y.returnData;if(b!=null&&b.startsWith("0x1626ba7e"))return!0;throw new Mt}async function P2(e,t){const{address:r,factory:n,factoryData:s,hash:a,signature:o,verifierAddress:i,...c}=t,u=await(async()=>!n&&!s||Rh(o)?o:Nh({data:s,signature:o,to:n}))(),d=i?{to:i,data:Ce({abi:Xc,functionName:"isValidSig",args:[r,a,u]}),...c}:{data:ra({abi:Xc,args:[r,a,u],bytecode:Qy}),...c},{data:p}=await D(e,Pn,"call")(d).catch(f=>{throw f instanceof Ep?new Mt:f});if(Fb(p??"0x0"))return!0;throw new Mt}async function I2(e,t){const{address:r,blockNumber:n,blockTag:s,hash:a,signature:o}=t;if((await D(e,Ne,"readContract")({address:r,abi:Gp,args:[a,o],blockNumber:n,blockTag:s,functionName:"isValidSignature"}).catch(c=>{throw c instanceof kp?new Mt:c})).startsWith("0x1626ba7e"))return!0;throw new Mt}class Mt extends Error{}async function F2(e,{address:t,message:r,factory:n,factoryData:s,signature:a,...o}){const i=Hi(r);return D(e,oa,"verifyHash")({address:t,factory:n,factoryData:s,hash:i,signature:a,...o})}async function $2(e,t){const{address:r,factory:n,factoryData:s,signature:a,message:o,primaryType:i,types:c,domain:u,...d}=t,p=m0({message:o,primaryType:i,types:c,domain:u});return D(e,oa,"verifyHash")({address:r,factory:n,factoryData:s,hash:p,signature:a,...d})}function w0(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:n,onError:s,poll:a,pollingInterval:o=e.pollingInterval}){const i=typeof a<"u"?a:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc"));let c;return i?(()=>{const p=J(["watchBlockNumber",e.uid,t,r,o]);return st(p,{onBlockNumber:n,onError:s},f=>xr(async()=>{var m;try{const h=await D(e,In,"getBlockNumber")({cacheTime:0});if(c!==void 0){if(h===c)return;if(h-c>1&&r)for(let b=c+1n;b<h;b++)f.onBlockNumber(b,c),c=b}(c===void 0||h>c)&&(f.onBlockNumber(h,c),c=h)}catch(h){(m=f.onError)==null||m.call(f,h)}},{emitOnBegin:t,interval:o}))})():(()=>{const p=J(["watchBlockNumber",e.uid,t,r]);return st(p,{onBlockNumber:n,onError:s},f=>{let m=!0,h=()=>m=!1;return(async()=>{try{const b=(()=>{if(e.transport.type==="fallback"){const E=e.transport.transports.find(v=>v.config.type==="webSocket"||v.config.type==="ipc");return E?E.value:e.transport}return e.transport})(),{unsubscribe:y}=await b.subscribe({params:["newHeads"],onData(E){var g;if(!m)return;const v=q((g=E.result)==null?void 0:g.number);f.onBlockNumber(v,c),c=v},onError(E){var v;(v=f.onError)==null||v.call(f,E)}});h=y,m||h()}catch(b){s==null||s(b)}})(),()=>h()})})()}async function E0(e,t){const{checkReplacement:r=!0,confirmations:n=1,hash:s,onReplaced:a,retryCount:o=6,retryDelay:i=({count:x})=>~~(1<<x)*200,timeout:c=18e4}=t,u=J(["waitForTransactionReceipt",e.uid,s]),d=(()=>{var x;return t.pollingInterval?t.pollingInterval:(x=e.chain)!=null&&x.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval})();let p,f,m,h=!1,b,y;const{promise:E,resolve:v,reject:g}=Fi(),w=c?setTimeout(()=>{y==null||y(),b==null||b(),g(new ky({hash:s}))},c):void 0;return b=st(u,{onReplaced:a,resolve:v,reject:g},async x=>{if(m=await D(e,Ss,"getTransactionReceipt")({hash:s}).catch(()=>{}),m&&n<=1){clearTimeout(w),x.resolve(m),b==null||b();return}y=D(e,w0,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:d,async onBlockNumber(C){const k=S=>{clearTimeout(w),y==null||y(),S(),b==null||b()};let T=C;if(!h)try{if(m){if(n>1&&(!m.blockNumber||T-m.blockNumber+1n<n))return;k(()=>x.resolve(m));return}if(r&&!p&&(h=!0,await zs(async()=>{p=await D(e,ji,"getTransaction")({hash:s}),p.blockNumber&&(T=p.blockNumber)},{delay:i,retryCount:o}),h=!1),m=await D(e,Ss,"getTransactionReceipt")({hash:s}),n>1&&(!m.blockNumber||T-m.blockNumber+1n<n))return;k(()=>x.resolve(m))}catch(S){if(S instanceof xp||S instanceof gp){if(!p){h=!1;return}try{f=p,h=!0;const O=await zs(()=>D(e,Fe,"getBlock")({blockNumber:T,includeTransactions:!0}),{delay:i,retryCount:o,shouldRetry:({error:I})=>I instanceof Pp});h=!1;const U=O.transactions.find(({from:I,nonce:L})=>I===f.from&&L===f.nonce);if(!U||(m=await D(e,Ss,"getTransactionReceipt")({hash:U.hash}),n>1&&(!m.blockNumber||T-m.blockNumber+1n<n)))return;let z="replaced";U.to===f.to&&U.value===f.value&&U.input===f.input?z="repriced":U.from===U.to&&U.value===0n&&(z="cancelled"),k(()=>{var I;(I=x.onReplaced)==null||I.call(x,{reason:z,replacedTransaction:f,transaction:U,transactionReceipt:m}),x.resolve(m)})}catch(O){k(()=>x.reject(O))}}else k(()=>x.reject(S))}}})}),E}function M2(e,{blockTag:t=e.experimental_blockTag??"latest",emitMissed:r=!1,emitOnBegin:n=!1,onBlock:s,onError:a,includeTransactions:o,poll:i,pollingInterval:c=e.pollingInterval}){const u=typeof i<"u"?i:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),d=o??!1;let p;return u?(()=>{const h=J(["watchBlocks",e.uid,t,r,n,d,c]);return st(h,{onBlock:s,onError:a},b=>xr(async()=>{var y;try{const E=await D(e,Fe,"getBlock")({blockTag:t,includeTransactions:d});if(E.number!==null&&(p==null?void 0:p.number)!=null){if(E.number===p.number)return;if(E.number-p.number>1&&r)for(let v=(p==null?void 0:p.number)+1n;v<E.number;v++){const g=await D(e,Fe,"getBlock")({blockNumber:v,includeTransactions:d});b.onBlock(g,p),p=g}}((p==null?void 0:p.number)==null||t==="pending"&&(E==null?void 0:E.number)==null||E.number!==null&&E.number>p.number)&&(b.onBlock(E,p),p=E)}catch(E){(y=b.onError)==null||y.call(b,E)}},{emitOnBegin:n,interval:c}))})():(()=>{let h=!0,b=!0,y=()=>h=!1;return(async()=>{try{n&&D(e,Fe,"getBlock")({blockTag:t,includeTransactions:d}).then(g=>{h&&b&&(s(g,void 0),b=!1)}).catch(a);const E=(()=>{if(e.transport.type==="fallback"){const g=e.transport.transports.find(w=>w.config.type==="webSocket"||w.config.type==="ipc");return g?g.value:e.transport}return e.transport})(),{unsubscribe:v}=await E.subscribe({params:["newHeads"],async onData(g){var x;if(!h)return;const w=await D(e,Fe,"getBlock")({blockNumber:(x=g.result)==null?void 0:x.number,includeTransactions:d}).catch(()=>{});h&&(s(w,p),b=!1,p=w)},onError(g){a==null||a(g)}});y=v,h||y()}catch(E){a==null||a(E)}})(),()=>y()})()}function z2(e,{address:t,args:r,batch:n=!0,event:s,events:a,fromBlock:o,onError:i,onLogs:c,poll:u,pollingInterval:d=e.pollingInterval,strict:p}){const f=typeof u<"u"?u:typeof o=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc")),m=p??!1;return f?(()=>{const y=J(["watchEvent",t,r,n,e.uid,s,d,o]);return st(y,{onLogs:c,onError:i},E=>{let v;o!==void 0&&(v=o-1n);let g,w=!1;const x=xr(async()=>{var C;if(!w){try{g=await D(e,u0,"createEventFilter")({address:t,args:r,event:s,events:a,strict:m,fromBlock:o})}catch{}w=!0;return}try{let k;if(g)k=await D(e,na,"getFilterChanges")({filter:g});else{const T=await D(e,In,"getBlockNumber")({});v&&v!==T?k=await D(e,Ui,"getLogs")({address:t,args:r,event:s,events:a,fromBlock:v+1n,toBlock:T}):k=[],v=T}if(k.length===0)return;if(n)E.onLogs(k);else for(const T of k)E.onLogs([T])}catch(k){g&&k instanceof mt&&(w=!1),(C=E.onError)==null||C.call(E,k)}},{emitOnBegin:!0,interval:d});return async()=>{g&&await D(e,sa,"uninstallFilter")({filter:g}),x()}})})():(()=>{let y=!0,E=()=>y=!1;return(async()=>{try{const v=(()=>{if(e.transport.type==="fallback"){const C=e.transport.transports.find(k=>k.config.type==="webSocket"||k.config.type==="ipc");return C?C.value:e.transport}return e.transport})(),g=a??(s?[s]:void 0);let w=[];g&&(w=[g.flatMap(k=>Cn({abi:[k],eventName:k.name,args:r}))],s&&(w=w[0]));const{unsubscribe:x}=await v.subscribe({params:["logs",{address:t,topics:w}],onData(C){var T;if(!y)return;const k=C.result;try{const{eventName:S,args:O}=Si({abi:g??[],data:k.data,topics:k.topics,strict:m}),U=Ge(k,{args:O,eventName:S});c([U])}catch(S){let O,U;if(S instanceof Zr||S instanceof Ws){if(p)return;O=S.abiItem.name,U=(T=S.abiItem.inputs)==null?void 0:T.some(I=>!("name"in I&&I.name))}const z=Ge(k,{args:U?[]:{},eventName:O});c([z])}},onError(C){i==null||i(C)}});E=x,y||E()}catch(v){i==null||i(v)}})(),()=>E()})()}function O2(e,{batch:t=!0,onError:r,onTransactions:n,poll:s,pollingInterval:a=e.pollingInterval}){return(typeof s<"u"?s:e.transport.type!=="webSocket"&&e.transport.type!=="ipc")?(()=>{const u=J(["watchPendingTransactions",e.uid,t,a]);return st(u,{onTransactions:n,onError:r},d=>{let p;const f=xr(async()=>{var m;try{if(!p)try{p=await D(e,d0,"createPendingTransactionFilter")({});return}catch(b){throw f(),b}const h=await D(e,na,"getFilterChanges")({filter:p});if(h.length===0)return;if(t)d.onTransactions(h);else for(const b of h)d.onTransactions([b])}catch(h){(m=d.onError)==null||m.call(d,h)}},{emitOnBegin:!0,interval:a});return async()=>{p&&await D(e,sa,"uninstallFilter")({filter:p}),f()}})})():(()=>{let u=!0,d=()=>u=!1;return(async()=>{try{const{unsubscribe:p}=await e.transport.subscribe({params:["newPendingTransactions"],onData(f){if(!u)return;const m=f.result;n([m])},onError(f){r==null||r(f)}});d=p,u||d()}catch(p){r==null||r(p)}})(),()=>d()})()}function N2(e){var p,f,m;const{scheme:t,statement:r,...n}=((p=e.match(R2))==null?void 0:p.groups)??{},{chainId:s,expirationTime:a,issuedAt:o,notBefore:i,requestId:c,...u}=((f=e.match(D2))==null?void 0:f.groups)??{},d=(m=e.split("Resources:")[1])==null?void 0:m.split(`
|
|
48
|
+
- `).slice(1);return{...n,...u,...s?{chainId:Number(s)}:{},...a?{expirationTime:new Date(a)}:{},...o?{issuedAt:new Date(o)}:{},...i?{notBefore:new Date(i)}:{},...c?{requestId:c}:{},...d?{resources:d}:{},...t?{scheme:t}:{},...r?{statement:r}:{}}}const R2=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,D2=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;function _2(e){const{address:t,domain:r,message:n,nonce:s,scheme:a,time:o=new Date}=e;if(r&&n.domain!==r||s&&n.nonce!==s||a&&n.scheme!==a||n.expirationTime&&o>=n.expirationTime||n.notBefore&&o<n.notBefore)return!1;try{if(!n.address||!V(n.address,{strict:!1})||t&&!hr(n.address,t))return!1}catch{return!1}return!0}async function L2(e,t){const{address:r,domain:n,message:s,nonce:a,scheme:o,signature:i,time:c=new Date,...u}=t,d=N2(s);if(!d.address||!_2({address:r,domain:n,message:d,nonce:a,scheme:o,time:c}))return!1;const f=Hi(s);return oa(e,{address:d.address,hash:f,signature:i,...u})}async function Gi(e,{serializedTransaction:t,throwOnReceiptRevert:r,timeout:n}){var i,c,u;const s=await e.request({method:"eth_sendRawTransactionSync",params:n?[t,P(n)]:[t]},{retryCount:0}),o=(((u=(c=(i=e.chain)==null?void 0:i.formatters)==null?void 0:c.transactionReceipt)==null?void 0:u.format)||zi)(s);if(o.status==="reverted"&&r)throw new wp({receipt:o});return o}function tl(e){return{call:t=>Pn(e,t),createAccessList:t=>l0(e,t),createBlockFilter:()=>N6(e),createContractEventFilter:t=>dp(e,t),createEventFilter:t=>u0(e,t),createPendingTransactionFilter:()=>d0(e),estimateContractGas:t=>Ky(e,t),estimateGas:t=>Ai(e,t),getBalance:t=>R6(e,t),getBlobBaseFee:()=>D6(e),getBlock:t=>Fe(e,t),getBlockNumber:t=>In(e,t),getBlockTransactionCount:t=>_6(e,t),getBytecode:t=>$o(e,t),getChainId:()=>gt(e),getCode:t=>$o(e,t),getContractEvents:t=>Lp(e,t),getEip712Domain:t=>H6(e,t),getEnsAddress:t=>E6(e,t),getEnsAvatar:t=>M6(e,t),getEnsName:t=>z6(e,t),getEnsResolver:t=>O6(e,t),getEnsText:t=>c0(e,t),getFeeHistory:t=>q6(e,t),estimateFeesPerGas:t=>Ly(e,t),getFilterChanges:t=>na(e,t),getFilterLogs:t=>V6(e,t),getGasPrice:()=>gi(e),getLogs:t=>Ui(e,t),getProof:t=>k2(e,t),estimateMaxPriorityFeePerGas:t=>_y(e,t),fillTransaction:t=>Ci(e,t),getStorageAt:t=>v2(e,t),getTransaction:t=>ji(e,t),getTransactionConfirmations:t=>C2(e,t),getTransactionCount:t=>wi(e,t),getTransactionReceipt:t=>Ss(e,t),multicall:t=>T2(e,t),prepareTransactionRequest:t=>Un(e,t),readContract:t=>Ne(e,t),sendRawTransaction:t=>Mi(e,t),sendRawTransactionSync:t=>Gi(e,t),simulate:t=>Mo(e,t),simulateBlocks:t=>Mo(e,t),simulateCalls:t=>B2(e,t),simulateContract:t=>o6(e,t),verifyHash:t=>oa(e,t),verifyMessage:t=>F2(e,t),verifySiweMessage:t=>L2(e,t),verifyTypedData:t=>$2(e,t),uninstallFilter:t=>sa(e,t),waitForTransactionReceipt:t=>E0(e,t),watchBlocks:t=>M2(e,t),watchBlockNumber:t=>w0(e,t),watchContractEvent:t=>f6(e,t),watchEvent:t=>z2(e,t),watchPendingTransactions:t=>O2(e,t)}}async function H2(e,{hash:t}){await e.request({method:`${e.mode}_dropTransaction`,params:[t]})}async function j2(e){return e.request({method:`${e.mode}_dumpState`})}async function G2(e){return e.mode==="ganache"?await e.request({method:"eth_mining"}):await e.request({method:`${e.mode}_getAutomine`})}async function q2(e){return await e.request({method:"txpool_content"})}async function V2(e){const{pending:t,queued:r}=await e.request({method:"txpool_status"});return{pending:ue(t),queued:ue(r)}}async function K2(e,{address:t}){await e.request({method:`${e.mode}_impersonateAccount`,params:[t]})}async function W2(e,{seconds:t}){return await e.request({method:"evm_increaseTime",params:[P(t)]})}async function Z2(e){return await e.request({method:"txpool_inspect"})}async function X2(e,{state:t}){await e.request({method:`${e.mode}_loadState`,params:[t]})}async function J2(e,{blocks:t,interval:r}){e.mode==="ganache"?await e.request({method:"evm_mine",params:[{blocks:P(t)}]}):await e.request({method:`${e.mode}_mine`,params:[P(t),P(r||0)]})}async function Y2(e){await e.request({method:`${e.mode}_removeBlockTimestampInterval`})}async function Q2(e,{blockNumber:t,jsonRpcUrl:r}={}){await e.request({method:`${e.mode}_reset`,params:[{forking:{blockNumber:Number(t),jsonRpcUrl:r}}]})}async function e5(e,{id:t}){await e.request({method:"evm_revert",params:[t]})}async function t5(e,t){var E,v,g;const{accessList:r,data:n,from:s,gas:a,gasPrice:o,maxFeePerGas:i,maxPriorityFeePerGas:c,nonce:u,to:d,value:p,...f}=t,m=(g=(v=(E=e.chain)==null?void 0:E.formatters)==null?void 0:v.transactionRequest)==null?void 0:g.format,b=(m||_e)({...xt(f,{format:m}),accessList:r,data:n,from:s,gas:a,gasPrice:o,maxFeePerGas:i,maxPriorityFeePerGas:c,nonce:u,to:d,value:p},"sendUnsignedTransaction");return await e.request({method:"eth_sendUnsignedTransaction",params:[b]})}async function r5(e,t){e.mode==="ganache"?t?await e.request({method:"miner_start"}):await e.request({method:"miner_stop"}):await e.request({method:"evm_setAutomine",params:[t]})}async function n5(e,{address:t,value:r}){e.mode==="ganache"?await e.request({method:"evm_setAccountBalance",params:[t,P(r)]}):await e.request({method:`${e.mode}_setBalance`,params:[t,P(r)]})}async function s5(e,{gasLimit:t}){await e.request({method:"evm_setBlockGasLimit",params:[P(t)]})}async function a5(e,{interval:t}){const r=e.mode==="hardhat"?t*1e3:t;await e.request({method:`${e.mode}_setBlockTimestampInterval`,params:[r]})}async function o5(e,{address:t,bytecode:r}){e.mode==="ganache"?await e.request({method:"evm_setAccountCode",params:[t,r]}):await e.request({method:`${e.mode}_setCode`,params:[t,r]})}async function i5(e,{address:t}){await e.request({method:`${e.mode}_setCoinbase`,params:[t]})}async function c5(e,{interval:t}){const r=e.mode==="hardhat"?t*1e3:t;await e.request({method:"evm_setIntervalMining",params:[r]})}async function l5(e,t){await e.request({method:`${e.mode}_setLoggingEnabled`,params:[t]})}async function u5(e,{gasPrice:t}){await e.request({method:`${e.mode}_setMinGasPrice`,params:[P(t)]})}async function d5(e,{baseFeePerGas:t}){await e.request({method:`${e.mode}_setNextBlockBaseFeePerGas`,params:[P(t)]})}async function p5(e,{timestamp:t}){await e.request({method:"evm_setNextBlockTimestamp",params:[P(t)]})}async function f5(e,{address:t,nonce:r}){await e.request({method:`${e.mode}_setNonce`,params:[t,P(r)]})}async function m5(e,t){await e.request({method:`${e.mode}_setRpcUrl`,params:[t]})}async function h5(e,{address:t,index:r,value:n}){await e.request({method:`${e.mode}_setStorageAt`,params:[t,typeof r=="number"?P(r):r,n]})}async function b5(e){return await e.request({method:"evm_snapshot"})}async function y5(e,{address:t}){await e.request({method:`${e.mode}_stopImpersonatingAccount`,params:[t]})}function x5({mode:e}){return t=>{const r=t.extend(()=>({mode:e}));return{dropTransaction:n=>H2(r,n),dumpState:()=>j2(r),getAutomine:()=>G2(r),getTxpoolContent:()=>q2(r),getTxpoolStatus:()=>V2(r),impersonateAccount:n=>K2(r,n),increaseTime:n=>W2(r,n),inspectTxpool:()=>Z2(r),loadState:n=>X2(r,n),mine:n=>J2(r,n),removeBlockTimestampInterval:()=>Y2(r),reset:n=>Q2(r,n),revert:n=>e5(r,n),sendUnsignedTransaction:n=>t5(r,n),setAutomine:n=>r5(r,n),setBalance:n=>n5(r,n),setBlockGasLimit:n=>s5(r,n),setBlockTimestampInterval:n=>a5(r,n),setCode:n=>o5(r,n),setCoinbase:n=>i5(r,n),setIntervalMining:n=>c5(r,n),setLoggingEnabled:n=>l5(r,n),setMinGasPrice:n=>u5(r,n),setNextBlockBaseFeePerGas:n=>d5(r,n),setNextBlockTimestamp:n=>p5(r,n),setNonce:n=>f5(r,n),setRpcUrl:n=>m5(r,n),setStorageAt:n=>h5(r,n),snapshot:()=>b5(r),stopImpersonatingAccount:n=>y5(r,n)}}}function g5(e){const{key:t="test",name:r="Test Client",mode:n}=e;return n0({...e,key:t,name:r,type:"testClient"}).extend(a=>({mode:n,...x5({mode:n})(a)}))}async function w5(e,{chain:t}){const{id:r,name:n,nativeCurrency:s,rpcUrls:a,blockExplorers:o}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:P(r),chainName:n,nativeCurrency:s,rpcUrls:a.default.http,blockExplorerUrls:o?Object.values(o).map(({url:i})=>i):void 0}]},{dedupe:!0,retryCount:0})}function E5(e,t){const{abi:r,args:n,bytecode:s,...a}=t,o=ra({abi:r,args:n,bytecode:s});return aa(e,{...a,...a.authorizationList?{to:null}:{},data:o})}async function k5(e){var r;return((r=e.account)==null?void 0:r.type)==="local"?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(n=>vn(n))}async function v5(e,t={}){const{account:r=e.account,chainId:n}=t,s=r?K(r):void 0,a=n?[s==null?void 0:s.address,[P(n)]]:[s==null?void 0:s.address],o=await e.request({method:"wallet_getCapabilities",params:a}),i={};for(const[c,u]of Object.entries(o)){i[Number(c)]={};for(let[d,p]of Object.entries(u))d==="addSubAccount"&&(d="unstable_addSubAccount"),i[Number(c)][d]=p}return typeof n=="number"?i[n]:i}async function C5(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}async function k0(e,t){var c;const{account:r=e.account,chainId:n,nonce:s}=t;if(!r)throw new ot({docsPath:"/docs/eip7702/prepareAuthorization"});const a=K(r),o=(()=>{if(t.executor)return t.executor==="self"?t.executor:K(t.executor)})(),i={address:t.contractAddress??t.address,chainId:n,nonce:s};return typeof i.chainId>"u"&&(i.chainId=((c=e.chain)==null?void 0:c.id)??await D(e,gt,"getChainId")({})),typeof i.nonce>"u"&&(i.nonce=await D(e,wi,"getTransactionCount")({address:a.address,blockTag:"pending"}),(o==="self"||o!=null&&o.address&&hr(o.address,a.address))&&(i.nonce+=1)),i}async function T5(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(r=>ii(r))}async function A5(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}async function S5(e,t){const{chain:r=e.chain}=t,n=t.timeout??Math.max(((r==null?void 0:r.blockTime)??0)*3,5e3),s=await Qp(e,t);return await t0(e,{...t,id:s.id,timeout:n})}const $a=new pr(128);async function v0(e,t){var x,C,k,T;const{account:r=e.account,chain:n=e.chain,accessList:s,authorizationList:a,blobs:o,data:i,gas:c,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:p,maxPriorityFeePerGas:f,nonce:m,pollingInterval:h,throwOnReceiptRevert:b,type:y,value:E,...v}=t,g=t.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3);if(typeof r>"u")throw new ot({docsPath:"/docs/actions/wallet/sendTransactionSync"});const w=r?K(r):null;try{qe(t);const S=await(async()=>{if(t.to)return t.to;if(t.to!==null&&a&&a.length>0)return await Ys({authorization:a[0]}).catch(()=>{throw new B("`to` is required. Could not infer from `authorizationList`.")})})();if((w==null?void 0:w.type)==="json-rpc"||w===null){let O;n!==null&&(O=await D(e,gt,"getChainId")({}),$i({currentChainId:O,chain:n}));const U=(k=(C=(x=e.chain)==null?void 0:x.formatters)==null?void 0:C.transactionRequest)==null?void 0:k.format,I=(U||_e)({...xt(v,{format:U}),accessList:s,account:w,authorizationList:a,blobs:o,chainId:O,data:i,gas:c,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:p,maxPriorityFeePerGas:f,nonce:m,to:S,type:y,value:E},"sendTransaction"),L=$a.get(e.uid),A=L?"wallet_sendTransaction":"eth_sendTransaction",$=await(async()=>{try{return await e.request({method:A,params:[I]},{retryCount:0})}catch(M){if(L===!1)throw M;const N=M;if(N.name==="InvalidInputRpcError"||N.name==="InvalidParamsRpcError"||N.name==="MethodNotFoundRpcError"||N.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[I]},{retryCount:0}).then(_=>($a.set(e.uid,!0),_)).catch(_=>{const H=_;throw H.name==="MethodNotFoundRpcError"||H.name==="MethodNotSupportedRpcError"?($a.set(e.uid,!1),N):H});throw N}})(),R=await D(e,E0,"waitForTransactionReceipt")({checkReplacement:!1,hash:$,pollingInterval:h,timeout:g});if(b&&R.status==="reverted")throw new wp({receipt:R});return R}if((w==null?void 0:w.type)==="local"){const O=await D(e,Un,"prepareTransactionRequest")({account:w,accessList:s,authorizationList:a,blobs:o,chain:n,data:i,gas:c,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:p,maxPriorityFeePerGas:f,nonce:m,nonceManager:w.nonceManager,parameters:[...Ti,"sidecars"],type:y,value:E,...v,to:S}),U=(T=n==null?void 0:n.serializers)==null?void 0:T.transaction,z=await w.signTransaction(O,{serializer:U});return await D(e,Gi,"sendRawTransactionSync")({serializedTransaction:z,throwOnReceiptRevert:b})}throw(w==null?void 0:w.type)==="smart"?new Bt({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new Bt({docsPath:"/docs/actions/wallet/sendTransactionSync",type:w==null?void 0:w.type})}catch(S){throw S instanceof Bt?S:ta(S,{...t,account:w,chain:t.chain||void 0})}}async function B5(e,t){const{id:r}=t;await e.request({method:"wallet_showCallsStatus",params:[r]})}async function U5(e,t){const{account:r=e.account}=t;if(!r)throw new ot({docsPath:"/docs/eip7702/signAuthorization"});const n=K(r);if(!n.signAuthorization)throw new Bt({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const s=await k0(e,t);return n.signAuthorization(s)}async function P5(e,{account:t=e.account,message:r}){if(!t)throw new ot({docsPath:"/docs/actions/wallet/signMessage"});const n=K(t);if(n.signMessage)return n.signMessage({message:r});const s=typeof r=="string"?nr(r):r.raw instanceof Uint8Array?j(r.raw):r.raw;return e.request({method:"personal_sign",params:[s,n.address]},{retryCount:0})}async function I5(e,t){var u,d,p,f;const{account:r=e.account,chain:n=e.chain,...s}=t;if(!r)throw new ot({docsPath:"/docs/actions/wallet/signTransaction"});const a=K(r);qe({account:a,...t});const o=await D(e,gt,"getChainId")({});n!==null&&$i({currentChainId:o,chain:n});const i=(n==null?void 0:n.formatters)||((u=e.chain)==null?void 0:u.formatters),c=((d=i==null?void 0:i.transactionRequest)==null?void 0:d.format)||_e;return a.signTransaction?a.signTransaction({...s,chainId:o},{serializer:(f=(p=e.chain)==null?void 0:p.serializers)==null?void 0:f.transaction}):await e.request({method:"eth_signTransaction",params:[{...c({...s,account:a},"signTransaction"),chainId:P(o),from:a.address}]},{retryCount:0})}async function F5(e,t){const{account:r=e.account,domain:n,message:s,primaryType:a}=t;if(!r)throw new ot({docsPath:"/docs/actions/wallet/signTypedData"});const o=K(r),i={EIP712Domain:f0({domain:n}),...t.types};if(p0({domain:n,message:s,primaryType:a,types:i}),o.signTypedData)return o.signTypedData({domain:n,message:s,primaryType:a,types:i});const c=h2({domain:n,message:s,primaryType:a,types:i});return e.request({method:"eth_signTypedData_v4",params:[o.address,c]},{retryCount:0})}async function $5(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:P(t)}]},{retryCount:0})}async function M5(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}async function z5(e,t){return bn.internal(e,v0,"sendTransactionSync",t)}function C0(e){return{addChain:t=>w5(e,t),deployContract:t=>E5(e,t),fillTransaction:t=>Ci(e,t),getAddresses:()=>k5(e),getCallsStatus:t=>e0(e,t),getCapabilities:t=>v5(e,t),getChainId:()=>gt(e),getPermissions:()=>C5(e),prepareAuthorization:t=>k0(e,t),prepareTransactionRequest:t=>Un(e,t),requestAddresses:()=>T5(e),requestPermissions:t=>A5(e,t),sendCalls:t=>Qp(e,t),sendCallsSync:t=>S5(e,t),sendRawTransaction:t=>Mi(e,t),sendRawTransactionSync:t=>Gi(e,t),sendTransaction:t=>aa(e,t),sendTransactionSync:t=>v0(e,t),showCallsStatus:t=>B5(e,t),signAuthorization:t=>U5(e,t),signMessage:t=>P5(e,t),signTransaction:t=>I5(e,t),signTypedData:t=>F5(e,t),switchChain:t=>$5(e,t),waitForCallsStatus:t=>t0(e,t),watchAsset:t=>M5(e,t),writeContract:t=>bn(e,t),writeContractSync:t=>z5(e,t)}}function O5(e){const{key:t="wallet",name:r="Wallet Client",transport:n}=e;return n0({...e,key:t,name:r,transport:n,type:"walletClient"}).extend(C0)}function N5({key:e,methods:t,name:r,request:n,retryCount:s=3,retryDelay:a=150,timeout:o,type:i},c){const u=r0();return{config:{key:e,methods:t,name:r,request:n,retryCount:s,retryDelay:a,timeout:o,type:i},request:a2(n,{methods:t,retryCount:s,retryDelay:a,uid:u}),value:c}}class R5 extends B{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function Ma(e,t={}){const{batch:r,fetchFn:n,fetchOptions:s,key:a="http",methods:o,name:i="HTTP JSON-RPC",onFetchRequest:c,onFetchResponse:u,retryDelay:d,raw:p}=t;return({chain:f,retryCount:m,timeout:h})=>{const{batchSize:b=1e3,wait:y=0}=typeof r=="object"?r:{},E=t.retryCount??m,v=h??t.timeout??1e4,g=e||(f==null?void 0:f.rpcUrls.default.http[0]);if(!g)throw new R5;const w=l2(g,{fetchFn:n,fetchOptions:s,onRequest:c,onResponse:u,timeout:v});return N5({key:a,methods:o,name:i,async request({method:x,params:C}){const k={method:x,params:C},{schedule:T}=Kp({id:g,wait:y,shouldSplitBatch(z){return z.length>b},fn:z=>w.request({body:z}),sort:(z,I)=>z.id-I.id}),S=async z=>r?T(z):[await w.request({body:z})],[{error:O,result:U}]=await S(k);if(p)return{error:O,result:U};if(O)throw new fi({body:k,error:O,url:g});return U},retryCount:E,retryDelay:d,timeout:v,type:"http"},{fetchOptions:s,url:g})}}/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function zo(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function T0(e,t){return Array.isArray(t)?t.length===0?!0:e?t.every(r=>typeof r=="string"):t.every(r=>Number.isSafeInteger(r)):!1}function D5(e){if(typeof e!="function")throw new Error("function expected");return!0}function Oo(e,t){if(typeof t!="string")throw new Error(`${e}: string expected`);return!0}function qi(e){if(!Number.isSafeInteger(e))throw new Error(`invalid integer: ${e}`)}function No(e){if(!Array.isArray(e))throw new Error("array expected")}function A0(e,t){if(!T0(!0,t))throw new Error(`${e}: array of strings expected`)}function _5(e,t){if(!T0(!1,t))throw new Error(`${e}: array of numbers expected`)}function S0(...e){const t=a=>a,r=(a,o)=>i=>a(o(i)),n=e.map(a=>a.encode).reduceRight(r,t),s=e.map(a=>a.decode).reduce(r,t);return{encode:n,decode:s}}function L5(e){const t=typeof e=="string"?e.split(""):e,r=t.length;A0("alphabet",t);const n=new Map(t.map((s,a)=>[s,a]));return{encode:s=>(No(s),s.map(a=>{if(!Number.isSafeInteger(a)||a<0||a>=r)throw new Error(`alphabet.encode: digit index outside alphabet "${a}". Allowed: ${e}`);return t[a]})),decode:s=>(No(s),s.map(a=>{Oo("alphabet.decode",a);const o=n.get(a);if(o===void 0)throw new Error(`Unknown letter: "${a}". Allowed: ${e}`);return o}))}}function H5(e=""){return Oo("join",e),{encode:t=>(A0("join.decode",t),t.join(e)),decode:t=>(Oo("join.decode",t),t.split(e))}}function rl(e,t,r){if(t<2)throw new Error(`convertRadix: invalid from=${t}, base cannot be less than 2`);if(r<2)throw new Error(`convertRadix: invalid to=${r}, base cannot be less than 2`);if(No(e),!e.length)return[];let n=0;const s=[],a=Array.from(e,i=>{if(qi(i),i<0||i>=t)throw new Error(`invalid integer: ${i}`);return i}),o=a.length;for(;;){let i=0,c=!0;for(let u=n;u<o;u++){const d=a[u],p=t*i,f=p+d;if(!Number.isSafeInteger(f)||p/t!==i||f-d!==p)throw new Error("convertRadix: carry overflow");const m=f/r;i=f%r;const h=Math.floor(m);if(a[u]=h,!Number.isSafeInteger(h)||h*r+i!==f)throw new Error("convertRadix: carry overflow");if(c)h?c=!1:n=u;else continue}if(s.push(i),c)break}for(let i=0;i<e.length-1&&e[i]===0;i++)s.push(0);return s.reverse()}function j5(e){qi(e);const t=2**8;return{encode:r=>{if(!zo(r))throw new Error("radix.encode input should be Uint8Array");return rl(Array.from(r),t,e)},decode:r=>(_5("radix.decode",r),Uint8Array.from(rl(r,e,t)))}}function G5(e,t){return qi(e),D5(t),{encode(r){if(!zo(r))throw new Error("checksum.encode: input should be Uint8Array");const n=t(r).slice(0,e),s=new Uint8Array(r.length+e);return s.set(r),s.set(n,r.length),s},decode(r){if(!zo(r))throw new Error("checksum.decode: input should be Uint8Array");const n=r.slice(0,-e),s=r.slice(-e),a=t(n).slice(0,e);for(let o=0;o<e;o++)if(a[o]!==s[o])throw new Error("Invalid checksum");return n}}}const q5=e=>S0(j5(58),L5(e),H5("")),V5=q5("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),K5=e=>S0(G5(4,t=>e(e(t))),V5);/*! scure-bip32 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */const Wn=xe.ProjectivePoint,za=K5(Gs);function nl(e){ce(e);const t=e.length===0?"0":pf(e);return BigInt("0x"+t)}function W5(e){if(typeof e!="bigint")throw new Error("bigint expected");return ff(e.toString(16).padStart(64,"0"))}const Z5=_o("Bitcoin seed"),Oa={private:76066276,public:76067358},Na=2147483648,X5=e=>d1(Gs(e)),J5=e=>Tt(e).getUint32(0,!1),Zn=e=>{if(!Number.isSafeInteger(e)||e<0||e>2**32-1)throw new Error("invalid number, should be from 0 to 2**32-1, got "+e);const t=new Uint8Array(4);return Tt(t).setUint32(0,e,!1),t};class kt{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return J5(this.pubHash)}get identifier(){return this.pubHash}get pubKeyHash(){return this.pubHash}get privateKey(){return this.privKeyBytes||null}get publicKey(){return this.pubKey||null}get privateExtendedKey(){const t=this.privateKey;if(!t)throw new Error("No private key");return za.encode(this.serialize(this.versions.private,Rr(new Uint8Array([0]),t)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return za.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(t,r=Oa){if(ce(t),8*t.length<128||8*t.length>512)throw new Error("HDKey: seed length must be between 128 and 512 bits; 256 bits is advised, got "+t.length);const n=Kr(eo,Z5,t);return new kt({versions:r,chainCode:n.slice(32),privateKey:n.slice(0,32)})}static fromExtendedKey(t,r=Oa){const n=za.decode(t),s=Tt(n),a=s.getUint32(0,!1),o={versions:r,depth:n[4],parentFingerprint:s.getUint32(5,!1),index:s.getUint32(9,!1),chainCode:n.slice(13,45)},i=n.slice(45),c=i[0]===0;if(a!==r[c?"private":"public"])throw new Error("Version mismatch");return c?new kt({...o,privateKey:i.slice(1)}):new kt({...o,publicKey:i})}static fromJSON(t){return kt.fromExtendedKey(t.xpriv)}constructor(t){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!t||typeof t!="object")throw new Error("HDKey.constructor must not be called directly");if(this.versions=t.versions||Oa,this.depth=t.depth||0,this.chainCode=t.chainCode||null,this.index=t.index||0,this.parentFingerprint=t.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(t.publicKey&&t.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(t.privateKey){if(!xe.utils.isValidPrivateKey(t.privateKey))throw new Error("Invalid private key");this.privKey=typeof t.privateKey=="bigint"?t.privateKey:nl(t.privateKey),this.privKeyBytes=W5(this.privKey),this.pubKey=xe.getPublicKey(t.privateKey,!0)}else if(t.publicKey)this.pubKey=Wn.fromHex(t.publicKey).toRawBytes(!0);else throw new Error("HDKey: no public or private key provided");this.pubHash=X5(this.pubKey)}derive(t){if(!/^[mM]'?/.test(t))throw new Error('Path must start with "m" or "M"');if(/^[mM]'?$/.test(t))return this;const r=t.replace(/^[mM]'?\//,"").split("/");let n=this;for(const s of r){const a=/^(\d+)('?)$/.exec(s),o=a&&a[1];if(!a||a.length!==3||typeof o!="string")throw new Error("invalid child index: "+s);let i=+o;if(!Number.isSafeInteger(i)||i>=Na)throw new Error("Invalid index");a[2]==="'"&&(i+=Na),n=n.deriveChild(i)}return n}deriveChild(t){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let r=Zn(t);if(t>=Na){const i=this.privateKey;if(!i)throw new Error("Could not derive hardened child key");r=Rr(new Uint8Array([0]),i,r)}else r=Rr(this.pubKey,r);const n=Kr(eo,this.chainCode,r),s=nl(n.slice(0,32)),a=n.slice(32);if(!xe.utils.isValidPrivateKey(s))throw new Error("Tweak bigger than curve order");const o={versions:this.versions,chainCode:a,depth:this.depth+1,parentFingerprint:this.fingerprint,index:t};try{if(this.privateKey){const i=oe(this.privKey+s,xe.CURVE.n);if(!xe.utils.isValidPrivateKey(i))throw new Error("The tweak was out of range or the resulted private key is invalid");o.privateKey=i}else{const i=Wn.fromHex(this.pubKey).add(Wn.fromPrivateKey(s));if(i.equals(Wn.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");o.publicKey=i.toRawBytes(!0)}return new kt(o)}catch{return this.deriveChild(t+1)}}sign(t){if(!this.privateKey)throw new Error("No privateKey set!");return ce(t,32),xe.sign(t,this.privKey).toCompactRawBytes()}verify(t,r){if(ce(t,32),ce(r,64),!this.publicKey)throw new Error("No publicKey set!");let n;try{n=xe.Signature.fromCompact(r)}catch{return!1}return xe.verify(n,t,this.publicKey)}wipePrivateData(){return this.privKey=void 0,this.privKeyBytes&&(this.privKeyBytes.fill(0),this.privKeyBytes=void 0),this}toJSON(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}}serialize(t,r){if(!this.chainCode)throw new Error("No chainCode set");return ce(r,33),Rr(Zn(t),new Uint8Array([this.depth]),Zn(this.parentFingerprint),Zn(this.index),this.chainCode,r)}}function Y5(e,t,r,n){Bl(e);const s=mf({dkLen:32,asyncTick:10},n),{c:a,dkLen:o,asyncTick:i}=s;if(pt(a),pt(o),pt(i),a<1)throw new Error("iterations (c) should be >= 1");const c=rc(t),u=rc(r),d=new Uint8Array(o),p=Kr.create(e,c),f=p._cloneInto().update(u);return{c:a,dkLen:o,asyncTick:i,DK:d,PRF:p,PRFSalt:f}}function Q5(e,t,r,n,s){return e.destroy(),t.destroy(),n&&n.destroy(),$e(s),r}function ex(e,t,r,n){const{c:s,dkLen:a,DK:o,PRF:i,PRFSalt:c}=Y5(e,t,r,n);let u;const d=new Uint8Array(4),p=Tt(d),f=new Uint8Array(i.outputLen);for(let m=1,h=0;h<a;m++,h+=i.outputLen){const b=o.subarray(h,h+i.outputLen);p.setInt32(0,m,!1),(u=c._cloneInto(u)).update(d).digestInto(f),b.set(f.subarray(0,b.length));for(let y=1;y<s;y++){i._cloneInto(u).update(f).digestInto(f);for(let E=0;E<b.length;E++)b[E]^=f[E]}}return Q5(i,c,o,u,f)}/*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */function B0(e){if(typeof e!="string")throw new TypeError("invalid mnemonic type: "+typeof e);return e.normalize("NFKD")}function tx(e){const t=B0(e),r=t.split(" ");if(![12,15,18,21,24].includes(r.length))throw new Error("Invalid mnemonic");return{nfkd:t,words:r}}const rx=e=>B0("mnemonic"+e);function nx(e,t=""){return ex(eo,tx(e).nfkd,rx(t),{c:2048,dkLen:64})}function sx(e){if(typeof e=="string"){if(!V(e,{strict:!1}))throw new Z({address:e});return{address:e,type:"json-rpc"}}if(!V(e.address,{strict:!1}))throw new Z({address:e.address});return{address:e.address,nonceManager:e.nonceManager,sign:e.sign,signAuthorization:e.signAuthorization,signMessage:e.signMessage,signTransaction:e.signTransaction,signTypedData:e.signTypedData,source:"custom",type:"local"}}let Ra=!1;async function Mn({hash:e,privateKey:t,to:r="object"}){const{r:n,s,recovery:a}=xe.sign(e.slice(2),t.slice(2),{lowS:!0,extraEntropy:Ue(Ra,{strict:!1})?fe(Ra):Ra}),o={r:P(n,{size:32}),s:P(s,{size:32}),v:a?28n:27n,yParity:a};return r==="bytes"||r==="hex"?g0({...o,to:r}):o}async function ax(e){const{chainId:t,nonce:r,privateKey:n,to:s="object"}=e,a=e.contractAddress??e.address,o=await Mn({hash:Sp({address:a,chainId:t,nonce:r}),privateKey:n,to:s});return s==="object"?{address:a,chainId:t,nonce:r,...o}:o}async function ox({message:e,privateKey:t}){return await Mn({hash:Hi(e),privateKey:t,to:"hex"})}async function ix(e){const{privateKey:t,transaction:r,serializer:n=Li}=e,s=r.type==="eip4844"?{...r,sidecars:!1}:r,a=await Mn({hash:te(await n(s)),privateKey:t});return await n(r,a)}async function cx(e){const{privateKey:t,...r}=e;return await Mn({hash:m0(r),privateKey:t,to:"hex"})}function Vi(e,t={}){const{nonceManager:r}=t,n=j(xe.getPublicKey(e.slice(2),!1)),s=vp(n);return{...sx({address:s,nonceManager:r,async sign({hash:o}){return Mn({hash:o,privateKey:e,to:"hex"})},async signAuthorization(o){return ax({...o,privateKey:e})},async signMessage({message:o}){return ox({message:o,privateKey:e})},async signTransaction(o,{serializer:i}={}){return ix({privateKey:e,transaction:o,serializer:i})},async signTypedData(o){return cx({...o,privateKey:e})}}),publicKey:n,source:"privateKey"}}function lx(e,{accountIndex:t=0,addressIndex:r=0,changeIndex:n=0,path:s,...a}={}){const o=e.derive(s||`m/44'/60'/${t}'/${n}/${r}`);return{...Vi(j(o.privateKey),a),getHdKey:()=>o,source:"hd"}}function ux(e,{passphrase:t,...r}={}){const n=nx(e,t);return lx(kt.fromMasterSeed(n),r)}const dx=l({id:16600,name:"0G Newton Testnet",nativeCurrency:{name:"A0GI",symbol:"A0GI",decimals:18},rpcUrls:{default:{http:["https://evmrpc-testnet.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan-newton.0g.ai"}},testnet:!0}),px=l({id:16601,name:"0G Galileo Testnet",nativeCurrency:{name:"A0GI",symbol:"A0GI",decimals:18},rpcUrls:{default:{http:["https://evmrpc-testnet.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan-galileo.0g.ai"}},testnet:!0}),fx=l({id:16661,name:"0G Mainnet",nativeCurrency:{name:"0G",symbol:"0G",decimals:18},rpcUrls:{default:{http:["https://evmrpc.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan.0g.ai"}},testnet:!1}),mx=l({id:16602,name:"0G Galileo Testnet",nativeCurrency:{name:"A0GI",symbol:"A0GI",decimals:18},rpcUrls:{default:{http:["https://evmrpc-testnet.0g.ai"]}},blockExplorers:{default:{name:"0G BlockChain Explorer",url:"https://chainscan-galileo.0g.ai"}},testnet:!0}),hx=l({id:995,name:"5ireChain",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Mainnet Explorer",url:"https://5irescan.io/"}},testnet:!1}),bx=l({id:179,name:"ABEY Mainnet",nativeCurrency:{name:"ABEY",symbol:"ABEY",decimals:18},rpcUrls:{default:{http:["https://rpc.abeychain.com"]}},blockExplorers:{default:{name:"Abey Scan",url:"https://abeyscan.com"}},testnet:!1}),Ki=50000n,sl=Ny*32n,U0={block:xi({format(e){var r;const t=(r=e.transactions)==null?void 0:r.map(n=>{var a;if(typeof n=="string")return n;const s=(a=U0.transaction)==null?void 0:a.format(n);return s.typeHex==="0x71"?s.type="eip712":s.typeHex==="0xff"&&(s.type="priority"),s});return{l1BatchNumber:e.l1BatchNumber?q(e.l1BatchNumber):null,l1BatchTimestamp:e.l1BatchTimestamp?q(e.l1BatchTimestamp):null,transactions:t}}}),transaction:bi({format(e){const t={};return e.type==="0x71"?t.type="eip712":e.type==="0xff"&&(t.type="priority"),{...t,l1BatchNumber:e.l1BatchNumber?q(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?q(e.l1BatchTxIndex):null}}}),transactionReceipt:Xp({format(e){return{l1BatchNumber:e.l1BatchNumber?q(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?q(e.l1BatchTxIndex):null,logs:e.logs.map(t=>({...Ge(t),l1BatchNumber:t.l1BatchNumber?q(t.l1BatchNumber):null,transactionLogIndex:ue(t.transactionLogIndex),logType:t.logType})),l2ToL1Logs:e.l2ToL1Logs.map(t=>({blockNumber:q(t.blockHash),blockHash:t.blockHash,l1BatchNumber:t.l1BatchNumber?q(t.l1BatchNumber):null,transactionIndex:q(t.transactionIndex),shardId:q(t.shardId),isService:t.isService,sender:t.sender,key:t.key,value:t.value,transactionHash:t.transactionHash,logIndex:q(t.logIndex)}))}}}),transactionRequest:Bp({exclude:["customSignature","factoryDeps","gasPerPubdata","paymaster","paymasterInput"],format(e){return e.gasPerPubdata||e.paymaster&&e.paymasterInput||e.factoryDeps||e.customSignature?{eip712Meta:{...e.gasPerPubdata?{gasPerPubdata:j(e.gasPerPubdata)}:{gasPerPubdata:j(Ki)},...e.paymaster&&e.paymasterInput?{paymasterParams:{paymaster:e.paymaster,paymasterInput:Array.from(fe(e.paymasterInput))}}:{},...e.factoryDeps?{factoryDeps:e.factoryDeps.map(t=>Array.from(fe(t)))}:{},...e.customSignature?{customSignature:Array.from(fe(e.customSignature))}:{}},type:"0x71"}:{}}})};class yx extends B{constructor(){super(["Transaction is not an EIP712 transaction.","","Transaction must:",' - include `type: "eip712"`'," - include one of the following: `customSignature`, `paymaster`, `paymasterInput`, `gasPerPubdata`, `factoryDeps`"].join(`
|
|
49
|
+
`),{name:"InvalidEip712TransactionError"})}}function P0(e){return!!(e.type==="eip712"||"customSignature"in e&&e.customSignature||"paymaster"in e&&e.paymaster||"paymasterInput"in e&&e.paymasterInput||"gasPerPubdata"in e&&typeof e.gasPerPubdata=="bigint"||"factoryDeps"in e&&e.factoryDeps)}function I0(e){const{chainId:t,to:r,from:n,paymaster:s,paymasterInput:a}=e;if(!P0(e))throw new yx;if(!t||t<=0)throw new br({chainId:t});if(r&&!V(r))throw new Z({address:r});if(n&&!V(n))throw new Z({address:n});if(s&&!V(s))throw new Z({address:s});if(s&&!a)throw new B("`paymasterInput` must be provided when `paymaster` is defined");if(!s&&a)throw new B("`paymaster` must be provided when `paymasterInput` is defined")}function xx(e,t){return P0(e)?wx(e):Li(e,t)}const gx={transaction:xx};function wx(e){const{chainId:t,gas:r,nonce:n,to:s,from:a,value:o,maxFeePerGas:i,maxPriorityFeePerGas:c,customSignature:u,factoryDeps:d,paymaster:p,paymasterInput:f,gasPerPubdata:m,data:h}=e;I0(e);const b=[n?j(n):"0x",c?j(c):"0x",i?j(i):"0x",r?j(r):"0x",s??"0x",o?j(o):"0x",h??"0x",j(t),j(""),j(""),j(t),a??"0x",j(m||Ki),d??[],u??"0x",p&&f?[p,f]:[]];return ve(["0x71",je(b)])}class Ex extends B{constructor({givenLength:t,maxBytecodeSize:r}){super(`Bytecode cannot be longer than ${r} bytes. Given length: ${t}`,{name:"BytecodeLengthExceedsMaxSizeError"})}}class kx extends B{constructor({givenLengthInWords:t}){super(`Bytecode length in 32-byte words must be odd. Given length in words: ${t}`,{name:"BytecodeLengthInWordsMustBeOddError"})}}class vx extends B{constructor({givenLength:t}){super(`The bytecode length in bytes must be divisible by 32. Given length: ${t}`,{name:"BytecodeLengthMustBeDivisibleBy32Error"})}}function Cx(e){const t=tt(e);if(t.length%32!==0)throw new vx({givenLength:t.length});if(t.length>sl)throw new Ex({givenLength:t.length,maxBytecodeSize:sl});const r=$p(t),n=tt(r),s=t.length/32;if(s%2===0)throw new kx({givenLengthInWords:s});const a=tt(s),o=bt(a,{size:2}),i=new Uint8Array([1,0]);return n.set(i,0),n.set(o,2),n}const Tx=e=>{I0(e);const t=Ax(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}};function Ax(e){const{gas:t,nonce:r,to:n,from:s,value:a,maxFeePerGas:o,maxPriorityFeePerGas:i,factoryDeps:c,paymaster:u,paymasterInput:d,gasPerPubdata:p,data:f}=e;return{txType:113n,from:BigInt(s),to:n?BigInt(n):0n,gasLimit:t??0n,gasPerPubdataByteLimit:p??Ki,maxFeePerGas:o??0n,maxPriorityFeePerGas:i??0n,paymaster:u?BigInt(u):0n,nonce:r?BigInt(r):0n,value:a??0n,data:f??"0x",factoryDeps:(c==null?void 0:c.map(m=>j(Cx(m))))??[],paymasterInput:d||"0x"}}const Ae={blockTime:1e3,formatters:U0,serializers:gx,custom:{getEip712Domain:Tx}},Sx=l({...Ae,blockTime:200,id:2741,name:"Abstract",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://api.mainnet.abs.xyz"],webSocket:["wss://api.mainnet.abs.xyz/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://abscan.org"},native:{name:"Abstract Explorer",url:"https://explorer.mainnet.abs.xyz"}},contracts:{multicall3:{address:"0xAa4De41dba0Ca5dCBb288b7cC6b708F3aaC759E7",blockCreated:5288},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:5263}}}),Bx=l({...Ae,blockTime:200,id:11124,name:"Abstract Testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://api.testnet.abs.xyz"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.abscan.org"},native:{name:"Abstract Explorer",url:"https://explorer.testnet.abs.xyz"}},testnet:!0,contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963",blockCreated:358349},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:431682}}}),Ux=l({id:787,name:"Acala",network:"acala",nativeCurrency:{name:"Acala",symbol:"ACA",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-acala.aca-api.network"],webSocket:["wss://eth-rpc-acala.aca-api.network"]}},blockExplorers:{default:{name:"Acala Blockscout",url:"https://blockscout.acala.network",apiUrl:"https://blockscout.acala.network/api"}},testnet:!1}),Px=l({id:47,name:"Acria IntelliChain",nativeCurrency:{decimals:18,name:"ACRIA",symbol:"ACRIA"},rpcUrls:{default:{http:["https://aic.acria.ai"]}},blockExplorers:{default:{name:"Acria Explorer",url:"https://explorer.acria.ai"}},testnet:!1}),Ix=l({id:1215,name:"ADF Chain",nativeCurrency:{name:"ADDFILL",symbol:"ADF",decimals:18},rpcUrls:{default:{http:["https://mainnet.adftechnology.com"]}},blockExplorers:{default:{name:"ADF Mainnet Explorer",url:"https://explorer.adftechnology.com"}},testnet:!1}),Fx=l({id:9990,name:"Agung Network",nativeCurrency:{decimals:18,name:"Agung",symbol:"AGNG"},rpcUrls:{default:{http:["https://wss-async.agung.peaq.network"],webSocket:["wss://wss-async.agung.peaq.network"]}},blockExplorers:{default:{name:"Subscan",url:"https://agung-testnet.subscan.io"}},testnet:!0}),$x=l({id:168,name:"AIOZ Network",nativeCurrency:{decimals:18,name:"AIOZ",symbol:"AIOZ"},rpcUrls:{default:{http:["https://eth-dataseed.aioz.network"]}},blockExplorers:{default:{name:"AIOZ Explorer",url:"https://explorer.aioz.network"}},testnet:!1}),Mx=l({id:41455,name:"Aleph Zero",nativeCurrency:{name:"Aleph Zero",symbol:"AZERO",decimals:18},rpcUrls:{default:{http:["https://rpc.alephzero.raas.gelato.cloud"]}},blockExplorers:{default:{name:"Aleph Zero EVM Explorer",url:"https://evm-explorer.alephzero.org",apiUrl:"https://evm-explorer.alephzero.org/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4603377}}}),zx=l({id:2039,name:"Aleph Zero Testnet",nativeCurrency:{name:"TZERO",symbol:"TZERO",decimals:18},rpcUrls:{default:{http:["https://rpc.alephzero-testnet.gelato.digital"],webSocket:["wss://ws.alephzero-testnet.gelato.digital"]}},blockExplorers:{default:{name:"Aleph Zero EVM Testnet explorer",url:"https://evm-explorer-testnet.alephzero.org",apiUrl:"https://evm-explorer-testnet.alephzero.org/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2861745}},testnet:!0}),Ox=l({id:10241024,name:"AlienX Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.alienxchain.io/http"]}},blockExplorers:{default:{name:"AlienX Explorer",url:"https://explorer.alienxchain.io"}},testnet:!1}),Nx=l({id:10241025,name:"ALIENX Hal Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://hal-rpc.alienxchain.io/http"]}},blockExplorers:{default:{name:"AlienX Explorer",url:"https://hal-explorer.alienxchain.io"}},testnet:!0}),F0={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},Wi={block:xi({format(e){var r;return{transactions:(r=e.transactions)==null?void 0:r.map(n=>{if(typeof n=="string")return n;const s=mr(n);return s.typeHex==="0x7e"&&(s.isSystemTx=n.isSystemTx,s.mint=n.mint?q(n.mint):void 0,s.sourceHash=n.sourceHash,s.type="deposit"),s}),stateRoot:e.stateRoot}}}),transaction:bi({format(e){const t={};return e.type==="0x7e"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?q(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:Xp({format(e){return{l1GasPrice:e.l1GasPrice?q(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?q(e.l1GasUsed):null,l1Fee:e.l1Fee?q(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})};function $0(e,t){return _x(e)?Dx(e):Li(e,t)}const Rx={transaction:$0};function Dx(e){Lx(e);const{sourceHash:t,data:r,from:n,gas:s,isSystemTx:a,mint:o,to:i,value:c}=e,u=[t,n,i??"0x",o?j(o):"0x",c?j(c):"0x",s?j(s):"0x",a?"0x1":"0x",r??"0x"];return ve(["0x7e",je(u)])}function _x(e){return e.type==="deposit"||typeof e.sourceHash<"u"}function Lx(e){const{from:t,to:r}=e;if(t&&!V(t))throw new Z({address:t});if(r&&!V(r))throw new Z({address:r})}const F={blockTime:2e3,contracts:F0,formatters:Wi,serializers:Rx},Xn=1,Hx=l({...F,id:888888888,name:"Ancient8",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.ancient8.gg"]}},blockExplorers:{default:{name:"Ancient8 explorer",url:"https://scan.ancient8.gg",apiUrl:"https://scan.ancient8.gg/api"}},contracts:{...F.contracts,l2OutputOracle:{[Xn]:{address:"0xB09DC08428C8b4EFB4ff9C0827386CDF34277996"}},portal:{[Xn]:{address:"0x639F2AECE398Aa76b07e59eF6abe2cFe32bacb68",blockCreated:19070571}},l1StandardBridge:{[Xn]:{address:"0xd5e3eDf5b68135D559D572E26bF863FBC1950033",blockCreated:19070571}}},sourceId:Xn}),Jn=11155111,jx=l({...F,id:28122024,name:"Ancient8 Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpcv2-testnet.ancient8.gg"]}},blockExplorers:{default:{name:"Ancient8 Celestia Testnet explorer",url:"https://scanv2-testnet.ancient8.gg",apiUrl:"https://scanv2-testnet.ancient8.gg/api"}},contracts:{...F.contracts,l2OutputOracle:{[Jn]:{address:"0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB"}},portal:{[Jn]:{address:"0xfa1d9E26A6aCD7b22115D27572c1221B9803c960",blockCreated:4972908}},l1StandardBridge:{[Jn]:{address:"0xF6Bc0146d3c74D48306e79Ae134A260E418C9335",blockCreated:4972908}}},sourceId:Jn}),Gx=l({id:31337,name:"Anvil",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}}),qx=42161,Vx=l({id:33139,name:"ApeChain",nativeCurrency:{name:"ApeCoin",symbol:"APE",decimals:18},rpcUrls:{default:{http:["https://rpc.apechain.com/http"],webSocket:["wss://rpc.apechain.com/ws"]}},blockExplorers:{default:{name:"Apescan",url:"https://apescan.io",apiUrl:"https://api.apescan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:20889}},sourceId:qx}),Kx=l({id:3993,name:"APEX Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.apexlayer.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-testnet.apexlayer.xyz",apiUrl:"https://exp-testnet.apexlayer.xyz/api"}},contracts:{multicall3:{address:"0xf7642be33a6b18D16a995657adb5a68CD0438aE2",blockCreated:283775}},testnet:!0}),Wx=l({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:250,rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),Zx=l({id:421613,name:"Arbitrum Goerli",nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://goerli.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:88114}},testnet:!0}),Xx=l({id:42170,name:"Arbitrum Nova",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://nova.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://nova.arbiscan.io",apiUrl:"https://api-nova.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1746963}}}),Jx=l({id:421614,name:"Arbitrum Sepolia",blockTime:250,nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io",apiUrl:"https://api-sepolia.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0}),Yx=l({id:5042002,name:"Arc Testnet",nativeCurrency:{name:"USDC",symbol:"USDC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.arc.network","https://rpc.quicknode.testnet.arc.network","https://rpc.blockdaemon.testnet.arc.network"],webSocket:["wss://rpc.testnet.arc.network","wss://rpc.quicknode.testnet.arc.network"]}},blockExplorers:{default:{name:"ArcScan",url:"https://testnet.arcscan.app",apiUrl:"https://testnet.arcscan.app/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!0}),Qx=l({id:7897,name:"Arena-Z",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.arena-z.gg"]}},blockExplorers:{default:{name:"Arena-Z Explorer",url:"https://explorer.arena-z.gg",apiUrl:"https://explorer.arena-z.gg"}}}),e8=l({id:463,name:"Areon Network",nativeCurrency:{decimals:18,name:"AREA",symbol:"AREA"},rpcUrls:{default:{http:["https://mainnet-rpc.areon.network"],webSocket:["wss://mainnet-ws.areon.network"]}},blockExplorers:{default:{name:"Areonscan",url:"https://areonscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:353286}},testnet:!1}),t8=l({id:462,name:"Areon Network Testnet",nativeCurrency:{decimals:18,name:"TAREA",symbol:"TAREA"},rpcUrls:{default:{http:["https://testnet-rpc.areon.network"],webSocket:["wss://testnet-ws.areon.network"]}},blockExplorers:{default:{name:"Areonscan",url:"https://areonscan.com"}},testnet:!0}),r8=l({id:463,name:"Areum",nativeCurrency:{decimals:18,name:"AREA",symbol:"AREA"},rpcUrls:{default:{http:["https://mainnet-rpc.areum.network"],webSocket:["wss://mainnet-ws.areum.network"]}},blockExplorers:{default:{name:"Areum Explorer",url:"https://explorer.areum.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:353286}},testnet:!1}),n8=l({id:11822,name:"Artela Testnet",nativeCurrency:{name:"ART",symbol:"ART",decimals:18},rpcUrls:{default:{http:["https://betanet-rpc1.artela.network"]}},blockExplorers:{default:{name:"Artela",url:"https://betanet-scan.artela.network",apiUrl:"https://betanet-scan.artela.network/api"}},contracts:{multicall3:{address:"0xd07c8635f76e8745Ee7092fbb6e8fbc5FeF09DD7",blockCreated:7001871}},testnet:!0}),s8=l({id:10242,name:"Arthera",nativeCurrency:{name:"Arthera",symbol:"AA",decimals:18},rpcUrls:{default:{http:["https://rpc.arthera.net"]}},blockExplorers:{default:{name:"Arthera EVM Explorer",url:"https://explorer.arthera.net",apiUrl:"https://explorer.arthera.net/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4502791}}}),a8=l({id:10243,name:"Arthera Testnet",nativeCurrency:{name:"Arthera",symbol:"AA",decimals:18},rpcUrls:{default:{http:["https://rpc-test.arthera.net"]}},blockExplorers:{default:{name:"Arthera EVM Explorer",url:"https://explorer-test.arthera.net",apiUrl:"https://explorer-test.arthera.net/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:22051}}}),o8=l({id:42420,name:"AssetChain Mainnet",nativeCurrency:{decimals:18,name:"Real World Asset",symbol:"RWA"},rpcUrls:{default:{http:["https://mainnet-rpc.assetchain.org"]}},blockExplorers:{default:{name:"Asset Chain Explorer",url:"https://scan.assetchain.org",apiUrl:"https://scan.assetchain.org/api"}},testnet:!1,contracts:{}}),i8=l({id:42421,name:"AssetChain Testnet",nativeCurrency:{decimals:18,name:"Real World Asset",symbol:"RWA"},rpcUrls:{default:{http:["https://enugu-rpc.assetchain.org"]}},blockExplorers:{default:{name:"Asset Chain Testnet Explorer",url:"https://scan-testnet.assetchain.org",apiUrl:"https://scan-testnet.assetchain.org/api"}},testnet:!0,contracts:{multicall3:{address:"0x989F832D35988cb5e3eB001Fa2Fe789469EC31Ea",blockCreated:17177}}}),c8=l({id:592,name:"Astar",network:"astar-mainnet",nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},rpcUrls:{default:{http:["https://astar.api.onfinality.io/public"]}},blockExplorers:{default:{name:"Astar Subscan",url:"https://astar.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:761794}},testnet:!1}),l8=l({id:3776,name:"Astar zkEVM",network:"AstarZkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-zkevm.astar.network"]}},blockExplorers:{default:{name:"Astar zkEVM Explorer",url:"https://astar-zkevm.explorer.startale.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:93528}},testnet:!1}),u8=l({id:6038361,name:"Astar zkEVM Testnet zKyoto",network:"zKyoto",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.startale.com/zkyoto"]}},blockExplorers:{default:{name:"zKyoto Explorer",url:"https://zkyoto.explorer.startale.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:196153}},testnet:!0}),d8=l({id:2340,name:"Atleta Olympia",nativeCurrency:{decimals:18,name:"Atla",symbol:"ATLA"},rpcUrls:{default:{http:["https://testnet-rpc.atleta.network:9944","https://testnet-rpc.atleta.network"],ws:["wss://testnet-rpc.atleta.network:9944"]}},blockExplorers:{default:{name:"Atleta Olympia Explorer",url:"https://blockscout.atleta.network",apiUrl:"https://blockscout.atleta.network/api"}},contracts:{multicall3:{address:"0x1472ec6392180fb84F345d2455bCC75B26577115",blockCreated:1076473}},testnet:!0}),p8=l({id:1313161554,name:"Aurora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.aurora.dev"]}},blockExplorers:{default:{name:"Aurorascan",url:"https://aurorascan.dev",apiUrl:"https://aurorascan.dev/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:62907816}}}),f8=l({id:1313161555,name:"Aurora Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.aurora.dev"]}},blockExplorers:{default:{name:"Aurorascan",url:"https://testnet.aurorascan.dev",apiUrl:"https://testnet.aurorascan.dev/api"}},testnet:!0}),m8=l({id:205205,name:"Auroria Testnet",network:"auroria",nativeCurrency:{name:"Auroria Stratis",symbol:"tSTRAX",decimals:18},rpcUrls:{default:{http:["https://auroria.rpc.stratisevm.com"]}},blockExplorers:{default:{name:"Auroria Testnet Explorer",url:"https://auroria.explorer.stratisevm.com"}},testnet:!0}),h8=l({id:785,name:"Autheo Testnet",nativeCurrency:{decimals:18,name:"Autheo",symbol:"THEO"},rpcUrls:{default:{http:["https://testnet-rpc1.autheo.com","https://testnet-rpc2.autheo.com"]}},blockExplorers:{default:{name:"Autheo Testnet Block Explorer",url:"https://testnet-explorer.autheo.com/"}}}),b8=l({id:43114,name:"Avalanche",blockTime:1700,nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://snowtrace.io",apiUrl:"https://api.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}}),y8=l({id:43113,name:"Avalanche Fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://testnet.snowtrace.io",apiUrl:"https://api-testnet.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0}),x8=8453,g8=l({id:8333,name:"B3",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.b3.fun/http"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.b3.fun"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}},sourceId:x8}),w8=168587773,E8=l({id:1993,name:"B3 Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.b3.fun/http"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.b3.fun"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}},testnet:!0,sourceId:w8}),k8=l({id:5165,network:"bahamut",name:"Bahamut",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.bahamut.io","https://bahamut-rpc.publicnode.com","https://rpc2.bahamut.io"],webSocket:["wss://ws1.sahara.bahamutchain.com","wss://bahamut-rpc.publicnode.com","wss://ws2.sahara.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://www.ftnscan.com",apiUrl:"https://www.ftnscan.com/api"}}}),Sr=1,M0=l({...F,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...F.contracts,disputeGameFactory:{[Sr]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[Sr]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[Sr]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[Sr]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:Sr}),v8=l({...M0,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://mainnet-preconf.base.org"]}}}),C8=l({id:123420001114,name:"Basecamp Testnet",nativeCurrency:{decimals:18,name:"Camp",symbol:"CAMP"},rpcUrls:{default:{http:["https://rpc.basecamp.t.raas.gelato.cloud"]}},blockExplorers:{default:{name:"basecamp",url:"https://basecamp.cloud.blockscout.com"}},testnet:!0}),Yn=5,T8=l({...F,id:84531,name:"Base Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://goerli.basescan.org",apiUrl:"https://goerli.basescan.org/api"}},contracts:{...F.contracts,l2OutputOracle:{[Yn]:{address:"0x2A35891ff30313CcFa6CE88dcf3858bb075A2298"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1376988},portal:{[Yn]:{address:"0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA"}},l1StandardBridge:{[Yn]:{address:"0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a"}}},testnet:!0,sourceId:Yn}),Br=11155111,z0=l({...F,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...F.contracts,disputeGameFactory:{[Br]:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{[Br]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[Br]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[Br]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:Br}),A8=l({...z0,experimental_preconfirmationTime:200,rpcUrls:{default:{http:["https://sepolia-preconf.base.org"]}}}),S8=l({id:4337,name:"Beam",network:"beam",nativeCurrency:{decimals:18,name:"Beam",symbol:"BEAM"},rpcUrls:{default:{http:["https://build.onbeam.com/rpc"],webSocket:["wss://build.onbeam.com/ws"]}},blockExplorers:{default:{name:"Beam Explorer",url:"https://subnets.avax.network/beam"}},contracts:{multicall3:{address:"0x4956f15efdc3dc16645e90cc356eafa65ffc65ec",blockCreated:1}}}),B8=l({id:13337,name:"Beam Testnet",network:"beam",nativeCurrency:{decimals:18,name:"Beam",symbol:"BEAM"},rpcUrls:{default:{http:["https://build.onbeam.com/rpc/testnet"],webSocket:["wss://build.onbeam.com/ws/testnet"]}},blockExplorers:{default:{name:"Beam Explorer",url:"https://subnets-test.avax.network/beam"}},contracts:{multicall3:{address:"0x9bf49b704ee2a095b95c1f2d4eb9010510c41c9e",blockCreated:3}},testnet:!0}),U8=l({id:641230,name:"Bear Network Chain Mainnet",nativeCurrency:{decimals:18,name:"BearNetworkChain",symbol:"BRNKC"},rpcUrls:{default:{http:["https://brnkc-mainnet.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkScan",url:"https://brnkscan.bearnetwork.net",apiUrl:"https://brnkscan.bearnetwork.net/api"}}}),P8=l({id:751230,name:"Bear Network Chain Testnet",nativeCurrency:{decimals:18,name:"tBRNKC",symbol:"tBRNKC"},rpcUrls:{default:{http:["https://brnkc-test.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkTestScan",url:"https://brnktest-scan.bearnetwork.net",apiUrl:"https://brnktest-scan.bearnetwork.net/api"}},testnet:!0}),I8=l({id:80094,name:"Berachain",blockTime:2e3,nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},ensRegistry:{address:"0x5b22280886a2f5e09a49bea7e320eab0e5320e28",blockCreated:877007},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:9310021}},rpcUrls:{default:{http:["https://rpc.berachain.com"]}},blockExplorers:{default:{name:"Berascan",url:"https://berascan.com"}},ensTlds:[".bera"],testnet:!1}),F8=l({id:80069,blockTime:2e3,name:"Berachain Bepolia",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},rpcUrls:{default:{http:["https://bepolia.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berascan",url:"https://bepolia.beratrail.io"}},testnet:!0}),$8=l({id:80085,name:"Berachain Artio",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},rpcUrls:{default:{http:["https://artio.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berachain",url:"https://artio.beratrail.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:866924}},testnet:!0}),M8=l({id:80084,name:"Berachain bArtio",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:109269},ensRegistry:{address:"0xB0eef18971290b333450586D33dcA6cE122651D2",blockCreated:7736794},ensUniversalResolver:{address:"0x41692Ef1EA0C79E6b73077E4A67572D2BDbD7057",blockCreated:7736795}},ensTlds:[".bera"],rpcUrls:{default:{http:["https://bartio.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berachain bArtio Beratrail",url:"https://bartio.beratrail.io"}},testnet:!0}),z8=l({id:11501,name:"BEVM Mainnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet-1.bevm.io"]}},blockExplorers:{default:{name:"Bevmscan",url:"https://scan-mainnet.bevm.io",apiUrl:"https://scan-mainnet-api.bevm.io/api"}}}),O8=l({id:3068,name:"Bifrost Mainnet",nativeCurrency:{name:"BFC",symbol:"BFC",decimals:18},rpcUrls:{default:{http:["https://public-01.mainnet.bifrostnetwork.com/rpc"]}},blockExplorers:{default:{name:"Bifrost Blockscout",url:"https://explorer.mainnet.bifrostnetwork.com"}},testnet:!1}),N8=l({id:53456,name:"BirdLayer",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.birdlayer.xyz","https://rpc1.birdlayer.xyz"],webSocket:["wss://rpc.birdlayer.xyz/ws"]}},blockExplorers:{default:{name:"BirdLayer Explorer",url:"https://scan.birdlayer.xyz"}}}),R8=l({id:32520,name:"Bitgert Mainnet",nativeCurrency:{decimals:18,name:"Brise",symbol:"Brise"},rpcUrls:{default:{http:["https://rpc-bitgert.icecreamswap.com"]}},blockExplorers:{default:{name:"Bitgert Scan",url:"https://brisescan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2118034}},testnet:!1}),D8=l({id:96,name:"KUB Mainnet",nativeCurrency:{name:"KUB Coin",symbol:"KUB",decimals:18},rpcUrls:{default:{http:["https://rpc.bitkubchain.io"]}},blockExplorers:{default:{name:"KUB Chain Mainnet Explorer",url:"https://www.bkcscan.com",apiUrl:"https://www.bkcscan.com/api"}}}),_8=l({id:25925,name:"Bitkub Testnet",network:"Bitkub Testnet",nativeCurrency:{name:"Bitkub Test",symbol:"tKUB",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.bitkubchain.io"]}},blockExplorers:{default:{name:"Bitkub Chain Testnet Explorer",url:"https://testnet.bkcscan.com",apiUrl:"https://testnet.bkcscan.com/api"}},testnet:!0}),L8=l({id:200901,name:"Bitlayer Mainnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.bitlayer.org"],webSocket:["wss://ws.bitlayer.org"]}},blockExplorers:{default:{name:"bitlayer mainnet scan",url:"https://www.btrscan.com"}},contracts:{multicall3:{address:"0x5B256fE9e993902eCe49D138a5b1162cBb529474",blockCreated:2421963}}}),H8=l({id:200810,name:"Bitlayer Testnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.bitlayer.org"],webSocket:["wss://testnet-ws.bitlayer.org"]}},blockExplorers:{default:{name:"bitlayer testnet scan",url:"https://testnet.btrscan.com"}},contracts:{multicall3:{address:"0x5B256fE9e993902eCe49D138a5b1162cBb529474",blockCreated:4135671}},testnet:!0}),j8=l({id:7171,name:"Bitrock Mainnet",nativeCurrency:{name:"BROCK",symbol:"BROCK",decimals:18},rpcUrls:{default:{http:["https://brockrpc.io"]}},blockExplorers:{default:{name:"Bitrock Explorer",url:"https://explorer.bit-rock.io"}},testnet:!1}),G8=l({id:199,name:"BitTorrent",network:"bittorrent-chain-mainnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://rpc.bittorrentchain.io"]}},blockExplorers:{default:{name:"Bttcscan",url:"https://bttcscan.com",apiUrl:"https://api.bttcscan.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:31078552}}}),q8=l({id:1028,name:"BitTorrent Chain Testnet",network:"bittorrent-chain-testnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://testrpc.bittorrentchain.io"]}},blockExplorers:{default:{name:"Bttcscan",url:"https://testnet.bttcscan.com",apiUrl:"https://testnet.bttcscan.com/api"}},testnet:!0}),Qn=1,V8=l({...F,id:81457,name:"Blast",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.blast.io"]}},blockExplorers:{default:{name:"Blastscan",url:"https://blastscan.io",apiUrl:"https://api.blastscan.io/api"}},contracts:{...F.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:212929},l2OutputOracle:{[Qn]:{address:"0x826D1B0D4111Ad9146Eb8941D7Ca2B6a44215c76",blockCreated:19300358}},portal:{[Qn]:{address:"0x0Ec68c5B10F21EFFb74f2A5C61DFe6b08C0Db6Cb",blockCreated:19300357}},l1StandardBridge:{[Qn]:{address:"0x697402166Fbf2F22E970df8a6486Ef171dbfc524",blockCreated:19300360}}},sourceId:Qn}),K8=11155111,W8=l({id:168587773,name:"Blast Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.blast.io"]}},blockExplorers:{default:{name:"Blastscan",url:"https://sepolia.blastscan.io",apiUrl:"https://api-sepolia.blastscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:756690}},testnet:!0,sourceId:K8}),Da=1,Z8=l({...F,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:"BOB Explorer",url:"https://explorer.gobob.xyz"}},contracts:{...F.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:23131},l2OutputOracle:{[Da]:{address:"0xdDa53E23f8a32640b04D7256e651C1db98dB11C1",blockCreated:4462615}},portal:{[Da]:{address:"0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E",blockCreated:4462615}}},sourceId:Da}),X8=l({id:288,name:"Boba Network",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.boba.network"]}},blockExplorers:{default:{name:"BOBAScan",url:"https://bobascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:446859}}}),J8=l({id:28882,name:"Boba Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.boba.network"]}},blockExplorers:{default:{name:"BOBAScan",url:"https://testnet.bobascan.com"}},testnet:!0}),_a=11155111,Y8=l({...F,id:808813,name:"BOB Sepolia",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://bob-sepolia.rpc.gobob.xyz"],webSocket:["wss://bob-sepolia.rpc.gobob.xyz"]}},blockExplorers:{default:{name:"BOB Sepolia Explorer",url:"https://bob-sepolia.explorer.gobob.xyz"}},contracts:{...F.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:35677},l2OutputOracle:{[_a]:{address:"0x14D0069452b4AE2b250B395b8adAb771E4267d2f",blockCreated:4462615}},portal:{[_a]:{address:"0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4",blockCreated:4462615}}},testnet:!0,sourceId:_a}),Q8=l({id:11100,name:"Bool Beta Mainnet",nativeCurrency:{decimals:18,name:"BOL",symbol:"BOL"},rpcUrls:{default:{http:["https://beta-rpc-node-http.bool.network"]}},blockExplorers:{default:{name:"BoolScan",url:"https://beta-mainnet.boolscan.com/"}},testnet:!1}),e3=l({id:3637,name:"Botanix",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.botanixlabs.com"],webSocket:["wss://rpc.botanixlabs.com/ws"]}},blockExplorers:{default:{name:"Botanixscan",url:"https://botanixscan.io"}}}),t3=l({id:3636,name:"Botanix Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://node.botanixlabs.dev"]}},blockExplorers:{default:{name:"Botanix Testnet Explorer",url:"https://testnet.botanixscan.io"}},testnet:!0}),r3=l({id:6001,name:"BounceBit Mainnet",nativeCurrency:{name:"BounceBit",symbol:"BB",decimals:18},rpcUrls:{default:{http:["https://fullnode-mainnet.bouncebitapi.com"]}},blockExplorers:{default:{name:"BB Scan",url:"https://bbscan.io"}},testnet:!1}),n3=l({id:6e3,name:"BounceBit Testnet",nativeCurrency:{name:"BounceBit",symbol:"BB",decimals:18},rpcUrls:{default:{http:["https://fullnode-testnet.bouncebitapi.com"]}},blockExplorers:{default:{name:"BB Scan",url:"https://testnet.bbscan.io"}},testnet:!0}),s3=l({id:1039,name:"Bronos",nativeCurrency:{decimals:18,name:"BRO",symbol:"BRO"},rpcUrls:{default:{http:["https://evm.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://broscan.bronos.org"}}}),a3=l({id:1038,name:"Bronos Testnet",nativeCurrency:{decimals:18,name:"Bronos Coin",symbol:"tBRO"},rpcUrls:{default:{http:["https://evm-testnet.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://tbroscan.bronos.org"}},testnet:!0}),o3=l({id:56,name:"BNB Smart Chain",blockTime:750,nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}}),i3=l({id:1017,name:"BNB Greenfield Chain",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://greenfield-chain.bnbchain.org"]}},blockExplorers:{default:{name:"BNB Greenfield Mainnet Scan",url:"https://greenfieldscan.com"}},testnet:!1}),c3=l({id:97,name:"BNB Smart Chain Testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]}},blockExplorers:{default:{name:"BscScan",url:"https://testnet.bscscan.com",apiUrl:"https://api-testnet.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0}),l3=l({id:223,name:"B2",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.bsquared.network"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.bsquared.network"}}}),u3=l({id:1123,name:"B2 Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.bsquared.network"]}},blockExplorers:{default:{name:"blockscout",url:"https://testnet-explorer.bsquared.network"}},testnet:!0}),d3=l({id:200901,name:"Bitlayer",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.bitlayer.org","https://rpc.bitlayer-rpc.com"],webSocket:["wss://ws.bitlayer.org","wss://ws.bitlayer-rpc.com"]}},blockExplorers:{default:{name:"Bitlayer(BTR) Scan",url:"https://www.btrscan.com"}}}),p3=l({id:200810,name:"Bitlayer Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.bitlayer.org"],webSocket:["wss://testnet-ws.bitlayer.org","wss://testnet-ws.bitlayer-rpc.com"]}},blockExplorers:{default:{name:"Bitlayer(BTR) Scan",url:"https://testnet.btrscan.com"}},testnet:!0}),f3=l({id:4999,name:"BlackFort Exchange Network",nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},rpcUrls:{default:{http:["https://mainnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.blackfort.network",apiUrl:"https://explorer.blackfort.network/api"}}}),m3=l({id:4777,name:"BlackFort Exchange Network Testnet",nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},rpcUrls:{default:{http:["https://testnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.blackfort.network",apiUrl:"https://testnet-explorer.blackfort.network/api"}},testnet:!0}),h3=l({id:13370,name:"Cannon",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),b3=l({id:7700,name:"Canto",nativeCurrency:{decimals:18,name:"Canto",symbol:"CANTO"},rpcUrls:{default:{http:["https://canto.gravitychain.io"]}},blockExplorers:{default:{name:"Tuber.Build (Blockscout)",url:"https://tuber.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2905789}}}),y3={estimateFeesPerGas:async e=>{var s;if(!((s=e.request)!=null&&s.feeCurrency))return null;const[t,r]=await Promise.all([x3(e.client,e.request.feeCurrency),g3(e.client,e.request.feeCurrency)]);return{maxFeePerGas:e.multiply(t-r)+r,maxPriorityFeePerGas:r}}};async function x3(e,t){const r=await e.request({method:"eth_gasPrice",params:[t]});return BigInt(r)}async function g3(e,t){const r=await e.request({method:"eth_maxPriorityFeePerGas",params:[t]});return BigInt(r)}function O0(e){return e===0||e===0n||e===void 0||e===null||e==="0"||e===""||typeof e=="string"&&(pe(e).toLowerCase()==="0x"||pe(e).toLowerCase()==="0x00")}function _r(e){return!O0(e)}function w3(e){return typeof e.maxFeePerGas<"u"&&typeof e.maxPriorityFeePerGas<"u"}function N0(e){return e.type==="cip64"?!0:w3(e)&&_r(e.feeCurrency)}const E3={block:xi({format(e){var r;return{transactions:(r=e.transactions)==null?void 0:r.map(n=>typeof n=="string"?n:{...mr(n),...n.gatewayFee?{gatewayFee:q(n.gatewayFee),gatewayFeeRecipient:n.gatewayFeeRecipient}:{},feeCurrency:n.feeCurrency})}}}),transaction:bi({format(e){if(e.type==="0x7e")return{isSystemTx:e.isSystemTx,mint:e.mint?q(e.mint):void 0,sourceHash:e.sourceHash,type:"deposit"};const t={feeCurrency:e.feeCurrency};return e.type==="0x7b"?t.type="cip64":(e.type==="0x7c"&&(t.type="cip42"),t.gatewayFee=e.gatewayFee?q(e.gatewayFee):null,t.gatewayFeeRecipient=e.gatewayFeeRecipient),t}}),transactionRequest:Bp({format(e){const t={};return e.feeCurrency&&(t.feeCurrency=e.feeCurrency),N0(e)&&(t.type="0x7b"),t}})};function k3(e,t){return N0(e)?C3(e,t):$0(e,t)}const v3={transaction:k3};function C3(e,t){A3(e);const{chainId:r,gas:n,nonce:s,to:a,value:o,maxFeePerGas:i,maxPriorityFeePerGas:c,accessList:u,feeCurrency:d,data:p}=e,f=[j(r),s?j(s):"0x",c?j(c):"0x",i?j(i):"0x",n?j(n):"0x",a??"0x",o?j(o):"0x",p??"0x",$n(u),d,...gr(e,t)];return ve(["0x7b",je(f)])}const T3=Bn;function A3(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:a,feeCurrency:o}=e;if(t<=0)throw new br({chainId:t});if(a&&!V(a))throw new Z({address:a});if(n)throw new B("`gasPrice` is not a valid CIP-64 Transaction attribute.");if(_r(s)&&s>T3)throw new ht({maxFeePerGas:s});if(_r(r)&&_r(s)&&r>s)throw new ir({maxFeePerGas:s,maxPriorityFeePerGas:r});if(_r(o)&&!V(o))throw new B("`feeCurrency` MUST be a token address for CIP-64 transactions.");if(O0(o))throw new B("`feeCurrency` must be provided for CIP-64 transactions.")}const yn={blockTime:1e3,contracts:F0,formatters:E3,serializers:v3,fees:y3},S3=l({...yn,id:42220,name:"Celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://celoscan.io",apiUrl:"https://api.celoscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13112599}},testnet:!1}),es=17e3,B3=l({...yn,id:44787,name:"Alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"A-CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Alfajores Explorer",url:"https://celo-alfajores.blockscout.com",apiUrl:"https://celo-alfajores.blockscout.com/api"}},contracts:{...yn.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:14569001},portal:{[es]:{address:"0x82527353927d8D069b3B452904c942dA149BA381",blockCreated:2411324}},disputeGameFactory:{[es]:{address:"0xE28AAdcd9883746c0e5068F58f9ea06027b214cb",blockCreated:2411324}},l2OutputOracle:{[es]:{address:"0x4a2635e9e4f6e45817b1D402ac4904c1d1752438",blockCreated:2411324}},l1StandardBridge:{[es]:{address:"0xD1B0E0581973c9eB7f886967A606b9441A897037",blockCreated:2411324}}},testnet:!0}),La=11155111,U3=l({...yn,id:11142220,name:"Celo Sepolia Testnet",nativeCurrency:{decimals:18,name:"CELO",symbol:"S-CELO"},rpcUrls:{default:{http:["https://forno.celo-sepolia.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Sepolia Explorer",url:"https://celo-sepolia.blockscout.com/",apiUrl:"https://celo-sepolia.blockscout.com/api"}},contracts:{...yn.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1},portal:{[La]:{address:"0x44ae3d41a335a7d05eb533029917aad35662dcc2",blockCreated:8825790}},disputeGameFactory:{[La]:{address:"0x57c45d82d1a995f1e135b8d7edc0a6bb5211cfaa",blockCreated:8825790}},l1StandardBridge:{[La]:{address:"0xec18a3c30131a0db4246e785355fbc16e2eaf408",blockCreated:8825790}}},testnet:!0}),P3=l({id:5858,name:"Chang Chain Foundation Mainnet",nativeCurrency:{decimals:18,name:"CTH",symbol:"CTH"},rpcUrls:{default:{http:["https://rpc.cthscan.com"]}},blockExplorers:{default:{name:"Chang Chain explorer",url:"https://cthscan.com"}}}),I3=l({id:88888,name:"Chiliz Chain",network:"chiliz-chain",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://rpc.chiliz.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"https://scan.chiliz.com",apiUrl:"https://scan.chiliz.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:8080847}}}),F3=l({id:2882,name:"Chips Network",network:"CHIPS",nativeCurrency:{decimals:18,name:"IOTA",symbol:"IOTA"},rpcUrls:{default:{http:["https://node.chips.ooo/wasp/api/v1/chains/iota1pp3d3mnap3ufmgqnjsnw344sqmf5svjh26y2khnmc89sv6788y3r207a8fn/evm"]}}}),$3=l({id:5115,name:"Citrea Testnet",nativeCurrency:{name:"cBTC",symbol:"cBTC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.citrea.xyz"]}},blockExplorers:{default:{name:"Citrea Explorer",url:"https://explorer.testnet.citrea.xyz",apiUrl:"https://explorer.testnet.citrea.xyz/api"}},testnet:!0}),M3=l({id:61,name:"Ethereum Classic",nativeCurrency:{decimals:18,name:"ETC",symbol:"ETC"},rpcUrls:{default:{http:["https://etc.rivet.link"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.com/etc/mainnet"}}}),z3=l({id:112,name:"Coinbit Mainnet",nativeCurrency:{name:"GIDR",symbol:"GIDR",decimals:18},rpcUrls:{default:{http:["https://coinbit-rpc-mainnet.chain.sbcrypto.app"]}},blockExplorers:{default:{name:"Coinbit Explorer",url:"https://coinbit-explorer.chain.sbcrypto.app"}},testnet:!1}),O3=l({id:52,name:"CoinEx Mainnet",nativeCurrency:{name:"cet",symbol:"cet",decimals:18},rpcUrls:{default:{http:["https://rpc.coinex.net"]}},blockExplorers:{default:{name:"CoinEx Explorer",url:"https://www.coinex.net"}},testnet:!1}),N3=l({id:1030,name:"Conflux eSpace",nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evm.confluxrpc.com"],webSocket:["wss://evm.confluxrpc.com/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evm.confluxscan.org"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:68602935}}}),R3=l({id:71,name:"Conflux eSpace Testnet",network:"cfx-espace-testnet",testnet:!0,nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evmtestnet.confluxrpc.com"],webSocket:["wss://evmtestnet.confluxrpc.com/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evmtestnet.confluxscan.org"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:117499050}}}),D3=l({id:1116,name:"Core Dao",nativeCurrency:{decimals:18,name:"Core",symbol:"CORE"},rpcUrls:{default:{http:["https://rpc.coredao.org"]}},blockExplorers:{default:{name:"CoreDao",url:"https://scan.coredao.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:11907934}},testnet:!1}),_3=l({id:1115,name:"Core Testnet",nativeCurrency:{decimals:18,name:"tCore",symbol:"TCORE"},rpcUrls:{default:{http:["https://rpc.test.btcs.network"]}},blockExplorers:{default:{name:"Core Testnet",url:"https://scan.test.btcs.network",apiUrl:"https://api.test.btcs.network/api"}},contracts:{multicall3:{address:"0xCcddF20A1932537123C2E48Bd8e00b108B8f7569",blockCreated:29350509}},testnet:!0}),L3=l({id:1114,name:"Core Testnet2",nativeCurrency:{decimals:18,name:"tCore2",symbol:"TCORE2"},rpcUrls:{default:{http:["https://rpc.test2.btcs.network"]}},blockExplorers:{default:{name:"Core Testnet2",url:"https://scan.test2.btcs.network",apiUrl:"https://api.test2.btcs.network/api"}},contracts:{multicall3:{address:"0x3CB285ff3Cd5C7C7e570b1E7DE3De17A0f985e56",blockCreated:3838600}},testnet:!0}),H3=1,j3=l({id:21e6,name:"Corn",nativeCurrency:{decimals:18,name:"Bitcorn",symbol:"BTCN"},rpcUrls:{default:{http:["https://21000000.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Corn Explorer",url:"https://cornscan.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/21000000/etherscan/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3228}},sourceId:H3}),G3=11155111,q3=l({id:21000001,name:"Corn Testnet",nativeCurrency:{decimals:18,name:"Bitcorn",symbol:"BTCN"},rpcUrls:{default:{http:["https://21000001.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Corn Testnet Explorer",url:"https://testnet.cornscan.io",apiUrl:"https://api.routescan.io/v2/network/testnet/evm/21000001/etherscan/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4886}},testnet:!0,sourceId:G3}),V3=l({id:44,name:"Crab Network",nativeCurrency:{decimals:18,name:"Crab Network Native Token",symbol:"CRAB"},rpcUrls:{default:{http:["https://crab-rpc.darwinia.network"],webSocket:["wss://crab-rpc.darwinia.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://crab-scan.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3032593}}}),K3=l({id:66665,name:"Creator",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.creatorchain.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.creatorchain.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},testnet:!0}),W3=l({id:102032,name:"Creditcoin Devnet",nativeCurrency:{name:"Devnet CTC",symbol:"devCTC",decimals:18},rpcUrls:{default:{http:["https://rpc.cc3-devnet.creditcoin.network"],webSocket:["wss://rpc.cc3-devnet.creditcoin.network/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://creditcoin-devnet.blockscout.com",apiUrl:"https://creditcoin3-dev.subscan.io"}},testnet:!0}),Z3=l({id:102030,name:"Creditcoin",nativeCurrency:{name:"Creditcoin",symbol:"CTC",decimals:18},rpcUrls:{default:{http:["https://mainnet3.creditcoin.network"],webSocket:["wss://mainnet3.creditcoin.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://creditcoin.blockscout.com",apiUrl:"https://creditcoin.blockscout.com/api"}},testnet:!1}),X3=l({id:102031,name:"Creditcoin Testnet",nativeCurrency:{name:"Creditcoin Testnet",symbol:"tCTC",decimals:18},rpcUrls:{default:{http:["https://rpc.cc3-testnet.creditcoin.network"],webSocket:["wss://rpc.cc3-testnet.creditcoin.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://creditcoin-testnet.blockscout.com",apiUrl:"https://creditcoin-testnet.blockscout.com/api"}},testnet:!0}),J3=l({id:25,name:"Cronos Mainnet",nativeCurrency:{decimals:18,name:"Cronos",symbol:"CRO"},rpcUrls:{default:{http:["https://evm.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer",url:"https://explorer.cronos.org",apiUrl:"https://explorer-api.cronos.org/mainnet/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1963112}}}),Y3=l({id:338,name:"Cronos Testnet",nativeCurrency:{decimals:18,name:"CRO",symbol:"tCRO"},rpcUrls:{default:{http:["https://evm-t3.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer (Testnet)",url:"https://explorer.cronos.org/testnet"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:10191251}},testnet:!0}),Q3=l({id:388,name:"Cronos zkEVM Mainnet",nativeCurrency:{decimals:18,name:"Cronos zkEVM CRO",symbol:"zkCRO"},rpcUrls:{default:{http:["https://mainnet.zkevm.cronos.org"]}},blockExplorers:{default:{name:"Cronos zkEVM (Mainnet) Chain Explorer",url:"https://explorer.zkevm.cronos.org"}},contracts:{multicall3:{address:"0x06f4487d7c4a5983d2660db965cc6d2565e4cfaa",blockCreated:72}}}),eg=l({id:282,name:"Cronos zkEVM Testnet",nativeCurrency:{decimals:18,name:"Cronos zkEVM Test Coin",symbol:"zkTCRO"},rpcUrls:{default:{http:["https://testnet.zkevm.cronos.org"]}},blockExplorers:{default:{name:"Cronos zkEVM Testnet Explorer",url:"https://explorer.zkevm.cronos.org/testnet"}},testnet:!0}),tg=l({id:3737,name:"Crossbell",nativeCurrency:{decimals:18,name:"CSB",symbol:"CSB"},rpcUrls:{default:{http:["https://rpc.crossbell.io"]}},blockExplorers:{default:{name:"CrossScan",url:"https://scan.crossbell.io",apiUrl:"https://scan.crossbell.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:38246031}}}),rg=l({id:4158,name:"CrossFi Mainnet",nativeCurrency:{decimals:18,name:"CrossFi",symbol:"XFI"},rpcUrls:{default:{http:["https://rpc.mainnet.ms"]}},blockExplorers:{default:{name:"CrossFi Blockchain Explorer",url:"https://xfiscan.com"}},testnet:!1}),ng=l({id:33111,name:"Curtis",nativeCurrency:{name:"ApeCoin",symbol:"APE",decimals:18},rpcUrls:{default:{http:["https://rpc.curtis.apechain.com"]}},blockExplorers:{default:{name:"Curtis Explorer",url:"https://explorer.curtis.apechain.com"}},testnet:!0}),sg=l({id:7560,name:"Cyber",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cyber.alt.technology"]}},blockExplorers:{default:{name:"Blockscout",url:"https://cyberscan.co",apiUrl:"https://cyberscan.co/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),ag=l({id:111557560,name:"Cyber Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cyber-testnet.alt.technology"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet.cyberscan.co",apiUrl:"https://testnet.cyberscan.co/api"}},contracts:{multicall3:{address:"0xffc391F0018269d4758AEA1a144772E8FB99545E",blockCreated:304545}},testnet:!0}),og=l({id:824,name:"Daily Network Mainnet",nativeCurrency:{decimals:18,name:"Daily",symbol:"DLY"},rpcUrls:{default:{http:["https://rpc.mainnet.dailycrypto.net"]}},blockExplorers:{default:{name:"Daily Mainnet Explorer",url:"https://explorer.mainnet.dailycrypto.net"}},testnet:!1}),ig=l({id:825,name:"Daily Network Testnet",nativeCurrency:{decimals:18,name:"Daily",symbol:"DLY"},rpcUrls:{default:{http:["https://rpc.testnet.dailycrypto.net"]}},blockExplorers:{default:{name:"Daily Testnet Explorer",url:"https://explorer.testnet.dailycrypto.net"}},testnet:!0}),cg=l({id:46,name:"Darwinia Network",nativeCurrency:{decimals:18,name:"RING",symbol:"RING"},rpcUrls:{default:{http:["https://rpc.darwinia.network"],webSocket:["wss://rpc.darwinia.network"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:69420}}}),lg=l({id:20240603,name:"DBK chain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.dbkchain.io"]}},blockExplorers:{default:{name:"DBK Chain Explorer",url:"https://scan.dbkchain.io"}},testnet:!1}),ug=l({...F,id:2716446429837e3,name:"Dchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://dchain-2716446429837000-1.jsonrpc.sagarpc.io"]}},blockExplorers:{default:{name:"Dchain Explorer",url:"https://dchain-2716446429837000-1.sagaexplorer.io",apiUrl:"https://api-dchain-2716446429837000-1.sagaexplorer.io/api"}},contracts:{...F.contracts}}),dg=l({...F,id:2713017997578e3,name:"Dchain Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://dchaintestnet-2713017997578000-1.jsonrpc.testnet.sagarpc.io"]}},blockExplorers:{default:{name:"Dchain Explorer",url:"https://dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io",apiUrl:"https://api-dchaintestnet-2713017997578000-1.testnet.sagaexplorer.io/api"}},contracts:{...F.contracts}}),pg=l({id:1130,network:"defichain-evm",name:"DeFiChain EVM Mainnet",nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},rpcUrls:{default:{http:["https://eth.mainnet.ocean.jellyfishsdk.com"]}},blockExplorers:{default:{name:"DeFiScan",url:"https://meta.defiscan.live"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:137852}}}),fg=l({id:1131,network:"defichain-evm-testnet",name:"DeFiChain EVM Testnet",nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},rpcUrls:{default:{http:["https://eth.testnet.ocean.jellyfishsdk.com"]}},blockExplorers:{default:{name:"DeFiScan",url:"https://meta.defiscan.live/?network=TestNet"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:156462}},testnet:!0}),mg=l({id:666666666,name:"Degen",nativeCurrency:{decimals:18,name:"Degen",symbol:"DEGEN"},rpcUrls:{default:{http:["https://rpc.degen.tips"],webSocket:["wss://rpc.degen.tips"]}},blockExplorers:{default:{name:"Degen Chain Explorer",url:"https://explorer.degen.tips",apiUrl:"https://explorer.degen.tips/api/v2"}}}),hg=l({id:53935,name:"DFK Chain",nativeCurrency:{decimals:18,name:"Jewel",symbol:"JEWEL"},rpcUrls:{default:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]}},blockExplorers:{default:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14790551}}}),bg=l({id:15,name:"Diode Prenet",nativeCurrency:{decimals:18,name:"DIODE",symbol:"DIODE"},rpcUrls:{default:{http:["https://prenet.diode.io:8443"],webSocket:["wss://prenet.diode.io:8443/ws"]}},blockExplorers:{default:{name:"Diode Explorer",url:"https://diode.io/prenet"}},testnet:!1}),yg=l({id:513100,name:"DisChain",nativeCurrency:{decimals:18,name:"DIS",symbol:"DIS"},rpcUrls:{default:{http:["https://rpc.dischain.xyz"]}},blockExplorers:{default:{name:"DisChain Explorer",url:"https://www.oklink.com/dis"}}}),xg=l({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}),gg=l({id:2e3,name:"Dogechain",nativeCurrency:{decimals:18,name:"Wrapped Dogecoin",symbol:"WDOGE"},rpcUrls:{default:{http:["https://rpc.dogechain.dog"]}},blockExplorers:{default:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog",apiUrl:"https://explorer.dogechain.dog/api"}},contracts:{multicall3:{address:"0x68a8609a60a008EFA633dfdec592c03B030cC508",blockCreated:25384031}}}),wg=l({id:97476,name:"Doma Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc-testnet.doma.xyz"]}},blockExplorers:{default:{name:"Doma Testnet Explorer",url:"https://explorer-testnet.doma.xyz"}},testnet:!0}),Eg=l({id:42026,name:"Donatuz",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.donatuz.com"]}},blockExplorers:{default:{name:"Donatuz Explorer",url:"https://explorer.donatuz.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}}}),kg=l({id:7979,name:"DOS Chain",nativeCurrency:{decimals:18,name:"DOS Chain",symbol:"DOS"},rpcUrls:{default:{http:["https://main.doschain.com"]}},blockExplorers:{default:{name:"DOS Chain Explorer",url:"https://doscan.io",apiUrl:"https://api.doscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:161908}}}),vg=l({id:3939,name:"DOS Chain Testnet",nativeCurrency:{decimals:18,name:"DOS Chain Testnet",symbol:"DOS"},rpcUrls:{default:{http:["https://test.doschain.com"]}},blockExplorers:{default:{name:"DOS Chain Testnet Explorer",url:"https://test.doscan.io",apiUrl:"https://api-test.doscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:69623}},testnet:!0}),Cg=l({id:23451,name:"DreyerX Mainnet",nativeCurrency:{name:"DreyerX",symbol:"DRX",decimals:18},rpcUrls:{default:{http:["https://rpc.dreyerx.com"]}},blockExplorers:{default:{name:"DreyerX Scan",url:"https://scan.dreyerx.com"}}}),Tg=l({id:23452,name:"DreyerX Testnet",nativeCurrency:{name:"DreyerX",symbol:"DRX",decimals:18},rpcUrls:{default:{http:["http://testnet-rpc.dreyerx.com"]}},blockExplorers:{default:{name:"DreyerX Testnet Scan",url:"https://testnet-scan.dreyerx.com"}},testnet:!0}),Ag=l({id:555888,name:"DustBoy IoT",nativeCurrency:{name:"Ether",symbol:"DST",decimals:18},rpcUrls:{default:{http:["https://dustboy-rpc.jibl2.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://dustboy.jibl2.com",apiUrl:"https://dustboy.jibl2.com/api"}},contracts:{multicall3:{address:"0xFFD34aa2C62B2D52E00A361e466C229788f4eD6a",blockCreated:526569}},testnet:!1}),Sg=l({id:1100,name:"Dymension",nativeCurrency:{name:"DYM",symbol:"DYM",decimals:18},rpcUrls:{default:{http:["https://dymension-evm-rpc.publicnode.com"],webSocket:["wss://dymension-evm-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Dym FYI",url:"https://dym.fyi"}},testnet:!1}),Bg=l({id:5424,name:"edeXa",nativeCurrency:{name:"edeXa",symbol:"EDX",decimals:18},rpcUrls:{default:{http:["https://rpc.edexa.network"]}},blockExplorers:{default:{name:"edeXa Explorer",url:"https://explorer.edexa.network",apiUrl:"https://explorer.edexa.network/api/v2"}}}),Ug=l({id:1995,name:"edeXa Testnet",nativeCurrency:{name:"edeXa",symbol:"tEDX",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.edexa.network"]}},blockExplorers:{default:{name:"edeXa Testnet Explorer",url:"https://explorer.testnet.edexa.network",apiUrl:"https://explorer.testnet.edexa.network/api/v2"}},testnet:!0}),Pg=l({id:2026,name:"Edgeless Network",nativeCurrency:{name:"Edgeless Wrapped ETH",symbol:"EwETH",decimals:18},rpcUrls:{default:{http:["https://rpc.edgeless.network/http"],webSocket:["wss://rpc.edgeless.network/ws"]}},blockExplorers:{default:{name:"Edgeless Explorer",url:"https://explorer.edgeless.network"}}}),Ig=l({id:202,name:"Edgeless Testnet",nativeCurrency:{name:"Edgeless Wrapped ETH",symbol:"EwETH",decimals:18},rpcUrls:{default:{http:["https://edgeless-testnet.rpc.caldera.xyz/http"],webSocket:["wss://edgeless-testnet.rpc.caldera.xyz/ws"]}},blockExplorers:{default:{name:"Edgeless Testnet Explorer",url:"https://testnet.explorer.edgeless.network"}}}),Fg=l({id:2021,name:"Edgeware EdgeEVM Mainnet",nativeCurrency:{decimals:18,name:"Edgeware",symbol:"EDG"},rpcUrls:{default:{http:["https://edgeware-evm.jelliedowl.net"]}},blockExplorers:{default:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",apiUrl:"https://edgscan.live/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18117872}}}),$g=l({id:2022,name:"Beresheet BereEVM Testnet",nativeCurrency:{decimals:18,name:"Testnet EDG",symbol:"tEDG"},rpcUrls:{default:{http:["https://beresheet-evm.jelliedowl.net"]}},blockExplorers:{default:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",apiUrl:"https://testnet.edgscan.live/api"}}}),Mg=l({id:41923,name:"EDU Chain",nativeCurrency:{decimals:18,name:"EDU",symbol:"EDU"},rpcUrls:{default:{http:["https://rpc.edu-chain.raas.gelato.cloud"]}},blockExplorers:{default:{name:"EDU Chain Explorer",url:"https://educhain.blockscout.com/"}},testnet:!1}),zg=l({id:656476,name:"EDU Chain Testnet",nativeCurrency:{decimals:18,name:"EDU",symbol:"EDU"},rpcUrls:{default:{http:["https://rpc.open-campus-codex.gelato.digital/"],webSocket:["wss://ws.open-campus-codex.gelato.digital"]}},blockExplorers:{default:{name:"EDU Chain Testnet Explorer",url:"https://opencampus-codex.blockscout.com",apiUrl:"https://opencampus-codex.blockscout.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:15514133}},testnet:!0}),Og=l({id:1994,name:"Ekta",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{default:{http:["https://main.ekta.io"]}},blockExplorers:{default:{name:"Ektascan",url:"https://ektascan.io",apiUrl:"https://ektascan.io/api"}}}),Ng=l({id:1004,name:"Ekta Testnet",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{default:{http:["https://test.ekta.io:8545"]}},blockExplorers:{default:{name:"Test Ektascan",url:"https://test.ektascan.io",apiUrl:"https://test.ektascan.io/api"}},testnet:!0}),Rg=l({id:20,name:"Elastos Smart Chain",nativeCurrency:{name:"ELA",symbol:"ELA",decimals:18},rpcUrls:{default:{http:["https://api2.elastos.io/eth"]}},blockExplorers:{default:{name:"Elastos Explorer",url:"https://esc.elastos.io"}},testnet:!1}),Dg=l({id:21,name:"Elastos Smart Chain Testnet",nativeCurrency:{name:"tELA",symbol:"tELA",decimals:18},rpcUrls:{default:{http:["https://api-testnet.elastos.io/eth"]}},blockExplorers:{default:{name:"Elastos Explorer",url:"https://esc-testnet.elastos.io"}},testnet:!0}),_g=l({id:52014,name:"Electroneum Mainnet",nativeCurrency:{name:"ETN",symbol:"ETN",decimals:18},rpcUrls:{default:{http:["https://rpc.electroneum.com"]}},blockExplorers:{default:{name:"Electroneum Block Explorer",url:"https://blockexplorer.electroneum.com"}},testnet:!1}),Lg=l({id:5201420,name:"Electroneum Testnet",nativeCurrency:{name:"ETN",symbol:"ETN",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.electroneum.com"]}},blockExplorers:{default:{name:"Electroneum Block Explorer",url:"https://blockexplorer.thesecurityteam.rocks"}},testnet:!0}),Hg=l({...F,id:1338,name:"Elysium Testnet",nativeCurrency:{decimals:18,name:"LAVA",symbol:"LAVA"},rpcUrls:{default:{http:["https://elysium-test-rpc.vulcanforged.com"]}},blockExplorers:{default:{name:"Elysium testnet explorer",url:"https://elysium-explorer.vulcanforged.com"}},testnet:!0}),jg=l({id:246,name:"Energy Mainnet",nativeCurrency:{name:"EWT",symbol:"EWT",decimals:18},rpcUrls:{default:{http:["https://rpc.energyweb.org"]}},blockExplorers:{default:{name:"EnergyWeb Explorer",url:"https://explorer.energyweb.org"}},testnet:!1}),Gg=l({id:173,name:"ENI Mainnet",nativeCurrency:{decimals:18,name:"ENI",symbol:"ENI"},rpcUrls:{default:{http:["https://rpc.eniac.network"]}},blockExplorers:{default:{name:"ENI Explorer",url:"https://scan.eniac.network"}},testnet:!1}),qg=l({id:6912115,name:"ENI Testnet",nativeCurrency:{decimals:18,name:"ENI Testnet Token",symbol:"ENI"},rpcUrls:{default:{http:["https://rpc-testnet.eniac.network"]}},blockExplorers:{default:{name:"ENI Testnet Explorer",url:"https://scan-testnet.eniac.network"}},testnet:!0}),Vg=l({id:119,name:"ENULS Mainnet",nativeCurrency:{decimals:18,name:"NULS",symbol:"NULS"},rpcUrls:{default:{http:["https://evmapi2.nuls.io"]}},blockExplorers:{default:{name:"ENULS Explorer",url:"https://evmscan.nuls.io"}},testnet:!1}),Kg=l({id:7332,name:"Horizen EON",nativeCurrency:{decimals:18,name:"ZEN",symbol:"ZEN"},rpcUrls:{default:{http:["https://eon-rpc.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"EON Explorer",url:"https://eon-explorer.horizenlabs.io"}},contracts:{}}),Wg=l({id:17777,name:"EOS EVM",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.evm.eosnetwork.com"]}},blockExplorers:{default:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com",apiUrl:"https://explorer.evm.eosnetwork.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7943933}}}),Zg=l({id:15557,name:"EOS EVM Testnet",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.testnet.evm.eosnetwork.com"]}},blockExplorers:{default:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com",apiUrl:"https://explorer.testnet.evm.eosnetwork.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9067940}},testnet:!0}),Xg=l({id:140,name:"Eteria",nativeCurrency:{name:"Eteria",symbol:"ERA",decimals:18},rpcUrls:{default:{http:["https://mainnet.eteria.io/v1"]}},blockExplorers:{default:{name:"Eteria Explorer",url:"https://explorer.eteria.io",apiUrl:"https://explorer.eteria.io/api"}}}),Jg=l({id:42793,name:"Etherlink",blockTime:4830,nativeCurrency:{decimals:18,name:"Tez",symbol:"XTZ"},rpcUrls:{default:{http:["https://node.mainnet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink",url:"https://explorer.etherlink.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:33899}}}),Yg=l({id:127823,name:"Etherlink Shadownet Testnet",nativeCurrency:{decimals:18,name:"tez",symbol:"XTZ"},rpcUrls:{default:{http:["https://node.shadownet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink Shadownet Testnet Explorer",url:"https://shadownet.explorer.etherlink.com"}},testnet:!0}),Qg=l({id:128123,name:"Etherlink Testnet",nativeCurrency:{decimals:18,name:"Tez",symbol:"XTZ"},rpcUrls:{default:{http:["https://node.ghostnet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink Testnet",url:"https://testnet.explorer.etherlink.com"}},testnet:!0}),ew=l({id:183,name:"Ethernity",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.ethernitychain.io"]}},blockExplorers:{default:{name:"Ethernity Explorer",url:"https://ernscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!1}),tw=l({id:20256789,name:"ETP Mainnet",nativeCurrency:{decimals:18,name:"ETP Chain Native Token",symbol:"ETP"},rpcUrls:{default:{http:["https://rpc.etpscan.xyz"]}},blockExplorers:{default:{name:"ETP Scan",url:"https://etpscan.xyz"}}}),rw=l({id:9001,name:"Evmos",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.org:8545"]}},blockExplorers:{default:{name:"Evmos Block Explorer",url:"https://escan.live"}}}),nw=l({id:9e3,name:"Evmos Testnet",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.dev:8545"]}},blockExplorers:{default:{name:"Evmos Testnet Block Explorer",url:"https://evm.evmos.dev/"}}}),sw=l({id:22052002,name:"Excelon Mainnet",network:"XLON",nativeCurrency:{decimals:18,name:"Excelon",symbol:"xlon"},rpcUrls:{default:{http:["https://edgewallet1.xlon.org"]}},blockExplorers:{default:{name:"Excelon explorer",url:"https://explorer.excelon.io"}}}),aw=l({id:2,name:"Expanse Network",nativeCurrency:{decimals:18,name:"EXP",symbol:"EXP"},rpcUrls:{default:{http:["https://node.expanse.tech"]}},blockExplorers:{default:{name:"Expanse Explorer",url:"https://explorer.expanse.tech"}},testnet:!1}),ow=l({id:7200,name:"exSat Network",nativeCurrency:{decimals:18,name:"BTC",symbol:"BTC"},rpcUrls:{default:{http:["https://evm.exsat.network"]}},blockExplorers:{default:{name:"exSat Explorer",url:"https://scan.exsat.network",apiUrl:"https://scan.exsat.network/api"}}}),iw=l({id:839999,name:"exSat Testnet",nativeCurrency:{decimals:18,name:"BTC",symbol:"BTC"},rpcUrls:{default:{http:["https://evm-tst3.exsat.network"]}},blockExplorers:{default:{name:"exSat Explorer",url:"https://scan-testnet.exsat.network",apiUrl:"https://scan-testnet.exsat.network/api"}}}),cw=l({id:250,name:"Fantom",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://250.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"FTMScan",url:"https://ftmscan.com",apiUrl:"https://api.ftmscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:33001987}}}),lw=l({id:64240,name:"Fantom Sonic Open Testnet",network:"fantom-sonic-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpcapi.sonic.fantom.network"]}},blockExplorers:{default:{name:"Fantom Sonic Open Testnet Explorer",url:"https://public-sonic.fantom.network"}},testnet:!0}),uw=l({id:4002,name:"Fantom Testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.testnet.fantom.network"]}},blockExplorers:{default:{name:"FTMScan",url:"https://testnet.ftmscan.com",apiUrl:"https://testnet.ftmscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8328688}},testnet:!0}),dw=l({id:12306,name:"Fibo Chain",nativeCurrency:{decimals:18,name:"fibo",symbol:"FIBO"},rpcUrls:{default:{http:["https://network.hzroc.art"]}},blockExplorers:{default:{name:"FiboScan",url:"https://scan.fibochain.org"}}}),pw=l({id:314,name:"Filecoin Mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3328594}}}),fw=l({id:314159,name:"Filecoin Calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}},testnet:!0}),mw=l({id:3141,name:"Filecoin Hyperspace",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://hyperspace.filfox.info/en"}},testnet:!0}),hw=l({id:253368190,name:"Flame",network:"flame",nativeCurrency:{symbol:"TIA",name:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.flame.astria.org"],webSocket:["wss://ws.flame.astria.org"]}},blockExplorers:{default:{name:"Flame Explorer",url:"https://explorer.flame.astria.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:6829148}}}),bw=l({id:14,name:"Flare Mainnet",nativeCurrency:{decimals:18,name:"Flare",symbol:"FLR"},rpcUrls:{default:{http:["https://flare-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Flare Explorer",url:"https://flare-explorer.flare.network",apiUrl:"https://flare-explorer.flare.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3002461}}}),yw=l({id:114,name:"Flare Testnet Coston2",nativeCurrency:{decimals:18,name:"Coston2 Flare",symbol:"C2FLR"},rpcUrls:{default:{http:["https://coston2-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston2 Explorer",url:"https://coston2-explorer.flare.network",apiUrl:"https://coston2-explorer.flare.network/api"}},testnet:!0}),xw=l({id:747,name:"Flow EVM Mainnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://mainnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Mainnet Explorer",url:"https://evm.flowscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6205}},blockTime:800}),gw=l({id:646,name:"Flow EVM Previewnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://previewnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Previewnet Explorer",url:"https://previewnet.flowdiver.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6205}}}),ww=l({id:545,name:"Flow EVM Testnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://testnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Flow Diver",url:"https://evm-testnet.flowscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:137518}},testnet:!0,blockTime:800}),Ew=l({id:9999999,name:"Fluence",nativeCurrency:{name:"FLT",symbol:"FLT",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.fluence.dev"],webSocket:["wss://ws.mainnet.fluence.dev"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.mainnet.fluence.dev",apiUrl:"https://blockscout.mainnet.fluence.dev/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:207583}}}),kw=l({id:123420000220,name:"Fluence Stage",nativeCurrency:{name:"tFLT",symbol:"tFLT",decimals:18},rpcUrls:{default:{http:["https://rpc.stage.fluence.dev"],webSocket:["wss://ws.stage.fluence.dev"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.stage.fluence.dev",apiUrl:"https://blockscout.stage.fluence.dev/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:83227}},testnet:!0}),vw=l({id:52164803,name:"Fluence Testnet",nativeCurrency:{name:"tFLT",symbol:"tFLT",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.fluence.dev"],webSocket:["wss://ws.testnet.fluence.dev"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.testnet.fluence.dev",apiUrl:"https://blockscout.testnet.fluence.dev/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96424}},testnet:!0}),Cw=l({id:20993,name:"Fluent Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.dev.gblend.xyz"]}},blockExplorers:{default:{name:"Fluent Explorer",url:"https://blockscout.dev.gblend.xyz"}},testnet:!0}),Gt=1,Tw=l({id:478,name:"Form Network",nativeCurrency:{decimals:18,name:"Ethereum",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.form.network/http"],webSocket:["wss://rpc.form.network/ws"]}},blockExplorers:{default:{name:"Form Explorer",url:"https://explorer.form.network"}},contracts:{...F.contracts,addressManager:{[Gt]:{address:"0x15c249E46A2F924C2dB3A1560CF86729bAD1f07B"}},l1CrossDomainMessenger:{[Gt]:{address:"0xF333158DCCad1dF6C3F0a3aEe8BC31fA94d9eD5c"}},l2OutputOracle:{[Gt]:{address:"0x4ccAAF69F41c5810cA875183648B577CaCf1F67E"}},portal:{[Gt]:{address:"0x4E259Ee5F4136408908160dD32295A5031Fa426F"}},l1StandardBridge:{[Gt]:{address:"0xdc20aA63D3DE59574E065957190D8f24e0F7B8Ba"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},sourceId:Gt}),Aw=l({id:984122,name:"Forma",network:"forma",nativeCurrency:{symbol:"TIA",name:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.forma.art"],webSocket:["wss://ws.forma.art"]}},blockExplorers:{default:{name:"Forma Explorer",url:"https://explorer.forma.art"}},contracts:{multicall3:{address:"0xd53C6FFB123F7349A32980F87faeD8FfDc9ef079",blockCreated:252705}}}),qt=11155111,Sw=l({id:132902,name:"Form Testnet",nativeCurrency:{decimals:18,name:"Ethereum",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia-rpc.form.network/http"],webSocket:["wss://sepolia-rpc.form.network/ws"]}},blockExplorers:{default:{name:"Form Testnet Explorer",url:"https://sepolia-explorer.form.network"}},contracts:{...F.contracts,addressManager:{[qt]:{address:"0xd5C38fa934f7fd7477D4800F4f38a1c5BFdF1373"}},l1CrossDomainMessenger:{[qt]:{address:"0x37A68565c4BE9700b3E3Ec60cC4416cAC3052FAa"}},l2OutputOracle:{[qt]:{address:"0x9eA2239E65a59EC9C7F1ED4C116dD58Da71Fc1e2"}},portal:{[qt]:{address:"0x60377e3cE15dF4CCA24c4beF076b60314240b032"}},l1StandardBridge:{[qt]:{address:"0xD4531f633942b2725896F47cD2aFd260b44Ab1F7"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},testnet:!0,sourceId:qt}),Bw=l({id:80931,name:"Forta Chain",nativeCurrency:{symbol:"FORT",name:"FORT",decimals:18},rpcUrls:{default:{http:["https://rpc-forta-chain-8gj1qndmfc.t.conduit.xyz"]}},blockExplorers:{default:{name:"Forta Explorer",url:"https://explorer.forta.org"}}}),Uw=l({id:31337,name:"Foundry",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}}),ts=1,Pw=l({...F,id:252,name:"Fraxtal",nativeCurrency:{name:"Frax",symbol:"FRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.frax.com"]}},blockExplorers:{default:{name:"fraxscan",url:"https://fraxscan.com",apiUrl:"https://api.fraxscan.com/api"}},contracts:{...F.contracts,l2OutputOracle:{[ts]:{address:"0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[ts]:{address:"0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D",blockCreated:19135323}},l1StandardBridge:{[ts]:{address:"0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2",blockCreated:19135323}}},sourceId:ts}),rs=17e3,Iw=l({...F,id:2522,name:"Fraxtal Testnet",nativeCurrency:{name:"Frax",symbol:"FRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.frax.com"]}},blockExplorers:{default:{name:"fraxscan testnet",url:"https://holesky.fraxscan.com",apiUrl:"https://api-holesky.fraxscan.com/api"}},contracts:{...F.contracts,l2OutputOracle:{[rs]:{address:"0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[rs]:{address:"0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d",blockCreated:318416}},l1StandardBridge:{[rs]:{address:"0x0BaafC217162f64930909aD9f2B27125121d6332",blockCreated:318416}}},sourceId:rs}),Fw=1,$w=l({...F,id:33979,name:"Funki",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.funkichain.com"]}},blockExplorers:{default:{name:"Funki Mainnet Explorer",url:"https://funkiscan.io"}},contracts:{...F.contracts},sourceId:Fw}),Mw=11155111,zw=l({...F,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:{...F.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204}},sourceId:Mw}),Ow=l({id:122,name:"Fuse",nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},rpcUrls:{default:{http:["https://rpc.fuse.io"]}},blockExplorers:{default:{name:"Fuse Explorer",url:"https://explorer.fuse.io",apiUrl:"https://explorer.fuse.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:16146628}}}),Nw=l({id:123,name:"Fuse Sparknet",nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},rpcUrls:{default:{http:["https://rpc.fusespark.io"]}},blockExplorers:{default:{name:"Sparkent Explorer",url:"https://explorer.fusespark.io",apiUrl:"https://explorer.fusespark.io/api"}}}),Rw=l({id:32659,name:"Fusion Mainnet",nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},rpcUrls:{default:{http:["https://mainnet.fusionnetwork.io"],webSocket:["wss://mainnet.fusionnetwork.io"]}},blockExplorers:{default:{name:"FSNscan",url:"https://fsnscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10441605}},testnet:!1}),Dw=l({id:46688,name:"Fusion Testnet",nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},rpcUrls:{default:{http:["https://testnet.fusionnetwork.io"],webSocket:["wss://testnet.fusionnetwork.io"]}},blockExplorers:{default:{name:"FSNscan",url:"https://testnet.fsnscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10428309}},testnet:!0}),ns=17e3,_w=l({...F,name:"Garnet Testnet",testnet:!0,id:17069,sourceId:ns,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.garnetchain.com"],webSocket:["wss://rpc.garnetchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.garnetchain.com"}},contracts:{...F.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[ns]:{address:"0x57ee40586fbE286AfC75E67cb69511A6D9aF5909",blockCreated:1274684}},l2OutputOracle:{[ns]:{address:"0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B",blockCreated:1274684}},l1StandardBridge:{[ns]:{address:"0x09bcDd311FE398F80a78BE37E489f5D440DB95DE",blockCreated:1274684}}}}),Lw=l({id:86,name:"GateChain Mainnet",nativeCurrency:{name:"GateChainToken",symbol:"GT",decimals:18},rpcUrls:{default:{http:["https://evm.nodeinfo.cc"],webSocket:["wss://evm-ws.gatenode.cc"]}},blockExplorers:{default:{name:"Gate Scan",url:"https://www.gatescan.org",apiUrl:"https://gatescan.org/api"}},testnet:!1}),Hw=l({id:63157,name:"Geist Mainnet",nativeCurrency:{decimals:18,name:"Aavegotchi GHST Token",symbol:"GHST"},rpcUrls:{default:{http:["https://geist-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Blockscout",url:"https://geist-mainnet.explorer.alchemy.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:660735}}}),jw=l({id:16507,name:"Genesys Mainnet",nativeCurrency:{decimals:18,name:"GSYS",symbol:"GSYS"},rpcUrls:{default:{http:["https://rpc.genesys.network"]}},blockExplorers:{default:{name:"Genesys Explorer",url:"https://gchainexplorer.genesys.network"}},testnet:!1}),ss=11155111,Gw=l({...F,id:91342,network:"giwa-sepolia",name:"GIWA Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://sepolia-rpc.giwa.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-explorer.giwa.io",apiUrl:"https://sepolia-explorer.giwa.io/api"}},contracts:{...F.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},disputeGameFactory:{[ss]:{address:"0x37347caB2afaa49B776372279143D71ad1f354F6"}},portal:{[ss]:{address:"0x956962C34687A954e611A83619ABaA37Ce6bC78A"}},l1StandardBridge:{[ss]:{address:"0x77b2ffc0F57598cAe1DB76cb398059cF5d10A7E7"}}},testnet:!0,sourceId:ss}),qw=l({id:251,name:"Glide L1 Protocol XP",nativeCurrency:{name:"GLXP",symbol:"GLXP",decimals:18},rpcUrls:{default:{http:["https://rpc-api.glideprotocol.xyz/l1-rpc"],webSocket:["wss://rpc-api.glideprotocol.xyz/l1-rpc"]}},blockExplorers:{default:{name:"Glide Protocol Explore",url:"https://blockchain-explorer.glideprotocol.xyz"}},testnet:!1}),Vw=l({id:253,name:"Glide L2 Protocol XP",nativeCurrency:{name:"GLXP",symbol:"GLXP",decimals:18},rpcUrls:{default:{http:["https://rpc-api.glideprotocol.xyz/l2-rpc"],webSocket:["wss://rpc-api.glideprotocol.xyz/l2-rpc"]}},blockExplorers:{default:{name:"Glide Protocol Explore",url:"https://blockchain-explorer.glideprotocol.xyz"}},testnet:!1}),Kw=l({id:100,name:"Gnosis",nativeCurrency:{decimals:18,name:"xDAI",symbol:"XDAI"},blockTime:5e3,rpcUrls:{default:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]}},blockExplorers:{default:{name:"Gnosisscan",url:"https://gnosisscan.io",apiUrl:"https://api.gnosisscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:21022491}}}),Ww=l({id:10200,name:"Gnosis Chiado",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},blockTime:5e3,rpcUrls:{default:{http:["https://rpc.chiadochain.net"],webSocket:["wss://rpc.chiadochain.net/wss"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.chiadochain.net",apiUrl:"https://blockscout.chiadochain.net/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4967313}},testnet:!0}),Zw=l({id:2345,name:"GOAT",nativeCurrency:{decimals:18,name:"Bitcoin",symbol:"BTC"},rpcUrls:{default:{http:["https://rpc.goat.network"]}},blockExplorers:{default:{name:"Goat Explorer",url:"https://explorer.goat.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),Xw=l({id:1663,name:"Horizen Gobi Testnet",nativeCurrency:{decimals:18,name:"Test ZEN",symbol:"tZEN"},rpcUrls:{default:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"Gobi Explorer",url:"https://gobi-explorer.horizen.io"}},contracts:{},testnet:!0}),Jw=l({id:60,name:"GoChain",nativeCurrency:{decimals:18,name:"GO",symbol:"GO"},rpcUrls:{default:{http:["https://rpc.gochain.io"]}},blockExplorers:{default:{name:"GoChain Explorer",url:"https://explorer.gochain.io"}},testnet:!1}),Yw=l({id:71402,name:"Godwoken Mainnet",nativeCurrency:{decimals:18,name:"pCKB",symbol:"pCKB"},rpcUrls:{default:{http:["https://v1.mainnet.godwoken.io/rpc"]}},blockExplorers:{default:{name:"GW Scan",url:"https://v1.gwscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:15034}},testnet:!1}),Qw=l({id:5,name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://5.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.etherscan.io",apiUrl:"https://api-goerli.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xfc4AC75C46C914aF5892d6d3eFFcebD7917293F1",blockCreated:10339206},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),eE=l({id:440017,name:"Graphite Network",nativeCurrency:{name:"Graphite",symbol:"@G",decimals:18},rpcUrls:{default:{http:["https://anon-entrypoint-1.atgraphite.com"],webSocket:["wss://ws-anon-entrypoint-1.atgraphite.com"]}},blockExplorers:{default:{name:"Graphite Spectre",url:"https://main.atgraphite.com",apiUrl:"https://api.main.atgraphite.com/api"}},testnet:!1}),tE=l({id:54170,name:"Graphite Network Testnet",nativeCurrency:{name:"Graphite",symbol:"@G",decimals:18},rpcUrls:{default:{http:["https://anon-entrypoint-test-1.atgraphite.com"],webSocket:["wss://ws-anon-entrypoint-test-1.atgraphite.com"]}},blockExplorers:{default:{name:"Graphite Testnet Spectre",url:"https://test.atgraphite.com",apiUrl:"https://api.test.atgraphite.com/api"}},testnet:!0}),rE=l({id:1625,name:"Gravity Alpha Mainnet",nativeCurrency:{name:"G",symbol:"G",decimals:18},rpcUrls:{default:{http:["https://rpc.gravity.xyz"]}},blockExplorers:{default:{name:"Gravity Explorer",url:"https://explorer.gravity.xyz",apiUrl:"https://explorer.gravity.xyz/api"}},contracts:{multicall3:{address:"0xf8ac4BEB2F75d2cFFb588c63251347fdD629B92c",blockCreated:16851}}}),nE=l({id:43419,name:"Gunz Mainnet",nativeCurrency:{name:"GUN",symbol:"GUN",decimals:18},rpcUrls:{default:{http:["https://rpc.gunzchain.io/ext/bc/2M47TxWHGnhNtq6pM5zPXdATBtuqubxn5EPFgFmEawCQr9WFML/rpc"]}},blockExplorers:{default:{name:"Gunz Explorer",url:"https://gunzscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:70502}}}),sE=l({id:260,name:"Guru Network Mainnet",nativeCurrency:{name:"GURU Token",symbol:"GURU",decimals:18},rpcUrls:{default:{http:["https://rpc-main.gurunetwork.ai","https://rpc.gurunetwork.ai/archive/260"]}},blockExplorers:{default:{name:"Guruscan",url:"https://scan.gurunetwork.ai"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:271691}},testnet:!1}),aE=l({id:261,name:"Guru Network Testnet",nativeCurrency:{name:"tGURU Token",symbol:"tGURU",decimals:18},rpcUrls:{default:{http:["https://rpc-test.gurunetwork.ai","https://rpc.gurunetwork.ai/archive/261"]}},blockExplorers:{default:{name:"Guruscan",url:"https://sepolia.gurunetwork.ai"}},testnet:!0}),oE=l({id:5112,name:"Ham",nativeCurrency:{decimals:18,name:"Ham",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.ham.fun"],webSocket:["wss://rpc.ham.fun"]}},blockExplorers:{default:{name:"Ham Chain Explorer",url:"https://explorer.ham.fun",apiUrl:"https://explorer.ham.fun/api/v2"}}}),iE=l({id:216,name:"Happychain Testnet",nativeCurrency:{symbol:"HAPPY",name:"HAPPY",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.happy.tech/http"],webSocket:["wss://rpc.testnet.happy.tech/ws"]}},blockExplorers:{default:{name:"Happy Chain Testnet Explorer",url:"https://explorer.testnet.happy.tech"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1}},testnet:!0}),cE=l({id:11235,name:"HAQQ Mainnet",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLM"},rpcUrls:{default:{http:["https://rpc.eth.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.haqq.network",apiUrl:"https://explorer.haqq.network/api"}}}),lE=l({id:54211,name:"HAQQ Testedge 2",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLMT"},rpcUrls:{default:{http:["https://rpc.eth.testedge2.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",apiUrl:"https://explorer.testedge2.haqq.network/api"}}}),uE=l({id:31337,name:"Hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),dE=l({id:16666e5,name:"Harmony One",nativeCurrency:{name:"Harmony",symbol:"ONE",decimals:18},rpcUrls:{default:{http:["https://1666600000.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Harmony Explorer",url:"https://explorer.harmony.one"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:24185753}}}),pE=l({id:177,name:"HashKey Chain",nativeCurrency:{decimals:18,name:"HashKey EcoPoints",symbol:"HSK"},rpcUrls:{default:{http:["https://mainnet.hsk.xyz"]}},blockExplorers:{default:{name:"HashKey Chain Explorer",url:"https://hashkey.blockscout.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}}}),fE=l({id:133,name:"HashKey Chain Testnet",nativeCurrency:{decimals:18,name:"HashKey EcoPoints",symbol:"HSK"},rpcUrls:{default:{http:["https://testnet.hsk.xyz"]}},blockExplorers:{default:{name:"HashKey Chain Testnet explorer",url:"https://testnet-explorer.hsk.xyz"}},testnet:!0}),mE=l({id:1523903251,name:"Haust Network Testnet",nativeCurrency:{decimals:18,name:"HAUST",symbol:"HAUST"},rpcUrls:{default:{http:["https://rpc-testnet.haust.app"]}},blockExplorers:{default:{name:"Haust Network Testnet Explorer",url:"https://explorer-testnet.haust.app"}},testnet:!0}),hE=l({id:295,name:"Hedera Mainnet",network:"hedera-mainnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://mainnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/mainnet"}},testnet:!1}),bE=l({id:297,name:"Hedera Previewnet",network:"hedera-previewnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://previewnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/previewnet"}},testnet:!0}),yE=l({id:296,name:"Hedera Testnet",network:"hedera-testnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://testnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/testnet"}},testnet:!0}),xE=l({id:8668,name:"Hela Mainnet",nativeCurrency:{name:"HLUSD",symbol:"HLUSD",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.helachain.com"]}},blockExplorers:{default:{name:"Hela explorer",url:"https://mainnet-blockexplorer.helachain.com"}},testnet:!1}),gE=l({id:42e3,name:"Helios Testnet",network:"helios-testnet",nativeCurrency:{symbol:"HLS",name:"Helios",decimals:18},rpcUrls:{default:{http:["https://testnet1.helioschainlabs.org"]}},blockExplorers:{default:{name:"Helios Testnet Explorer",url:"https://explorer.helioschainlabs.org/"}},testnet:!0}),wE=l({id:43111,name:"Hemi",network:"Hemi",blockTime:12e3,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hemi.network/rpc"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.hemi.xyz"}},testnet:!1}),EE=l({id:743111,name:"Hemi Sepolia",network:"Hemi Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.rpc.hemi.network/rpc"]}},blockExplorers:{default:{name:"Hemi Sepolia explorer",url:"https://testnet.explorer.hemi.xyz"}},testnet:!0}),kE=l({id:17e3,name:"Holesky",nativeCurrency:{name:"Holesky Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://holesky.etherscan.io",apiUrl:"https://api-holesky.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:77},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:4295055}},testnet:!0}),vE=l({id:560048,name:"Hoodi",nativeCurrency:{name:"Hoodi Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hoodi.ethpandaops.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://hoodi.etherscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2589}},testnet:!0}),CE=l({id:269,name:"High Performance Blockchain",nativeCurrency:{name:"HPB",symbol:"HPB",decimals:18},rpcUrls:{default:{http:["https://hpbnode.com"]}},blockExplorers:{default:{name:"hpbScan",url:"https://hscan.org"}},testnet:!1}),TE=42161,AE=l({id:12323,name:"Huddle01 dRTC Chain",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://huddle01.calderachain.xyz/http"],webSocket:["wss://huddle01.calderachain.xyz/ws"]}},blockExplorers:{default:{name:"Huddle01 Caldera Explorer",url:"https://huddle01.calderaexplorer.xyz",apiUrl:"https://huddle01.calderaexplorer.xyz/api"}},sourceId:TE}),SE=421614,BE=l({id:2524852,name:"Huddle01 dRTC Chain Testnet",nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://huddle-testnet.rpc.caldera.xyz/http"],webSocket:["wss://huddle-testnet.rpc.caldera.xyz/ws"]}},blockExplorers:{default:{name:"Huddle01 Caldera Explorer",url:"https://huddle-testnet.explorer.caldera.xyz",apiUrl:"https://huddle-testnet.explorer.caldera.xyz/api"}},sourceId:SE}),UE=l({id:6985385,name:"Humanity",nativeCurrency:{name:"H",symbol:"H",decimals:18},rpcUrls:{default:{http:["https://humanity-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Humanity Mainnet Explorer",url:"https://humanity-mainnet.explorer.alchemy.com",apiUrl:"https://humanity-mainnet.explorer.alchemy.com/api"}},testnet:!1}),PE=l({id:7080969,name:"Humanity Testnet",nativeCurrency:{name:"tHP",symbol:"tHP",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.humanity.org"]}},blockExplorers:{default:{name:"Humanity Testnet Explorer",url:"https://humanity-testnet.explorer.alchemy.com",apiUrl:"https://humanity-testnet.explorer.alchemy.com/api"}},testnet:!0}),IE=l({id:5234,name:"Humanode",nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},rpcUrls:{default:{http:["https://explorer-rpc-http.mainnet.stages.humanode.io"],webSocket:["wss://explorer-rpc-ws.mainnet.stages.humanode.io"]}},blockExplorers:{default:{name:"Subscan",url:"https://humanode.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4413097}}}),FE=l({id:14853,name:"Humanode Testnet 5",nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},rpcUrls:{default:{http:["https://explorer-rpc-http.testnet5.stages.humanode.io"],webSocket:["wss://explorer-rpc-ws.testnet5.stages.humanode.io"]}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}}),$E=l({id:2911,name:"HYCHAIN",nativeCurrency:{name:"HYTOPIA",symbol:"TOPIA",decimals:18},rpcUrls:{default:{http:["https://rpc.hychain.com/http"]}},blockExplorers:{default:{name:"HYCHAIN Explorer",url:"https://explorer.hychain.com"}},testnet:!1}),ME=l({id:29112,name:"HYCHAIN Testnet",nativeCurrency:{name:"HYTOPIA",symbol:"TOPIA",decimals:18},rpcUrls:{default:{http:["https://rpc.hychain.com/http"]}},blockExplorers:{default:{name:"HYCHAIN Explorer",url:"https://testnet-rpc.hychain.com/http"}},testnet:!0}),al=l({id:999,name:"HyperEVM",nativeCurrency:{name:"HYPE",symbol:"HYPE",decimals:18},blockExplorers:{default:{name:"HyperEVMScan",url:"https://hyperevmscan.io"}},rpcUrls:{default:{http:["https://rpc.hyperliquid.xyz/evm"]}},testnet:!1}),zE=l({id:998,name:"Hyperliquid EVM Testnet",nativeCurrency:{name:"HYPE",symbol:"HYPE",decimals:18},rpcUrls:{default:{http:["https://rpc.hyperliquid-testnet.xyz/evm"]}},testnet:!0}),OE=l({id:73115,name:"ICB Network",nativeCurrency:{decimals:18,name:"ICB Native Token",symbol:"ICBX"},rpcUrls:{default:{http:["https://rpc1-mainnet.icbnetwork.info"]}},blockExplorers:{default:{name:"ICB Explorer",url:"https://icbscan.io",apiUrl:"https://icbscan.io/api"}},testnet:!1}),NE=l({id:74,name:"IDChain Mainnet",nativeCurrency:{decimals:18,name:"EIDI",symbol:"EIDI"},rpcUrls:{default:{http:["https://idchain.one/rpc"],webSocket:["wss://idchain.one/ws"]}},blockExplorers:{default:{name:"IDChain Explorer",url:"https://explorer.idchain.one"}},testnet:!1}),RE=l({id:13371,name:"Immutable zkEVM",nativeCurrency:{decimals:18,name:"Immutable Coin",symbol:"IMX"},rpcUrls:{default:{http:["https://rpc.immutable.com"]}},blockExplorers:{default:{name:"Immutable Explorer",url:"https://explorer.immutable.com",apiUrl:"https://explorer.immutable.com/api"}},contracts:{multicall3:{address:"0x236bdA4589e44e6850f5aC6a74BfCa398a86c6c0",blockCreated:4335972}}}),DE=l({id:13473,name:"Immutable zkEVM Testnet",nativeCurrency:{decimals:18,name:"Immutable Coin",symbol:"IMX"},rpcUrls:{default:{http:["https://rpc.testnet.immutable.com"]}},blockExplorers:{default:{name:"Immutable Testnet Explorer",url:"https://explorer.testnet.immutable.com/"}},contracts:{multicall3:{address:"0x2CC787Ed364600B0222361C4188308Fa8E68bA60",blockCreated:5977391}},testnet:!0}),_E=l({id:2525,name:"inEVM Mainnet",nativeCurrency:{decimals:18,name:"Injective",symbol:"INJ"},rpcUrls:{default:{http:["https://mainnet.rpc.inevm.com/http"]}},blockExplorers:{default:{name:"inEVM Explorer",url:"https://inevm.calderaexplorer.xyz",apiUrl:"https://inevm.calderaexplorer.xyz/api/v2"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:118606}}}),LE=l({id:7233,name:"InitVerse Mainnet",nativeCurrency:{decimals:18,name:"InitVerse",symbol:"INI"},rpcUrls:{default:{http:["https://rpc-mainnet.inichain.com"]}},blockExplorers:{default:{name:"InitVerseScan",url:"https://www.iniscan.com",apiUrl:"https://explorer-api.inichain.com/api"}},contracts:{multicall3:{address:"0x83466BE48A067115FFF91f7b892Ed1726d032e47",blockCreated:2318}}}),HE=l({id:7234,name:"InitVerse Genesis Testnet",nativeCurrency:{decimals:18,name:"InitVerse",symbol:"INI"},rpcUrls:{default:{http:["https://rpc-testnet.inichain.com"]}},blockExplorers:{default:{name:"InitVerseGenesisScan",url:"https://genesis-testnet.iniscan.com",apiUrl:"https://explorer-testnet-api.inichain.com/api"}},contracts:{multicall3:{address:"0x0cF32CBDd6c437331EA4f85ed2d881A5379B5a6F",blockCreated:16361}},testnet:!0}),jE=l({id:1776,name:"Injective",nativeCurrency:{decimals:18,name:"Injective",symbol:"INJ"},rpcUrls:{default:{http:["https://sentry.evm-rpc.injective.network"],webSocket:["wss://sentry.evm-ws.injective.network"]}},blockExplorers:{default:{name:"Injective Explorer",url:"https://blockscout.injective.network",apiUrl:"https://blockscout.injective.network/api"}},testnet:!1}),GE=l({id:1439,name:"Injective Testnet",nativeCurrency:{decimals:18,name:"Injective",symbol:"INJ"},rpcUrls:{default:{http:["https://k8s.testnet.json-rpc.injective.network"],webSocket:["wss://k8s.testnet.ws.injective.network"]}},blockExplorers:{default:{name:"Injective Explorer",url:"https://testnet.blockscout.injective.network",apiUrl:"https://testnet.blockscout.injective.network/api"}},testnet:!0}),as=1,qE=l({...F,id:57073,name:"Ink",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-gel.inkonchain.com","https://rpc-qnd.inkonchain.com"],webSocket:["wss://rpc-gel.inkonchain.com","wss://rpc-qnd.inkonchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.inkonchain.com",apiUrl:"https://explorer.inkonchain.com/api/v2"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},...F.contracts,disputeGameFactory:{[as]:{address:"0x10d7b35078d3baabb96dd45a9143b94be65b12cd"}},portal:{[as]:{address:"0x5d66c1782664115999c47c9fa5cd031f495d3e4f"}},l1StandardBridge:{[as]:{address:"0x88ff1e5b602916615391f55854588efcbb7663f0"}}},testnet:!1,sourceId:as}),os=11155111,VE=l({...F,id:763373,name:"Ink Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-gel-sepolia.inkonchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer-sepolia.inkonchain.com/",apiUrl:"https://explorer-sepolia.inkonchain.com/api/v2"}},contracts:{...F.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},disputeGameFactory:{[os]:{address:"0x860e626c700af381133d9f4af31412a2d1db3d5d"}},portal:{[os]:{address:"0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7"}},l1StandardBridge:{[os]:{address:"0x33f60714bbd74d62b66d79213c348614de51901c"}}},testnet:!0,sourceId:os}),KE=l({id:8822,name:"IOTA EVM",network:"iotaevm",nativeCurrency:{decimals:18,name:"IOTA",symbol:"IOTA"},rpcUrls:{default:{http:["https://json-rpc.evm.iotaledger.net"],webSocket:["wss://ws.json-rpc.evm.iotaledger.net"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.evm.iota.org",apiUrl:"https://explorer.evm.iota.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:25022}}}),WE=l({id:1075,name:"IOTA EVM Testnet",network:"iotaevm-testnet",nativeCurrency:{decimals:18,name:"IOTA",symbol:"IOTA"},rpcUrls:{default:{http:["https://json-rpc.evm.testnet.iotaledger.net"],webSocket:["wss://ws.json-rpc.evm.testnet.iotaledger.net"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.evm.testnet.iotaledger.net",apiUrl:"https://explorer.evm.testnet.iotaledger.net/api"}},testnet:!0}),ZE=l({id:4689,name:"IoTeX",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://iotexscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:22163670}}}),XE=l({id:4690,name:"IoTeX Testnet",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://testnet.iotexscan.io"}},contracts:{multicall3:{address:"0xb5cecD6894c6f473Ec726A176f1512399A2e355d",blockCreated:24347592}},testnet:!0}),JE=l({id:8017,name:"iSunCoin Mainnet",nativeCurrency:{decimals:18,name:"ISC",symbol:"ISC"},rpcUrls:{default:{http:["https://mainnet.isuncoin.com"]}},blockExplorers:{default:{name:"iSunCoin Explorer",url:"https://baifa.io/app/chains/8017"}}}),YE=l({id:680,name:"Jasmy Chain",network:"jasmyChain",nativeCurrency:{name:"JasmyCoin",symbol:"JASMY",decimals:18},rpcUrls:{default:{http:["https://rpc.jasmychain.io"],webSocket:["wss://rpc.jasmychain.io"]}},testnet:!1}),QE=l({id:681,name:"Jasmy Chain Testnet",network:"jasmyChainTestnet",nativeCurrency:{name:"JasmyCoin",symbol:"JASMY",decimals:18},rpcUrls:{default:{http:["https://rpc_testnet.jasmychain.io"],webSocket:["wss://rpc_testnet.jasmychain.io"]}},testnet:!0}),e7=l({id:8899,name:"JB Chain",network:"jbc",nativeCurrency:{name:"JBC",symbol:"JBC",decimals:18},rpcUrls:{default:{http:["https://rpc-l1.jibchain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-l1.jibchain.net",apiUrl:"https://exp-l1.jibchain.net/api"}},contracts:{multicall3:{address:"0xc0C8C486D1466C57Efe13C2bf000d4c56F47CBdC",blockCreated:2299048}},testnet:!1}),t7=l({id:88991,name:"Jibchain Testnet",nativeCurrency:{name:"tJBC",symbol:"tJBC",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.jibchain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp.testnet.jibchain.net",apiUrl:"https://exp.testnet.jibchain.net/api"}},contracts:{multicall3:{address:"0xa1a858ad9041B4741e620355a3F96B3c78e70ecE",blockCreated:32848}},testnet:!0}),r7=l({id:81,name:"Japan Open Chain Mainnet",nativeCurrency:{decimals:18,name:"Japan Open Chain Token",symbol:"JOC"},rpcUrls:{default:{http:["https://rpc-1.japanopenchain.org:8545","https://rpc-2.japanopenchain.org:8545","https://rpc-3.japanopenchain.org"]}},blockExplorers:{default:{name:"Block Explorer",url:"https://explorer.japanopenchain.org"}},testnet:!1}),n7=l({id:10081,name:"Japan Open Chain Testnet",nativeCurrency:{decimals:18,name:"Japan Open Chain Testnet Token",symbol:"JOCT"},rpcUrls:{default:{http:["https://rpc-1.testnet.japanopenchain.org:8545","https://rpc-2.testnet.japanopenchain.org:8545","https://rpc-3.testnet.japanopenchain.org"]}},blockExplorers:{default:{name:"Testnet Block Explorer",url:"https://explorer.testnet.japanopenchain.org"}},testnet:!0}),s7=l({id:5734951,name:"Jovay Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.jovay.io"]}},blockExplorers:{default:{name:"Jovay Explorer",url:"https://explorer.jovay.io/l2"}},testnet:!1}),a7=l({id:2019775,name:"Jovay Sepolia Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://api.zan.top/public/jovay-testnet"]}},blockExplorers:{default:{name:"Jovay Testnet Explorer",url:"https://sepolia-explorer.jovay.io/l2"}},testnet:!0}),o7=l({id:45003,name:"Juneo JUNE-Chain",nativeCurrency:{decimals:18,name:"JUNE-Chain",symbol:"JUNE"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/JUNE/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/2",apiUrl:"https://juneoscan.io/chain/2/api"}}}),i7=l({id:45013,name:"Juneo BCH1-Chain",nativeCurrency:{decimals:18,name:"Juneo BCH1-Chain",symbol:"BCH1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/BCH1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/12",apiUrl:"https://juneoscan.io/chain/12/api"}}}),c7=l({id:45004,name:"Juneo DAI1-Chain",nativeCurrency:{decimals:18,name:"Juneo DAI1-Chain",symbol:"DAI1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/DAI1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/5",apiUrl:"https://juneoscan.io/chain/5/api"}}}),l7=l({id:45010,name:"Juneo DOGE1-Chain",nativeCurrency:{decimals:18,name:"Juneo DOGE1-Chain",symbol:"DOGE1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/DOGE1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/10",apiUrl:"https://juneoscan.io/chain/10/api"}}}),u7=l({id:45011,name:"Juneo EUR1-Chain",nativeCurrency:{decimals:18,name:"Juneo EUR1-Chain",symbol:"EUR1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/EUR1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/6",apiUrl:"https://juneoscan.io/chain/6/api"}}}),d7=l({id:45008,name:"Juneo GLD1-Chain",nativeCurrency:{decimals:18,name:"Juneo GLD1-Chain",symbol:"GLD1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/GLD1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/8",apiUrl:"https://juneoscan.io/chain/8/api"}}}),p7=l({id:45014,name:"Juneo LINK1-Chain",nativeCurrency:{decimals:18,name:"Juneo LINK1-Chain",symbol:"LINK1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/LINK1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/13",apiUrl:"https://juneoscan.io/chain/13/api"}}}),f7=l({id:45009,name:"Juneo LTC1-Chain",nativeCurrency:{decimals:18,name:"Juneo LTC1-Chain",symbol:"LTC1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/LTC1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/11",apiUrl:"https://juneoscan.io/chain/11/api"}}}),m7=l({id:45007,name:"Juneo mBTC1-Chain",nativeCurrency:{decimals:18,name:"Juneo mBTC1-Chain",symbol:"mBTC1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/mBTC1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/9",apiUrl:"https://juneoscan.io/chain/9/api"}}}),h7=l({id:45012,name:"Juneo SGD1-Chain",nativeCurrency:{decimals:18,name:"Juneo SGD1-Chain",symbol:"SGD1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/SGD1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/7",apiUrl:"https://juneoscan.io/chain/7/api"}}}),b7=l({id:101003,name:"Socotra JUNE-Chain",nativeCurrency:{decimals:18,name:"Socotra JUNE-Chain",symbol:"JUNE"},rpcUrls:{default:{http:["https://rpc.socotra-testnet.network/ext/bc/JUNE/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://socotra.juneoscan.io/chain/2",apiUrl:"https://socotra.juneoscan.io/chain/2/api"}},testnet:!0}),y7=l({id:45006,name:"Juneo USD1-Chain",nativeCurrency:{decimals:18,name:"Juneo USD1-Chain",symbol:"USD1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/USD1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/4",apiUrl:"https://juneoscan.io/chain/4/api"}}}),x7=l({id:45005,name:"Juneo USDT1-Chain",nativeCurrency:{decimals:18,name:"Juneo USDT1-Chain",symbol:"USDT1"},rpcUrls:{default:{http:["https://rpc.juneo-mainnet.network/ext/bc/USDT1/rpc"]}},blockExplorers:{default:{name:"Juneo Scan",url:"https://juneoscan.io/chain/3",apiUrl:"https://juneoscan.io/chain/3/api"}}}),g7=l({id:8217,name:"Kaia",nativeCurrency:{decimals:18,name:"Kaia",symbol:"KAIA"},rpcUrls:{default:{http:["https://public-en.node.kaia.io"]}},blockExplorers:{default:{name:"KaiaScan",url:"https://kaiascan.io",apiUrl:"https://api-cypress.klaytnscope.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96002415}}}),w7=l({id:1001,name:"Kairos Testnet",network:"kairos",nativeCurrency:{decimals:18,name:"Kairos KAIA",symbol:"KAIA"},rpcUrls:{default:{http:["https://public-en-kairos.node.kaia.io"]}},blockExplorers:{default:{name:"KaiaScan",url:"https://kairos.kaiascan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:123390593}},testnet:!0}),E7=l({id:1802203764,name:"Kakarot Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.kakarot.org"]}},blockExplorers:{default:{name:"Kakarot Scan",url:"https://sepolia.kakarotscan.org"}},testnet:!0}),k7=l({id:920637907288165,name:"Kakarot Starknet Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.kakarot.org"]}},blockExplorers:{default:{name:"Kakarot Scan",url:"https://sepolia.kakarotscan.org"}},testnet:!0}),v7=l({id:24,name:"KardiaChain Mainnet",nativeCurrency:{name:"KAI",symbol:"KAI",decimals:18},rpcUrls:{default:{http:["https://rpc.kardiachain.io"]}},blockExplorers:{default:{name:"KardiaChain Explorer",url:"https://explorer.kardiachain.io"}},testnet:!1}),C7=l({id:686,name:"Karura",network:"karura",nativeCurrency:{name:"Karura",symbol:"KAR",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-karura.aca-api.network"],webSocket:["wss://eth-rpc-karura.aca-api.network"]}},blockExplorers:{default:{name:"Karura Blockscout",url:"https://blockscout.karura.network",apiUrl:"https://blockscout.karura.network/api"}},testnet:!1}),T7=l({id:747474,name:"Katana",network:"katana",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.katana.network"]}},blockExplorers:{default:{name:"katana explorer",url:"https://katanascan.com"}},testnet:!1}),A7=l({id:2222,name:"Kava EVM",network:"kava-mainnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{default:{http:["https://evm.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Explorer",url:"https://kavascan.com",apiUrl:"https://kavascan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3661165}},testnet:!1}),S7=l({id:2221,name:"Kava EVM Testnet",network:"kava-testnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{default:{http:["https://evm.testnet.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Testnet Explorer",url:"https://testnet.kavascan.com/",apiUrl:"https://testnet.kavascan.com/api"}},contracts:{multicall3:{address:"0xDf1D724A7166261eEB015418fe8c7679BBEa7fd6",blockCreated:7242179}},testnet:!0}),B7=l({id:321,name:"KCC Mainnet",network:"KCC Mainnet",nativeCurrency:{decimals:18,name:"KCS",symbol:"KCS"},rpcUrls:{default:{http:["https://kcc-rpc.com"]}},blockExplorers:{default:{name:"KCC Explorer",url:"https://explorer.kcc.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11760430}},testnet:!1}),U7=l({id:1336,name:"Kii Testnet Oro",network:"kii-testnet-oro",nativeCurrency:{name:"Kii",symbol:"KII",decimals:18},rpcUrls:{default:{http:["https://json-rpc.uno.sentry.testnet.v3.kiivalidator.com"]}},blockExplorers:{default:{name:"KiiExplorer",url:"https://explorer.kiichain.io/testnet"}},testnet:!0}),P7=l({id:7887,name:"Kinto Mainnet",network:"Kinto Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.kinto.xyz/http"]}},blockExplorers:{default:{name:"Kinto Explorer",url:"https://explorer.kinto.xyz"}},testnet:!1}),I7=l({id:8217,name:"Klaytn",nativeCurrency:{decimals:18,name:"Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-cypress.klaytn.net"]}},blockExplorers:{default:{name:"KlaytnScope",url:"https://scope.klaytn.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96002415}}}),F7=l({id:1001,name:"Klaytn Baobab Testnet",network:"klaytn-baobab",nativeCurrency:{decimals:18,name:"Baobab Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-baobab.klaytn.net"]}},blockExplorers:{default:{name:"KlaytnScope",url:"https://baobab.klaytnscope.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:123390593}},testnet:!0}),$7=l({id:701,name:"Koi Network",nativeCurrency:{decimals:18,name:"Koi Network Native Token",symbol:"KRING"},rpcUrls:{default:{http:["https://koi-rpc.darwinia.network"],webSocket:["wss://koi-rpc.darwinia.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://koi-scan.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:180001}},testnet:!0}),M7=l({id:255,name:"Kroma",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.kroma.network"]}},blockExplorers:{default:{name:"Kroma Explorer",url:"https://blockscout.kroma.network",apiUrl:"https://blockscout.kroma.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:16054868}},testnet:!1}),z7=l({id:2358,name:"Kroma Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.sepolia.kroma.network"]}},blockExplorers:{default:{name:"Kroma Sepolia Explorer",url:"https://blockscout.sepolia.kroma.network",apiUrl:"https://blockscout.sepolia.kroma.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:8900914}},testnet:!0}),O7=l({id:12324,name:"L3X Protocol",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.l3x.com"],webSocket:["wss://rpc-mainnet.l3x.com"]}},blockExplorers:{default:{name:"L3X Mainnet Explorer",url:"https://explorer.l3x.com",apiUrl:"https://explorer.l3x.com/api/v2"}},testnet:!1}),N7=l({id:12325,name:"L3X Protocol Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.l3x.com"],webSocket:["wss://rpc-testnet.l3x.com"]}},blockExplorers:{default:{name:"L3X Testnet Explorer",url:"https://explorer-testnet.l3x.com",apiUrl:"https://explorer-testnet.l3x.com/api/v2"}},testnet:!0}),R7=l({id:360890,name:"LAVITA Mainnet",nativeCurrency:{name:"vTFUEL",symbol:"vTFUEL",decimals:18},rpcUrls:{default:{http:["https://tsub360890-eth-rpc.thetatoken.org/rpc"]}},blockExplorers:{default:{name:"LAVITA Explorer",url:"https://tsub360890-explorer.thetatoken.org"}},testnet:!1}),D7=l({id:232,name:"Lens",nativeCurrency:{name:"GHO",symbol:"GHO",decimals:18},rpcUrls:{default:{http:["https://rpc.lens.xyz"]}},blockExplorers:{default:{name:"Lens Block Explorer",url:"https://explorer.lens.xyz",apiUrl:"https://explorer.lens.xyz/api"}}}),_7=l({id:37111,name:"Lens Testnet",nativeCurrency:{name:"GRASS",symbol:"GRASS",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.lens.dev"],webSocket:["wss://rpc.testnet.lens.dev/ws"]}},blockExplorers:{default:{name:"Lens Block Explorer",url:"https://block-explorer.testnet.lens.dev",apiUrl:"https://block-explorer-api.staging.lens.dev/api"}},testnet:!0}),L7=l({id:21363,name:"Lestnet",nativeCurrency:{name:"Lestnet Ether",symbol:"LETH",decimals:18},rpcUrls:{default:{http:["https://service.lestnet.org"]}},blockExplorers:{default:{name:"Lestnet Explorer",url:"https://explore.lestnet.org"}},testnet:!0}),H7=l({id:1891,name:"LightLink Pegasus Testnet",network:"lightlink-pegasus",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://replicator.pegasus.lightlink.io/rpc/v1"]}},blockExplorers:{default:{name:"LightLink Pegasus Explorer",url:"https://pegasus.lightlink.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:127188532}},testnet:!0}),j7=l({id:1890,name:"LightLink Phoenix Mainnet",network:"lightlink-phoenix",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://replicator.phoenix.lightlink.io/rpc/v1"]}},blockExplorers:{default:{name:"LightLink Phoenix Explorer",url:"https://phoenix.lightlink.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:125499184}},testnet:!1});async function G7(e,t){var s,a,o;const{account:r=e.account}=t;if(!r)throw new ot;const n=K(r);try{const{accessList:i,blockNumber:c,blockTag:u,data:d,gas:p,gasPrice:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:b,to:y,value:E,...v}=t,w=(typeof c=="bigint"?P(c):void 0)||u;qe(t);const x=(o=(a=(s=e.chain)==null?void 0:s.formatters)==null?void 0:a.transactionRequest)==null?void 0:o.format,k=(x||_e)({...xt(v,{format:x}),account:n,accessList:i,data:d,gas:p,gasPrice:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:b,to:y,value:E},"estimateGas"),{baseFeePerGas:T,gasLimit:S,priorityFeePerGas:O}=await e.request({method:"linea_estimateGas",params:w?[k,w]:[k]});return{baseFeePerGas:BigInt(T),gasLimit:BigInt(S),priorityFeePerGas:BigInt(O)}}catch(i){throw Ii(i,{...t,account:n,chain:e.chain})}}const Zi={fees:{estimateFeesPerGas:ol,async maxPriorityFeePerGas({block:e,client:t,request:r}){const n=await ol({block:e,client:t,multiply:s=>s,request:r,type:"eip1559"});return n!=null&&n.maxPriorityFeePerGas?n.maxPriorityFeePerGas:null}}};async function ol({client:e,multiply:t,request:r,type:n}){try{const s=await G7(e,{...r,account:r==null?void 0:r.account}),{priorityFeePerGas:a}=s,i=t(BigInt(s.baseFeePerGas))+a;return n==="legacy"?{gasPrice:i}:{maxFeePerGas:i,maxPriorityFeePerGas:a}}catch{return null}}const q7=l({...Zi,id:59144,name:"Linea Mainnet",blockTime:2e3,nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build",apiUrl:"https://api.lineascan.build/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42},ensRegistry:{address:"0x50130b669B28C339991d8676FA73CF122a121267",blockCreated:6682888},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:22222151}},ensTlds:[".linea.eth"],testnet:!1}),V7=l({id:59140,name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build",apiUrl:"https://api-goerli.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0}),K7=l({...Zi,id:59141,name:"Linea Sepolia Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia.linea.build"],webSocket:["wss://rpc.sepolia.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.lineascan.build",apiUrl:"https://api-sepolia.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:227427},ensRegistry:{address:"0x5B2636F0f2137B4aE722C01dd5122D7d3e9541f7",blockCreated:2395094},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:17168484}},ensTlds:[".linea.eth"],testnet:!0}),W7=l({id:59140,name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build",apiUrl:"https://goerli.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0}),is=1,Z7=l({...F,id:1135,name:"Lisk",network:"lisk",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.api.lisk.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.lisk.com",apiUrl:"https://blockscout.lisk.com/api"}},contracts:{...F.contracts,multicall3:{address:"0xA9d71E1dd7ca26F26e656E66d6AA81ed7f745bf0"},l2OutputOracle:{[is]:{address:"0x113cB99283AF242Da0A0C54347667edF531Aa7d6"}},portal:{[is]:{address:"0x26dB93F8b8b4f7016240af62F7730979d353f9A7"}},l1StandardBridge:{[is]:{address:"0x2658723Bf70c7667De6B25F99fcce13A16D25d08"}}},sourceId:is}),cs=11155111,X7=l({...F,id:4202,network:"lisk-sepolia",name:"Lisk Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia-api.lisk.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-blockscout.lisk.com",apiUrl:"https://sepolia-blockscout.lisk.com/api"}},contracts:{...F.contracts,l2OutputOracle:{[cs]:{address:"0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[cs]:{address:"0xe3d90F21490686Ec7eF37BE788E02dfC12787264"}},l1StandardBridge:{[cs]:{address:"0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5"}}},testnet:!0,sourceId:cs}),J7=l({id:9496,name:"Load Alphanet",nativeCurrency:{name:"Testnet LOAD",symbol:"tLOAD",decimals:18},rpcUrls:{default:{http:["https://alphanet.load.network"]}},blockExplorers:{default:{name:"Load Alphanet Explorer",url:"https://explorer.load.network"}},testnet:!0}),Y7=l({id:1337,name:"Localhost",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),Q7=l({id:15551,name:"LoopNetwork Mainnet",nativeCurrency:{name:"LOOP",symbol:"LOOP",decimals:18},rpcUrls:{default:{http:["https://api.mainnetloop.com"]}},blockExplorers:{default:{name:"LoopNetwork Blockchain Explorer",url:"https://explorer.mainnetloop.com/"}},testnet:!1}),ek=l({id:42,network:"lukso",name:"LUKSO",nativeCurrency:{name:"LUKSO",symbol:"LYX",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Mainnet Explorer",url:"https://explorer.execution.mainnet.lukso.network",apiUrl:"https://api.explorer.execution.mainnet.lukso.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:468183}}}),tk=l({id:4201,name:"LUKSO Testnet",nativeCurrency:{decimals:18,name:"LUKSO Testnet",symbol:"LYXt"},rpcUrls:{default:{http:["https://rpc.testnet.lukso.network"],webSocket:["wss://ws-rpc.testnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Testnet Explorer",url:"https://explorer.execution.testnet.lukso.network",apiUrl:"https://api.explorer.execution.testnet.lukso.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:605348}},testnet:!0}),rk=l({id:994873017,name:"Lumia Mainnet",network:"LumiaMainnet",nativeCurrency:{name:"Lumia",symbol:"LUMIA",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.lumia.org"]}},blockExplorers:{default:{name:"Lumia Explorer",url:"https://explorer.lumia.org/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3975939}},testnet:!1}),nk=l({id:1952959480,name:"Lumia Testnet",network:"LumiaTestnet",nativeCurrency:{name:"Lumia",symbol:"LUMIA",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.lumia.org"]}},blockExplorers:{default:{name:"Lumia Testnet Explorer",url:"https://testnet-explorer.lumia.org/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2235063}},testnet:!0}),sk=l({id:96370,name:"Lumoz",nativeCurrency:{decimals:18,name:"Lumoz Token",symbol:"MOZ"},rpcUrls:{default:{http:["https://rpc.lumoz.org"]}},blockExplorers:{default:{name:"Lumoz Scan",url:"https://scan.lumoz.info"}},testnet:!1}),ak=l({id:105363,name:"Lumoz Testnet",nativeCurrency:{decimals:18,name:"Lumoz Testnet Token",symbol:"MOZ"},rpcUrls:{default:{http:["https://testnet-rpc.lumoz.org"]}},testnet:!0}),ok=l({id:721,name:"Lycan",nativeCurrency:{decimals:18,name:"Lycan",symbol:"LYC"},rpcUrls:{default:{http:["https://rpc.lycanchain.com","https://us-east.lycanchain.com","https://us-west.lycanchain.com","https://eu-north.lycanchain.com","https://eu-west.lycanchain.com","https://asia-southeast.lycanchain.com"],webSocket:["wss://rpc.lycanchain.com","wss://us-east.lycanchain.com","wss://us-west.lycanchain.com","wss://eu-north.lycanchain.com","wss://eu-west.lycanchain.com","wss://asia-southeast.lycanchain.com"]}},blockExplorers:{default:{name:"Lycan Explorer",url:"https://explorer.lycanchain.com"}}}),ik=l({id:957,name:"Lyra Chain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.lyra.finance"]}},blockExplorers:{default:{name:"Lyra Explorer",url:"https://explorer.lyra.finance",apiUrl:"https://explorer.lyra.finance/api/v2"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1935198}}}),ck=l({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),lk=l({id:595,name:"Mandala TC9",network:"mandala",nativeCurrency:{name:"Mandala",symbol:"mACA",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-tc9.aca-staging.network"],webSocket:["wss://eth-rpc-tc9.aca-staging.network"]}},blockExplorers:{default:{name:"Mandala Blockscout",url:"https://blockscout.mandala.aca-staging.network",apiUrl:"https://blockscout.mandala.aca-staging.network/api"}},testnet:!0}),uk=l({id:169,name:"Manta Pacific Mainnet",network:"manta",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.manta.network/http"]}},blockExplorers:{default:{name:"Manta Explorer",url:"https://pacific-explorer.manta.network",apiUrl:"https://pacific-explorer.manta.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:332890}}}),dk=l({id:3441006,name:"Manta Pacific Sepolia Testnet",network:"manta-sepolia",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.sepolia-testnet.manta.network/http"]}},blockExplorers:{default:{name:"Manta Sepolia Testnet Explorer",url:"https://pacific-explorer.sepolia-testnet.manta.network",apiUrl:"https://pacific-explorer.sepolia-testnet.manta.network/api"}},contracts:{multicall3:{address:"0xca54918f7B525C8df894668846506767412b53E3",blockCreated:479584}},testnet:!0}),pk=l({id:3441005,name:"Manta Pacific Testnet",network:"manta-testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://manta-testnet.calderachain.xyz/http"]}},blockExplorers:{default:{name:"Manta Testnet Explorer",url:"https://pacific-explorer.testnet.manta.network",apiUrl:"https://pacific-explorer.testnet.manta.network/api"}},contracts:{multicall3:{address:"0x211B1643b95Fe76f11eD8880EE810ABD9A4cf56C",blockCreated:419915}},testnet:!0}),fk=l({id:5e3,name:"Mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Explorer",url:"https://mantlescan.xyz/",apiUrl:"https://api.mantlescan.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:304717}}}),mk=l({id:5003,name:"Mantle Sepolia Testnet",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.sepolia.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Testnet Explorer",url:"https://explorer.sepolia.mantle.xyz/",apiUrl:"https://explorer.sepolia.mantle.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4584012}},testnet:!0}),hk=l({id:5001,name:"Mantle Testnet",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.testnet.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",apiUrl:"https://explorer.testnet.mantle.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:561333}},testnet:!0}),bk=l({id:5887,name:"MANTRA DuKong EVM Testnet",nativeCurrency:{decimals:18,name:"OM",symbol:"OM"},rpcUrls:{default:{http:["https://evm.dukong.mantrachain.io"]}},blockExplorers:{default:{name:"MANTRAScan",url:"https://mantrascan.io/dukong"}},testnet:!0}),yk=l({id:5888,name:"MANTRA EVM",nativeCurrency:{decimals:18,name:"OM",symbol:"OM"},rpcUrls:{default:{http:["https://evm.mantrachain.io"],webSocket:["https://evm.mantrachain.io/ws"]}},blockExplorers:{default:{name:"MANTRA Scan",url:"https://mantrascan.io/mainnet"}}}),xk=l({id:22776,name:"MAP Protocol",nativeCurrency:{decimals:18,name:"MAPO",symbol:"MAPO"},rpcUrls:{default:{http:["https://rpc.maplabs.io"]}},blockExplorers:{default:{name:"MAPO Scan",url:"https://maposcan.io"}},testnet:!1}),gk=l({id:698,name:"Matchain",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://rpc.matchain.io"]}},blockExplorers:{default:{name:"Matchain Scan",url:"https://matchscan.io"}}}),wk=l({id:699,name:"Matchain Testnet",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.matchain.io"]}},blockExplorers:{default:{name:"Matchain Scan",url:"https://testnet.matchscan.io"}},testnet:!0}),Ek=l({id:29548,name:"MCH Verse",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.oasys.mycryptoheroes.net"]}},blockExplorers:{default:{name:"MCH Verse Explorer",url:"https://explorer.oasys.mycryptoheroes.net",apiUrl:"https://explorer.oasys.mycryptoheroes.net/api"}},testnet:!1}),kk=l({id:6342,blockTime:1e3,name:"MegaETH Testnet",nativeCurrency:{name:"MegaETH Testnet Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://carrot.megaeth.com/rpc"],webSocket:["wss://carrot.megaeth.com/ws"]}},blockExplorers:{default:{name:"MegaETH Testnet Explorer",url:"https://www.megaexplorer.xyz/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},testnet:!0}),vk=l({id:7078815900,name:"Mekong Pectra Devnet",nativeCurrency:{name:"eth",symbol:"eth",decimals:18},rpcUrls:{default:{http:["https://rpc.mekong.ethpandaops.io"]}},blockExplorers:{default:{name:"Block Explorer",url:"https://explorer.mekong.ethpandaops.io"}},testnet:!0}),Ck=l({id:333000333,name:"Meld",nativeCurrency:{decimals:18,name:"Meld",symbol:"MELD"},rpcUrls:{default:{http:["https://rpc-1.meld.com"]}},blockExplorers:{default:{name:"MELDscan",url:"https://meldscan.io"}},contracts:{multicall3:{address:"0x769ee5a8e82c15c1b6e358f62ac8eb6e3abe8dc5",blockCreated:360069}}}),Tk=l({id:4352,name:"MemeCore",nativeCurrency:{decimals:18,name:"M",symbol:"M"},rpcUrls:{default:{http:["https://rpc.memecore.net"],webSocket:["wss://ws.memecore.net"]}},blockExplorers:{default:{name:"MemeCore Explorer",url:"https://memecorescan.io",apiUrl:"https://api.memecorescan.io/api"},okx:{name:"MemeCore Explorer",url:"https://web3.okx.com/explorer/memecore"},memecore:{name:"MemeCore Explorer",url:"https://blockscout.memecore.com",apiUrl:"https://blockscout.memecore.com/api"}}}),Ak=l({id:43521,name:"Formicarium",nativeCurrency:{decimals:18,name:"M",symbol:"M"},rpcUrls:{default:{http:["https://rpc.formicarium.memecore.net"],webSocket:["wss://ws.formicarium.memecore.net"]}},blockExplorers:{default:{name:"MemeCore Testnet Explorer",url:"https://formicarium.memecorescan.io"},okx:{name:"MemeCore Testnet Explorer",url:"https://web3.okx.com/explorer/formicarium-testnet"},memecore:{name:"MemeCore Testnet Explorer",url:"https://formicarium.blockscout.memecore.com",apiUrl:"https://formicarium.blockscout.memecore.com/api"}},testnet:!0}),Sk=l({id:4200,name:"Merlin",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.merlinchain.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://scan.merlinchain.io",apiUrl:"https://scan.merlinchain.io/api"}}}),Bk=l({id:4203,name:"Merlin Erigon Testnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://testnet-erigon-rpc.merlinchain.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://testnet-erigon-scan.merlinchain.io",apiUrl:"https://testnet-erigon-scan.merlinchain.io/api"}},testnet:!0}),Uk=l({id:571,name:"MetaChain Mainnet",nativeCurrency:{name:"Metatime Coin",symbol:"MTC",decimals:18},rpcUrls:{default:{http:["https://rpc.metatime.com"]}},blockExplorers:{default:{name:"MetaExplorer",url:"https://explorer.metatime.com"}},contracts:{multicall3:{address:"0x0000000000000000000000000000000000003001",blockCreated:0}}}),Pk=l({id:1453,name:"MetaChain Istanbul",nativeCurrency:{name:"Metatime Coin",symbol:"MTC",decimals:18},rpcUrls:{default:{http:["https://istanbul-rpc.metachain.dev"]}},blockExplorers:{default:{name:"MetaExplorer",url:"https://istanbul-explorer.metachain.dev"}},contracts:{multicall3:{address:"0x0000000000000000000000000000000000003001",blockCreated:0}},testnet:!0}),Ik=l({id:11,name:"Metadium Network",nativeCurrency:{decimals:18,name:"META",symbol:"META"},rpcUrls:{default:{http:["https://api.metadium.com/prod"]}},blockExplorers:{default:{name:"Metadium Explorer",url:"https://explorer.metadium.com"}},testnet:!1}),ls=1,Fk=l({...F,id:1750,name:"Metal L2",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.metall2.com"],webSocket:["wss://rpc.metall2.com"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.metall2.com",apiUrl:"https://explorer.metall2.com/api"}},contracts:{...F.contracts,l2OutputOracle:{[ls]:{address:"0x3B1F7aDa0Fcc26B13515af752Dd07fB1CAc11426"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},portal:{[ls]:{address:"0x3F37aBdE2C6b5B2ed6F8045787Df1ED1E3753956"}},l1StandardBridge:{[ls]:{address:"0x6d0f65D59b55B0FEC5d2d15365154DcADC140BF3"}}},sourceId:ls}),$k=l({id:82,name:"Meter",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpc.meter.io"]}},blockExplorers:{default:{name:"MeterScan",url:"https://scan.meter.io"}}}),Mk=l({id:83,name:"Meter Testnet",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpctest.meter.io"]}},blockExplorers:{default:{name:"MeterTestnetScan",url:"https://scan-warringstakes.meter.io"}}}),zk=l({id:1088,name:"Metis",nativeCurrency:{decimals:18,name:"Metis",symbol:"METIS"},rpcUrls:{default:{http:["https://metis.rpc.hypersync.xyz","https://metis-pokt.nodies.app","https://api.blockeden.xyz/metis/67nCBdZQSH9z3YqDDjdm","https://metis-andromeda.rpc.thirdweb.com","https://metis-andromeda.gateway.tenderly.co","https://metis.api.onfinality.io/public","https://andromeda.metis.io/?owner=1088","https://metis-mainnet.public.blastapi.io"],webSocket:["wss://metis-rpc.publicnode.com","wss://metis.drpc.org"]}},blockExplorers:{default:{name:"Metis Explorer",url:"https://explorer.metis.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/1088/etherscan/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2338552}}}),Ok=l({id:599,name:"Metis Goerli",nativeCurrency:{decimals:18,name:"Metis Goerli",symbol:"METIS"},rpcUrls:{default:{http:["https://goerli.gateway.metisdevops.link"]}},blockExplorers:{default:{name:"Metis Goerli Explorer",url:"https://goerli.explorer.metisdevops.link",apiUrl:"https://goerli.explorer.metisdevops.link/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1006207}}}),Nk=l({id:59902,name:"Metis Sepolia",nativeCurrency:{decimals:18,name:"Test Metis",symbol:"tMETIS"},rpcUrls:{default:{http:["https://sepolia.metisdevops.link","https://metis-sepolia-rpc.publicnode.com","https://metis-sepolia.gateway.tenderly.co"],webSocket:["wss://metis-sepolia-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Metis Sepolia Explorer",url:"https://sepolia-explorer.metisdevops.link",apiUrl:"https://sepolia-explorer.metisdevops.link/api-docs"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:224185}}}),Rk=l({id:7518,name:"MEVerse Chain Mainnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversemainnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://www.meversescan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:86881340}}}),Dk=l({id:4759,name:"MEVerse Chain Testnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversetestnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.meversescan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:64371115}},testnet:!0}),_k=l({id:185,name:"Mint Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.mintchain.io"]}},blockExplorers:{default:{name:"Mintchain explorer",url:"https://explorer.mintchain.io"}},testnet:!1}),Lk=l({id:1686,name:"Mint Sepolia Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.mintchain.io"]}},blockExplorers:{default:{name:"Mintchain Testnet explorer",url:"https://testnet-explorer.mintchain.io"}},testnet:!0}),Hk=l({id:124832,name:"Mitosis Testnet",nativeCurrency:{name:"MITO",symbol:"MITO",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.mitosis.org"]}},blockExplorers:{default:{name:"Mitosis testnet explorer",url:"https://testnet.mitosiscan.xyz"}},testnet:!0}),us=1,jk=l({...F,id:34443,name:"Mode Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.mode.network"]}},blockExplorers:{default:{name:"Modescan",url:"https://modescan.io"}},contracts:{...F.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2465882},l2OutputOracle:{[us]:{address:"0x4317ba146D4933D889518a3e5E11Fe7a53199b04"}},portal:{[us]:{address:"0x8B34b14c7c7123459Cf3076b8Cb929BE097d0C07"}},l1StandardBridge:{[us]:{address:"0x735aDBbE72226BD52e818E7181953f42E3b0FF21"}}},sourceId:us}),ds=11155111,Gk=l({...F,id:919,name:"Mode Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.mode.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.mode.network",apiUrl:"https://sepolia.explorer.mode.network/api"}},contracts:{...F.contracts,l2OutputOracle:{[ds]:{address:"0x2634BD65ba27AB63811c74A63118ACb312701Bfa",blockCreated:3778393}},portal:{[ds]:{address:"0x320e1580effF37E008F1C92700d1eBa47c1B23fD",blockCreated:3778395}},l1StandardBridge:{[ds]:{address:"0xbC5C679879B2965296756CD959C3C739769995E2",blockCreated:3778392}},multicall3:{address:"0xBAba8373113Fb7a68f195deF18732e01aF8eDfCF",blockCreated:3019007}},testnet:!0,sourceId:ds}),qk=l({id:143,name:"Monad",blockTime:400,nativeCurrency:{name:"Monad",symbol:"MON",decimals:18},rpcUrls:{default:{http:["https://rpc.monad.xyz","https://rpc1.monad.xyz"],webSocket:["wss://rpc.monad.xyz","wss://rpc1.monad.xyz"]}},blockExplorers:{default:{name:"MonadVision",url:"https://monadvision.com"},monadscan:{name:"Monadscan",url:"https://monadscan.com",apiUrl:"https://api.monadscan.com/api"}},testnet:!1,contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:9248132}}}),Vk=l({id:10143,name:"Monad Testnet",blockTime:400,nativeCurrency:{name:"Testnet MON Token",symbol:"MON",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.monad.xyz"]}},blockExplorers:{default:{name:"Monad Testnet explorer",url:"https://testnet.monadexplorer.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:251449}},testnet:!0}),Kk=l({id:1287,name:"Moonbase Alpha",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonbase.moonscan.io",apiUrl:"https://moonbase.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1850686}},testnet:!0}),Wk=l({id:1284,name:"Moonbeam",nativeCurrency:{decimals:18,name:"GLMR",symbol:"GLMR"},rpcUrls:{default:{http:["https://moonbeam.public.blastapi.io"],webSocket:["wss://moonbeam.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonscan.io",apiUrl:"https://api-moonbeam.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:609002}},testnet:!1}),Zk=l({id:1281,name:"Moonbeam Development Node",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["http://127.0.0.1:9944"],webSocket:["wss://127.0.0.1:9944"]}}}),Xk=l({id:1285,name:"Moonriver",nativeCurrency:{decimals:18,name:"MOVR",symbol:"MOVR"},rpcUrls:{default:{http:["https://moonriver.public.blastapi.io"],webSocket:["wss://moonriver.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonriver.moonscan.io",apiUrl:"https://api-moonriver.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1597904}},testnet:!1}),Jk=l({id:2818,name:"Morph",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.morphl2.io"],webSocket:["wss://rpc.morphl2.io:8443"]}},blockExplorers:{default:{name:"Morph Explorer",url:"https://explorer.morphl2.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3654913}},testnet:!1}),Yk=l({id:2810,name:"Morph Holesky",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-quicknode-holesky.morphl2.io"],webSocket:["wss://rpc-quicknode-holesky.morphl2.io"]}},blockExplorers:{default:{name:"Morph Holesky Explorer",url:"https://explorer-holesky.morphl2.io",apiUrl:"https://explorer-api-holesky.morphl2.io/api?"}},testnet:!0}),Qk=l({id:2710,name:"Morph Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.morphl2.io"]}},blockExplorers:{default:{name:"Morph Testnet Explorer",url:"https://explorer-testnet.morphl2.io",apiUrl:"https://explorer-api-testnet.morphl2.io/api"}},testnet:!0}),e9=l({id:5551,name:"Nahmii 2 Mainnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://l2.nahmii.io"]}},blockExplorers:{default:{name:"Nahmii 2 Explorer",url:"https://explorer.n2.nahmii.io"}},testnet:!1}),t9=l({id:22222,name:"Nautilus Mainnet",nativeCurrency:{name:"ZBC",symbol:"ZBC",decimals:9},rpcUrls:{default:{http:["https://api.nautilus.nautchain.xyz"]}},blockExplorers:{default:{name:"NautScan",url:"https://nautscan.com"}}}),r9=l({id:397,name:"NEAR Protocol",nativeCurrency:{decimals:18,name:"NEAR",symbol:"NEAR"},rpcUrls:{default:{http:["https://eth-rpc.mainnet.near.org"]}},blockExplorers:{default:{name:"NEAR Explorer",url:"https://eth-explorer.near.org"}},testnet:!1}),n9=l({id:398,name:"NEAR Protocol Testnet",nativeCurrency:{decimals:18,name:"NEAR",symbol:"NEAR"},rpcUrls:{default:{http:["https://eth-rpc.testnet.near.org"]}},blockExplorers:{default:{name:"NEAR Explorer",url:"https://eth-explorer-testnet.near.org"}},testnet:!0}),s9=l({id:245022926,name:"Neon EVM DevNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://devnet.neonevm.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://devnet.neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:205206112}},testnet:!0}),a9=l({id:245022934,network:"neonMainnet",name:"Neon EVM MainNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://neon-proxy-mainnet.solana.p2p.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:206545524}},testnet:!1}),o9=l({id:47763,name:"Neo X Mainnet",nativeCurrency:{name:"Gas",symbol:"GAS",decimals:18},rpcUrls:{default:{http:["https://mainnet-1.rpc.banelabs.org","https://mainnet-2.rpc.banelabs.org"]}},blockExplorers:{default:{name:"Neo X - Explorer",url:"https://xexplorer.neo.org"}},testnet:!1}),i9=l({id:12227332,name:"Neo X Testnet T4",nativeCurrency:{name:"Gas",symbol:"GAS",decimals:18},rpcUrls:{default:{http:["https://testnet.rpc.banelabs.org/"]}},blockExplorers:{default:{name:"neox-scan",url:"https://xt4scan.ngd.network"}},testnet:!0}),c9=l({id:1012,name:"Newton",nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},rpcUrls:{default:{http:["https://global.rpc.mainnet.newtonproject.org"]}},blockExplorers:{default:{name:"NewFi explorer",url:"https://explorer.newtonproject.org/"}},testnet:!1}),l9=l({id:4242,name:"Nexi",nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},rpcUrls:{default:{http:["https://rpc.chain.nexi.technology"]}},blockExplorers:{default:{name:"NexiScan",url:"https://www.nexiscan.com",apiUrl:"https://www.nexiscan.com/api"}},contracts:{multicall3:{address:"0x0277A46Cc69A57eE3A6C8c158bA874832F718B8E",blockCreated:25770160}}}),u9=l({id:240,name:"Nexilix Smart Chain",nativeCurrency:{decimals:18,name:"Nexilix",symbol:"NEXILIX"},rpcUrls:{default:{http:["https://rpcurl.pos.nexilix.com"]}},blockExplorers:{default:{name:"NexilixScan",url:"https://scan.nexilix.com"}},contracts:{multicall3:{address:"0x58381c8e2BF9d0C2C4259cA14BdA9Afe02831244",blockCreated:74448}}}),d9=l({id:6900,name:"Nibiru",nativeCurrency:{decimals:18,name:"NIBI",symbol:"NIBI"},rpcUrls:{default:{http:["https://evm-rpc.nibiru.fi"]}},blockExplorers:{default:{name:"NibiScan",url:"https://nibiscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:19587573}}}),p9=l({id:200024,name:"Nitrograph Testnet",testnet:!0,rpcUrls:{default:{http:["https://rpc-testnet.nitrograph.foundation"]}},nativeCurrency:{name:"Nitro",symbol:"NOS",decimals:18},blockExplorers:{default:{url:"https://explorer-testnet.nitrograph.foundation",name:"Nitrograph Explorer"}}}),f9=l({id:166,name:"Nomina",nativeCurrency:{name:"Nomina",symbol:"NOM",decimals:18},rpcUrls:{default:{http:["https://mainnet.nomina.io"],webSocket:["wss://mainnet.nomina.io"]}},blockExplorers:{default:{name:"Nomina Explorer",url:"https://nomscan.io"}},testnet:!1}),m9=l({id:4090,network:"oasis-testnet",name:"Oasis Testnet",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.oasis.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://oasis.ftnscan.com",apiUrl:"https://oasis.ftnscan.com/api"}},testnet:!0}),h9=l({id:248,name:"Oasys",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.oasys.games"]}},blockExplorers:{default:{name:"OasysScan",url:"https://scan.oasys.games",apiUrl:"https://scan.oasys.games/api"}}}),b9=l({id:911867,name:"Odyssey Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://odyssey.ithaca.xyz"]}},blockExplorers:{default:{name:"Odyssey Explorer",url:"https://odyssey-explorer.ithaca.xyz",apiUrl:"https://odyssey-explorer.ithaca.xyz/api"}},testnet:!0}),y9=l({id:66,name:"OKC",nativeCurrency:{decimals:18,name:"OKT",symbol:"OKT"},rpcUrls:{default:{http:["https://exchainrpc.okex.org"]}},blockExplorers:{default:{name:"oklink",url:"https://www.oklink.com/okc"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10364792}}}),x9=l({id:311,name:"Omax Mainnet",nativeCurrency:{decimals:18,name:"OMAX",symbol:"OMAX"},rpcUrls:{default:{http:["https://mainapi.omaxray.com"]}},blockExplorers:{default:{name:"Omax Explorer",url:"https://omaxscan.com"}},testnet:!1}),g9=l({id:166,name:"Omni",nativeCurrency:{name:"Omni",symbol:"OMNI",decimals:18},rpcUrls:{default:{http:["https://mainnet.omni.network"],webSocket:["wss://mainnet.omni.network"]}},blockExplorers:{default:{name:"OmniScan",url:"https://omniscan.network"}},testnet:!1}),w9=l({id:164,name:"Omni Omega",nativeCurrency:{name:"Omni",symbol:"OMNI",decimals:18},rpcUrls:{default:{http:["https://omega.omni.network"],webSocket:["wss://omega.omni.network"]}},blockExplorers:{default:{name:"Omega OmniScan",url:"https://omega.omniscan.network/"}},testnet:!0}),E9=l({id:309075,name:"One World Chain Mainnet",nativeCurrency:{decimals:18,name:"OWCT",symbol:"OWCT"},rpcUrls:{default:{http:["https://mainnet-rpc.oneworldchain.org"]}},blockExplorers:{default:{name:"One World Explorer",url:"https://mainnet.oneworldchain.org"}},testnet:!1}),k9=l({id:9700,name:"OORT MainnetDev",nativeCurrency:{decimals:18,name:"OORT",symbol:"OORT"},rpcUrls:{default:{http:["https://dev-rpc.oortech.com"]}},blockExplorers:{default:{name:"OORT MainnetDev Explorer",url:"https://dev-scan.oortech.com"}}}),ps=56,v9=l({id:204,name:"opBNB",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://opbnb-mainnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opBNB (BSCScan)",url:"https://opbnb.bscscan.com",apiUrl:"https://api-opbnb.bscscan.com/api"}},contracts:{...F.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:512881},l2OutputOracle:{[ps]:{address:"0x153CAB79f4767E2ff862C94aa49573294B13D169"}},portal:{[ps]:{address:"0x1876EA7702C0ad0C6A2ae6036DE7733edfBca519"}},l1StandardBridge:{[ps]:{address:"0xF05F0e4362859c3331Cb9395CBC201E3Fa6757Ea"}}},sourceId:ps}),fs=97,C9=l({id:5611,name:"opBNB Testnet",nativeCurrency:{decimals:18,name:"tBNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://opbnb-testnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opbnbscan",url:"https://testnet.opbnbscan.com"}},contracts:{...F.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3705108},l2OutputOracle:{[fs]:{address:"0xFf2394Bb843012562f4349C6632a0EcB92fC8810"}},portal:{[fs]:{address:"0x4386C8ABf2009aC0c263462Da568DD9d46e52a31"}},l1StandardBridge:{[fs]:{address:"0x677311Fd2cCc511Bbc0f581E8d9a07B033D5E840"}}},testnet:!0,sourceId:fs}),T9=l({id:1612,name:"OpenLedger",nativeCurrency:{name:"Open",symbol:"OPEN",decimals:18},rpcUrls:{default:{http:["https://rpc.openledger.xyz"]}},blockExplorers:{default:{name:"OpenLedger Explorer",url:"https://scan.openledger.xyz"}},testnet:!1}),Ur=1,A9=l({...F,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...F.contracts,disputeGameFactory:{[Ur]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[Ur]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[Ur]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[Ur]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:Ur}),ms=5,S9=l({...F,id:420,name:"Optimism Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.optimism.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io",apiUrl:"https://goerli-optimism.etherscan.io/api"}},contracts:{...F.contracts,l2OutputOracle:{[ms]:{address:"0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:49461},portal:{[ms]:{address:"0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383"}},l1StandardBridge:{[ms]:{address:"0x636Af16bf2f682dD3109e60102b8E1A089FedAa8"}}},testnet:!0,sourceId:ms}),Pr=11155111,B9=l({...F,id:11155420,name:"OP Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.optimism.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com",apiUrl:"https://optimism-sepolia.blockscout.com/api"}},contracts:{...F.contracts,disputeGameFactory:{[Pr]:{address:"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"}},l2OutputOracle:{[Pr]:{address:"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204},portal:{[Pr]:{address:"0x16Fc5058F25648194471939df75CF27A2fdC48BC"}},l1StandardBridge:{[Pr]:{address:"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"}}},testnet:!0,sourceId:Pr}),U9=l({id:62050,name:"Optopia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.optopia.ai"]}},blockExplorers:{default:{name:"Optopia Explorer",url:"https://scan.optopia.ai"}},testnet:!1}),P9=l({id:62049,name:"Optopia Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.optopia.ai"]}},blockExplorers:{default:{name:"Optopia Explorer",url:"https://scan-testnet.optopia.ai"}},testnet:!0}),I9=l({id:291,name:"Orderly",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.orderly.network"]}},blockExplorers:{default:{name:"Orderly Explorer",url:"https://explorer.orderly.network"}},testnet:!1}),F9=l({id:4460,name:"Orderly Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://l2-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz"]}},blockExplorers:{default:{name:"Orderly Explorer",url:"https://explorerl2new-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz"}},testnet:!0}),$9=l({id:41144114,name:"Otim Devnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["http://devnet.otim.xyz"]}},contracts:{batchInvoker:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3"}}}),M9=l({id:11297108109,name:"Palm",nativeCurrency:{decimals:18,name:"PALM",symbol:"PALM"},rpcUrls:{default:{http:["https://palm-mainnet.public.blastapi.io"],webSocket:["wss://palm-mainnet.public.blastapi.io"]}},blockExplorers:{default:{name:"Chainlens",url:"https://palm.chainlens.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15429248}}}),z9=l({id:11297108099,name:"Palm Testnet",nativeCurrency:{decimals:18,name:"PALM",symbol:"PALM"},rpcUrls:{default:{http:["https://palm-mainnet.public.blastapi.io"],webSocket:["wss://palm-mainnet.public.blastapi.io"]}},blockExplorers:{default:{name:"Chainlens",url:"https://palm.chainlens.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15429248}},testnet:!0}),O9=l({id:3338,name:"Peaq",nativeCurrency:{decimals:18,name:"peaq",symbol:"PEAQ"},rpcUrls:{default:{http:["https://quicknode1.peaq.xyz","https://quicknode2.peaq.xyz","https://quicknode3.peaq.xyz"],webSocket:["wss://quicknode1.peaq.xyz","wss://quicknode2.peaq.xyz","wss://quicknode3.peaq.xyz"]}},blockExplorers:{default:{name:"Subscan",url:"https://peaq.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3566354}}}),hs=1,N9=l({id:424,network:"pgn",name:"PGN",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Explorer",url:"https://explorer.publicgoods.network",apiUrl:"https://explorer.publicgoods.network/api"}},contracts:{l2OutputOracle:{[hs]:{address:"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3380209},portal:{[hs]:{address:"0xb26Fd985c5959bBB382BAFdD0b879E149e48116c"}},l1StandardBridge:{[hs]:{address:"0xD0204B9527C1bA7bD765Fa5CCD9355d38338272b"}}},formatters:Wi,sourceId:hs}),bs=11155111,R9=l({id:58008,network:"pgn-testnet",name:"PGN",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Testnet Explorer",url:"https://explorer.sepolia.publicgoods.network",apiUrl:"https://explorer.sepolia.publicgoods.network/api"}},contracts:{l2OutputOracle:{[bs]:{address:"0xD5bAc3152ffC25318F848B3DD5dA6C85171BaEEe"}},portal:{[bs]:{address:"0xF04BdD5353Bb0EFF6CA60CfcC78594278eBfE179"}},l1StandardBridge:{[bs]:{address:"0xFaE6abCAF30D23e233AC7faF747F2fC3a5a6Bfa3"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3754925}},formatters:Wi,sourceId:bs,testnet:!0}),D9=l({id:13381,name:"Phoenix Blockchain",nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},rpcUrls:{default:{http:["https://rpc.phoenixplorer.com"]}},blockExplorers:{default:{name:"Phoenixplorer",url:"https://phoenixplorer.com",apiUrl:"https://phoenixplorer.com/api"}},contracts:{multicall3:{address:"0x498cF757a575cFF2c2Ed9f532f56Efa797f86442",blockCreated:5620192}}}),_9=l({id:7070,name:"Planq Mainnet",nativeCurrency:{decimals:18,name:"PLQ",symbol:"PLQ"},rpcUrls:{default:{http:["https://planq-rpc.nodies.app","https://evm-rpc.planq.network","https://jsonrpc.planq.nodestake.top"]}},blockExplorers:{default:{name:"Planq Explorer",url:"https://evm.planq.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8470015}},testnet:!1}),L9=l({id:9745,name:"Plasma",blockTime:1e3,nativeCurrency:{name:"Plasma",symbol:"XPL",decimals:18},rpcUrls:{default:{http:["https://rpc.plasma.to"]}},blockExplorers:{default:{name:"PlasmaScan",url:"https://plasmascan.to"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),H9=l({id:9747,name:"Plasma Devnet",nativeCurrency:{name:"Devnet Plasma",symbol:"XPL",decimals:18},rpcUrls:{default:{http:["https://devnet-rpc.plasma.to"]}},testnet:!0,contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}}}),j9=l({id:9746,name:"Plasma Testnet",nativeCurrency:{name:"Testnet Plasma",symbol:"XPL",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.plasma.to"]}},blockExplorers:{default:{name:"RouteScan",url:"https://testnet.plasmascan.to"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!0}),G9=l({...Ae,id:1612127,name:"PlayFi Albireo Testnet",network:"albireo",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://albireo-rpc.playfi.ai"],webSocket:["wss://albireo-rpc-ws.playfi.ai/ws"]}},blockExplorers:{default:{name:"PlayFi Albireo Explorer",url:"https://albireo-explorer.playfi.ai"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0}),q9=l({id:242,name:"Plinga",nativeCurrency:{name:"Plinga",symbol:"PLINGA",decimals:18},rpcUrls:{default:{http:["https://rpcurl.mainnet.plgchain.com"]}},blockExplorers:{default:{name:"Plgscan",url:"https://www.plgscan.com"}},contracts:{multicall3:{address:"0x0989576160f2e7092908BB9479631b901060b6e4",blockCreated:204489}}}),V9=1,K9=l({id:98865,name:"Plume (Legacy)",nativeCurrency:{name:"Plume Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.plumenetwork.xyz"],webSocket:["wss://rpc.plumenetwork.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.plumenetwork.xyz",apiUrl:"https://explorer.plumenetwork.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:48577}},sourceId:V9}),W9=11155111,Z9=l({id:98864,name:"Plume Devnet (Legacy)",nativeCurrency:{name:"Plume Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://test-rpc.plumenetwork.xyz"],webSocket:["wss://test-rpc.plumenetwork.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://test-explorer.plumenetwork.xyz",apiUrl:"https://test-explorer.plumenetwork.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:481948}},testnet:!0,sourceId:W9}),X9=1,J9=l({id:98866,name:"Plume",nativeCurrency:{name:"Plume",symbol:"PLUME",decimals:18},rpcUrls:{default:{http:["https://rpc.plume.org"],webSocket:["wss://rpc.plume.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.plume.org",apiUrl:"https://explorer.plume.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:39679}},sourceId:X9}),Y9=11155111,Q9=l({id:98867,name:"Plume Testnet",nativeCurrency:{name:"Plume",symbol:"PLUME",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.plume.org"],webSocket:["wss://testnet-rpc.plume.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.plume.org",apiUrl:"https://testnet-explorer.plume.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:199712}},testnet:!0,sourceId:Y9}),ev=11155111,tv=l({id:161221135,name:"Plume Testnet (Legacy)",nativeCurrency:{name:"Plume Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.plumenetwork.xyz/http"],webSocket:["wss://testnet-rpc.plumenetwork.xyz/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.plumenetwork.xyz",apiUrl:"https://testnet-explorer.plumenetwork.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:6022332}},testnet:!0,sourceId:ev}),rv=l({id:631571,name:"Polter Testnet",nativeCurrency:{decimals:18,name:"Polter GHST",symbol:"GHST"},rpcUrls:{default:{http:["https://geist-polter.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Blockscout",url:"https://polter-testnet.explorer.alchemy.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11245}},testnet:!0}),nv=l({id:137,name:"Polygon",blockTime:2e3,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),sv=l({id:80002,name:"Polygon Amoy",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://rpc-amoy.polygon.technology"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://amoy.polygonscan.com",apiUrl:"https://api-amoy.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3127388}},testnet:!0}),av=l({id:80001,name:"Polygon Mumbai",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{default:{http:["https://80001.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com",apiUrl:"https://api-testnet.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0}),ov=l({id:1101,name:"Polygon zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://zkevm.polygonscan.com",apiUrl:"https://api-zkevm.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:57746}}}),iv=l({id:2442,name:"Polygon zkEVM Cardona",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.cardona.zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://cardona-zkevm.polygonscan.com",apiUrl:"https://cardona-zkevm.polygonscan.com/api"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:114091}}}),cv=l({id:1442,name:"Polygon zkEVM Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.public.zkevm-test.net"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://testnet-zkevm.polygonscan.com",apiUrl:"https://testnet-zkevm.polygonscan.com/api"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:525686}}}),lv=l({id:8008,name:"Polynomial",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.polynomial.fi"]}},blockExplorers:{default:{name:"Polynomial Scan",url:"https://polynomialscan.io"}},testnet:!1,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}}),uv=l({id:80008,name:"Polynomia Sepolia",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.sepolia.polynomial.fi"]}},blockExplorers:{default:{name:"Polynomial Scan",url:"https://sepolia.polynomialscan.io"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}}}),dv=l({id:60603,name:"POTOS Mainnet",nativeCurrency:{decimals:18,name:"POTOS Token",symbol:"POT"},rpcUrls:{default:{http:["https://rpc.potos.hk"]}},blockExplorers:{default:{name:"POTOS Mainnet explorer",url:"https://scan.potos.hk"}},testnet:!1}),pv=l({id:60600,name:"POTOS Testnet",nativeCurrency:{decimals:18,name:"POTOS Token",symbol:"POT"},rpcUrls:{default:{http:["https://rpc-testnet.potos.hk"]}},blockExplorers:{default:{name:"POTOS Testnet explorer",url:"https://scan-testnet.potos.hk"}},testnet:!0}),fv=l({id:23023,name:"PremiumBlock Testnet",nativeCurrency:{name:"Premium Block",symbol:"PBLK",decimals:18},rpcUrls:{default:{http:["https://rpc.premiumblock.org"]}},blockExplorers:{default:{name:"PremiumBlocks Explorer",url:"https://scan.premiumblock.org"}},testnet:!0}),mv=l({id:369,name:"PulseChain",nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,blockTime:1e4,rpcUrls:{default:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://ipfs.scan.pulsechain.com",apiUrl:"https://api.scan.pulsechain.com/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),hv=l({id:943,name:"PulseChain V4",testnet:!0,nativeCurrency:{name:"V4 Pulse",symbol:"v4PLS",decimals:18},blockTime:1e4,rpcUrls:{default:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.v4.testnet.pulsechain.com",apiUrl:"https://scan.v4.testnet.pulsechain.com/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),bv=l({id:490092,name:"Pumpfi Testnet",nativeCurrency:{decimals:18,name:"PMPT",symbol:"PMPT"},rpcUrls:{default:{http:["https://rpc1testnet.pumpfi.me"]}},blockExplorers:{default:{name:"Pumpfi Testnet Scan",url:"https://testnetscan.pumpfi.me"}},testnet:!0}),il=11155111,yv=l({...F,name:"Pyrope Testnet",testnet:!0,id:695569,sourceId:il,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.pyropechain.com"],webSocket:["wss://rpc.pyropechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://pyrope.blockscout.com"}},contracts:{...F.contracts,l1StandardBridge:{[il]:{address:"0xC24932c31D9621aE9e792576152B7ef010cFC2F8"}}}}),xv=l({id:766,name:"QL1",nativeCurrency:{decimals:18,name:"QOM",symbol:"QOM"},rpcUrls:{default:{http:["https://rpc.qom.one"]}},blockExplorers:{default:{name:"Ql1 Explorer",url:"https://scan.qom.one"}},contracts:{multicall3:{address:"0x7A52370716ea730585884F5BDB0f6E60C39b8C64"}},testnet:!1}),gv=l({id:35441,name:"Q Mainnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.q.org"]}},blockExplorers:{default:{name:"Q Mainnet Explorer",url:"https://explorer.q.org",apiUrl:"https://explorer.q.org/api"}}}),wv=l({id:35443,name:"Q Testnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.qtestnet.org"]}},blockExplorers:{default:{name:"Q Testnet Explorer",url:"https://explorer.qtestnet.org",apiUrl:"https://explorer.qtestnet.org/api"}},testnet:!0}),Ev=l({id:9,name:"Quai Network Mainnet",nativeCurrency:{decimals:18,name:"Quai",symbol:"QUAI"},rpcUrls:{default:{http:["https://rpc.quai.network/cyprus1"]}},blockExplorers:{default:{name:"Quaiscan",url:"https://quaiscan.io",apiUrl:"https://quaiscan.io/api"}},testnet:!1}),kv=l({id:15e3,name:"Quai Network Testnet",nativeCurrency:{decimals:18,name:"Quai",symbol:"QUAI"},rpcUrls:{default:{http:["https://orchard.rpc.quai.network/cyprus1"]}},blockExplorers:{default:{name:"Orchard Quaiscan",url:"https://orchard.quaiscan.io",apiUrl:"https://orchard.quaiscan.io/api"}},testnet:!0}),vv=l({id:5318007,name:"Reactive Lasna Testnet",nativeCurrency:{decimals:18,name:"Lasna React",symbol:"lREACT"},rpcUrls:{default:{http:["https://lasna-rpc.rnk.dev"]}},blockExplorers:{default:{name:"Reactscan",url:"https://lasna.reactscan.net"}},testnet:!0}),Cv=l({id:111188,name:"re.al",nativeCurrency:{name:"reETH",decimals:18,symbol:"reETH"},rpcUrls:{default:{http:["https://rpc.realforreal.gelato.digital"]}},blockExplorers:{default:{name:"re.al Explorer",url:"https://explorer.re.al",apiUrl:"https://explorer.re.al/api/v2"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:695}}}),Tv=l({id:151,name:"Redbelly Network Mainnet",nativeCurrency:{name:"Redbelly Native Coin",symbol:"RBNT",decimals:18},rpcUrls:{default:{http:["https://governors.mainnet.redbelly.network"]}},blockExplorers:{default:{name:"Routescan",url:"https://redbelly.routescan.io",apiUrl:"https://api.routescan.io/v2/network/mainnet/evm/151/etherscan/api"}},testnet:!1}),Av=l({id:153,name:"Redbelly Network Testnet",nativeCurrency:{name:"Redbelly Native Coin",symbol:"RBNT",decimals:18},rpcUrls:{default:{http:["https://governors.testnet.redbelly.network"]}},blockExplorers:{default:{name:"Routescan",url:"https://redbelly.testnet.routescan.io",apiUrl:"https://api.routescan.io/v2/network/testnet/evm/153_2/etherscan/api"}},testnet:!0}),Sv=l({id:50342,name:"Reddio",nativeCurrency:{name:"Reddio",symbol:"RED",decimals:18},rpcUrls:{default:{http:["https://mainnet.reddio.com/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://reddio.cloud.blockscout.com",apiUrl:"https://reddio.cloud.blockscout.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:848849}},testnet:!1}),Bv=l({id:50341,name:"Reddio Sepolia",nativeCurrency:{name:"Reddio",symbol:"RED",decimals:18},rpcUrls:{default:{http:["https://reddio-dev.reddio.com"]}},blockExplorers:{default:{name:"Reddioscan",url:"https://reddio-devnet.l2scan.co",apiUrl:"https://reddio-devnet.l2scan.co/api"}},testnet:!0}),ys=1,Uv=l({...F,name:"Redstone",id:690,sourceId:ys,nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.redstonechain.com"],webSocket:["wss://rpc.redstonechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.redstone.xyz"}},contracts:{...F.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[ys]:{address:"0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae",blockCreated:19578329}},l2OutputOracle:{[ys]:{address:"0xa426A052f657AEEefc298b3B5c35a470e4739d69",blockCreated:19578337}},l1StandardBridge:{[ys]:{address:"0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69",blockCreated:19578331}}}}),Pv=l({id:47805,name:"REI Mainnet",nativeCurrency:{decimals:18,name:"REI",symbol:"REI"},rpcUrls:{default:{http:["https://rpc.rei.network"],webSocket:["wss://rpc.rei.network"]}},blockExplorers:{default:{name:"REI Scan",url:"https://scan.rei.network"}},testnet:!1}),Iv=l({id:1729,name:"Reya Network",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.reya.network"],webSocket:["wss://ws.reya.network"]}},blockExplorers:{default:{name:"Reya Network Explorer",url:"https://explorer.reya.network"}},testnet:!1}),Fv=l({id:11155931,name:"RISE Testnet",nativeCurrency:{name:"RISE Testnet Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.riselabs.xyz"],webSocket:["wss://testnet.riselabs.xyz/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.testnet.riselabs.xyz/",apiUrl:"https://explorer.testnet.riselabs.xyz/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"}},testnet:!0}),$v=l({id:753,name:"Rivalz",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rivalz.calderachain.xyz/http"]}},blockExplorers:{default:{name:"Rivalz Caldera Explorer",url:"https://rivalz.calderaexplorer.xyz"}},testnet:!1}),Mv=l({id:570,name:"Rollux Mainnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.rollux.com"],webSocket:["wss://rpc.rollux.com/wss"]}},blockExplorers:{default:{name:"RolluxExplorer",url:"https://explorer.rollux.com",apiUrl:"https://explorer.rollux.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:119222}}}),zv=l({id:57e3,name:"Rollux Testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc-tanenbaum.rollux.com/"],webSocket:["wss://rpc-tanenbaum.rollux.com/wss"]}},blockExplorers:{default:{name:"RolluxTestnetExplorer",url:"https://rollux.tanenbaum.io",apiUrl:"https://rollux.tanenbaum.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1813675}}}),Ov=l({id:2020,name:"Ronin",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://api.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Ronin Explorer",url:"https://app.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:26023535}}}),Nv=l({id:7668,name:"The Root Network",nativeCurrency:{decimals:18,name:"XRP",symbol:"XRP"},rpcUrls:{default:{http:["https://root.rootnet.live/archive"],webSocket:["wss://root.rootnet.live/archive/ws"]}},blockExplorers:{default:{name:"Rootscan",url:"https://rootscan.io"}},contracts:{multicall3:{address:"0xc9C2E2429AeC354916c476B30d729deDdC94988d",blockCreated:9218338}}}),Rv=l({id:7672,name:"The Root Network - Porcini",nativeCurrency:{decimals:18,name:"XRP",symbol:"XRP"},rpcUrls:{default:{http:["https://porcini.rootnet.app/archive"],webSocket:["wss://porcini.rootnet.app/archive/ws"]}},blockExplorers:{default:{name:"Rootscan",url:"https://porcini.rootscan.io"}},contracts:{multicall3:{address:"0xc9C2E2429AeC354916c476B30d729deDdC94988d",blockCreated:10555692}},testnet:!0}),Dv=l({id:30,name:"Rootstock Mainnet",network:"rootstock",nativeCurrency:{decimals:18,name:"Rootstock Bitcoin",symbol:"RBTC"},rpcUrls:{default:{http:["https://public-node.rsk.co"]}},blockExplorers:{default:{name:"RSK Explorer",url:"https://explorer.rsk.co"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4249540}}}),_v=l({id:31,name:"Rootstock Testnet",network:"rootstock",nativeCurrency:{decimals:18,name:"Rootstock Bitcoin",symbol:"tRBTC"},rpcUrls:{default:{http:["https://public-node.testnet.rsk.co"]}},blockExplorers:{default:{name:"RSK Explorer",url:"https://explorer.testnet.rootstock.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2771150}},testnet:!0}),xs=1,Lv=l({...F,id:12553,name:"RSS3 VSL Mainnet",nativeCurrency:{name:"RSS3",symbol:"RSS3",decimals:18},rpcUrls:{default:{http:["https://rpc.rss3.io"]}},blockExplorers:{default:{name:"RSS3 VSL Mainnet Scan",url:"https://scan.rss3.io",apiUrl:"https://scan.rss3.io/api"}},contracts:{...F.contracts,l2OutputOracle:{[xs]:{address:"0xE6f24d2C32B3109B18ed33cF08eFb490b1e09C10"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14193},portal:{[xs]:{address:"0x6A12432491bbbE8d3babf75F759766774C778Db4",blockCreated:19387057}},l1StandardBridge:{[xs]:{address:"0x4cbab69108Aa72151EDa5A3c164eA86845f18438"}}},sourceId:xs}),gs=11155111,Hv=l({...F,id:2331,name:"RSS3 VSL Sepolia Testnet",nativeCurrency:{name:"RSS3",symbol:"RSS3",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.rss3.io"]}},blockExplorers:{default:{name:"RSS3 VSL Sepolia Testnet Scan",url:"https://scan.testnet.rss3.io",apiUrl:"https://scan.testnet.rss3.io/api"}},contracts:{...F.contracts,l2OutputOracle:{[gs]:{address:"0xDb5c46C3Eaa6Ed6aE8b2379785DF7dd029C0dC81"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:55697},portal:{[gs]:{address:"0xcBD77E8E1E7F06B25baDe67142cdE82652Da7b57",blockCreated:5345035}},l1StandardBridge:{[gs]:{address:"0xdDD29bb63B0839FB1cE0eE439Ff027738595D07B"}}},testnet:!0,sourceId:gs}),jv=l({id:7225878,name:"Saakuru Mainnet",nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.saakuru.network"]}},blockExplorers:{default:{name:"Saakuru Explorer",url:"https://explorer.saakuru.network"}},testnet:!1}),Gv=l({id:5464,name:"Saga",network:"saga",nativeCurrency:{decimals:18,name:"gas",symbol:"GAS"},rpcUrls:{default:{http:["https://sagaevm.jsonrpc.sagarpc.io"]}},blockExplorers:{default:{name:"Saga Explorer",url:"https://sagaevm.sagaexplorer.io"}},contracts:{multicall3:{address:"0x864DDc9B50B9A0dF676d826c9B9EDe9F8913a160",blockCreated:467530}}}),qv=l({id:2021,name:"Saigon Testnet",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://saigon-testnet.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Saigon Explorer",url:"https://saigon-app.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18736871}},testnet:!0}),Vv=l({id:1996,name:"Sanko",nativeCurrency:{name:"DMT",symbol:"DMT",decimals:18},rpcUrls:{default:{http:["https://mainnet.sanko.xyz"]}},blockExplorers:{default:{name:"Sanko Explorer",url:"https://explorer.sanko.xyz"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:37}},testnet:!1}),Kv=l({id:23294,name:"Oasis Sapphire",network:"sapphire",nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},rpcUrls:{default:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]}},blockExplorers:{default:{name:"Oasis Explorer",url:"https://explorer.oasis.io/mainnet/sapphire"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:734531}}}),Wv=l({id:23295,name:"Oasis Sapphire Testnet",network:"sapphire-testnet",nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},rpcUrls:{default:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]}},blockExplorers:{default:{name:"Oasis Explorer",url:"https://explorer.oasis.io/testnet/sapphire"}},testnet:!0}),Zv=l({id:3109,name:"SatoshiVM Alpha Mainnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://alpha-rpc-node-http.svmscan.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://svmscan.io",apiUrl:"https://svmscan.io/api"}}}),Xv=l({id:3110,name:"SatoshiVM Testnet",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://test-rpc-node-http.svmscan.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://testnet.svmscan.io",apiUrl:"https://testnet.svmscan.io/api"}},testnet:!0}),Jv=l({id:534352,name:"Scroll",blockTime:3e3,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://scrollscan.com",apiUrl:"https://api.scrollscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14}},testnet:!1}),Yv=l({id:534351,name:"Scroll Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.scroll.io"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://sepolia.scrollscan.com",apiUrl:"https://api-sepolia.scrollscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9473}},testnet:!0}),Qv=l({id:1329,name:"Sei Network",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc.sei-apis.com/"],webSocket:["wss://evm-ws.sei-apis.com/"]}},blockExplorers:{default:{name:"Seitrace",url:"https://seitrace.com",apiUrl:"https://seitrace.com/pacific-1/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}}}),eC=l({id:713715,name:"Sei Devnet",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc-arctic-1.sei-apis.com"]}},blockExplorers:{default:{name:"Seitrace",url:"https://seitrace.com"}},testnet:!0}),tC=l({id:5124,name:"Seismic Devnet",nativeCurrency:{name:"Seismic Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://node-2.seismicdev.net/rpc"]}},blockExplorers:{default:{name:"Seismic Devnet Explorer",url:"https://explorer-2.seismicdev.net"}},testnet:!0}),rC=l({id:1328,name:"Sei Testnet",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc-testnet.sei-apis.com"],webSocket:["wss://evm-ws-testnet.sei-apis.com"]}},blockExplorers:{default:{name:"Seitrace",url:"https://seitrace.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:98697651}},testnet:!0}),nC=l({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://11155111.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:8928790}},testnet:!0}),ws=1,sC=l({...F,id:360,name:"Shape",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.shape.network"]}},blockExplorers:{default:{name:"shapescan",url:"https://shapescan.xyz",apiUrl:"https://shapescan.xyz/api"}},contracts:{...F.contracts,l2OutputOracle:{[ws]:{address:"0x6Ef8c69CfE4635d866e3E02732068022c06e724D",blockCreated:20369940}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1},portal:{[ws]:{address:"0xEB06fFa16011B5628BaB98E29776361c83741dd3",blockCreated:20369933}},l1StandardBridge:{[ws]:{address:"0x62Edd5f4930Ea92dCa3fB81689bDD9b9d076b57B",blockCreated:20369935}}},sourceId:ws}),aC=11155111,oC=l({...F,id:11011,name:"Shape Sepolia Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.shape.network"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer-sepolia.shape.network/",apiUrl:"https://explorer-sepolia.shape.network/api/v2"}},contracts:{...F.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1}},testnet:!0,sourceId:aC}),iC=l({id:8118,name:"Shardeum",nativeCurrency:{name:"Shardeum",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://api.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer.shardeum.org"}},testnet:!1}),cC=l({id:8082,name:"Shardeum Sphinx",nativeCurrency:{name:"SHARDEUM",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://sphinx.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer-sphinx.shardeum.org"}},testnet:!0}),lC=l({id:109,name:"Shibarium",network:"shibarium",nativeCurrency:{name:"Bone",symbol:"BONE",decimals:18},rpcUrls:{default:{http:["https://rpc.shibrpc.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://shibariumscan.io"}},contracts:{multicall3:{address:"0x864Bf681ADD6052395188A89101A1B37d3B4C961",blockCreated:265900}}}),uC=l({id:157,name:"Puppynet Shibarium",nativeCurrency:{decimals:18,name:"Bone",symbol:"BONE"},rpcUrls:{default:{http:["https://puppynet.shibrpc.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://puppyscan.shib.io",apiUrl:"https://puppyscan.shib.io/api"}},contracts:{multicall3:{address:"0xA4029b74FBA366c926eDFA7Dd10B21C621170a4c",blockCreated:3035769}},testnet:!0}),dC=l({id:336,name:"Shiden",nativeCurrency:{decimals:18,name:"SDN",symbol:"SDN"},rpcUrls:{default:{http:["https://shiden.public.blastapi.io"],webSocket:["wss://shiden-rpc.dwellir.com"]}},blockExplorers:{default:{name:"Shiden Scan",url:"https://shiden.subscan.io"}},testnet:!1}),pC=l({id:148,name:"Shimmer",network:"shimmer",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{default:{http:["https://json-rpc.evm.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.shimmer.network",apiUrl:"https://explorer.evm.shimmer.network/api"}}}),fC=l({id:1073,name:"Shimmer Testnet",network:"shimmer-testnet",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{default:{http:["https://json-rpc.evm.testnet.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.testnet.shimmer.network",apiUrl:"https://explorer.evm.testnet.shimmer.network/api"}},testnet:!0}),mC=l({id:97453,name:"Sidra Chain",nativeCurrency:{decimals:18,name:"Sidra Digital Asset",symbol:"SDA"},rpcUrls:{default:{http:["https://node.sidrachain.com"]}},blockExplorers:{default:{name:"Sidra Chain Explorer",url:"https://ledger.sidrachain.com"}}}),hC=l({id:380929,name:"Silent Data Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.silentdata.com"]}},blockExplorers:{default:{name:"Silent Data Mainnet Explorer",url:"https://explorer-mainnet.rollup.silentdata.com"}},testnet:!1}),bC=l({id:2355,name:"Silicon zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.silicon.network","https://silicon-mainnet.nodeinfra.com"]}},blockExplorers:{default:{name:"SiliconScope",url:"https://scope.silicon.network"}}}),yC=l({id:1722641160,name:"Silicon Sepolia zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-sepolia.silicon.network","https://silicon-testnet.nodeinfra.com"]}},blockExplorers:{default:{name:"SiliconSepoliaScope",url:"https://scope-sepolia.silicon.network"}},testnet:!0}),xC=l({id:98,name:"Six Protocol",nativeCurrency:{decimals:18,name:"SIX",symbol:"SIX"},rpcUrls:{default:{http:["https://sixnet-rpc-evm.sixprotocol.net"]}},blockExplorers:{default:{name:"Six Protocol Scan",url:"https://sixscan.io/sixnet"}},testnet:!1}),gC=l({id:391845894,name:"SKALE | Block Brawlers",nativeCurrency:{name:"BRAWL",symbol:"BRAWL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"}},contracts:{}}),wC=l({id:1564830818,name:"SKALE Calypso Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3107626}}}),EC=l({id:974399131,name:"SKALE Calypso Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/giant-half-dual-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/giant-half-dual-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://giant-half-dual-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:103220}},testnet:!0}),kC=l({id:1026062157,name:"SKALE | CryptoBlades",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"}},contracts:{}}),vC=l({id:1032942172,name:"SKALE | Crypto Colosseum",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"}},contracts:{}}),CC=l({id:2046399126,name:"SKALE Europa Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3113495}}}),TC=l({id:1444673419,name:"SKALE Europa Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/juicy-low-small-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/juicy-low-small-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://juicy-low-small-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:110858}},testnet:!0}),AC=l({id:2139927552,name:"Exorde Network",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"}},contracts:{}}),SC=l({id:1273227453,name:"SKALE | Human Protocol",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"}},contracts:{}}),BC=l({id:1482601649,name:"SKALE Nebula Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2372986}}}),UC=l({id:37084624,name:"SKALE Nebula Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/lanky-ill-funny-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/lanky-ill-funny-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://lanky-ill-funny-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:105141}},testnet:!0}),PC=l({id:278611351,name:"SKALE | Razor Network",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"}},contracts:{}}),IC=l({id:1350216234,name:"SKALE Titan Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2076458}}}),FC=l({id:1020352220,name:"SKALE Titan Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/aware-fake-trim-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/aware-fake-trim-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://aware-fake-trim-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:104072}},testnet:!0}),$C=l({id:984123,name:"Forma Sketchpad",network:"sketchpad",nativeCurrency:{symbol:"TIA",name:"TIA",decimals:18},rpcUrls:{default:{http:["https://rpc.sketchpad-1.forma.art"],webSocket:["wss://ws.sketchpad-1.forma.art"]}},blockExplorers:{default:{name:"Sketchpad Explorer",url:"https://explorer.sketchpad-1.forma.art"}},testnet:!0}),Ir=1,MC=l({...F,id:2192,network:"snaxchain-mainnet",name:"SnaxChain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.snaxchain.io"]}},blockExplorers:{default:{name:"Snax Explorer",url:"https://explorer.snaxchain.io",apiUrl:"https://explorer.snaxchain.io/api"}},contracts:{...F.contracts,disputeGameFactory:{[Ir]:{address:"0x472562Fcf26D6b2793f8E0b0fB660ba0E5e08A46"}},l2OutputOracle:{[Ir]:{address:"0x2172e492Fc807F5d5645D0E3543f139ECF539294"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[Ir]:{address:"0x79f446D024d74D0Bb6E699C131c703463c5D65E9"}},l1StandardBridge:{[Ir]:{address:"0x6534Bdb6b5c060d3e6aa833433333135eFE8E0aA"}}},sourceId:Ir}),Fr=11155111,zC=l({...F,id:13001,network:"snaxchain-testnet",name:"SnaxChain Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.snaxchain.io"]}},blockExplorers:{default:{name:"Snax Explorer",url:"https://testnet-explorer.snaxchain.io",apiUrl:"https://testnet-explorer.snaxchain.io/api"}},contracts:{...F.contracts,disputeGameFactory:{[Fr]:{address:"0x206a75d89d45F146C54020F132FF93bEDD09f55E"}},l2OutputOracle:{[Fr]:{address:"0x60e3A368a4cdCEf85ffB964e372726F56A46221e"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[Fr]:{address:"0xb5afdd0E8dDF081Ef90e8A3e0c7b5798e66E954E"}},l1StandardBridge:{[Fr]:{address:"0xbd37E1a59D4C00C9A46F75018dffd84061bC5f74"}}},testnet:!0,sourceId:Fr}),OC=l({id:50312,name:"Somnia Testnet",nativeCurrency:{name:"STT",symbol:"STT",decimals:18},rpcUrls:{default:{http:["https://dream-rpc.somnia.network"]}},blockExplorers:{default:{name:"Somnia Testnet Explorer",url:"https://shannon-explorer.somnia.network/",apiUrl:"https://shannon-explorer.somnia.network/api"}},contracts:{multicall3:{address:"0x841b8199E6d3Db3C6f264f6C2bd8848b3cA64223",blockCreated:71314235}},testnet:!0}),$r=1,NC=l({...F,id:1868,name:"Soneium Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.soneium.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://soneium.blockscout.com",apiUrl:"https://soneium.blockscout.com/api"}},contracts:{...F.contracts,disputeGameFactory:{[$r]:{address:"0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0"}},l2OutputOracle:{[$r]:{address:"0x0000000000000000000000000000000000000000"}},portal:{[$r]:{address:"0x88e529a6ccd302c948689cd5156c83d4614fae92",blockCreated:7061266}},l1StandardBridge:{[$r]:{address:"0xeb9bf100225c214efc3e7c651ebbadcf85177607",blockCreated:7061266}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},sourceId:$r}),Mr=11155111,RC=l({...F,id:1946,name:"Soneium Minato Testnet",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.minato.soneium.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://soneium-minato.blockscout.com",apiUrl:"https://soneium-minato.blockscout.com/api"}},contracts:{...F.contracts,disputeGameFactory:{[Mr]:{address:"0xB3Ad2c38E6e0640d7ce6aA952AB3A60E81bf7a01"}},l2OutputOracle:{[Mr]:{address:"0x710e5286C746eC38beeB7538d0146f60D27be343"}},portal:{[Mr]:{address:"0x65ea1489741A5D72fFdD8e6485B216bBdcC15Af3",blockCreated:6466136}},l1StandardBridge:{[Mr]:{address:"0x5f5a404A5edabcDD80DB05E8e54A78c9EBF000C2",blockCreated:6466136}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},testnet:!0,sourceId:Mr}),DC=l({id:19,name:"Songbird Canary-Network",nativeCurrency:{decimals:18,name:"Songbird",symbol:"SGB"},rpcUrls:{default:{http:["https://songbird-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Songbird Explorer",url:"https://songbird-explorer.flare.network",apiUrl:"https://songbird-explorer.flare.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13382504}}}),_C=l({id:16,name:"Songbird Testnet Coston",nativeCurrency:{decimals:18,name:"Coston Flare",symbol:"CFLR"},rpcUrls:{default:{http:["https://coston-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston Explorer",url:"https://coston-explorer.flare.network",apiUrl:"https://coston-explorer.flare.network/api"}},testnet:!0}),LC=l({id:146,name:"Sonic",blockTime:630,nativeCurrency:{decimals:18,name:"Sonic",symbol:"S"},rpcUrls:{default:{http:["https://rpc.soniclabs.com"]}},blockExplorers:{default:{name:"Sonic Explorer",url:"https://sonicscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:60}},testnet:!1}),HC=l({id:57054,name:"Sonic Blaze Testnet",nativeCurrency:{decimals:18,name:"Sonic",symbol:"S"},rpcUrls:{default:{http:["https://rpc.blaze.soniclabs.com"]}},blockExplorers:{default:{name:"Sonic Blaze Testnet Explorer",url:"https://testnet.sonicscan.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1100}},testnet:!0}),jC=l({id:64165,name:"Sonic Testnet",nativeCurrency:{decimals:18,name:"Sonic",symbol:"S"},rpcUrls:{default:{http:["https://rpc.testnet.soniclabs.com"]}},blockExplorers:{default:{name:"Sonic Testnet Explorer",url:"https://testnet.soniclabs.com/"}},testnet:!0}),GC=l({...Ae,blockTime:200,id:50104,name:"Sophon",nativeCurrency:{decimals:18,name:"Sophon",symbol:"SOPH"},rpcUrls:{default:{http:["https://rpc.sophon.xyz"],webSocket:["wss://rpc.sophon.xyz/ws"]}},blockExplorers:{default:{name:"Sophon Block Explorer",url:"https://explorer.sophon.xyz"}},contracts:{multicall3:{address:"0x5f4867441d2416cA88B1b3fd38f21811680CD2C8",blockCreated:116}},testnet:!1}),qC=l({...Ae,blockTime:200,id:531050104,name:"Sophon Testnet",nativeCurrency:{decimals:18,name:"Sophon",symbol:"SOPH"},rpcUrls:{default:{http:["https://rpc.testnet.sophon.xyz"],webSocket:["wss://rpc.testnet.sophon.xyz/ws"]}},blockExplorers:{default:{name:"Sophon Block Explorer",url:"https://explorer.testnet.sophon.xyz"}},contracts:{multicall3:{address:"0x83c04d112adedA2C6D9037bb6ecb42E7f0b108Af",blockCreated:15642}},testnet:!0}),VC=l({id:100021,name:"Sova",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.sova.io"]}},blockExplorers:{default:{name:"Sova Block Explorer",url:"hhttps://explorer.sova.io"}},testnet:!1}),KC=l({id:120893,name:"Sova Network Sepolia",nativeCurrency:{decimals:18,name:"Sepolia Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.testnet.sova.io"]}},blockExplorers:{default:{name:"Sova Sepolia Explorer",url:"https://explorer.testnet.sova.io"}},testnet:!0}),WC=l({id:88882,name:"Chiliz Spicy Testnet",network:"chiliz-spicy-Testnet",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://spicy-rpc.chiliz.com","https://chiliz-spicy-rpc.publicnode.com"],webSocket:["wss://spicy-rpc-ws.chiliz.com","wss://chiliz-spicy-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"http://spicy-explorer.chiliz.com",apiUrl:"http://spicy-explorer.chiliz.com/api"}},testnet:!0}),cl=l({...Zi,id:1660990954,name:"Status Network Sepolia",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://public.sepolia.rpc.status.network"],webSocket:["wss://public.sepolia.rpc.status.network/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepoliascan.status.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1578364}},testnet:!0}),ZC=l({id:1234,name:"Step Network",nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},rpcUrls:{default:{http:["https://rpc.step.network"]}},blockExplorers:{default:{name:"Step Scan",url:"https://stepscan.io"}},testnet:!1}),XC=l({id:1514,name:"Story",nativeCurrency:{decimals:18,name:"IP Token",symbol:"IP"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:340998},ensRegistry:{address:"0x5dc881dda4e4a8d312be3544ad13118d1a04cb17",blockCreated:648924},ensUniversalResolver:{address:"0xddfb18888a9466688235887dec2a10c4f5effee9",blockCreated:649114}},rpcUrls:{default:{http:["https://mainnet.storyrpc.io"]}},blockExplorers:{default:{name:"Story explorer",url:"https://storyscan.io",apiUrl:"https://storyscan.io/api/v2"}},ensTlds:[".ip"],testnet:!1}),JC=l({id:1315,name:"Story Aeneid",network:"story-aeneid",nativeCurrency:{decimals:18,name:"IP",symbol:"IP"},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1792},ensRegistry:{address:"0x5dC881dDA4e4a8d312be3544AD13118D1a04Cb17",blockCreated:1322033},ensUniversalResolver:{address:"0x6D3B3F99177FB2A5de7F9E928a9BD807bF7b5BAD",blockCreated:1322097}},rpcUrls:{default:{http:["https://aeneid.storyrpc.io"]}},blockExplorers:{default:{name:"Story Aeneid Explorer",url:"https://aeneid.storyscan.io",apiUrl:"https://aeneid.storyscan.io/api/v2"}},ensTlds:[".ip"],testnet:!0}),YC=l({id:1516,name:"Story Odyssey",nativeCurrency:{decimals:18,name:"IP",symbol:"IP"},rpcUrls:{default:{http:["https://rpc.odyssey.storyrpc.io"]}},blockExplorers:{default:{name:"Story Odyssey Explorer",url:"https://odyssey.storyscan.xyz"}},testnet:!0}),QC=l({id:1513,name:"Story Testnet",nativeCurrency:{decimals:18,name:"IP",symbol:"IP"},rpcUrls:{default:{http:["https://testnet.storyrpc.io"]}},blockExplorers:{default:{name:"Story Testnet Explorer",url:"https://testnet.storyscan.xyz"}},testnet:!0}),e4=l({id:105105,name:"Stratis Mainnet",network:"stratis",nativeCurrency:{name:"Stratis",symbol:"STRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.stratisevm.com"]}},blockExplorers:{default:{name:"Stratis Explorer",url:"https://explorer.stratisevm.com"}}}),t4=l({id:8866,name:"SuperLumio",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.lumio.io"]}},blockExplorers:{default:{name:"Lumio explorer",url:"https://explorer.lumio.io"}},testnet:!1}),r4=l({id:55244,name:"Superposition",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.superposition.so"]}},blockExplorers:{default:{name:"Superposition Explorer",url:"https://explorer.superposition.so"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:39}},testnet:!1}),zr=1,n4=l({...F,id:5330,name:"Superseed",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.superseed.xyz"]}},blockExplorers:{default:{name:"Superseed Explorer",url:"https://explorer.superseed.xyz",apiUrl:"https://explorer.superseed.xyz/api/v2"}},contracts:{...F.contracts,disputeGameFactory:{[zr]:{address:"0x8b097CF1f9BbD9cbFD0DD561858a1FCbC8857Be0",blockCreated:20737481}},l2OutputOracle:{[zr]:{address:"0x693A0F8854F458D282DE3C5b69E8eE5EEE8aA949",blockCreated:20737481}},portal:{[zr]:{address:"0x2c2150aa5c75A24fB93d4fD2F2a895D618054f07",blockCreated:20737481}},l1StandardBridge:{[zr]:{address:"0x8b0576E39F1233679109F9b40cFcC2a7E0901Ede",blockCreated:20737481}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},sourceId:zr}),Ha=11155111,s4=l({...F,id:53302,name:"Superseed Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.superseed.xyz"]}},blockExplorers:{default:{name:"Superseed Sepolia Explorer",url:"https://sepolia-explorer.superseed.xyz",apiUrl:"https://sepolia-explorer.superseed.xyz/api/v2"}},contracts:{...F.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},portal:{[Ha]:{address:"0x7A0db8C51432d2C3eb4e8f360a2EeB26FF2809fB",blockCreated:5523438}},l1StandardBridge:{[Ha]:{address:"0x2B227A603fAAdB3De0ED050b63ADD232B5f2c28C",blockCreated:5523442}}},testnet:!0,sourceId:Ha}),a4=l({id:763375,name:"Surge Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://l2-rpc.hoodi.surge.wtf"],webSocket:["wss://l2-ws.hoodi.surge.wtf"]}},blockExplorers:{default:{name:"Surge Testnet Blockscout",url:"https://explorer.hoodi.surge.wtf"}},testnet:!0}),o4=l({id:254,name:"Swan Chain Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.swanchain.org"]}},blockExplorers:{default:{name:"Swan Explorer",url:"https://swanscan.io"}},testnet:!1}),i4=l({id:20241133,name:"Swan Proxima Testnet",nativeCurrency:{name:"Swan Ether",symbol:"sETH",decimals:18},rpcUrls:{default:{http:["https://rpc-proxima.swanchain.io"]}},blockExplorers:{default:{name:"Swan Explorer",url:"https://proxima-explorer.swanchain.io"}},testnet:!0}),c4=l({id:2024,name:"Swan Saturn Testnet",nativeCurrency:{name:"Swan Ether",symbol:"sETH",decimals:18},rpcUrls:{default:{http:["https://saturn-rpc.swanchain.io"]}},blockExplorers:{default:{name:"Swan Explorer",url:"https://saturn-explorer.swanchain.io"}},testnet:!0}),l4=l({...F,id:1923,name:"Swellchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://swell-mainnet.alt.technology"]}},blockExplorers:{default:{name:"Swell Explorer",url:"https://explorer.swellnetwork.io",apiUrl:"https://explorer.swellnetwork.io/api"}},contracts:{...F.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}}}),u4=l({...F,id:1924,name:"Swellchain Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://swell-testnet.alt.technology"]}},blockExplorers:{default:{name:"Swellchain Testnet Explorer",url:"https://swell-testnet-explorer.alt.technology",apiUrl:"https://swell-testnet-explorer.alt.technology/api"}},contracts:{...F.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}}}),d4=l({id:94,name:"SwissDLT Mainnet",nativeCurrency:{decimals:18,name:"BCTS",symbol:"BCTS"},rpcUrls:{default:{http:["https://rpc.swissdlt.ch"]}},blockExplorers:{default:{name:"SwissDLT Explorer",url:"https://explorer.swissdlt.ch"}},testnet:!1}),p4=l({id:57,name:"Syscoin Mainnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]}},blockExplorers:{default:{name:"SyscoinExplorer",url:"https://explorer.syscoin.org",apiUrl:"https://explorer.syscoin.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:287139}}}),f4=l({id:5700,name:"Syscoin Tanenbaum Testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]}},blockExplorers:{default:{name:"SyscoinTestnetExplorer",url:"https://tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:271288}}}),m4=l({id:239,name:"TAC",nativeCurrency:{name:"TAC",symbol:"TAC",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/tac"]}},blockExplorers:{default:{name:"Blockscout",url:"https://tac.blockscout.com",apiUrl:"https://tac.blockscout.com/api"},native:{name:"TAC Explorer",url:"https://explorer.tac.build",apiUrl:"https://explorer.tac.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}}}),h4=l({id:2391,name:"TAC SPB Testnet",nativeCurrency:{name:"TAC",symbol:"TAC",decimals:18},rpcUrls:{default:{http:["https://spb.rpc.tac.build"]}},blockExplorers:{default:{name:"TAC",url:"https://spb.explorer.tac.build",apiUrl:"https://spb.explorer.tac.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:471429}},testnet:!0}),b4=l({id:167e3,name:"Taiko Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.mainnet.taiko.xyz"],webSocket:["wss://ws.mainnet.taiko.xyz"]}},blockExplorers:{default:{name:"Taikoscan",url:"https://taikoscan.io",apiUrl:"https://api.taikoscan.io/api"}},contracts:{multicall3:{address:"0xcb2436774C3e191c85056d248EF4260ce5f27A9D"}}}),y4=l({id:167009,name:"Taiko Hekla L2",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hekla.taiko.xyz"]}},blockExplorers:{default:{name:"Taikoscan",url:"https://hekla.taikoscan.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:59757}},testnet:!0}),x4=l({id:167007,name:"Taiko Jolnir (Alpha-5 Testnet)",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.jolnir.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.jolnir.taiko.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:732706}},testnet:!0}),g4=l({id:167008,name:"Taiko Katla (Alpha-6 Testnet)",network:"tko-katla",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.katla.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.katla.taiko.xyz"}}}),w4=l({id:167005,name:"Taiko (Alpha-3 Testnet)",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.test.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.test.taiko.xyz"}}}),E4=l({id:841,name:"Taraxa Mainnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io"}}}),k4=l({id:842,name:"Taraxa Testnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io"}},testnet:!0}),v4=l({id:10218,name:"Tea Sepolia",nativeCurrency:{name:"Sepolia Tea",symbol:"TEA",decimals:18},rpcUrls:{default:{http:["https://tea-sepolia.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Tea Sepolia Explorer",url:"https://sepolia.tea.xyz"}},testnet:!0}),C4=l({id:2017,name:"Telcoin Adiri Testnet",nativeCurrency:{name:"Telcoin",symbol:"TEL",decimals:18},rpcUrls:{default:{http:["https://rpc.telcoin.network"]}},blockExplorers:{default:{name:"telscan",url:"https://telscan.io"}},testnet:!0}),T4=l({id:40,name:"Telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://rpc.telos.net"]}},blockExplorers:{default:{name:"Teloscan",url:"https://www.teloscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:246530709}}}),A4=l({id:41,name:"Telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://rpc.testnet.telos.net"]}},blockExplorers:{default:{name:"Teloscan (testnet)",url:"https://testnet.teloscan.io/"}},testnet:!0}),S4=l({id:1559,name:"Tenet",network:"tenet-mainnet",nativeCurrency:{name:"TENET",symbol:"TENET",decimals:18},rpcUrls:{default:{http:["https://rpc.tenet.org"]}},blockExplorers:{default:{name:"TenetScan Mainnet",url:"https://tenetscan.io",apiUrl:"https://tenetscan.io/api"}},testnet:!1}),B4=l({id:752025,name:"Ternoa",nativeCurrency:{name:"Capsule Coin",symbol:"CAPS",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet.zkevm.ternoa.network"]}},blockExplorers:{default:{name:"Ternoa Explorer",url:"https://explorer-mainnet.zkevm.ternoa.network"}},testnet:!1}),U4=l({id:7,name:"ThaiChain",nativeCurrency:{name:"TCH",symbol:"TCH",decimals:18},rpcUrls:{default:{http:["https://rpc.thaichain.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp.thaichain.org",apiUrl:"https://exp.thaichain.org/api"}},contracts:{multicall3:{address:"0x0DaD6130e832c21719C5CE3bae93454E16A84826",blockCreated:4806386}},testnet:!1}),P4=l({id:8428,name:"THAT Mainnet",nativeCurrency:{name:"THAT",symbol:"THAT",decimals:18},rpcUrls:{default:{http:["https://api.thatchain.io/mainnet"]}},blockExplorers:{default:{name:"Blockscout",url:"https://that.blockscout.com"}},testnet:!1}),I4=l({id:361,name:"Theta Mainnet",nativeCurrency:{name:"TFUEL",symbol:"TFUEL",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-api.thetatoken.org/rpc"]}},blockExplorers:{default:{name:"Theta Explorer",url:"https://explorer.thetatoken.org"}},testnet:!1}),F4=l({id:365,name:"Theta Testnet",nativeCurrency:{name:"TFUEL",symbol:"TFUEL",decimals:18},rpcUrls:{default:{http:["https://eth-rpc-api-testnet.thetatoken.org/rpc"]}},blockExplorers:{default:{name:"Theta Explorer",url:"https://testnet-explorer.thetatoken.org"}},testnet:!0}),$4=l({id:108,name:"ThunderCore Mainnet",nativeCurrency:{name:"TT",symbol:"TT",decimals:18},rpcUrls:{default:{http:["https://mainnet-rpc.thundercore.com"]}},blockExplorers:{default:{name:"ThunderCore Explorer",url:"https://explorer-mainnet.thundercore.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0}},testnet:!1}),M4=l({id:997,name:"5ireChain Thunder Testnet",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Thunder Explorer",url:"https://testnet.5irescan.io/"}},testnet:!0}),z4=l({id:62092,name:"TikTrix Testnet",nativeCurrency:{name:"tTTX",symbol:"tTTX",decimals:18},rpcUrls:{default:{http:["https://tiktrix-rpc.xyz"]}},blockExplorers:{default:{name:"TikTrix Testnet Explorer",url:"https://tiktrix.xyz"}},testnet:!0}),O4=l({id:6969,name:"Tomb Mainnet",nativeCurrency:{name:"TOMB",symbol:"TOMB",decimals:18},rpcUrls:{default:{http:["https://rpc.tombchain.com"]}},blockExplorers:{default:{name:"Tomb Explorer",url:"https://tombscout.com"}},testnet:!1}),N4=l({...Ae,id:61166,name:"Treasure",nativeCurrency:{decimals:18,name:"MAGIC",symbol:"MAGIC"},rpcUrls:{default:{http:["https://rpc.treasure.lol"],webSocket:["wss://rpc.treasure.lol/ws"]}},blockExplorers:{default:{name:"Treasure Block Explorer",url:"https://treasurescan.io"}},contracts:{multicall3:{address:"0x2e29fe39496a56856D8698bD43e1dF4D0CE6266a",blockCreated:101}},testnet:!1}),R4=l({...Ae,id:978658,name:"Treasure Topaz Testnet",nativeCurrency:{decimals:18,name:"MAGIC",symbol:"MAGIC"},rpcUrls:{default:{http:["https://rpc.topaz.treasure.lol"],webSocket:["wss://rpc.topaz.treasure.lol/ws"]}},blockExplorers:{default:{name:"Treasure Topaz Block Explorer",url:"https://topaz.treasurescan.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963",blockCreated:108112}},testnet:!0}),D4=l({id:728126428,name:"Tron",nativeCurrency:{name:"TRON",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://api.trongrid.io/jsonrpc"]}},blockExplorers:{default:{name:"Tronscan",url:"https://tronscan.org",apiUrl:"https://apilist.tronscanapi.com/api"}}}),_4=l({id:3448148188,name:"Tron Nile",nativeCurrency:{name:"TRON",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://nile.trongrid.io/jsonrpc"]}},blockExplorers:{default:{name:"Tronscan",url:"https://nile.tronscan.org"}},testnet:!0}),L4=l({id:2494104990,name:"Tron Shasta",nativeCurrency:{name:"TRON",symbol:"TRX",decimals:6},rpcUrls:{default:{http:["https://api.shasta.trongrid.io/jsonrpc"]}},blockExplorers:{default:{name:"Tronscan",url:"https://shasta.tronscan.org"}},testnet:!0}),H4=l({id:8,name:"Ubiq Mainnet",nativeCurrency:{name:"UBQ",symbol:"UBQ",decimals:18},rpcUrls:{default:{http:["https://pyrus2.ubiqscan.io"]}},blockExplorers:{default:{name:"Ubiq Scan",url:"https://ubiqscan.io"}},testnet:!1}),j4=l({id:19991,name:"Ultra EVM",nativeCurrency:{decimals:18,name:"Ultra Token",symbol:"UOS"},rpcUrls:{default:{http:["https://evm.ultra.eosusa.io"]}},blockExplorers:{default:{name:"Ultra EVM Explorer",url:"https://evmexplorer.ultra.io"}}}),G4=l({id:18881,name:"Ultra EVM Testnet",nativeCurrency:{decimals:18,name:"Ultra Token",symbol:"UOS"},rpcUrls:{default:{http:["https://evm.test.ultra.eosusa.io"]}},blockExplorers:{default:{name:"Ultra EVM Testnet Explorer",url:"https://evmexplorer.testnet.ultra.io"}},testnet:!0}),q4=l({id:1231,name:"Ultron Mainnet",nativeCurrency:{name:"ULX",symbol:"ULX",decimals:18},rpcUrls:{default:{http:["https://ultron-rpc.net"]}},blockExplorers:{default:{name:"Ultron Scan",url:"https://ulxscan.com"}},testnet:!1}),V4=l({id:1230,name:"Ultron Testnet",nativeCurrency:{name:"ULX",symbol:"ULX",decimals:18},rpcUrls:{default:{http:["https://ultron-dev.io"]}},blockExplorers:{default:{name:"Ultron Scan",url:"https://explorer.ultron-dev.io"}},testnet:!0}),Es=1,K4=l({...F,id:130,name:"Unichain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://mainnet.unichain.org/"]}},blockExplorers:{default:{name:"Uniscan",url:"https://uniscan.xyz",apiUrl:"https://api.uniscan.xyz/api"}},contracts:{...F.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[Es]:{address:"0x2F12d621a16e2d3285929C9996f478508951dFe4"}},portal:{[Es]:{address:"0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2"}},l1StandardBridge:{[Es]:{address:"0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA"}}},sourceId:Es}),ks=11155111,W4=l({...F,id:1301,name:"Unichain Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://sepolia.unichain.org"]}},blockExplorers:{default:{name:"Uniscan",url:"https://sepolia.uniscan.xyz",apiUrl:"https://api-sepolia.uniscan.xyz/api"}},contracts:{...F.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},portal:{[ks]:{address:"0x0d83dab629f0e0F9d36c0Cbc89B69a489f0751bD"}},l1StandardBridge:{[ks]:{address:"0xea58fcA6849d79EAd1f26608855c2D6407d54Ce2"}},disputeGameFactory:{[ks]:{address:"0xeff73e5aa3B9AEC32c659Aa3E00444d20a84394b"}}},testnet:!0,sourceId:ks}),Z4=l({id:8880,name:"Unique Mainnet",nativeCurrency:{decimals:18,name:"UNQ",symbol:"UNQ"},rpcUrls:{default:{http:["https://rpc.unique.network"]}},blockExplorers:{default:{name:"Unique Subscan",url:"https://unique.subscan.io/"}}}),X4=l({id:8882,name:"Opal Testnet",nativeCurrency:{decimals:18,name:"OPL",symbol:"OPL"},rpcUrls:{default:{http:["https://rpc-opal.unique.network"]}},blockExplorers:{default:{name:"Opal Subscan",url:"https://opal.subscan.io/"}},testnet:!0}),J4=l({id:8881,name:"Quartz Mainnet",nativeCurrency:{decimals:18,name:"QTZ",symbol:"QTZ"},rpcUrls:{default:{http:["https://rpc-quartz.unique.network"]}},blockExplorers:{default:{name:"Quartz Subscan",url:"https://quartz.subscan.io/"}}}),Y4=l({id:18233,name:"Unreal",nativeCurrency:{name:"reETH",decimals:18,symbol:"reETH"},rpcUrls:{default:{http:["https://rpc.unreal-orbit.gelato.digital"]}},blockExplorers:{default:{name:"Unreal Explorer",url:"https://unreal.blockscout.com",apiUrl:"https://unreal.blockscout.com/api/v2"}},testnet:!0,contracts:{multicall3:{address:"0x8b6B0e60D8CD84898Ea8b981065A12F876eA5677",blockCreated:1745}}}),Q4=l({id:1480,name:"Vana",blockTime:6e3,nativeCurrency:{decimals:18,name:"Vana",symbol:"VANA"},rpcUrls:{default:{http:["https://rpc.vana.org/"]}},blockExplorers:{default:{name:"Vana Block Explorer",url:"https://vanascan.io",apiUrl:"https://vanascan.io/api"}},contracts:{multicall3:{address:"0xD8d2dFca27E8797fd779F8547166A2d3B29d360E",blockCreated:716763}}}),eT=l({id:14800,name:"Vana Moksha Testnet",blockTime:6e3,nativeCurrency:{decimals:18,name:"Vana",symbol:"VANA"},rpcUrls:{default:{http:["https://rpc.moksha.vana.org"]}},blockExplorers:{default:{name:"Vana Moksha Testnet",url:"https://moksha.vanascan.io",apiUrl:"https://moksha.vanascan.io/api"}},contracts:{multicall3:{address:"0xD8d2dFca27E8797fd779F8547166A2d3B29d360E",blockCreated:732283}},testnet:!0}),tT=l({id:2040,name:"Vanar Mainnet",nativeCurrency:{name:"VANRY",symbol:"VANRY",decimals:18},rpcUrls:{default:{http:["https://rpc.vanarchain.com"]}},blockExplorers:{default:{name:"Vanar Mainnet Explorer",url:"https://explorer.vanarchain.com/"}},testnet:!1}),rT=l({id:100009,name:"Vechain",nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},rpcUrls:{default:{http:["https://mainnet.vechain.org"]}},blockExplorers:{default:{name:"Vechain Explorer",url:"https://explore.vechain.org"},vechainStats:{name:"Vechain Stats",url:"https://vechainstats.com"}}}),nT=l({id:106,name:"Velas EVM Mainnet",nativeCurrency:{name:"VLX",symbol:"VLX",decimals:18},rpcUrls:{default:{http:["https://evmexplorer.velas.com/rpc"]}},blockExplorers:{default:{name:"Velas Explorer",url:"https://evmexplorer.velas.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:55883577}},testnet:!1}),sT=l({id:88,name:"Viction",nativeCurrency:{name:"Viction",symbol:"VIC",decimals:18},rpcUrls:{default:{http:["https://rpc.viction.xyz"]}},blockExplorers:{default:{name:"VIC Scan",url:"https://vicscan.xyz"}},testnet:!1}),aT=l({id:89,name:"Viction Testnet",nativeCurrency:{name:"Viction",symbol:"VIC",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.viction.xyz"]}},blockExplorers:{default:{name:"VIC Scan",url:"https://testnet.vicscan.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:12170179}},testnet:!0}),oT=l({id:888888,name:"Vision",nativeCurrency:{name:"VISION",symbol:"VS",decimals:18},rpcUrls:{default:{http:["https://infragrid.v.network/ethereum/compatible"]}},blockExplorers:{default:{name:"Vision Scan",url:"https://visionscan.org"}},testnet:!1}),iT=l({id:666666,name:"Vision Testnet",nativeCurrency:{name:"VISION",symbol:"VS",decimals:18},rpcUrls:{default:{http:["https://vpioneer.infragrid.v.network/ethereum/compatible"]}},blockExplorers:{default:{name:"Vision Scan",url:"https://visionscan.org/?chain=vpioneer"}},testnet:!0}),cT=l({id:888,name:"Wanchain",nativeCurrency:{name:"WANCHAIN",symbol:"WAN",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]}},blockExplorers:{default:{name:"WanScan",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0xcDF6A1566e78EB4594c86Fe73Fcdc82429e97fbB",blockCreated:25312390}}}),lT=l({id:999,name:"Wanchain Testnet",nativeCurrency:{name:"WANCHAIN",symbol:"WANt",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:46891"]}},blockExplorers:{default:{name:"WanScanTest",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0x11c89bF4496c39FB80535Ffb4c92715839CC5324",blockCreated:24743448}},testnet:!0}),uT=l({id:9496,name:"WeaveVM Alphanet",nativeCurrency:{name:"Testnet WeaveVM",symbol:"tWVM",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.wvm.dev"]}},blockExplorers:{default:{name:"WeaveVM Alphanet Explorer",url:"https://explorer.wvm.dev"}},testnet:!0}),dT=l({id:1111,name:"WEMIX",network:"wemix-mainnet",nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},rpcUrls:{default:{http:["https://api.wemix.com"]}},blockExplorers:{default:{name:"wemixExplorer",url:"https://explorer.wemix.com"}}}),pT=l({id:1112,name:"WEMIX Testnet",network:"wemix-testnet",nativeCurrency:{name:"WEMIX",symbol:"tWEMIX",decimals:18},rpcUrls:{default:{http:["https://api.test.wemix.com"]}},blockExplorers:{default:{name:"wemixExplorer",url:"https://testnet.wemixscan.com",apiUrl:"https://testnet.wemixscan.com/api"}},testnet:!0}),fT=l({id:420420421,name:"Westend Asset Hub",nativeCurrency:{decimals:18,name:"Westies",symbol:"WND"},rpcUrls:{default:{http:["https://westend-asset-hub-eth-rpc.polkadot.io"]}},blockExplorers:{default:{name:"subscan",url:"https://westend-asset-hub-eth-explorer.parity.io"}},testnet:!0}),mT=l({testnet:!1,name:"Whitechain",blockExplorers:{default:{name:"Whitechain Explorer",url:"https://explorer.whitechain.io"}},id:1875,rpcUrls:{default:{http:["https://rpc.whitechain.io"]}},nativeCurrency:{decimals:18,name:"WhiteBIT Coin",symbol:"WBT"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:25212237}}}),hT=l({testnet:!0,name:"Whitechain Testnet",blockExplorers:{default:{name:"Whitechain Explorer",url:"https://testnet.whitechain.io"}},id:2625,rpcUrls:{default:{http:["https://rpc-testnet.whitechain.io"]}},nativeCurrency:{decimals:18,name:"WhiteBIT Coin",symbol:"WBT"}}),bT=l({id:42070,name:"WMC Testnet",nativeCurrency:{name:"WMTx",symbol:"WMTx",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet-base.worldmobile.net"]}},blockExplorers:{default:{name:"WMC Explorer",url:"https://explorer2-base-testnet.worldmobile.net"}},testnet:!0}),Or=1,yT=l({...F,id:480,name:"World Chain",network:"worldchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://worldchain-mainnet.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Worldscan",url:"https://worldscan.org",apiUrl:"https://api.worldscan.org/api"},blockscout:{name:"Blockscout",url:"https://worldchain-mainnet.explorer.alchemy.com",apiUrl:"https://worldchain-mainnet.explorer.alchemy.com/api"}},contracts:{...F.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[Or]:{address:"0x069c4c579671f8c120b1327a73217D01Ea2EC5ea"}},l2OutputOracle:{[Or]:{address:"0x19A6d1E9034596196295CF148509796978343c5D"}},portal:{[Or]:{address:"0xd5ec14a83B7d95BE1E2Ac12523e2dEE12Cbeea6C"}},l1StandardBridge:{[Or]:{address:"0x470458C91978D2d929704489Ad730DC3E3001113"}}},testnet:!1,sourceId:Or}),Nr=11155111,xT=l({...F,id:4801,name:"World Chain Sepolia",network:"worldchain-sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://worldchain-sepolia.g.alchemy.com/public"]}},blockExplorers:{default:{name:"Worldscan Sepolia",url:"https://sepolia.worldscan.org",apiUrl:"https://api-sepolia.worldscan.org/api"},blockscout:{name:"Blockscout",url:"https://worldchain-sepolia.explorer.alchemy.com",apiUrl:"https://worldchain-sepolia.explorer.alchemy.com/api"}},contracts:{...F.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[Nr]:{address:"0x8Ec1111f67Dad6b6A93B3F42DfBC92D81c98449A"}},l2OutputOracle:{[Nr]:{address:"0xc8886f8BAb6Eaeb215aDB5f1c686BF699248300e"}},portal:{[Nr]:{address:"0xFf6EBa109271fe6d4237EeeD4bAb1dD9A77dD1A4"}},l1StandardBridge:{[Nr]:{address:"0xd7DF54b3989855eb66497301a4aAEc33Dbb3F8DE"}}},testnet:!0,sourceId:Nr}),gT=l({id:103,name:"WorldLand Mainnet",nativeCurrency:{decimals:18,name:"WLC",symbol:"WLC"},rpcUrls:{default:{http:["https://seoul.worldland.foundation"]}},blockExplorers:{default:{name:"WorldLand Scan",url:"https://scan.worldland.foundation"}},testnet:!1}),wT=l({id:660279,name:"Xai Mainnet",nativeCurrency:{name:"Xai",symbol:"XAI",decimals:18},rpcUrls:{default:{http:["https://xai-chain.net/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.xai-chain.net"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:222549}},testnet:!1}),ET=l({id:37714555429,name:"Xai Testnet",nativeCurrency:{name:"sXai",symbol:"sXAI",decimals:18},rpcUrls:{default:{http:["https://testnet-v2.xai-chain.net/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer-v2.xai-chain.net"}},testnet:!0}),kT=l({id:50,name:"XDC Network",nativeCurrency:{decimals:18,name:"XDC",symbol:"XDC"},rpcUrls:{default:{http:["https://rpc.xdcrpc.com"]}},blockExplorers:{default:{name:"XDCScan",url:"https://xdcscan.com"}},contracts:{multicall3:{address:"0x0B1795ccA8E4eC4df02346a082df54D437F8D9aF",blockCreated:75884020}}}),vT=l({id:51,name:"Apothem Network",nativeCurrency:{decimals:18,name:"TXDC",symbol:"TXDC"},rpcUrls:{default:{http:["https://erpc.apothem.network"]}},blockExplorers:{default:{name:"XDCScan",url:"https://testnet.xdcscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:59765389}}}),CT=l({id:196,name:"X Layer Mainnet",nativeCurrency:{decimals:18,name:"OKB",symbol:"OKB"},rpcUrls:{default:{http:["https://rpc.xlayer.tech"]}},blockExplorers:{default:{name:"OKLink",url:"https://www.oklink.com/xlayer",apiUrl:"https://www.oklink.com/api/v5/explorer/xlayer/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:47416}}}),ll=l({id:195,name:"X1 Testnet",nativeCurrency:{decimals:18,name:"OKB",symbol:"OKB"},rpcUrls:{default:{http:["https://xlayertestrpc.okx.com"]}},blockExplorers:{default:{name:"OKLink",url:"https://www.oklink.com/xlayer-test"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:624344}},testnet:!0}),TT=l({id:3721,name:"Xone Chain Mainnet",nativeCurrency:{decimals:18,name:"XOC",symbol:"XOC"},rpcUrls:{default:{http:["https://rpc.xone.org"]}},blockExplorers:{default:{name:"Xone Mainnet Explorer",url:"https://xonescan.com",apiUrl:"http://api.xonescan.com/api"}},testnet:!1}),AT=l({id:33772211,name:"Xone Chain Testnet",nativeCurrency:{decimals:18,name:"XOC",symbol:"XOC"},rpcUrls:{default:{http:["https://rpc-testnet.xone.org","https://rpc-testnet.xone.plus","https://rpc-testnet.knight.center"]}},blockExplorers:{default:{name:"Xone Testnet Explorer",url:"https://testnet.xonescan.com",apiUrl:"http://api.testnet.xonescan.com/api"}},testnet:!0}),ST=l({id:20250217,name:"Xphere Mainnet",nativeCurrency:{decimals:18,name:"XP",symbol:"XP"},rpcUrls:{default:{http:["https://en-bkk.x-phere.com"]}},blockExplorers:{default:{name:"Xphere Tamsa Explorer",url:"https://xp.tamsa.io"}},testnet:!1}),BT=l({id:1998991,name:"Xphere Testnet",nativeCurrency:{decimals:18,name:"XPT",symbol:"XPT"},rpcUrls:{default:{http:["http://testnet.x-phere.com"]}},blockExplorers:{default:{name:"Xphere Tamsa Explorer",url:"https://xpt.tamsa.io"}},testnet:!0}),UT=l({id:273,name:"XR One",nativeCurrency:{decimals:18,name:"XR1",symbol:"XR1"},rpcUrls:{default:{http:["https://xr1.calderachain.xyz/http"],webSocket:["wss://xr1.calderachain.xyz/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://xr1.calderaexplorer.xyz"}},testnet:!1}),PT=l({id:1440002,name:"XRPL EVM Devnet",nativeCurrency:{name:"XRP",symbol:"XRP",decimals:18},rpcUrls:{default:{http:["https://rpc.xrplevm.org/"]},public:{http:["https://rpc.xrplevm.org/"]}},blockExplorers:{default:{name:"XRPLEVM Devnet Explorer",url:"https://explorer.xrplevm.org/"}},contracts:{multicall3:{address:"0x82Cc144D7d0AD4B1c27cb41420e82b82Ad6e9B31",blockCreated:15237286}},testnet:!0}),IT=l({id:1449e3,name:"XRPL EVM Testnet",nativeCurrency:{name:"XRP",symbol:"XRP",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.xrplevm.org"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.testnet.xrplevm.org",apiUrl:"https://explorer.testnet.xrplevm.org/api/v2"}},contracts:{multicall3:{address:"0x82Cc144D7d0AD4B1c27cb41420e82b82Ad6e9B31",blockCreated:492302}},testnet:!0}),FT=l({id:2730,name:"XR Sepolia",nativeCurrency:{decimals:18,name:"tXR",symbol:"tXR"},rpcUrls:{default:{http:["https://xr-sepolia-testnet.rpc.caldera.xyz/http"]}},blockExplorers:{default:{name:"Blockscout",url:"https://xr-sepolia-testnet.explorer.caldera.xyz"}},testnet:!0}),$T=l({id:50005,name:"Yooldo Verse",nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.yooldo-verse.xyz"]}},blockExplorers:{default:{name:"Yooldo Verse Explorer",url:"https://explorer.yooldo-verse.xyz"}}}),MT=l({id:50006,name:"Yooldo Verse Testnet",nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.yooldo-verse.xyz"]}},blockExplorers:{default:{name:"Yooldo Verse Testnet Explorer",url:"https://explorer.testnet.yooldo-verse.xyz"}},testnet:!0}),zT=l({id:8408,name:"ZenChain Testnet",nativeCurrency:{decimals:18,name:"ZTC",symbol:"ZTC"},rpcUrls:{default:{http:["https://zenchain-testnet.api.onfinality.io/public"],webSocket:["wss://zenchain-testnet.api.onfinality.io/public-ws"]}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:230019}},blockExplorers:{default:{name:"Zentrace",url:"https://zentrace.io"}},testnet:!0}),OT=l({id:383414847825,name:"Zeniq Mainnet",nativeCurrency:{name:"ZENIQ",symbol:"ZENIQ",decimals:18},rpcUrls:{default:{http:["https://api.zeniq.network"]}},blockExplorers:{default:{name:"Zeniq Explorer",url:"https://zeniqscan.com"}},testnet:!1}),NT=l({id:543210,name:"Zero Network",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zerion.io/v1/zero"]}},blockExplorers:{default:{name:"Zero Network Explorer",url:"https://explorer.zero.network"}},testnet:!1}),RT=l({id:7e3,name:"ZetaChain",nativeCurrency:{decimals:18,name:"Zeta",symbol:"ZETA"},rpcUrls:{default:{http:["https://zetachain-evm.blockpi.network/v1/rpc/public"]}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1632781}},blockExplorers:{default:{name:"ZetaScan",url:"https://zetascan.com"}},testnet:!1}),DT=l({id:7001,name:"ZetaChain Athens Testnet",nativeCurrency:{decimals:18,name:"Zeta",symbol:"aZETA"},rpcUrls:{default:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2715217}},blockExplorers:{default:{name:"ZetaScan",url:"https://testnet.zetascan.com"}},testnet:!0}),_T=l({id:1337803,name:"Zhejiang",nativeCurrency:{name:"Zhejiang Ether",symbol:"ZhejETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zhejiang.ethpandaops.io"]}},blockExplorers:{default:{name:"Beaconchain",url:"https://zhejiang.beaconcha.in"}},testnet:!0}),LT=l({id:32769,name:"Zilliqa",network:"zilliqa",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.zilliqa.com"}},testnet:!1}),HT=l({id:33101,name:"Zilliqa Testnet",network:"zilliqa-testnet",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://dev-api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.testnet.zilliqa.com"}},testnet:!0}),ja=1,jT=l({...F,id:48900,name:"Zircuit Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.zircuit.com","https://zircuit1-mainnet.liquify.com","https://zircuit1-mainnet.p2pify.com","https://zircuit-mainnet.drpc.org"]}},blockExplorers:{default:{name:"Zircuit Explorer",url:"https://explorer.zircuit.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},l2OutputOracle:{[ja]:{address:"0x92Ef6Af472b39F1b363da45E35530c24619245A4"}},portal:{[ja]:{address:"0x17bfAfA932d2e23Bd9B909Fd5B4D2e2a27043fb1"}},l1StandardBridge:{[ja]:{address:"0x386B76D9cA5F5Fb150B6BFB35CF5379B22B26dd8"}}},testnet:!1}),Ga=11155111,GT=l({...F,id:48898,name:"Zircuit Garfield Testnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://garfield-testnet.zircuit.com/"]}},blockExplorers:{default:{name:"Zircuit Garfield Testnet Explorer",url:"https://explorer.garfield-testnet.zircuit.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},l2OutputOracle:{[Ga]:{address:"0xd69D3AC5CA686cCF94b258291772bc520FEAf211"}},portal:{[Ga]:{address:"0x4E21A71Ac3F7607Da5c06153A17B1DD20E702c21"}},l1StandardBridge:{[Ga]:{address:"0x87a7E2bCA9E35BA49282E832a28A6023904460D8"}}},testnet:!0}),qa=11155111,qT=l({...F,id:48899,name:"Zircuit Testnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.zircuit.com","https://zircuit1-testnet.p2pify.com","https://zircuit1-testnet.liquify.com"]}},blockExplorers:{default:{name:"Zircuit Testnet Explorer",url:"https://explorer.testnet.zircuit.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:6040287},l2OutputOracle:{[qa]:{address:"0x740C2dac453aEf7140809F80b72bf0e647af8148"}},portal:{[qa]:{address:"0x787f1C8c5924178689E0560a43D848bF8E54b23e"}},l1StandardBridge:{[qa]:{address:"0x0545c5fe980098C16fcD0eCB5E79753afa6d9af9"}}},testnet:!0}),VT=l({id:42766,name:"ZKFair Mainnet",network:"zkfair-mainnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://scan.zkfair.io",apiUrl:"https://scan.zkfair.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6090959}},testnet:!1}),KT=l({id:43851,name:"ZKFair Testnet",network:"zkfair-testnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://testnet-rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://testnet-scan.zkfair.io"}},testnet:!0}),WT=l({id:810180,name:"zkLink Nova",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zklink.io"]}},blockExplorers:{default:{name:"zkLink Nova Block Explorer",url:"https://explorer.zklink.io"}}}),ZT=l({id:810181,name:"zkLink Nova Sepolia Testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zklink.io"]}},blockExplorers:{default:{name:"zkLink Nova Block Explorer",url:"https://sepolia.explorer.zklink.io"}}}),ul=l({...Ae,blockTime:200,id:324,name:"ZKsync Era",network:"zksync-era",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://era.zksync.network/",apiUrl:"https://api-era.zksync.network/api"},native:{name:"ZKsync Explorer",url:"https://explorer.zksync.io/",apiUrl:"https://block-explorer-api.mainnet.zksync.io/api"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:45659388}}}),dl=l({...Ae,id:260,name:"ZKsync InMemory Node",network:"zksync-in-memory-node",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:8011"]}},testnet:!0}),XT=l({...Ae,id:272,name:"ZKsync CLI Local Custom Hyperchain",nativeCurrency:{name:"BAT",symbol:"BAT",decimals:18},rpcUrls:{default:{http:["http://localhost:15200"],webSocket:["ws://localhost:15201"]}},blockExplorers:{default:{name:"ZKsync explorer",url:"http://localhost:15005/",apiUrl:"http://localhost:15005/api"}},testnet:!0}),JT=l({...Ae,id:270,name:"ZKsync CLI Local Hyperchain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:15100"],webSocket:["ws://localhost:15101"]}},blockExplorers:{default:{name:"ZKsync explorer",url:"http://localhost:15005/",apiUrl:"http://localhost:15005/api"}},testnet:!0}),YT=l({id:9,name:"ZKsync CLI Local Hyperchain L1",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:15045"]}},blockExplorers:{default:{name:"Blockscout",url:"http://localhost:15001/",apiUrl:"http://localhost:15001/api/v2"}},testnet:!0}),pl=l({...Ae,id:270,name:"ZKsync CLI Local Node",network:"zksync-cli-local-node",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:3050"]}},testnet:!0}),fl=l({...Ae,blockTime:200,id:300,name:"ZKsync Sepolia Testnet",network:"zksync-sepolia-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia-era.zksync.network/",apiUrl:"https://api-sepolia-era.zksync.network/api"},native:{name:"ZKsync Explorer",url:"https://sepolia.explorer.zksync.io/",blockExplorerApi:"https://block-explorer-api.sepolia.zksync.dev/api"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"},erc6492Verifier:{address:"0xfB688330379976DA81eB64Fe4BF50d7401763B9C",blockCreated:3855712}},testnet:!0}),vs=1,QT=l({...F,id:7777777,name:"Zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy",apiUrl:"https://explorer.zora.energy/api"}},contracts:{...F.contracts,l2OutputOracle:{[vs]:{address:"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:5882},portal:{[vs]:{address:"0x1a0ad011913A150f69f6A19DF447A0CfD9551054"}},l1StandardBridge:{[vs]:{address:"0x3e2Ea9B92B7E48A52296fD261dc26fd995284631"}}},sourceId:vs}),Cs=11155111,eA=l({...F,id:999999999,name:"Zora Sepolia",network:"zora-sepolia",nativeCurrency:{decimals:18,name:"Zora Sepolia",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]}},blockExplorers:{default:{name:"Zora Sepolia Explorer",url:"https://sepolia.explorer.zora.energy/",apiUrl:"https://sepolia.explorer.zora.energy/api"}},contracts:{...F.contracts,l2OutputOracle:{[Cs]:{address:"0x2615B481Bd3E5A1C0C7Ca3Da1bdc663E8615Ade9"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:83160},portal:{[Cs]:{address:"0xeffE2C6cA9Ab797D418f0D91eA60807713f3536f"}},l1StandardBridge:{[Cs]:{address:"0x5376f1D543dcbB5BD416c56C189e4cB7399fCcCB"}}},sourceId:Cs,testnet:!0}),ml=5,tA=l({...F,id:999,name:"Zora Goerli Testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy",apiUrl:"https://testnet.explorer.zora.energy/api"}},contracts:{...F.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:189123},portal:{[ml]:{address:"0xDb9F51790365e7dc196e7D072728df39Be958ACe"}}},sourceId:ml,testnet:!0}),rA=Object.freeze(Object.defineProperty({__proto__:null,abey:bx,abstract:Sx,abstractTestnet:Bx,acala:Ux,acria:Px,adf:Ix,agungTestnet:Fx,aioz:$x,alephZero:Mx,alephZeroTestnet:zx,alienx:Ox,alienxHalTestnet:Nx,ancient8:Hx,ancient8Sepolia:jx,anvil:Gx,apeChain:Vx,apexTestnet:Kx,arbitrum:Wx,arbitrumGoerli:Zx,arbitrumNova:Xx,arbitrumSepolia:Jx,arcTestnet:Yx,arenaz:Qx,areonNetwork:e8,areonNetworkTestnet:t8,areum:r8,artelaTestnet:n8,arthera:s8,artheraTestnet:a8,assetChain:o8,assetChainTestnet:i8,astar:c8,astarZkEVM:l8,astarZkyoto:u8,atletaOlympia:d8,aurora:p8,auroraTestnet:f8,auroria:m8,autheoTestnet:h8,avalanche:b8,avalancheFuji:y8,b3:g8,b3Sepolia:E8,bahamut:k8,base:M0,baseGoerli:T8,basePreconf:v8,baseSepolia:z0,baseSepoliaPreconf:A8,basecampTestnet:C8,beam:S8,beamTestnet:B8,bearNetworkChainMainnet:U8,bearNetworkChainTestnet:P8,berachain:I8,berachainBepolia:F8,berachainTestnet:$8,berachainTestnetbArtio:M8,bevmMainnet:z8,bifrost:O8,birdlayer:N8,bitTorrent:G8,bitTorrentTestnet:q8,bitgert:R8,bitkub:D8,bitkubTestnet:_8,bitlayer:L8,bitlayerTestnet:H8,bitrock:j8,blast:V8,blastSepolia:W8,bob:Z8,bobSepolia:Y8,boba:X8,bobaSepolia:J8,boolBetaMainnet:Q8,botanix:e3,botanixTestnet:t3,bounceBit:r3,bounceBitTestnet:n3,bronos:s3,bronosTestnet:a3,bsc:o3,bscGreenfield:i3,bscTestnet:c3,bsquared:l3,bsquaredTestnet:u3,btr:d3,btrTestnet:p3,bxn:f3,bxnTestnet:m3,cannon:h3,canto:b3,celo:S3,celoAlfajores:B3,celoSepolia:U3,chang:P3,chiliz:I3,chips:F3,citreaTestnet:$3,classic:M3,coinbit:z3,coinex:O3,confluxESpace:N3,confluxESpaceTestnet:R3,coreDao:D3,coreTestnet1:_3,coreTestnet2:L3,corn:j3,cornTestnet:q3,crab:V3,creatorTestnet:K3,creditCoin3Devnet:W3,creditCoin3Mainnet:Z3,creditCoin3Testnet:X3,cronos:J3,cronosTestnet:Y3,cronoszkEVM:Q3,cronoszkEVMTestnet:eg,crossbell:tg,crossfi:rg,curtis:ng,cyber:sg,cyberTestnet:ag,dailyNetwork:og,dailyNetworkTestnet:ig,darwinia:cg,dbkchain:lg,dchain:ug,dchainTestnet:dg,defichainEvm:pg,defichainEvmTestnet:fg,degen:mg,dfk:hg,diode:bg,disChain:yg,dodochainTestnet:xg,dogechain:gg,domaTestnet:wg,donatuz:Eg,dosChain:kg,dosChainTestnet:vg,dreyerxMainnet:Cg,dreyerxTestnet:Tg,dustboyIoT:Ag,dymension:Sg,edexa:Bg,edexaTestnet:Ug,edgeless:Pg,edgelessTestnet:Ig,edgeware:Fg,edgewareTestnet:$g,eduChain:Mg,eduChainTestnet:zg,ekta:Og,ektaTestnet:Ng,elastos:Rg,elastosTestnet:Dg,electroneum:_g,electroneumTestnet:Lg,elysiumTestnet:Hg,energy:jg,eni:Gg,eniTestnet:qg,enuls:Vg,eon:Kg,eos:Wg,eosTestnet:Zg,eteria:Xg,etherlink:Jg,etherlinkShadownetTestnet:Yg,etherlinkTestnet:Qg,ethernity:ew,etp:tw,evmos:rw,evmosTestnet:nw,excelonMainnet:sw,expanse:aw,exsat:ow,exsatTestnet:iw,fantom:cw,fantomSonicTestnet:lw,fantomTestnet:uw,fibo:dw,filecoin:pw,filecoinCalibration:fw,filecoinHyperspace:mw,fireChain:hx,flame:hw,flare:bw,flareTestnet:yw,flowMainnet:xw,flowPreviewnet:gw,flowTestnet:ww,fluence:Ew,fluenceStage:kw,fluenceTestnet:vw,fluentTestnet:Cw,form:Tw,formTestnet:Sw,forma:Aw,formicarium:Ak,forta:Bw,foundry:Uw,fraxtal:Pw,fraxtalTestnet:Iw,funkiMainnet:$w,funkiSepolia:zw,fuse:Ow,fuseSparknet:Nw,fusion:Rw,fusionTestnet:Dw,garnet:_w,gatechain:Lw,geist:Hw,genesys:jw,giwaSepolia:Gw,glideL1Protocol:qw,glideL2Protocol:Vw,gnosis:Kw,gnosisChiado:Ww,goChain:Jw,goat:Zw,gobi:Xw,godwoken:Yw,goerli:Qw,graphite:eE,graphiteTestnet:tE,gravity:rE,gunz:nE,guruNetwork:sE,guruTestnet:aE,ham:oE,happychainTestnet:iE,haqqMainnet:cE,haqqTestedge2:lE,hardhat:uE,harmonyOne:dE,hashkey:pE,hashkeyTestnet:fE,haustTestnet:mE,hedera:hE,hederaPreviewnet:bE,hederaTestnet:yE,hela:xE,heliosTestnet:gE,hemi:wE,hemiSepolia:EE,holesky:kE,hoodi:vE,hpb:CE,huddle01Mainnet:AE,huddle01Testnet:BE,humanity:UE,humanityTestnet:PE,humanode:IE,humanodeTestnet5:FE,hychain:$E,hychainTestnet:ME,hyperEvm:al,hyperliquid:al,hyperliquidEvmTestnet:zE,iSunCoin:JE,icbNetwork:OE,idchain:NE,immutableZkEvm:RE,immutableZkEvmTestnet:DE,inEVM:_E,initVerse:LE,initVerseGenesis:HE,injective:jE,injectiveTestnet:GE,ink:qE,inkSepolia:VE,iota:KE,iotaTestnet:WE,iotex:ZE,iotexTestnet:XE,jasmyChain:YE,jasmyChainTestnet:QE,jbc:e7,jbcTestnet:t7,jocMainnet:r7,jocTestnet:n7,jovay:s7,jovaySepolia:a7,juneo:o7,juneoBCH1Chain:i7,juneoDAI1Chain:c7,juneoDOGE1Chain:l7,juneoEUR1Chain:u7,juneoGLD1Chain:d7,juneoLINK1Chain:p7,juneoLTC1Chain:f7,juneoSGD1Chain:h7,juneoSocotraTestnet:b7,juneoUSD1Chain:y7,juneoUSDT1Chain:x7,juneomBTC1Chain:m7,kaia:g7,kairos:w7,kakarotSepolia:E7,kakarotStarknetSepolia:k7,kardiaChain:v7,karura:C7,katana:T7,kava:A7,kavaTestnet:S7,kcc:B7,kiiTestnetOro:U7,kinto:P7,klaytn:I7,klaytnBaobab:F7,koi:$7,kroma:M7,kromaSepolia:z7,l3x:O7,l3xTestnet:N7,lavita:R7,lens:D7,lensTestnet:_7,lestnet:L7,lightlinkPegasus:H7,lightlinkPhoenix:j7,linea:q7,lineaGoerli:V7,lineaSepolia:K7,lineaTestnet:W7,lisk:Z7,liskSepolia:X7,loadAlphanet:J7,localhost:Y7,loop:Q7,lukso:ek,luksoTestnet:tk,lumiaMainnet:rk,lumiaTestnet:nk,lumoz:sk,lumozTestnet:ak,lycan:ok,lyra:ik,mainnet:ck,mandala:lk,manta:uk,mantaSepoliaTestnet:dk,mantaTestnet:pk,mantle:fk,mantleSepoliaTestnet:mk,mantleTestnet:hk,mantraDuKongEVMTestnet:bk,mantraEVM:yk,mapProtocol:xk,matchain:gk,matchainTestnet:wk,mchVerse:Ek,megaethTestnet:kk,mekong:vk,meld:Ck,memecore:Tk,merlin:Sk,merlinErigonTestnet:Bk,metachain:Uk,metachainIstanbul:Pk,metadium:Ik,metalL2:Fk,meter:$k,meterTestnet:Mk,metis:zk,metisGoerli:Ok,metisSepolia:Nk,mev:Rk,mevTestnet:Dk,mint:_k,mintSepoliaTestnet:Lk,mitosisTestnet:Hk,mode:jk,modeTestnet:Gk,monad:qk,monadTestnet:Vk,moonbaseAlpha:Kk,moonbeam:Wk,moonbeamDev:Zk,moonriver:Xk,morph:Jk,morphHolesky:Yk,morphSepolia:Qk,nahmii:e9,nautilus:t9,near:r9,nearTestnet:n9,neonDevnet:s9,neonMainnet:a9,neoxMainnet:o9,neoxT4:i9,newton:c9,nexi:l9,nexilix:u9,nibiru:d9,nitrographTestnet:p9,nomina:f9,oasisTestnet:m9,oasys:h9,odysseyTestnet:b9,okc:y9,omax:x9,omni:g9,omniOmega:w9,oneWorld:E9,oortMainnetDev:k9,opBNB:v9,opBNBTestnet:C9,openledger:T9,optimism:A9,optimismGoerli:S9,optimismSepolia:B9,optopia:U9,optopiaTestnet:P9,orderly:I9,orderlySepolia:F9,otimDevnet:$9,palm:M9,palmTestnet:z9,peaq:O9,pgn:N9,pgnTestnet:R9,phoenix:D9,planq:_9,plasma:L9,plasmaDevnet:H9,plasmaTestnet:j9,playfiAlbireo:G9,plinga:q9,plume:K9,plumeDevnet:Z9,plumeMainnet:J9,plumeSepolia:Q9,plumeTestnet:tv,polterTestnet:rv,polygon:nv,polygonAmoy:sv,polygonMumbai:av,polygonZkEvm:ov,polygonZkEvmCardona:iv,polygonZkEvmTestnet:cv,polynomial:lv,polynomialSepolia:uv,potos:dv,potosTestnet:pv,premiumBlockTestnet:fv,pulsechain:mv,pulsechainV4:hv,pumpfiTestnet:bv,pyrope:yv,qMainnet:gv,qTestnet:wv,ql1:xv,quai:Ev,quaiTestnet:kv,reactiveTestnet:vv,real:Cv,redbellyMainnet:Tv,redbellyTestnet:Av,reddio:Sv,reddioSepolia:Bv,redstone:Uv,rei:Pv,reyaNetwork:Iv,riseTestnet:Fv,rivalz:$v,rollux:Mv,rolluxTestnet:zv,ronin:Ov,root:Nv,rootPorcini:Rv,rootstock:Dv,rootstockTestnet:_v,rss3:Lv,rss3Sepolia:Hv,saakuru:jv,saga:Gv,saigon:qv,sanko:Vv,sapphire:Kv,sapphireTestnet:Wv,satoshiVM:Zv,satoshiVMTestnet:Xv,scroll:Jv,scrollSepolia:Yv,sei:Qv,seiDevnet:eC,seiTestnet:rC,seismicDevnet:tC,sepolia:nC,shape:sC,shapeSepolia:oC,shardeum:iC,shardeumSphinx:cC,shibarium:lC,shibariumTestnet:uC,shiden:dC,shimmer:pC,shimmerTestnet:fC,sidraChain:mC,silentData:hC,silicon:bC,siliconSepolia:yC,sixProtocol:xC,skaleBlockBrawlers:gC,skaleCalypso:wC,skaleCalypsoTestnet:EC,skaleCryptoBlades:kC,skaleCryptoColosseum:vC,skaleEuropa:CC,skaleEuropaTestnet:TC,skaleExorde:AC,skaleHumanProtocol:SC,skaleNebula:BC,skaleNebulaTestnet:UC,skaleRazor:PC,skaleTitan:IC,skaleTitanTestnet:FC,sketchpad:$C,snax:MC,snaxTestnet:zC,somniaTestnet:OC,soneium:NC,soneiumMinato:RC,songbird:DC,songbirdTestnet:_C,sonic:LC,sonicBlazeTestnet:HC,sonicTestnet:jC,sophon:GC,sophonTestnet:qC,sova:VC,sovaSepolia:KC,spicy:WC,statusNetworkSepolia:cl,statusSepolia:cl,step:ZC,story:XC,storyAeneid:JC,storyOdyssey:YC,storyTestnet:QC,stratis:e4,superlumio:t4,superposition:r4,superseed:n4,superseedSepolia:s4,surgeTestnet:a4,swan:o4,swanProximaTestnet:i4,swanSaturnTestnet:c4,swellchain:l4,swellchainTestnet:u4,swissdlt:d4,syscoin:p4,syscoinTestnet:f4,tac:m4,tacSPB:h4,taiko:b4,taikoHekla:y4,taikoJolnir:x4,taikoKatla:g4,taikoTestnetSepolia:w4,taraxa:E4,taraxaTestnet:k4,teaSepolia:v4,telcoinTestnet:C4,telos:T4,telosTestnet:A4,tenet:S4,ternoa:B4,thaiChain:U4,that:P4,theta:I4,thetaTestnet:F4,thunderCore:$4,thunderTestnet:M4,tiktrixTestnet:z4,tomb:O4,treasure:N4,treasureTopaz:R4,tron:D4,tronNile:_4,tronShasta:L4,ubiq:H4,ultra:j4,ultraTestnet:G4,ultron:q4,ultronTestnet:V4,unichain:K4,unichainSepolia:W4,unique:Z4,uniqueOpal:X4,uniqueQuartz:J4,unreal:Y4,vana:Q4,vanaMoksha:eT,vanar:tT,vechain:rT,velas:nT,viction:sT,victionTestnet:aT,vision:oT,visionTestnet:iT,wanchain:cT,wanchainTestnet:lT,weaveVMAlphanet:uT,wemix:dT,wemixTestnet:pT,westendAssetHub:fT,whitechain:mT,whitechainTestnet:hT,wmcTestnet:bT,worldLand:gT,worldchain:yT,worldchainSepolia:xT,x1Testnet:ll,xLayer:CT,xLayerTestnet:ll,xai:wT,xaiTestnet:ET,xdc:kT,xdcTestnet:vT,xoneMainnet:TT,xoneTestnet:AT,xphereMainnet:ST,xphereTestnet:BT,xrOne:UT,xrSepolia:FT,xrplevmDevnet:PT,xrplevmTestnet:IT,yooldoVerse:$T,yooldoVerseTestnet:MT,zenchainTestnet:zT,zeniq:OT,zeroG:dx,zeroGGalileoTestnet:px,zeroGMainnet:fx,zeroGTestnet:mx,zeroNetwork:NT,zetachain:RT,zetachainAthensTestnet:DT,zhejiang:_T,zilliqa:LT,zilliqaTestnet:HT,zircuit:jT,zircuitGarfieldTestnet:GT,zircuitTestnet:qT,zkFair:VT,zkFairTestnet:KT,zkLinkNova:WT,zkLinkNovaSepoliaTestnet:ZT,zkSync:ul,zkSyncInMemoryNode:dl,zkSyncLocalNode:pl,zkSyncSepoliaTestnet:fl,zksync:ul,zksyncInMemoryNode:dl,zksyncLocalCustomHyperchain:XT,zksyncLocalHyperchain:JT,zksyncLocalHyperchainL1:YT,zksyncLocalNode:pl,zksyncSepoliaTestnet:fl,zora:QT,zoraSepolia:eA,zoraTestnet:tA},Symbol.toStringTag,{value:"Module"})),Lr=rA;function nA(e){return Object.entries(e).reduce((t,[r,n])=>`${t}${r}=${JSON.stringify(n)}
|
|
50
|
+
`,"")}function sA(e){return e.split(`
|
|
51
|
+
`).reduce((t,r)=>{let[n,s]=r.split("=");if(!n||!s)return t;try{s=JSON.parse(s)}catch{}return t[n]=s,t},{})}function aA(e){try{return JSON.parse(e)}catch{return!1}}function oA({chain:e,privateKey:t,mnemonic:r,rpcUrl:n}){const s=Lr[e];if(!s)throw new Error(`No matching chain for ${s}`);const a=t?Vi(t):ux(r,{addressIndex:0});let o;return s===Lr.hardhat||s===Lr.anvil?o=g5({transport:Ma(n??"http://127.0.0.1:8545",{retryCount:0}),chain:s,mode:s===Lr.hardhat?"hardhat":"anvil",account:a,key:t}).extend(tl).extend(C0):o=O5({account:a,chain:s,transport:n?Ma(n,{retryCount:0}):Ma()}).extend(tl),[{config:fb({chains:[s],client:()=>o}),account:a},s]}exports.AtomicReadyWalletRejectedUpgradeError=_u;exports.AtomicityNotSupportedError=Hu;exports.BaseError=Re;exports.BaseError$1=B;exports.BundleTooLargeError=Ru;exports.ChainDisconnectedError=Su;exports.Chains=Lr;exports.ConnectorAccountNotFoundError=Hh;exports.ConnectorChainMismatchError=jh;exports.ConnectorNotConnectedError=Lh;exports.ConnectorUnavailableReconnectingError=Gh;exports.DuplicateIdError=Mu;exports.HttpRequestError=fm;exports.HttpRequestError$1=Qt;exports.IntegerOutOfRangeError=wl;exports.InternalRpcError=au;exports.InvalidAddressError=yl;exports.InvalidBytesLengthError=D0;exports.InvalidInputRpcError=iu;exports.InvalidParamsRpcError=nu;exports.InvalidRequestRpcError=Ql;exports.JsonRpcVersionUnsupportedError=xu;exports.LimitExceededRpcError=bu;exports.LruMap=jo;exports.MethodNotFoundRpcError=tu;exports.MethodNotSupportedRpcError=mu;exports.ParseRpcError=Jl;exports.ProviderDisconnectedError=Tu;exports.ResourceNotFoundRpcError=lu;exports.ResourceUnavailableRpcError=Hr;exports.SliceOffsetOutOfBoundsError=R0;exports.SwitchChainError=Us;exports.TransactionRejectedRpcError=pu;exports.UnauthorizedProviderError=Eu;exports.UnknownBundleIdError=Ou;exports.UnknownRpcError=bm;exports.UnsupportedChainIdError=Fu;exports.UnsupportedNonOptionalCapabilityError=Pu;exports.UnsupportedProviderMethodError=vu;exports.UserRejectedRequestError=Ie;exports.boolToHex=vl;exports.bytesToHex=Ro;exports.call=Pn;exports.checksumAddress=Go;exports.concat=Ee;exports.createClient=Gd;exports.decodeErrorResult=mp;exports.encodeAbiParameters=yt;exports.envToObject=sA;exports.etherUnits=bp;exports.getAddress=Dr;exports.getDefaultExportFromCjs=qd;exports.getDeployableOptions=oA;exports.getUrl=Xs;exports.hexToBigInt=El;exports.hexToBytes=Do;exports.hexToNumber=H0;exports.isAddress=Ol;exports.isAddress$1=V;exports.isAddressEqual=hr;exports.isHex=Os;exports.isHex$1=Ue;exports.keccak256=zl;exports.keccak_256=Ds;exports.localBatchGatewayRequest=s0;exports.localBatchGatewayUrl=Fn;exports.numberToHex=jr;exports.objectToEnv=nA;exports.pad=bt;exports.padHex=gl;exports.parseAccount=Zl;exports.privateKeyToAccount=Vi;exports.secp256k1=$d;exports.sha256=id;exports.size=Va;exports.stringToHex=Cl;exports.stringify=Vo;exports.stringify$1=J;exports.toBytes=Tl;exports.toEventSelector=kn;exports.toFunctionSelector=fr;exports.toHex=kl;exports.uid=jd;exports.validateJson=aA;exports.withRetry=cd;exports.zeroAddress=Pe;
|