@boostxyz/cli 5.0.0 → 5.0.1
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-5qPuVSlX.cjs +1 -0
- package/dist/ccip-BmAT9pAw.js +153 -0
- package/dist/ccip-CovqiIHj.cjs +1 -0
- package/dist/ccip-D-TTnaIp.js +146 -0
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +2 -2
- package/dist/commands/deploy.cjs +14 -14
- package/dist/commands/deploy.js +765 -736
- package/dist/commands/seed.cjs +1 -1
- package/dist/commands/seed.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/seed-BsgCaY_s.cjs +35 -0
- package/dist/{seed-Cm5WaLFS.js → seed-D3rLsa0v.js} +1924 -1875
- package/dist/{utils-waWGGrSN.js → utils-ClgLOuAN.js} +14919 -12741
- package/dist/utils-dz3mUqTs.cjs +48 -0
- package/package.json +2 -2
- package/dist/ccip-B9F9unVM.cjs +0 -1
- package/dist/ccip-CiU-3N0C.js +0 -152
- package/dist/ccip-DvDknSPq.cjs +0 -1
- package/dist/ccip-FIyx5Qxw.js +0 -145
- package/dist/seed-DVBFwwDU.cjs +0 -35
- package/dist/utils-BLfs3EZx.cjs +0 -47
package/dist/utils-BLfs3EZx.cjs
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";const Ni="2.21.16";let pn={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:Ni},Ne=class Gs extends Error{constructor(t,r={}){var i;const n=(()=>{var c;return r.cause instanceof Gs?r.cause.details:(c=r.cause)!=null&&c.message?r.cause.message:r.details})(),s=r.cause instanceof Gs&&r.cause.docsPath||r.docsPath,a=(i=pn.getDocsUrl)==null?void 0:i.call(pn,{...r,docsPath:s}),o=[t||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...n?[`Details: ${n}`]:[],`Version: ${pn.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=Ni}walk(t){return Mi(this,t)}};function Mi(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e?Mi(e.cause,t):t?null:e}let dd=class extends Ne{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"})}},pd=class extends Ne{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed ${r} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}},fd=class extends Ne{constructor({offset:t,position:r,size:n}){super(`Slice ${r==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}},_i=class extends Ne{constructor({size:t,targetSize:r,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${r}).`,{name:"SizeExceedsPaddingSizeError"})}},hd=class extends Ne{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 Vt(e,{dir:t,size:r=32}={}){return typeof e=="string"?Ri(e,{dir:t,size:r}):md(e,{dir:t,size:r})}function Ri(e,{dir:t,size:r=32}={}){if(r===null)return e;const n=e.replace("0x","");if(n.length>r*2)throw new _i({size:Math.ceil(n.length/2),targetSize:r,type:"hex"});return`0x${n[t==="right"?"padEnd":"padStart"](r*2,"0")}`}function md(e,{dir:t,size:r=32}={}){if(r===null)return e;if(e.length>r)throw new _i({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}function ss(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function Ks(e){return ss(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const bd=new TextEncoder;function zi(e,t={}){return typeof e=="number"||typeof e=="bigint"?gd(e,t):typeof e=="boolean"?yd(e,t):ss(e)?Ia(e,t):Li(e,t)}function yd(e,t={}){const r=new Uint8Array(1);return r[0]=Number(e),typeof t.size=="number"?(Zt(r,{size:t.size}),Vt(r,{size:t.size})):r}const De={zero:48,nine:57,A:65,F:70,a:97,f:102};function Uo(e){if(e>=De.zero&&e<=De.nine)return e-De.zero;if(e>=De.A&&e<=De.F)return e-(De.A-10);if(e>=De.a&&e<=De.f)return e-(De.a-10)}function Ia(e,t={}){let r=e;t.size&&(Zt(r,{size:t.size}),r=Vt(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=Uo(n.charCodeAt(i++)),l=Uo(n.charCodeAt(i++));if(c===void 0||l===void 0)throw new Ne(`Invalid byte sequence ("${n[i-2]}${n[i-1]}" in "${n}").`);a[o]=c*16+l}return a}function gd(e,t){const r=vr(e,t);return Ia(r)}function Li(e,t={}){const r=bd.encode(e);return typeof t.size=="number"?(Zt(r,{size:t.size}),Vt(r,{dir:"right",size:t.size})):r}function Zt(e,{size:t}){if(Ks(e)>t)throw new pd({givenSize:Ks(e),maxSize:t})}function Hi(e,t={}){const{signed:r}=t;t.size&&Zt(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 xd(e,t={}){return Number(Hi(e,t))}const wd=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Di(e,t={}){return typeof e=="number"||typeof e=="bigint"?vr(e,t):typeof e=="string"?qi(e,t):typeof e=="boolean"?ji(e,t):Ua(e,t)}function ji(e,t={}){const r=`0x${Number(e)}`;return typeof t.size=="number"?(Zt(r,{size:t.size}),Vt(r,{size:t.size})):r}function Ua(e,t={}){let r="";for(let s=0;s<e.length;s++)r+=wd[e[s]];const n=`0x${r}`;return typeof t.size=="number"?(Zt(n,{size:t.size}),Vt(n,{dir:"right",size:t.size})):n}function vr(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 dd({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?Vt(i,{size:n}):i}const Ed=new TextEncoder;function qi(e,t={}){const r=Ed.encode(e);return Ua(r,t)}let Gi=class extends Ne{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"})}},Pa=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}};function Qn(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function vd(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function $e(e,...t){if(!vd(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function kd(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Qn(e.outputLen),Qn(e.blockLen)}function Mt(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 Ki(e,t){$e(e);const r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}const fn=BigInt(2**32-1),Vs=BigInt(32);function Vi(e,t=!1){return t?{h:Number(e&fn),l:Number(e>>Vs&fn)}:{h:Number(e>>Vs&fn)|0,l:Number(e&fn)|0}}function Zi(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let s=0;s<e.length;s++){const{h:a,l:o}=Vi(e[s],t);[r[s],n[s]]=[a,o]}return[r,n]}const Cd=(e,t)=>BigInt(e>>>0)<<Vs|BigInt(t>>>0),Bd=(e,t,r)=>e>>>r,Ad=(e,t,r)=>e<<32-r|t>>>r,Td=(e,t,r)=>e>>>r|t<<32-r,Sd=(e,t,r)=>e<<32-r|t>>>r,Id=(e,t,r)=>e<<64-r|t>>>r-32,Ud=(e,t,r)=>e>>>r-32|t<<64-r,Pd=(e,t)=>t,$d=(e,t)=>e,Wi=(e,t,r)=>e<<r|t>>>32-r,Xi=(e,t,r)=>t<<r|e>>>32-r,Yi=(e,t,r)=>t<<r-32|e>>>64-r,Ji=(e,t,r)=>e<<r-32|t>>>64-r;function Fd(e,t,r,n){const s=(t>>>0)+(n>>>0);return{h:e+r+(s/2**32|0)|0,l:s|0}}const Od=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),Nd=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,Md=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),_d=(e,t,r,n,s)=>t+r+n+s+(e/2**32|0)|0,Rd=(e,t,r,n,s)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(s>>>0),zd=(e,t,r,n,s,a)=>t+r+n+s+a+(e/2**32|0)|0,D={fromBig:Vi,split:Zi,toBig:Cd,shrSH:Bd,shrSL:Ad,rotrSH:Td,rotrSL:Sd,rotrBH:Id,rotrBL:Ud,rotr32H:Pd,rotr32L:$d,rotlSH:Wi,rotlSL:Xi,rotlBH:Yi,rotlBL:Ji,add:Fd,add3L:Od,add3H:Nd,add4L:Md,add4H:_d,add5H:zd,add5L:Rd},ks=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ld=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),$t=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),Me=(e,t)=>e<<32-t|e>>>t,hn=(e,t)=>e<<t|e>>>32-t>>>0,Po=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,Hd=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function $o(e){for(let t=0;t<e.length;t++)e[t]=Hd(e[t])}const Dd=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function jd(e){$e(e);let t="";for(let r=0;r<e.length;r++)t+=Dd[e[r]];return t}const je={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function Fo(e){if(e>=je._0&&e<=je._9)return e-je._0;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 qd(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("padded 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=Fo(e.charCodeAt(a)),i=Fo(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 Qi(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function as(e){return typeof e=="string"&&(e=Qi(e)),$e(e),e}function Ut(...e){let t=0;for(let n=0;n<e.length;n++){const s=e[n];$e(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}let $a=class{clone(){return this._cloneInto()}};function os(e){const t=n=>e().update(as(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function ec(e=32){if(ks&&typeof ks.getRandomValues=="function")return ks.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}const tc=[],rc=[],nc=[],Gd=BigInt(0),cr=BigInt(1),Kd=BigInt(2),Vd=BigInt(7),Zd=BigInt(256),Wd=BigInt(113);for(let e=0,t=cr,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],tc.push(2*(5*n+r)),rc.push((e+1)*(e+2)/2%64);let s=Gd;for(let a=0;a<7;a++)t=(t<<cr^(t>>Vd)*Wd)%Zd,t&Kd&&(s^=cr<<(cr<<BigInt(a))-cr);nc.push(s)}const[Xd,Yd]=Zi(nc,!0),Oo=(e,t,r)=>r>32?Yi(e,t,r):Wi(e,t,r),No=(e,t,r)=>r>32?Ji(e,t,r):Xi(e,t,r);function Jd(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,l=r[c],d=r[c+1],u=Oo(l,d,1)^r[i],p=No(l,d,1)^r[i+1];for(let g=0;g<50;g+=10)e[o+g]^=u,e[o+g+1]^=p}let s=e[2],a=e[3];for(let o=0;o<24;o++){const i=rc[o],c=Oo(s,a,i),l=No(s,a,i),d=tc[o];s=e[d],a=e[d+1],e[d]=c,e[d+1]=l}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]^=Xd[n],e[1]^=Yd[n]}r.fill(0)}class Fa extends $a{constructor(t,r,n,s=!1,a=24){if(super(),this.blockLen=t,this.suffix=r,this.outputLen=n,this.enableXOF=s,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,Qn(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=Ld(this.state)}keccak(){Po||$o(this.state32),Jd(this.state32,this.rounds),Po||$o(this.state32),this.posOut=0,this.pos=0}update(t){Mt(this);const{blockLen:r,state:n}=this;t=as(t);const 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){Mt(this,!1),$e(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 Qn(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(Ki(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,this.state.fill(0)}_cloneInto(t){const{blockLen:r,suffix:n,outputLen:s,rounds:a,enableXOF:o}=this;return t||(t=new Fa(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 Qd=(e,t,r)=>os(()=>new Fa(t,e,r)),Oa=Qd(1,136,256/8);function sc(e,t){const r=t||"hex",n=Oa(ss(e,{strict:!1})?zi(e):e);return r==="bytes"?n:Di(n)}const Cs=new Pa(8192);function Na(e,t){if(Cs.has(`${e}.${t}`))return Cs.get(`${e}.${t}`);const r=e.substring(2).toLowerCase(),n=sc(Li(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 Cs.set(`${e}.${t}`,a),a}function br(e,t){if(!ac(e,{strict:!1}))throw new Gi({address:e});return Na(e,t)}const ep=/^0x[a-fA-F0-9]{40}$/,Bs=new Pa(8192);function ac(e,t){const{strict:r=!0}=t??{},n=`${e}.${r}`;if(Bs.has(n))return Bs.get(n);const s=ep.test(e)?e.toLowerCase()===e?!0:r?Na(e)===e:!0:!1;return Bs.set(n,s),s}function oc(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}const Ma=(e,t,r)=>JSON.stringify(e,(n,s)=>typeof s=="bigint"?s.toString():s,r),ic=e=>e;let tp=class extends Ne{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: ${ic(o)}`,t&&`Request body: ${Ma(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}},rp=class extends Ne{constructor({body:t,error:r,url:n}){super("RPC Request failed.",{cause:r,details:r.message,metaMessages:[`URL: ${ic(n)}`,`Request body: ${Ma(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=r.code}};const np=-1;let he=class extends Ne{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 rp?t.code:r??np}},Wt=class extends he{constructor(t,r){super(t,r),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r.data}},cc=class lc extends he{constructor(t){super(t,{code:lc.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}};Object.defineProperty(cc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});let uc=class dc extends he{constructor(t){super(t,{code:dc.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}};Object.defineProperty(uc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});let pc=class fc extends he{constructor(t,{method:r}={}){super(t,{code:fc.code,name:"MethodNotFoundRpcError",shortMessage:`The method${r?` "${r}"`:""} does not exist / is not available.`})}};Object.defineProperty(pc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});let hc=class mc extends he{constructor(t){super(t,{code:mc.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
|
|
3
|
-
`)})}};Object.defineProperty(hc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});let bc=class yc extends he{constructor(t){super(t,{code:yc.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}};Object.defineProperty(bc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});let gc=class xc extends he{constructor(t){super(t,{code:xc.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
|
|
4
|
-
`)})}};Object.defineProperty(gc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});let wc=class Ec extends he{constructor(t){super(t,{code:Ec.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}};Object.defineProperty(wc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});let wr=class vc extends he{constructor(t){super(t,{code:vc.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}};Object.defineProperty(wr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});let kc=class Cc extends he{constructor(t){super(t,{code:Cc.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}};Object.defineProperty(kc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});let Bc=class Ac extends he{constructor(t,{method:r}={}){super(t,{code:Ac.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${r?` "${r}"`:""} is not implemented.`})}};Object.defineProperty(Bc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});let Tc=class Sc extends he{constructor(t){super(t,{code:Sc.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}};Object.defineProperty(Tc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});let Ic=class Uc extends he{constructor(t){super(t,{code:Uc.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}};Object.defineProperty(Ic,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});let Ie=class Pc extends Wt{constructor(t){super(t,{code:Pc.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}};Object.defineProperty(Ie,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});let $c=class Fc extends Wt{constructor(t){super(t,{code:Fc.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}};Object.defineProperty($c,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});let Oc=class Nc extends Wt{constructor(t,{method:r}={}){super(t,{code:Nc.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${r?` " ${r}"`:""}.`})}};Object.defineProperty(Oc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});let Mc=class _c extends Wt{constructor(t){super(t,{code:_c.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}};Object.defineProperty(Mc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});let Rc=class zc extends Wt{constructor(t){super(t,{code:zc.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}};Object.defineProperty(Rc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});let es=class Lc extends Wt{constructor(t){super(t,{code:Lc.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}};Object.defineProperty(es,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});let sp=class extends he{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}};function ap(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,l=n?0:4;e.setUint32(t+c,o,n),e.setUint32(t+l,i,n)}const op=(e,t,r)=>e&t^~e&r,ip=(e,t,r)=>e&t^e&r^t&r;let _a=class extends $a{constructor(t,r,n,s){super(),this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=$t(this.buffer)}update(t){Mt(this);const{view:r,buffer:n,blockLen:s}=this;t=as(t);const a=t.length;for(let o=0;o<a;){const i=Math.min(s-this.pos,a-o);if(i===s){const c=$t(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){Mt(this),Ki(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:s,isLE:a}=this;let{pos:o}=this;r[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>s-o&&(this.process(n,0),o=0);for(let u=o;u<s;u++)r[u]=0;ap(n,s-8,BigInt(this.length*8),a),this.process(n,0);const i=$t(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,d=this.get();if(l>d.length)throw new Error("_sha2: outputLen bigger than state");for(let u=0;u<l;u++)i.setUint32(4*u,d[u],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.length=s,t.pos=i,t.finished=a,t.destroyed=o,s%r&&t.buffer.set(n),t}};const cp=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),et=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),tt=new Uint32Array(64);class lp extends _a{constructor(){super(64,32,8,!1),this.A=et[0]|0,this.B=et[1]|0,this.C=et[2]|0,this.D=et[3]|0,this.E=et[4]|0,this.F=et[5]|0,this.G=et[6]|0,this.H=et[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 u=0;u<16;u++,r+=4)tt[u]=t.getUint32(r,!1);for(let u=16;u<64;u++){const p=tt[u-15],g=tt[u-2],b=Me(p,7)^Me(p,18)^p>>>3,f=Me(g,17)^Me(g,19)^g>>>10;tt[u]=f+tt[u-7]+b+tt[u-16]|0}let{A:n,B:s,C:a,D:o,E:i,F:c,G:l,H:d}=this;for(let u=0;u<64;u++){const p=Me(i,6)^Me(i,11)^Me(i,25),g=d+p+op(i,c,l)+cp[u]+tt[u]|0,f=(Me(n,2)^Me(n,13)^Me(n,22))+ip(n,s,a)|0;d=l,l=c,c=i,i=o+g|0,o=a,a=s,s=n,n=g+f|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,l=l+this.G|0,d=d+this.H|0,this.set(n,s,a,o,i,c,l,d)}roundClean(){tt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Xt=os(()=>new lp),up="1.0.5";let Ae=class Zs extends Error{constructor(t,r={}){var o;const n=r.cause instanceof Zs?r.cause.details:(o=r.cause)!=null&&o.message?r.cause.message:r.details,s=r.cause instanceof Zs&&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@${up}`].join(`
|
|
5
|
-
`);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 lt(e,t){const r=e.exec(t);return r==null?void 0:r.groups}const Hc=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Dc=/^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)?$/,jc=/^\(.+?\).*?$/,Mo=/^tuple(?<array>(\[(\d*)\])*)$/;function Ws(e){let t=e.type;if(Mo.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+=Ws(a),s<r-1&&(t+=", ")}const n=lt(Mo,e.type);return t+=`)${(n==null?void 0:n.array)??""}`,Ws({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function lr(e){let t="";const r=e.length;for(let n=0;n<r;n++){const s=e[n];t+=Ws(s),n!==r-1&&(t+=", ")}return t}function dp(e){return e.type==="function"?`function ${e.name}(${lr(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${e.outputs.length?` returns (${lr(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${lr(e.inputs)})`:e.type==="error"?`error ${e.name}(${lr(e.inputs)})`:e.type==="constructor"?`constructor(${lr(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?"fallback()":"receive() external payable"}const qc=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function pp(e){return qc.test(e)}function fp(e){return lt(qc,e)}const Gc=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function hp(e){return Gc.test(e)}function mp(e){return lt(Gc,e)}const Kc=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function bp(e){return Kc.test(e)}function yp(e){return lt(Kc,e)}const Vc=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function Zc(e){return Vc.test(e)}function gp(e){return lt(Vc,e)}const Wc=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function xp(e){return Wc.test(e)}function wp(e){return lt(Wc,e)}const Ep=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function vp(e){return Ep.test(e)}const kp=/^receive\(\) external payable$/;function Cp(e){return kp.test(e)}const Bp=new Set(["indexed"]),Xs=new Set(["calldata","memory","storage"]);class Ap extends Ae{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 Tp extends Ae{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 Sp extends Ae{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class Ip extends Ae{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 Up extends Ae{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 Pp extends Ae{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 $p extends Ae{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 yr extends Ae{constructor({signature:t,type:r}){super(`Invalid ${r} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class Fp extends Ae{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class Op extends Ae{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 Np extends Ae{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 Mp extends Ae{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 _p(e,t){return t?`${t}:${e}`:e}const As=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 Rp(e,t={}){if(bp(e)){const r=yp(e);if(!r)throw new yr({signature:e,type:"function"});const n=Fe(r.parameters),s=[],a=n.length;for(let i=0;i<a;i++)s.push(ft(n[i],{modifiers:Xs,structs:t,type:"function"}));const o=[];if(r.returns){const i=Fe(r.returns),c=i.length;for(let l=0;l<c;l++)o.push(ft(i[l],{modifiers:Xs,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:s,outputs:o}}if(hp(e)){const r=mp(e);if(!r)throw new yr({signature:e,type:"event"});const n=Fe(r.parameters),s=[],a=n.length;for(let o=0;o<a;o++)s.push(ft(n[o],{modifiers:Bp,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:s}}if(pp(e)){const r=fp(e);if(!r)throw new yr({signature:e,type:"error"});const n=Fe(r.parameters),s=[],a=n.length;for(let o=0;o<a;o++)s.push(ft(n[o],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:s}}if(xp(e)){const r=wp(e);if(!r)throw new yr({signature:e,type:"constructor"});const n=Fe(r.parameters),s=[],a=n.length;for(let o=0;o<a;o++)s.push(ft(n[o],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:s}}if(vp(e))return{type:"fallback"};if(Cp(e))return{type:"receive",stateMutability:"payable"};throw new Fp({signature:e})}const zp=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Lp=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Hp=/^u?int$/;function ft(e,t){var u,p;const r=_p(e,t==null?void 0:t.type);if(As.has(r))return As.get(r);const n=jc.test(e),s=lt(n?Lp:zp,e);if(!s)throw new Sp({param:e});if(s.name&&jp(s.name))throw new Ip({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,l={};if(n){c="tuple";const g=Fe(s.type),b=[],f=g.length;for(let m=0;m<f;m++)b.push(ft(g[m],{structs:i}));l={components:b}}else if(s.type in i)c="tuple",l={components:i[s.type]};else if(Hp.test(s.type))c=`${s.type}256`;else if(c=s.type,(t==null?void 0:t.type)!=="struct"&&!Xc(c))throw new Tp({type:c});if(s.modifier){if(!((p=(u=t==null?void 0:t.modifiers)==null?void 0:u.has)!=null&&p.call(u,s.modifier)))throw new Up({param:e,type:t==null?void 0:t.type,modifier:s.modifier});if(Xs.has(s.modifier)&&!qp(c,!!s.array))throw new Pp({param:e,type:t==null?void 0:t.type,modifier:s.modifier})}const d={type:`${c}${s.array??""}`,...a,...o,...l};return As.set(r,d),d}function Fe(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?Fe(i,[...t,r.trim()]):Fe(i,t,`${r}${o}`,n);case"(":return Fe(i,t,`${r}${o}`,n+1);case")":return Fe(i,t,`${r}${o}`,n-1);default:return Fe(i,t,`${r}${o}`,n)}}if(r==="")return t;if(n!==0)throw new Mp({current:r,depth:n});return t.push(r.trim()),t}function Xc(e){return e==="address"||e==="bool"||e==="function"||e==="string"||Hc.test(e)||Dc.test(e)}const Dp=/^(?: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 jp(e){return e==="address"||e==="bool"||e==="function"||e==="string"||e==="tuple"||Hc.test(e)||Dc.test(e)||Dp.test(e)}function qp(e,t){return t||e==="bytes"||e==="string"||e==="tuple"}function Gp(e){const t={},r=e.length;for(let o=0;o<r;o++){const i=e[o];if(!Zc(i))continue;const c=gp(i);if(!c)throw new yr({signature:i,type:"struct"});const l=c.properties.split(";"),d=[],u=l.length;for(let p=0;p<u;p++){const b=l[p].trim();if(!b)continue;const f=ft(b,{type:"struct"});d.push(f)}if(!d.length)throw new Op({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]=Yc(c,t)}return n}const Kp=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function Yc(e,t,r=new Set){const n=[],s=e.length;for(let a=0;a<s;a++){const o=e[a];if(jc.test(o.type))n.push(o);else{const c=lt(Kp,o.type);if(!(c!=null&&c.type))throw new $p({abiParameter:o});const{array:l,type:d}=c;if(d in t){if(r.has(d))throw new Np({type:d});n.push({...o,type:`tuple${l??""}`,components:Yc(t[d]??[],t,new Set([...r,d]))})}else if(Xc(d))n.push(o);else throw new Ap({type:d})}}return n}function Jc(e){const t=Gp(e),r=[],n=e.length;for(let s=0;s<n;s++){const a=e[s];Zc(a)||r.push(Rp(a,t))}return r}async function Vp(e){return new Promise(t=>setTimeout(t,e))}function Qc(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:l})=>{const d=typeof t=="function"?t({count:i,error:l}):t;d&&await Vp(d),o({count:i+1})};try{const l=await e();s(l)}catch(l){if(i<r&&await n({count:i,error:l}))return c({error:l});a(l)}};o()})}function Zp(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)}})()})}const Wp=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),el=new Uint8Array(new Array(16).fill(0).map((e,t)=>t)),Xp=el.map(e=>(9*e+5)%16);let Ra=[el],za=[Xp];for(let e=0;e<4;e++)for(let t of[Ra,za])t.push(t[e].map(r=>Wp[r]));const tl=[[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=>new Uint8Array(e)),Yp=Ra.map((e,t)=>e.map(r=>tl[t][r])),Jp=za.map((e,t)=>e.map(r=>tl[t][r])),Qp=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),ef=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]);function _o(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 mn=new Uint32Array(16);class tf extends _a{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 g=0;g<16;g++,r+=4)mn[g]=t.getUint32(r,!0);let n=this.h0|0,s=n,a=this.h1|0,o=a,i=this.h2|0,c=i,l=this.h3|0,d=l,u=this.h4|0,p=u;for(let g=0;g<5;g++){const b=4-g,f=Qp[g],m=ef[g],y=Ra[g],w=za[g],x=Yp[g],C=Jp[g];for(let E=0;E<16;E++){const v=hn(n+_o(g,a,i,l)+mn[y[E]]+f,x[E])+u|0;n=u,u=l,l=hn(i,10)|0,i=a,a=v}for(let E=0;E<16;E++){const v=hn(s+_o(b,o,c,d)+mn[w[E]]+m,C[E])+p|0;s=p,p=d,d=hn(c,10)|0,c=o,o=v}}this.set(this.h1+i+d|0,this.h2+l+p|0,this.h3+u+s|0,this.h4+n+o|0,this.h0+a+c|0)}roundClean(){mn.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const rf=os(()=>new tf);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const rl=BigInt(0),is=BigInt(1),nf=BigInt(2);function vt(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function Gr(e){if(!vt(e))throw new Error("Uint8Array expected")}const sf=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function _t(e){Gr(e);let t="";for(let r=0;r<e.length;r++)t+=sf[e[r]];return t}function nl(e){const t=e.toString(16);return t.length&1?`0${t}`:t}function La(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return BigInt(e===""?"0":`0x${e}`)}const qe={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function Ro(e){if(e>=qe._0&&e<=qe._9)return e-qe._0;if(e>=qe._A&&e<=qe._F)return e-(qe._A-10);if(e>=qe._a&&e<=qe._f)return e-(qe._a-10)}function Rt(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("padded 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=Ro(e.charCodeAt(a)),i=Ro(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 xt(e){return La(_t(e))}function Ha(e){return Gr(e),La(_t(Uint8Array.from(e).reverse()))}function zt(e,t){return Rt(e.toString(16).padStart(t*2,"0"))}function Da(e,t){return zt(e,t).reverse()}function af(e){return Rt(nl(e))}function Ue(e,t,r){let n;if(typeof t=="string")try{n=Rt(t)}catch(a){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${a}`)}else if(vt(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} expected ${r} bytes, got ${s}`);return n}function kr(...e){let t=0;for(let n=0;n<e.length;n++){const s=e[n];Gr(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 sl(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return r===0}function of(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function cf(e){let t;for(t=0;e>rl;e>>=is,t+=1);return t}function lf(e,t){return e>>BigInt(t)&is}function uf(e,t,r){return e|(r?is:rl)<<BigInt(t)}const ja=e=>(nf<<BigInt(e-1))-is,Ts=e=>new Uint8Array(e),zo=e=>Uint8Array.from(e);function al(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=Ts(e),s=Ts(e),a=0;const o=()=>{n.fill(1),s.fill(0),a=0},i=(...u)=>r(s,n,...u),c=(u=Ts())=>{s=i(zo([0]),u),n=i(),u.length!==0&&(s=i(zo([1]),u),n=i())},l=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let u=0;const p=[];for(;u<t;){n=i();const g=n.slice();p.push(g),u+=n.length}return kr(...p)};return(u,p)=>{o(),c(u);let g;for(;!(g=p(l()));)c();return o(),g}}const df={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"||vt(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 Kr(e,t,r={}){const n=(s,a,o)=>{const i=df[a];if(typeof i!="function")throw new Error(`Invalid validator "${a}", expected function`);const c=e[s];if(!(o&&c===void 0)&&!i(c,e))throw new Error(`Invalid param ${String(s)}=${c} (${typeof c}), expected ${a}`)};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}const pf=Object.freeze(Object.defineProperty({__proto__:null,abytes:Gr,bitGet:lf,bitLen:cf,bitMask:ja,bitSet:uf,bytesToHex:_t,bytesToNumberBE:xt,bytesToNumberLE:Ha,concatBytes:kr,createHmacDrbg:al,ensureBytes:Ue,equalBytes:sl,hexToBytes:Rt,hexToNumber:La,isBytes:vt,numberToBytesBE:zt,numberToBytesLE:Da,numberToHexUnpadded:nl,numberToVarBytesBE:af,utf8ToBytes:of,validateObject:Kr},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ne=BigInt(0),J=BigInt(1),ht=BigInt(2),ff=BigInt(3),Ys=BigInt(4),Lo=BigInt(5),Ho=BigInt(8);BigInt(9);BigInt(16);function de(e,t){const r=e%t;return r>=ne?r:t+r}function hf(e,t,r){if(r<=ne||t<ne)throw new Error("Expected power/modulo > 0");if(r===J)return ne;let n=J;for(;t>ne;)t&J&&(n=n*e%r),e=e*e%r,t>>=J;return n}function ve(e,t,r){let n=e;for(;t-- >ne;)n*=n,n%=r;return n}function Js(e,t){if(e===ne||t<=ne)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=de(e,t),n=t,s=ne,a=J;for(;r!==ne;){const i=n/r,c=n%r,l=s-a*i;n=r,r=c,s=a,a=l}if(n!==J)throw new Error("invert: does not exist");return de(s,t)}function mf(e){const t=(e-J)/ht;let r,n,s;for(r=e-J,n=0;r%ht===ne;r/=ht,n++);for(s=ht;s<e&&hf(s,t,e)!==e-J;s++);if(n===1){const o=(e+J)/Ys;return function(c,l){const d=c.pow(l,o);if(!c.eql(c.sqr(d),l))throw new Error("Cannot find square root");return d}}const a=(r+J)/ht;return function(i,c){if(i.pow(c,t)===i.neg(i.ONE))throw new Error("Cannot find square root");let l=n,d=i.pow(i.mul(i.ONE,s),r),u=i.pow(c,a),p=i.pow(c,r);for(;!i.eql(p,i.ONE);){if(i.eql(p,i.ZERO))return i.ZERO;let g=1;for(let f=i.sqr(p);g<l&&!i.eql(f,i.ONE);g++)f=i.sqr(f);const b=i.pow(d,J<<BigInt(l-g-1));d=i.sqr(b),u=i.mul(u,b),p=i.mul(p,d),l=g}return u}}function bf(e){if(e%Ys===ff){const t=(e+J)/Ys;return function(n,s){const a=n.pow(s,t);if(!n.eql(n.sqr(a),s))throw new Error("Cannot find square root");return a}}if(e%Ho===Lo){const t=(e-Lo)/Ho;return function(n,s){const a=n.mul(s,ht),o=n.pow(a,t),i=n.mul(s,o),c=n.mul(n.mul(i,ht),o),l=n.mul(i,n.sub(c,n.ONE));if(!n.eql(n.sqr(l),s))throw new Error("Cannot find square root");return l}}return mf(e)}const yf=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function gf(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=yf.reduce((n,s)=>(n[s]="function",n),t);return Kr(e,r)}function xf(e,t,r){if(r<ne)throw new Error("Expected power > 0");if(r===ne)return e.ONE;if(r===J)return t;let n=e.ONE,s=t;for(;r>ne;)r&J&&(n=e.mul(n,s)),s=e.sqr(s),r>>=J;return n}function wf(e,t){const r=new Array(t.length),n=t.reduce((a,o,i)=>e.is0(o)?a:(r[i]=a,e.mul(a,o)),e.ONE),s=e.inv(n);return t.reduceRight((a,o,i)=>e.is0(o)?a:(r[i]=e.mul(a,r[i]),e.mul(a,o)),s),r}function ol(e,t){const r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function Ef(e,t,r=!1,n={}){if(e<=ne)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:s,nByteLength:a}=ol(e,t);if(a>2048)throw new Error("Field lengths over 2048 bytes are not supported");const o=bf(e),i=Object.freeze({ORDER:e,BITS:s,BYTES:a,MASK:ja(s),ZERO:ne,ONE:J,create:c=>de(c,e),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return ne<=c&&c<e},is0:c=>c===ne,isOdd:c=>(c&J)===J,neg:c=>de(-c,e),eql:(c,l)=>c===l,sqr:c=>de(c*c,e),add:(c,l)=>de(c+l,e),sub:(c,l)=>de(c-l,e),mul:(c,l)=>de(c*l,e),pow:(c,l)=>xf(i,c,l),div:(c,l)=>de(c*Js(l,e),e),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>Js(c,e),sqrt:n.sqrt||(c=>o(i,c)),invertBatch:c=>wf(i,c),cmov:(c,l,d)=>d?l:c,toBytes:c=>r?Da(c,a):zt(c,a),fromBytes:c=>{if(c.length!==a)throw new Error(`Fp.fromBytes: expected ${a}, got ${c.length}`);return r?Ha(c):xt(c)}});return Object.freeze(i)}function il(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 cl(e){const t=il(e);return t+Math.ceil(t/2)}function vf(e,t,r=!1){const n=e.length,s=il(t),a=cl(t);if(n<16||n<a||n>1024)throw new Error(`expected ${a}-1024 bytes of input, got ${n}`);const o=r?xt(e):Ha(e),i=de(o,t-J)+J;return r?Da(i,s):zt(i,s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const kf=BigInt(0),Ss=BigInt(1);function Cf(e,t){const r=(s,a)=>{const o=a.negate();return s?o:a},n=s=>{const a=Math.ceil(t/s)+1,o=2**(s-1);return{windows:a,windowSize:o}};return{constTimeNegate:r,unsafeLadder(s,a){let o=e.ZERO,i=s;for(;a>kf;)a&Ss&&(o=o.add(i)),i=i.double(),a>>=Ss;return o},precomputeWindow(s,a){const{windows:o,windowSize:i}=n(a),c=[];let l=s,d=l;for(let u=0;u<o;u++){d=l,c.push(d);for(let p=1;p<i;p++)d=d.add(l),c.push(d);l=d.double()}return c},wNAF(s,a,o){const{windows:i,windowSize:c}=n(s);let l=e.ZERO,d=e.BASE;const u=BigInt(2**s-1),p=2**s,g=BigInt(s);for(let b=0;b<i;b++){const f=b*c;let m=Number(o&u);o>>=g,m>c&&(m-=p,o+=Ss);const y=f,w=f+Math.abs(m)-1,x=b%2!==0,C=m<0;m===0?d=d.add(r(x,a[y])):l=l.add(r(C,a[w]))}return{p:l,f:d}},wNAFCached(s,a,o,i){const c=s._WINDOW_SIZE||1;let l=a.get(s);return l||(l=this.precomputeWindow(s,c),c!==1&&a.set(s,i(l))),this.wNAF(c,l,o)}}}function ll(e){return gf(e.Fp),Kr(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...ol(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Bf(e){const t=ll(e);Kr(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:s}=t;if(r){if(!n.eql(s,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}const{bytesToNumberBE:Af,hexToBytes:Tf}=pf,yt={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(e){const{Err:t}=yt;if(e.length<2||e[0]!==2)throw new t("Invalid signature integer tag");const r=e[1],n=e.subarray(2,r+2);if(!r||n.length!==r)throw new t("Invalid signature integer: wrong length");if(n[0]&128)throw new t("Invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new t("Invalid signature integer: unnecessary leading zero");return{d:Af(n),l:e.subarray(r+2)}},toSig(e){const{Err:t}=yt,r=typeof e=="string"?Tf(e):e;Gr(r);let n=r.length;if(n<2||r[0]!=48)throw new t("Invalid signature tag");if(r[1]!==n-2)throw new t("Invalid signature: incorrect length");const{d:s,l:a}=yt._parseInt(r.subarray(2)),{d:o,l:i}=yt._parseInt(a);if(i.length)throw new t("Invalid signature: left bytes after parsing");return{r:s,s:o}},hexFromSig(e){const t=l=>Number.parseInt(l[0],16)&8?"00"+l:l,r=l=>{const d=l.toString(16);return d.length&1?`0${d}`:d},n=t(r(e.s)),s=t(r(e.r)),a=n.length/2,o=s.length/2,i=r(a),c=r(o);return`30${r(o+a+4)}02${c}${s}02${i}${n}`}},Ve=BigInt(0),Ce=BigInt(1);BigInt(2);const Do=BigInt(3);BigInt(4);function Sf(e){const t=Bf(e),{Fp:r}=t,n=t.toBytes||((b,f,m)=>{const y=f.toAffine();return kr(Uint8Array.from([4]),r.toBytes(y.x),r.toBytes(y.y))}),s=t.fromBytes||(b=>{const f=b.subarray(1),m=r.fromBytes(f.subarray(0,r.BYTES)),y=r.fromBytes(f.subarray(r.BYTES,2*r.BYTES));return{x:m,y}});function a(b){const{a:f,b:m}=t,y=r.sqr(b),w=r.mul(y,b);return r.add(r.add(w,r.mul(b,f)),m)}if(!r.eql(r.sqr(t.Gy),a(t.Gx)))throw new Error("bad generator point: equation left != right");function o(b){return typeof b=="bigint"&&Ve<b&&b<t.n}function i(b){if(!o(b))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function c(b){const{allowedPrivateKeyLengths:f,nByteLength:m,wrapPrivateKey:y,n:w}=t;if(f&&typeof b!="bigint"){if(vt(b)&&(b=_t(b)),typeof b!="string"||!f.includes(b.length))throw new Error("Invalid key");b=b.padStart(m*2,"0")}let x;try{x=typeof b=="bigint"?b:xt(Ue("private key",b,m))}catch{throw new Error(`private key must be ${m} bytes, hex or bigint, not ${typeof b}`)}return y&&(x=de(x,w)),i(x),x}const l=new Map;function d(b){if(!(b instanceof u))throw new Error("ProjectivePoint expected")}class u{constructor(f,m,y){if(this.px=f,this.py=m,this.pz=y,f==null||!r.isValid(f))throw new Error("x required");if(m==null||!r.isValid(m))throw new Error("y required");if(y==null||!r.isValid(y))throw new Error("z required")}static fromAffine(f){const{x:m,y}=f||{};if(!f||!r.isValid(m)||!r.isValid(y))throw new Error("invalid affine point");if(f instanceof u)throw new Error("projective point not allowed");const w=x=>r.eql(x,r.ZERO);return w(m)&&w(y)?u.ZERO:new u(m,y,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(f){const m=r.invertBatch(f.map(y=>y.pz));return f.map((y,w)=>y.toAffine(m[w])).map(u.fromAffine)}static fromHex(f){const m=u.fromAffine(s(Ue("pointHex",f)));return m.assertValidity(),m}static fromPrivateKey(f){return u.BASE.multiply(c(f))}_setWindowSize(f){this._WINDOW_SIZE=f,l.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:f,y:m}=this.toAffine();if(!r.isValid(f)||!r.isValid(m))throw new Error("bad point: x or y not FE");const y=r.sqr(m),w=a(f);if(!r.eql(y,w))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:f}=this.toAffine();if(r.isOdd)return!r.isOdd(f);throw new Error("Field doesn't support isOdd")}equals(f){d(f);const{px:m,py:y,pz:w}=this,{px:x,py:C,pz:E}=f,v=r.eql(r.mul(m,E),r.mul(x,w)),k=r.eql(r.mul(y,E),r.mul(C,w));return v&&k}negate(){return new u(this.px,r.neg(this.py),this.pz)}double(){const{a:f,b:m}=t,y=r.mul(m,Do),{px:w,py:x,pz:C}=this;let E=r.ZERO,v=r.ZERO,k=r.ZERO,B=r.mul(w,w),S=r.mul(x,x),$=r.mul(C,C),U=r.mul(w,x);return U=r.add(U,U),k=r.mul(w,C),k=r.add(k,k),E=r.mul(f,k),v=r.mul(y,$),v=r.add(E,v),E=r.sub(S,v),v=r.add(S,v),v=r.mul(E,v),E=r.mul(U,E),k=r.mul(y,k),$=r.mul(f,$),U=r.sub(B,$),U=r.mul(f,U),U=r.add(U,k),k=r.add(B,B),B=r.add(k,B),B=r.add(B,$),B=r.mul(B,U),v=r.add(v,B),$=r.mul(x,C),$=r.add($,$),B=r.mul($,U),E=r.sub(E,B),k=r.mul($,S),k=r.add(k,k),k=r.add(k,k),new u(E,v,k)}add(f){d(f);const{px:m,py:y,pz:w}=this,{px:x,py:C,pz:E}=f;let v=r.ZERO,k=r.ZERO,B=r.ZERO;const S=t.a,$=r.mul(t.b,Do);let U=r.mul(m,x),z=r.mul(y,C),O=r.mul(w,E),q=r.add(m,y),A=r.add(x,C);q=r.mul(q,A),A=r.add(U,z),q=r.sub(q,A),A=r.add(m,w);let T=r.add(x,E);return A=r.mul(A,T),T=r.add(U,O),A=r.sub(A,T),T=r.add(y,w),v=r.add(C,E),T=r.mul(T,v),v=r.add(z,O),T=r.sub(T,v),B=r.mul(S,A),v=r.mul($,O),B=r.add(v,B),v=r.sub(z,B),B=r.add(z,B),k=r.mul(v,B),z=r.add(U,U),z=r.add(z,U),O=r.mul(S,O),A=r.mul($,A),z=r.add(z,O),O=r.sub(U,O),O=r.mul(S,O),A=r.add(A,O),U=r.mul(z,A),k=r.add(k,U),U=r.mul(T,A),v=r.mul(q,v),v=r.sub(v,U),U=r.mul(q,z),B=r.mul(T,B),B=r.add(B,U),new u(v,k,B)}subtract(f){return this.add(f.negate())}is0(){return this.equals(u.ZERO)}wNAF(f){return g.wNAFCached(this,l,f,m=>{const y=r.invertBatch(m.map(w=>w.pz));return m.map((w,x)=>w.toAffine(y[x])).map(u.fromAffine)})}multiplyUnsafe(f){const m=u.ZERO;if(f===Ve)return m;if(i(f),f===Ce)return this;const{endo:y}=t;if(!y)return g.unsafeLadder(this,f);let{k1neg:w,k1:x,k2neg:C,k2:E}=y.splitScalar(f),v=m,k=m,B=this;for(;x>Ve||E>Ve;)x&Ce&&(v=v.add(B)),E&Ce&&(k=k.add(B)),B=B.double(),x>>=Ce,E>>=Ce;return w&&(v=v.negate()),C&&(k=k.negate()),k=new u(r.mul(k.px,y.beta),k.py,k.pz),v.add(k)}multiply(f){i(f);let m=f,y,w;const{endo:x}=t;if(x){const{k1neg:C,k1:E,k2neg:v,k2:k}=x.splitScalar(m);let{p:B,f:S}=this.wNAF(E),{p:$,f:U}=this.wNAF(k);B=g.constTimeNegate(C,B),$=g.constTimeNegate(v,$),$=new u(r.mul($.px,x.beta),$.py,$.pz),y=B.add($),w=S.add(U)}else{const{p:C,f:E}=this.wNAF(m);y=C,w=E}return u.normalizeZ([y,w])[0]}multiplyAndAddUnsafe(f,m,y){const w=u.BASE,x=(E,v)=>v===Ve||v===Ce||!E.equals(w)?E.multiplyUnsafe(v):E.multiply(v),C=x(this,m).add(x(f,y));return C.is0()?void 0:C}toAffine(f){const{px:m,py:y,pz:w}=this,x=this.is0();f==null&&(f=x?r.ONE:r.inv(w));const C=r.mul(m,f),E=r.mul(y,f),v=r.mul(w,f);if(x)return{x:r.ZERO,y:r.ZERO};if(!r.eql(v,r.ONE))throw new Error("invZ was invalid");return{x:C,y:E}}isTorsionFree(){const{h:f,isTorsionFree:m}=t;if(f===Ce)return!0;if(m)return m(u,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:f,clearCofactor:m}=t;return f===Ce?this:m?m(u,this):this.multiplyUnsafe(t.h)}toRawBytes(f=!0){return this.assertValidity(),n(u,this,f)}toHex(f=!0){return _t(this.toRawBytes(f))}}u.BASE=new u(t.Gx,t.Gy,r.ONE),u.ZERO=new u(r.ZERO,r.ONE,r.ZERO);const p=t.nBitLength,g=Cf(u,t.endo?Math.ceil(p/2):p);return{CURVE:t,ProjectivePoint:u,normPrivateKeyToScalar:c,weierstrassEquation:a,isWithinCurveOrder:o}}function If(e){const t=ll(e);return Kr(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function Uf(e){const t=If(e),{Fp:r,n}=t,s=r.BYTES+1,a=2*r.BYTES+1;function o(A){return Ve<A&&A<r.ORDER}function i(A){return de(A,n)}function c(A){return Js(A,n)}const{ProjectivePoint:l,normPrivateKeyToScalar:d,weierstrassEquation:u,isWithinCurveOrder:p}=Sf({...t,toBytes(A,T,P){const N=T.toAffine(),_=r.toBytes(N.x),H=kr;return P?H(Uint8Array.from([T.hasEvenY()?2:3]),_):H(Uint8Array.from([4]),_,r.toBytes(N.y))},fromBytes(A){const T=A.length,P=A[0],N=A.subarray(1);if(T===s&&(P===2||P===3)){const _=xt(N);if(!o(_))throw new Error("Point is not on curve");const H=u(_);let K;try{K=r.sqrt(H)}catch(W){const ie=W instanceof Error?": "+W.message:"";throw new Error("Point is not on curve"+ie)}const G=(K&Ce)===Ce;return(P&1)===1!==G&&(K=r.neg(K)),{x:_,y:K}}else if(T===a&&P===4){const _=r.fromBytes(N.subarray(0,r.BYTES)),H=r.fromBytes(N.subarray(r.BYTES,2*r.BYTES));return{x:_,y:H}}else throw new Error(`Point of length ${T} was invalid. Expected ${s} compressed bytes or ${a} uncompressed bytes`)}}),g=A=>_t(zt(A,t.nByteLength));function b(A){const T=n>>Ce;return A>T}function f(A){return b(A)?i(-A):A}const m=(A,T,P)=>xt(A.slice(T,P));class y{constructor(T,P,N){this.r=T,this.s=P,this.recovery=N,this.assertValidity()}static fromCompact(T){const P=t.nByteLength;return T=Ue("compactSignature",T,P*2),new y(m(T,0,P),m(T,P,2*P))}static fromDER(T){const{r:P,s:N}=yt.toSig(Ue("DER",T));return new y(P,N)}assertValidity(){if(!p(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!p(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(T){return new y(this.r,this.s,T)}recoverPublicKey(T){const{r:P,s:N,recovery:_}=this,H=k(Ue("msgHash",T));if(_==null||![0,1,2,3].includes(_))throw new Error("recovery id invalid");const K=_===2||_===3?P+t.n:P;if(K>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const G=_&1?"03":"02",oe=l.fromHex(G+g(K)),W=c(K),ie=i(-H*W),Se=i(N*W),ce=l.BASE.multiplyAndAddUnsafe(oe,ie,Se);if(!ce)throw new Error("point at infinify");return ce.assertValidity(),ce}hasHighS(){return b(this.s)}normalizeS(){return this.hasHighS()?new y(this.r,i(-this.s),this.recovery):this}toDERRawBytes(){return Rt(this.toDERHex())}toDERHex(){return yt.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Rt(this.toCompactHex())}toCompactHex(){return g(this.r)+g(this.s)}}const w={isValidPrivateKey(A){try{return d(A),!0}catch{return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const A=cl(t.n);return vf(t.randomBytes(A),t.n)},precompute(A=8,T=l.BASE){return T._setWindowSize(A),T.multiply(BigInt(3)),T}};function x(A,T=!0){return l.fromPrivateKey(A).toRawBytes(T)}function C(A){const T=vt(A),P=typeof A=="string",N=(T||P)&&A.length;return T?N===s||N===a:P?N===2*s||N===2*a:A instanceof l}function E(A,T,P=!0){if(C(A))throw new Error("first arg must be private key");if(!C(T))throw new Error("second arg must be public key");return l.fromHex(T).multiply(d(A)).toRawBytes(P)}const v=t.bits2int||function(A){const T=xt(A),P=A.length*8-t.nBitLength;return P>0?T>>BigInt(P):T},k=t.bits2int_modN||function(A){return i(v(A))},B=ja(t.nBitLength);function S(A){if(typeof A!="bigint")throw new Error("bigint expected");if(!(Ve<=A&&A<B))throw new Error(`bigint expected < 2^${t.nBitLength}`);return zt(A,t.nByteLength)}function $(A,T,P=U){if(["recovered","canonical"].some(le=>le in P))throw new Error("sign() legacy options not supported");const{hash:N,randomBytes:_}=t;let{lowS:H,prehash:K,extraEntropy:G}=P;H==null&&(H=!0),A=Ue("msgHash",A),K&&(A=Ue("prehashed msgHash",N(A)));const oe=k(A),W=d(T),ie=[S(W),S(oe)];if(G!=null&&G!==!1){const le=G===!0?_(r.BYTES):G;ie.push(Ue("extraEntropy",le))}const Se=kr(...ie),ce=oe;function pt(le){const ye=v(le);if(!p(ye))return;const ar=c(ye),ge=l.BASE.multiply(ye).toAffine(),X=i(ge.x);if(X===Ve)return;const xe=i(ar*i(ce+X*W));if(xe===Ve)return;let or=(ge.x===X?0:2)|Number(ge.y&Ce),ir=xe;return H&&b(xe)&&(ir=f(xe),or^=1),new y(X,ir,or)}return{seed:Se,k2sig:pt}}const U={lowS:t.lowS,prehash:!1},z={lowS:t.lowS,prehash:!1};function O(A,T,P=U){const{seed:N,k2sig:_}=$(A,T,P),H=t;return al(H.hash.outputLen,H.nByteLength,H.hmac)(N,_)}l.BASE._setWindowSize(8);function q(A,T,P,N=z){var ge;const _=A;if(T=Ue("msgHash",T),P=Ue("publicKey",P),"strict"in N)throw new Error("options.strict was renamed to lowS");const{lowS:H,prehash:K}=N;let G,oe;try{if(typeof _=="string"||vt(_))try{G=y.fromDER(_)}catch(X){if(!(X instanceof yt.Err))throw X;G=y.fromCompact(_)}else if(typeof _=="object"&&typeof _.r=="bigint"&&typeof _.s=="bigint"){const{r:X,s:xe}=_;G=new y(X,xe)}else throw new Error("PARSE");oe=l.fromHex(P)}catch(X){if(X.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(H&&G.hasHighS())return!1;K&&(T=t.hash(T));const{r:W,s:ie}=G,Se=k(T),ce=c(ie),pt=i(Se*ce),le=i(W*ce),ye=(ge=l.BASE.multiplyAndAddUnsafe(oe,pt,le))==null?void 0:ge.toAffine();return ye?i(ye.x)===W:!1}return{CURVE:t,getPublicKey:x,getSharedSecret:E,sign:O,verify:q,ProjectivePoint:l,Signature:y,utils:w}}let ul=class extends $a{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,kd(t);const n=as(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),a.fill(0)}update(t){return Mt(this),this.iHash.update(t),this}digestInto(t){Mt(this),$e(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}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}};const Cr=(e,t,r)=>new ul(e,t).update(r).digest();Cr.create=(e,t)=>new ul(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Pf(e){return{hash:e,hmac:(t,...r)=>Cr(e,t,Ut(...r)),randomBytes:ec}}function $f(e,t){const r=n=>Uf({...e,...Pf(n)});return Object.freeze({...r(t),create:r})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const dl=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),jo=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Ff=BigInt(1),Qs=BigInt(2),qo=(e,t)=>(e+t/Qs)/t;function Of(e){const t=dl,r=BigInt(3),n=BigInt(6),s=BigInt(11),a=BigInt(22),o=BigInt(23),i=BigInt(44),c=BigInt(88),l=e*e*e%t,d=l*l*e%t,u=ve(d,r,t)*d%t,p=ve(u,r,t)*d%t,g=ve(p,Qs,t)*l%t,b=ve(g,s,t)*g%t,f=ve(b,a,t)*b%t,m=ve(f,i,t)*f%t,y=ve(m,c,t)*m%t,w=ve(y,i,t)*f%t,x=ve(w,r,t)*d%t,C=ve(x,o,t)*b%t,E=ve(C,n,t)*l%t,v=ve(E,Qs,t);if(!ea.eql(ea.sqr(v),e))throw new Error("Cannot find square root");return v}const ea=Ef(dl,void 0,void 0,{sqrt:Of}),Vr=$f({a:BigInt(0),b:BigInt(7),Fp:ea,n:jo,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=jo,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-Ff*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=r,o=BigInt("0x100000000000000000000000000000000"),i=qo(a*e,t),c=qo(-n*e,t);let l=de(e-i*r-c*s,t),d=de(-i*n-c*a,t);const u=l>o,p=d>o;if(u&&(l=t-l),p&&(d=t-d),l>o||d>o)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:u,k1:l,k2neg:p,k2:d}}}},Xt);BigInt(0);Vr.ProjectivePoint;const pl=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:Vr},Symbol.toStringTag,{value:"Module"})),Wn="2.13.8",Nf=()=>`@wagmi/core@${Wn}`;var fl=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)},ts,hl;let Yt=class ta extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return Nf()}constructor(t,r={}){var a;super(),ts.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 ta?r.cause.details:(a=r.cause)!=null&&a.message?r.cause.message:r.details,s=r.cause instanceof ta&&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(`
|
|
6
|
-
`),r.cause&&(this.cause=r.cause),this.details=n,this.docsPath=s,this.metaMessages=r.metaMessages,this.shortMessage=t}walk(t){return fl(this,ts,"m",hl).call(this,this,t)}};ts=new WeakSet,hl=function e(t,r){return r!=null&&r(t)?t:t.cause?fl(this,ts,"m",e).call(this,t.cause,r):t};class ra extends Yt{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class Mf extends Yt{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class _f extends Yt{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 Rf extends Yt{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 zf extends Yt{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 na=256;let bn=na,yn;function ml(e=11){if(!yn||bn+e>na*2){yn="",bn=0;for(let t=0;t<na;t++)yn+=(256+Math.random()*256|0).toString(16).substring(1)}return yn.substring(bn,bn+++e)}function bl(e){const{batch:t,cacheTime:r=e.pollingInterval??4e3,ccipRead:n,key:s="base",name:a="Base Client",pollingInterval:o=4e3,type:i="base"}=e,c=e.chain,l=e.account?oc(e.account):void 0,{config:d,request:u,value:p}=e.transport({chain:c,pollingInterval:o}),g={...d,...p},b={account:l,batch:t,cacheTime:r,ccipRead:n,chain:c,key:s,name:a,pollingInterval:o,request:u,transport:g,type:i,uid:ml()};function f(m){return y=>{const w=y(m);for(const C in b)delete w[C];const x={...m,...w};return Object.assign(x,{extend:f(x)})}}return Object.assign(b,{extend:f(b)})}class It extends Yt{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}const Lf=/(rabby|trustwallet)/,Hf={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider(e){return e!=null&&e.coinbaseWalletExtension?e.coinbaseWalletExtension:Xn(e,"isCoinbaseWallet")}},metaMask:{id:"metaMask",name:"MetaMask",provider(e){return Xn(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:Xn(e,"isPhantom")}}};qa.type="injected";function qa(e={}){const{shimDisconnect:t=!0,unstable_shimAsyncInject:r}=e;function n(){const c=e.target;if(typeof c=="function"){const l=c();if(l)return l}return typeof c=="object"?c:typeof c=="string"?{...Hf[c]??{id:c,name:`${c[0].toUpperCase()}${c.slice(1)}`,provider:`is${c[0].toUpperCase()}${c.slice(1)}`}}:{id:"injected",name:"Injected",provider(l){return l==null?void 0:l.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 Lf.test(this.id.toLowerCase())},type:qa.type,async setup(){const l=await this.getProvider();l!=null&&l.on&&e.target&&(o||(o=this.onConnect.bind(this),l.on("connect",o)),s||(s=this.onAccountsChanged.bind(this),l.on("accountsChanged",s)))},async connect({chainId:l,isReconnecting:d}={}){var g,b,f,m,y,w;const u=await this.getProvider();if(!u)throw new It;let p=[];if(d)p=await this.getAccounts().catch(()=>[]);else if(t)try{p=(m=(f=(b=(g=(await u.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}))[0])==null?void 0:g.caveats)==null?void 0:b[0])==null?void 0:f.value)==null?void 0:m.map(C=>br(C)),p.length>0&&(p=await this.getAccounts())}catch(x){const C=x;if(C.code===Ie.code)throw new Ie(C);if(C.code===wr.code)throw C}try{!(p!=null&&p.length)&&!d&&(p=(await u.request({method:"eth_requestAccounts"})).map(E=>br(E))),o&&(u.removeListener("connect",o),o=void 0),s||(s=this.onAccountsChanged.bind(this),u.on("accountsChanged",s)),a||(a=this.onChainChanged.bind(this),u.on("chainChanged",a)),i||(i=this.onDisconnect.bind(this),u.on("disconnect",i));let x=await this.getChainId();if(l&&x!==l){const C=await this.switchChain({chainId:l}).catch(E=>{if(E.code===Ie.code)throw E;return{id:x}});x=(C==null?void 0:C.id)??x}return t&&await((y=c.storage)==null?void 0:y.removeItem(`${this.id}.disconnected`)),e.target||await((w=c.storage)==null?void 0:w.setItem("injected.connected",!0)),{accounts:p,chainId:x}}catch(x){const C=x;throw C.code===Ie.code?new Ie(C):C.code===wr.code?new wr(C):C}},async disconnect(){var d,u;const l=await this.getProvider();if(!l)throw new It;a&&(l.removeListener("chainChanged",a),a=void 0),i&&(l.removeListener("disconnect",i),i=void 0),o||(o=this.onConnect.bind(this),l.on("connect",o));try{await Zp(()=>l.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((u=c.storage)==null?void 0:u.removeItem("injected.connected"))},async getAccounts(){const l=await this.getProvider();if(!l)throw new It;return(await l.request({method:"eth_accounts"})).map(u=>br(u))},async getChainId(){const l=await this.getProvider();if(!l)throw new It;const d=await l.request({method:"eth_chainId"});return Number(d)},async getProvider(){if(typeof window>"u")return;let l;const d=n();return typeof d.provider=="function"?l=d.provider(window):typeof d.provider=="string"?l=Xn(window,d.provider):l=d.provider,l&&!l.removeListener&&("off"in l&&typeof l.off=="function"?l.removeListener=l.off:l.removeListener=()=>{}),l},async isAuthorized(){var l,d;try{if(t&&await((l=c.storage)==null?void 0:l.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 b=async()=>(typeof window<"u"&&window.removeEventListener("ethereum#initialized",b),!!await this.getProvider()),f=typeof r=="number"?r:1e3;if(await Promise.race([...typeof window<"u"?[new Promise(y=>window.addEventListener("ethereum#initialized",()=>y(b()),{once:!0}))]:[],new Promise(y=>setTimeout(()=>y(b()),f))]))return!0}throw new It}return!!(await Qc(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:l,chainId:d}){var g,b,f,m;const u=await this.getProvider();if(!u)throw new It;const p=c.chains.find(y=>y.id===d);if(!p)throw new es(new ra);try{return await Promise.all([u.request({method:"wallet_switchEthereumChain",params:[{chainId:vr(d)}]}).then(async()=>{await this.getChainId()===d&&c.emitter.emit("change",{chainId:d})}),new Promise(y=>{const w=x=>{"chainId"in x&&x.chainId===d&&(c.emitter.off("change",w),y())};c.emitter.on("change",w)})]),p}catch(y){const w=y;if(w.code===4902||((b=(g=w==null?void 0:w.data)==null?void 0:g.originalError)==null?void 0:b.code)===4902)try{const{default:x,...C}=p.blockExplorers??{};let E;l!=null&&l.blockExplorerUrls?E=l.blockExplorerUrls:x&&(E=[x.url,...Object.values(C).map(S=>S.url)]);let v;(f=l==null?void 0:l.rpcUrls)!=null&&f.length?v=l.rpcUrls:v=[((m=p.rpcUrls.default)==null?void 0:m.http[0])??""];const k={blockExplorerUrls:E,chainId:vr(d),chainName:(l==null?void 0:l.chainName)??p.name,iconUrls:l==null?void 0:l.iconUrls,nativeCurrency:(l==null?void 0:l.nativeCurrency)??p.nativeCurrency,rpcUrls:v};if(await u.request({method:"wallet_addEthereumChain",params:[k]}),await this.getChainId()!==d)throw new Ie(new Error("User rejected switch after adding network."));return p}catch(x){throw new Ie(x)}throw w.code===Ie.code?new Ie(w):new es(w)}},async onAccountsChanged(l){var d;if(l.length===0)this.onDisconnect();else if(c.emitter.listenerCount("connect")){const u=(await this.getChainId()).toString();this.onConnect({chainId:u}),t&&await((d=c.storage)==null?void 0:d.removeItem(`${this.id}.disconnected`))}else c.emitter.emit("change",{accounts:l.map(u=>br(u))})},onChainChanged(l){const d=Number(l);c.emitter.emit("change",{chainId:d})},async onConnect(l){const d=await this.getAccounts();if(d.length===0)return;const u=Number(l.chainId);c.emitter.emit("connect",{accounts:d,chainId:u});const p=await this.getProvider();p&&(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)))},async onDisconnect(l){const d=await this.getProvider();l&&l.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 Xn(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 Df(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 jf(){const e=new Set;let t=[];const r=()=>Df(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 qf={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_BOOST_MAINNET_SIGNER_EOA:"0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480",VITE_BOOST_TESTNET_SIGNER_EOA:"0xd63167e9db11B108940b2E8236581F961f33f396"},Gf=e=>(t,r,n)=>{const s=n.subscribe;return n.subscribe=(o,i,c)=>{let l=o;if(i){const d=(c==null?void 0:c.equalityFn)||Object.is;let u=o(n.getState());l=p=>{const g=o(p);if(!d(u,g)){const b=u;i(u=g,b)}},c!=null&&c.fireImmediately&&i(u,u)}return s(l)},e(t,r,n)},Kf=Gf;function Vf(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 Br=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(n){return Br(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return Br(n)(r)}}}},Zf=(e,t)=>(r,n,s)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,y)=>({...y,...m}),...t},o=!1;const i=new Set,c=new Set;let l;try{l=a.getStorage()}catch{}if(!l)return e((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...m)},n,s);const d=Br(a.serialize),u=()=>{const m=a.partialize({...n()});let y;const w=d({state:m,version:a.version}).then(x=>l.setItem(a.name,x)).catch(x=>{y=x});if(y)throw y;return w},p=s.setState;s.setState=(m,y)=>{p(m,y),u()};const g=e((...m)=>{r(...m),u()},n,s);let b;const f=()=>{var m;if(!l)return;o=!1,i.forEach(w=>w(n()));const y=((m=a.onRehydrateStorage)==null?void 0:m.call(a,n()))||void 0;return Br(l.getItem.bind(l))(a.name).then(w=>{if(w)return a.deserialize(w)}).then(w=>{if(w)if(typeof w.version=="number"&&w.version!==a.version){if(a.migrate)return a.migrate(w.state,w.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return w.state}).then(w=>{var x;return b=a.merge(w,(x=n())!=null?x:g),r(b,!0),u()}).then(()=>{y==null||y(b,void 0),o=!0,c.forEach(w=>w(b))}).catch(w=>{y==null||y(void 0,w)})};return s.persist={setOptions:m=>{a={...a,...m},m.getStorage&&(l=m.getStorage())},clearStorage:()=>{l==null||l.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>f(),hasHydrated:()=>o,onHydrate:m=>(i.add(m),()=>{i.delete(m)}),onFinishHydration:m=>(c.add(m),()=>{c.delete(m)})},f(),b||g},Wf=(e,t)=>(r,n,s)=>{let a={storage:Vf(()=>localStorage),partialize:f=>f,version:0,merge:(f,m)=>({...m,...f}),...t},o=!1;const i=new Set,c=new Set;let l=a.storage;if(!l)return e((...f)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...f)},n,s);const d=()=>{const f=a.partialize({...n()});return l.setItem(a.name,{state:f,version:a.version})},u=s.setState;s.setState=(f,m)=>{u(f,m),d()};const p=e((...f)=>{r(...f),d()},n,s);let g;const b=()=>{var f,m;if(!l)return;o=!1,i.forEach(w=>{var x;return w((x=n())!=null?x:p)});const y=((m=a.onRehydrateStorage)==null?void 0:m.call(a,(f=n())!=null?f:p))||void 0;return Br(l.getItem.bind(l))(a.name).then(w=>{if(w)if(typeof w.version=="number"&&w.version!==a.version){if(a.migrate)return a.migrate(w.state,w.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return w.state}).then(w=>{var x;return g=a.merge(w,(x=n())!=null?x:p),r(g,!0),d()}).then(()=>{y==null||y(g,void 0),g=n(),o=!0,c.forEach(w=>w(g))}).catch(w=>{y==null||y(void 0,w)})};return s.persist={setOptions:f=>{a={...a,...f},f.storage&&(l=f.storage)},clearStorage:()=>{l==null||l.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>b(),hasHydrated:()=>o,onHydrate:f=>(i.add(f),()=>{i.delete(f)}),onFinishHydration:f=>(c.add(f),()=>{c.delete(f)})},a.skipHydration||b(),g||p},Xf=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((qf?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Zf(e,t)):Wf(e,t),Yf=Xf,Jf={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_BOOST_MAINNET_SIGNER_EOA:"0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480",VITE_BOOST_TESTNET_SIGNER_EOA:"0xd63167e9db11B108940b2E8236581F961f33f396"},Go=e=>{let t;const r=new Set,n=(c,l)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const u=t;t=l??typeof d!="object"?d:Object.assign({},t,d),r.forEach(p=>p(t,u))}},s=()=>t,i={setState:n,getState:s,subscribe:c=>(r.add(c),()=>r.delete(c)),destroy:()=>{(Jf?"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},Is=e=>e?Go(e):Go;function yl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gl={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,l,d){this.fn=c,this.context=l,this.once=d||!1}function a(c,l,d,u,p){if(typeof d!="function")throw new TypeError("The listener must be a function");var g=new s(d,u||c,p),b=r?r+l:l;return c._events[b]?c._events[b].fn?c._events[b]=[c._events[b],g]:c._events[b].push(g):(c._events[b]=g,c._eventsCount++),c}function o(c,l){--c._eventsCount===0?c._events=new n:delete c._events[l]}function i(){this._events=new n,this._eventsCount=0}i.prototype.eventNames=function(){var l=[],d,u;if(this._eventsCount===0)return l;for(u in d=this._events)t.call(d,u)&&l.push(r?u.slice(1):u);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(d)):l},i.prototype.listeners=function(l){var d=r?r+l:l,u=this._events[d];if(!u)return[];if(u.fn)return[u.fn];for(var p=0,g=u.length,b=new Array(g);p<g;p++)b[p]=u[p].fn;return b},i.prototype.listenerCount=function(l){var d=r?r+l:l,u=this._events[d];return u?u.fn?1:u.length:0},i.prototype.emit=function(l,d,u,p,g,b){var f=r?r+l:l;if(!this._events[f])return!1;var m=this._events[f],y=arguments.length,w,x;if(m.fn){switch(m.once&&this.removeListener(l,m.fn,void 0,!0),y){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,d),!0;case 3:return m.fn.call(m.context,d,u),!0;case 4:return m.fn.call(m.context,d,u,p),!0;case 5:return m.fn.call(m.context,d,u,p,g),!0;case 6:return m.fn.call(m.context,d,u,p,g,b),!0}for(x=1,w=new Array(y-1);x<y;x++)w[x-1]=arguments[x];m.fn.apply(m.context,w)}else{var C=m.length,E;for(x=0;x<C;x++)switch(m[x].once&&this.removeListener(l,m[x].fn,void 0,!0),y){case 1:m[x].fn.call(m[x].context);break;case 2:m[x].fn.call(m[x].context,d);break;case 3:m[x].fn.call(m[x].context,d,u);break;case 4:m[x].fn.call(m[x].context,d,u,p);break;default:if(!w)for(E=1,w=new Array(y-1);E<y;E++)w[E-1]=arguments[E];m[x].fn.apply(m[x].context,w)}}return!0},i.prototype.on=function(l,d,u){return a(this,l,d,u,!1)},i.prototype.once=function(l,d,u){return a(this,l,d,u,!0)},i.prototype.removeListener=function(l,d,u,p){var g=r?r+l:l;if(!this._events[g])return this;if(!d)return o(this,g),this;var b=this._events[g];if(b.fn)b.fn===d&&(!p||b.once)&&(!u||b.context===u)&&o(this,g);else{for(var f=0,m=[],y=b.length;f<y;f++)(b[f].fn!==d||p&&!b[f].once||u&&b[f].context!==u)&&m.push(b[f]);m.length?this._events[g]=m.length===1?m[0]:m:o(this,g)}return this},i.prototype.removeAllListeners=function(l){var d;return l?(d=r?r+l:l,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})(gl);var Qf=gl.exports;const eh=yl(Qf);class th{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 eh})}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 rh(e){return new th(e)}function nh(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 Ko(e,t){return e.slice(0,t).join(".")||"."}function Vo(e,t){const{length:r}=e;for(let n=0;n<r;++n)if(e[n]===t)return n+1;return 0}function sh(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 l=Vo(s,this);l===0?s[s.length]=this:(s.splice(l),a.splice(l)),a[a.length]=i;const d=Vo(s,c);if(d!==0)return n?t.call(this,i,c,Ko(a,d)):`[ref=${Ko(a,d)}]`}else s[0]=c,a[0]=i;return r?e.call(this,i,c):c}}function ah(e,t,r,n){return JSON.stringify(e,sh((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 oh(e){const{deserialize:t=nh,key:r="wagmi",serialize:n=ah,storage:s=xl}=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}`),l=await a(c);return l?t(l)??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 xl={getItem:()=>null,setItem:()=>{},removeItem:()=>{}},sa=256;let gn=sa,xn;function ih(e=11){if(!xn||gn+e>sa*2){xn="",gn=0;for(let t=0;t<sa;t++)xn+=(256+Math.random()*256|0).toString(16).substring(1)}return xn.substring(gn,gn+++e)}function ch(e){const{multiInjectedProviderDiscovery:t=!0,storage:r=oh({storage:typeof window<"u"&&window.localStorage?window.localStorage:xl}),syncConnectedChain:n=!0,ssr:s=!1,...a}=e,o=typeof window<"u"&&t?jf():void 0,i=Is(()=>a.chains),c=Is(()=>[...a.connectors??[],...s?[]:(o==null?void 0:o.getProviders().map(d))??[]].map(l));function l(E){var B;const v=rh(ih()),k={...E({emitter:v,chains:i.getState(),storage:r,transports:a.transports}),emitter:v,uid:v.uid};return v.on("connect",x),(B=k.setup)==null||B.call(k),k}function d(E){const{info:v}=E,k=E.provider;return qa({target:{...v,id:v.rdns,provider:k}})}const u=new Map;function p(E={}){const v=E.chainId??m.getState().chainId,k=i.getState().find(S=>S.id===v);if(E.chainId&&!k)throw new ra;{const S=u.get(m.getState().chainId);if(S&&!k)return S;if(!k)throw new ra}{const S=u.get(v);if(S)return S}let B;if(a.client)B=a.client({chain:k});else{const S=k.id,$=i.getState().map(O=>O.id),U={},z=Object.entries(a);for(const[O,q]of z)if(!(O==="chains"||O==="client"||O==="connectors"||O==="transports"))if(typeof q=="object")if(S in q)U[O]=q[S];else{if($.some(T=>T in q))continue;U[O]=q}else U[O]=q;B=bl({...U,chain:k,batch:U.batch??{multicall:!0},transport:O=>a.transports[S]({...O,connectors:c})})}return u.set(v,B),B}function g(){return{chainId:i.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let b;const f="0.0.0-canary-";Wn.startsWith(f)?b=Number.parseInt(Wn.replace(f,"")):b=Number.parseInt(Wn.split(".")[0]??"0");const m=Is(Kf(r?Yf(g,{migrate(E,v){if(v===b)return E;const k=g(),B=y(E,k.chainId);return{...k,chainId:B}},name:"store",partialize(E){return{connections:{__type:"Map",value:Array.from(E.connections.entries()).map(([v,k])=>{const{id:B,name:S,type:$,uid:U}=k.connector;return[v,{...k,connector:{id:B,name:S,type:$,uid:U}}]})},chainId:E.chainId,current:E.current}},merge(E,v){typeof E=="object"&&E&&"status"in E&&delete E.status;const k=y(E,v.chainId);return{...v,...E,chainId:k}},skipHydration:s,storage:r,version:b}):g));function y(E,v){return E&&typeof E=="object"&&"chainId"in E&&typeof E.chainId=="number"&&i.getState().some(k=>k.id===E.chainId)?E.chainId:v}n&&m.subscribe(({connections:E,current:v})=>{var k;return v?(k=E.get(v))==null?void 0:k.chainId:void 0},E=>{if(i.getState().some(k=>k.id===E))return m.setState(k=>({...k,chainId:E??k.chainId}))}),o==null||o.subscribe(E=>{const v=new Map;for(const B of c.getState())v.set(B.id,!0);const k=[];for(const B of E){const S=l(d(B));v.has(S.id)||k.push(S)}r&&!m.persist.hasHydrated()||c.setState(B=>[...B,...k],!0)});function w(E){m.setState(v=>{const k=v.connections.get(E.uid);return k?{...v,connections:new Map(v.connections).set(E.uid,{accounts:E.accounts??k.accounts,chainId:E.chainId??k.chainId,connector:k.connector})}:v})}function x(E){m.getState().status==="connecting"||m.getState().status==="reconnecting"||m.setState(v=>{const k=c.getState().find(B=>B.uid===E.uid);return k?(k.emitter.listenerCount("connect")&&k.emitter.off("connect",w),k.emitter.listenerCount("change")||k.emitter.on("change",w),k.emitter.listenerCount("disconnect")||k.emitter.on("disconnect",C),{...v,connections:new Map(v.connections).set(E.uid,{accounts:E.accounts,chainId:E.chainId,connector:k}),current:E.uid,status:"connected"}):v})}function C(E){m.setState(v=>{const k=v.connections.get(E.uid);if(k){const S=k.connector;S.emitter.listenerCount("change")&&k.connector.emitter.off("change",w),S.emitter.listenerCount("disconnect")&&k.connector.emitter.off("disconnect",C),S.emitter.listenerCount("connect")||k.connector.emitter.on("connect",x)}if(v.connections.delete(E.uid),v.connections.size===0)return{...v,connections:new Map,current:null,status:"disconnected"};const B=v.connections.values().next().value;return{...v,connections:new Map(v.connections),current:B.connector.uid}})}return{get chains(){return i.getState()},get connectors(){return c.getState()},storage:r,getClient:p,get state(){return m.getState()},setState(E){let v;typeof E=="function"?v=E(m.getState()):v=E;const k=g();typeof v!="object"&&(v=k),Object.keys(k).some(S=>!(S in v))&&(v=k),m.setState(v,!0)},subscribe(E,v,k){return m.subscribe(E,v,k?{...k,fireImmediately:k.emitImmediately}:void 0)},_internal:{mipd:o,store:m,ssr:!!s,syncConnectedChain:n,transports:a.transports,chains:{setState(E){const v=typeof E=="function"?E(i.getState()):E;if(v.length!==0)return i.setState(v,!0)},subscribe(E){return i.subscribe(E)}},connectors:{providerDetailToConnector:d,setup:l,setState(E){return c.setState(typeof E=="function"?E(c.getState()):E,!0)},subscribe(E){return c.subscribe(E)}},events:{change:w,connect:x,disconnect:C}}}}function L(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 Ye(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new Eh(e.type);return`${e.name}(${cs(e.inputs,{includeName:t})})`}function cs(e,{includeName:t=!1}={}){return e?e.map(r=>lh(r,{includeName:t})).join(t?", ":","):""}function lh(e,{includeName:t}){return e.type.startsWith("tuple")?`(${cs(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}function we(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function Y(e){return we(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const wl="2.21.16";let wn={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:wl};class I extends Error{constructor(t,r={}){var i;const n=(()=>{var c;return r.cause instanceof I?r.cause.details:(c=r.cause)!=null&&c.message?r.cause.message:r.details})(),s=r.cause instanceof I&&r.cause.docsPath||r.docsPath,a=(i=wn.getDocsUrl)==null?void 0:i.call(wn,{...r,docsPath:s}),o=[t||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...n?[`Details: ${n}`]:[],`Version: ${wn.version}`].join(`
|
|
7
|
-
`);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=wl}walk(t){return El(this,t)}}function El(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e?El(e.cause,t):t?null:e}class uh extends I{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(`
|
|
8
|
-
`),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class Zo extends I{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(`
|
|
9
|
-
`),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}class vl extends I{constructor({data:t,params:r,size:n}){super([`Data size of ${n} bytes is too small for given parameters.`].join(`
|
|
10
|
-
`),{metaMessages:[`Params: (${cs(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 ls extends I{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class dh extends I{constructor({expectedLength:t,givenLength:r,type:n}){super([`ABI encoding array length mismatch for type ${n}.`,`Expected length: ${t}`,`Given length: ${r}`].join(`
|
|
11
|
-
`),{name:"AbiEncodingArrayLengthMismatchError"})}}class ph extends I{constructor({expectedSize:t,value:r}){super(`Size of bytes "${r}" (bytes${Y(r)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class fh extends I{constructor({expectedLength:t,givenLength:r}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${r}`].join(`
|
|
12
|
-
`),{name:"AbiEncodingLengthMismatchError"})}}class kl extends I{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(`
|
|
13
|
-
`),{docsPath:r,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class hh extends I{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t,name:"AbiEventSignatureEmptyTopicsError"})}}class Cl extends I{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(`
|
|
14
|
-
`),{docsPath:r,name:"AbiEventSignatureNotFoundError"})}}class Wo extends I{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(`
|
|
15
|
-
`),{docsPath:r,name:"AbiEventNotFoundError"})}}class rs extends I{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(`
|
|
16
|
-
`),{docsPath:r,name:"AbiFunctionNotFoundError"})}}class mh extends I{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(`
|
|
17
|
-
`),{docsPath:r,name:"AbiFunctionOutputsNotFoundError"})}}class bh extends I{constructor(t,r){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${Ye(t.abiItem)}\`, and`,`\`${r.type}\` in \`${Ye(r.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class yh extends I{constructor({expectedSize:t,givenSize:r}){super(`Expected bytes${t}, got bytes${r}.`,{name:"BytesSizeMismatchError"})}}class Ar extends I{constructor({abiItem:t,data:r,params:n,size:s}){super([`Data size of ${s} bytes is too small for non-indexed event parameters.`].join(`
|
|
18
|
-
`),{metaMessages:[`Params: (${cs(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 us extends I{constructor({abiItem:t,param:r}){super([`Expected a topic for indexed event parameter${r.name?` "${r.name}"`:""} on event "${Ye(t,{includeName:!0})}".`].join(`
|
|
19
|
-
`),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class gh extends I{constructor(t,{docsPath:r}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
|
|
20
|
-
`),{docsPath:r,name:"InvalidAbiEncodingType"})}}class xh extends I{constructor(t,{docsPath:r}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
|
|
21
|
-
`),{docsPath:r,name:"InvalidAbiDecodingType"})}}class wh extends I{constructor(t){super([`Value "${t}" is not a valid array.`].join(`
|
|
22
|
-
`),{name:"InvalidArrayError"})}}class Eh extends I{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
|
|
23
|
-
`),{name:"InvalidDefinitionTypeError"})}}class vh extends I{constructor(t){super(`Filter type "${t}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}class Bl extends I{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 Al extends I{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 Xo extends I{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 ut(e,{dir:t,size:r=32}={}){return typeof e=="string"?ot(e,{dir:t,size:r}):kh(e,{dir:t,size:r})}function ot(e,{dir:t,size:r=32}={}){if(r===null)return e;const n=e.replace("0x","");if(n.length>r*2)throw new Al({size:Math.ceil(n.length/2),targetSize:r,type:"hex"});return`0x${n[t==="right"?"padEnd":"padStart"](r*2,"0")}`}function kh(e,{dir:t,size:r=32}={}){if(r===null)return e;if(e.length>r)throw new Al({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 Ch extends I{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 Bh extends I{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 Ah extends I{constructor({givenSize:t,maxSize:r}){super(`Size cannot exceed ${r} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}}function Re(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 He(e,{size:t}){if(Y(e)>t)throw new Ah({givenSize:Y(e),maxSize:t})}function V(e,t={}){const{signed:r}=t;t.size&&He(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 Ee(e,t={}){return Number(V(e,t))}const Th=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function F(e,t={}){return typeof e=="number"||typeof e=="bigint"?R(e,t):typeof e=="string"?Lt(e,t):typeof e=="boolean"?Tl(e,t):te(e,t)}function Tl(e,t={}){const r=`0x${Number(e)}`;return typeof t.size=="number"?(He(r,{size:t.size}),ut(r,{size:t.size})):r}function te(e,t={}){let r="";for(let s=0;s<e.length;s++)r+=Th[e[s]];const n=`0x${r}`;return typeof t.size=="number"?(He(n,{size:t.size}),ut(n,{dir:"right",size:t.size})):n}function R(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 Ch({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?ut(i,{size:n}):i}const Sh=new TextEncoder;function Lt(e,t={}){const r=Sh.encode(e);return te(r,t)}const Ih=new TextEncoder;function Oe(e,t={}){return typeof e=="number"||typeof e=="bigint"?Ph(e,t):typeof e=="boolean"?Uh(e,t):we(e)?pe(e,t):wt(e,t)}function Uh(e,t={}){const r=new Uint8Array(1);return r[0]=Number(e),typeof t.size=="number"?(He(r,{size:t.size}),ut(r,{size:t.size})):r}const Ge={zero:48,nine:57,A:65,F:70,a:97,f:102};function Yo(e){if(e>=Ge.zero&&e<=Ge.nine)return e-Ge.zero;if(e>=Ge.A&&e<=Ge.F)return e-(Ge.A-10);if(e>=Ge.a&&e<=Ge.f)return e-(Ge.a-10)}function pe(e,t={}){let r=e;t.size&&(He(r,{size:t.size}),r=ut(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=Yo(n.charCodeAt(i++)),l=Yo(n.charCodeAt(i++));if(c===void 0||l===void 0)throw new I(`Invalid byte sequence ("${n[i-2]}${n[i-1]}" in "${n}").`);a[o]=c*16+l}return a}function Ph(e,t){const r=R(e,t);return pe(r)}function wt(e,t={}){const r=Ih.encode(e);return typeof t.size=="number"?(He(r,{size:t.size}),ut(r,{dir:"right",size:t.size})):r}function re(e,t){const r=t||"hex",n=Oa(we(e,{strict:!1})?Oe(e):e);return r==="bytes"?n:F(n)}const $h=e=>re(Oe(e));function Fh(e){return $h(e)}function Oh(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 I("Unable to normalize signature.");return s}const Nh=e=>{const t=typeof e=="string"?e:dp(e);return Oh(t)};function Sl(e){return Fh(Nh(e))}const Zr=Sl;class ee extends I{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 Ga 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 Us=new Ga(8192);function Wr(e,t){if(Us.has(`${e}.${t}`))return Us.get(`${e}.${t}`);const r=e.substring(2).toLowerCase(),n=re(wt(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 Us.set(`${e}.${t}`,a),a}function Il(e,t){if(!Z(e,{strict:!1}))throw new ee({address:e});return Wr(e,t)}const Mh=/^0x[a-fA-F0-9]{40}$/,Ps=new Ga(8192);function Z(e,t){const{strict:r=!0}=t??{},n=`${e}.${r}`;if(Ps.has(n))return Ps.get(n);const s=Mh.test(e)?e.toLowerCase()===e?!0:r?Wr(e)===e:!0:!1;return Ps.set(n,s),s}function ze(e){return typeof e[0]=="string"?Te(e):_h(e)}function _h(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 Te(e){return`0x${e.reduce((t,r)=>t+r.replace("0x",""),"")}`}function Tr(e,t,r,{strict:n}={}){return we(e,{strict:!1})?Fl(e,t,r,{strict:n}):$l(e,t,r,{strict:n})}function Ul(e,t){if(typeof t=="number"&&t>0&&t>Y(e)-1)throw new Bl({offset:t,position:"start",size:Y(e)})}function Pl(e,t,r){if(typeof t=="number"&&typeof r=="number"&&Y(e)!==r-t)throw new Bl({offset:r,position:"end",size:Y(e)})}function $l(e,t,r,{strict:n}={}){Ul(e,t);const s=e.slice(t,r);return n&&Pl(s,t,r),s}function Fl(e,t,r,{strict:n}={}){Ul(e,t);const s=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&Pl(s,t,r),s}function At(e,t){if(e.length!==t.length)throw new fh({expectedLength:e.length,givenLength:t.length});const r=Rh({params:e,values:t}),n=Va(r);return n.length===0?"0x":n}function Rh({params:e,values:t}){const r=[];for(let n=0;n<e.length;n++)r.push(Ka({param:e[n],value:t[n]}));return r}function Ka({param:e,value:t}){const r=Za(e.type);if(r){const[n,s]=r;return Lh(t,{length:n,param:{...e,type:s}})}if(e.type==="tuple")return Gh(t,{param:e});if(e.type==="address")return zh(t);if(e.type==="bool")return Dh(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const n=e.type.startsWith("int");return jh(t,{signed:n})}if(e.type.startsWith("bytes"))return Hh(t,{param:e});if(e.type==="string")return qh(t);throw new gh(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function Va(e){let t=0;for(let a=0;a<e.length;a++){const{dynamic:o,encoded:i}=e[a];o?t+=32:t+=Y(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(R(t+s,{size:32})),n.push(i),s+=Y(i)):r.push(i)}return ze([...r,...n])}function zh(e){if(!Z(e))throw new ee({address:e});return{dynamic:!1,encoded:ot(e.toLowerCase())}}function Lh(e,{length:t,param:r}){const n=t===null;if(!Array.isArray(e))throw new wh(e);if(!n&&e.length!==t)throw new dh({expectedLength:t,givenLength:e.length,type:`${r.type}[${t}]`});let s=!1;const a=[];for(let o=0;o<e.length;o++){const i=Ka({param:r,value:e[o]});i.dynamic&&(s=!0),a.push(i)}if(n||s){const o=Va(a);if(n){const i=R(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?ze([i,o]):i}}if(s)return{dynamic:!0,encoded:o}}return{dynamic:!1,encoded:ze(a.map(({encoded:o})=>o))}}function Hh(e,{param:t}){const[,r]=t.type.split("bytes"),n=Y(e);if(!r){let s=e;return n%32!==0&&(s=ot(s,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:ze([ot(R(n,{size:32})),s])}}if(n!==Number.parseInt(r))throw new ph({expectedSize:Number.parseInt(r),value:e});return{dynamic:!1,encoded:ot(e,{dir:"right"})}}function Dh(e){if(typeof e!="boolean")throw new I(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:ot(Tl(e))}}function jh(e,{signed:t}){return{dynamic:!1,encoded:R(e,{size:32,signed:t})}}function qh(e){const t=Lt(e),r=Math.ceil(Y(t)/32),n=[];for(let s=0;s<r;s++)n.push(ot(Tr(t,s*32,(s+1)*32),{dir:"right"}));return{dynamic:!0,encoded:ze([ot(R(Y(t),{size:32})),...n])}}function Gh(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=Ka({param:a,value:e[o]});n.push(i),i.dynamic&&(r=!0)}return{dynamic:r,encoded:r?Va(n):ze(n.map(({encoded:s})=>s))}}function Za(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}const ds=e=>Tr(Sl(e),0,4);function Xr(e){const{abi:t,args:r=[],name:n}=e,s=we(n,{strict:!1}),a=t.filter(i=>s?i.type==="function"?ds(i)===n:i.type==="event"?Zr(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((l,d)=>{const u="inputs"in i&&i.inputs[d];return u?aa(l,u):!1})){if(o&&"inputs"in o&&o.inputs){const l=Ol(i.inputs,o.inputs,r);if(l)throw new bh({abiItem:i,type:l[0]},{abiItem:o,type:l[1]})}o=i}}return o||a[0]}function aa(e,t){const r=typeof e,n=t.type;switch(n){case"address":return Z(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)=>aa(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=>aa(s,{...t,type:n.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function Ol(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 Ol(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")?Z(r[n],{strict:!1}):o.includes("address")&&o.includes("bytes")?Z(r[n],{strict:!1}):!1)return o}}const Jo="/docs/contract/encodeEventTopics";function Yr(e){var c;const{abi:t,eventName:r,args:n}=e;let s=t[0];if(r){const l=Xr({abi:t,name:r});if(!l)throw new Wo(r,{docsPath:Jo});s=l}if(s.type!=="event")throw new Wo(void 0,{docsPath:Jo});const a=Ye(s),o=Zr(a);let i=[];if(n&&"inputs"in s){const l=(c=s.inputs)==null?void 0:c.filter(u=>"indexed"in u&&u.indexed),d=Array.isArray(n)?n:Object.values(n).length>0?(l==null?void 0:l.map(u=>n[u.name]))??[]:[];d.length>0&&(i=(l==null?void 0:l.map((u,p)=>Array.isArray(d[p])?d[p].map((g,b)=>Qo({param:u,value:d[p][b]})):d[p]?Qo({param:u,value:d[p]}):null))??[])}return[o,...i]}function Qo({param:e,value:t}){if(e.type==="string"||e.type==="bytes")return re(Oe(t));if(e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/))throw new vh(e.type);return At([e],[t])}function ps(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 Nl(e,t){const{address:r,abi:n,args:s,eventName:a,fromBlock:o,strict:i,toBlock:c}=t,l=ps(e,{method:"eth_newFilter"}),d=a?Yr({abi:n,args:s,eventName:a}):void 0,u=await e.request({method:"eth_newFilter",params:[{address:r,fromBlock:typeof o=="bigint"?R(o):o,toBlock:typeof c=="bigint"?R(c):c,topics:d}]});return{abi:n,args:s,eventName:a,id:u,request:l(u),strict:!!i,type:"event"}}function me(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}const ei="/docs/contract/encodeFunctionData";function Kh(e){const{abi:t,args:r,functionName:n}=e;let s=t[0];if(n){const a=Xr({abi:t,args:r,name:n});if(!a)throw new rs(n,{docsPath:ei});s=a}if(s.type!=="function")throw new rs(void 0,{docsPath:ei});return{abi:[s],functionName:ds(Ye(s))}}function dt(e){const{args:t}=e,{abi:r,functionName:n}=(()=>{var i;return e.abi.length===1&&((i=e.functionName)!=null&&i.startsWith("0x"))?e:Kh(e)})(),s=r[0],a=n,o="inputs"in s&&s.inputs?At(s.inputs,t??[]):void 0;return Te([a,o??"0x"])}const Ml={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."},Vh={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},Zh={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};class ti extends I{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class _l extends I{constructor({length:t,position:r}){super(`Position \`${r}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}}class Wh extends I{constructor({count:t,limit:r}){super(`Recursive read limit of \`${r}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}}const Xh={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 Wh({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new _l({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new ti({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 ti({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 Wa(e,{recursiveReadLimit:t=8192}={}){const r=Object.create(Xh);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}function Yh(e,t={}){typeof t.size<"u"&&He(e,{size:t.size});const r=te(e,t);return V(r,t)}function Jh(e,t={}){let r=e;if(typeof t.size<"u"&&(He(r,{size:t.size}),r=Re(r)),r.length>1||r[0]>1)throw new Bh(r);return!!r[0]}function We(e,t={}){typeof t.size<"u"&&He(e,{size:t.size});const r=te(e,t);return Ee(r,t)}function Qh(e,t={}){let r=e;return typeof t.size<"u"&&(He(r,{size:t.size}),r=Re(r,{dir:"right"})),new TextDecoder().decode(r)}function fs(e,t){const r=typeof t=="string"?pe(t):t,n=Wa(r);if(Y(r)===0&&e.length>0)throw new ls;if(Y(t)&&Y(t)<32)throw new vl({data:typeof t=="string"?t:te(t),params:e,size:Y(t)});let s=0;const a=[];for(let o=0;o<e.length;++o){const i=e[o];n.setPosition(s);const[c,l]=Ft(n,i,{staticPosition:0});s+=l,a.push(c)}return a}function Ft(e,t,{staticPosition:r}){const n=Za(t.type);if(n){const[s,a]=n;return tm(e,{...t,type:a},{length:s,staticPosition:r})}if(t.type==="tuple")return am(e,t,{staticPosition:r});if(t.type==="address")return em(e);if(t.type==="bool")return rm(e);if(t.type.startsWith("bytes"))return nm(e,t,{staticPosition:r});if(t.type.startsWith("uint")||t.type.startsWith("int"))return sm(e,t);if(t.type==="string")return om(e,{staticPosition:r});throw new xh(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const ri=32,oa=32;function em(e){const t=e.readBytes(32);return[Wr(te($l(t,-20))),32]}function tm(e,t,{length:r,staticPosition:n}){if(!r){const o=We(e.readBytes(oa)),i=n+o,c=i+ri;e.setPosition(i);const l=We(e.readBytes(ri)),d=Sr(t);let u=0;const p=[];for(let g=0;g<l;++g){e.setPosition(c+(d?g*32:u));const[b,f]=Ft(e,t,{staticPosition:c});u+=f,p.push(b)}return e.setPosition(n+32),[p,32]}if(Sr(t)){const o=We(e.readBytes(oa)),i=n+o,c=[];for(let l=0;l<r;++l){e.setPosition(i+l*32);const[d]=Ft(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]=Ft(e,t,{staticPosition:n+s});s+=c,a.push(i)}return[a,s]}function rm(e){return[Jh(e.readBytes(32),{size:32}),32]}function nm(e,t,{staticPosition:r}){const[n,s]=t.type.split("bytes");if(!s){const o=We(e.readBytes(32));e.setPosition(r+o);const i=We(e.readBytes(32));if(i===0)return e.setPosition(r+32),["0x",32];const c=e.readBytes(i);return e.setPosition(r+32),[te(c),32]}return[te(e.readBytes(Number.parseInt(s),32)),32]}function sm(e,t){const r=t.type.startsWith("int"),n=Number.parseInt(t.type.split("int")[1]||"256"),s=e.readBytes(32);return[n>48?Yh(s,{signed:r}):We(s,{signed:r}),32]}function am(e,t,{staticPosition:r}){const n=t.components.length===0||t.components.some(({name:o})=>!o),s=n?[]:{};let a=0;if(Sr(t)){const o=We(e.readBytes(oa)),i=r+o;for(let c=0;c<t.components.length;++c){const l=t.components[c];e.setPosition(i+a);const[d,u]=Ft(e,l,{staticPosition:i});a+=u,s[n?c:l==null?void 0:l.name]=d}return e.setPosition(r+32),[s,32]}for(let o=0;o<t.components.length;++o){const i=t.components[o],[c,l]=Ft(e,i,{staticPosition:r});s[n?o:i==null?void 0:i.name]=c,a+=l}return[s,a]}function om(e,{staticPosition:t}){const r=We(e.readBytes(32)),n=t+r;e.setPosition(n);const s=We(e.readBytes(32));if(s===0)return e.setPosition(t+32),["",32];const a=e.readBytes(s,32),o=Qh(Re(a));return e.setPosition(t+32),[o,32]}function Sr(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(Sr);const r=Za(e.type);return!!(r&&Sr({...e,type:r[1]}))}function Rl(e){const{abi:t,data:r}=e,n=Tr(r,0,4);if(n==="0x")throw new ls;const a=[...t||[],Vh,Zh].find(o=>o.type==="error"&&n===ds(Ye(o)));if(!a)throw new kl(n,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:a,args:"inputs"in a&&a.inputs&&a.inputs.length>0?fs(a.inputs,Tr(r,4)):void 0,errorName:a.name}}const ae=(e,t,r)=>JSON.stringify(e,(n,s)=>typeof s=="bigint"?s.toString():s,r);function zl({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"?ae(t[a]):t[a]}`).join(", ")})`}const Ll={gwei:9,wei:18},im={ether:-9,wei:9};function Hl(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 Xa(e,t="wei"){return Hl(e,Ll[t])}function fe(e,t="wei"){return Hl(e,im[t])}class cm extends I{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}}class lm extends I{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function ni(e){return e.reduce((t,{slot:r,value:n})=>`${t} ${r}: ${n}
|
|
24
|
-
`,"")}function um(e){return e.reduce((t,{address:r,...n})=>{let s=`${t} ${r}:
|
|
25
|
-
`;return n.nonce&&(s+=` nonce: ${n.nonce}
|
|
26
|
-
`),n.balance&&(s+=` balance: ${n.balance}
|
|
27
|
-
`),n.code&&(s+=` code: ${n.code}
|
|
28
|
-
`),n.state&&(s+=` state:
|
|
29
|
-
`,s+=ni(n.state)),n.stateDiff&&(s+=` stateDiff:
|
|
30
|
-
`,s+=ni(n.stateDiff)),s},` State Override:
|
|
31
|
-
`).slice(0,-1)}function Jr(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(`
|
|
32
|
-
`)}class dm extends I{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
|
|
33
|
-
`),{name:"FeeConflictError"})}}class pm extends I{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class fm extends I{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Jr(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 hm extends I{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 mm extends I{constructor(t,{account:r,docsPath:n,chain:s,data:a,gas:o,gasPrice:i,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:d,to:u,value:p}){var b;const g=Jr({chain:s&&`${s==null?void 0:s.name} (id: ${s==null?void 0:s.id})`,from:r==null?void 0:r.address,to:u,value:typeof p<"u"&&`${Xa(p)} ${((b=s==null?void 0:s.nativeCurrency)==null?void 0:b.symbol)||"ETH"}`,data:a,gas:o,gasPrice:typeof i<"u"&&`${fe(i)} gwei`,maxFeePerGas:typeof c<"u"&&`${fe(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${fe(l)} gwei`,nonce:d});super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",g].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class Dl extends I{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 jl extends I{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 bm extends I{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}const ym=e=>e,hs=e=>e;class ql extends I{constructor(t,{account:r,docsPath:n,chain:s,data:a,gas:o,gasPrice:i,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:d,to:u,value:p,stateOverride:g}){var m;const b=r?me(r):void 0;let f=Jr({from:b==null?void 0:b.address,to:u,value:typeof p<"u"&&`${Xa(p)} ${((m=s==null?void 0:s.nativeCurrency)==null?void 0:m.symbol)||"ETH"}`,data:a,gas:o,gasPrice:typeof i<"u"&&`${fe(i)} gwei`,maxFeePerGas:typeof c<"u"&&`${fe(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${fe(l)} gwei`,nonce:d});g&&(f+=`
|
|
34
|
-
${um(g)}`),super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",f].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class gm extends I{constructor(t,{abi:r,args:n,contractAddress:s,docsPath:a,functionName:o,sender:i}){const c=Xr({abi:r,args:n,name:o}),l=c?zl({abiItem:c,args:n,includeFunctionName:!1,includeName:!1}):void 0,d=c?Ye(c,{includeName:!0}):void 0,u=Jr({address:s&&ym(s),function:d,args:l&&l!=="()"&&`${[...Array((o==null?void 0:o.length)??0).keys()].map(()=>" ").join("")}${l}`,sender:i});super(t.shortMessage||`An unknown error occurred while executing the contract function "${o}".`,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],u&&"Contract Call:",u].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 ia extends I{constructor({abi:t,data:r,functionName:n,message:s}){let a,o,i,c;if(r&&r!=="0x")try{o=Rl({abi:t,data:r});const{abiItem:d,errorName:u,args:p}=o;if(u==="Error")c=p[0];else if(u==="Panic"){const[g]=p;c=Ml[g]}else{const g=d?Ye(d,{includeName:!0}):void 0,b=d&&p?zl({abiItem:d,args:p,includeFunctionName:!1,includeName:!1}):void 0;i=[g?`Error: ${g}`:"",b&&b!=="()"?` ${[...Array((u==null?void 0:u.length)??0).keys()].map(()=>" ").join("")}${b}`:""]}}catch(d){a=d}else s&&(c=s);let l;a instanceof kl&&(l=a.signature,i=[`Unable to decode signature "${l}" 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=${l}.`]),super(c&&c!=="execution reverted"||l?[`The contract function "${n}" reverted with the following ${l?"signature":"reason"}:`,c||l].join(`
|
|
35
|
-
`):`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,"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.reason=c,this.signature=l}}class xm extends I{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 wm extends I{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 Ya extends I{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 Ot extends I{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: ${hs(o)}`,t&&`Request body: ${ae(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 Gl extends I{constructor({body:t,error:r,url:n}){super("RPC Request failed.",{cause:r,details:r.message,metaMessages:[`URL: ${hs(n)}`,`Request body: ${ae(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=r.code}}class si extends I{constructor({body:t,url:r}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${hs(r)}`,`Request body: ${ae(t)}`],name:"TimeoutError"})}}const Em=-1;class be extends I{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 Gl?t.code:r??Em}}class Jt 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}}class Ir extends be{constructor(t){super(t,{code:Ir.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(Ir,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class Ur extends be{constructor(t){super(t,{code:Ur.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(Ur,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class Pr extends be{constructor(t,{method:r}={}){super(t,{code:Pr.code,name:"MethodNotFoundRpcError",shortMessage:`The method${r?` "${r}"`:""} does not exist / is not available.`})}}Object.defineProperty(Pr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class $r extends be{constructor(t){super(t,{code:$r.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
|
|
36
|
-
`)})}}Object.defineProperty($r,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class kt extends be{constructor(t){super(t,{code:kt.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(kt,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class Ct extends be{constructor(t){super(t,{code:Ct.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
|
|
37
|
-
`)})}}Object.defineProperty(Ct,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class Fr extends be{constructor(t){super(t,{code:Fr.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(Fr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class Or extends be{constructor(t){super(t,{code:Or.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(Or,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class Nr extends be{constructor(t){super(t,{code:Nr.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(Nr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class Mr extends be{constructor(t,{method:r}={}){super(t,{code:Mr.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${r?` "${r}"`:""} is not implemented.`})}}Object.defineProperty(Mr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class Ht extends be{constructor(t){super(t,{code:Ht.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(Ht,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class _r extends be{constructor(t){super(t,{code:_r.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(_r,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Nt extends Jt{constructor(t){super(t,{code:Nt.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(Nt,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class Rr extends Jt{constructor(t){super(t,{code:Rr.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(Rr,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class zr extends Jt{constructor(t,{method:r}={}){super(t,{code:zr.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${r?` " ${r}"`:""}.`})}}Object.defineProperty(zr,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class Lr extends Jt{constructor(t){super(t,{code:Lr.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(Lr,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class Hr extends Jt{constructor(t){super(t,{code:Hr.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(Hr,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class Dr extends Jt{constructor(t){super(t,{code:Dr.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(Dr,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class vm extends be{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const km=3;function Dt(e,{abi:t,address:r,args:n,docsPath:s,functionName:a,sender:o}){const{code:i,data:c,message:l,shortMessage:d}=e instanceof Ya?e:e instanceof I?e.walk(p=>"data"in p)||e.walk():{},u=e instanceof ls?new xm({functionName:a}):[km,kt.code].includes(i)&&(c||l||d)?new ia({abi:t,data:typeof c=="object"?c.data:c,functionName:a,message:d??l}):e;return new gm(u,{abi:t,args:n,contractAddress:r,docsPath:s,functionName:a,sender:o})}function Kl(e){const t=re(`0x${e.substring(4)}`).substring(26);return Wr(`0x${t}`)}async function Cm({hash:e,signature:t}){const r=we(e)?e:F(e),{secp256k1:n}=await Promise.resolve().then(()=>pl);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:l,s:d,v:u,yParity:p}=t,g=Number(p??u),b=ai(g);return new n.Signature(V(l),V(d)).addRecoveryBit(b)}const o=we(t)?t:F(t),i=Ee(`0x${o.slice(130)}`),c=ai(i);return n.Signature.fromCompact(o.substring(2,130)).addRecoveryBit(c)})().recoverPublicKey(r.substring(2)).toHex(!1)}`}function ai(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 Vl({hash:e,signature:t}){return Kl(await Cm({hash:e,signature:t}))}function Le(e,t="hex"){const r=Zl(e),n=Wa(new Uint8Array(r.length));return r.encode(n),t==="hex"?te(n.bytes):n.bytes}function Zl(e){return Array.isArray(e)?Bm(e.map(t=>Zl(t))):Am(e)}function Bm(e){const t=e.reduce((s,a)=>s+a.length,0),r=Wl(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 Am(e){const t=typeof e=="string"?pe(e):e,r=Wl(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 Wl(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 I("Length is too large.")}function Xl(e){const{chainId:t,contractAddress:r,nonce:n,to:s}=e,a=re(Te(["0x05",Le([R(t),r,n?R(n):"0x"])]));return s==="bytes"?pe(a):a}async function Yl(e){const{authorization:t,signature:r}=e;return Vl({hash:Xl(t),signature:r??t})}class Tm extends I{constructor(t,{account:r,docsPath:n,chain:s,data:a,gas:o,gasPrice:i,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:d,to:u,value:p}){var b;const g=Jr({from:r==null?void 0:r.address,to:u,value:typeof p<"u"&&`${Xa(p)} ${((b=s==null?void 0:s.nativeCurrency)==null?void 0:b.symbol)||"ETH"}`,data:a,gas:o,gasPrice:typeof i<"u"&&`${fe(i)} gwei`,maxFeePerGas:typeof c<"u"&&`${fe(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${fe(l)} gwei`,nonce:d});super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",g].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class Pt extends I{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(Pt,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Pt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class it extends I{constructor({cause:t,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${fe(r)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(it,"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 ca extends I{constructor({cause:t,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${fe(r)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(ca,"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 la extends I{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(la,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class ua extends I{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(`
|
|
38
|
-
`),{cause:t,name:"NonceTooLowError"})}}Object.defineProperty(ua,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class da extends I{constructor({cause:t,nonce:r}={}){super(`Nonce provided for the transaction ${r?`(${r}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(da,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class pa extends I{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
|
|
39
|
-
`),{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(pa,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class fa extends I{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(fa,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class ha extends I{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(ha,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class ma extends I{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(ma,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class jt extends I{constructor({cause:t,maxPriorityFeePerGas:r,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${r?` = ${fe(r)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${fe(n)} gwei`:""}).`].join(`
|
|
40
|
-
`),{cause:t,name:"TipAboveFeeCapError"})}}Object.defineProperty(jt,"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 ms extends I{constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}function Ja(e,t){const r=(e.details||"").toLowerCase(),n=e instanceof I?e.walk(s=>(s==null?void 0:s.code)===Pt.code):e;return n instanceof I?new Pt({cause:e,message:n.details}):Pt.nodeMessage.test(r)?new Pt({cause:e,message:e.details}):it.nodeMessage.test(r)?new it({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):ca.nodeMessage.test(r)?new ca({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):la.nodeMessage.test(r)?new la({cause:e,nonce:t==null?void 0:t.nonce}):ua.nodeMessage.test(r)?new ua({cause:e,nonce:t==null?void 0:t.nonce}):da.nodeMessage.test(r)?new da({cause:e,nonce:t==null?void 0:t.nonce}):pa.nodeMessage.test(r)?new pa({cause:e}):fa.nodeMessage.test(r)?new fa({cause:e,gas:t==null?void 0:t.gas}):ha.nodeMessage.test(r)?new ha({cause:e,gas:t==null?void 0:t.gas}):ma.nodeMessage.test(r)?new ma({cause:e}):jt.nodeMessage.test(r)?new jt({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new ms({cause:e})}function Sm(e,{docsPath:t,...r}){const n=(()=>{const s=Ja(e,r);return s instanceof ms?e:s})();return new Tm(n,{docsPath:t,...r})}function Qr(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 bs(e,t){return({exclude:r,format:n})=>({exclude:r,format:s=>{const a=t(s);if(r)for(const o of r)delete a[o];return{...a,...n(s)}},type:e})}const Im={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function Tt(e){const t={};return typeof e.authorizationList<"u"&&(t.authorizationList=Um(e.authorizationList)),typeof e.accessList<"u"&&(t.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(t.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?t.blobs=e.blobs.map(r=>te(r)):t.blobs=e.blobs),typeof e.data<"u"&&(t.data=e.data),typeof e.from<"u"&&(t.from=e.from),typeof e.gas<"u"&&(t.gas=R(e.gas)),typeof e.gasPrice<"u"&&(t.gasPrice=R(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(t.maxFeePerBlobGas=R(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(t.maxFeePerGas=R(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(t.maxPriorityFeePerGas=R(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(t.nonce=R(e.nonce)),typeof e.to<"u"&&(t.to=e.to),typeof e.type<"u"&&(t.type=Im[e.type]),typeof e.value<"u"&&(t.value=R(e.value)),t}const Jl=bs("transactionRequest",Tt);function Um(e){return e.map(t=>({address:t.contractAddress,r:t.r,s:t.s,chainId:R(t.chainId),nonce:R(t.nonce),...typeof t.yParity<"u"?{yParity:R(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:R(t.v)}:{}}))}function oi(e){if(!(!e||e.length===0))return e.reduce((t,{slot:r,value:n})=>{if(r.length!==66)throw new Xo({size:r.length,targetSize:66,type:"hex"});if(n.length!==66)throw new Xo({size:n.length,targetSize:66,type:"hex"});return t[r]=n,t},{})}function Pm(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=R(t)),r!==void 0&&(o.nonce=R(r)),n!==void 0&&(o.state=oi(n)),s!==void 0){if(o.state)throw new lm;o.stateDiff=oi(s)}return o}function Ql(e){if(!e)return;const t={};for(const{address:r,...n}of e){if(!Z(r,{strict:!1}))throw new ee({address:r});if(t[r])throw new cm({address:r});t[r]=Pm(n)}return t}const $m=2n**16n-1n,en=2n**256n-1n;function Qt(e){const{account:t,gasPrice:r,maxFeePerGas:n,maxPriorityFeePerGas:s,to:a}=e,o=t?me(t):void 0;if(o&&!Z(o.address))throw new ee({address:o.address});if(a&&!Z(a))throw new ee({address:a});if(typeof r<"u"&&(typeof n<"u"||typeof s<"u"))throw new dm;if(n&&n>en)throw new it({maxFeePerGas:n});if(s&&n&&s>n)throw new jt({maxFeePerGas:n,maxPriorityFeePerGas:s})}class Fm extends I{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class Qa extends I{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class Om extends I{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${fe(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class eu extends I{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 tu={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function tn(e){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?Ee(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?Ee(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?tu[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&&(t.authorizationList=Nm(e.authorizationList)),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof t.v=="bigint"){if(t.v===0n||t.v===27n)return 0;if(t.v===1n||t.v===28n)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),t.type==="legacy"&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),t.type==="eip2930"&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t.type==="eip1559"&&delete t.maxFeePerBlobGas,t}const eo=bs("transaction",tn);function Nm(e){return e.map(t=>({contractAddress:t.address,r:t.r,s:t.s,chainId:Number(t.chainId),nonce:Number(t.nonce),...typeof t.yParity<"u"?{yParity:Number(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:Number(t.v)}:{}}))}function to(e){var r;const t=(r=e.transactions)==null?void 0:r.map(n=>typeof n=="string"?n:tn(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:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const ro=bs("block",to);async function Xe(e,{blockHash:t,blockNumber:r,blockTag:n,includeTransactions:s}={}){var d,u,p;const a=n??"latest",o=s??!1,i=r!==void 0?R(r):void 0;let c=null;if(t?c=await e.request({method:"eth_getBlockByHash",params:[t,o]},{dedupe:!0}):c=await e.request({method:"eth_getBlockByNumber",params:[i||a,o]},{dedupe:!!i}),!c)throw new eu({blockHash:t,blockNumber:r});return(((p=(u=(d=e.chain)==null?void 0:d.formatters)==null?void 0:u.block)==null?void 0:p.format)||to)(c)}async function no(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function Mm(e,t){return ru(e,t)}async function ru(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 l=r||await L(e,Xe,"getBlock")({}),d=await i({block:l,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 V(c)}catch{const[i,c]=await Promise.all([r?Promise.resolve(r):L(e,Xe,"getBlock")({}),L(e,no,"getGasPrice")({})]);if(typeof i.baseFeePerGas!="bigint")throw new Qa;const l=c-i.baseFeePerGas;return l<0n?0n:l}}async function _m(e,t){return ba(e,t)}async function ba(e,t){var p,g;const{block:r,chain:n=e.chain,request:s,type:a="eip1559"}=t||{},o=await(async()=>{var b,f;return typeof((b=n==null?void 0:n.fees)==null?void 0:b.baseFeeMultiplier)=="function"?n.fees.baseFeeMultiplier({block:r,client:e,request:s}):((f=n==null?void 0:n.fees)==null?void 0:f.baseFeeMultiplier)??1.2})();if(o<1)throw new Fm;const c=10**(((p=o.toString().split(".")[1])==null?void 0:p.length)??0),l=b=>b*BigInt(Math.ceil(o*c))/BigInt(c),d=r||await L(e,Xe,"getBlock")({});if(typeof((g=n==null?void 0:n.fees)==null?void 0:g.estimateFeesPerGas)=="function"){const b=await n.fees.estimateFeesPerGas({block:r,client:e,multiply:l,request:s,type:a});if(b!==null)return b}if(a==="eip1559"){if(typeof d.baseFeePerGas!="bigint")throw new Qa;const b=typeof(s==null?void 0:s.maxPriorityFeePerGas)=="bigint"?s.maxPriorityFeePerGas:await ru(e,{block:d,chain:n,request:s}),f=l(d.baseFeePerGas);return{maxFeePerGas:(s==null?void 0:s.maxFeePerGas)??f+b,maxPriorityFeePerGas:b}}return{gasPrice:(s==null?void 0:s.gasPrice)??l(await L(e,no,"getGasPrice")({}))}}async function nu(e,{address:t,blockTag:r="latest",blockNumber:n}){const s=await e.request({method:"eth_getTransactionCount",params:[t,n?R(n):r]},{dedupe:!!n});return Ee(s)}function so(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=>pe(a)):e.blobs,s=[];for(const a of n)s.push(Uint8Array.from(t.blobToKzgCommitment(a)));return r==="bytes"?s:s.map(a=>te(a))}function ao(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=>pe(o)):e.blobs,s=typeof e.commitments[0]=="string"?e.commitments.map(o=>pe(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=>te(o))}function su(e,t){const r=t||"hex",n=Xt(we(e,{strict:!1})?Oe(e):e);return r==="bytes"?n:F(n)}function Rm(e){const{commitment:t,version:r=1}=e,n=e.to??(typeof t=="string"?"hex":"bytes"),s=su(t,"bytes");return s.set([r],0),n==="bytes"?s:te(s)}function au(e){const{commitments:t,version:r}=e,n=e.to??(typeof t[0]=="string"?"hex":"bytes"),s=[];for(const a of t)s.push(Rm({commitment:a,to:n,version:r}));return s}const ii=6,ou=32,oo=4096,iu=ou*oo,ci=iu*ii-1-1*oo*ii,cu=1;class zm extends I{constructor({maxSize:t,size:r}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${r} bytes`],name:"BlobSizeTooLargeError"})}}class lu extends I{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class Lm extends I{constructor({hash:t,size:r}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${r}`],name:"InvalidVersionedHashSizeError"})}}class Hm extends I{constructor({hash:t,version:r}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${cu}`,`Received: ${r}`],name:"InvalidVersionedHashVersionError"})}}function Dm(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),r=typeof e.data=="string"?pe(e.data):e.data,n=Y(r);if(!n)throw new lu;if(n>ci)throw new zm({maxSize:ci,size:n});const s=[];let a=!0,o=0;for(;a;){const i=Wa(new Uint8Array(iu));let c=0;for(;c<oo;){const l=r.slice(o,o+(ou-1));if(i.pushByte(0),i.pushBytes(l),l.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=>te(i.bytes))}function uu(e){const{data:t,kzg:r,to:n}=e,s=e.blobs??Dm({data:t,to:n}),a=e.commitments??so({blobs:s,kzg:r,to:n}),o=e.proofs??ao({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 du(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 fm({transaction:e})}async function rn(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return Ee(t)}const pu=["blobVersionedHashes","chainId","fees","gas","nonce","type"];async function nn(e,t){const{account:r=e.account,blobs:n,chain:s,gas:a,kzg:o,nonce:i,nonceManager:c,parameters:l=pu,type:d}=t,u=r?me(r):void 0,p={...t,...u?{from:u==null?void 0:u.address}:{}};let g;async function b(){return g||(g=await L(e,Xe,"getBlock")({blockTag:"latest"}),g)}let f;async function m(){return f||(s?s.id:typeof t.chainId<"u"?t.chainId:(f=await L(e,rn,"getChainId")({}),f))}if((l.includes("blobVersionedHashes")||l.includes("sidecars"))&&n&&o){const y=so({blobs:n,kzg:o});if(l.includes("blobVersionedHashes")){const w=au({commitments:y,to:"hex"});p.blobVersionedHashes=w}if(l.includes("sidecars")){const w=ao({blobs:n,commitments:y,kzg:o}),x=uu({blobs:n,commitments:y,proofs:w,to:"hex"});p.sidecars=x}}if(l.includes("chainId")&&(p.chainId=await m()),l.includes("nonce")&&typeof i>"u"&&u)if(c){const y=await m();p.nonce=await c.consume({address:u.address,chainId:y,client:e})}else p.nonce=await L(e,nu,"getTransactionCount")({address:u.address,blockTag:"pending"});if((l.includes("fees")||l.includes("type"))&&typeof d>"u")try{p.type=du(p)}catch{const y=await b();p.type=typeof(y==null?void 0:y.baseFeePerGas)=="bigint"?"eip1559":"legacy"}if(l.includes("fees"))if(p.type!=="legacy"&&p.type!=="eip2930"){if(typeof p.maxFeePerGas>"u"||typeof p.maxPriorityFeePerGas>"u"){const y=await b(),{maxFeePerGas:w,maxPriorityFeePerGas:x}=await ba(e,{block:y,chain:s,request:p});if(typeof t.maxPriorityFeePerGas>"u"&&t.maxFeePerGas&&t.maxFeePerGas<x)throw new Om({maxPriorityFeePerGas:x});p.maxPriorityFeePerGas=x,p.maxFeePerGas=w}}else{if(typeof t.maxFeePerGas<"u"||typeof t.maxPriorityFeePerGas<"u")throw new Qa;const y=await b(),{gasPrice:w}=await ba(e,{block:y,chain:s,request:p,type:"legacy"});p.gasPrice=w}return l.includes("gas")&&typeof a>"u"&&(p.gas=await L(e,io,"estimateGas")({...p,account:u?{address:u.address,type:"json-rpc"}:void 0})),Qt(p),delete p.parameters,p}async function fu(e,{address:t,blockNumber:r,blockTag:n="latest"}){const s=r?R(r):void 0,a=await e.request({method:"eth_getBalance",params:[t,s||n]});return BigInt(a)}async function io(e,t){var s,a,o;const r=t.account??e.account,n=r?me(r):void 0;try{let q=function(T){const{block:P,request:N,rpcStateOverride:_}=T;return e.request({method:"eth_estimateGas",params:_?[N,P??"latest",_]:P?[N,P]:[N]})};const{accessList:i,authorizationList:c,blobs:l,blobVersionedHashes:d,blockNumber:u,blockTag:p,data:g,gas:b,gasPrice:f,maxFeePerBlobGas:m,maxFeePerGas:y,maxPriorityFeePerGas:w,nonce:x,value:C,stateOverride:E,...v}=await nn(e,{...t,parameters:(n==null?void 0:n.type)==="local"?void 0:["blobVersionedHashes"]}),B=(u?R(u):void 0)||p,S=Ql(E),$=await(async()=>{if(v.to)return v.to;if(c&&c.length>0)return await Yl({authorization:c[0]}).catch(()=>{throw new I("`to` is required. Could not infer from `authorizationList`")})})();Qt(t);const U=(o=(a=(s=e.chain)==null?void 0:s.formatters)==null?void 0:a.transactionRequest)==null?void 0:o.format,O=(U||Tt)({...Qr(v,{format:U}),from:n==null?void 0:n.address,accessList:i,authorizationList:c,blobs:l,blobVersionedHashes:d,data:g,gas:b,gasPrice:f,maxFeePerBlobGas:m,maxFeePerGas:y,maxPriorityFeePerGas:w,nonce:x,to:$,value:C});let A=BigInt(await q({block:B,request:O,rpcStateOverride:S}));if(c){const T=await fu(e,{address:O.from}),P=await Promise.all(c.map(async N=>{const{contractAddress:_}=N,H=await q({block:B,request:{authorizationList:void 0,data:g,from:n==null?void 0:n.address,to:_,value:R(T)},rpcStateOverride:S}).catch(()=>100000n);return 2n*BigInt(H)}));A+=P.reduce((N,_)=>N+_,0n)}return A}catch(i){throw Sm(i,{...t,account:n,chain:e.chain})}}async function jm(e,t){const{abi:r,address:n,args:s,functionName:a,...o}=t,i=dt({abi:r,args:s,functionName:a});try{return await L(e,io,"estimateGas")({data:i,to:n,...o})}catch(c){const l=o.account?me(o.account):void 0;throw Dt(c,{abi:r,address:n,args:s,docsPath:"/docs/contract/estimateContractGas",functionName:a,sender:l==null?void 0:l.address})}}function ys(e,t){if(!Z(e,{strict:!1}))throw new ee({address:e});if(!Z(t,{strict:!1}))throw new ee({address:t});return e.toLowerCase()===t.toLowerCase()}const li="/docs/contract/decodeEventLog";function co(e){const{abi:t,data:r,strict:n,topics:s}=e,a=n??!0,[o,...i]=s;if(!o)throw new hh({docsPath:li});const c=t.length===1?t[0]:t.find(f=>f.type==="event"&&o===Zr(Ye(f)));if(!(c&&"name"in c)||c.type!=="event")throw new Cl(o,{docsPath:li});const{name:l,inputs:d}=c,u=d==null?void 0:d.some(f=>!("name"in f&&f.name));let p=u?[]:{};const g=d.filter(f=>"indexed"in f&&f.indexed);for(let f=0;f<g.length;f++){const m=g[f],y=i[f];if(!y)throw new us({abiItem:c,param:m});p[u?f:m.name||f]=qm({param:m,value:y})}const b=d.filter(f=>!("indexed"in f&&f.indexed));if(b.length>0){if(r&&r!=="0x")try{const f=fs(b,r);if(f)if(u)p=[...p,...f];else for(let m=0;m<b.length;m++)p[b[m].name]=f[m]}catch(f){if(a)throw f instanceof vl||f instanceof _l?new Ar({abiItem:c,data:r,params:b,size:Y(r)}):f}else if(a)throw new Ar({abiItem:c,data:"0x",params:b,size:0})}return{eventName:l,args:Object.values(p).length>0?p:void 0}}function qm({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:(fs([e],t)||[])[0]}function lo(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]===Zr(d));if(!c)return null;const l=co({...o,abi:[c],strict:s});return a&&!a.includes(l.eventName)||!Gm({args:l.args,inputs:c.inputs,matchArgs:r})?null:{...l,...o}}catch(c){let l,d;if(c instanceof Cl)return null;if(c instanceof Ar||c instanceof us){if(s)return null;l=c.abiItem.name,d=(i=c.abiItem.inputs)==null?void 0:i.some(u=>!("name"in u&&u.name))}return{...o,args:d?[]:{},eventName:l}}}).filter(Boolean)}function Gm(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"?ys(o,i):a.type==="string"||a.type==="bytes"?re(Oe(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(l=>s(i,l,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(l=>l.name===a);return i?(Array.isArray(o)?o:[o]).some(l=>s(i,l,t[a])):!1}):!1}function Je(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 uo(e,{address:t,blockHash:r,fromBlock:n,toBlock:s,event:a,events:o,args:i,strict:c}={}){const l=c??!1,d=o??(a?[a]:void 0);let u=[];d&&(u=[d.flatMap(f=>Yr({abi:[f],eventName:f.name,args:o?void 0:i}))],a&&(u=u[0]));let p;r?p=await e.request({method:"eth_getLogs",params:[{address:t,topics:u,blockHash:r}]}):p=await e.request({method:"eth_getLogs",params:[{address:t,topics:u,fromBlock:typeof n=="bigint"?R(n):n,toBlock:typeof s=="bigint"?R(s):s}]});const g=p.map(b=>Je(b));return d?lo({abi:d,args:i,logs:g,strict:l}):g}async function hu(e,t){const{abi:r,address:n,args:s,blockHash:a,eventName:o,fromBlock:i,toBlock:c,strict:l}=t,d=o?Xr({abi:r,name:o}):void 0,u=d?void 0:r.filter(p=>p.type==="event");return L(e,uo,"getLogs")({address:n,args:s,blockHash:a,event:d,events:u,fromBlock:i,toBlock:c,strict:l})}const $s="/docs/contract/decodeFunctionResult";function er(e){const{abi:t,args:r,functionName:n,data:s}=e;let a=t[0];if(n){const i=Xr({abi:t,args:r,name:n});if(!i)throw new rs(n,{docsPath:$s});a=i}if(a.type!=="function")throw new rs(void 0,{docsPath:$s});if(!a.outputs)throw new mh(a.name,{docsPath:$s});const o=fs(a.outputs,s);if(o&&o.length>1)return o;if(o&&o.length===1)return o[0]}const ya=[{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"}],mu=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}],bu=[...mu,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]},{name:"resolve",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"}]}],Km=[...mu,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],ui=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],di=[{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"}]}],Vm=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}],Zm="0x82ad56cb",Wm="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",Xm="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",Ym="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572";class ga extends I{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 Jm extends I{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 Qm extends I{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(`
|
|
41
|
-
`),{name:"ChainNotFoundError"})}}class yu extends I{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class tr extends I{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}const Fs="/docs/contract/encodeDeployData";function gs(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 uh({docsPath:Fs});if(!("inputs"in s))throw new Zo({docsPath:Fs});if(!s.inputs||s.inputs.length===0)throw new Zo({docsPath:Fs});const a=At(s.inputs,r);return Te([n,a])}function rr({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 ga({chain:t,contract:{name:r}});if(e&&n.blockCreated&&n.blockCreated>e)throw new ga({blockNumber:e,chain:t,contract:{name:r,blockCreated:n.blockCreated}});return n.address}function gu(e,{docsPath:t,...r}){const n=(()=>{const s=Ja(e,r);return s instanceof ms?e:s})();return new ql(n,{docsPath:t,...r})}const Os=new Map;function xu({fn:e,id:t,shouldSplitBatch:r,wait:n=0,sort:s}){const a=async()=>{const d=c();o();const u=d.map(({args:p})=>p);u.length!==0&&e(u).then(p=>{var g;s&&Array.isArray(p)&&p.sort(s);for(let b=0;b<d.length;b++){const{pendingPromise:f}=d[b];(g=f.resolve)==null||g.call(f,[p[b],p])}}).catch(p=>{var g;for(let b=0;b<d.length;b++){const{pendingPromise:f}=d[b];(g=f.reject)==null||g.call(f,p)}})},o=()=>Os.delete(t),i=()=>c().map(({args:d})=>d),c=()=>Os.get(t)||[],l=d=>Os.set(t,[...c(),d]);return{flush:o,async schedule(d){const u={},p=new Promise((f,m)=>{u.resolve=f,u.reject=m});return(r==null?void 0:r([...i(),d]))&&a(),c().length>0?(l({args:d,pendingPromise:u}),p):(l({args:d,pendingPromise:u}),setTimeout(a,n),p)}}}async function sn(e,t){var U,z,O,q;const{account:r=e.account,batch:n=!!((U=e.batch)!=null&&U.multicall),blockNumber:s,blockTag:a="latest",accessList:o,blobs:i,code:c,data:l,factory:d,factoryData:u,gas:p,gasPrice:g,maxFeePerBlobGas:b,maxFeePerGas:f,maxPriorityFeePerGas:m,nonce:y,to:w,value:x,stateOverride:C,...E}=t,v=r?me(r):void 0;if(c&&(d||u))throw new I("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(c&&w)throw new I("Cannot provide both `code` & `to` as parameters.");const k=c&&l,B=d&&u&&w&&l,S=k||B,$=k?r0({code:c,data:l}):B?n0({data:l,factory:d,factoryData:u,to:w}):l;try{Qt(t);const T=(s?R(s):void 0)||a,P=Ql(C),N=(q=(O=(z=e.chain)==null?void 0:z.formatters)==null?void 0:O.transactionRequest)==null?void 0:q.format,H=(N||Tt)({...Qr(E,{format:N}),from:v==null?void 0:v.address,accessList:o,blobs:i,data:$,gas:p,gasPrice:g,maxFeePerBlobGas:b,maxFeePerGas:f,maxPriorityFeePerGas:m,nonce:y,to:S?void 0:w,value:x});if(n&&e0({request:H})&&!P)try{return await t0(e,{...H,blockNumber:s,blockTag:a})}catch(G){if(!(G instanceof yu)&&!(G instanceof ga))throw G}const K=await e.request({method:"eth_call",params:P?[H,T,P]:[H,T]});return K==="0x"?{data:void 0}:{data:K}}catch(A){const T=s0(A),{offchainLookup:P,offchainLookupSignature:N}=await Promise.resolve().then(()=>require("./ccip-B9F9unVM.cjs"));if(e.ccipRead!==!1&&(T==null?void 0:T.slice(0,10))===N&&w)return{data:await P(e,{data:T,to:w})};throw S&&(T==null?void 0:T.slice(0,10))==="0x101bb98d"?new wm({factory:d}):gu(A,{...t,account:v,chain:e.chain})}}function e0({request:e}){const{data:t,to:r,...n}=e;return!(!t||t.startsWith(Zm)||!r||Object.values(n).filter(s=>typeof s<"u").length>0)}async function t0(e,t){var f;const{batchSize:r=1024,wait:n=0}=typeof((f=e.batch)==null?void 0:f.multicall)=="object"?e.batch.multicall:{},{blockNumber:s,blockTag:a="latest",data:o,multicallAddress:i,to:c}=t;let l=i;if(!l){if(!e.chain)throw new yu;l=rr({blockNumber:s,chain:e.chain,contract:"multicall3"})}const u=(s?R(s):void 0)||a,{schedule:p}=xu({id:`${e.uid}.${u}`,wait:n,shouldSplitBatch(m){return m.reduce((w,{data:x})=>w+(x.length-2),0)>r*2},fn:async m=>{const y=m.map(C=>({allowFailure:!0,callData:C.data,target:C.to})),w=dt({abi:ya,args:[y],functionName:"aggregate3"}),x=await e.request({method:"eth_call",params:[{data:w,to:l},u]});return er({abi:ya,args:[y],functionName:"aggregate3",data:x||"0x"})}}),[{returnData:g,success:b}]=await p({data:o,to:c});if(!b)throw new Ya({data:g});return g==="0x"?{data:void 0}:{data:g}}function r0(e){const{code:t,data:r}=e;return gs({abi:Jc(["constructor(bytes, bytes)"]),bytecode:Wm,args:[t,r]})}function n0(e){const{data:t,factory:r,factoryData:n,to:s}=e;return gs({abi:Jc(["constructor(address, bytes, address, bytes)"]),bytecode:Xm,args:[s,t,r,n]})}function s0(e){var r;if(!(e instanceof I))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 Qe(e,t){const{abi:r,address:n,args:s,functionName:a,...o}=t,i=dt({abi:r,args:s,functionName:a});try{const{data:c}=await L(e,sn,"call")({...o,data:i,to:n});return er({abi:r,args:s,functionName:a,data:c||"0x"})}catch(c){throw Dt(c,{abi:r,address:n,args:s,docsPath:"/docs/contract/readContract",functionName:a})}}async function a0(e,t){const{abi:r,address:n,args:s,dataSuffix:a,functionName:o,...i}=t,c=i.account?me(i.account):e.account,l=dt({abi:r,args:s,functionName:o});try{const{data:d}=await L(e,sn,"call")({batch:!1,data:`${l}${a?a.replace("0x",""):""}`,to:n,...i,account:c}),u=er({abi:r,args:s,functionName:o,data:d||"0x"}),p=r.filter(g=>"name"in g&&g.name===t.functionName);return{result:u,request:{abi:p,address:n,args:s,dataSuffix:a,functionName:o,...i,account:c}}}catch(d){throw Dt(d,{abi:r,address:n,args:s,docsPath:"/docs/contract/simulateContract",functionName:o,sender:c==null?void 0:c.address})}}const Ns=new Map,pi=new Map;let o0=0;function ct(e,t,r){const n=++o0,s=()=>Ns.get(e)||[],a=()=>{const d=s();Ns.set(e,d.filter(u=>u.id!==n))},o=()=>{const d=pi.get(e);s().length===1&&d&&d(),a()},i=s();if(Ns.set(e,[...i,{id:n,fns:t}]),i&&i.length>0)return o;const c={};for(const d in t)c[d]=(...u)=>{var g,b;const p=s();if(p.length!==0)for(const f of p)(b=(g=f.fns)[d])==null||b.call(g,...u)};const l=r(c);return typeof l=="function"&&pi.set(e,l),o}async function xa(e){return new Promise(t=>setTimeout(t,e))}function an(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 xa(c);const l=async()=>{s&&(await e({unpoll:a}),await xa(n),l())};l()})(),a}const i0=new Map,c0=new Map;function l0(e){const t=(s,a)=>({clear:()=>a.delete(s),get:()=>a.get(s),set:o=>a.set(s,o)}),r=t(e,i0),n=t(e,c0);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}async function u0(e,{cacheKey:t,cacheTime:r=Number.POSITIVE_INFINITY}){const n=l0(t),s=n.response.get();if(s&&r>0&&new Date().getTime()-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 d0=e=>`blockNumber.${e}`;async function on(e,{cacheTime:t=e.cacheTime}={}){const r=await u0(()=>e.request({method:"eth_blockNumber"}),{cacheKey:d0(e.uid),cacheTime:t});return BigInt(r)}async function xs(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=>Je(a));return!("abi"in t)||!t.abi?s:lo({abi:t.abi,logs:s,strict:r})}async function ws(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}function p0(e,t){const{abi:r,address:n,args:s,batch:a=!0,eventName:o,fromBlock:i,onError:c,onLogs:l,poll:d,pollingInterval:u=e.pollingInterval,strict:p}=t;return(typeof d<"u"?d:typeof i=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="fallback"&&e.transport.transports[0].config.type==="webSocket"))?(()=>{const m=p??!1,y=ae(["watchContractEvent",n,s,a,e.uid,o,u,m,i]);return ct(y,{onLogs:l,onError:c},w=>{let x;i!==void 0&&(x=i-1n);let C,E=!1;const v=an(async()=>{var k;if(!E){try{C=await L(e,Nl,"createContractEventFilter")({abi:r,address:n,args:s,eventName:o,strict:m,fromBlock:i})}catch{}E=!0;return}try{let B;if(C)B=await L(e,xs,"getFilterChanges")({filter:C});else{const S=await L(e,on,"getBlockNumber")({});x&&x<S?B=await L(e,hu,"getContractEvents")({abi:r,address:n,args:s,eventName:o,fromBlock:x+1n,toBlock:S,strict:m}):B=[],x=S}if(B.length===0)return;if(a)w.onLogs(B);else for(const S of B)w.onLogs([S])}catch(B){C&&B instanceof Ct&&(E=!1),(k=w.onError)==null||k.call(w,B)}},{emitOnBegin:!0,interval:u});return async()=>{C&&await L(e,ws,"uninstallFilter")({filter:C}),v()}})})():(()=>{const m=p??!1,y=ae(["watchContractEvent",n,s,a,e.uid,o,u,m]);let w=!0,x=()=>w=!1;return ct(y,{onLogs:l,onError:c},C=>((async()=>{try{const E=(()=>{if(e.transport.type==="fallback"){const B=e.transport.transports.find(S=>S.config.type==="webSocket");return B?B.value:e.transport}return e.transport})(),v=o?Yr({abi:r,eventName:o,args:s}):[],{unsubscribe:k}=await E.subscribe({params:["logs",{address:n,topics:v}],onData(B){var $;if(!w)return;const S=B.result;try{const{eventName:U,args:z}=co({abi:r,data:S.data,topics:S.topics,strict:p}),O=Je(S,{args:z,eventName:U});C.onLogs([O])}catch(U){let z,O;if(U instanceof Ar||U instanceof us){if(p)return;z=U.abiItem.name,O=($=U.abiItem.inputs)==null?void 0:$.some(A=>!("name"in A&&A.name))}const q=Je(S,{args:O?[]:{},eventName:z});C.onLogs([q])}},onError(B){var S;(S=C.onError)==null||S.call(C,B)}});x=k,w||x()}catch(E){c==null||c(E)}})(),()=>x()))})()}class nr extends I{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(`
|
|
42
|
-
`),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class Ms extends I{constructor({docsPath:t,metaMessages:r,type:n}){super(`Account type "${n}" is not supported.`,{docsPath:t,metaMessages:r,name:"AccountTypeNotSupportedError"})}}function wu({chain:e,currentChainId:t}){if(!e)throw new Qm;if(t!==e.id)throw new Jm({chain:e,currentChainId:t})}function f0(e,{docsPath:t,...r}){const n=(()=>{const s=Ja(e,r);return s instanceof ms?e:s})();return new mm(n,{docsPath:t,...r})}async function po(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}async function fo(e,t){var y,w,x,C;const{account:r=e.account,chain:n=e.chain,accessList:s,authorizationList:a,blobs:o,data:i,gas:c,gasPrice:l,maxFeePerBlobGas:d,maxFeePerGas:u,maxPriorityFeePerGas:p,nonce:g,value:b,...f}=t;if(!r)throw new nr({docsPath:"/docs/actions/wallet/sendTransaction"});const m=me(r);try{Qt(t);const E=await(async()=>{if(t.to)return t.to;if(a&&a.length>0)return await Yl({authorization:a[0]}).catch(()=>{throw new I("`to` is required. Could not infer from `authorizationList`.")})})();if(m.type==="json-rpc"){let v;n!==null&&(v=await L(e,rn,"getChainId")({}),wu({currentChainId:v,chain:n}));const k=(x=(w=(y=e.chain)==null?void 0:y.formatters)==null?void 0:w.transactionRequest)==null?void 0:x.format,S=(k||Tt)({...Qr(f,{format:k}),accessList:s,authorizationList:a,blobs:o,chainId:v,data:i,from:m.address,gas:c,gasPrice:l,maxFeePerBlobGas:d,maxFeePerGas:u,maxPriorityFeePerGas:p,nonce:g,to:E,value:b});return await e.request({method:"eth_sendTransaction",params:[S]},{retryCount:0})}if(m.type==="local"){const v=await L(e,nn,"prepareTransactionRequest")({account:m,accessList:s,authorizationList:a,blobs:o,chain:n,data:i,gas:c,gasPrice:l,maxFeePerBlobGas:d,maxFeePerGas:u,maxPriorityFeePerGas:p,nonce:g,nonceManager:m.nonceManager,parameters:[...pu,"sidecars"],value:b,...f,to:E}),k=(C=n==null?void 0:n.serializers)==null?void 0:C.transaction,B=await m.signTransaction(v,{serializer:k});return await L(e,po,"sendRawTransaction")({serializedTransaction:B})}throw m.type==="smart"?new Ms({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new Ms({docsPath:"/docs/actions/wallet/sendTransaction",type:m.type})}catch(E){throw E instanceof Ms?E:f0(E,{...t,account:m,chain:t.chain||void 0})}}async function h0(e,t){const{abi:r,account:n=e.account,address:s,args:a,dataSuffix:o,functionName:i,...c}=t;if(!n)throw new nr({docsPath:"/docs/contract/writeContract"});const l=me(n),d=dt({abi:r,args:a,functionName:i});try{return await L(e,fo,"sendTransaction")({data:`${d}${o?o.replace("0x",""):""}`,to:s,account:l,...c})}catch(u){throw Dt(u,{abi:r,address:s,args:a,docsPath:"/docs/contract/writeContract",functionName:i,sender:l.address})}}class m0 extends I{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 b0(e,t){const{address:r,factory:n,factoryData:s}=t;try{const[a,o,i,c,l,d,u]=await L(e,Qe,"readContract")({abi:y0,address:r,functionName:"eip712Domain",factory:n,factoryData:s});return{domain:{name:o,version:i,chainId:Number(c),verifyingContract:l,salt:d},extensions:u,fields:a}}catch(a){const o=a;throw o.name==="ContractFunctionExecutionError"&&o.cause.name==="ContractFunctionZeroDataError"?new m0({address:r}):o}}const y0=[{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"}];async function g0(e,{chain:t}){const{id:r,name:n,nativeCurrency:s,rpcUrls:a,blockExplorers:o}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:R(r),chainName:n,nativeCurrency:s,rpcUrls:a.default.http,blockExplorerUrls:o?Object.values(o).map(({url:i})=>i):void 0}]},{dedupe:!0,retryCount:0})}const wa=256;let En=wa,vn;function Eu(e=11){if(!vn||En+e>wa*2){vn="",En=0;for(let t=0;t<wa;t++)vn+=(256+Math.random()*256|0).toString(16).substring(1)}return vn.substring(En,En+++e)}function vu(e){const{batch:t,cacheTime:r=e.pollingInterval??4e3,ccipRead:n,key:s="base",name:a="Base Client",pollingInterval:o=4e3,type:i="base"}=e,c=e.chain,l=e.account?me(e.account):void 0,{config:d,request:u,value:p}=e.transport({chain:c,pollingInterval:o}),g={...d,...p},b={account:l,batch:t,cacheTime:r,ccipRead:n,chain:c,key:s,name:a,pollingInterval:o,request:u,transport:g,type:i,uid:Eu()};function f(m){return y=>{const w=y(m);for(const C in b)delete w[C];const x={...m,...w};return Object.assign(x,{extend:f(x)})}}return Object.assign(b,{extend:f(b)})}const kn=new Ga(8192);function x0(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 Ea(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:l})=>{const d=typeof t=="function"?t({count:i,error:l}):t;d&&await xa(d),o({count:i+1})};try{const l=await e();s(l)}catch(l){if(i<r&&await n({count:i,error:l}))return c({error:l});a(l)}};o()})}function w0(e,t={}){return async(r,n={})=>{const{dedupe:s=!1,retryDelay:a=150,retryCount:o=3,uid:i}={...t,...n},c=s?re(Lt(`${i}.${ae(r)}`)):void 0;return x0(()=>Ea(async()=>{try{return await e(r)}catch(l){const d=l;switch(d.code){case Ir.code:throw new Ir(d);case Ur.code:throw new Ur(d);case Pr.code:throw new Pr(d,{method:r.method});case $r.code:throw new $r(d);case kt.code:throw new kt(d);case Ct.code:throw new Ct(d);case Fr.code:throw new Fr(d);case Or.code:throw new Or(d);case Nr.code:throw new Nr(d);case Mr.code:throw new Mr(d,{method:r.method});case Ht.code:throw new Ht(d);case _r.code:throw new _r(d);case Nt.code:throw new Nt(d);case Rr.code:throw new Rr(d);case zr.code:throw new zr(d);case Lr.code:throw new Lr(d);case Hr.code:throw new Hr(d);case Dr.code:throw new Dr(d);case 5e3:throw new Nt(d);default:throw l instanceof I?l:new vm(d)}}},{delay:({count:l,error:d})=>{var u;if(d&&d instanceof Ot){const p=(u=d==null?void 0:d.headers)==null?void 0:u.get("Retry-After");if(p!=null&&p.match(/\d/))return Number.parseInt(p)*1e3}return~~(1<<l)*a},retryCount:o,shouldRetry:({error:l})=>E0(l)}),{enabled:s,id:c})}}function E0(e){return"code"in e&&typeof e.code=="number"?e.code===-1||e.code===Ht.code||e.code===kt.code:e instanceof Ot&&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 v0({key:e,name:t,request:r,retryCount:n=3,retryDelay:s=150,timeout:a,type:o},i){const c=Eu();return{config:{key:e,name:t,request:r,retryCount:n,retryDelay:s,timeout:a,type:o},request:w0(r,{retryCount:n,retryDelay:s,uid:c}),value:i}}class k0 extends I{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 C0(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 B0(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const fi=B0();function A0(e,t={}){return{async request(r){var u;const{body:n,onRequest:s=t.onRequest,onResponse:a=t.onResponse,timeout:o=t.timeout??1e4}=r,i={...t.fetchOptions??{},...r.fetchOptions??{}},{headers:c,method:l,signal:d}=i;try{const p=await C0(async({signal:b})=>{const f={...i,body:Array.isArray(n)?ae(n.map(w=>({jsonrpc:"2.0",id:w.id??fi.take(),...w}))):ae({jsonrpc:"2.0",id:n.id??fi.take(),...n}),headers:{"Content-Type":"application/json",...c},method:l||"POST",signal:d||(o>0?b:null)},m=new Request(e,f);return s&&await s(m),await fetch(e,f)},{errorInstance:new si({body:n,url:e}),timeout:o,signal:!0});a&&await a(p);let g;if((u=p.headers.get("Content-Type"))!=null&&u.startsWith("application/json"))g=await p.json();else{g=await p.text();try{g=JSON.parse(g||"{}")}catch(b){if(p.ok)throw b;g={error:g}}}if(!p.ok)throw new Ot({body:n,details:ae(g.error)||p.statusText,headers:p.headers,status:p.status,url:e});return g}catch(p){throw p instanceof Ot||p instanceof si?p:new Ot({body:n,cause:p,url:e})}}}}function _s(e,t={}){const{batch:r,fetchOptions:n,key:s="http",name:a="HTTP JSON-RPC",onFetchRequest:o,onFetchResponse:i,retryDelay:c}=t;return({chain:l,retryCount:d,timeout:u})=>{const{batchSize:p=1e3,wait:g=0}=typeof r=="object"?r:{},b=t.retryCount??d,f=u??t.timeout??1e4,m=e||(l==null?void 0:l.rpcUrls.default.http[0]);if(!m)throw new k0;const y=A0(m,{fetchOptions:n,onRequest:o,onResponse:i,timeout:f});return v0({key:s,name:a,async request({method:w,params:x}){const C={method:w,params:x},{schedule:E}=xu({id:m,wait:g,shouldSplitBatch(S){return S.length>p},fn:S=>y.request({body:S}),sort:(S,$)=>S.id-$.id}),v=async S=>r?E(S):[await y.request({body:S})],[{error:k,result:B}]=await v(C);if(k)throw new Gl({body:C,error:k,url:m});return B},retryCount:b,retryDelay:c,timeout:f,type:"http"},{fetchOptions:n,url:m})}}function ho(e,t){var n,s,a,o,i,c;if(!(e instanceof I))return!1;const r=e.walk(l=>l instanceof ia);return r instanceof ia?!!(((n=r.data)==null?void 0:n.errorName)==="ResolverNotFound"||((s=r.data)==null?void 0:s.errorName)==="ResolverWildcardNotSupported"||((a=r.data)==null?void 0:a.errorName)==="ResolverNotContract"||((o=r.data)==null?void 0:o.errorName)==="ResolverError"||((i=r.data)==null?void 0:i.errorName)==="HttpError"||(c=r.reason)!=null&&c.includes("Wildcard on non-extended resolvers is not supported")||t==="reverse"&&r.reason===Ml[50]):!1}function ku(e){if(e.length!==66||e.indexOf("[")!==0||e.indexOf("]")!==65)return null;const t=`0x${e.slice(1,65)}`;return we(t)?t:null}function Yn(e){let t=new Uint8Array(32).fill(0);if(!e)return te(t);const r=e.split(".");for(let n=r.length-1;n>=0;n-=1){const s=ku(r[n]),a=s?Oe(s):re(wt(r[n]),"bytes");t=re(ze([t,a]),"bytes")}return te(t)}function T0(e){return`[${e.slice(2)}]`}function S0(e){const t=new Uint8Array(32).fill(0);return e?ku(e)||re(wt(e)):te(t)}function Es(e){const t=e.replace(/^\.|\.$/gm,"");if(t.length===0)return new Uint8Array(1);const r=new Uint8Array(wt(t).byteLength+2);let n=0;const s=t.split(".");for(let a=0;a<s.length;a++){let o=wt(s[a]);o.byteLength>255&&(o=wt(T0(S0(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 I0(e,{blockNumber:t,blockTag:r,coinType:n,name:s,gatewayUrls:a,strict:o,universalResolverAddress:i}){let c=i;if(!c){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");c=rr({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const l=dt({abi:di,functionName:"addr",...n!=null?{args:[Yn(s),BigInt(n)]}:{args:[Yn(s)]}}),d={address:c,abi:bu,functionName:"resolve",args:[F(Es(s)),l],blockNumber:t,blockTag:r},u=L(e,Qe,"readContract"),p=a?await u({...d,args:[...d.args,a]}):await u(d);if(p[0]==="0x")return null;const g=er({abi:di,args:n!=null?[Yn(s),BigInt(n)]:void 0,functionName:"addr",data:p[0]});return g==="0x"||Re(g)==="0x00"?null:g}catch(l){if(o)throw l;if(ho(l,"resolve"))return null;throw l}}class U0 extends I{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 ur extends I{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:"EnsAvatarInvalidNftUriError"})}}class mo extends I{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 P0 extends I{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}const $0=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,F0=/^(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>\/.*)?$/,O0=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,N0=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function M0(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"||!globalThis.hasOwnProperty("Image")?!1:new Promise(r=>{const n=new Image;n.onload=()=>{r(!0)},n.onerror=()=>{r(!1)},n.src=e})}}function hi(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function Cu({uri:e,gatewayUrls:t}){const r=O0.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};const n=hi(t==null?void 0:t.ipfs,"https://ipfs.io"),s=hi(t==null?void 0:t.arweave,"https://arweave.net"),a=e.match($0),{protocol:o,subpath:i,target:c,subtarget:l=""}=(a==null?void 0:a.groups)||{},d=o==="ipns:/"||i==="ipns/",u=o==="ipfs:/"||i==="ipfs/"||F0.test(e);if(e.startsWith("http")&&!d&&!u){let g=e;return t!=null&&t.arweave&&(g=e.replace(/https:\/\/arweave.net/g,t==null?void 0:t.arweave)),{uri:g,isOnChain:!1,isEncoded:!1}}if((d||u)&&c)return{uri:`${n}/${d?"ipns":"ipfs"}/${c}${l}`,isOnChain:!1,isEncoded:!1};if(o==="ar:/"&&c)return{uri:`${s}/${c}${l||""}`,isOnChain:!1,isEncoded:!1};let p=e.replace(N0,"");if(p.startsWith("<svg")&&(p=`data:image/svg+xml;base64,${btoa(p)}`),p.startsWith("data:")||p.startsWith("{"))return{uri:p,isOnChain:!0,isEncoded:!1};throw new mo({uri:e})}function Bu(e){if(typeof e!="object"||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new U0({data:e});return e.image||e.image_url||e.image_data}async function _0({gatewayUrls:e,uri:t}){try{const r=await fetch(t).then(s=>s.json());return await bo({gatewayUrls:e,uri:Bu(r)})}catch{throw new mo({uri:t})}}async function bo({gatewayUrls:e,uri:t}){const{uri:r,isOnChain:n}=Cu({uri:t,gatewayUrls:e});if(n||await M0(r))return r;throw new mo({uri:t})}function R0(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 ur({reason:"Only EIP-155 supported"});if(!o)throw new ur({reason:"Chain ID not found"});if(!c)throw new ur({reason:"Contract address not found"});if(!s)throw new ur({reason:"Token ID not found"});if(!i)throw new ur({reason:"ERC namespace not found"});return{chainID:Number.parseInt(o),namespace:i.toLowerCase(),contractAddress:c,tokenID:s}}async function z0(e,{nft:t}){if(t.namespace==="erc721")return Qe(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 Qe(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 P0({namespace:t.namespace})}async function L0(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?H0(e,{gatewayUrls:t,record:r}):bo({uri:r,gatewayUrls:t})}async function H0(e,{gatewayUrls:t,record:r}){const n=R0(r),s=await z0(e,{nft:n}),{uri:a,isOnChain:o,isEncoded:i}=Cu({uri:s,gatewayUrls:t});if(o&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){const l=i?atob(a.replace("data:application/json;base64,","")):a,d=JSON.parse(l);return bo({uri:Bu(d),gatewayUrls:t})}let c=n.tokenID;return n.namespace==="erc1155"&&(c=c.replace("0x","").padStart(64,"0")),_0({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,c)})}async function Au(e,{blockNumber:t,blockTag:r,name:n,key:s,gatewayUrls:a,strict:o,universalResolverAddress:i}){let c=i;if(!c){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");c=rr({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const l={address:c,abi:bu,functionName:"resolve",args:[F(Es(n)),dt({abi:ui,functionName:"text",args:[Yn(n),s]})],blockNumber:t,blockTag:r},d=L(e,Qe,"readContract"),u=a?await d({...l,args:[...l.args,a]}):await d(l);if(u[0]==="0x")return null;const p=er({abi:ui,functionName:"text",data:u[0]});return p===""?null:p}catch(l){if(o)throw l;if(ho(l,"resolve"))return null;throw l}}async function D0(e,{blockNumber:t,blockTag:r,assetGatewayUrls:n,name:s,gatewayUrls:a,strict:o,universalResolverAddress:i}){const c=await L(e,Au,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:s,universalResolverAddress:i,gatewayUrls:a,strict:o});if(!c)return null;try{return await L0(e,{record:c,gatewayUrls:n})}catch{return null}}async function j0(e,{address:t,blockNumber:r,blockTag:n,gatewayUrls:s,strict:a,universalResolverAddress:o}){let i=o;if(!i){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");i=rr({blockNumber:r,chain:e.chain,contract:"ensUniversalResolver"})}const c=`${t.toLowerCase().substring(2)}.addr.reverse`;try{const l={address:i,abi:Km,functionName:"reverse",args:[F(Es(c))],blockNumber:r,blockTag:n},d=L(e,Qe,"readContract"),[u,p]=s?await d({...l,args:[...l.args,s]}):await d(l);return t.toLowerCase()!==p.toLowerCase()?null:u}catch(l){if(a)throw l;if(ho(l,"reverse"))return null;throw l}}async function q0(e,{blockNumber:t,blockTag:r,name:n,universalResolverAddress:s}){let a=s;if(!a){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=rr({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}const[o]=await L(e,Qe,"readContract")({address:a,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[F(Es(n))],blockNumber:t,blockTag:r});return o}async function G0(e){const t=ps(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}async function Tu(e,{address:t,args:r,event:n,events:s,fromBlock:a,strict:o,toBlock:i}={}){const c=s??(n?[n]:void 0),l=ps(e,{method:"eth_newFilter"});let d=[];c&&(d=[c.flatMap(g=>Yr({abi:[g],eventName:g.name,args:r}))],n&&(d=d[0]));const u=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof a=="bigint"?R(a):a,toBlock:typeof i=="bigint"?R(i):i,...d.length?{topics:d}:{}}]});return{abi:c,args:r,eventName:n?n.name:void 0,fromBlock:a,id:u,request:l(u),strict:!!o,toBlock:i,type:"event"}}async function Su(e){const t=ps(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}async function K0(e){const t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}async function V0(e,{blockHash:t,blockNumber:r,blockTag:n="latest"}={}){const s=r!==void 0?R(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}),Ee(a)}async function mi(e,{address:t,blockNumber:r,blockTag:n="latest"}){const s=r!==void 0?R(r):void 0,a=await e.request({method:"eth_getCode",params:[t,s||n]},{dedupe:!!s});if(a!=="0x")return a}function Z0(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 W0(e,{blockCount:t,blockNumber:r,blockTag:n="latest",rewardPercentiles:s}){const a=r?R(r):void 0,o=await e.request({method:"eth_feeHistory",params:[R(t),a||n,s]},{dedupe:!!a});return Z0(o)}async function X0(e,{filter:t}){const r=t.strict??!1,s=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(a=>Je(a));return t.abi?lo({abi:t.abi,logs:s,strict:r}):s}function h(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}const Y0=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,J0=/^(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 Iu(e){const{domain:t={},message:r,primaryType:n}=e,s={EIP712Domain:Nu({domain:t}),...e.types};Ou({domain:t,message:r,primaryType:n,types:s});const a=["0x1901"];return t&&a.push(Q0({domain:t,types:s})),n!=="EIP712Domain"&&a.push(Uu({data:r,primaryType:n,types:s})),re(ze(a))}function Q0({domain:e,types:t}){return Uu({data:e,primaryType:"EIP712Domain",types:t})}function Uu({data:e,primaryType:t,types:r}){const n=Pu({data:e,primaryType:t,types:r});return re(n)}function Pu({data:e,primaryType:t,types:r}){const n=[{type:"bytes32"}],s=[eb({primaryType:t,types:r})];for(const a of r[t]){const[o,i]=Fu({types:r,name:a.name,type:a.type,value:e[a.name]});n.push(o),s.push(i)}return At(n,s)}function eb({primaryType:e,types:t}){const r=F(tb({primaryType:e,types:t}));return re(r)}function tb({primaryType:e,types:t}){let r="";const n=$u({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 $u({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])$u({primaryType:a.type,types:t},r);return r}function Fu({types:e,name:t,type:r,value:n}){if(e[r]!==void 0)return[{type:"bytes32"},re(Pu({data:n,primaryType:r,types:e}))];if(r==="bytes")return n=`0x${(n.length%2?"0":"")+n.slice(2)}`,[{type:"bytes32"},re(n)];if(r==="string")return[{type:"bytes32"},re(F(n))];if(r.lastIndexOf("]")===r.length-1){const s=r.slice(0,r.lastIndexOf("[")),a=n.map(o=>Fu({name:t,type:s,types:e,value:o}));return[{type:"bytes32"},re(At(a.map(([o])=>o),a.map(([,o])=>o)))]}return[{type:r},n]}function rb(e){const{domain:t,message:r,primaryType:n,types:s}=e,a=(c,l)=>{const d={...l};for(const u of c){const{name:p,type:g}=u;g==="address"&&(d[p]=d[p].toLowerCase())}return d},o=s.EIP712Domain?t?a(s.EIP712Domain,t):{}:{},i=(()=>{if(n!=="EIP712Domain")return a(s[n],r)})();return ae({domain:o,message:i,primaryType:n,types:s})}function Ou(e){const{domain:t,message:r,primaryType:n,types:s}=e,a=(o,i)=>{for(const c of o){const{name:l,type:d}=c,u=i[l],p=d.match(J0);if(p&&(typeof u=="number"||typeof u=="bigint")){const[f,m,y]=p;R(u,{signed:m==="int",size:Number.parseInt(y)/8})}if(d==="address"&&typeof u=="string"&&!Z(u))throw new ee({address:u});const g=d.match(Y0);if(g){const[f,m]=g;if(m&&Y(u)!==Number.parseInt(m))throw new yh({expectedSize:Number.parseInt(m),givenSize:Y(u)})}const b=s[d];b&&a(b,u)}};s.EIP712Domain&&t&&a(s.EIP712Domain,t),n!=="EIP712Domain"&&a(s[n],r)}function Nu({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"&&{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)}const nb={"0x0":"reverted","0x1":"success"};function Mu(e){const t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(r=>Je(r)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Ee(e.transactionIndex):null,status:e.status?nb[e.status]:null,type:e.type?tu[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}const _u=bs("transactionReceipt",Mu),sb=`Ethereum Signed Message:
|
|
43
|
-
`;function ab(e){const t=typeof e=="string"?Lt(e):typeof e.raw=="string"?e.raw:te(e.raw),r=Lt(`${sb}${Y(t)}`);return ze([r,t])}function yo(e,t){return re(ab(e),t)}const Ru="0x6492649264926492649264926492649264926492649264926492649264926492";function ob(e){return Fl(e,-32)===Ru}function ib(e){const{address:t,data:r,signature:n,to:s="hex"}=e,a=Te([At([{type:"address"},{type:"bytes"},{type:"bytes"}],[t,r,n]),Ru]);return s==="hex"?a:pe(a)}function cb(e){const{authorizationList:t}=e;if(t)for(const r of t){const{contractAddress:n,chainId:s}=r;if(!Z(n))throw new ee({address:n});if(s<=0)throw new tr({chainId:s})}go(e)}function lb(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new lu;for(const r of t){const n=Y(r),s=Ee(Tr(r,0,1));if(n!==32)throw new Lm({hash:r,size:n});if(s!==cu)throw new Hm({hash:r,version:s})}}go(e)}function go(e){const{chainId:t,maxPriorityFeePerGas:r,maxFeePerGas:n,to:s}=e;if(t<=0)throw new tr({chainId:t});if(s&&!Z(s))throw new ee({address:s});if(n&&n>en)throw new it({maxFeePerGas:n});if(r&&n&&r>n)throw new jt({maxFeePerGas:n,maxPriorityFeePerGas:r})}function ub(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:a}=e;if(t<=0)throw new tr({chainId:t});if(a&&!Z(a))throw new ee({address:a});if(r||s)throw new I("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(n&&n>en)throw new it({maxFeePerGas:n})}function db(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:a}=e;if(a&&!Z(a))throw new ee({address:a});if(typeof t<"u"&&t<=0)throw new tr({chainId:t});if(r||s)throw new I("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(n&&n>en)throw new it({maxFeePerGas:n})}function pb(e){if(!e||e.length===0)return[];const t=[];for(const r of e){const{contractAddress:n,chainId:s,nonce:a,...o}=r;t.push([F(s),n,a?F(a):"0x",...sr({},o)])}return t}function cn(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 hm({storageKey:s[a]});if(!Z(n,{strict:!1}))throw new ee({address:n});t.push([n,s])}return t}function xo(e,t){const r=du(e);return r==="eip1559"?mb(e,t):r==="eip2930"?bb(e,t):r==="eip4844"?hb(e,t):r==="eip7702"?fb(e,t):yb(e,t)}function fb(e,t){const{authorizationList:r,chainId:n,gas:s,nonce:a,to:o,value:i,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:d,data:u}=e;cb(e);const p=cn(d),g=pb(r);return Te(["0x04",Le([F(n),a?F(a):"0x",l?F(l):"0x",c?F(c):"0x",s?F(s):"0x",o??"0x",i?F(i):"0x",u??"0x",p,g,...sr(e,t)])])}function hb(e,t){const{chainId:r,gas:n,nonce:s,to:a,value:o,maxFeePerBlobGas:i,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:d,data:u}=e;lb(e);let p=e.blobVersionedHashes,g=e.sidecars;if(e.blobs&&(typeof p>"u"||typeof g>"u")){const x=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(v=>te(v)),C=e.kzg,E=so({blobs:x,kzg:C});if(typeof p>"u"&&(p=au({commitments:E})),typeof g>"u"){const v=ao({blobs:x,commitments:E,kzg:C});g=uu({blobs:x,commitments:E,proofs:v})}}const b=cn(d),f=[F(r),s?F(s):"0x",l?F(l):"0x",c?F(c):"0x",n?F(n):"0x",a??"0x",o?F(o):"0x",u??"0x",b,i?F(i):"0x",p??[],...sr(e,t)],m=[],y=[],w=[];if(g)for(let x=0;x<g.length;x++){const{blob:C,commitment:E,proof:v}=g[x];m.push(C),y.push(E),w.push(v)}return Te(["0x03",Le(g?[f,m,y,w]:f)])}function mb(e,t){const{chainId:r,gas:n,nonce:s,to:a,value:o,maxFeePerGas:i,maxPriorityFeePerGas:c,accessList:l,data:d}=e;go(e);const u=cn(l),p=[F(r),s?F(s):"0x",c?F(c):"0x",i?F(i):"0x",n?F(n):"0x",a??"0x",o?F(o):"0x",d??"0x",u,...sr(e,t)];return Te(["0x02",Le(p)])}function bb(e,t){const{chainId:r,gas:n,data:s,nonce:a,to:o,value:i,accessList:c,gasPrice:l}=e;ub(e);const d=cn(c),u=[F(r),a?F(a):"0x",l?F(l):"0x",n?F(n):"0x",o??"0x",i?F(i):"0x",s??"0x",d,...sr(e,t)];return Te(["0x01",Le(u)])}function yb(e,t){const{chainId:r=0,gas:n,data:s,nonce:a,to:o,value:i,gasPrice:c}=e;db(e);let l=[a?F(a):"0x",c?F(c):"0x",n?F(n):"0x",o??"0x",i?F(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 g=27n+(t.v===27n?0n:1n);if(t.v!==g)throw new pm({v:t.v});return g})(),u=Re(t.r),p=Re(t.s);l=[...l,F(d),u==="0x00"?"0x":u,p==="0x00"?"0x":p]}else r>0&&(l=[...l,F(r),"0x","0x"]);return Le(l)}function sr(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=Re(r.r),o=Re(r.s);return[typeof s=="number"?s?F(1):"0x":n===0n?"0x":n===1n?F(1):n===27n?"0x":F(1),a==="0x00"?"0x":a,o==="0x00"?"0x":o]}function gb(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function xb(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?Ee(e.nonce):void 0,storageProof:e.storageProof?gb(e.storageProof):void 0}}async function wb(e,{address:t,blockNumber:r,blockTag:n,storageKeys:s}){const a=n??"latest",o=r!==void 0?R(r):void 0,i=await e.request({method:"eth_getProof",params:[t,s,o||a]});return xb(i)}async function Eb(e,{address:t,blockNumber:r,blockTag:n="latest",slot:s}){const a=r!==void 0?R(r):void 0;return await e.request({method:"eth_getStorageAt",params:[t,s,a||n]})}async function wo(e,{blockHash:t,blockNumber:r,blockTag:n,hash:s,index:a}){var d,u,p;const o=n||"latest",i=r!==void 0?R(r):void 0;let c=null;if(s?c=await e.request({method:"eth_getTransactionByHash",params:[s]},{dedupe:!0}):t?c=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,R(a)]},{dedupe:!0}):(i||o)&&(c=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[i||o,R(a)]},{dedupe:!!i})),!c)throw new Dl({blockHash:t,blockNumber:r,blockTag:o,hash:s,index:a});return(((p=(u=(d=e.chain)==null?void 0:d.formatters)==null?void 0:u.transaction)==null?void 0:p.format)||tn)(c)}async function vb(e,{hash:t,transactionReceipt:r}){const[n,s]=await Promise.all([L(e,on,"getBlockNumber")({}),t?L(e,wo,"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 va(e,{hash:t}){var s,a,o;const r=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!r)throw new jl({hash:t});return(((o=(a=(s=e.chain)==null?void 0:s.formatters)==null?void 0:a.transactionReceipt)==null?void 0:o.format)||Mu)(r)}async function kb(e,t){var m;const{allowFailure:r=!0,batchSize:n,blockNumber:s,blockTag:a,multicallAddress:o,stateOverride:i}=t,c=t.contracts,l=n??(typeof((m=e.batch)==null?void 0:m.multicall)=="object"&&e.batch.multicall.batchSize||1024);let d=o;if(!d){if(!e.chain)throw new Error("client chain not configured. multicallAddress is required.");d=rr({blockNumber:s,chain:e.chain,contract:"multicall3"})}const u=[[]];let p=0,g=0;for(let y=0;y<c.length;y++){const{abi:w,address:x,args:C,functionName:E}=c[y];try{const v=dt({abi:w,args:C,functionName:E});g+=(v.length-2)/2,l>0&&g>l&&u[p].length>0&&(p++,g=(v.length-2)/2,u[p]=[]),u[p]=[...u[p],{allowFailure:!0,callData:v,target:x}]}catch(v){const k=Dt(v,{abi:w,address:x,args:C,docsPath:"/docs/contract/multicall",functionName:E});if(!r)throw k;u[p]=[...u[p],{allowFailure:!0,callData:"0x",target:x}]}}const b=await Promise.allSettled(u.map(y=>L(e,Qe,"readContract")({abi:ya,address:d,args:[y],blockNumber:s,blockTag:a,functionName:"aggregate3",stateOverride:i}))),f=[];for(let y=0;y<b.length;y++){const w=b[y];if(w.status==="rejected"){if(!r)throw w.reason;for(let C=0;C<u[y].length;C++)f.push({status:"failure",error:w.reason,result:void 0});continue}const x=w.value;for(let C=0;C<x.length;C++){const{returnData:E,success:v}=x[C],{callData:k}=u[y][C],{abi:B,address:S,functionName:$,args:U}=c[f.length];try{if(k==="0x")throw new ls;if(!v)throw new Ya({data:E});const z=er({abi:B,args:U,data:E,functionName:$});f.push(r?{result:z,status:"success"}:z)}catch(z){const O=Dt(z,{abi:B,address:S,args:U,docsPath:"/docs/contract/multicall",functionName:$});if(!r)throw O;f.push({error:O,result:void 0,status:"failure"})}}}if(f.length!==c.length)throw new I("multicall results mismatch");return f}function Cb(e,t){const r=we(e)?Oe(e):e,n=we(t)?Oe(t):t;return sl(r,n)}function zu({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 Vr.Signature(V(e),V(t)).toCompactHex()}${a===0?"1b":"1c"}`;return r==="hex"?o:pe(o)}async function Eo(e,t){const{address:r,factory:n,factoryData:s,hash:a,signature:o,...i}=t,c=we(o)?o:typeof o=="object"&&"r"in o&&"s"in o?zu(o):te(o),l=await(async()=>!n&&!s||ob(c)?c:ib({address:n,data:s,signature:c}))();try{const{data:d}=await L(e,sn,"call")({data:gs({abi:Vm,args:[r,a,l],bytecode:Ym}),...i});return Cb(d??"0x0","0x1")}catch(d){try{if(ys(Il(r),await Vl({hash:a,signature:o})))return!0}catch{}if(d instanceof ql)return!1;throw d}}async function Bb(e,{address:t,message:r,factory:n,factoryData:s,signature:a,...o}){const i=yo(r);return Eo(e,{address:t,factory:n,factoryData:s,hash:i,signature:a,...o})}async function Ab(e,t){const{address:r,factory:n,factoryData:s,signature:a,message:o,primaryType:i,types:c,domain:l,...d}=t,u=Iu({message:o,primaryType:i,types:c,domain:l});return Eo(e,{address:r,factory:n,factoryData:s,hash:u,signature:a,...d})}function Lu(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==="fallback"&&e.transport.transports[0].config.type==="webSocket");let c;return i?(()=>{const u=ae(["watchBlockNumber",e.uid,t,r,o]);return ct(u,{onBlockNumber:n,onError:s},p=>an(async()=>{var g;try{const b=await L(e,on,"getBlockNumber")({cacheTime:0});if(c){if(b===c)return;if(b-c>1&&r)for(let f=c+1n;f<b;f++)p.onBlockNumber(f,c),c=f}(!c||b>c)&&(p.onBlockNumber(b,c),c=b)}catch(b){(g=p.onError)==null||g.call(p,b)}},{emitOnBegin:t,interval:o}))})():(()=>{const u=ae(["watchBlockNumber",e.uid,t,r]);return ct(u,{onBlockNumber:n,onError:s},p=>{let g=!0,b=()=>g=!1;return(async()=>{try{const f=(()=>{if(e.transport.type==="fallback"){const y=e.transport.transports.find(w=>w.config.type==="webSocket");return y?y.value:e.transport}return e.transport})(),{unsubscribe:m}=await f.subscribe({params:["newHeads"],onData(y){var x;if(!g)return;const w=V((x=y.result)==null?void 0:x.number);p.onBlockNumber(w,c),c=w},onError(y){var w;(w=p.onError)==null||w.call(p,y)}});b=m,g||b()}catch(f){s==null||s(f)}})(),()=>b()})})()}async function Tb(e,{confirmations:t=1,hash:r,onReplaced:n,pollingInterval:s=e.pollingInterval,retryCount:a=6,retryDelay:o=({count:c})=>~~(1<<c)*200,timeout:i=18e4}){const c=ae(["waitForTransactionReceipt",e.uid,r]);let l,d,u,p=!1;return new Promise((g,b)=>{i&&setTimeout(()=>b(new bm({hash:r})),i);const f=ct(c,{onReplaced:n,resolve:g,reject:b},m=>{const y=L(e,Lu,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:s,async onBlockNumber(w){const x=E=>{y(),E(),f()};let C=w;if(!p)try{if(u){if(t>1&&(!u.blockNumber||C-u.blockNumber+1n<t))return;x(()=>m.resolve(u));return}if(l||(p=!0,await Ea(async()=>{l=await L(e,wo,"getTransaction")({hash:r}),l.blockNumber&&(C=l.blockNumber)},{delay:o,retryCount:a}),p=!1),u=await L(e,va,"getTransactionReceipt")({hash:r}),t>1&&(!u.blockNumber||C-u.blockNumber+1n<t))return;x(()=>m.resolve(u))}catch(E){if(E instanceof Dl||E instanceof jl){if(!l){p=!1;return}try{d=l,p=!0;const v=await Ea(()=>L(e,Xe,"getBlock")({blockNumber:C,includeTransactions:!0}),{delay:o,retryCount:a,shouldRetry:({error:S})=>S instanceof eu});p=!1;const k=v.transactions.find(({from:S,nonce:$})=>S===d.from&&$===d.nonce);if(!k||(u=await L(e,va,"getTransactionReceipt")({hash:k.hash}),t>1&&(!u.blockNumber||C-u.blockNumber+1n<t)))return;let B="replaced";k.to===d.to&&k.value===d.value?B="repriced":k.from===k.to&&k.value===0n&&(B="cancelled"),x(()=>{var S;(S=m.onReplaced)==null||S.call(m,{reason:B,replacedTransaction:d,transaction:k,transactionReceipt:u}),m.resolve(u)})}catch(v){x(()=>m.reject(v))}}else x(()=>m.reject(E))}}})})})}function Sb(e,{blockTag:t="latest",emitMissed:r=!1,emitOnBegin:n=!1,onBlock:s,onError:a,includeTransactions:o,poll:i,pollingInterval:c=e.pollingInterval}){const l=typeof i<"u"?i:!(e.transport.type==="webSocket"||e.transport.type==="fallback"&&e.transport.transports[0].config.type==="webSocket"),d=o??!1;let u;return l?(()=>{const b=ae(["watchBlocks",e.uid,t,r,n,d,c]);return ct(b,{onBlock:s,onError:a},f=>an(async()=>{var m;try{const y=await L(e,Xe,"getBlock")({blockTag:t,includeTransactions:d});if(y.number&&(u!=null&&u.number)){if(y.number===u.number)return;if(y.number-u.number>1&&r)for(let w=(u==null?void 0:u.number)+1n;w<y.number;w++){const x=await L(e,Xe,"getBlock")({blockNumber:w,includeTransactions:d});f.onBlock(x,u),u=x}}(!(u!=null&&u.number)||t==="pending"&&!(y!=null&&y.number)||y.number&&y.number>u.number)&&(f.onBlock(y,u),u=y)}catch(y){(m=f.onError)==null||m.call(f,y)}},{emitOnBegin:n,interval:c}))})():(()=>{let b=!0,f=!0,m=()=>b=!1;return(async()=>{try{n&&L(e,Xe,"getBlock")({blockTag:t,includeTransactions:d}).then(x=>{b&&f&&(s(x,void 0),f=!1)});const y=(()=>{if(e.transport.type==="fallback"){const x=e.transport.transports.find(C=>C.config.type==="webSocket");return x?x.value:e.transport}return e.transport})(),{unsubscribe:w}=await y.subscribe({params:["newHeads"],onData(x){var v,k,B;if(!b)return;const E=(((B=(k=(v=e.chain)==null?void 0:v.formatters)==null?void 0:k.block)==null?void 0:B.format)||to)(x.result);s(E,u),f=!1,u=E},onError(x){a==null||a(x)}});m=w,b||m()}catch(y){a==null||a(y)}})(),()=>m()})()}function Ib(e,{address:t,args:r,batch:n=!0,event:s,events:a,fromBlock:o,onError:i,onLogs:c,poll:l,pollingInterval:d=e.pollingInterval,strict:u}){const p=typeof l<"u"?l:typeof o=="bigint"?!0:!(e.transport.type==="webSocket"||e.transport.type==="fallback"&&e.transport.transports[0].config.type==="webSocket"),g=u??!1;return p?(()=>{const m=ae(["watchEvent",t,r,n,e.uid,s,d,o]);return ct(m,{onLogs:c,onError:i},y=>{let w;o!==void 0&&(w=o-1n);let x,C=!1;const E=an(async()=>{var v;if(!C){try{x=await L(e,Tu,"createEventFilter")({address:t,args:r,event:s,events:a,strict:g,fromBlock:o})}catch{}C=!0;return}try{let k;if(x)k=await L(e,xs,"getFilterChanges")({filter:x});else{const B=await L(e,on,"getBlockNumber")({});w&&w!==B?k=await L(e,uo,"getLogs")({address:t,args:r,event:s,events:a,fromBlock:w+1n,toBlock:B}):k=[],w=B}if(k.length===0)return;if(n)y.onLogs(k);else for(const B of k)y.onLogs([B])}catch(k){x&&k instanceof Ct&&(C=!1),(v=y.onError)==null||v.call(y,k)}},{emitOnBegin:!0,interval:d});return async()=>{x&&await L(e,ws,"uninstallFilter")({filter:x}),E()}})})():(()=>{let m=!0,y=()=>m=!1;return(async()=>{try{const w=(()=>{if(e.transport.type==="fallback"){const v=e.transport.transports.find(k=>k.config.type==="webSocket");return v?v.value:e.transport}return e.transport})(),x=a??(s?[s]:void 0);let C=[];x&&(C=[x.flatMap(k=>Yr({abi:[k],eventName:k.name,args:r}))],s&&(C=C[0]));const{unsubscribe:E}=await w.subscribe({params:["logs",{address:t,topics:C}],onData(v){var B;if(!m)return;const k=v.result;try{const{eventName:S,args:$}=co({abi:x??[],data:k.data,topics:k.topics,strict:g}),U=Je(k,{args:$,eventName:S});c([U])}catch(S){let $,U;if(S instanceof Ar||S instanceof us){if(u)return;$=S.abiItem.name,U=(B=S.abiItem.inputs)==null?void 0:B.some(O=>!("name"in O&&O.name))}const z=Je(k,{args:U?[]:{},eventName:$});c([z])}},onError(v){i==null||i(v)}});y=E,m||y()}catch(w){i==null||i(w)}})(),()=>y()})()}function Ub(e,{batch:t=!0,onError:r,onTransactions:n,poll:s,pollingInterval:a=e.pollingInterval}){return(typeof s<"u"?s:e.transport.type!=="webSocket")?(()=>{const l=ae(["watchPendingTransactions",e.uid,t,a]);return ct(l,{onTransactions:n,onError:r},d=>{let u;const p=an(async()=>{var g;try{if(!u)try{u=await L(e,Su,"createPendingTransactionFilter")({});return}catch(f){throw p(),f}const b=await L(e,xs,"getFilterChanges")({filter:u});if(b.length===0)return;if(t)d.onTransactions(b);else for(const f of b)d.onTransactions([f])}catch(b){(g=d.onError)==null||g.call(d,b)}},{emitOnBegin:!0,interval:a});return async()=>{u&&await L(e,ws,"uninstallFilter")({filter:u}),p()}})})():(()=>{let l=!0,d=()=>l=!1;return(async()=>{try{const{unsubscribe:u}=await e.transport.subscribe({params:["newPendingTransactions"],onData(p){if(!l)return;const g=p.result;n([g])},onError(p){r==null||r(p)}});d=u,l||d()}catch(u){r==null||r(u)}})(),()=>d()})()}function Pb(e){var u,p,g;const{scheme:t,statement:r,...n}=((u=e.match($b))==null?void 0:u.groups)??{},{chainId:s,expirationTime:a,issuedAt:o,notBefore:i,requestId:c,...l}=((p=e.match(Fb))==null?void 0:p.groups)??{},d=(g=e.split("Resources:")[1])==null?void 0:g.split(`
|
|
44
|
-
- `).slice(1);return{...n,...l,...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 $b=/^(?:(?<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)?/,Fb=/(?: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 Ob(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||t&&!ys(n.address,t))return!1}catch{return!1}return!0}async function Nb(e,t){const{address:r,domain:n,message:s,nonce:a,scheme:o,signature:i,time:c=new Date,...l}=t,d=Pb(s);if(!d.address||!Ob({address:r,domain:n,message:d,nonce:a,scheme:o,time:c}))return!1;const p=yo(s);return Eo(e,{address:d.address,hash:p,signature:i,...l})}function bi(e){return{call:t=>sn(e,t),createBlockFilter:()=>G0(e),createContractEventFilter:t=>Nl(e,t),createEventFilter:t=>Tu(e,t),createPendingTransactionFilter:()=>Su(e),estimateContractGas:t=>jm(e,t),estimateGas:t=>io(e,t),getBalance:t=>fu(e,t),getBlobBaseFee:()=>K0(e),getBlock:t=>Xe(e,t),getBlockNumber:t=>on(e,t),getBlockTransactionCount:t=>V0(e,t),getBytecode:t=>mi(e,t),getChainId:()=>rn(e),getCode:t=>mi(e,t),getContractEvents:t=>hu(e,t),getEip712Domain:t=>b0(e,t),getEnsAddress:t=>I0(e,t),getEnsAvatar:t=>D0(e,t),getEnsName:t=>j0(e,t),getEnsResolver:t=>q0(e,t),getEnsText:t=>Au(e,t),getFeeHistory:t=>W0(e,t),estimateFeesPerGas:t=>_m(e,t),getFilterChanges:t=>xs(e,t),getFilterLogs:t=>X0(e,t),getGasPrice:()=>no(e),getLogs:t=>uo(e,t),getProof:t=>wb(e,t),estimateMaxPriorityFeePerGas:t=>Mm(e,t),getStorageAt:t=>Eb(e,t),getTransaction:t=>wo(e,t),getTransactionConfirmations:t=>vb(e,t),getTransactionCount:t=>nu(e,t),getTransactionReceipt:t=>va(e,t),multicall:t=>kb(e,t),prepareTransactionRequest:t=>nn(e,t),readContract:t=>Qe(e,t),sendRawTransaction:t=>po(e,t),simulateContract:t=>a0(e,t),verifyMessage:t=>Bb(e,t),verifySiweMessage:t=>Nb(e,t),verifyTypedData:t=>Ab(e,t),uninstallFilter:t=>ws(e,t),waitForTransactionReceipt:t=>Tb(e,t),watchBlocks:t=>Sb(e,t),watchBlockNumber:t=>Lu(e,t),watchContractEvent:t=>p0(e,t),watchEvent:t=>Ib(e,t),watchPendingTransactions:t=>Ub(e,t)}}async function Mb(e,{hash:t}){await e.request({method:`${e.mode}_dropTransaction`,params:[t]})}async function _b(e){return e.request({method:`${e.mode}_dumpState`})}async function Rb(e){return e.mode==="ganache"?await e.request({method:"eth_mining"}):await e.request({method:`${e.mode}_getAutomine`})}async function zb(e){return await e.request({method:"txpool_content"})}async function Lb(e){const{pending:t,queued:r}=await e.request({method:"txpool_status"});return{pending:Ee(t),queued:Ee(r)}}async function Hb(e,{address:t}){await e.request({method:`${e.mode}_impersonateAccount`,params:[t]})}async function Db(e,{seconds:t}){return await e.request({method:"evm_increaseTime",params:[R(t)]})}async function jb(e){return await e.request({method:"txpool_inspect"})}async function qb(e,{state:t}){await e.request({method:`${e.mode}_loadState`,params:[t]})}async function Gb(e,{blocks:t,interval:r}){e.mode==="ganache"?await e.request({method:"evm_mine",params:[{blocks:R(t)}]}):await e.request({method:`${e.mode}_mine`,params:[R(t),R(r||0)]})}async function Kb(e){await e.request({method:`${e.mode}_removeBlockTimestampInterval`})}async function Vb(e,{blockNumber:t,jsonRpcUrl:r}={}){await e.request({method:`${e.mode}_reset`,params:[{forking:{blockNumber:Number(t),jsonRpcUrl:r}}]})}async function Zb(e,{id:t}){await e.request({method:"evm_revert",params:[t]})}async function Wb(e,t){var y,w,x;const{accessList:r,data:n,from:s,gas:a,gasPrice:o,maxFeePerGas:i,maxPriorityFeePerGas:c,nonce:l,to:d,value:u,...p}=t,g=(x=(w=(y=e.chain)==null?void 0:y.formatters)==null?void 0:w.transactionRequest)==null?void 0:x.format,f=(g||Tt)({...Qr(p,{format:g}),accessList:r,data:n,from:s,gas:a,gasPrice:o,maxFeePerGas:i,maxPriorityFeePerGas:c,nonce:l,to:d,value:u});return await e.request({method:"eth_sendUnsignedTransaction",params:[f]})}async function Xb(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 Yb(e,{address:t,value:r}){e.mode==="ganache"?await e.request({method:"evm_setAccountBalance",params:[t,R(r)]}):await e.request({method:`${e.mode}_setBalance`,params:[t,R(r)]})}async function Jb(e,{gasLimit:t}){await e.request({method:"evm_setBlockGasLimit",params:[R(t)]})}async function Qb(e,{interval:t}){const r=e.mode==="hardhat"?t*1e3:t;await e.request({method:`${e.mode}_setBlockTimestampInterval`,params:[r]})}async function e1(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 t1(e,{address:t}){await e.request({method:`${e.mode}_setCoinbase`,params:[t]})}async function r1(e,{interval:t}){const r=e.mode==="hardhat"?t*1e3:t;await e.request({method:"evm_setIntervalMining",params:[r]})}async function n1(e,t){await e.request({method:`${e.mode}_setLoggingEnabled`,params:[t]})}async function s1(e,{gasPrice:t}){await e.request({method:`${e.mode}_setMinGasPrice`,params:[R(t)]})}async function a1(e,{baseFeePerGas:t}){await e.request({method:`${e.mode}_setNextBlockBaseFeePerGas`,params:[R(t)]})}async function o1(e,{timestamp:t}){await e.request({method:"evm_setNextBlockTimestamp",params:[R(t)]})}async function i1(e,{address:t,nonce:r}){await e.request({method:`${e.mode}_setNonce`,params:[t,R(r)]})}async function c1(e,t){await e.request({method:`${e.mode}_setRpcUrl`,params:[t]})}async function l1(e,{address:t,index:r,value:n}){await e.request({method:`${e.mode}_setStorageAt`,params:[t,typeof r=="number"?R(r):r,n]})}async function u1(e){return await e.request({method:"evm_snapshot"})}async function d1(e,{address:t}){await e.request({method:`${e.mode}_stopImpersonatingAccount`,params:[t]})}function p1({mode:e}){return t=>{const r=t.extend(()=>({mode:e}));return{dropTransaction:n=>Mb(r,n),dumpState:()=>_b(r),getAutomine:()=>Rb(r),getTxpoolContent:()=>zb(r),getTxpoolStatus:()=>Lb(r),impersonateAccount:n=>Hb(r,n),increaseTime:n=>Db(r,n),inspectTxpool:()=>jb(r),loadState:n=>qb(r,n),mine:n=>Gb(r,n),removeBlockTimestampInterval:()=>Kb(r),reset:n=>Vb(r,n),revert:n=>Zb(r,n),sendUnsignedTransaction:n=>Wb(r,n),setAutomine:n=>Xb(r,n),setBalance:n=>Yb(r,n),setBlockGasLimit:n=>Jb(r,n),setBlockTimestampInterval:n=>Qb(r,n),setCode:n=>e1(r,n),setCoinbase:n=>t1(r,n),setIntervalMining:n=>r1(r,n),setLoggingEnabled:n=>n1(r,n),setMinGasPrice:n=>s1(r,n),setNextBlockBaseFeePerGas:n=>a1(r,n),setNextBlockTimestamp:n=>o1(r,n),setNonce:n=>i1(r,n),setRpcUrl:n=>c1(r,n),setStorageAt:n=>l1(r,n),snapshot:()=>u1(r),stopImpersonatingAccount:n=>d1(r,n)}}}function f1(e){const{key:t="test",name:r="Test Client",mode:n}=e;return vu({...e,key:t,name:r,type:"testClient"}).extend(a=>({mode:n,...p1({mode:n})(a)}))}function h1(e,t){const{abi:r,args:n,bytecode:s,...a}=t,o=gs({abi:r,args:n,bytecode:s});return fo(e,{...a,data:o})}async function m1(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=>Wr(n))}async function b1(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}async function y1(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(r=>Il(r))}async function g1(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}async function x1(e,{account:t=e.account,message:r}){if(!t)throw new nr({docsPath:"/docs/actions/wallet/signMessage"});const n=me(t);if(n.signMessage)return n.signMessage({message:r});const s=typeof r=="string"?Lt(r):r.raw instanceof Uint8Array?F(r.raw):r.raw;return e.request({method:"personal_sign",params:[s,n.address]},{retryCount:0})}async function w1(e,t){var l,d,u,p;const{account:r=e.account,chain:n=e.chain,...s}=t;if(!r)throw new nr({docsPath:"/docs/actions/wallet/signTransaction"});const a=me(r);Qt({account:a,...t});const o=await L(e,rn,"getChainId")({});n!==null&&wu({currentChainId:o,chain:n});const i=(n==null?void 0:n.formatters)||((l=e.chain)==null?void 0:l.formatters),c=((d=i==null?void 0:i.transactionRequest)==null?void 0:d.format)||Tt;return a.signTransaction?a.signTransaction({...s,chainId:o},{serializer:(p=(u=e.chain)==null?void 0:u.serializers)==null?void 0:p.transaction}):await e.request({method:"eth_signTransaction",params:[{...c(s),chainId:R(o),from:a.address}]},{retryCount:0})}async function E1(e,t){const{account:r=e.account,domain:n,message:s,primaryType:a}=t;if(!r)throw new nr({docsPath:"/docs/actions/wallet/signTypedData"});const o=me(r),i={EIP712Domain:Nu({domain:n}),...t.types};if(Ou({domain:n,message:s,primaryType:a,types:i}),o.signTypedData)return o.signTypedData({domain:n,message:s,primaryType:a,types:i});const c=rb({domain:n,message:s,primaryType:a,types:i});return e.request({method:"eth_signTypedData_v4",params:[o.address,c]},{retryCount:0})}async function v1(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:R(t)}]},{retryCount:0})}async function k1(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}function Hu(e){return{addChain:t=>g0(e,t),deployContract:t=>h1(e,t),getAddresses:()=>m1(e),getChainId:()=>rn(e),getPermissions:()=>b1(e),prepareTransactionRequest:t=>nn(e,t),requestAddresses:()=>y1(e),requestPermissions:t=>g1(e,t),sendRawTransaction:t=>po(e,t),sendTransaction:t=>fo(e,t),signMessage:t=>x1(e,t),signTransaction:t=>w1(e,t),signTypedData:t=>E1(e,t),switchChain:t=>v1(e,t),watchAsset:t=>k1(e,t),writeContract:t=>h0(e,t)}}function C1(e){const{key:t="wallet",name:r="Wallet Client",transport:n}=e;return vu({...e,key:t,name:r,transport:n,type:"walletClient"}).extend(Hu)}const[B1,A1]=D.split(["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))),rt=new Uint32Array(80),nt=new Uint32Array(80);let T1=class extends _a{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:r,Bh:n,Bl:s,Ch:a,Cl:o,Dh:i,Dl:c,Eh:l,El:d,Fh:u,Fl:p,Gh:g,Gl:b,Hh:f,Hl:m}=this;return[t,r,n,s,a,o,i,c,l,d,u,p,g,b,f,m]}set(t,r,n,s,a,o,i,c,l,d,u,p,g,b,f,m){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=l|0,this.El=d|0,this.Fh=u|0,this.Fl=p|0,this.Gh=g|0,this.Gl=b|0,this.Hh=f|0,this.Hl=m|0}process(t,r){for(let x=0;x<16;x++,r+=4)rt[x]=t.getUint32(r),nt[x]=t.getUint32(r+=4);for(let x=16;x<80;x++){const C=rt[x-15]|0,E=nt[x-15]|0,v=D.rotrSH(C,E,1)^D.rotrSH(C,E,8)^D.shrSH(C,E,7),k=D.rotrSL(C,E,1)^D.rotrSL(C,E,8)^D.shrSL(C,E,7),B=rt[x-2]|0,S=nt[x-2]|0,$=D.rotrSH(B,S,19)^D.rotrBH(B,S,61)^D.shrSH(B,S,6),U=D.rotrSL(B,S,19)^D.rotrBL(B,S,61)^D.shrSL(B,S,6),z=D.add4L(k,U,nt[x-7],nt[x-16]),O=D.add4H(z,v,$,rt[x-7],rt[x-16]);rt[x]=O|0,nt[x]=z|0}let{Ah:n,Al:s,Bh:a,Bl:o,Ch:i,Cl:c,Dh:l,Dl:d,Eh:u,El:p,Fh:g,Fl:b,Gh:f,Gl:m,Hh:y,Hl:w}=this;for(let x=0;x<80;x++){const C=D.rotrSH(u,p,14)^D.rotrSH(u,p,18)^D.rotrBH(u,p,41),E=D.rotrSL(u,p,14)^D.rotrSL(u,p,18)^D.rotrBL(u,p,41),v=u&g^~u&f,k=p&b^~p&m,B=D.add5L(w,E,k,A1[x],nt[x]),S=D.add5H(B,y,C,v,B1[x],rt[x]),$=B|0,U=D.rotrSH(n,s,28)^D.rotrBH(n,s,34)^D.rotrBH(n,s,39),z=D.rotrSL(n,s,28)^D.rotrBL(n,s,34)^D.rotrBL(n,s,39),O=n&a^n&i^a&i,q=s&o^s&c^o&c;y=f|0,w=m|0,f=g|0,m=b|0,g=u|0,b=p|0,{h:u,l:p}=D.add(l|0,d|0,S|0,$|0),l=i|0,d=c|0,i=a|0,c=o|0,a=n|0,o=s|0;const A=D.add3L($,z,q);n=D.add3H(A,S,U,O),s=A|0}({h:n,l:s}=D.add(this.Ah|0,this.Al|0,n|0,s|0)),{h:a,l:o}=D.add(this.Bh|0,this.Bl|0,a|0,o|0),{h:i,l:c}=D.add(this.Ch|0,this.Cl|0,i|0,c|0),{h:l,l:d}=D.add(this.Dh|0,this.Dl|0,l|0,d|0),{h:u,l:p}=D.add(this.Eh|0,this.El|0,u|0,p|0),{h:g,l:b}=D.add(this.Fh|0,this.Fl|0,g|0,b|0),{h:f,l:m}=D.add(this.Gh|0,this.Gl|0,f|0,m|0),{h:y,l:w}=D.add(this.Hh|0,this.Hl|0,y|0,w|0),this.set(n,s,a,o,i,c,l,d,u,p,g,b,f,m,y,w)}roundClean(){rt.fill(0),nt.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}};const yi=os(()=>new T1);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Du=BigInt(0),vs=BigInt(1),S1=BigInt(2);function Bt(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function ln(e){if(!Bt(e))throw new Error("Uint8Array expected")}const I1=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function qt(e){ln(e);let t="";for(let r=0;r<e.length;r++)t+=I1[e[r]];return t}function ju(e){const t=e.toString(16);return t.length&1?`0${t}`:t}function vo(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return BigInt(e===""?"0":`0x${e}`)}const Ke={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function gi(e){if(e>=Ke._0&&e<=Ke._9)return e-Ke._0;if(e>=Ke._A&&e<=Ke._F)return e-(Ke._A-10);if(e>=Ke._a&&e<=Ke._f)return e-(Ke._a-10)}function Gt(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("padded 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=gi(e.charCodeAt(a)),i=gi(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 Et(e){return vo(qt(e))}function ko(e){return ln(e),vo(qt(Uint8Array.from(e).reverse()))}function Kt(e,t){return Gt(e.toString(16).padStart(t*2,"0"))}function Co(e,t){return Kt(e,t).reverse()}function U1(e){return Gt(ju(e))}function Pe(e,t,r){let n;if(typeof t=="string")try{n=Gt(t)}catch(a){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${a}`)}else if(Bt(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} expected ${r} bytes, got ${s}`);return n}function jr(...e){let t=0;for(let n=0;n<e.length;n++){const s=e[n];ln(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 P1(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return r===0}function $1(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function F1(e){let t;for(t=0;e>Du;e>>=vs,t+=1);return t}function O1(e,t){return e>>BigInt(t)&vs}function N1(e,t,r){return e|(r?vs:Du)<<BigInt(t)}const Bo=e=>(S1<<BigInt(e-1))-vs,Rs=e=>new Uint8Array(e),xi=e=>Uint8Array.from(e);function qu(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=Rs(e),s=Rs(e),a=0;const o=()=>{n.fill(1),s.fill(0),a=0},i=(...u)=>r(s,n,...u),c=(u=Rs())=>{s=i(xi([0]),u),n=i(),u.length!==0&&(s=i(xi([1]),u),n=i())},l=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let u=0;const p=[];for(;u<t;){n=i();const g=n.slice();p.push(g),u+=n.length}return jr(...p)};return(u,p)=>{o(),c(u);let g;for(;!(g=p(l()));)c();return o(),g}}const M1={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"||Bt(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 un(e,t,r={}){const n=(s,a,o)=>{const i=M1[a];if(typeof i!="function")throw new Error(`Invalid validator "${a}", expected function`);const c=e[s];if(!(o&&c===void 0)&&!i(c,e))throw new Error(`Invalid param ${String(s)}=${c} (${typeof c}), expected ${a}`)};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}const _1=Object.freeze(Object.defineProperty({__proto__:null,abytes:ln,bitGet:O1,bitLen:F1,bitMask:Bo,bitSet:N1,bytesToHex:qt,bytesToNumberBE:Et,bytesToNumberLE:ko,concatBytes:jr,createHmacDrbg:qu,ensureBytes:Pe,equalBytes:P1,hexToBytes:Gt,hexToNumber:vo,isBytes:Bt,numberToBytesBE:Kt,numberToBytesLE:Co,numberToHexUnpadded:ju,numberToVarBytesBE:U1,utf8ToBytes:$1,validateObject:un},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const se=BigInt(0),Q=BigInt(1),mt=BigInt(2),R1=BigInt(3),ka=BigInt(4),wi=BigInt(5),Ei=BigInt(8);BigInt(9);BigInt(16);function ue(e,t){const r=e%t;return r>=se?r:t+r}function z1(e,t,r){if(r<=se||t<se)throw new Error("Expected power/modulo > 0");if(r===Q)return se;let n=Q;for(;t>se;)t&Q&&(n=n*e%r),e=e*e%r,t>>=Q;return n}function ke(e,t,r){let n=e;for(;t-- >se;)n*=n,n%=r;return n}function Ca(e,t){if(e===se||t<=se)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=ue(e,t),n=t,s=se,a=Q;for(;r!==se;){const i=n/r,c=n%r,l=s-a*i;n=r,r=c,s=a,a=l}if(n!==Q)throw new Error("invert: does not exist");return ue(s,t)}function L1(e){const t=(e-Q)/mt;let r,n,s;for(r=e-Q,n=0;r%mt===se;r/=mt,n++);for(s=mt;s<e&&z1(s,t,e)!==e-Q;s++);if(n===1){const o=(e+Q)/ka;return function(c,l){const d=c.pow(l,o);if(!c.eql(c.sqr(d),l))throw new Error("Cannot find square root");return d}}const a=(r+Q)/mt;return function(i,c){if(i.pow(c,t)===i.neg(i.ONE))throw new Error("Cannot find square root");let l=n,d=i.pow(i.mul(i.ONE,s),r),u=i.pow(c,a),p=i.pow(c,r);for(;!i.eql(p,i.ONE);){if(i.eql(p,i.ZERO))return i.ZERO;let g=1;for(let f=i.sqr(p);g<l&&!i.eql(f,i.ONE);g++)f=i.sqr(f);const b=i.pow(d,Q<<BigInt(l-g-1));d=i.sqr(b),u=i.mul(u,b),p=i.mul(p,d),l=g}return u}}function H1(e){if(e%ka===R1){const t=(e+Q)/ka;return function(n,s){const a=n.pow(s,t);if(!n.eql(n.sqr(a),s))throw new Error("Cannot find square root");return a}}if(e%Ei===wi){const t=(e-wi)/Ei;return function(n,s){const a=n.mul(s,mt),o=n.pow(a,t),i=n.mul(s,o),c=n.mul(n.mul(i,mt),o),l=n.mul(i,n.sub(c,n.ONE));if(!n.eql(n.sqr(l),s))throw new Error("Cannot find square root");return l}}return L1(e)}const D1=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function j1(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=D1.reduce((n,s)=>(n[s]="function",n),t);return un(e,r)}function q1(e,t,r){if(r<se)throw new Error("Expected power > 0");if(r===se)return e.ONE;if(r===Q)return t;let n=e.ONE,s=t;for(;r>se;)r&Q&&(n=e.mul(n,s)),s=e.sqr(s),r>>=Q;return n}function G1(e,t){const r=new Array(t.length),n=t.reduce((a,o,i)=>e.is0(o)?a:(r[i]=a,e.mul(a,o)),e.ONE),s=e.inv(n);return t.reduceRight((a,o,i)=>e.is0(o)?a:(r[i]=e.mul(a,r[i]),e.mul(a,o)),s),r}function Gu(e,t){const r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function K1(e,t,r=!1,n={}){if(e<=se)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:s,nByteLength:a}=Gu(e,t);if(a>2048)throw new Error("Field lengths over 2048 bytes are not supported");const o=H1(e),i=Object.freeze({ORDER:e,BITS:s,BYTES:a,MASK:Bo(s),ZERO:se,ONE:Q,create:c=>ue(c,e),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return se<=c&&c<e},is0:c=>c===se,isOdd:c=>(c&Q)===Q,neg:c=>ue(-c,e),eql:(c,l)=>c===l,sqr:c=>ue(c*c,e),add:(c,l)=>ue(c+l,e),sub:(c,l)=>ue(c-l,e),mul:(c,l)=>ue(c*l,e),pow:(c,l)=>q1(i,c,l),div:(c,l)=>ue(c*Ca(l,e),e),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>Ca(c,e),sqrt:n.sqrt||(c=>o(i,c)),invertBatch:c=>G1(i,c),cmov:(c,l,d)=>d?l:c,toBytes:c=>r?Co(c,a):Kt(c,a),fromBytes:c=>{if(c.length!==a)throw new Error(`Fp.fromBytes: expected ${a}, got ${c.length}`);return r?ko(c):Et(c)}});return Object.freeze(i)}function Ku(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 Vu(e){const t=Ku(e);return t+Math.ceil(t/2)}function V1(e,t,r=!1){const n=e.length,s=Ku(t),a=Vu(t);if(n<16||n<a||n>1024)throw new Error(`expected ${a}-1024 bytes of input, got ${n}`);const o=r?Et(e):ko(e),i=ue(o,t-Q)+Q;return r?Co(i,s):Kt(i,s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Z1=BigInt(0),zs=BigInt(1);function W1(e,t){const r=(s,a)=>{const o=a.negate();return s?o:a},n=s=>{const a=Math.ceil(t/s)+1,o=2**(s-1);return{windows:a,windowSize:o}};return{constTimeNegate:r,unsafeLadder(s,a){let o=e.ZERO,i=s;for(;a>Z1;)a&zs&&(o=o.add(i)),i=i.double(),a>>=zs;return o},precomputeWindow(s,a){const{windows:o,windowSize:i}=n(a),c=[];let l=s,d=l;for(let u=0;u<o;u++){d=l,c.push(d);for(let p=1;p<i;p++)d=d.add(l),c.push(d);l=d.double()}return c},wNAF(s,a,o){const{windows:i,windowSize:c}=n(s);let l=e.ZERO,d=e.BASE;const u=BigInt(2**s-1),p=2**s,g=BigInt(s);for(let b=0;b<i;b++){const f=b*c;let m=Number(o&u);o>>=g,m>c&&(m-=p,o+=zs);const y=f,w=f+Math.abs(m)-1,x=b%2!==0,C=m<0;m===0?d=d.add(r(x,a[y])):l=l.add(r(C,a[w]))}return{p:l,f:d}},wNAFCached(s,a,o,i){const c=s._WINDOW_SIZE||1;let l=a.get(s);return l||(l=this.precomputeWindow(s,c),c!==1&&a.set(s,i(l))),this.wNAF(c,l,o)}}}function Zu(e){return j1(e.Fp),un(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Gu(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function X1(e){const t=Zu(e);un(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:s}=t;if(r){if(!n.eql(s,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}const{bytesToNumberBE:Y1,hexToBytes:J1}=_1,gt={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(e){const{Err:t}=gt;if(e.length<2||e[0]!==2)throw new t("Invalid signature integer tag");const r=e[1],n=e.subarray(2,r+2);if(!r||n.length!==r)throw new t("Invalid signature integer: wrong length");if(n[0]&128)throw new t("Invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new t("Invalid signature integer: unnecessary leading zero");return{d:Y1(n),l:e.subarray(r+2)}},toSig(e){const{Err:t}=gt,r=typeof e=="string"?J1(e):e;ln(r);let n=r.length;if(n<2||r[0]!=48)throw new t("Invalid signature tag");if(r[1]!==n-2)throw new t("Invalid signature: incorrect length");const{d:s,l:a}=gt._parseInt(r.subarray(2)),{d:o,l:i}=gt._parseInt(a);if(i.length)throw new t("Invalid signature: left bytes after parsing");return{r:s,s:o}},hexFromSig(e){const t=l=>Number.parseInt(l[0],16)&8?"00"+l:l,r=l=>{const d=l.toString(16);return d.length&1?`0${d}`:d},n=t(r(e.s)),s=t(r(e.r)),a=n.length/2,o=s.length/2,i=r(a),c=r(o);return`30${r(o+a+4)}02${c}${s}02${i}${n}`}},Ze=BigInt(0),Be=BigInt(1);BigInt(2);const vi=BigInt(3);BigInt(4);function Q1(e){const t=X1(e),{Fp:r}=t,n=t.toBytes||((b,f,m)=>{const y=f.toAffine();return jr(Uint8Array.from([4]),r.toBytes(y.x),r.toBytes(y.y))}),s=t.fromBytes||(b=>{const f=b.subarray(1),m=r.fromBytes(f.subarray(0,r.BYTES)),y=r.fromBytes(f.subarray(r.BYTES,2*r.BYTES));return{x:m,y}});function a(b){const{a:f,b:m}=t,y=r.sqr(b),w=r.mul(y,b);return r.add(r.add(w,r.mul(b,f)),m)}if(!r.eql(r.sqr(t.Gy),a(t.Gx)))throw new Error("bad generator point: equation left != right");function o(b){return typeof b=="bigint"&&Ze<b&&b<t.n}function i(b){if(!o(b))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function c(b){const{allowedPrivateKeyLengths:f,nByteLength:m,wrapPrivateKey:y,n:w}=t;if(f&&typeof b!="bigint"){if(Bt(b)&&(b=qt(b)),typeof b!="string"||!f.includes(b.length))throw new Error("Invalid key");b=b.padStart(m*2,"0")}let x;try{x=typeof b=="bigint"?b:Et(Pe("private key",b,m))}catch{throw new Error(`private key must be ${m} bytes, hex or bigint, not ${typeof b}`)}return y&&(x=ue(x,w)),i(x),x}const l=new Map;function d(b){if(!(b instanceof u))throw new Error("ProjectivePoint expected")}class u{constructor(f,m,y){if(this.px=f,this.py=m,this.pz=y,f==null||!r.isValid(f))throw new Error("x required");if(m==null||!r.isValid(m))throw new Error("y required");if(y==null||!r.isValid(y))throw new Error("z required")}static fromAffine(f){const{x:m,y}=f||{};if(!f||!r.isValid(m)||!r.isValid(y))throw new Error("invalid affine point");if(f instanceof u)throw new Error("projective point not allowed");const w=x=>r.eql(x,r.ZERO);return w(m)&&w(y)?u.ZERO:new u(m,y,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(f){const m=r.invertBatch(f.map(y=>y.pz));return f.map((y,w)=>y.toAffine(m[w])).map(u.fromAffine)}static fromHex(f){const m=u.fromAffine(s(Pe("pointHex",f)));return m.assertValidity(),m}static fromPrivateKey(f){return u.BASE.multiply(c(f))}_setWindowSize(f){this._WINDOW_SIZE=f,l.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:f,y:m}=this.toAffine();if(!r.isValid(f)||!r.isValid(m))throw new Error("bad point: x or y not FE");const y=r.sqr(m),w=a(f);if(!r.eql(y,w))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:f}=this.toAffine();if(r.isOdd)return!r.isOdd(f);throw new Error("Field doesn't support isOdd")}equals(f){d(f);const{px:m,py:y,pz:w}=this,{px:x,py:C,pz:E}=f,v=r.eql(r.mul(m,E),r.mul(x,w)),k=r.eql(r.mul(y,E),r.mul(C,w));return v&&k}negate(){return new u(this.px,r.neg(this.py),this.pz)}double(){const{a:f,b:m}=t,y=r.mul(m,vi),{px:w,py:x,pz:C}=this;let E=r.ZERO,v=r.ZERO,k=r.ZERO,B=r.mul(w,w),S=r.mul(x,x),$=r.mul(C,C),U=r.mul(w,x);return U=r.add(U,U),k=r.mul(w,C),k=r.add(k,k),E=r.mul(f,k),v=r.mul(y,$),v=r.add(E,v),E=r.sub(S,v),v=r.add(S,v),v=r.mul(E,v),E=r.mul(U,E),k=r.mul(y,k),$=r.mul(f,$),U=r.sub(B,$),U=r.mul(f,U),U=r.add(U,k),k=r.add(B,B),B=r.add(k,B),B=r.add(B,$),B=r.mul(B,U),v=r.add(v,B),$=r.mul(x,C),$=r.add($,$),B=r.mul($,U),E=r.sub(E,B),k=r.mul($,S),k=r.add(k,k),k=r.add(k,k),new u(E,v,k)}add(f){d(f);const{px:m,py:y,pz:w}=this,{px:x,py:C,pz:E}=f;let v=r.ZERO,k=r.ZERO,B=r.ZERO;const S=t.a,$=r.mul(t.b,vi);let U=r.mul(m,x),z=r.mul(y,C),O=r.mul(w,E),q=r.add(m,y),A=r.add(x,C);q=r.mul(q,A),A=r.add(U,z),q=r.sub(q,A),A=r.add(m,w);let T=r.add(x,E);return A=r.mul(A,T),T=r.add(U,O),A=r.sub(A,T),T=r.add(y,w),v=r.add(C,E),T=r.mul(T,v),v=r.add(z,O),T=r.sub(T,v),B=r.mul(S,A),v=r.mul($,O),B=r.add(v,B),v=r.sub(z,B),B=r.add(z,B),k=r.mul(v,B),z=r.add(U,U),z=r.add(z,U),O=r.mul(S,O),A=r.mul($,A),z=r.add(z,O),O=r.sub(U,O),O=r.mul(S,O),A=r.add(A,O),U=r.mul(z,A),k=r.add(k,U),U=r.mul(T,A),v=r.mul(q,v),v=r.sub(v,U),U=r.mul(q,z),B=r.mul(T,B),B=r.add(B,U),new u(v,k,B)}subtract(f){return this.add(f.negate())}is0(){return this.equals(u.ZERO)}wNAF(f){return g.wNAFCached(this,l,f,m=>{const y=r.invertBatch(m.map(w=>w.pz));return m.map((w,x)=>w.toAffine(y[x])).map(u.fromAffine)})}multiplyUnsafe(f){const m=u.ZERO;if(f===Ze)return m;if(i(f),f===Be)return this;const{endo:y}=t;if(!y)return g.unsafeLadder(this,f);let{k1neg:w,k1:x,k2neg:C,k2:E}=y.splitScalar(f),v=m,k=m,B=this;for(;x>Ze||E>Ze;)x&Be&&(v=v.add(B)),E&Be&&(k=k.add(B)),B=B.double(),x>>=Be,E>>=Be;return w&&(v=v.negate()),C&&(k=k.negate()),k=new u(r.mul(k.px,y.beta),k.py,k.pz),v.add(k)}multiply(f){i(f);let m=f,y,w;const{endo:x}=t;if(x){const{k1neg:C,k1:E,k2neg:v,k2:k}=x.splitScalar(m);let{p:B,f:S}=this.wNAF(E),{p:$,f:U}=this.wNAF(k);B=g.constTimeNegate(C,B),$=g.constTimeNegate(v,$),$=new u(r.mul($.px,x.beta),$.py,$.pz),y=B.add($),w=S.add(U)}else{const{p:C,f:E}=this.wNAF(m);y=C,w=E}return u.normalizeZ([y,w])[0]}multiplyAndAddUnsafe(f,m,y){const w=u.BASE,x=(E,v)=>v===Ze||v===Be||!E.equals(w)?E.multiplyUnsafe(v):E.multiply(v),C=x(this,m).add(x(f,y));return C.is0()?void 0:C}toAffine(f){const{px:m,py:y,pz:w}=this,x=this.is0();f==null&&(f=x?r.ONE:r.inv(w));const C=r.mul(m,f),E=r.mul(y,f),v=r.mul(w,f);if(x)return{x:r.ZERO,y:r.ZERO};if(!r.eql(v,r.ONE))throw new Error("invZ was invalid");return{x:C,y:E}}isTorsionFree(){const{h:f,isTorsionFree:m}=t;if(f===Be)return!0;if(m)return m(u,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:f,clearCofactor:m}=t;return f===Be?this:m?m(u,this):this.multiplyUnsafe(t.h)}toRawBytes(f=!0){return this.assertValidity(),n(u,this,f)}toHex(f=!0){return qt(this.toRawBytes(f))}}u.BASE=new u(t.Gx,t.Gy,r.ONE),u.ZERO=new u(r.ZERO,r.ONE,r.ZERO);const p=t.nBitLength,g=W1(u,t.endo?Math.ceil(p/2):p);return{CURVE:t,ProjectivePoint:u,normPrivateKeyToScalar:c,weierstrassEquation:a,isWithinCurveOrder:o}}function ey(e){const t=Zu(e);return un(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function ty(e){const t=ey(e),{Fp:r,n}=t,s=r.BYTES+1,a=2*r.BYTES+1;function o(A){return Ze<A&&A<r.ORDER}function i(A){return ue(A,n)}function c(A){return Ca(A,n)}const{ProjectivePoint:l,normPrivateKeyToScalar:d,weierstrassEquation:u,isWithinCurveOrder:p}=Q1({...t,toBytes(A,T,P){const N=T.toAffine(),_=r.toBytes(N.x),H=jr;return P?H(Uint8Array.from([T.hasEvenY()?2:3]),_):H(Uint8Array.from([4]),_,r.toBytes(N.y))},fromBytes(A){const T=A.length,P=A[0],N=A.subarray(1);if(T===s&&(P===2||P===3)){const _=Et(N);if(!o(_))throw new Error("Point is not on curve");const H=u(_);let K;try{K=r.sqrt(H)}catch(W){const ie=W instanceof Error?": "+W.message:"";throw new Error("Point is not on curve"+ie)}const G=(K&Be)===Be;return(P&1)===1!==G&&(K=r.neg(K)),{x:_,y:K}}else if(T===a&&P===4){const _=r.fromBytes(N.subarray(0,r.BYTES)),H=r.fromBytes(N.subarray(r.BYTES,2*r.BYTES));return{x:_,y:H}}else throw new Error(`Point of length ${T} was invalid. Expected ${s} compressed bytes or ${a} uncompressed bytes`)}}),g=A=>qt(Kt(A,t.nByteLength));function b(A){const T=n>>Be;return A>T}function f(A){return b(A)?i(-A):A}const m=(A,T,P)=>Et(A.slice(T,P));class y{constructor(T,P,N){this.r=T,this.s=P,this.recovery=N,this.assertValidity()}static fromCompact(T){const P=t.nByteLength;return T=Pe("compactSignature",T,P*2),new y(m(T,0,P),m(T,P,2*P))}static fromDER(T){const{r:P,s:N}=gt.toSig(Pe("DER",T));return new y(P,N)}assertValidity(){if(!p(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!p(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(T){return new y(this.r,this.s,T)}recoverPublicKey(T){const{r:P,s:N,recovery:_}=this,H=k(Pe("msgHash",T));if(_==null||![0,1,2,3].includes(_))throw new Error("recovery id invalid");const K=_===2||_===3?P+t.n:P;if(K>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const G=_&1?"03":"02",oe=l.fromHex(G+g(K)),W=c(K),ie=i(-H*W),Se=i(N*W),ce=l.BASE.multiplyAndAddUnsafe(oe,ie,Se);if(!ce)throw new Error("point at infinify");return ce.assertValidity(),ce}hasHighS(){return b(this.s)}normalizeS(){return this.hasHighS()?new y(this.r,i(-this.s),this.recovery):this}toDERRawBytes(){return Gt(this.toDERHex())}toDERHex(){return gt.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Gt(this.toCompactHex())}toCompactHex(){return g(this.r)+g(this.s)}}const w={isValidPrivateKey(A){try{return d(A),!0}catch{return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const A=Vu(t.n);return V1(t.randomBytes(A),t.n)},precompute(A=8,T=l.BASE){return T._setWindowSize(A),T.multiply(BigInt(3)),T}};function x(A,T=!0){return l.fromPrivateKey(A).toRawBytes(T)}function C(A){const T=Bt(A),P=typeof A=="string",N=(T||P)&&A.length;return T?N===s||N===a:P?N===2*s||N===2*a:A instanceof l}function E(A,T,P=!0){if(C(A))throw new Error("first arg must be private key");if(!C(T))throw new Error("second arg must be public key");return l.fromHex(T).multiply(d(A)).toRawBytes(P)}const v=t.bits2int||function(A){const T=Et(A),P=A.length*8-t.nBitLength;return P>0?T>>BigInt(P):T},k=t.bits2int_modN||function(A){return i(v(A))},B=Bo(t.nBitLength);function S(A){if(typeof A!="bigint")throw new Error("bigint expected");if(!(Ze<=A&&A<B))throw new Error(`bigint expected < 2^${t.nBitLength}`);return Kt(A,t.nByteLength)}function $(A,T,P=U){if(["recovered","canonical"].some(le=>le in P))throw new Error("sign() legacy options not supported");const{hash:N,randomBytes:_}=t;let{lowS:H,prehash:K,extraEntropy:G}=P;H==null&&(H=!0),A=Pe("msgHash",A),K&&(A=Pe("prehashed msgHash",N(A)));const oe=k(A),W=d(T),ie=[S(W),S(oe)];if(G!=null&&G!==!1){const le=G===!0?_(r.BYTES):G;ie.push(Pe("extraEntropy",le))}const Se=jr(...ie),ce=oe;function pt(le){const ye=v(le);if(!p(ye))return;const ar=c(ye),ge=l.BASE.multiply(ye).toAffine(),X=i(ge.x);if(X===Ze)return;const xe=i(ar*i(ce+X*W));if(xe===Ze)return;let or=(ge.x===X?0:2)|Number(ge.y&Be),ir=xe;return H&&b(xe)&&(ir=f(xe),or^=1),new y(X,ir,or)}return{seed:Se,k2sig:pt}}const U={lowS:t.lowS,prehash:!1},z={lowS:t.lowS,prehash:!1};function O(A,T,P=U){const{seed:N,k2sig:_}=$(A,T,P),H=t;return qu(H.hash.outputLen,H.nByteLength,H.hmac)(N,_)}l.BASE._setWindowSize(8);function q(A,T,P,N=z){var ge;const _=A;if(T=Pe("msgHash",T),P=Pe("publicKey",P),"strict"in N)throw new Error("options.strict was renamed to lowS");const{lowS:H,prehash:K}=N;let G,oe;try{if(typeof _=="string"||Bt(_))try{G=y.fromDER(_)}catch(X){if(!(X instanceof gt.Err))throw X;G=y.fromCompact(_)}else if(typeof _=="object"&&typeof _.r=="bigint"&&typeof _.s=="bigint"){const{r:X,s:xe}=_;G=new y(X,xe)}else throw new Error("PARSE");oe=l.fromHex(P)}catch(X){if(X.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(H&&G.hasHighS())return!1;K&&(T=t.hash(T));const{r:W,s:ie}=G,Se=k(T),ce=c(ie),pt=i(Se*ce),le=i(W*ce),ye=(ge=l.BASE.multiplyAndAddUnsafe(oe,pt,le))==null?void 0:ge.toAffine();return ye?i(ye.x)===W:!1}return{CURVE:t,getPublicKey:x,getSharedSecret:E,sign:O,verify:q,ProjectivePoint:l,Signature:y,utils:w}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function ry(e){return{hash:e,hmac:(t,...r)=>Cr(e,t,Ut(...r)),randomBytes:ec}}function ny(e,t){const r=n=>ty({...e,...ry(n)});return Object.freeze({...r(t),create:r})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Wu=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),ki=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),sy=BigInt(1),Ba=BigInt(2),Ci=(e,t)=>(e+t/Ba)/t;function ay(e){const t=Wu,r=BigInt(3),n=BigInt(6),s=BigInt(11),a=BigInt(22),o=BigInt(23),i=BigInt(44),c=BigInt(88),l=e*e*e%t,d=l*l*e%t,u=ke(d,r,t)*d%t,p=ke(u,r,t)*d%t,g=ke(p,Ba,t)*l%t,b=ke(g,s,t)*g%t,f=ke(b,a,t)*b%t,m=ke(f,i,t)*f%t,y=ke(m,c,t)*m%t,w=ke(y,i,t)*f%t,x=ke(w,r,t)*d%t,C=ke(x,o,t)*b%t,E=ke(C,n,t)*l%t,v=ke(E,Ba,t);if(!Aa.eql(Aa.sqr(v),e))throw new Error("Cannot find square root");return v}const Aa=K1(Wu,void 0,void 0,{sqrt:ay}),_e=ny({a:BigInt(0),b:BigInt(7),Fp:Aa,n:ki,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=ki,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-sy*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=r,o=BigInt("0x100000000000000000000000000000000"),i=Ci(a*e,t),c=Ci(-n*e,t);let l=ue(e-i*r-c*s,t),d=ue(-i*n-c*a,t);const u=l>o,p=d>o;if(u&&(l=t-l),p&&(d=t-d),l>o||d>o)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:u,k1:l,k2neg:p,k2:d}}}},Xt);BigInt(0);_e.ProjectivePoint;/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Ta(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function Xu(...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 oy(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return t.map(r=>{if(r<0||r>=e.length)throw new Error(`Digit index outside alphabet: ${r} (alphabet: ${e.length})`);return e[r]})},decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="string")throw new Error("alphabet.decode input should be array of strings");return t.map(r=>{if(typeof r!="string")throw new Error(`alphabet.decode: not string element=${r}`);const n=e.indexOf(r);if(n===-1)throw new Error(`Unknown letter: "${r}". Allowed: ${e}`);return n})}}}function iy(e=""){if(typeof e!="string")throw new Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="string")throw new Error("join.encode input should be array of strings");for(let r of t)if(typeof r!="string")throw new Error(`join.encode: non-string input=${r}`);return t.join(e)},decode:t=>{if(typeof t!="string")throw new Error("join.decode input should be string");return t.split(e)}}}function Bi(e,t,r){if(t<2)throw new Error(`convertRadix: wrong from=${t}, base cannot be less than 2`);if(r<2)throw new Error(`convertRadix: wrong to=${r}, base cannot be less than 2`);if(!Array.isArray(e))throw new Error("convertRadix: data should be array");if(!e.length)return[];let n=0;const s=[],a=Array.from(e);for(a.forEach(o=>{if(o<0||o>=t)throw new Error(`Wrong integer: ${o}`)});;){let o=0,i=!0;for(let c=n;c<a.length;c++){const l=a[c],d=t*o+l;if(!Number.isSafeInteger(d)||t*o/t!==o||d-l!==t*o)throw new Error("convertRadix: carry overflow");o=d%r;const u=Math.floor(d/r);if(a[c]=u,!Number.isSafeInteger(u)||u*r+o!==d)throw new Error("convertRadix: carry overflow");if(i)u?i=!1:n=c;else continue}if(s.push(o),i)break}for(let o=0;o<e.length-1&&e[o]===0;o++)s.push(0);return s.reverse()}function cy(e){return{encode:t=>{if(!Ta(t))throw new Error("radix.encode input should be Uint8Array");return Bi(Array.from(t),2**8,e)},decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="number")throw new Error("radix.decode input should be array of numbers");return Uint8Array.from(Bi(t,e,2**8))}}}function ly(e,t){if(typeof t!="function")throw new Error("checksum fn should be function");return{encode(r){if(!Ta(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(!Ta(r))throw new Error("checksum.decode: input should be Uint8Array");const n=r.slice(0,-e),s=t(n).slice(0,e),a=r.slice(-e);for(let o=0;o<e;o++)if(s[o]!==a[o])throw new Error("Invalid checksum");return n}}}const uy=e=>Xu(cy(58),oy(e),iy("")),dy=uy("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),py=e=>Xu(ly(4,t=>e(e(t))),dy);/*! scure-bip32 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */const Cn=_e.ProjectivePoint,Ls=py(Xt);function Ai(e){return BigInt(`0x${jd(e)}`)}function fy(e){return qd(e.toString(16).padStart(64,"0"))}const hy=Qi("Bitcoin seed"),Hs={private:76066276,public:76067358},Ds=2147483648,my=e=>rf(Xt(e)),by=e=>$t(e).getUint32(0,!1),Bn=e=>{if(!Number.isSafeInteger(e)||e<0||e>2**32-1)throw new Error(`Invalid number=${e}. Should be from 0 to 2 ** 32 - 1`);const t=new Uint8Array(4);return $t(t).setUint32(0,e,!1),t};class bt{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return by(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 Ls.encode(this.serialize(this.versions.private,Ut(new Uint8Array([0]),t)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return Ls.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(t,r=Hs){if($e(t),8*t.length<128||8*t.length>512)throw new Error(`HDKey: wrong seed length=${t.length}. Should be between 128 and 512 bits; 256 bits is advised)`);const n=Cr(yi,hy,t);return new bt({versions:r,chainCode:n.slice(32),privateKey:n.slice(0,32)})}static fromExtendedKey(t,r=Hs){const n=Ls.decode(t),s=$t(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 bt({...o,privateKey:i.slice(1)}):new bt({...o,publicKey:i})}static fromJSON(t){return bt.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||Hs,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(!_e.utils.isValidPrivateKey(t.privateKey))throw new Error("Invalid private key");this.privKey=typeof t.privateKey=="bigint"?t.privateKey:Ai(t.privateKey),this.privKeyBytes=fy(this.privKey),this.pubKey=_e.getPublicKey(t.privateKey,!0)}else if(t.publicKey)this.pubKey=Cn.fromHex(t.publicKey).toRawBytes(!0);else throw new Error("HDKey: no public or private key provided");this.pubHash=my(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>=Ds)throw new Error("Invalid index");a[2]==="'"&&(i+=Ds),n=n.deriveChild(i)}return n}deriveChild(t){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let r=Bn(t);if(t>=Ds){const i=this.privateKey;if(!i)throw new Error("Could not derive hardened child key");r=Ut(new Uint8Array([0]),i,r)}else r=Ut(this.pubKey,r);const n=Cr(yi,this.chainCode,r),s=Ai(n.slice(0,32)),a=n.slice(32);if(!_e.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=ue(this.privKey+s,_e.CURVE.n);if(!_e.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=Cn.fromHex(this.pubKey).add(Cn.fromPrivateKey(s));if(i.equals(Cn.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");o.publicKey=i.toRawBytes(!0)}return new bt(o)}catch{return this.deriveChild(t+1)}}sign(t){if(!this.privateKey)throw new Error("No privateKey set!");return $e(t,32),_e.sign(t,this.privKey).toCompactRawBytes()}verify(t,r){if($e(t,32),$e(r,64),!this.publicKey)throw new Error("No publicKey set!");let n;try{n=_e.Signature.fromCompact(r)}catch{return!1}return _e.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 $e(r,33),Ut(Bn(t),new Uint8Array([this.depth]),Bn(this.parentFingerprint),Bn(this.index),this.chainCode,r)}}function Er(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function yy(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function Ao(e,...t){if(!yy(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function Yu(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Er(e.outputLen),Er(e.blockLen)}function ns(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 gy(e,t){Ao(e);const r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Jn=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);new Uint8Array(new Uint32Array([287454020]).buffer)[0];function xy(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function qr(e){return typeof e=="string"&&(e=xy(e)),Ao(e),e}class Ju{clone(){return this._cloneInto()}}const wy={}.toString;function Ey(e,t){if(t!==void 0&&wy.call(t)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(e,t)}function vy(e){const t=n=>e().update(qr(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}class Qu extends Ju{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,Yu(t);const n=qr(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),a.fill(0)}update(t){return ns(this),this.iHash.update(t),this}digestInto(t){ns(this),Ao(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}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const ed=(e,t,r)=>new Qu(e,t).update(r).digest();ed.create=(e,t)=>new Qu(e,t);function ky(e,t,r,n){Yu(e);const s=Ey({dkLen:32,asyncTick:10},n),{c:a,dkLen:o,asyncTick:i}=s;if(Er(a),Er(o),Er(i),a<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const c=qr(t),l=qr(r),d=new Uint8Array(o),u=ed.create(e,c),p=u._cloneInto().update(l);return{c:a,dkLen:o,asyncTick:i,DK:d,PRF:u,PRFSalt:p}}function Cy(e,t,r,n,s){return e.destroy(),t.destroy(),n&&n.destroy(),s.fill(0),r}function By(e,t,r,n){const{c:s,dkLen:a,DK:o,PRF:i,PRFSalt:c}=ky(e,t,r,n);let l;const d=new Uint8Array(4),u=Jn(d),p=new Uint8Array(i.outputLen);for(let g=1,b=0;b<a;g++,b+=i.outputLen){const f=o.subarray(b,b+i.outputLen);u.setInt32(0,g,!1),(l=c._cloneInto(l)).update(d).digestInto(p),f.set(p.subarray(0,f.length));for(let m=1;m<s;m++){i._cloneInto(l).update(p).digestInto(p);for(let y=0;y<f.length;y++)f[y]^=p[y]}}return Cy(i,c,o,l,p)}function Ay(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,l=n?0:4;e.setUint32(t+c,o,n),e.setUint32(t+l,i,n)}class Ty extends Ju{constructor(t,r,n,s){super(),this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=Jn(this.buffer)}update(t){ns(this);const{view:r,buffer:n,blockLen:s}=this;t=qr(t);const a=t.length;for(let o=0;o<a;){const i=Math.min(s-this.pos,a-o);if(i===s){const c=Jn(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){ns(this),gy(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:s,isLE:a}=this;let{pos:o}=this;r[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>s-o&&(this.process(n,0),o=0);for(let u=o;u<s;u++)r[u]=0;Ay(n,s-8,BigInt(this.length*8),a),this.process(n,0);const i=Jn(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,d=this.get();if(l>d.length)throw new Error("_sha2: outputLen bigger than state");for(let u=0;u<l;u++)i.setUint32(4*u,d[u],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.length=s,t.pos=i,t.finished=a,t.destroyed=o,s%r&&t.buffer.set(n),t}}const An=BigInt(2**32-1),Sa=BigInt(32);function td(e,t=!1){return t?{h:Number(e&An),l:Number(e>>Sa&An)}:{h:Number(e>>Sa&An)|0,l:Number(e&An)|0}}function Sy(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let s=0;s<e.length;s++){const{h:a,l:o}=td(e[s],t);[r[s],n[s]]=[a,o]}return[r,n]}const Iy=(e,t)=>BigInt(e>>>0)<<Sa|BigInt(t>>>0),Uy=(e,t,r)=>e>>>r,Py=(e,t,r)=>e<<32-r|t>>>r,$y=(e,t,r)=>e>>>r|t<<32-r,Fy=(e,t,r)=>e<<32-r|t>>>r,Oy=(e,t,r)=>e<<64-r|t>>>r-32,Ny=(e,t,r)=>e>>>r-32|t<<64-r,My=(e,t)=>t,_y=(e,t)=>e,Ry=(e,t,r)=>e<<r|t>>>32-r,zy=(e,t,r)=>t<<r|e>>>32-r,Ly=(e,t,r)=>t<<r-32|e>>>64-r,Hy=(e,t,r)=>e<<r-32|t>>>64-r;function Dy(e,t,r,n){const s=(t>>>0)+(n>>>0);return{h:e+r+(s/2**32|0)|0,l:s|0}}const jy=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),qy=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,Gy=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),Ky=(e,t,r,n,s)=>t+r+n+s+(e/2**32|0)|0,Vy=(e,t,r,n,s)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(s>>>0),Zy=(e,t,r,n,s,a)=>t+r+n+s+a+(e/2**32|0)|0,j={fromBig:td,split:Sy,toBig:Iy,shrSH:Uy,shrSL:Py,rotrSH:$y,rotrSL:Fy,rotrBH:Oy,rotrBL:Ny,rotr32H:My,rotr32L:_y,rotlSH:Ry,rotlSL:zy,rotlBH:Ly,rotlBL:Hy,add:Dy,add3L:jy,add3H:qy,add4L:Gy,add4H:Ky,add5H:Zy,add5L:Vy},[Wy,Xy]=j.split(["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))),st=new Uint32Array(80),at=new Uint32Array(80);class Yy extends Ty{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:r,Bh:n,Bl:s,Ch:a,Cl:o,Dh:i,Dl:c,Eh:l,El:d,Fh:u,Fl:p,Gh:g,Gl:b,Hh:f,Hl:m}=this;return[t,r,n,s,a,o,i,c,l,d,u,p,g,b,f,m]}set(t,r,n,s,a,o,i,c,l,d,u,p,g,b,f,m){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=l|0,this.El=d|0,this.Fh=u|0,this.Fl=p|0,this.Gh=g|0,this.Gl=b|0,this.Hh=f|0,this.Hl=m|0}process(t,r){for(let x=0;x<16;x++,r+=4)st[x]=t.getUint32(r),at[x]=t.getUint32(r+=4);for(let x=16;x<80;x++){const C=st[x-15]|0,E=at[x-15]|0,v=j.rotrSH(C,E,1)^j.rotrSH(C,E,8)^j.shrSH(C,E,7),k=j.rotrSL(C,E,1)^j.rotrSL(C,E,8)^j.shrSL(C,E,7),B=st[x-2]|0,S=at[x-2]|0,$=j.rotrSH(B,S,19)^j.rotrBH(B,S,61)^j.shrSH(B,S,6),U=j.rotrSL(B,S,19)^j.rotrBL(B,S,61)^j.shrSL(B,S,6),z=j.add4L(k,U,at[x-7],at[x-16]),O=j.add4H(z,v,$,st[x-7],st[x-16]);st[x]=O|0,at[x]=z|0}let{Ah:n,Al:s,Bh:a,Bl:o,Ch:i,Cl:c,Dh:l,Dl:d,Eh:u,El:p,Fh:g,Fl:b,Gh:f,Gl:m,Hh:y,Hl:w}=this;for(let x=0;x<80;x++){const C=j.rotrSH(u,p,14)^j.rotrSH(u,p,18)^j.rotrBH(u,p,41),E=j.rotrSL(u,p,14)^j.rotrSL(u,p,18)^j.rotrBL(u,p,41),v=u&g^~u&f,k=p&b^~p&m,B=j.add5L(w,E,k,Xy[x],at[x]),S=j.add5H(B,y,C,v,Wy[x],st[x]),$=B|0,U=j.rotrSH(n,s,28)^j.rotrBH(n,s,34)^j.rotrBH(n,s,39),z=j.rotrSL(n,s,28)^j.rotrBL(n,s,34)^j.rotrBL(n,s,39),O=n&a^n&i^a&i,q=s&o^s&c^o&c;y=f|0,w=m|0,f=g|0,m=b|0,g=u|0,b=p|0,{h:u,l:p}=j.add(l|0,d|0,S|0,$|0),l=i|0,d=c|0,i=a|0,c=o|0,a=n|0,o=s|0;const A=j.add3L($,z,q);n=j.add3H(A,S,U,O),s=A|0}({h:n,l:s}=j.add(this.Ah|0,this.Al|0,n|0,s|0)),{h:a,l:o}=j.add(this.Bh|0,this.Bl|0,a|0,o|0),{h:i,l:c}=j.add(this.Ch|0,this.Cl|0,i|0,c|0),{h:l,l:d}=j.add(this.Dh|0,this.Dl|0,l|0,d|0),{h:u,l:p}=j.add(this.Eh|0,this.El|0,u|0,p|0),{h:g,l:b}=j.add(this.Fh|0,this.Fl|0,g|0,b|0),{h:f,l:m}=j.add(this.Gh|0,this.Gl|0,f|0,m|0),{h:y,l:w}=j.add(this.Hh|0,this.Hl|0,y|0,w|0),this.set(n,s,a,o,i,c,l,d,u,p,g,b,f,m,y,w)}roundClean(){st.fill(0),at.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const Jy=vy(()=>new Yy);/*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */function rd(e){if(typeof e!="string")throw new TypeError(`Invalid mnemonic type: ${typeof e}`);return e.normalize("NFKD")}function Qy(e){const t=rd(e),r=t.split(" ");if(![12,15,18,21,24].includes(r.length))throw new Error("Invalid mnemonic");return{nfkd:t,words:r}}const eg=e=>rd(`mnemonic${e}`);function tg(e,t=""){return By(Jy,Qy(e).nfkd,eg(t),{c:2048,dkLen:64})}function rg(e){if(typeof e=="string"){if(!Z(e,{strict:!1}))throw new ee({address:e});return{address:e,type:"json-rpc"}}if(!Z(e.address,{strict:!1}))throw new ee({address:e.address});return{address:e.address,nonceManager:e.nonceManager,sign:e.sign,experimental_signAuthorization:e.experimental_signAuthorization,signMessage:e.signMessage,signTransaction:e.signTransaction,signTypedData:e.signTypedData,source:"custom",type:"local"}}async function dn({hash:e,privateKey:t,to:r="object"}){const{r:n,s,recovery:a}=Vr.sign(e.slice(2),t.slice(2)),o={r:R(n,{size:32}),s:R(s,{size:32}),v:a?28n:27n,yParity:a};return r==="bytes"||r==="hex"?zu({...o,to:r}):o}async function ng(e){const{contractAddress:t,chainId:r,nonce:n,privateKey:s,to:a="object"}=e,o=await dn({hash:Xl({contractAddress:t,chainId:r,nonce:n}),privateKey:s,to:a});return a==="object"?{contractAddress:t,chainId:r,nonce:n,...o}:o}async function sg({message:e,privateKey:t}){return await dn({hash:yo(e),privateKey:t,to:"hex"})}async function ag(e){const{privateKey:t,transaction:r,serializer:n=xo}=e,s=r.type==="eip4844"?{...r,sidecars:!1}:r,a=await dn({hash:re(n(s)),privateKey:t});return n(r,a)}async function og(e){const{privateKey:t,...r}=e;return await dn({hash:Iu(r),privateKey:t,to:"hex"})}function To(e,t={}){const{nonceManager:r}=t,n=F(Vr.getPublicKey(e.slice(2),!1)),s=Kl(n);return{...rg({address:s,nonceManager:r,async sign({hash:o}){return dn({hash:o,privateKey:e,to:"hex"})},async experimental_signAuthorization(o){return ng({...o,privateKey:e})},async signMessage({message:o}){return sg({message:o,privateKey:e})},async signTransaction(o,{serializer:i}={}){return ag({privateKey:e,transaction:o,serializer:i})},async signTypedData(o){return og({...o,privateKey:e})}}),publicKey:n,source:"privateKey"}}function ig(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{...To(F(o.privateKey),a),getHdKey:()=>o,source:"hd"}}function cg(e,t={}){const r=tg(e);return ig(bt.fromMasterSeed(r),t)}const So=50000n,Ti=$m*32n,nd={block:ro({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=nd.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?V(e.l1BatchNumber):null,l1BatchTimestamp:e.l1BatchTimestamp?V(e.l1BatchTimestamp):null,transactions:t}}}),transaction:eo({format(e){const t={};return e.type==="0x71"?t.type="eip712":e.type==="0xff"&&(t.type="priority"),{...t,l1BatchNumber:e.l1BatchNumber?V(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?V(e.l1BatchTxIndex):null}}}),transactionReceipt:_u({format(e){return{l1BatchNumber:e.l1BatchNumber?V(e.l1BatchNumber):null,l1BatchTxIndex:e.l1BatchTxIndex?V(e.l1BatchTxIndex):null,logs:e.logs.map(t=>({...Je(t),l1BatchNumber:t.l1BatchNumber?V(t.l1BatchNumber):null,transactionLogIndex:Ee(t.transactionLogIndex),logType:t.logType})),l2ToL1Logs:e.l2ToL1Logs.map(t=>({blockNumber:V(t.blockHash),blockHash:t.blockHash,l1BatchNumber:V(t.l1BatchNumber),transactionIndex:V(t.transactionIndex),shardId:V(t.shardId),isService:t.isService,sender:t.sender,key:t.key,value:t.value,transactionHash:t.transactionHash,logIndex:V(t.logIndex)}))}}}),transactionRequest:Jl({exclude:["customSignature","factoryDeps","gasPerPubdata","paymaster","paymasterInput"],format(e){return e.gasPerPubdata||e.paymaster&&e.paymasterInput||e.factoryDeps||e.customSignature?{eip712Meta:{...e.gasPerPubdata?{gasPerPubdata:F(e.gasPerPubdata)}:{gasPerPubdata:F(So)},...e.paymaster&&e.paymasterInput?{paymasterParams:{paymaster:e.paymaster,paymasterInput:Array.from(pe(e.paymasterInput))}}:{},...e.factoryDeps?{factoryDeps:e.factoryDeps.map(t=>Array.from(pe(t)))}:{},...e.customSignature?{customSignature:Array.from(pe(e.customSignature))}:{}},type:"0x71"}:{}}})};class lg extends I{constructor(){super(["Transaction is not an EIP712 transaction.","","Transaction must:",' - include `type: "eip712"`'," - include one of the following: `customSignature`, `paymaster`, `paymasterInput`, `gasPerPubdata`, `factoryDeps`"].join(`
|
|
45
|
-
`),{name:"InvalidEip712TransactionError"})}}function sd(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 ad(e){const{chainId:t,to:r,from:n,paymaster:s,paymasterInput:a}=e;if(!sd(e))throw new lg;if(!t||t<=0)throw new tr({chainId:t});if(r&&!Z(r))throw new ee({address:r});if(n&&!Z(n))throw new ee({address:n});if(s&&!Z(s))throw new ee({address:s});if(s&&!a)throw new I("`paymasterInput` must be provided when `paymaster` is defined");if(!s&&a)throw new I("`paymaster` must be provided when `paymasterInput` is defined")}function ug(e,t){return sd(e)?pg(e):xo(e,t)}const dg={transaction:ug};function pg(e){const{chainId:t,gas:r,nonce:n,to:s,from:a,value:o,maxFeePerGas:i,maxPriorityFeePerGas:c,customSignature:l,factoryDeps:d,paymaster:u,paymasterInput:p,gasPerPubdata:g,data:b}=e;ad(e);const f=[n?F(n):"0x",c?F(c):"0x",i?F(i):"0x",r?F(r):"0x",s??"0x",o?F(o):"0x",b??"0x0",F(t),F(""),F(""),F(t),a??"0x",F(g||So),d??[],l??"0x",u&&p?[u,p]:[]];return Te(["0x71",Le(f)])}class fg extends I{constructor({givenLength:t,maxBytecodeSize:r}){super(`Bytecode cannot be longer than ${r} bytes. Given length: ${t}`,{name:"BytecodeLengthExceedsMaxSizeError"})}}class hg extends I{constructor({givenLengthInWords:t}){super(`Bytecode length in 32-byte words must be odd. Given length in words: ${t}`,{name:"BytecodeLengthInWordsMustBeOddError"})}}class mg extends I{constructor({givenLength:t}){super(`The bytecode length in bytes must be divisible by 32. Given length: ${t}`,{name:"BytecodeLengthMustBeDivisibleBy32Error"})}}function bg(e){const t=Oe(e);if(t.length%32!==0)throw new mg({givenLength:t.length});if(t.length>Ti)throw new fg({givenLength:t.length,maxBytecodeSize:Ti});const r=su(t),n=Oe(r),s=t.length/32;if(s%2===0)throw new hg({givenLengthInWords:s});const a=Oe(s),o=ut(a,{size:2}),i=new Uint8Array([1,0]);return n.set(i,0),n.set(o,2),n}const yg=e=>{ad(e);const t=gg(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 gg(e){const{gas:t,nonce:r,to:n,from:s,value:a,maxFeePerGas:o,maxPriorityFeePerGas:i,factoryDeps:c,paymaster:l,paymasterInput:d,gasPerPubdata:u,data:p}=e;return{txType:113n,from:BigInt(s),to:n?BigInt(n):0n,gasLimit:t??0n,gasPerPubdataByteLimit:u??So,maxFeePerGas:o??0n,maxPriorityFeePerGas:i??0n,paymaster:l?BigInt(l):0n,nonce:r?BigInt(r):0n,value:a??0n,data:p||"0x0",factoryDeps:(c==null?void 0:c.map(g=>F(bg(g))))??[],paymasterInput:d||"0x"}}const St={formatters:nd,serializers:dg,custom:{getEip712Domain:yg}},xg=h({...St,id:11124,name:"Abstract Testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://api.testnet.abs.xyz"]}},blockExplorers:{default:{name:"Abstract Block Explorer",url:"https://explorer.testnet.abs.xyz"}},testnet:!0,contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963",blockCreated:358349}}}),wg=h({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}),Eg=h({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}),vg=h({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}),kg={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},Io={block:ro({format(e){var r;return{transactions:(r=e.transactions)==null?void 0:r.map(n=>{if(typeof n=="string")return n;const s=tn(n);return s.typeHex==="0x7e"&&(s.isSystemTx=n.isSystemTx,s.mint=n.mint?V(n.mint):void 0,s.sourceHash=n.sourceHash,s.type="deposit"),s}),stateRoot:e.stateRoot}}}),transaction:eo({format(e){const t={};return e.type==="0x7e"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?V(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:_u({format(e){return{l1GasPrice:e.l1GasPrice?V(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?V(e.l1GasUsed):null,l1Fee:e.l1Fee?V(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})};function od(e,t){return Ag(e)?Bg(e):xo(e,t)}const Cg={transaction:od};function Bg(e){Tg(e);const{sourceHash:t,data:r,from:n,gas:s,isSystemTx:a,mint:o,to:i,value:c}=e,l=[t,n,i??"0x",o?F(o):"0x",c?F(c):"0x",s?F(s):"0x",a?"0x1":"0x",r??"0x"];return Te(["0x7e",Le(l)])}function Ag(e){return e.type==="deposit"||typeof e.sourceHash<"u"}function Tg(e){const{from:t,to:r}=e;if(t&&!Z(t))throw new ee({address:t});if(r&&!Z(r))throw new ee({address:r})}const M={contracts:kg,formatters:Io,serializers:Cg},Tn=1,Sg=h({...M,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:{...M.contracts,l2OutputOracle:{[Tn]:{address:"0xB09DC08428C8b4EFB4ff9C0827386CDF34277996"}},portal:{[Tn]:{address:"0x639F2AECE398Aa76b07e59eF6abe2cFe32bacb68",blockCreated:19070571}},l1StandardBridge:{[Tn]:{address:"0xd5e3eDf5b68135D559D572E26bF863FBC1950033",blockCreated:19070571}}},sourceId:Tn}),Sn=11155111,Ig=h({...M,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:{...M.contracts,l2OutputOracle:{[Sn]:{address:"0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB"}},portal:{[Sn]:{address:"0xfa1d9E26A6aCD7b22115D27572c1221B9803c960",blockCreated:4972908}},l1StandardBridge:{[Sn]:{address:"0xF6Bc0146d3c74D48306e79Ae134A260E418C9335",blockCreated:4972908}}},sourceId:Sn}),Ug=h({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"]}}}),Pg=h({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}),$g=h({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},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}}}),Fg=h({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}),Og=h({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}}}),Ng=h({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}}}),Mg=h({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}),_g=h({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}),Rg=h({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}),zg=h({id:421614,name:"Arbitrum Sepolia",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}),Lg=h({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}),Hg=h({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}),Dg=h({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}),jg=h({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}),qg=h({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}}}),Gg=h({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}),Kg=h({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}),Vg=h({id:43114,name:"Avalanche",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}}}),Zg=h({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}),Wg=168587773,Xg=h({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"}},testnet:!0,sourceId:Wg}),Yg=8453,Jg=h({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"}},sourceId:Yg}),Qg=h({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"}}}),In=1,e2=h({...M,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:{...M.contracts,l2OutputOracle:{[In]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[In]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[In]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:In}),Un=5,t2=h({...M,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:{...M.contracts,l2OutputOracle:{[Un]:{address:"0x2A35891ff30313CcFa6CE88dcf3858bb075A2298"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1376988},portal:{[Un]:{address:"0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA"}},l1StandardBridge:{[Un]:{address:"0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a"}}},testnet:!0,sourceId:Un}),dr=11155111,r2=h({...M,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:{...M.contracts,disputeGameFactory:{[dr]:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{[dr]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[dr]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[dr]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:dr}),n2=h({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}}}),s2=h({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}),a2=h({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"}}}),o2=h({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}),i2=h({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"}},testnet:!0}),c2=h({id:80084,name:"Berachain bArtio",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:109269}},rpcUrls:{default:{http:["https://bartio.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berachain bArtio Beratrail",url:"https://bartio.beratrail.io"}},testnet:!0}),l2=h({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"}}}),u2=h({id:96,name:"Bitkub",nativeCurrency:{name:"Bitkub",symbol:"KUB",decimals:18},rpcUrls:{default:{http:["https://rpc.bitkubchain.io"]}},blockExplorers:{default:{name:"Bitkub Chain Mainnet Explorer",url:"https://www.bkcscan.com",apiUrl:"https://www.bkcscan.com/api"}}}),d2=h({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}),p2=h({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}}}),f2=h({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}),h2=1,m2=h({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:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:212929}},sourceId:h2}),b2=11155111,y2=h({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:b2}),js=1,g2=h({...M,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:{...M.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:23131},l2OutputOracle:{[js]:{address:"0xdDa53E23f8a32640b04D7256e651C1db98dB11C1",blockCreated:4462615}},portal:{[js]:{address:"0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E",blockCreated:4462615}}},sourceId:js}),qs=11155111,x2=h({...M,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:{...M.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:35677},l2OutputOracle:{[qs]:{address:"0x14D0069452b4AE2b250B395b8adAb771E4267d2f",blockCreated:4462615}},portal:{[qs]:{address:"0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4",blockCreated:4462615}}},testnet:!0,sourceId:qs}),w2=h({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}}}),E2=h({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}),v2=h({id:3636,name:"Botanix Testnet",nativeCurrency:{name:"Botanix",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://poa-node.botanixlabs.dev"]}},blockExplorers:{default:{name:"blockscout",url:"https://blockscout.botanixlabs.dev",apiUrl:"https://blockscout.botanixlabs.dev"}},testnet:!0}),k2=h({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}),C2=h({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}),B2=h({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"}}}),A2=h({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}),T2=h({id:56,name:"BNB Smart Chain",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://rpc.ankr.com/bsc"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}}),S2=h({id:97,name:"Binance 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}),I2=h({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}),U2=h({id:200901,name:"Bitlayer",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.bitlayer.org","https://rpc.bitlayer-rpc.com","https://rpc.ankr.com/bitlayer"],webSocket:["wss://ws.bitlayer.org","wss://ws.bitlayer-rpc.com"]}},blockExplorers:{default:{name:"Bitlayer(BTR) Scan",url:"https://www.btrscan.com"}}}),P2=h({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}),$2=h({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"}}}),F2=h({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}),O2=h({id:13370,name:"Cannon",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),N2=h({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}}}),M2={estimateFeesPerGas:async e=>{var n;if(!((n=e.request)!=null&&n.feeCurrency))return null;const[t,r]=await Promise.all([_2(e.client,e.request.feeCurrency),R2(e.client,e.request.feeCurrency)]);return{maxFeePerGas:t,maxPriorityFeePerGas:r}}};async function _2(e,t){const r=await e.request({method:"eth_gasPrice",params:[t]});return BigInt(r)}async function R2(e,t){const r=await e.request({method:"eth_maxPriorityFeePerGas",params:[t]});return BigInt(r)}function id(e){return e===0||e===0n||e===void 0||e===null||e==="0"||e===""||typeof e=="string"&&(Re(e).toLowerCase()==="0x"||Re(e).toLowerCase()==="0x00")}function gr(e){return!id(e)}function z2(e){return typeof e.maxFeePerGas<"u"&&typeof e.maxPriorityFeePerGas<"u"}function cd(e){return e.type==="cip64"?!0:z2(e)&&gr(e.feeCurrency)}const L2={block:ro({format(e){var r;return{transactions:(r=e.transactions)==null?void 0:r.map(n=>typeof n=="string"?n:{...tn(n),...n.gatewayFee?{gatewayFee:V(n.gatewayFee),gatewayFeeRecipient:n.gatewayFeeRecipient}:{},feeCurrency:n.feeCurrency}),...e.randomness?{randomness:e.randomness}:{}}}}),transaction:eo({format(e){if(e.type==="0x7e")return{isSystemTx:e.isSystemTx,mint:e.mint?V(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?V(e.gatewayFee):null,t.gatewayFeeRecipient=e.gatewayFeeRecipient),t}}),transactionRequest:Jl({format(e){const t={};return e.feeCurrency&&(t.feeCurrency=e.feeCurrency),cd(e)&&(t.type="0x7b"),t}})};function H2(e,t){return cd(e)?j2(e,t):od(e,t)}const D2={transaction:H2};function j2(e,t){G2(e);const{chainId:r,gas:n,nonce:s,to:a,value:o,maxFeePerGas:i,maxPriorityFeePerGas:c,accessList:l,feeCurrency:d,data:u}=e,p=[F(r),s?F(s):"0x",c?F(c):"0x",i?F(i):"0x",n?F(n):"0x",a??"0x",o?F(o):"0x",u??"0x",cn(l),d,...sr(e,t)];return Te(["0x7b",Le(p)])}const q2=en;function G2(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:s,to:a,feeCurrency:o}=e;if(t<=0)throw new tr({chainId:t});if(a&&!Z(a))throw new ee({address:a});if(n)throw new I("`gasPrice` is not a valid CIP-64 Transaction attribute.");if(gr(s)&&s>q2)throw new it({maxFeePerGas:s});if(gr(r)&&gr(s)&&r>s)throw new jt({maxFeePerGas:s,maxPriorityFeePerGas:r});if(gr(o)&&!Z(o))throw new I("`feeCurrency` MUST be a token address for CIP-64 transactions.");if(id(o))throw new I("`feeCurrency` must be provided for CIP-64 transactions.")}const ld={formatters:L2,serializers:D2,fees:M2},K2=h({...ld,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}),V2=h({...ld,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 Explorer",url:"https://explorer.celo.org/alfajores",apiUrl:"https://explorer.celo.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:14569001}},testnet:!0}),Z2=h({id:88888,name:"Chiliz Chain",network:"chiliz-chain",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://rpc.ankr.com/chiliz","https://chiliz-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"https://scan.chiliz.com",apiUrl:"https://scan.chiliz.com/api"}}}),W2=h({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"]}}}),X2=h({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"}}}),Y2=h({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.io"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:68602935}}}),J2=h({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.io"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:117499050}}}),Q2=h({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}),ex=h({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}}}),tx=h({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}}}),rx=h({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"}}}),nx=h({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}),sx=h({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",url:"https://cronos.org/explorer/testnet3"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:10191251}},testnet:!0}),ax=h({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}}}),ox=h({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}),ix=h({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}}}),cx=h({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}),lx=h({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}}}),ux=h({...M,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:{...M.contracts}}),dx=h({...M,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:{...M.contracts}}),px=h({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}}}),fx=h({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}),hx=h({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"}}}),mx=h({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}}}),bx=h({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}),yx=h({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}}}),gx=h({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"}}}),xx=h({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}),wx=h({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"}}}),Ex=h({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"}}}),vx=h({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}}}),kx=h({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"}}}),Cx=h({...M,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}),Bx=h({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:{}}),Ax=h({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}}}),Tx=h({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}),Sx=h({id:42793,name:"Etherlink",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}}}),Ix=h({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}),Ux=h({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"}}}),Px=h({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/"}}}),$x=h({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"}}}),Fx=h({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}),Ox=h({id:250,name:"Fantom",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.ankr.com/fantom"]}},blockExplorers:{default:{name:"FTMScan",url:"https://ftmscan.com",apiUrl:"https://api.ftmscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:33001987}}}),Nx=h({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}),Mx=h({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}),_x=h({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"}}}),Rx=h({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}}}),zx=h({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}),Lx=h({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}),Hx=h({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}}}),Dx=h({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}),jx=h({id:646,name:"FlowEVM 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}}}),qx=h({id:747,name:"FlowEVM Mainnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://mainnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Mainnet Explorer",url:"https://flowdiver.io"}}}),Gx=h({id:545,name:"FlowEVM Testnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://testnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Flow Diver",url:"https://testnet.flowdiver.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:137518}}}),Kx=h({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"}}}),Vx=h({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"}},testnet:!0}),Zx=h({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"}},testnet:!0}),Wx=h({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}}}),Xx=h({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"]}}}),Pn=1,Yx=h({...M,id:252,name:"Fraxtal",nativeCurrency:{name:"Frax Ether",symbol:"frxETH",decimals:18},rpcUrls:{default:{http:["https://rpc.frax.com"]}},blockExplorers:{default:{name:"fraxscan",url:"https://fraxscan.com",apiUrl:"https://api.fraxscan.com/api"}},contracts:{...M.contracts,l2OutputOracle:{[Pn]:{address:"0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[Pn]:{address:"0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D",blockCreated:19135323}},l1StandardBridge:{[Pn]:{address:"0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2",blockCreated:19135323}}},sourceId:Pn}),$n=17e3,Jx=h({...M,id:2522,name:"Fraxtal Testnet",nativeCurrency:{name:"Frax Ether",symbol:"frxETH",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:{...M.contracts,l2OutputOracle:{[$n]:{address:"0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[$n]:{address:"0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d",blockCreated:318416}},l1StandardBridge:{[$n]:{address:"0x0BaafC217162f64930909aD9f2B27125121d6332",blockCreated:318416}}},sourceId:$n}),Qx=1,ew=h({...M,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:{...M.contracts},sourceId:Qx}),tw=11155111,rw=h({...M,id:3397901,network:"funkiSepolia",name:"Funki Sepolia Sandbox",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://funki-testnet.alt.technology"]}},blockExplorers:{default:{name:"Funki Sepolia Sandbox Explorer",url:"https://sepolia-sandbox.funkichain.com/"}},testnet:!0,contracts:{...M.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204}},sourceId:tw}),nw=h({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}}}),sw=h({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"}}}),aw=h({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}),ow=h({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}),iw=h({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}}}),cw=h({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}),lw=h({id:8899,name:"JIBCHAIN L1",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}),uw=h({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}),dw=h({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}),Fn=17e3,pw=h({...M,name:"Garnet Testnet",testnet:!0,id:17069,sourceId:Fn,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:{...M.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[Fn]:{address:"0x57ee40586fbE286AfC75E67cb69511A6D9aF5909",blockCreated:1274684}},l2OutputOracle:{[Fn]:{address:"0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B",blockCreated:1274684}},l1StandardBridge:{[Fn]:{address:"0x09bcDd311FE398F80a78BE37E489f5D440DB95DE",blockCreated:1274684}}}}),fw=h({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}),hw=h({id:5,name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/eth_goerli"]}},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}),mw=h({id:100,name:"Gnosis",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},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}}}),bw=h({id:10200,name:"Gnosis Chiado",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},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}),yw=h({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}}}),gw=h({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"}}}),xw=h({id:31337,name:"Hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),ww=h({id:16666e5,name:"Harmony One",nativeCurrency:{name:"Harmony",symbol:"ONE",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/harmony"]}},blockExplorers:{default:{name:"Harmony Explorer",url:"https://explorer.harmony.one"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:24185753}}}),Ew=h({id:133,name:"HashKey Chain Testnet",nativeCurrency:{decimals:18,name:"HashKey EcoPoints",symbol:"HSK"},rpcUrls:{default:{http:["https://hashkeychain-testnet.alt.technology"]}},blockExplorers:{default:{name:"HashKey Chain Explorer",url:"https://hashkeychain-testnet-explorer.alt.technology"}}}),vw=h({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"}}}),kw=h({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"}}}),Cw=h({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}),Bw=h({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}),Aw=h({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}),Tw=h({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},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",blockCreated:801613},ensUniversalResolver:{address:"0xa6AC935D4971E3CD133b950aE053bECD16fE7f3b",blockCreated:973484}},testnet:!0}),Sw=h({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}),Iw=h({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}),Uw=h({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}}}),Pw=h({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}),$w=h({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}}}),Fw=h({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"}}}),Ow=h({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}),Nw=h({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}),Mw=h({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}),_w=h({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}),Rw=h({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}),zw=h({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}),Lw=h({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}}}),Hw=h({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}),Dw=h({id:8217,name:"Kaia",nativeCurrency:{decimals:18,name:"Kaia",symbol:"KAIA"},rpcUrls:{default:{http:["https://public-en.node.kaia.io"]}},blockExplorers:{default:{name:"KaiaScope",url:"https://kaiascope.com",apiUrl:"https://api-cypress.klaytnscope.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96002415}}}),jw=h({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:"KaiaScope",url:"https://kairos.kaiascope.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:123390593}},testnet:!0}),qw=h({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}),Gw=h({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"}},testnet:!1}),Kw=h({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"}},testnet:!0}),Vw=h({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}),Zw=h({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}),Ww=h({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"}},testnet:!0}),Xw=h({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"}},testnet:!1});async function Yw(e,t){var s,a,o;const{account:r=e.account}=t;if(!r)throw new nr;const n=me(r);try{const{accessList:i,blockNumber:c,blockTag:l,data:d,gas:u,gasPrice:p,maxFeePerGas:g,maxPriorityFeePerGas:b,nonce:f,to:m,value:y,...w}=(n==null?void 0:n.type)==="local"?await nn(e,t):t,C=(c?R(c):void 0)||l;Qt(t);const E=(o=(a=(s=e.chain)==null?void 0:s.formatters)==null?void 0:a.transactionRequest)==null?void 0:o.format,k=(E||Tt)({...Qr(w,{format:E}),from:n==null?void 0:n.address,accessList:i,data:d,gas:u,gasPrice:p,maxFeePerGas:g,maxPriorityFeePerGas:b,nonce:f,to:m,value:y}),{baseFeePerGas:B,gasLimit:S,priorityFeePerGas:$}=await e.request({method:"linea_estimateGas",params:C?[k,C]:[k]});return{baseFeePerGas:BigInt(B),gasLimit:BigInt(S),priorityFeePerGas:BigInt($)}}catch(i){throw gu(i,{...t,account:n,chain:e.chain})}}const ud={fees:{estimateFeesPerGas:Si,async maxPriorityFeePerGas({block:e,client:t,request:r}){const n=await Si({block:e,client:t,multiply:s=>s,request:r,type:"eip1559"});return n!=null&&n.maxPriorityFeePerGas?n.maxPriorityFeePerGas:null}}};async function Si({client:e,multiply:t,request:r,type:n}){try{const s=await Yw(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 Jw=h({...ud,id:59144,name:"Linea Mainnet",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}},testnet:!1}),Qw=h({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}),e6=h({...ud,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}},testnet:!0}),t6=h({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}),r6=h({...M,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:{multicall3:{address:"0xA9d71E1dd7ca26F26e656E66d6AA81ed7f745bf0"}}}),On=11155111,n6=h({...M,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:{...M.contracts,l2OutputOracle:{[On]:{address:"0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[On]:{address:"0xe3d90F21490686Ec7eF37BE788E02dfC12787264"}},l1StandardBridge:{[On]:{address:"0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5"}}},testnet:!0,sourceId:On}),s6=h({id:1337,name:"Localhost",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),a6=h({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}}}),o6=h({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}),i6=h({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"}}}),c6=h({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}}}),l6=h({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cloudflare-eth.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xce01f8eee7E479C928F8919abD53E553a36CeF67",blockCreated:19258213},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),u6=h({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}),d6=h({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}}}),p6=h({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}),f6=h({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}),h6=h({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}}}),m6=h({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}),b6=h({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}),y6=h({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"}}}),g6=h({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}}}),x6=h({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}),Nn=1,w6=h({...M,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:{...M.contracts,l2OutputOracle:{[Nn]:{address:"0x3B1F7aDa0Fcc26B13515af752Dd07fB1CAc11426"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},portal:{[Nn]:{address:"0x3F37aBdE2C6b5B2ed6F8045787Df1ED1E3753956"}},l1StandardBridge:{[Nn]:{address:"0x6d0f65D59b55B0FEC5d2d15365154DcADC140BF3"}}},sourceId:Nn}),E6=h({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"}}}),v6=h({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"}}}),k6=h({id:1088,name:"Metis",nativeCurrency:{decimals:18,name:"Metis",symbol:"METIS"},rpcUrls:{default:{http:["https://andromeda.metis.io/?owner=1088"]}},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}}}),C6=h({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}}}),B6=h({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}}}),A6=h({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}),T6=h({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}),S6=h({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}),Mn=1,I6=h({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:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2465882},l2OutputOracle:{[Mn]:{address:"0x4317ba146D4933D889518a3e5E11Fe7a53199b04"}},portal:{[Mn]:{address:"0x8B34b14c7c7123459Cf3076b8Cb929BE097d0C07"}},l1StandardBridge:{[Mn]:{address:"0x735aDBbE72226BD52e818E7181953f42E3b0FF21"}}},sourceId:Mn}),_n=11155111,U6=h({...M,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:{...M.contracts,l2OutputOracle:{[_n]:{address:"0x2634BD65ba27AB63811c74A63118ACb312701Bfa",blockCreated:3778393}},portal:{[_n]:{address:"0x320e1580effF37E008F1C92700d1eBa47c1B23fD",blockCreated:3778395}},l1StandardBridge:{[_n]:{address:"0xbC5C679879B2965296756CD959C3C739769995E2",blockCreated:3778392}},multicall3:{address:"0xBAba8373113Fb7a68f195deF18732e01aF8eDfCF",blockCreated:3019007}},testnet:!0,sourceId:_n}),P6=h({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}),$6=h({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}),F6=h({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"]}}}),O6=h({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}),N6=h({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}),M6=h({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}),_6=h({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"}}}),R6=h({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}),z6=h({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}),L6=h({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}}}),H6=h({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}}}),D6=h({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"}}}),j6=h({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}),q6=h({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}}}),pr=1,G6=h({...M,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:{...M.contracts,disputeGameFactory:{[pr]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[pr]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[pr]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[pr]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:pr}),Rn=5,K6=h({...M,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:{...M.contracts,l2OutputOracle:{[Rn]:{address:"0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:49461},portal:{[Rn]:{address:"0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383"}},l1StandardBridge:{[Rn]:{address:"0x636Af16bf2f682dD3109e60102b8E1A089FedAa8"}}},testnet:!0,sourceId:Rn}),fr=11155111,V6=h({...M,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:{...M.contracts,disputeGameFactory:{[fr]:{address:"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"}},l2OutputOracle:{[fr]:{address:"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204},portal:{[fr]:{address:"0x16Fc5058F25648194471939df75CF27A2fdC48BC"}},l1StandardBridge:{[fr]:{address:"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"}}},testnet:!0,sourceId:fr}),Z6=h({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}),W6=h({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}),zn=56,X6=h({id:204,name:"opBNB",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://opbnb-mainnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opbnbscan",url:"https://mainnet.opbnbscan.com"}},contracts:{...M.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:512881},l2OutputOracle:{[zn]:{address:"0x153CAB79f4767E2ff862C94aa49573294B13D169"}},portal:{[zn]:{address:"0x1876EA7702C0ad0C6A2ae6036DE7733edfBca519"}},l1StandardBridge:{[zn]:{address:"0xF05F0e4362859c3331Cb9395CBC201E3Fa6757Ea"}}},sourceId:zn}),Ln=97,Y6=h({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:{...M.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3705108},l2OutputOracle:{[Ln]:{address:"0xFf2394Bb843012562f4349C6632a0EcB92fC8810"}},portal:{[Ln]:{address:"0x4386C8ABf2009aC0c263462Da568DD9d46e52a31"}},l1StandardBridge:{[Ln]:{address:"0x677311Fd2cCc511Bbc0f581E8d9a07B033D5E840"}}},testnet:!0,sourceId:Ln}),J6=h({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"}}}),Q6=h({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}),eE=h({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}),tE=h({id:41144114,name:"Otim Devnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["http://devnet.otim.xyz"]}},contracts:{batchInvoker:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3"}}}),rE=h({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}}}),nE=h({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}),sE=h({...St,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}),Hn=1,aE=h({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:{[Hn]:{address:"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3380209},portal:{[Hn]:{address:"0xb26Fd985c5959bBB382BAFdD0b879E149e48116c"}},l1StandardBridge:{[Hn]:{address:"0xD0204B9527C1bA7bD765Fa5CCD9355d38338272b"}}},formatters:Io,sourceId:Hn}),Dn=11155111,oE=h({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:{[Dn]:{address:"0xD5bAc3152ffC25318F848B3DD5dA6C85171BaEEe"}},portal:{[Dn]:{address:"0xF04BdD5353Bb0EFF6CA60CfcC78594278eBfE179"}},l1StandardBridge:{[Dn]:{address:"0xFaE6abCAF30D23e233AC7faF747F2fC3a5a6Bfa3"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3754925}},formatters:Io,sourceId:Dn,testnet:!0}),iE=h({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}}}),cE=h({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}}}),lE=11155111,uE=h({id:161221135,name:"Plume Testnet",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"}},testnet:!0,sourceId:lE}),dE=h({id:137,name:"Polygon",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}}}),pE=h({id:80002,name:"Polygon Amoy",nativeCurrency:{name:"MATIC",symbol:"MATIC",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}),fE=h({id:80001,name:"Polygon Mumbai",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/polygon_mumbai"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com",apiUrl:"https://api-testnet.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0}),hE=h({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}}}),mE=h({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}}}),bE=h({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}}}),yE=h({id:369,name:"PulseChain",nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,rpcUrls:{default:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.pulsechain.com",apiUrl:"https://api.scan.pulsechain.com/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),gE=h({id:943,name:"PulseChain V4",testnet:!0,nativeCurrency:{name:"V4 Pulse",symbol:"v4PLS",decimals:18},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}}}),xE=h({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"}}}),wE=h({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}),EE=h({id:111188,name:"re.al",nativeCurrency:{name:"reETH",decimals:18,symbol:"reETH"},rpcUrls:{default:{http:["https://real.drpc.org"]}},blockExplorers:{default:{name:"re.al Explorer",url:"https://explorer.re.al",apiUrl:"https://explorer.re.al/api/v2"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:695}}}),vE=h({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:"Ethernal",url:"https://explorer.testnet.redbelly.network",apiUrl:"https://ethernal.fly.dev/api"}},testnet:!0}),jn=1,kE=h({...M,name:"Redstone",id:690,sourceId:jn,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:{...M.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[jn]:{address:"0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae",blockCreated:19578329}},l2OutputOracle:{[jn]:{address:"0xa426A052f657AEEefc298b3B5c35a470e4739d69",blockCreated:19578337}},l1StandardBridge:{[jn]:{address:"0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69",blockCreated:19578331}}}}),CE=h({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}),BE=h({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}}}),AE=h({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}}}),TE=h({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}}}),SE=h({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}}}),IE=h({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}),UE=h({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}}}),PE=h({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"}},testnet:!0}),qn=1,$E=h({...M,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:{...M.contracts,l2OutputOracle:{[qn]:{address:"0xE6f24d2C32B3109B18ed33cF08eFb490b1e09C10"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14193},portal:{[qn]:{address:"0x6A12432491bbbE8d3babf75F759766774C778Db4",blockCreated:19387057}},l1StandardBridge:{[qn]:{address:"0x4cbab69108Aa72151EDa5A3c164eA86845f18438"}}},sourceId:qn}),Gn=11155111,FE=h({...M,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:{...M.contracts,l2OutputOracle:{[Gn]:{address:"0xDb5c46C3Eaa6Ed6aE8b2379785DF7dd029C0dC81"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:55697},portal:{[Gn]:{address:"0xcBD77E8E1E7F06B25baDe67142cdE82652Da7b57",blockCreated:5345035}},l1StandardBridge:{[Gn]:{address:"0xdDD29bb63B0839FB1cE0eE439Ff027738595D07B"}}},testnet:!0,sourceId:Gn}),OE=h({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}),NE=h({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}}}),ME=h({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}),_E=h({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"}}}),RE=h({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}),zE=h({id:534352,name:"Scroll",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}),LE=h({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}),HE=h({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"}}}),DE=h({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}),jE=h({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"}},testnet:!0}),qE=h({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc2.sepolia.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0}),Kn=1,GE=h({...M,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:{...M.contracts,l2OutputOracle:{[Kn]:{address:"0x6Ef8c69CfE4635d866e3E02732068022c06e724D",blockCreated:20369940}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1},portal:{[Kn]:{address:"0xEB06fFa16011B5628BaB98E29776361c83741dd3",blockCreated:20369933}},l1StandardBridge:{[Kn]:{address:"0x62Edd5f4930Ea92dCa3fB81689bDD9b9d076b57B",blockCreated:20369935}}},sourceId:Kn}),KE=11155111,VE=h({...M,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:{...M.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1}},testnet:!0,sourceId:KE}),ZE=h({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"}}}),WE=h({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}),XE=h({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:{}}),YE=h({id:1564830818,name:"SKALE | Calypso NFT 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}}}),JE=h({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}),QE=h({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:{}}),e3=h({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:{}}),t3=h({id:2046399126,name:"SKALE | Europa Liquidity 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}}}),r3=h({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}),n3=h({id:2139927552,name:"SKALE | Exorde",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:{}}),s3=h({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:{}}),a3=h({id:1482601649,name:"SKALE | Nebula Gaming 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}}}),o3=h({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}),i3=h({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:{}}),c3=h({id:1350216234,name:"SKALE | Titan Community 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}}}),l3=h({id:1020352220,name:"SKALE Titan Hub",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}),u3=h({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}),hr=1,d3=h({...M,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:{...M.contracts,disputeGameFactory:{[hr]:{address:"0x472562Fcf26D6b2793f8E0b0fB660ba0E5e08A46"}},l2OutputOracle:{[hr]:{address:"0x2172e492Fc807F5d5645D0E3543f139ECF539294"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[hr]:{address:"0x79f446D024d74D0Bb6E699C131c703463c5D65E9"}},l1StandardBridge:{[hr]:{address:"0x6534Bdb6b5c060d3e6aa833433333135eFE8E0aA"}}},sourceId:hr}),mr=11155111,p3=h({...M,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:{...M.contracts,disputeGameFactory:{[mr]:{address:"0x206a75d89d45F146C54020F132FF93bEDD09f55E"}},l2OutputOracle:{[mr]:{address:"0x60e3A368a4cdCEf85ffB964e372726F56A46221e"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[mr]:{address:"0xb5afdd0E8dDF081Ef90e8A3e0c7b5798e66E954E"}},l1StandardBridge:{[mr]:{address:"0xbd37E1a59D4C00C9A46F75018dffd84061bC5f74"}}},testnet:!0,sourceId:mr}),f3=h({id:1946,name:"Soneium Minato",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.minato.soneium.org"]}},blockExplorers:{default:{name:"Minato Explorer",url:"https://explorer-testnet.soneium.org",apiUrl:"https://explorer-testnet.soneium.org/api/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},testnet:!0}),h3=h({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"}}}),m3=h({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}),b3=h({...St,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}),y3=h({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}),g3=h({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}),x3=h({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}}}),w3=h({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}),E3=h({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}),v3=h({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"}}}),k3=h({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}),C3=h({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"}}}),B3=h({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}),A3=h({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}),T3=h({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}),S3=h({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}),I3=h({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}}}),U3=h({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}}}),P3=h({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"}}}),$3=h({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"}}}),F3=h({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"}},testnet:!0}),O3=h({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}),N3=h({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"}}}),M3=h({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"}}}),_3=h({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}),R3=h({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}),z3=h({id:40,name:"Telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://mainnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan",url:"https://www.teloscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:246530709}}}),L3=h({id:41,name:"Telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://testnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan (testnet)",url:"https://testnet.teloscan.io/"}},testnet:!0}),H3=h({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}),D3=h({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}),j3=h({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 Explorer",url:"https://explorer.5ire.network"}},testnet:!0}),q3=h({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"}}}),G3=h({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/"}}}),K3=h({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/"}}}),V3=h({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}),Z3=h({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}}}),W3=h({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"}}}),X3=h({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}),Y3=h({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}),J3=h({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}),Q3=h({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}),e8=h({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}}}),t8=h({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}),r8=h({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}),n8=h({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"}}}),s8=h({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}),a8=h({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:"World Chain Explorer",url:"https://worldchain-mainnet.explorer.alchemy.com"}},testnet:!1}),o8=h({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"]},public:{http:["https://worldchain-sepolia.g.alchemy.com/public"]}},blockExplorers:{default:{name:"World Chain Sepolia Explorer",url:"https://worldchain-sepolia.explorer.alchemy.com"}},testnet:!0}),Ii=h({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}),i8=h({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}}}),c8=h({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}),l8=h({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}),u8=h({id:50,name:"XinFin Network",nativeCurrency:{decimals:18,name:"XDC",symbol:"XDC"},rpcUrls:{default:{http:["https://rpc.xinfin.network"]}},blockExplorers:{default:{name:"Blocksscan",url:"https://xdc.blocksscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:71542788}}}),d8=h({id:51,name:"Apothem Network",nativeCurrency:{decimals:18,name:"TXDC",symbol:"TXDC"},rpcUrls:{default:{http:["https://erpc.apothem.network"]}},blockExplorers:{default:{name:"Blocksscan",url:"https://apothem.blocksscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:59765389}}}),p8=h({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}),f8=h({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"}}}),h8=h({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}),m8=h({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://explorer.zetachain.com"}},testnet:!1}),b8=h({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://athens.explorer.zetachain.com"}},testnet:!0}),y8=h({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}),g8=h({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}),x8=h({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}),w8=h({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}),E8=h({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}),v8=h({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"}}}),k8=h({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"}}}),Ui=h({...St,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"}}}),Pi=h({...St,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}),$i=h({...St,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}),Fi=h({...St,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"}},testnet:!0}),Vn=1,C8=h({...M,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:{...M.contracts,l2OutputOracle:{[Vn]:{address:"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:5882},portal:{[Vn]:{address:"0x1a0ad011913A150f69f6A19DF447A0CfD9551054"}},l1StandardBridge:{[Vn]:{address:"0x3e2Ea9B92B7E48A52296fD261dc26fd995284631"}}},sourceId:Vn}),Zn=11155111,B8=h({...M,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:{...M.contracts,l2OutputOracle:{[Zn]:{address:"0x2615B481Bd3E5A1C0C7Ca3Da1bdc663E8615Ade9"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:83160},portal:{[Zn]:{address:"0xeffE2C6cA9Ab797D418f0D91eA60807713f3536f"}},l1StandardBridge:{[Zn]:{address:"0x5376f1D543dcbB5BD416c56C189e4cB7399fCcCB"}}},sourceId:Zn,testnet:!0}),Oi=5,A8=h({...M,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:{...M.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:189123},portal:{[Oi]:{address:"0xDb9F51790365e7dc196e7D072728df39Be958ACe"}}},sourceId:Oi,testnet:!0}),T8=h({id:48899,name:"Zircuit Testnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zircuit1.p2pify.com"]}},blockExplorers:{default:{name:"Zircuit Explorer",url:"https://explorer.zircuit.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:6040287}}}),S8=Object.freeze(Object.defineProperty({__proto__:null,abstractTestnet:xg,acala:wg,alienx:Eg,alienxHalTestnet:vg,ancient8:Sg,ancient8Sepolia:Ig,anvil:Ug,apexTestnet:Pg,arbitrum:$g,arbitrumGoerli:Fg,arbitrumNova:Og,arbitrumSepolia:zg,areonNetwork:Lg,areonNetworkTestnet:Hg,artelaTestnet:Dg,assetChainTestnet:Ng,astar:Mg,astarZkEVM:_g,astarZkyoto:Rg,atletaOlympia:jg,aurora:qg,auroraTestnet:Gg,auroria:Kg,avalanche:Vg,avalancheFuji:Zg,b3:Jg,b3Sepolia:Xg,bahamut:Qg,base:e2,baseGoerli:t2,baseSepolia:r2,beam:n2,beamTestnet:s2,bearNetworkChainMainnet:a2,bearNetworkChainTestnet:o2,berachainTestnet:i2,berachainTestnetbArtio:c2,bevmMainnet:l2,bitTorrent:p2,bitTorrentTestnet:f2,bitkub:u2,bitkubTestnet:d2,blast:m2,blastSepolia:y2,bob:g2,bobSepolia:x2,boba:w2,bobaSepolia:E2,botanixTestnet:v2,bounceBit:k2,bounceBitTestnet:C2,bronos:B2,bronosTestnet:A2,bsc:T2,bscGreenfield:I2,bscTestnet:S2,btr:U2,btrTestnet:P2,bxn:$2,bxnTestnet:F2,cannon:O2,canto:N2,celo:K2,celoAlfajores:V2,chiliz:Z2,chips:W2,classic:X2,confluxESpace:Y2,confluxESpaceTestnet:J2,coreDao:Q2,crab:ex,cronos:tx,cronosTestnet:sx,cronoszkEVM:rx,cronoszkEVMTestnet:nx,crossbell:ax,curtis:ox,cyber:ix,cyberTestnet:cx,darwinia:lx,dchain:ux,dchainTestnet:dx,defichainEvm:px,defichainEvmTestnet:fx,degen:hx,dfk:mx,dodochainTestnet:bx,dogechain:yx,dreyerxMainnet:gx,dreyerxTestnet:xx,edgeless:wx,edgelessTestnet:Ex,edgeware:vx,edgewareTestnet:kx,ekta:$x,ektaTestnet:Fx,elysiumTestnet:Cx,eon:Bx,eos:Ax,eosTestnet:Tx,etherlink:Sx,etherlinkTestnet:Ix,evmos:Ux,evmosTestnet:Px,fantom:Ox,fantomSonicTestnet:Nx,fantomTestnet:Mx,fibo:_x,filecoin:Rx,filecoinCalibration:zx,filecoinHyperspace:Lx,flare:Hx,flareTestnet:Dx,flowMainnet:qx,flowPreviewnet:jx,flowTestnet:Gx,fluence:Kx,fluenceStage:Vx,fluenceTestnet:Zx,forma:Wx,foundry:Xx,fraxtal:Yx,fraxtalTestnet:Jx,funkiMainnet:ew,funkiSepolia:rw,fuse:nw,fuseSparknet:sw,fusion:aw,fusionTestnet:ow,garnet:pw,gnosis:mw,gnosisChiado:bw,gobi:fw,goerli:hw,gravity:yw,ham:gw,haqqMainnet:vw,haqqTestedge2:kw,hardhat:xw,harmonyOne:ww,hashkeyTestnet:Ew,hedera:Cw,hederaPreviewnet:Aw,hederaTestnet:Bw,holesky:Tw,hychain:Sw,hychainTestnet:Iw,immutableZkEvm:Uw,immutableZkEvmTestnet:Pw,inEVM:$w,iota:Fw,iotaTestnet:Ow,iotex:iw,iotexTestnet:cw,jbc:lw,jbcTestnet:uw,kaia:Dw,kairos:jw,kakarotSepolia:Nw,karura:dw,kava:Mw,kavaTestnet:_w,kcc:Rw,kinto:zw,klaytn:Lw,klaytnBaobab:Hw,koi:qw,kroma:Gw,kromaSepolia:Kw,l3x:Vw,l3xTestnet:Zw,lightlinkPegasus:Ww,lightlinkPhoenix:Xw,linea:Jw,lineaGoerli:Qw,lineaSepolia:e6,lineaTestnet:t6,lisk:r6,liskSepolia:n6,localhost:s6,lukso:a6,luksoTestnet:o6,lycan:i6,lyra:c6,mainnet:l6,mandala:u6,manta:d6,mantaSepoliaTestnet:p6,mantaTestnet:f6,mantle:h6,mantleSepoliaTestnet:m6,mantleTestnet:b6,merlin:y6,metachain:g6,metachainIstanbul:x6,metalL2:w6,meter:E6,meterTestnet:v6,metis:k6,metisGoerli:C6,mev:B6,mevTestnet:A6,mint:T6,mintSepoliaTestnet:S6,mode:I6,modeTestnet:U6,moonbaseAlpha:P6,moonbeam:$6,moonbeamDev:F6,moonriver:O6,morphHolesky:N6,morphSepolia:M6,nautilus:_6,neonDevnet:R6,neonMainnet:z6,nexi:L6,nexilix:H6,oasisTestnet:j6,oasys:D6,okc:q6,oortMainnetDev:J6,opBNB:X6,opBNBTestnet:Y6,optimism:G6,optimismGoerli:K6,optimismSepolia:V6,optopia:Z6,optopiaTestnet:W6,orderly:Q6,orderlySepolia:eE,otimDevnet:tE,palm:rE,palmTestnet:nE,pgn:aE,pgnTestnet:oE,phoenix:iE,playfiAlbireo:sE,plinga:cE,plumeTestnet:uE,polygon:dE,polygonAmoy:pE,polygonMumbai:fE,polygonZkEvm:hE,polygonZkEvmCardona:mE,polygonZkEvmTestnet:bE,pulsechain:yE,pulsechainV4:gE,qMainnet:xE,qTestnet:wE,real:EE,redbellyTestnet:vE,redstone:kE,reyaNetwork:CE,rollux:BE,rolluxTestnet:AE,ronin:TE,root:SE,rootPorcini:IE,rootstock:UE,rootstockTestnet:PE,rss3:$E,rss3Sepolia:FE,saigon:OE,sapphire:NE,sapphireTestnet:ME,satoshiVM:_E,satoshiVMTestnet:RE,scroll:zE,scrollSepolia:LE,sei:HE,seiDevnet:DE,seiTestnet:jE,sepolia:qE,shape:GE,shapeSepolia:VE,shardeumSphinx:g3,shibarium:x3,shibariumTestnet:w3,shimmer:ZE,shimmerTestnet:WE,silicon:v3,siliconSepolia:k3,skaleBlockBrawlers:XE,skaleCalypso:YE,skaleCalypsoTestnet:JE,skaleCryptoBlades:QE,skaleCryptoColosseum:e3,skaleEuropa:t3,skaleEuropaTestnet:r3,skaleExorde:n3,skaleHumanProtocol:s3,skaleNebula:a3,skaleNebulaTestnet:o3,skaleRazor:i3,skaleTitan:c3,skaleTitanTestnet:l3,sketchpad:u3,snax:d3,snaxTestnet:p3,soneiumMinato:f3,songbird:h3,songbirdTestnet:m3,sophonTestnet:b3,spicy:y3,storyTestnet:E3,stratis:C3,superlumio:B3,swan:A3,swanProximaTestnet:T3,swanSaturnTestnet:S3,syscoin:I3,syscoinTestnet:U3,taiko:$3,taikoHekla:F3,taikoJolnir:O3,taikoKatla:N3,taikoTestnetSepolia:M3,taraxa:P3,taraxaTestnet:_3,telcoinTestnet:R3,telos:z3,telosTestnet:L3,tenet:H3,thaiChain:D3,thunderTestnet:j3,tron:q3,unique:G3,uniqueOpal:V3,uniqueQuartz:K3,unreal:Z3,vechain:W3,viction:X3,victionTestnet:Y3,vision:J3,visionTestnet:Q3,wanchain:e8,wanchainTestnet:t8,weaveVMAlphanet:r8,wemix:n8,wemixTestnet:s8,worldchain:a8,worldchainSepolia:o8,x1Testnet:Ii,xLayer:i8,xLayerTestnet:Ii,xai:c8,xaiTestnet:l8,xdc:u8,xdcTestnet:d8,xrSepolia:p8,yooldoVerse:f8,yooldoVerseTestnet:h8,zetachain:m8,zetachainAthensTestnet:b8,zhejiang:y8,zilliqa:g8,zilliqaTestnet:x8,zircuitTestnet:T8,zkFair:w8,zkFairTestnet:E8,zkLinkNova:v8,zkLinkNovaSepoliaTestnet:k8,zkSync:Ui,zkSyncInMemoryNode:Pi,zkSyncLocalNode:$i,zkSyncSepoliaTestnet:Fi,zksync:Ui,zksyncInMemoryNode:Pi,zksyncLocalNode:$i,zksyncSepoliaTestnet:Fi,zora:C8,zoraSepolia:B8,zoraTestnet:A8},Symbol.toStringTag,{value:"Module"})),xr=S8;function I8(e){return Object.entries(e).reduce((t,[r,n])=>`${t}${r}=${JSON.stringify(n)}
|
|
46
|
-
`,"")}function U8(e){return e.split(`
|
|
47
|
-
`).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 P8(e){try{return JSON.parse(e)}catch{return!1}}function $8({chain:e,privateKey:t,mnemonic:r,rpcUrl:n}){const s=xr[e];if(!s)throw new Error(`No matching chain for ${s}`);const a=t?To(t):cg(r,{addressIndex:0});let o;return s===xr.hardhat||s===xr.anvil?o=f1({transport:_s(n??"http://127.0.0.1:8545",{retryCount:0}),chain:s,mode:s===xr.hardhat?"hardhat":"anvil",account:a,key:t}).extend(bi).extend(Hu):o=C1({account:a,chain:s,transport:n?_s(n,{retryCount:0}):_s()}).extend(bi),[{config:ch({chains:[s],client:()=>o}),account:a},s]}exports.BaseError=Ne;exports.BaseError$1=I;exports.ChainDisconnectedError=Rc;exports.Chains=xr;exports.ConnectorAccountNotFoundError=_f;exports.ConnectorChainMismatchError=Rf;exports.ConnectorNotConnectedError=Mf;exports.ConnectorUnavailableReconnectingError=zf;exports.HttpRequestError=tp;exports.HttpRequestError$1=Ot;exports.InternalRpcError=bc;exports.InvalidAddressError=Gi;exports.InvalidBytesLengthError=hd;exports.InvalidInputRpcError=gc;exports.InvalidParamsRpcError=hc;exports.InvalidRequestRpcError=uc;exports.JsonRpcVersionUnsupportedError=Ic;exports.LimitExceededRpcError=Tc;exports.LruMap=Pa;exports.MethodNotFoundRpcError=pc;exports.MethodNotSupportedRpcError=Bc;exports.ParseRpcError=cc;exports.ProviderDisconnectedError=Mc;exports.ResourceNotFoundRpcError=wc;exports.ResourceUnavailableRpcError=wr;exports.SliceOffsetOutOfBoundsError=fd;exports.SwitchChainError=es;exports.TransactionRejectedRpcError=kc;exports.UnauthorizedProviderError=$c;exports.UnknownRpcError=sp;exports.UnsupportedProviderMethodError=Oc;exports.UserRejectedRequestError=Ie;exports.boolToHex=ji;exports.bytesToHex=Ua;exports.call=sn;exports.checksumAddress=Na;exports.concat=ze;exports.createClient=bl;exports.decodeErrorResult=Rl;exports.encodeAbiParameters=At;exports.envToObject=U8;exports.etherUnits=Ll;exports.getAddress=br;exports.getDefaultExportFromCjs=yl;exports.getDeployableOptions=$8;exports.getUrl=hs;exports.hexToBigInt=Hi;exports.hexToBytes=Ia;exports.hexToNumber=xd;exports.isAddress=ac;exports.isAddress$1=Z;exports.isAddressEqual=ys;exports.isHex=ss;exports.isHex$1=we;exports.keccak256=sc;exports.keccak_256=Oa;exports.numberToHex=vr;exports.objectToEnv=I8;exports.pad=ut;exports.padHex=Ri;exports.parseAccount=oc;exports.privateKeyToAccount=To;exports.secp256k1=pl;exports.sha256=Xt;exports.size=Ks;exports.stringToHex=qi;exports.stringify=Ma;exports.stringify$1=ae;exports.toBytes=zi;exports.toEventSelector=Zr;exports.toFunctionSelector=ds;exports.toHex=Di;exports.uid=ml;exports.validateJson=P8;exports.withRetry=Qc;
|