@latticexyz/explorer 2.2.15-main-f5f772b44fc735c3874834fb14cc28e8a54f8957 → 2.2.15-main-3258a6d66251aa87514e5e63456f989a34bd1b8b
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/.next/standalone/packages/explorer/.next/BUILD_ID +1 -1
- package/.next/standalone/packages/explorer/.next/app-build-manifest.json +25 -25
- package/.next/standalone/packages/explorer/.next/app-path-routes-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/build-manifest.json +2 -2
- package/.next/standalone/packages/explorer/.next/prerender-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page.js +3 -3
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/page.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/api/world-abi/route.js +8 -11
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/api/world-abi/route.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/page.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/_not-found.rsc +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.rsc +1 -1
- package/.next/standalone/packages/explorer/.next/server/app-paths-manifest.json +2 -2
- package/.next/standalone/packages/explorer/.next/server/chunks/3016.js +2 -2
- package/.next/standalone/packages/explorer/.next/server/chunks/3883.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/chunks/{3008.js → 667.js} +2 -2
- package/.next/standalone/packages/explorer/.next/server/middleware-build-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/pages/404.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/pages/500.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/5488-3f74f477c23d646c.js +36 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page-f16ddf017c694dcf.js +1 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/layout-ef429a2a30b4cc23.js +1 -0
- package/package.json +10 -10
- package/.next/standalone/packages/explorer/.next/server/chunks/8145.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/7636-ba584de0cd367697.js +0 -36
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page-6a93b586c6f9adf9.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/layout-c934a0b6b443c5db.js +0 -1
- /package/.next/standalone/packages/explorer/.next/static/{GfYzVX77-_gg5fNoKqS1j → lz27S2c627_5Tt-Kkv5-d}/_buildManifest.js +0 -0
- /package/.next/standalone/packages/explorer/.next/static/{GfYzVX77-_gg5fNoKqS1j → lz27S2c627_5Tt-Kkv5-d}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-6234797831819f49.js"/><script src="/_next/static/chunks/3a94010f-972d722a7f97aaac.js" async=""></script><script src="/_next/static/chunks/8474-ba633b584d9d2149.js" async=""></script><script src="/_next/static/chunks/main-app-3d14824c033e7085.js" async=""></script><script src="/_next/static/chunks/5674-57c906e3570df406.js" async=""></script><script src="/_next/static/chunks/app/internal/observer-relay/page-fc32b380dc3259aa.js" async=""></script><meta name="next-size-adjust"/><script src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js" noModule=""></script></head><body><script src="/_next/static/chunks/webpack-6234797831819f49.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:I[69222,[],\"\"]\n3:I[54768,[\"5674\",\"static/chunks/5674-57c906e3570df406.js\",\"5225\",\"static/chunks/app/internal/observer-relay/page-fc32b380dc3259aa.js\"],\"Relay\"]\n4:I[5371,[],\"\"]\n5:I[80363,[],\"\"]\n7:I[18541,[],\"\"]\n8:[]\n"])</script><script>self.__next_f.push([1,"0:[null,[\"$\",\"$L1\",null,{\"buildId\":\"
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-6234797831819f49.js"/><script src="/_next/static/chunks/3a94010f-972d722a7f97aaac.js" async=""></script><script src="/_next/static/chunks/8474-ba633b584d9d2149.js" async=""></script><script src="/_next/static/chunks/main-app-3d14824c033e7085.js" async=""></script><script src="/_next/static/chunks/5674-57c906e3570df406.js" async=""></script><script src="/_next/static/chunks/app/internal/observer-relay/page-fc32b380dc3259aa.js" async=""></script><meta name="next-size-adjust"/><script src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js" noModule=""></script></head><body><script src="/_next/static/chunks/webpack-6234797831819f49.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:I[69222,[],\"\"]\n3:I[54768,[\"5674\",\"static/chunks/5674-57c906e3570df406.js\",\"5225\",\"static/chunks/app/internal/observer-relay/page-fc32b380dc3259aa.js\"],\"Relay\"]\n4:I[5371,[],\"\"]\n5:I[80363,[],\"\"]\n7:I[18541,[],\"\"]\n8:[]\n"])</script><script>self.__next_f.push([1,"0:[null,[\"$\",\"$L1\",null,{\"buildId\":\"lz27S2c627_5Tt-Kkv5-d\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/internal/observer-relay\",\"initialTree\":[\"\",{\"children\":[\"internal\",{\"children\":[\"observer-relay\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true]}],\"initialSeedData\":[\"\",{\"children\":[\"internal\",{\"children\":[\"observer-relay\",{\"children\":[\"__PAGE__\",{},[[\"$L2\",[\"$\",\"$L3\",null,{}]],null],null]},[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"internal\",\"children\",\"observer-relay\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"internal\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}]}]}],null],null]},[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}],null],\"couldBeIntercepted\":false,\"initialHead\":[null,\"$L6\"],\"globalErrorComponent\":\"$7\",\"missingSlots\":\"$W8\"}]]\n"])</script><script>self.__next_f.push([1,"6:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"2\",{\"name\":\"next-size-adjust\"}]]\n2:null\n"])</script></body></html>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
2:I[54768,["5674","static/chunks/5674-57c906e3570df406.js","5225","static/chunks/app/internal/observer-relay/page-fc32b380dc3259aa.js"],"Relay"]
|
|
2
2
|
3:I[5371,[],""]
|
|
3
3
|
4:I[80363,[],""]
|
|
4
|
-
0:["
|
|
4
|
+
0:["lz27S2c627_5Tt-Kkv5-d",[[["",{"children":["internal",{"children":["observer-relay",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true]}],["",{"children":["internal",{"children":["observer-relay",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{}]],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","internal","children","observer-relay","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","internal","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]}]}],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],null],[null,[null,"$L5"]]]]]
|
|
5
5
|
5:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","meta","2",{"name":"next-size-adjust"}]]
|
|
6
6
|
1:null
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"/(explorer)/[chainName]/page": "app/(explorer)/[chainName]/page.js",
|
|
10
10
|
"/(explorer)/[chainName]/worlds/page": "app/(explorer)/[chainName]/worlds/page.js",
|
|
11
11
|
"/(explorer)/[chainName]/worlds/[worldAddress]/page": "app/(explorer)/[chainName]/worlds/[worldAddress]/page.js",
|
|
12
|
-
"/(explorer)/[chainName]/worlds/[worldAddress]/
|
|
12
|
+
"/(explorer)/[chainName]/worlds/[worldAddress]/interact/page": "app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page.js",
|
|
13
13
|
"/(explorer)/[chainName]/worlds/[worldAddress]/observe/page": "app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page.js",
|
|
14
|
-
"/(explorer)/[chainName]/worlds/[worldAddress]/
|
|
14
|
+
"/(explorer)/[chainName]/worlds/[worldAddress]/explore/page": "app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page.js"
|
|
15
15
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";exports.id=3016,exports.ids=[3016],exports.modules={94964:(e,t,s)=>{function n(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, not ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function r(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function o(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function a(e,t){i(e);let s=t.outputLen;if(e.length<s)throw Error(`digestInto() expects output buffer of length at least ${s}`)}s.d(t,{Gg:()=>o,J8:()=>a,Rx:()=>n,aI:()=>i,vp:()=>r})},33380:(e,t,s)=>{s.d(t,{JQ:()=>d});var n=s(94964),i=s(61117);let r=(e,t,s)=>e&t^~e&s,o=(e,t,s)=>e&t^e&s^t&s;class a extends i.kb{constructor(e,t,s,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=s,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.GL)(this.buffer)}update(e){(0,n.Gg)(this);let{view:t,buffer:s,blockLen:r}=this,o=(e=(0,i.O0)(e)).length;for(let n=0;n<o;){let a=Math.min(r-this.pos,o-n);if(a===r){let t=(0,i.GL)(e);for(;r<=o-n;n+=r)this.process(t,n);continue}s.set(e.subarray(n,n+a),this.pos),this.pos+=a,n+=a,this.pos===r&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.Gg)(this),(0,n.J8)(e,this),this.finished=!0;let{buffer:t,view:s,blockLen:r,isLE:o}=this,{pos:a}=this;t[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>r-a&&(this.process(s,0),a=0);for(let e=a;e<r;e++)t[e]=0;(function(e,t,s,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,s,n);let i=BigInt(32),r=BigInt(4294967295),o=Number(s>>i&r),a=Number(s&r),l=n?4:0,c=n?0:4;e.setUint32(t+l,o,n),e.setUint32(t+c,a,n)})(s,r-8,BigInt(8*this.length),o),this.process(s,0);let l=(0,i.GL)(e),c=this.outputLen;if(c%4)throw Error("_sha2: outputLen should be aligned to 32bit");let u=c/4,h=this.get();if(u>h.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)l.setUint32(4*e,h[e],o)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let s=e.slice(0,t);return this.destroy(),s}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:s,length:n,finished:i,destroyed:r,pos:o}=this;return e.length=n,e.pos=o,e.finished=i,e.destroyed=r,n%t&&e.buffer.set(s),e}}let l=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]),c=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),u=new Uint32Array(64);class h extends a{constructor(){super(64,32,8,!1),this.A=0|c[0],this.B=0|c[1],this.C=0|c[2],this.D=0|c[3],this.E=0|c[4],this.F=0|c[5],this.G=0|c[6],this.H=0|c[7]}get(){let{A:e,B:t,C:s,D:n,E:i,F:r,G:o,H:a}=this;return[e,t,s,n,i,r,o,a]}set(e,t,s,n,i,r,o,a){this.A=0|e,this.B=0|t,this.C=0|s,this.D=0|n,this.E=0|i,this.F=0|r,this.G=0|o,this.H=0|a}process(e,t){for(let s=0;s<16;s++,t+=4)u[s]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=u[e-15],s=u[e-2],n=(0,i.np)(t,7)^(0,i.np)(t,18)^t>>>3,r=(0,i.np)(s,17)^(0,i.np)(s,19)^s>>>10;u[e]=r+u[e-7]+n+u[e-16]|0}let{A:s,B:n,C:a,D:c,E:h,F:d,G:f,H:p}=this;for(let e=0;e<64;e++){let t=p+((0,i.np)(h,6)^(0,i.np)(h,11)^(0,i.np)(h,25))+r(h,d,f)+l[e]+u[e]|0,g=((0,i.np)(s,2)^(0,i.np)(s,13)^(0,i.np)(s,22))+o(s,n,a)|0;p=f,f=d,d=h,h=c+t|0,c=a,a=n,n=s,s=t+g|0}s=s+this.A|0,n=n+this.B|0,a=a+this.C|0,c=c+this.D|0,h=h+this.E|0,d=d+this.F|0,f=f+this.G|0,p=p+this.H|0,this.set(s,n,a,c,h,d,f,p)}roundClean(){u.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let d=(0,i.hE)(()=>new h)},61117:(e,t,s)=>{s.d(t,{kb:()=>g,l1:()=>d,eV:()=>p,GL:()=>l,iA:()=>u,O6:()=>m,np:()=>c,O0:()=>f,Jq:()=>a,hE:()=>b});var n=s(6005),i=s.t(n,2);let r=i&&"object"==typeof i&&"webcrypto"in i?n.webcrypto:i&&"object"==typeof i&&"randomBytes"in i?i:void 0;var o=s(94964);let a=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),l=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),c=(e,t)=>e<<32-t|e>>>t,u=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],h=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function d(e){for(let t=0;t<e.length;t++)e[t]=h(e[t])}function f(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}(e)),(0,o.aI)(e),e}function p(...e){let t=0;for(let s=0;s<e.length;s++){let n=e[s];(0,o.aI)(n),t+=n.length}let s=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];s.set(i,n),n+=i.length}return s}class g{clone(){return this._cloneInto()}}function b(e){let t=t=>e().update(f(t)).digest(),s=e();return t.outputLen=s.outputLen,t.blockLen=s.blockLen,t.create=()=>e(),t}function m(e=32){if(r&&"function"==typeof r.getRandomValues)return r.getRandomValues(new Uint8Array(e));if(r&&"function"==typeof r.randomBytes)return r.randomBytes(e);throw Error("crypto.getRandomValues must be defined")}},58788:(e,t,s)=>{s.d(t,{O:()=>n});let n=(0,s(16853).a)({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"]}}})},52188:(e,t,s)=>{s.d(t,{t:()=>n});let n=(0,s(16853).a)({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"]}}})},26721:(e,t,s)=>{s.d(t,{T:()=>i});var n=s(24626);let i=(0,s(16853).a)({...n.i,name:"Garnet Testnet",testnet:!0,id:17069,sourceId:17e3,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:{...n.i.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{17e3:{address:"0x57ee40586fbE286AfC75E67cb69511A6D9aF5909",blockCreated:1274684}},l2OutputOracle:{17e3:{address:"0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B",blockCreated:1274684}},l1StandardBridge:{17e3:{address:"0x09bcDd311FE398F80a78BE37E489f5D440DB95DE",blockCreated:1274684}}}})},55726:(e,t,s)=>{s.d(t,{g:()=>i});var n=s(24626);let i=(0,s(16853).a)({...n.i,name:"Redstone",id:690,sourceId:1,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:{...n.i.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{1:{address:"0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae",blockCreated:19578329}},l2OutputOracle:{1:{address:"0xa426A052f657AEEefc298b3B5c35a470e4739d69",blockCreated:19578337}},l1StandardBridge:{1:{address:"0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69",blockCreated:19578331}}}})},67217:(e,t,s)=>{s.d(t,{l:()=>n});let n=1},13803:(e,t,s)=>{s.d(t,{zL:()=>n});let n=2n**256n-1n},54136:(e,t,s)=>{s.d(t,{Zn:()=>i,ez:()=>n});let n={gwei:9,wei:18},i={ether:-9,wei:9}},49563:(e,t,s)=>{s.d(t,{b:()=>i});var n=s(8523);class i extends n.G{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},8523:(e,t,s)=>{s.d(t,{G:()=>r});let n="2.21.19",i={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:s})=>t?`${e??"https://viem.sh"}${t}${s?`#${s}`:""}`:void 0,version:n};class r extends Error{constructor(e,t={}){let s=t.cause instanceof r?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof r&&t.cause.docsPath||t.docsPath,a=i.getDocsUrl?.({...t,docsPath:o});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...s?[`Details: ${s}`]:[],...i.version?[`Version: ${i.version}`]:[]].join("\n"),t.cause?{cause:t.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=s,this.docsPath=o,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=n}walk(e){return function e(t,s){return s?.(t)?t:t&&"object"==typeof t&&"cause"in t?e(t.cause,s):s?null:t}(this,e)}}},38870:(e,t,s)=>{s.d(t,{RX:()=>o,cJ:()=>l,m7:()=>r,xd:()=>a});var n=s(67217),i=s(8523);class r extends i.G{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class o extends i.G{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class a extends i.G{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}class l extends i.G{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:[`Expected: ${n.l}`,`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}},80407:(e,t,s)=>{s.d(t,{Bk:()=>r,Yl:()=>i,hJ:()=>o});var n=s(8523);class i extends n.G{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`],name:"ChainMismatchError"})}}class r extends n.G{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.",{name:"ChainNotFoundError"})}}class o extends n.G{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}},80726:(e,t,s)=>{s.d(t,{KD:()=>o,T_:()=>i,lQ:()=>r});var n=s(8523);class i extends n.G{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class r extends n.G{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class o extends n.G{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}},88500:(e,t,s)=>{s.d(t,{$s:()=>r,W_:()=>o,mV:()=>i});var n=s(8523);class i extends n.G{constructor({offset:e,position:t,size:s}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${s}).`,{name:"SliceOffsetOutOfBoundsError"})}}class r extends n.G{constructor({size:e,targetSize:t,type:s}){super(`${s.charAt(0).toUpperCase()}${s.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class o extends n.G{constructor({size:e,targetSize:t,type:s}){super(`${s.charAt(0).toUpperCase()}${s.slice(1).toLowerCase()} is expected to be ${t} ${s} long, but is ${e} ${s} long.`,{name:"InvalidBytesLengthError"})}}},17330:(e,t,s)=>{s.d(t,{Cd:()=>o,J5:()=>i,M6:()=>a,yr:()=>r});var n=s(8523);class i extends n.G{constructor({max:e,min:t,signed:s,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${s?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class r extends n.G{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class o extends n.G{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class a extends n.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}},42213:(e,t,s)=>{s.d(t,{C_:()=>h,G$:()=>a,Hh:()=>o,M_:()=>r,WF:()=>d,ZI:()=>l,cj:()=>b,cs:()=>g,dR:()=>f,pZ:()=>p,se:()=>u,vU:()=>c});var n=s(86760),i=s(8523);class r extends i.G{constructor({cause:e,message:t}={}){let s=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${s?`with reason: ${s}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(r,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(r,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class o extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.o)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(o,"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 a extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.o)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(a,"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 l extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class c extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
|
|
2
|
-
Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class u extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class h extends i.G{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,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(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class d extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class f extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.G{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class g extends i.G{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:s}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.o)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${s?` = ${(0,n.o)(s)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(g,"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 b extends i.G{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}},9637:(e,t,s)=>{s.d(t,{JC:()=>u,j3:()=>c,mk:()=>h,vl:()=>l,xY:()=>a,xr:()=>o});var n=s(56786),i=s(86760),r=s(8523);function o(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),s=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(s+1)} ${t}`).join("\n")}class a extends r.G{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.",{name:"FeeConflictError"})}}class l extends r.G{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class c extends r.G{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",o(e),"}","","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 u extends r.G{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class h extends r.G{constructor(e,{account:t,docsPath:s,chain:r,data:a,gas:l,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:h,nonce:d,to:f,value:p}){super(e.shortMessage,{cause:e,docsPath:s,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",o({chain:r&&`${r?.name} (id: ${r?.id})`,from:t?.address,to:f,value:void 0!==p&&`${(0,n.d)(p)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:l,gasPrice:void 0!==c&&`${(0,i.o)(c)} gwei`,maxFeePerGas:void 0!==u&&`${(0,i.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==h&&`${(0,i.o)(h)} gwei`,nonce:d})].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}},24626:(e,t,s)=>{s.d(t,{i:()=>L});var n=s(21388),i=s(708),r=s(56978),o=s(36420),a=s(39957);let l={"0x0":"reverted","0x1":"success"},c=(0,o.$)("transactionReceipt",function(e){let t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,a.U)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,n.ly)(e.transactionIndex):null,status:e.status?l[e.status]:null,type:e.type?r.c8[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}),u={block:(0,i.G)({format:e=>({transactions:e.transactions?.map(e=>{if("string"==typeof e)return e;let t=r.Tr(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?n.y_(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}),stateRoot:e.stateRoot})}),transaction:(0,r.y_)({format(e){let t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,n.y_)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:c({format:e=>({l1GasPrice:e.l1GasPrice?(0,n.y_)(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?(0,n.y_)(e.l1GasUsed):null,l1Fee:e.l1Fee?(0,n.y_)(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})};var h=s(49563),d=s(38643),f=s(55013),p=s(31749),g=s(23524),b=s(9637),m=s(69216),y=s(47637),x=s(83929),v=s(22823),w=s(77652),P=s(67217),$=s(13803),G=s(8523),I=s(38870),B=s(80407),C=s(42213),E=s(74027),U=s(56857);function z(e){let{chainId:t,maxPriorityFeePerGas:s,maxFeePerGas:n,to:i}=e;if(t<=0)throw new B.hJ({chainId:t});if(i&&!(0,d.U)(i))throw new h.b({address:i});if(n&&n>$.zL)throw new C.Hh({maxFeePerGas:n});if(s&&n&&s>n)throw new C.cs({maxFeePerGas:n,maxPriorityFeePerGas:s})}var N=s(77512);function k(e){if(!e||0===e.length)return[];let t=[];for(let s=0;s<e.length;s++){let{address:n,storageKeys:i}=e[s];for(let e=0;e<i.length;e++)if(i[e].length-2!=64)throw new b.JC({storageKey:i[e]});if(!(0,d.U)(n,{strict:!1}))throw new h.b({address:n});t.push([n,i])}return t}function F(e,t){let s=t??e,{v:n,yParity:i}=s;if(void 0===s.r||void 0===s.s||void 0===n&&void 0===i)return[];let r=(0,w.f)(s.r),o=(0,w.f)(s.s);return["number"==typeof i?i?(0,p.NC)(1):"0x":0n===n?"0x":1n===n?(0,p.NC)(1):27n===n?"0x":(0,p.NC)(1),"0x00"===r?"0x":r,"0x00"===o?"0x":o]}let L={contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:u,serializers:{transaction:function(e,t){return"deposit"===e.type||void 0!==e.sourceHash?function(e){(function(e){let{from:t,to:s}=e;if(t&&!(0,d.U)(t))throw new h.b({address:t});if(s&&!(0,d.U)(s))throw new h.b({address:s})})(e);let{sourceHash:t,data:s,from:n,gas:i,isSystemTx:r,mint:o,to:a,value:l}=e,c=[t,n,a??"0x",o?(0,p.NC)(o):"0x",l?(0,p.NC)(l):"0x",i?(0,p.NC)(i):"0x",r?"0x1":"0x",s??"0x"];return(0,f.SM)(["0x7e",(0,g.LV)(c)])}(e):function(e,t){let s=(0,N.l)(e);return"eip1559"===s?function(e,t){let{chainId:s,gas:n,nonce:i,to:r,value:o,maxFeePerGas:a,maxPriorityFeePerGas:l,accessList:c,data:u}=e;z(e);let h=k(c),d=[(0,p.NC)(s),i?(0,p.NC)(i):"0x",l?(0,p.NC)(l):"0x",a?(0,p.NC)(a):"0x",n?(0,p.NC)(n):"0x",r??"0x",o?(0,p.NC)(o):"0x",u??"0x",h,...F(e,t)];return(0,f.SM)(["0x02",(0,g.LV)(d)])}(e,t):"eip2930"===s?function(e,t){let{chainId:s,gas:n,data:i,nonce:r,to:o,value:a,accessList:l,gasPrice:c}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:s,gasPrice:n,maxFeePerGas:i,to:r}=e;if(t<=0)throw new B.hJ({chainId:t});if(r&&!(0,d.U)(r))throw new h.b({address:r});if(s||i)throw new G.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(n&&n>$.zL)throw new C.Hh({maxFeePerGas:n})}(e);let u=k(l),b=[(0,p.NC)(s),r?(0,p.NC)(r):"0x",c?(0,p.NC)(c):"0x",n?(0,p.NC)(n):"0x",o??"0x",a?(0,p.NC)(a):"0x",i??"0x",u,...F(e,t)];return(0,f.SM)(["0x01",(0,g.LV)(b)])}(e,t):"eip4844"===s?function(e,t){let{chainId:s,gas:i,nonce:r,to:o,value:a,maxFeePerBlobGas:l,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:h,data:d}=e;!function(e){let{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new I.RX;for(let e of t){let t=(0,E.d)(e),s=(0,n.ly)((0,U.tP)(e,0,1));if(32!==t)throw new I.xd({hash:e,size:t});if(s!==P.l)throw new I.cJ({hash:e,version:s})}}z(e)}(e);let b=e.blobVersionedHashes,w=e.sidecars;if(e.blobs&&(void 0===b||void 0===w)){let t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>(0,p.ci)(e)),s=e.kzg,n=(0,m.P)({blobs:t,kzg:s});if(void 0===b&&(b=(0,x.C)({commitments:n})),void 0===w){let e=(0,y.y)({blobs:t,commitments:n,kzg:s});w=(0,v.j)({blobs:t,commitments:n,proofs:e})}}let $=k(h),G=[(0,p.NC)(s),r?(0,p.NC)(r):"0x",u?(0,p.NC)(u):"0x",c?(0,p.NC)(c):"0x",i?(0,p.NC)(i):"0x",o??"0x",a?(0,p.NC)(a):"0x",d??"0x",$,l?(0,p.NC)(l):"0x",b??[],...F(e,t)],B=[],C=[],N=[];if(w)for(let e=0;e<w.length;e++){let{blob:t,commitment:s,proof:n}=w[e];B.push(t),C.push(s),N.push(n)}return(0,f.SM)(["0x03",w?(0,g.LV)([G,B,C,N]):(0,g.LV)(G)])}(e,t):"eip7702"===s?function(e,t){let{authorizationList:s,chainId:n,gas:i,nonce:r,to:o,value:a,maxFeePerGas:l,maxPriorityFeePerGas:c,accessList:u,data:b}=e;!function(e){let{authorizationList:t}=e;if(t)for(let e of t){let{contractAddress:t,chainId:s}=e;if(!(0,d.U)(t))throw new h.b({address:t});if(s<=0)throw new B.hJ({chainId:s})}z(e)}(e);let m=k(u),y=function(e){if(!e||0===e.length)return[];let t=[];for(let s of e){let{contractAddress:e,chainId:n,nonce:i,...r}=s;t.push([(0,p.NC)(n),e,i?(0,p.NC)(i):"0x",...F({},r)])}return t}(s);return(0,f.SM)(["0x04",(0,g.LV)([(0,p.NC)(n),r?(0,p.NC)(r):"0x",c?(0,p.NC)(c):"0x",l?(0,p.NC)(l):"0x",i?(0,p.NC)(i):"0x",o??"0x",a?(0,p.NC)(a):"0x",b??"0x",m,y,...F(e,t)])])}(e,t):function(e,t){let{chainId:s=0,gas:n,data:i,nonce:r,to:o,value:a,gasPrice:l}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:s,gasPrice:n,maxFeePerGas:i,to:r}=e;if(r&&!(0,d.U)(r))throw new h.b({address:r});if(void 0!==t&&t<=0)throw new B.hJ({chainId:t});if(s||i)throw new G.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(n&&n>$.zL)throw new C.Hh({maxFeePerGas:n})}(e);let c=[r?(0,p.NC)(r):"0x",l?(0,p.NC)(l):"0x",n?(0,p.NC)(n):"0x",o??"0x",a?(0,p.NC)(a):"0x",i??"0x"];if(t){let e=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n);if(s>0)return BigInt(2*s)+BigInt(35n+t.v-27n);let e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new b.vl({v:t.v});return e})(),n=(0,w.f)(t.r),i=(0,w.f)(t.s);c=[...c,(0,p.NC)(e),"0x00"===n?"0x":n,"0x00"===i?"0x":i]}else s>0&&(c=[...c,(0,p.NC)(s),"0x","0x"]);return(0,g.LV)(c)}(e,t)}(e,t)}}}},14008:(e,t,s)=>{s.d(t,{K:()=>u,x:()=>c});var n=s(49563),i=s(98383),r=s(89547),o=s(46871),a=s(38643);let l=new o.k(8192);function c(e,t){if(l.has(`${e}.${t}`))return l.get(`${e}.${t}`);let s=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,r.w)((0,i.qX)(s),"bytes"),o=(t?s.substring(`${t}0x`.length):s).split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&n[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());let a=`0x${o.join("")}`;return l.set(`${e}.${t}`,a),a}function u(e,t){if(!(0,a.U)(e,{strict:!1}))throw new n.b({address:e});return c(e,t)}},38643:(e,t,s)=>{s.d(t,{U:()=>a});var n=s(46871),i=s(14008);let r=/^0x[a-fA-F0-9]{40}$/,o=new n.k(8192);function a(e,t){let{strict:s=!0}=t??{},n=`${e}.${s}`;if(o.has(n))return o.get(n);let a=!!r.test(e)&&(e.toLowerCase()===e||!s||(0,i.x)(e)===e);return o.set(n,a),a}},69216:(e,t,s)=>{s.d(t,{P:()=>r});var n=s(98383),i=s(31749);function r(e){let{kzg:t}=e,s=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),r="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,n.nr)(e)):e.blobs,o=[];for(let e of r)o.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===s?o:o.map(e=>(0,i.ci)(e))}},47637:(e,t,s)=>{s.d(t,{y:()=>r});var n=s(98383),i=s(31749);function r(e){let{kzg:t}=e,s=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),r="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,n.nr)(e)):e.blobs,o="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,n.nr)(e)):e.commitments,a=[];for(let e=0;e<r.length;e++){let s=r[e],n=o[e];a.push(Uint8Array.from(t.computeBlobKzgProof(s,n)))}return"bytes"===s?a:a.map(e=>(0,i.ci)(e))}},83929:(e,t,s)=>{s.d(t,{C:()=>a});var n=s(31749),i=s(33380),r=s(81077),o=s(98383);function a(e){let{commitments:t,version:s}=e,a=e.to??("string"==typeof t[0]?"hex":"bytes"),l=[];for(let e of t)l.push(function(e){let{commitment:t,version:s=1}=e,a=e.to??("string"==typeof t?"hex":"bytes"),l=function(e,t){let s=(0,i.JQ)((0,r.v)(e,{strict:!1})?(0,o.O0)(e):e);return"bytes"===(t||"hex")?s:(0,n.NC)(s)}(t,"bytes");return l.set([s],0),"bytes"===a?l:(0,n.ci)(l)}({commitment:e,to:a,version:s}));return l}},22823:(e,t,s)=>{s.d(t,{j:()=>u});var n=s(69216),i=s(47637),r=s(38870),o=s(73452),a=s(74027),l=s(98383),c=s(31749);function u(e){let{data:t,kzg:s,to:u}=e,h=e.blobs??function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),s="string"==typeof e.data?(0,l.nr)(e.data):e.data,n=(0,a.d)(s);if(!n)throw new r.RX;if(n>761855)throw new r.m7({maxSize:761855,size:n});let i=[],u=!0,h=0;for(;u;){let e=(0,o.q)(new Uint8Array(131072)),t=0;for(;t<4096;){let n=s.slice(h,h+31);if(e.pushByte(0),e.pushBytes(n),n.length<31){e.pushByte(128),u=!1;break}t++,h+=31}i.push(e)}return"bytes"===t?i.map(e=>e.bytes):i.map(e=>(0,c.ci)(e.bytes))}({data:t,to:u}),d=e.commitments??(0,n.P)({blobs:h,kzg:s,to:u}),f=e.proofs??(0,i.y)({blobs:h,commitments:d,kzg:s,to:u}),p=[];for(let e=0;e<h.length;e++)p.push({blob:h[e],commitment:d[e],proof:f[e]});return p}},16853:(e,t,s)=>{s.d(t,{a:()=>n});function n(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}},73452:(e,t,s)=>{s.d(t,{q:()=>r});var n=s(80726);let i={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 n.KD({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new n.lQ({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new n.T_({offset:e});let 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 n.T_({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let s=t??this.position;return this.assertPosition(s+e-1),this.bytes.subarray(s,s+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let 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,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let s=this.inspectBytes(e);return this.position+=t??e,s},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function r(e,{recursiveReadLimit:t=8192}={}){let s=Object.create(i);return s.bytes=e,s.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),s.positionReadCount=new Map,s.recursiveReadLimit=t,s}},55013:(e,t,s)=>{function n(e){return"string"==typeof e[0]?i(e):function(e){let t=0;for(let s of e)t+=s.length;let s=new Uint8Array(t),n=0;for(let t of e)s.set(t,n),n+=t.length;return s}(e)}function i(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}s.d(t,{SM:()=>i,zo:()=>n})},81077:(e,t,s)=>{s.d(t,{v:()=>n});function n(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}},26204:(e,t,s)=>{s.d(t,{gc:()=>r,vk:()=>i});var n=s(88500);function i(e,{dir:t,size:s=32}={}){return"string"==typeof e?r(e,{dir:t,size:s}):function(e,{dir:t,size:s=32}={}){if(null===s)return e;if(e.length>s)throw new n.$s({size:e.length,targetSize:s,type:"bytes"});let i=new Uint8Array(s);for(let n=0;n<s;n++){let r="right"===t;i[r?n:s-n-1]=e[r?n:e.length-n-1]}return i}(e,{dir:t,size:s})}function r(e,{dir:t,size:s=32}={}){if(null===s)return e;let i=e.replace("0x","");if(i.length>2*s)throw new n.$s({size:Math.ceil(i.length/2),targetSize:s,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*s,"0")}`}},74027:(e,t,s)=>{s.d(t,{d:()=>i});var n=s(81077);function i(e){return(0,n.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},56857:(e,t,s)=>{s.d(t,{T4:()=>c,p5:()=>u,tP:()=>o});var n=s(88500),i=s(81077),r=s(74027);function o(e,t,s,{strict:n}={}){return(0,i.v)(e,{strict:!1})?u(e,t,s,{strict:n}):c(e,t,s,{strict:n})}function a(e,t){if("number"==typeof t&&t>0&&t>(0,r.d)(e)-1)throw new n.mV({offset:t,position:"start",size:(0,r.d)(e)})}function l(e,t,s){if("number"==typeof t&&"number"==typeof s&&(0,r.d)(e)!==s-t)throw new n.mV({offset:s,position:"end",size:(0,r.d)(e)})}function c(e,t,s,{strict:n}={}){a(e,t);let i=e.slice(t,s);return n&&l(i,t,s),i}function u(e,t,s,{strict:n}={}){a(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(s??e.length)*2)}`;return n&&l(i,t,s),i}},77652:(e,t,s)=>{s.d(t,{f:()=>n});function n(e,{dir:t="left"}={}){let s="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;e<s.length-1&&"0"===s["left"===t?e:s.length-e-1].toString();e++)n++;return(s="left"===t?s.slice(n):s.slice(0,s.length-n),"string"==typeof e)?(1===s.length&&"right"===t&&(s=`${s}0`),`0x${s.length%2==1?`0${s}`:s}`):s}},21388:(e,t,s)=>{s.d(t,{XA:()=>c,Yf:()=>a,ly:()=>u,rR:()=>h,y_:()=>l});var n=s(17330),i=s(74027),r=s(77652),o=s(98383);function a(e,{size:t}){if((0,i.d)(e)>t)throw new n.M6({givenSize:(0,i.d)(e),maxSize:t})}function l(e,t={}){let{signed:s}=t;t.size&&a(e,{size:t.size});let n=BigInt(e);if(!s)return n;let i=(e.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function c(e,t={}){let s=e;if(t.size&&(a(s,{size:t.size}),s=(0,r.f)(s)),"0x00"===(0,r.f)(s))return!1;if("0x01"===(0,r.f)(s))return!0;throw new n.Cd(s)}function u(e,t={}){return Number(l(e,t))}function h(e,t={}){let s=(0,o.nr)(e);return t.size&&(a(s,{size:t.size}),s=(0,r.f)(s,{dir:"right"})),new TextDecoder().decode(s)}},98383:(e,t,s)=>{s.d(t,{O0:()=>c,nr:()=>d,qX:()=>f});var n=s(8523),i=s(81077),r=s(26204),o=s(21388),a=s(31749);let l=new TextEncoder;function c(e,t={}){return"number"==typeof e||"bigint"==typeof e?d((0,a.eC)(e,t)):"boolean"==typeof e?function(e,t={}){let s=new Uint8Array(1);return(s[0]=Number(e),"number"==typeof t.size)?((0,o.Yf)(s,{size:t.size}),(0,r.vk)(s,{size:t.size})):s}(e,t):(0,i.v)(e)?d(e,t):f(e,t)}let u={zero:48,nine:57,A:65,F:70,a:97,f:102};function h(e){return e>=u.zero&&e<=u.nine?e-u.zero:e>=u.A&&e<=u.F?e-(u.A-10):e>=u.a&&e<=u.f?e-(u.a-10):void 0}function d(e,t={}){let s=e;t.size&&((0,o.Yf)(s,{size:t.size}),s=(0,r.vk)(s,{dir:"right",size:t.size}));let i=s.slice(2);i.length%2&&(i=`0${i}`);let a=i.length/2,l=new Uint8Array(a);for(let e=0,t=0;e<a;e++){let s=h(i.charCodeAt(t++)),r=h(i.charCodeAt(t++));if(void 0===s||void 0===r)throw new n.G(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);l[e]=16*s+r}return l}function f(e,t={}){let s=l.encode(e);return"number"==typeof t.size?((0,o.Yf)(s,{size:t.size}),(0,r.vk)(s,{dir:"right",size:t.size})):s}},31749:(e,t,s)=>{s.d(t,{$G:()=>d,C4:()=>l,NC:()=>a,ci:()=>c,eC:()=>u});var n=s(17330),i=s(26204),r=s(21388);let o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function a(e,t={}){return"number"==typeof e||"bigint"==typeof e?u(e,t):"string"==typeof e?d(e,t):"boolean"==typeof e?l(e,t):c(e,t)}function l(e,t={}){let s=`0x${Number(e)}`;return"number"==typeof t.size?((0,r.Yf)(s,{size:t.size}),(0,i.vk)(s,{size:t.size})):s}function c(e,t={}){let s="";for(let t=0;t<e.length;t++)s+=o[e[t]];let n=`0x${s}`;return"number"==typeof t.size?((0,r.Yf)(n,{size:t.size}),(0,i.vk)(n,{dir:"right",size:t.size})):n}function u(e,t={}){let s;let{signed:r,size:o}=t,a=BigInt(e);o?s=r?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:"number"==typeof e&&(s=BigInt(Number.MAX_SAFE_INTEGER));let l="bigint"==typeof s&&r?-s-1n:0;if(s&&a>s||a<l){let t="bigint"==typeof e?"n":"";throw new n.J5({max:s?`${s}${t}`:void 0,min:`${l}${t}`,signed:r,size:o,value:`${e}${t}`})}let c=`0x${(r&&a<0?(1n<<BigInt(8*o))+BigInt(a):a).toString(16)}`;return o?(0,i.vk)(c,{size:o}):c}let h=new TextEncoder;function d(e,t={}){return c(h.encode(e),t)}},23524:(e,t,s)=>{s.d(t,{LV:()=>a});var n=s(8523),i=s(73452),r=s(98383),o=s(31749);function a(e,t="hex"){let s=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),s=l(t);return{length:t<=55?1+t:1+s+t,encode(n){for(let{encode:i}of(t<=55?n.pushByte(192+t):(n.pushByte(247+s),1===s?n.pushUint8(t):2===s?n.pushUint16(t):3===s?n.pushUint24(t):n.pushUint32(t)),e))i(n)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,r.nr)(e):e,s=l(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+s+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+s),1===s?e.pushUint8(t.length):2===s?e.pushUint16(t.length):3===s?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),n=(0,i.q)(new Uint8Array(s.length));return(s.encode(n),"hex"===t)?(0,o.ci)(n.bytes):n.bytes}function l(e){if(e<256)return 1;if(e<65536)return 2;if(e<16777216)return 3;if(e<4294967296)return 4;throw new n.G("Length is too large.")}},708:(e,t,s)=>{s.d(t,{G:()=>o,Z:()=>r});var n=s(36420),i=s(56978);function r(e){let t=e.transactions?.map(e=>"string"==typeof e?e:i.Tr(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}let o=(0,n.$)("block",r)},36420:(e,t,s)=>{s.d(t,{$:()=>n});function n(e,t){return({exclude:s,format:n})=>({exclude:s,format:e=>{let i=t(e);if(s)for(let e of s)delete i[e];return{...i,...n(e)}},type:e})}},39957:(e,t,s)=>{s.d(t,{U:()=>n});function n(e,{args:t,eventName:s}={}){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,...s?{args:t,eventName:s}:{}}}},56978:(e,t,s)=>{s.d(t,{Tr:()=>o,c8:()=>r,y_:()=>a});var n=s(21388),i=s(36420);let r={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function o(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,n.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,n.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?r[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=e.authorizationList.map(e=>({contractAddress:e.address,r:e.r,s:e.s,chainId:Number(e.chainId),nonce:Number(e.nonce),...void 0!==e.yParity?{yParity:Number(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:Number(e.v)}:{}}))),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}let a=(0,i.$)("transaction",o)},89547:(e,t,s)=>{s.d(t,{w:()=>U});var n=s(94964);let i=BigInt(4294967296-1),r=BigInt(32),o=(e,t,s)=>e<<s|t>>>32-s,a=(e,t,s)=>t<<s|e>>>32-s,l=(e,t,s)=>t<<s-32|e>>>64-s,c=(e,t,s)=>e<<s-32|t>>>64-s;var u=s(61117);let h=[],d=[],f=[],p=BigInt(0),g=BigInt(1),b=BigInt(2),m=BigInt(7),y=BigInt(256),x=BigInt(113);for(let e=0,t=g,s=1,n=0;e<24;e++){[s,n]=[n,(2*s+3*n)%5],h.push(2*(5*n+s)),d.push((e+1)*(e+2)/2%64);let i=p;for(let e=0;e<7;e++)(t=(t<<g^(t>>m)*x)%y)&b&&(i^=g<<(g<<BigInt(e))-g);f.push(i)}let[v,w]=function(e,t=!1){let s=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;o<e.length;o++){let{h:a,l}=function(e,t=!1){return t?{h:Number(e&i),l:Number(e>>r&i)}:{h:0|Number(e>>r&i),l:0|Number(e&i)}}(e[o],t);[s[o],n[o]]=[a,l]}return[s,n]}(f,!0),P=(e,t,s)=>s>32?l(e,t,s):o(e,t,s),$=(e,t,s)=>s>32?c(e,t,s):a(e,t,s);class G extends u.kb{constructor(e,t,s,i=!1,r=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=s,this.enableXOF=i,this.rounds=r,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.Rx)(s),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,u.Jq)(this.state)}keccak(){u.iA||(0,u.l1)(this.state32),function(e,t=24){let s=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)s[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,r=s[i],o=s[i+1],a=P(r,o,1)^s[n],l=$(r,o,1)^s[n+1];for(let s=0;s<50;s+=10)e[t+s]^=a,e[t+s+1]^=l}let t=e[2],i=e[3];for(let s=0;s<24;s++){let n=d[s],r=P(t,i,n),o=$(t,i,n),a=h[s];t=e[a],i=e[a+1],e[a]=r,e[a+1]=o}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)s[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~s[(n+2)%10]&s[(n+4)%10]}e[0]^=v[n],e[1]^=w[n]}s.fill(0)}(this.state32,this.rounds),u.iA||(0,u.l1)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.Gg)(this);let{blockLen:t,state:s}=this,i=(e=(0,u.O0)(e)).length;for(let n=0;n<i;){let r=Math.min(t-this.pos,i-n);for(let t=0;t<r;t++)s[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:s,blockLen:n}=this;e[s]^=t,(128&t)!=0&&s===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,n.Gg)(this,!1),(0,n.aI)(e),this.finish();let t=this.state,{blockLen:s}=this;for(let n=0,i=e.length;n<i;){this.posOut>=s&&this.keccak();let r=Math.min(s-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+r),n),this.posOut+=r,n+=r}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.Rx)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.J8)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:s,outputLen:n,rounds:i,enableXOF:r}=this;return e||(e=new G(t,s,n,r,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=s,e.outputLen=n,e.enableXOF=r,e.destroyed=this.destroyed,e}}let I=(0,u.hE)(()=>new G(136,1,32));var B=s(81077),C=s(98383),E=s(31749);function U(e,t){let s=I((0,B.v)(e,{strict:!1})?(0,C.O0)(e):e);return"bytes"===(t||"hex")?s:(0,E.NC)(s)}},46871:(e,t,s)=>{s.d(t,{k:()=>n});class n extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}},77512:(e,t,s)=>{s.d(t,{l:()=>i});var n=s(9637);function i(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new n.j3({transaction:e})}},56786:(e,t,s)=>{s.d(t,{d:()=>r});var n=s(54136),i=s(14758);function r(e,t="wei"){return(0,i.b)(e,n.ez[t])}},86760:(e,t,s)=>{s.d(t,{o:()=>r});var n=s(54136),i=s(14758);function r(e,t="wei"){return(0,i.b)(e,n.Zn[t])}},14758:(e,t,s)=>{s.d(t,{b:()=>n});function n(e,t){let s=e.toString(),n=s.startsWith("-");n&&(s=s.slice(1));let[i,r]=[(s=s.padStart(t,"0")).slice(0,s.length-t),s.slice(s.length-t)];return r=r.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${r?`.${r}`:""}`}}};
|
|
1
|
+
"use strict";exports.id=3016,exports.ids=[3016],exports.modules={94964:(e,t,s)=>{function i(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, not ${e}`)}function n(e,...t){if(!(e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function r(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function o(e,t){n(e);let s=t.outputLen;if(e.length<s)throw Error(`digestInto() expects output buffer of length at least ${s}`)}s.d(t,{Gg:()=>r,J8:()=>o,Rx:()=>i,aI:()=>n})},45484:(e,t,s)=>{s.d(t,{GL:()=>r,Jq:()=>n,O0:()=>u,hE:()=>d,iA:()=>a,kb:()=>h,l1:()=>c,np:()=>o});var i=s(94964);let n=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),r=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),o=(e,t)=>e<<32-t|e>>>t,a=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],l=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function c(e){for(let t=0;t<e.length;t++)e[t]=l(e[t])}function u(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}(e)),(0,i.aI)(e),e}class h{clone(){return this._cloneInto()}}function d(e){let t=t=>e().update(u(t)).digest(),s=e();return t.outputLen=s.outputLen,t.blockLen=s.blockLen,t.create=()=>e(),t}},58788:(e,t,s)=>{s.d(t,{O:()=>i});let i=(0,s(16853).a)({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"]}}})},52188:(e,t,s)=>{s.d(t,{t:()=>i});let i=(0,s(16853).a)({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"]}}})},26721:(e,t,s)=>{s.d(t,{T:()=>n});var i=s(99721);let n=(0,s(16853).a)({...i.i,name:"Garnet Testnet",testnet:!0,id:17069,sourceId:17e3,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:{...i.i.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{17e3:{address:"0x57ee40586fbE286AfC75E67cb69511A6D9aF5909",blockCreated:1274684}},l2OutputOracle:{17e3:{address:"0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B",blockCreated:1274684}},l1StandardBridge:{17e3:{address:"0x09bcDd311FE398F80a78BE37E489f5D440DB95DE",blockCreated:1274684}}}})},55726:(e,t,s)=>{s.d(t,{g:()=>n});var i=s(99721);let n=(0,s(16853).a)({...i.i,name:"Redstone",id:690,sourceId:1,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:{...i.i.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{1:{address:"0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae",blockCreated:19578329}},l2OutputOracle:{1:{address:"0xa426A052f657AEEefc298b3B5c35a470e4739d69",blockCreated:19578337}},l1StandardBridge:{1:{address:"0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69",blockCreated:19578331}}}})},49563:(e,t,s)=>{s.d(t,{b:()=>n});var i=s(8523);class n extends i.G{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},8523:(e,t,s)=>{s.d(t,{G:()=>r});let i="2.21.19",n={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:s})=>t?`${e??"https://viem.sh"}${t}${s?`#${s}`:""}`:void 0,version:i};class r extends Error{constructor(e,t={}){let s=t.cause instanceof r?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof r&&t.cause.docsPath||t.docsPath,a=n.getDocsUrl?.({...t,docsPath:o});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...s?[`Details: ${s}`]:[],...n.version?[`Version: ${n.version}`]:[]].join("\n"),t.cause?{cause:t.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=s,this.docsPath=o,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=i}walk(e){return function e(t,s){return s?.(t)?t:t&&"object"==typeof t&&"cause"in t?e(t.cause,s):s?null:t}(this,e)}}},80726:(e,t,s)=>{s.d(t,{KD:()=>o,T_:()=>n,lQ:()=>r});var i=s(8523);class n extends i.G{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class r extends i.G{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class o extends i.G{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}},88500:(e,t,s)=>{s.d(t,{$s:()=>r,mV:()=>n});var i=s(8523);class n extends i.G{constructor({offset:e,position:t,size:s}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${s}).`,{name:"SliceOffsetOutOfBoundsError"})}}class r extends i.G{constructor({size:e,targetSize:t,type:s}){super(`${s.charAt(0).toUpperCase()}${s.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}},17330:(e,t,s)=>{s.d(t,{Cd:()=>o,J5:()=>n,M6:()=>a,yr:()=>r});var i=s(8523);class n extends i.G{constructor({max:e,min:t,signed:s,size:i,value:n}){super(`Number "${n}" is not in safe ${i?`${8*i}-bit ${s?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class r extends i.G{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class o extends i.G{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class a extends i.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}},99721:(e,t,s)=>{s.d(t,{i:()=>ec});var i=s(21388);function n(e,t){return({exclude:s,format:i})=>({exclude:s,format:e=>{let n=t(e);if(s)for(let e of s)delete n[e];return{...n,...i(e)}},type:e})}let r={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function o(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,i.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,i.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?r[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=e.authorizationList.map(e=>({contractAddress:e.address,r:e.r,s:e.s,chainId:Number(e.chainId),nonce:Number(e.nonce),...void 0!==e.yParity?{yParity:Number(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:Number(e.v)}:{}}))),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}let a=n("transaction",o),l=n("block",function(e){let t=e.transactions?.map(e=>"string"==typeof e?e:o(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}});var c=s(39957);let u={"0x0":"reverted","0x1":"success"},h=n("transactionReceipt",function(e){let t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,c.U)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,i.ly)(e.transactionIndex):null,status:e.status?u[e.status]:null,type:e.type?r[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}),d={block:l({format:e=>({transactions:e.transactions?.map(e=>{if("string"==typeof e)return e;let t=o(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?i.y_(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}),stateRoot:e.stateRoot})}),transaction:a({format(e){let t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,i.y_)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:h({format:e=>({l1GasPrice:e.l1GasPrice?(0,i.y_)(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?(0,i.y_)(e.l1GasUsed):null,l1Fee:e.l1Fee?(0,i.y_)(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})};var f=s(49563),p=s(38643),b=s(55013),g=s(31749),m=s(8523),y=s(73452),x=s(98383);function v(e,t="hex"){let s=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),s=w(t);return{length:t<=55?1+t:1+s+t,encode(i){for(let{encode:n}of(t<=55?i.pushByte(192+t):(i.pushByte(247+s),1===s?i.pushUint8(t):2===s?i.pushUint16(t):3===s?i.pushUint24(t):i.pushUint32(t)),e))n(i)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,x.nr)(e):e,s=w(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+s+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+s),1===s?e.pushUint8(t.length):2===s?e.pushUint16(t.length):3===s?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),i=(0,y.q)(new Uint8Array(s.length));return(s.encode(i),"hex"===t)?(0,g.ci)(i.bytes):i.bytes}function w(e){if(e<256)return 1;if(e<65536)return 2;if(e<16777216)return 3;if(e<4294967296)return 4;throw new m.G("Length is too large.")}let P={ether:-9,wei:9};function I(e,t="wei"){return function(e,t){let s=e.toString(),i=s.startsWith("-");i&&(s=s.slice(1));let[n,r]=[(s=s.padStart(t,"0")).slice(0,s.length-t),s.slice(s.length-t)];return r=r.replace(/(0+)$/,""),`${i?"-":""}${n||"0"}${r?`.${r}`:""}`}(e,P[t])}class $ extends m.G{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class G extends m.G{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",function(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),s=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(s+1)} ${t}`).join("\n")}(e),"}","","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 B extends m.G{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}function U(e){let{kzg:t}=e,s=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),i="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,x.nr)(e)):e.blobs,n=[];for(let e of i)n.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===s?n:n.map(e=>(0,g.ci)(e))}function E(e){let{kzg:t}=e,s=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),i="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,x.nr)(e)):e.blobs,n="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,x.nr)(e)):e.commitments,r=[];for(let e=0;e<i.length;e++){let s=i[e],o=n[e];r.push(Uint8Array.from(t.computeBlobKzgProof(s,o)))}return"bytes"===s?r:r.map(e=>(0,g.ci)(e))}var C=s(94964),N=s(45484);let z=(e,t,s)=>e&t^~e&s,k=(e,t,s)=>e&t^e&s^t&s;class F extends N.kb{constructor(e,t,s,i){super(),this.blockLen=e,this.outputLen=t,this.padOffset=s,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,N.GL)(this.buffer)}update(e){(0,C.Gg)(this);let{view:t,buffer:s,blockLen:i}=this,n=(e=(0,N.O0)(e)).length;for(let r=0;r<n;){let o=Math.min(i-this.pos,n-r);if(o===i){let t=(0,N.GL)(e);for(;i<=n-r;r+=i)this.process(t,r);continue}s.set(e.subarray(r,r+o),this.pos),this.pos+=o,r+=o,this.pos===i&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,C.Gg)(this),(0,C.J8)(e,this),this.finished=!0;let{buffer:t,view:s,blockLen:i,isLE:n}=this,{pos:r}=this;t[r++]=128,this.buffer.subarray(r).fill(0),this.padOffset>i-r&&(this.process(s,0),r=0);for(let e=r;e<i;e++)t[e]=0;(function(e,t,s,i){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,s,i);let n=BigInt(32),r=BigInt(4294967295),o=Number(s>>n&r),a=Number(s&r),l=i?4:0,c=i?0:4;e.setUint32(t+l,o,i),e.setUint32(t+c,a,i)})(s,i-8,BigInt(8*this.length),n),this.process(s,0);let o=(0,N.GL)(e),a=this.outputLen;if(a%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=a/4,c=this.get();if(l>c.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)o.setUint32(4*e,c[e],n)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let s=e.slice(0,t);return this.destroy(),s}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:s,length:i,finished:n,destroyed:r,pos:o}=this;return e.length=i,e.pos=o,e.finished=n,e.destroyed=r,i%t&&e.buffer.set(s),e}}let A=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]),O=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),L=new Uint32Array(64);class T extends F{constructor(){super(64,32,8,!1),this.A=0|O[0],this.B=0|O[1],this.C=0|O[2],this.D=0|O[3],this.E=0|O[4],this.F=0|O[5],this.G=0|O[6],this.H=0|O[7]}get(){let{A:e,B:t,C:s,D:i,E:n,F:r,G:o,H:a}=this;return[e,t,s,i,n,r,o,a]}set(e,t,s,i,n,r,o,a){this.A=0|e,this.B=0|t,this.C=0|s,this.D=0|i,this.E=0|n,this.F=0|r,this.G=0|o,this.H=0|a}process(e,t){for(let s=0;s<16;s++,t+=4)L[s]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=L[e-15],s=L[e-2],i=(0,N.np)(t,7)^(0,N.np)(t,18)^t>>>3,n=(0,N.np)(s,17)^(0,N.np)(s,19)^s>>>10;L[e]=n+L[e-7]+i+L[e-16]|0}let{A:s,B:i,C:n,D:r,E:o,F:a,G:l,H:c}=this;for(let e=0;e<64;e++){let t=c+((0,N.np)(o,6)^(0,N.np)(o,11)^(0,N.np)(o,25))+z(o,a,l)+A[e]+L[e]|0,u=((0,N.np)(s,2)^(0,N.np)(s,13)^(0,N.np)(s,22))+k(s,i,n)|0;c=l,l=a,a=o,o=r+t|0,r=n,n=i,i=s,s=t+u|0}s=s+this.A|0,i=i+this.B|0,n=n+this.C|0,r=r+this.D|0,o=o+this.E|0,a=a+this.F|0,l=l+this.G|0,c=c+this.H|0,this.set(s,i,n,r,o,a,l,c)}roundClean(){L.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let S=(0,N.hE)(()=>new T);var M=s(81077);class R extends m.G{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class H extends m.G{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class V extends m.G{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}class j extends m.G{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:["Expected: 1",`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}var D=s(74027),_=s(77652);let q=2n**256n-1n;class X extends m.G{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}class Y extends m.G{constructor({cause:e,message:t}={}){let s=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${s?`with reason: ${s}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(Y,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(Y,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class J extends m.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${I(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(J,"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 K extends m.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${I(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(K,"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 Q extends m.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(Q,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class W extends m.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
|
|
2
|
+
Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(W,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Z extends m.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(Z,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class ee extends m.G{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,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(ee,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class et extends m.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(et,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class es extends m.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(es,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class ei extends m.G{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(ei,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class en extends m.G{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:s}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${I(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${s?` = ${I(s)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(en,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});var er=s(56857);function eo(e){let{chainId:t,maxPriorityFeePerGas:s,maxFeePerGas:i,to:n}=e;if(t<=0)throw new X({chainId:t});if(n&&!(0,p.U)(n))throw new f.b({address:n});if(i&&i>q)throw new J({maxFeePerGas:i});if(s&&i&&s>i)throw new en({maxFeePerGas:i,maxPriorityFeePerGas:s})}function ea(e){if(!e||0===e.length)return[];let t=[];for(let s=0;s<e.length;s++){let{address:i,storageKeys:n}=e[s];for(let e=0;e<n.length;e++)if(n[e].length-2!=64)throw new B({storageKey:n[e]});if(!(0,p.U)(i,{strict:!1}))throw new f.b({address:i});t.push([i,n])}return t}function el(e,t){let s=t??e,{v:i,yParity:n}=s;if(void 0===s.r||void 0===s.s||void 0===i&&void 0===n)return[];let r=(0,_.f)(s.r),o=(0,_.f)(s.s);return["number"==typeof n?n?(0,g.NC)(1):"0x":0n===i?"0x":1n===i?(0,g.NC)(1):27n===i?"0x":(0,g.NC)(1),"0x00"===r?"0x":r,"0x00"===o?"0x":o]}let ec={contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:d,serializers:{transaction:function(e,t){return"deposit"===e.type||void 0!==e.sourceHash?function(e){(function(e){let{from:t,to:s}=e;if(t&&!(0,p.U)(t))throw new f.b({address:t});if(s&&!(0,p.U)(s))throw new f.b({address:s})})(e);let{sourceHash:t,data:s,from:i,gas:n,isSystemTx:r,mint:o,to:a,value:l}=e,c=[t,i,a??"0x",o?(0,g.NC)(o):"0x",l?(0,g.NC)(l):"0x",n?(0,g.NC)(n):"0x",r?"0x1":"0x",s??"0x"];return(0,b.SM)(["0x7e",v(c)])}(e):function(e,t){let s=function(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new G({transaction:e})}(e);return"eip1559"===s?function(e,t){let{chainId:s,gas:i,nonce:n,to:r,value:o,maxFeePerGas:a,maxPriorityFeePerGas:l,accessList:c,data:u}=e;eo(e);let h=ea(c),d=[(0,g.NC)(s),n?(0,g.NC)(n):"0x",l?(0,g.NC)(l):"0x",a?(0,g.NC)(a):"0x",i?(0,g.NC)(i):"0x",r??"0x",o?(0,g.NC)(o):"0x",u??"0x",h,...el(e,t)];return(0,b.SM)(["0x02",v(d)])}(e,t):"eip2930"===s?function(e,t){let{chainId:s,gas:i,data:n,nonce:r,to:o,value:a,accessList:l,gasPrice:c}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:s,gasPrice:i,maxFeePerGas:n,to:r}=e;if(t<=0)throw new X({chainId:t});if(r&&!(0,p.U)(r))throw new f.b({address:r});if(s||n)throw new m.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(i&&i>q)throw new J({maxFeePerGas:i})}(e);let u=ea(l),h=[(0,g.NC)(s),r?(0,g.NC)(r):"0x",c?(0,g.NC)(c):"0x",i?(0,g.NC)(i):"0x",o??"0x",a?(0,g.NC)(a):"0x",n??"0x",u,...el(e,t)];return(0,b.SM)(["0x01",v(h)])}(e,t):"eip4844"===s?function(e,t){let{chainId:s,gas:n,nonce:r,to:o,value:a,maxFeePerBlobGas:l,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:h,data:d}=e;!function(e){let{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new H;for(let e of t){let t=(0,D.d)(e),s=(0,i.ly)((0,er.tP)(e,0,1));if(32!==t)throw new V({hash:e,size:t});if(1!==s)throw new j({hash:e,version:s})}}eo(e)}(e);let f=e.blobVersionedHashes,p=e.sidecars;if(e.blobs&&(void 0===f||void 0===p)){let t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>(0,g.ci)(e)),s=e.kzg,i=U({blobs:t,kzg:s});if(void 0===f&&(f=function(e){let{commitments:t,version:s}=e,i=e.to??("string"==typeof t[0]?"hex":"bytes"),n=[];for(let e of t)n.push(function(e){let{commitment:t,version:s=1}=e,i=e.to??("string"==typeof t?"hex":"bytes"),n=function(e,t){let s=S((0,M.v)(e,{strict:!1})?(0,x.O0)(e):e);return"bytes"===(t||"hex")?s:(0,g.NC)(s)}(t,"bytes");return n.set([s],0),"bytes"===i?n:(0,g.ci)(n)}({commitment:e,to:i,version:s}));return n}({commitments:i})),void 0===p){let e=E({blobs:t,commitments:i,kzg:s});p=function(e){let{data:t,kzg:s,to:i}=e,n=e.blobs??function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),s="string"==typeof e.data?(0,x.nr)(e.data):e.data,i=(0,D.d)(s);if(!i)throw new H;if(i>761855)throw new R({maxSize:761855,size:i});let n=[],r=!0,o=0;for(;r;){let e=(0,y.q)(new Uint8Array(131072)),t=0;for(;t<4096;){let i=s.slice(o,o+31);if(e.pushByte(0),e.pushBytes(i),i.length<31){e.pushByte(128),r=!1;break}t++,o+=31}n.push(e)}return"bytes"===t?n.map(e=>e.bytes):n.map(e=>(0,g.ci)(e.bytes))}({data:t,to:i}),r=e.commitments??U({blobs:n,kzg:s,to:i}),o=e.proofs??E({blobs:n,commitments:r,kzg:s,to:i}),a=[];for(let e=0;e<n.length;e++)a.push({blob:n[e],commitment:r[e],proof:o[e]});return a}({blobs:t,commitments:i,proofs:e})}}let m=ea(h),w=[(0,g.NC)(s),r?(0,g.NC)(r):"0x",u?(0,g.NC)(u):"0x",c?(0,g.NC)(c):"0x",n?(0,g.NC)(n):"0x",o??"0x",a?(0,g.NC)(a):"0x",d??"0x",m,l?(0,g.NC)(l):"0x",f??[],...el(e,t)],P=[],I=[],$=[];if(p)for(let e=0;e<p.length;e++){let{blob:t,commitment:s,proof:i}=p[e];P.push(t),I.push(s),$.push(i)}return(0,b.SM)(["0x03",p?v([w,P,I,$]):v(w)])}(e,t):"eip7702"===s?function(e,t){let{authorizationList:s,chainId:i,gas:n,nonce:r,to:o,value:a,maxFeePerGas:l,maxPriorityFeePerGas:c,accessList:u,data:h}=e;!function(e){let{authorizationList:t}=e;if(t)for(let e of t){let{contractAddress:t,chainId:s}=e;if(!(0,p.U)(t))throw new f.b({address:t});if(s<=0)throw new X({chainId:s})}eo(e)}(e);let d=ea(u),m=function(e){if(!e||0===e.length)return[];let t=[];for(let s of e){let{contractAddress:e,chainId:i,nonce:n,...r}=s;t.push([(0,g.NC)(i),e,n?(0,g.NC)(n):"0x",...el({},r)])}return t}(s);return(0,b.SM)(["0x04",v([(0,g.NC)(i),r?(0,g.NC)(r):"0x",c?(0,g.NC)(c):"0x",l?(0,g.NC)(l):"0x",n?(0,g.NC)(n):"0x",o??"0x",a?(0,g.NC)(a):"0x",h??"0x",d,m,...el(e,t)])])}(e,t):function(e,t){let{chainId:s=0,gas:i,data:n,nonce:r,to:o,value:a,gasPrice:l}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:s,gasPrice:i,maxFeePerGas:n,to:r}=e;if(r&&!(0,p.U)(r))throw new f.b({address:r});if(void 0!==t&&t<=0)throw new X({chainId:t});if(s||n)throw new m.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(i&&i>q)throw new J({maxFeePerGas:i})}(e);let c=[r?(0,g.NC)(r):"0x",l?(0,g.NC)(l):"0x",i?(0,g.NC)(i):"0x",o??"0x",a?(0,g.NC)(a):"0x",n??"0x"];if(t){let e=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n);if(s>0)return BigInt(2*s)+BigInt(35n+t.v-27n);let e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new $({v:t.v});return e})(),i=(0,_.f)(t.r),n=(0,_.f)(t.s);c=[...c,(0,g.NC)(e),"0x00"===i?"0x":i,"0x00"===n?"0x":n]}else s>0&&(c=[...c,(0,g.NC)(s),"0x","0x"]);return v(c)}(e,t)}(e,t)}}}},14008:(e,t,s)=>{s.d(t,{K:()=>u,x:()=>c});var i=s(49563),n=s(98383),r=s(89547),o=s(46871),a=s(38643);let l=new o.k(8192);function c(e,t){if(l.has(`${e}.${t}`))return l.get(`${e}.${t}`);let s=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),i=(0,r.w)((0,n.qX)(s),"bytes"),o=(t?s.substring(`${t}0x`.length):s).split("");for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&i[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());let a=`0x${o.join("")}`;return l.set(`${e}.${t}`,a),a}function u(e,t){if(!(0,a.U)(e,{strict:!1}))throw new i.b({address:e});return c(e,t)}},38643:(e,t,s)=>{s.d(t,{U:()=>a});var i=s(46871),n=s(14008);let r=/^0x[a-fA-F0-9]{40}$/,o=new i.k(8192);function a(e,t){let{strict:s=!0}=t??{},i=`${e}.${s}`;if(o.has(i))return o.get(i);let a=!!r.test(e)&&(e.toLowerCase()===e||!s||(0,n.x)(e)===e);return o.set(i,a),a}},16853:(e,t,s)=>{s.d(t,{a:()=>i});function i(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}},73452:(e,t,s)=>{s.d(t,{q:()=>r});var i=s(80726);let n={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 i.KD({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new i.lQ({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new i.T_({offset:e});let 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 i.T_({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let s=t??this.position;return this.assertPosition(s+e-1),this.bytes.subarray(s,s+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let 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,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let s=this.inspectBytes(e);return this.position+=t??e,s},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function r(e,{recursiveReadLimit:t=8192}={}){let s=Object.create(n);return s.bytes=e,s.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),s.positionReadCount=new Map,s.recursiveReadLimit=t,s}},55013:(e,t,s)=>{function i(e){return"string"==typeof e[0]?n(e):function(e){let t=0;for(let s of e)t+=s.length;let s=new Uint8Array(t),i=0;for(let t of e)s.set(t,i),i+=t.length;return s}(e)}function n(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}s.d(t,{SM:()=>n,zo:()=>i})},81077:(e,t,s)=>{s.d(t,{v:()=>i});function i(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}},26204:(e,t,s)=>{s.d(t,{gc:()=>r,vk:()=>n});var i=s(88500);function n(e,{dir:t,size:s=32}={}){return"string"==typeof e?r(e,{dir:t,size:s}):function(e,{dir:t,size:s=32}={}){if(null===s)return e;if(e.length>s)throw new i.$s({size:e.length,targetSize:s,type:"bytes"});let n=new Uint8Array(s);for(let i=0;i<s;i++){let r="right"===t;n[r?i:s-i-1]=e[r?i:e.length-i-1]}return n}(e,{dir:t,size:s})}function r(e,{dir:t,size:s=32}={}){if(null===s)return e;let n=e.replace("0x","");if(n.length>2*s)throw new i.$s({size:Math.ceil(n.length/2),targetSize:s,type:"hex"});return`0x${n["right"===t?"padEnd":"padStart"](2*s,"0")}`}},74027:(e,t,s)=>{s.d(t,{d:()=>n});var i=s(81077);function n(e){return(0,i.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},56857:(e,t,s)=>{s.d(t,{T4:()=>c,p5:()=>u,tP:()=>o});var i=s(88500),n=s(81077),r=s(74027);function o(e,t,s,{strict:i}={}){return(0,n.v)(e,{strict:!1})?u(e,t,s,{strict:i}):c(e,t,s,{strict:i})}function a(e,t){if("number"==typeof t&&t>0&&t>(0,r.d)(e)-1)throw new i.mV({offset:t,position:"start",size:(0,r.d)(e)})}function l(e,t,s){if("number"==typeof t&&"number"==typeof s&&(0,r.d)(e)!==s-t)throw new i.mV({offset:s,position:"end",size:(0,r.d)(e)})}function c(e,t,s,{strict:i}={}){a(e,t);let n=e.slice(t,s);return i&&l(n,t,s),n}function u(e,t,s,{strict:i}={}){a(e,t);let n=`0x${e.replace("0x","").slice((t??0)*2,(s??e.length)*2)}`;return i&&l(n,t,s),n}},77652:(e,t,s)=>{s.d(t,{f:()=>i});function i(e,{dir:t="left"}={}){let s="string"==typeof e?e.replace("0x",""):e,i=0;for(let e=0;e<s.length-1&&"0"===s["left"===t?e:s.length-e-1].toString();e++)i++;return(s="left"===t?s.slice(i):s.slice(0,s.length-i),"string"==typeof e)?(1===s.length&&"right"===t&&(s=`${s}0`),`0x${s.length%2==1?`0${s}`:s}`):s}},21388:(e,t,s)=>{s.d(t,{XA:()=>c,Yf:()=>a,ly:()=>u,rR:()=>h,y_:()=>l});var i=s(17330),n=s(74027),r=s(77652),o=s(98383);function a(e,{size:t}){if((0,n.d)(e)>t)throw new i.M6({givenSize:(0,n.d)(e),maxSize:t})}function l(e,t={}){let{signed:s}=t;t.size&&a(e,{size:t.size});let i=BigInt(e);if(!s)return i;let n=(e.length-2)/2;return i<=(1n<<8n*BigInt(n)-1n)-1n?i:i-BigInt(`0x${"f".padStart(2*n,"f")}`)-1n}function c(e,t={}){let s=e;if(t.size&&(a(s,{size:t.size}),s=(0,r.f)(s)),"0x00"===(0,r.f)(s))return!1;if("0x01"===(0,r.f)(s))return!0;throw new i.Cd(s)}function u(e,t={}){return Number(l(e,t))}function h(e,t={}){let s=(0,o.nr)(e);return t.size&&(a(s,{size:t.size}),s=(0,r.f)(s,{dir:"right"})),new TextDecoder().decode(s)}},98383:(e,t,s)=>{s.d(t,{O0:()=>c,nr:()=>d,qX:()=>f});var i=s(8523),n=s(81077),r=s(26204),o=s(21388),a=s(31749);let l=new TextEncoder;function c(e,t={}){return"number"==typeof e||"bigint"==typeof e?d((0,a.eC)(e,t)):"boolean"==typeof e?function(e,t={}){let s=new Uint8Array(1);return(s[0]=Number(e),"number"==typeof t.size)?((0,o.Yf)(s,{size:t.size}),(0,r.vk)(s,{size:t.size})):s}(e,t):(0,n.v)(e)?d(e,t):f(e,t)}let u={zero:48,nine:57,A:65,F:70,a:97,f:102};function h(e){return e>=u.zero&&e<=u.nine?e-u.zero:e>=u.A&&e<=u.F?e-(u.A-10):e>=u.a&&e<=u.f?e-(u.a-10):void 0}function d(e,t={}){let s=e;t.size&&((0,o.Yf)(s,{size:t.size}),s=(0,r.vk)(s,{dir:"right",size:t.size}));let n=s.slice(2);n.length%2&&(n=`0${n}`);let a=n.length/2,l=new Uint8Array(a);for(let e=0,t=0;e<a;e++){let s=h(n.charCodeAt(t++)),r=h(n.charCodeAt(t++));if(void 0===s||void 0===r)throw new i.G(`Invalid byte sequence ("${n[t-2]}${n[t-1]}" in "${n}").`);l[e]=16*s+r}return l}function f(e,t={}){let s=l.encode(e);return"number"==typeof t.size?((0,o.Yf)(s,{size:t.size}),(0,r.vk)(s,{dir:"right",size:t.size})):s}},31749:(e,t,s)=>{s.d(t,{$G:()=>d,C4:()=>l,NC:()=>a,ci:()=>c,eC:()=>u});var i=s(17330),n=s(26204),r=s(21388);let o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function a(e,t={}){return"number"==typeof e||"bigint"==typeof e?u(e,t):"string"==typeof e?d(e,t):"boolean"==typeof e?l(e,t):c(e,t)}function l(e,t={}){let s=`0x${Number(e)}`;return"number"==typeof t.size?((0,r.Yf)(s,{size:t.size}),(0,n.vk)(s,{size:t.size})):s}function c(e,t={}){let s="";for(let t=0;t<e.length;t++)s+=o[e[t]];let i=`0x${s}`;return"number"==typeof t.size?((0,r.Yf)(i,{size:t.size}),(0,n.vk)(i,{dir:"right",size:t.size})):i}function u(e,t={}){let s;let{signed:r,size:o}=t,a=BigInt(e);o?s=r?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:"number"==typeof e&&(s=BigInt(Number.MAX_SAFE_INTEGER));let l="bigint"==typeof s&&r?-s-1n:0;if(s&&a>s||a<l){let t="bigint"==typeof e?"n":"";throw new i.J5({max:s?`${s}${t}`:void 0,min:`${l}${t}`,signed:r,size:o,value:`${e}${t}`})}let c=`0x${(r&&a<0?(1n<<BigInt(8*o))+BigInt(a):a).toString(16)}`;return o?(0,n.vk)(c,{size:o}):c}let h=new TextEncoder;function d(e,t={}){return c(h.encode(e),t)}},39957:(e,t,s)=>{s.d(t,{U:()=>i});function i(e,{args:t,eventName:s}={}){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,...s?{args:t,eventName:s}:{}}}},89547:(e,t,s)=>{s.d(t,{w:()=>C});var i=s(94964);let n=BigInt(4294967296-1),r=BigInt(32),o=(e,t,s)=>e<<s|t>>>32-s,a=(e,t,s)=>t<<s|e>>>32-s,l=(e,t,s)=>t<<s-32|e>>>64-s,c=(e,t,s)=>e<<s-32|t>>>64-s;var u=s(45484);let h=[],d=[],f=[],p=BigInt(0),b=BigInt(1),g=BigInt(2),m=BigInt(7),y=BigInt(256),x=BigInt(113);for(let e=0,t=b,s=1,i=0;e<24;e++){[s,i]=[i,(2*s+3*i)%5],h.push(2*(5*i+s)),d.push((e+1)*(e+2)/2%64);let n=p;for(let e=0;e<7;e++)(t=(t<<b^(t>>m)*x)%y)&g&&(n^=b<<(b<<BigInt(e))-b);f.push(n)}let[v,w]=function(e,t=!1){let s=new Uint32Array(e.length),i=new Uint32Array(e.length);for(let o=0;o<e.length;o++){let{h:a,l}=function(e,t=!1){return t?{h:Number(e&n),l:Number(e>>r&n)}:{h:0|Number(e>>r&n),l:0|Number(e&n)}}(e[o],t);[s[o],i[o]]=[a,l]}return[s,i]}(f,!0),P=(e,t,s)=>s>32?l(e,t,s):o(e,t,s),I=(e,t,s)=>s>32?c(e,t,s):a(e,t,s);class $ extends u.kb{constructor(e,t,s,n=!1,r=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=s,this.enableXOF=n,this.rounds=r,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,i.Rx)(s),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,u.Jq)(this.state)}keccak(){u.iA||(0,u.l1)(this.state32),function(e,t=24){let s=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let t=0;t<10;t++)s[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let i=(t+8)%10,n=(t+2)%10,r=s[n],o=s[n+1],a=P(r,o,1)^s[i],l=I(r,o,1)^s[i+1];for(let s=0;s<50;s+=10)e[t+s]^=a,e[t+s+1]^=l}let t=e[2],n=e[3];for(let s=0;s<24;s++){let i=d[s],r=P(t,n,i),o=I(t,n,i),a=h[s];t=e[a],n=e[a+1],e[a]=r,e[a+1]=o}for(let t=0;t<50;t+=10){for(let i=0;i<10;i++)s[i]=e[t+i];for(let i=0;i<10;i++)e[t+i]^=~s[(i+2)%10]&s[(i+4)%10]}e[0]^=v[i],e[1]^=w[i]}s.fill(0)}(this.state32,this.rounds),u.iA||(0,u.l1)(this.state32),this.posOut=0,this.pos=0}update(e){(0,i.Gg)(this);let{blockLen:t,state:s}=this,n=(e=(0,u.O0)(e)).length;for(let i=0;i<n;){let r=Math.min(t-this.pos,n-i);for(let t=0;t<r;t++)s[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:s,blockLen:i}=this;e[s]^=t,(128&t)!=0&&s===i-1&&this.keccak(),e[i-1]^=128,this.keccak()}writeInto(e){(0,i.Gg)(this,!1),(0,i.aI)(e),this.finish();let t=this.state,{blockLen:s}=this;for(let i=0,n=e.length;i<n;){this.posOut>=s&&this.keccak();let r=Math.min(s-this.posOut,n-i);e.set(t.subarray(this.posOut,this.posOut+r),i),this.posOut+=r,i+=r}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,i.Rx)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.J8)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:s,outputLen:i,rounds:n,enableXOF:r}=this;return e||(e=new $(t,s,i,r,n)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=n,e.suffix=s,e.outputLen=i,e.enableXOF=r,e.destroyed=this.destroyed,e}}let G=(0,u.hE)(()=>new $(136,1,32));var B=s(81077),U=s(98383),E=s(31749);function C(e,t){let s=G((0,B.v)(e,{strict:!1})?(0,U.O0)(e):e);return"bytes"===(t||"hex")?s:(0,E.NC)(s)}},46871:(e,t,s)=>{s.d(t,{k:()=>i});class i extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
exports.id=3883,exports.ids=[3883],exports.modules={95441:(e,a,t)=>{Promise.resolve().then(t.bind(t,69343))},27575:(e,a,t)=>{Promise.resolve().then(t.bind(t,9091))},69343:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>n});var s=t(58287),r=t(72069);function n({params:{chainName:e},children:a}){return(0,r.oK)(e)?a:(0,s.notFound)()}},9091:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>eC});var s=t(25166),r=t(58287),n=t(72069),c=t(38913),l=t(2561),i=t(41440),d=t(15503),o=t(97246),u=t(74085),f=t(65520);function p(){let{id:e}=(0,u.A)(),{data:a}=(0,o.O)({watch:!0,chainId:e,query:{refetchInterval:1e3}});return s.jsx("div",{className:"inline-block w-[50px]",children:a?(0,s.jsxs)("div",{className:"flex items-center justify-end gap-x-2 text-xs font-extrabold text-green-600",children:[s.jsx("span",{className:"inline-block h-[8px] w-[8px] animate-pulse rounded-full bg-success"}),s.jsx("span",{className:"opacity-70",children:a.toString()})]}):s.jsx(f.O,{className:"h-[10px]"})})}var m=t(49069),h=t(30966),x=t(48233),b=t(49936),y=t(36851),j=t(40911),g=t(32880),w=t(22998),v=t(79846),N=t(98046),k=t(73148),C=t(56356),z=t(72162),O=t(51745),U=t(19471);let A=["0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80","0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d","0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a","0x7c852118294e51e653712a81e05800f419141751be58f605c371e15141b007a6","0x47e179ec197488593b187f80a00eb0da91f1b9d0b13f8733639f19c30a34926a","0x8b3a350cf5c34c9194ca85829a2df0ec3153be0318b5e2d3348e872092edffba","0x92db14e403b83dfe3df233f83dfa3a0d7096f21ca9b0d6d6b8d88b2b4ec1564e","0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356","0xdbda1821b80551c9d65939329250298aa3472ba22feea921c0cf5d620ea67b97","0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6"].map(e=>(0,O.L)(e)),Z=e=>{let a=e!==y.O.id;return A.map((e,t)=>(function({id:e,name:a,accounts:t,disabled:s}){if(!t.length)throw Error("missing accounts");let r=!1;return(0,U.K)(()=>({id:e,name:a,type:"anvil",accounts:t,connect:async()=>(r=!0,{accounts:t.map(e=>e.address),chainId:y.O.id}),async disconnect(){r=!1},getAccounts:async()=>t.map(e=>e.address),getChainId:async()=>y.O.id,getProvider:async()=>(0,z.d)()({chain:y.O}),async isAuthorized(){return!s&&!!r&&!!(await this.getAccounts()).length},async onAccountsChanged(){},async onDisconnect(){},onChainChanged(){}}))})({id:`anvil-${t}`,name:`Anvil #${t+1}`,accounts:[e],disabled:a}))};function $(e){return"anvil"===e.type}var I=t(70454),E=t(49811),P=t(40105),S=t(92484),_=t(69822);let K=_.fC;_.ZA;let R=_.B4,D=C.forwardRef(({className:e,children:a,...t},r)=>(0,s.jsxs)(_.xz,{ref:r,className:(0,h.cn)("flex h-10 w-full items-center justify-between px-3 py-2 text-sm","rounded-md border border-input bg-background ring-offset-background","placeholder:text-muted-foreground","focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...t,children:[a,s.jsx(_.JO,{asChild:!0,children:s.jsx(E.Z,{className:"h-4 w-4 opacity-50"})})]}));D.displayName=_.xz.displayName;let T=C.forwardRef(({className:e,...a},t)=>s.jsx(_.u_,{ref:t,className:(0,h.cn)("flex cursor-default items-center justify-center py-1",e),...a,children:s.jsx(P.Z,{className:"h-4 w-4"})}));T.displayName=_.u_.displayName;let W=C.forwardRef(({className:e,...a},t)=>s.jsx(_.$G,{ref:t,className:(0,h.cn)("flex cursor-default items-center justify-center py-1",e),...a,children:s.jsx(E.Z,{className:"h-4 w-4"})}));W.displayName=_.$G.displayName;let B=C.forwardRef(({className:e,children:a,position:t="popper",...r},n)=>s.jsx(_.h_,{children:(0,s.jsxs)(_.VY,{ref:n,className:(0,h.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden","rounded-md border bg-popover text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0","data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2","popper"===t&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...r,children:[s.jsx(T,{}),s.jsx(_.l_,{className:(0,h.cn)("p-1","popper"===t&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),s.jsx(W,{})]})}));B.displayName=_.VY.displayName,C.forwardRef(({className:e,...a},t)=>s.jsx(_.__,{ref:t,className:(0,h.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...a})).displayName=_.__.displayName;let M=C.forwardRef(({className:e,children:a,...t},r)=>(0,s.jsxs)(_.ck,{ref:r,className:(0,h.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(_.wU,{children:s.jsx(S.Z,{className:"h-4 w-4"})})}),s.jsx(_.eT,{children:a})]}));M.displayName=_.ck.displayName,C.forwardRef(({className:e,...a},t)=>s.jsx(_.Z0,{ref:t,className:(0,h.cn)("-mx-1 my-1 h-px bg-muted",e),...a})).displayName=_.Z0.displayName;var q=t(93920);function F({connector:e}){let a=e.accounts[0]?.address,{data:t}=(0,w.K)({address:a,query:{refetchInterval:15e3,select:e=>e?.value,enabled:!!a}});return(0,s.jsxs)(M,{value:e.id,className:"font-mono",children:[e.name,void 0!==t&&` (${(0,h.az)(t)} ETH)`," ",a&&(0,s.jsxs)("span",{className:"opacity-70",children:["(",s.jsx(q.a,{hex:a}),")"]})]},a)}function Y(){let[e,a]=(0,C.useState)(!1),{connector:t}=(0,v.m)(),{connect:r}=(0,N.$)(),{openConnectModal:n}=(0,j.We)(),c=[...(0,k.Y)().filter($)];return(0,s.jsxs)(K,{open:e,onOpenChange:a,value:t?.id,onValueChange:e=>{let a=c.find(a=>a.id===e);a&&r({connector:a})},children:[s.jsx(I.z,{size:"sm",asChild:!0,children:(0,s.jsxs)(D,{children:[s.jsx(x.Z,{className:"mr-2 inline-block h-4 w-4"}),s.jsx(R,{placeholder:"Connect"})]})}),(0,s.jsxs)(B,{children:[c.map(e=>s.jsx(F,{connector:e},e.id)),(0,s.jsxs)(I.z,{size:"sm",className:"mt-2 w-full font-mono",onClick:()=>{a(!1),n?.()},children:[s.jsx(g.Z,{className:"mr-2 inline-block h-4 w-4"}),"Add wallet"]})]})]})}function G(){let{id:e}=(0,u.A)();return s.jsx(j.NL.Custom,{children:({account:a,chain:t,openAccountModal:r,openChainModal:n,openConnectModal:c,mounted:l})=>s.jsx("div",{className:(0,h.cn)({"pointer-events-none select-none opacity-0":!l}),children:l&&a&&t?t.unsupported?(0,s.jsxs)(I.z,{type:"button",size:"sm",onClick:n,children:[s.jsx(b.Z,{className:"mr-2 inline-block h-4 w-4"}),"Wrong network"]}):s.jsx("div",{className:"flex-wrap gap-2",children:(0,s.jsxs)(I.z,{type:"button",size:"sm",onClick:r,variant:"secondary",children:[s.jsx(x.Z,{className:"mr-2 inline-block h-4 w-4"}),a.displayName,s.jsx("span",{className:"ml-2 font-normal opacity-70",children:a.displayBalance?` (${a.displayBalance})`:""})]})}):e===y.O.id?s.jsx(Y,{}):(0,s.jsxs)(I.z,{type:"button",size:"sm",onClick:c,children:[s.jsx(x.Z,{className:"mr-2 inline-block h-4 w-4"})," Connect"]})})})}function V({href:e,children:a}){let t=(0,r.usePathname)(),n=(0,i.g)();return s.jsx(l.default,{href:n(e),className:"group px-3 text-sm font-semibold uppercase",children:s.jsx("span",{className:(0,h.cn)("flex border-b-4 border-transparent pb-3 pt-4 transition group-hover:border-orange-500/30",t===n(e)?"border-orange-500 group-hover:border-orange-400":null),children:a})})}function H(){let{data:e,isFetched:a}=(0,d.b)();return(0,s.jsxs)("div",{className:"pb-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"-mx-3 flex",children:[s.jsx(V,{href:"explore",children:"Explore"}),s.jsx(V,{href:"interact",children:"Interact"}),s.jsx(V,{href:"observe",children:"Observe"})]}),a&&!e?.isWorldDeployed&&(0,s.jsxs)("h4",{className:"font-mono text-sm font-bold uppercase opacity-70",children:["Waiting for world deploy ",s.jsx(c.Z,{className:"inline-block h-4 w-4 animate-spin"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-x-4",children:[s.jsx(p,{}),s.jsx(G,{})]})]}),s.jsx(m.Z,{})]})}var L=t(73895),J=t(40488),Q=t(67211),X=t(72785),ee=t(34143),ea=t(17167),et=t(38563),es=t(30950);t(89029);var er=t(8138),en=t(92273);let ec=new er.S;function el({children:e}){let a=(0,u.A)(),t=(0,C.useMemo)(()=>(0,L._)({chains:[a],connectors:[(0,ee.L)(),(0,ea.O)({dappMetadata:{name:"World Explorer"}}),(0,et.T)(),...Z(a.id)],transports:{[a.id]:a.rpcUrls.default.webSocket?(0,J.t)([(0,Q.j)(a.rpcUrls.default.webSocket[0]),(0,z.d)(a.rpcUrls.default.http[0])]):(0,z.d)(a.rpcUrls.default.http[0])},ssr:!0,pollingInterval:{[a.id]:31337===a.id?100:500}}),[a]);return s.jsx(X.F,{config:t,children:s.jsx(en.aH,{client:ec,children:s.jsx(j.pj,{theme:(0,es.$)(),children:e})})})}var ei=t(34182),ed=t(11772),eo=t(26821),eu=t(47754),ef=t(30614),ep=t(87975),em=t(87894),eh=t(18447),ex=t(3975),eb=t(26058),ey=t(18971),ej=t(52302),eg=t(59005),ew=t(26634);let ev={type:"event",name:"UserOperationEvent",inputs:[{type:"bytes32",name:"userOpHash",indexed:!0},{type:"address",name:"sender",indexed:!0},{type:"address",name:"paymaster",indexed:!0},{type:"uint256",name:"nonce",indexed:!1},{type:"bool",name:"success",indexed:!1},{type:"uint256",name:"actualGasCost",indexed:!1},{type:"uint256",name:"actualGasUsed",indexed:!1}]};function eN({abi:e,target:a,data:t,value:s}){let r,n,c;try{let a=(0,ei.p)({abi:e,data:t});if(r=a.functionName,n=a.args,"callFrom"===r){let[a,,t]=n,s=(0,ei.p)({abi:e,data:t});r=s.functionName,n=s.args,c=a}}catch(e){r=t.length>10?t.slice(0,10):"unknown"}return{to:a,from:c,functionName:r,args:n,value:s}}function ek(){let{id:e}=(0,u.A)(),{worldAddress:a}=(0,r.useParams)(),t=(0,em.Z)(),{data:s}=(0,d.b)(),n=s?.abi,{transactions:c,setTransaction:l,updateTransaction:i}=(0,ej.oR)(ew.h);(0,ej.oR)(eg.store,e=>e.writes);let o=(0,C.useCallback)(({hash:e,writeId:t,timestamp:s,receipt:r,transaction:c,userOperation:i})=>{if(!n)return;let{functionName:d,args:o}=(0,ei.p)({abi:(0,ed.V)(["function execute(address target, uint256 value, bytes calldata data)","function executeBatch((address target,uint256 value,bytes data)[])"]),data:i.callData}),u=(function({abi:e,functionName:a,decodedArgs:t}){if("execute"===a){let a=t[0],s=t[1];return[eN({abi:e,target:a,data:t[2],value:s})]}return"executeBatch"===a?t[0].map(({target:a,data:t,value:s})=>eN({abi:e,target:a,data:t,value:s})):[]})({abi:n,functionName:d,decodedArgs:o}).filter(({to:e})=>e&&(0,eo.K)(e)===(0,eo.K)(a));if(0===u.length)return;let f=(0,eu.h)({abi:[...n,ev],logs:r.logs}),p=f.find(({eventName:e})=>"UserOperationEvent"===e);l({hash:e,writeId:t??e,from:u[0]?.from??c.from,timestamp:s,transaction:c,calls:u,receipt:r,logs:f,value:c.value,status:p?.args.success?"success":"reverted"})},[n,l,a]),f=(0,C.useCallback)(async({writeId:e,timestamp:a,transaction:s})=>{if(!n)return;let r=s.hash,c=await (0,ex.e)(t,{hash:s.hash});for(let t of(0,ei.p)({abi:ef.i,data:s.input}).args[0])o({hash:r,writeId:e,timestamp:a,receipt:c,transaction:s,userOperation:t})},[n,o,t]),p=(0,C.useCallback)(async({writeId:e,hash:s,timestamp:r,transaction:c})=>{let d,o,u,f;if(!n||!c.to)return;try{let e=(0,ei.p)({abi:n,data:c.input});d=e.functionName,o=e.args}catch(e){u=e,d=c.input.length>10?c.input.slice(0,10):"unknown"}l({hash:s,writeId:e??s,from:c.from,timestamp:r,transaction:c,status:"pending",calls:[{to:c.to,functionName:d,args:o}],value:c.value});try{f=await (0,ex.e)(t,{hash:s})}catch{console.error(`Failed to fetch transaction receipt. Transaction hash: ${s}`)}if(f&&"reverted"===f.status&&d)try{await (0,eb.a)(t,{account:c.from,address:a,abi:n,value:c.value,blockNumber:f.blockNumber,functionName:d,args:o})}catch(e){u=e}let p=f?f.status:"unknown",m=(0,eu.h)({abi:n,logs:f?.logs||[]});i(s,{receipt:f,logs:m,status:p,error:u})},[n,t,a,l,i]),m=(0,C.useCallback)(async({hash:e,writeId:s,timestamp:r})=>{if(!n)return;let c=await (0,ey.f)(t,{hash:e});c.to&&(0,eo.K)(c.to)===(0,eo.K)(ep.V)?f({writeId:s,timestamp:r,transaction:c}):c.to&&(0,eo.K)(c.to)===(0,eo.K)(a)&&p({hash:e,writeId:s,timestamp:r,transaction:c})},[n,t,a,f,p]);return(0,eh.C)({onBlock(e){for(let a of e.transactions)c.find(e=>e.hash===a)||m({hash:a,timestamp:e.timestamp})},chainId:e}),null}function eC({params:{chainName:e},children:a}){return(0,n.oK)(e)?(0,s.jsxs)(el,{children:[(0,s.jsxs)("div",{className:"flex h-screen flex-col",children:[s.jsx(H,{}),a]}),s.jsx(ek,{})]}):(0,r.notFound)()}},26634:(e,a,t)=>{"use strict";t.d(a,{h:()=>s});let s=(0,t(35517).M)()(e=>({transactions:[],setTransaction:a=>e(e=>({transactions:[...e.transactions,a]})),updateTransaction:(a,t)=>e(e=>({transactions:e.transactions.map(e=>e.hash===a?{...e,...t}:e)}))}))},74085:(e,a,t)=>{"use strict";t.d(a,{A:()=>n});var s=t(58287),r=t(72069);function n(){let{chainName:e}=(0,s.useParams)();return(0,r.Yx)(e),r.df[e]}},15503:(e,a,t)=>{"use strict";t.d(a,{b:()=>c});var s=t(58287),r=t(81390),n=t(72069);function c(){let{chainName:e,worldAddress:a}=(0,s.useParams)();(0,n.Yx)(e);let{id:t}=n.df[e];return(0,r.a)({queryKey:["worldAbi",e,a],queryFn:async()=>{let e=await fetch(`/api/world-abi?${new URLSearchParams({chainId:t.toString(),worldAddress:a})}`);return await e.json()},select:e=>({abi:e.abi||[],isWorldDeployed:e.isWorldDeployed}),refetchInterval:15e3})}},72069:(e,a,t)=>{"use strict";t.d(a,{is:()=>m,M0:()=>f,oK:()=>h,df:()=>p,wG:()=>x,Yx:()=>b});var s=t(36851),r=t(9209),n=t(14501),c=t(19887),l=t(42191);r.t;var i={...n.g,iconUrls:["https://redstone.xyz/chain-icons/redstone.png"],indexerUrl:"https://indexer.mud.redstonechain.com"},d={...c.T,iconUrls:["https://redstone.xyz/chain-icons/garnet.png"],indexerUrl:"https://indexer.mud.garnetchain.com"},o={http:["https://rpc.rhodolitechain.com"],webSocket:["wss://rpc.rhodolitechain.com"]},u={...l.i,name:"Rhodolite Devnet",testnet:!0,id:17420,sourceId:17001,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:o,bundler:o,quarryPassIssuer:o,wiresaw:o},contracts:{...l.i.contracts,quarryPaymaster:{address:"0x61f22c3827d90c390e0e2aaf220971524ac0a68d",blockCreated:11262}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.rhodolitechain.com"},worldsExplorer:{name:"MUD Worlds Explorer",url:"https://explorer.mud.dev/rhodolite/worlds"}},iconUrls:["https://redstone.xyz/chain-icons/rhodolite.png"],indexerUrl:"https://indexer.mud.rhodolitechain.com"};let f=["world","store","metadata","puppet","erc20-puppet","erc721-puppet"],p={anvil:s.O,rhodolite:u,garnet:d,redstone:i},m=Object.fromEntries(Object.entries(p).map(([e,a])=>[a.id,e]));function h(e){return"string"==typeof e&&e in p}function x(e){if(!("number"==typeof e&&e in m))throw Error(`Invalid chain ID. Supported chains are: ${Object.keys(m).join(", ")}.`)}function b(e){if(!h(e))throw Error(`Invalid chain name. Supported chains are: ${Object.keys(p).join(", ")}.`)}},49069:(e,a,t)=>{"use strict";t.d(a,{Z:()=>l});var s=t(25166),r=t(56356),n=t(4381),c=t(30966);let l=r.forwardRef(({className:e,orientation:a="horizontal",decorative:t=!0,...r},l)=>s.jsx(n.f,{ref:l,decorative:t,orientation:a,className:(0,c.cn)("shrink-0 bg-border","horizontal"===a?"h-[1px] w-full":"h-full w-[1px]",e),...r}));l.displayName=n.f.displayName},65520:(e,a,t)=>{"use strict";t.d(a,{O:()=>n});var s=t(25166),r=t(30966);function n({className:e,...a}){return s.jsx("div",{className:(0,r.cn)("animate-pulse rounded-md bg-muted",e),...a})}},93920:(e,a,t)=>{"use strict";t.d(a,{a:()=>r});var s=t(25166);function r({hex:e}){return e.length<=10?s.jsx("span",{children:e}):(0,s.jsxs)("span",{children:[s.jsx("span",{className:"after:select-none after:content-['…']",children:e.slice(0,6)}),s.jsx("span",{className:"tracking-[-1ch] text-transparent",children:e.slice(6,-4)}),e.slice(-4)]})}},12218:(e,a,t)=>{"use strict";t.r(a),t.d(a,{$$typeof:()=>c,__esModule:()=>n,default:()=>l});var s=t(12849);let r=(0,s.createProxy)(String.raw`/home/runner/work/mud/mud/packages/explorer/src/app/(explorer)/[chainName]/layout.tsx`),{__esModule:n,$$typeof:c}=r;r.default;let l=(0,s.createProxy)(String.raw`/home/runner/work/mud/mud/packages/explorer/src/app/(explorer)/[chainName]/layout.tsx#default`)},37455:(e,a,t)=>{"use strict";t.r(a),t.d(a,{$$typeof:()=>c,__esModule:()=>n,default:()=>l});var s=t(12849);let r=(0,s.createProxy)(String.raw`/home/runner/work/mud/mud/packages/explorer/src/app/(explorer)/[chainName]/worlds/[worldAddress]/layout.tsx`),{__esModule:n,$$typeof:c}=r;r.default;let l=(0,s.createProxy)(String.raw`/home/runner/work/mud/mud/packages/explorer/src/app/(explorer)/[chainName]/worlds/[worldAddress]/layout.tsx#default`)}};
|
|
1
|
+
exports.id=3883,exports.ids=[3883],exports.modules={95441:(e,a,t)=>{Promise.resolve().then(t.bind(t,69343))},27575:(e,a,t)=>{Promise.resolve().then(t.bind(t,9091))},69343:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>n});var s=t(58287),r=t(72069);function n({params:{chainName:e},children:a}){return(0,r.oK)(e)?a:(0,s.notFound)()}},9091:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>ez});var s=t(25166),r=t(58287),n=t(72069),c=t(38913),l=t(2561),i=t(41440),d=t(15503),o=t(97246),u=t(74085),f=t(65520);function p(){let{id:e}=(0,u.A)(),{data:a}=(0,o.O)({watch:!0,chainId:e,query:{refetchInterval:1e3}});return s.jsx("div",{className:"inline-block w-[50px]",children:a?(0,s.jsxs)("div",{className:"flex items-center justify-end gap-x-2 text-xs font-extrabold text-green-600",children:[s.jsx("span",{className:"inline-block h-[8px] w-[8px] animate-pulse rounded-full bg-success"}),s.jsx("span",{className:"opacity-70",children:a.toString()})]}):s.jsx(f.O,{className:"h-[10px]"})})}var m=t(49069),h=t(30966),x=t(48233),b=t(49936),y=t(36851),j=t(40911),g=t(32880),w=t(22998),v=t(79846),N=t(98046),k=t(73148),C=t(56356),z=t(72162),O=t(51745),U=t(19471);let A=["0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80","0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d","0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a","0x7c852118294e51e653712a81e05800f419141751be58f605c371e15141b007a6","0x47e179ec197488593b187f80a00eb0da91f1b9d0b13f8733639f19c30a34926a","0x8b3a350cf5c34c9194ca85829a2df0ec3153be0318b5e2d3348e872092edffba","0x92db14e403b83dfe3df233f83dfa3a0d7096f21ca9b0d6d6b8d88b2b4ec1564e","0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356","0xdbda1821b80551c9d65939329250298aa3472ba22feea921c0cf5d620ea67b97","0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6"].map(e=>(0,O.L)(e)),Z=e=>{let a=e!==y.O.id;return A.map((e,t)=>(function({id:e,name:a,accounts:t,disabled:s}){if(!t.length)throw Error("missing accounts");let r=!1;return(0,U.K)(()=>({id:e,name:a,type:"anvil",accounts:t,connect:async()=>(r=!0,{accounts:t.map(e=>e.address),chainId:y.O.id}),async disconnect(){r=!1},getAccounts:async()=>t.map(e=>e.address),getChainId:async()=>y.O.id,getProvider:async()=>(0,z.d)()({chain:y.O}),async isAuthorized(){return!s&&!!r&&!!(await this.getAccounts()).length},async onAccountsChanged(){},async onDisconnect(){},onChainChanged(){}}))})({id:`anvil-${t}`,name:`Anvil #${t+1}`,accounts:[e],disabled:a}))};function $(e){return"anvil"===e.type}var I=t(70454),E=t(49811),P=t(40105),S=t(92484),_=t(69822);let K=_.fC;_.ZA;let R=_.B4,D=C.forwardRef(({className:e,children:a,...t},r)=>(0,s.jsxs)(_.xz,{ref:r,className:(0,h.cn)("flex h-10 w-full items-center justify-between px-3 py-2 text-sm","rounded-md border border-input bg-background ring-offset-background","placeholder:text-muted-foreground","focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...t,children:[a,s.jsx(_.JO,{asChild:!0,children:s.jsx(E.Z,{className:"h-4 w-4 opacity-50"})})]}));D.displayName=_.xz.displayName;let T=C.forwardRef(({className:e,...a},t)=>s.jsx(_.u_,{ref:t,className:(0,h.cn)("flex cursor-default items-center justify-center py-1",e),...a,children:s.jsx(P.Z,{className:"h-4 w-4"})}));T.displayName=_.u_.displayName;let W=C.forwardRef(({className:e,...a},t)=>s.jsx(_.$G,{ref:t,className:(0,h.cn)("flex cursor-default items-center justify-center py-1",e),...a,children:s.jsx(E.Z,{className:"h-4 w-4"})}));W.displayName=_.$G.displayName;let B=C.forwardRef(({className:e,children:a,position:t="popper",...r},n)=>s.jsx(_.h_,{children:(0,s.jsxs)(_.VY,{ref:n,className:(0,h.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden","rounded-md border bg-popover text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0","data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2","popper"===t&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...r,children:[s.jsx(T,{}),s.jsx(_.l_,{className:(0,h.cn)("p-1","popper"===t&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),s.jsx(W,{})]})}));B.displayName=_.VY.displayName,C.forwardRef(({className:e,...a},t)=>s.jsx(_.__,{ref:t,className:(0,h.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...a})).displayName=_.__.displayName;let M=C.forwardRef(({className:e,children:a,...t},r)=>(0,s.jsxs)(_.ck,{ref:r,className:(0,h.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(_.wU,{children:s.jsx(S.Z,{className:"h-4 w-4"})})}),s.jsx(_.eT,{children:a})]}));M.displayName=_.ck.displayName,C.forwardRef(({className:e,...a},t)=>s.jsx(_.Z0,{ref:t,className:(0,h.cn)("-mx-1 my-1 h-px bg-muted",e),...a})).displayName=_.Z0.displayName;var q=t(93920);function F({connector:e}){let a=e.accounts[0]?.address,{data:t}=(0,w.K)({address:a,query:{refetchInterval:15e3,select:e=>e?.value,enabled:!!a}});return(0,s.jsxs)(M,{value:e.id,className:"font-mono",children:[e.name,void 0!==t&&` (${(0,h.az)(t)} ETH)`," ",a&&(0,s.jsxs)("span",{className:"opacity-70",children:["(",s.jsx(q.a,{hex:a}),")"]})]},a)}function Y(){let[e,a]=(0,C.useState)(!1),{connector:t}=(0,v.m)(),{connect:r}=(0,N.$)(),{openConnectModal:n}=(0,j.We)(),c=[...(0,k.Y)().filter($)];return(0,s.jsxs)(K,{open:e,onOpenChange:a,value:t?.id,onValueChange:e=>{let a=c.find(a=>a.id===e);a&&r({connector:a})},children:[s.jsx(I.z,{size:"sm",asChild:!0,children:(0,s.jsxs)(D,{children:[s.jsx(x.Z,{className:"mr-2 inline-block h-4 w-4"}),s.jsx(R,{placeholder:"Connect"})]})}),(0,s.jsxs)(B,{children:[c.map(e=>s.jsx(F,{connector:e},e.id)),(0,s.jsxs)(I.z,{size:"sm",className:"mt-2 w-full font-mono",onClick:()=>{a(!1),n?.()},children:[s.jsx(g.Z,{className:"mr-2 inline-block h-4 w-4"}),"Add wallet"]})]})]})}function G(){let{id:e}=(0,u.A)();return s.jsx(j.NL.Custom,{children:({account:a,chain:t,openAccountModal:r,openChainModal:n,openConnectModal:c,mounted:l})=>s.jsx("div",{className:(0,h.cn)({"pointer-events-none select-none opacity-0":!l}),children:l&&a&&t?t.unsupported?(0,s.jsxs)(I.z,{type:"button",size:"sm",onClick:n,children:[s.jsx(b.Z,{className:"mr-2 inline-block h-4 w-4"}),"Wrong network"]}):s.jsx("div",{className:"flex-wrap gap-2",children:(0,s.jsxs)(I.z,{type:"button",size:"sm",onClick:r,variant:"secondary",children:[s.jsx(x.Z,{className:"mr-2 inline-block h-4 w-4"}),a.displayName,s.jsx("span",{className:"ml-2 font-normal opacity-70",children:a.displayBalance?` (${a.displayBalance})`:""})]})}):e===y.O.id?s.jsx(Y,{}):(0,s.jsxs)(I.z,{type:"button",size:"sm",onClick:c,children:[s.jsx(x.Z,{className:"mr-2 inline-block h-4 w-4"})," Connect"]})})})}function H({href:e,children:a}){let t=(0,r.usePathname)(),n=(0,i.g)();return s.jsx(l.default,{href:n(e),className:"group px-3 text-sm font-semibold uppercase",children:s.jsx("span",{className:(0,h.cn)("flex border-b-4 border-transparent pb-3 pt-4 transition group-hover:border-orange-500/30",t===n(e)?"border-orange-500 group-hover:border-orange-400":null),children:a})})}function V(){let{data:e,isFetched:a}=(0,d.b)();return(0,s.jsxs)("div",{className:"pb-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"-mx-3 flex",children:[s.jsx(H,{href:"explore",children:"Explore"}),s.jsx(H,{href:"interact",children:"Interact"}),s.jsx(H,{href:"observe",children:"Observe"})]}),a&&!e?.isWorldDeployed&&(0,s.jsxs)("h4",{className:"font-mono text-sm font-bold uppercase opacity-70",children:["Waiting for world deploy ",s.jsx(c.Z,{className:"inline-block h-4 w-4 animate-spin"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-x-4",children:[s.jsx(p,{}),s.jsx(G,{})]})]}),s.jsx(m.Z,{})]})}var L=t(73895),J=t(40488),Q=t(67211),X=t(72785),ee=t(34143),ea=t(17167),et=t(38563),es=t(30950);t(89029);var er=t(8138),en=t(92273);let ec=new er.S;function el({children:e}){let a=(0,u.A)(),t=(0,C.useMemo)(()=>(0,L._)({chains:[a],connectors:[(0,ee.L)(),(0,ea.O)({dappMetadata:{name:"World Explorer"}}),(0,et.T)(),...Z(a.id)],transports:{[a.id]:a.rpcUrls.default.webSocket?(0,J.t)([(0,Q.j)(a.rpcUrls.default.webSocket[0]),(0,z.d)(a.rpcUrls.default.http[0])]):(0,z.d)(a.rpcUrls.default.http[0])},ssr:!0,pollingInterval:{[a.id]:31337===a.id?100:500}}),[a]);return s.jsx(X.F,{config:t,children:s.jsx(en.aH,{client:ec,children:s.jsx(j.pj,{theme:(0,es.$)(),children:e})})})}var ei=t(34182),ed=t(11772),eo=t(26821),eu=t(47754),ef=t(30614),ep=t(87975),em=t(87894),eh=t(18447),ex=t(3975),eb=t(26058),ey=t(18971),ej=t(37620),eg=t(52302),ew=t(59005),ev=t(26634);let eN={type:"event",name:"UserOperationEvent",inputs:[{type:"bytes32",name:"userOpHash",indexed:!0},{type:"address",name:"sender",indexed:!0},{type:"address",name:"paymaster",indexed:!0},{type:"uint256",name:"nonce",indexed:!1},{type:"bool",name:"success",indexed:!1},{type:"uint256",name:"actualGasCost",indexed:!1},{type:"uint256",name:"actualGasUsed",indexed:!1}]};function ek({abi:e,target:a,data:t,value:s}){let r,n,c;try{let a=(0,ei.p)({abi:e,data:t});if(r=a.functionName,n=a.args,"callFrom"===r){let[a,,t]=n,s=(0,ei.p)({abi:e,data:t});r=s.functionName,n=s.args,c=a}}catch(e){r=t.length>10?t.slice(0,10):"unknown"}return{to:a,from:c,functionName:r,args:n,value:s}}function eC(){let{id:e}=(0,u.A)(),{worldAddress:a}=(0,r.useParams)(),t=(0,em.Z)(),{data:s}=(0,d.b)(),n=s?.abi,{transactions:c,setTransaction:l,updateTransaction:i}=(0,eg.oR)(ev.h);(0,eg.oR)(ew.store,e=>e.writes);let o=(0,C.useCallback)(({hash:e,writeId:t,timestamp:s,receipt:r,transaction:c,userOperation:i})=>{if(!n)return;let{functionName:d,args:o}=(0,ei.p)({abi:(0,ed.V)(["function execute(address target, uint256 value, bytes calldata data)","function executeBatch((address target,uint256 value,bytes data)[])"]),data:i.callData}),u=(function({abi:e,functionName:a,decodedArgs:t}){if("execute"===a){let a=t[0],s=t[1];return[ek({abi:e,target:a,data:t[2],value:s})]}return"executeBatch"===a?t[0].map(({target:a,data:t,value:s})=>ek({abi:e,target:a,data:t,value:s})):[]})({abi:n,functionName:d,decodedArgs:o}).filter(({to:e})=>e&&(0,eo.K)(e)===(0,eo.K)(a));if(0===u.length)return;let f=(0,eu.h)({abi:[...n,eN],logs:r.logs}),p=f.find(({eventName:e})=>"UserOperationEvent"===e);l({hash:e,writeId:t??e,from:u[0]?.from??c.from,timestamp:s,transaction:c,calls:u,receipt:r,logs:f,value:c.value,status:p?.args.success?"success":"reverted"})},[n,l,a]),f=(0,C.useCallback)(async({writeId:e,timestamp:a,transaction:s})=>{if(!n)return;let r=s.hash,c=await (0,ex.e)(t,{hash:s.hash});for(let t of(0,ei.p)({abi:ef.i,data:s.input}).args[0])o({hash:r,writeId:e,timestamp:a,receipt:c,transaction:s,userOperation:t})},[n,o,t]),p=(0,C.useCallback)(async({writeId:e,hash:s,timestamp:r,transaction:c})=>{let d,o,u,f;if(!n||!c.to)return;try{let e=(0,ei.p)({abi:n,data:c.input});d=e.functionName,o=e.args}catch(e){u=e,d=c.input.length>10?c.input.slice(0,10):"unknown"}l({hash:s,writeId:e??s,from:c.from,timestamp:r,transaction:c,status:"pending",calls:[{to:c.to,functionName:d,args:o}],value:c.value});try{f=await (0,ex.e)(t,{hash:s})}catch{console.error(`Failed to fetch transaction receipt. Transaction hash: ${s}`)}if(f&&"reverted"===f.status&&d)try{await (0,eb.a)(t,{account:c.from,address:a,abi:n,value:c.value,blockNumber:f.blockNumber,functionName:d,args:o})}catch(e){u=e}let p=f?f.status:"unknown",m=(0,eu.h)({abi:n,logs:f?.logs||[]});i(s,{receipt:f,logs:m,status:p,error:u})},[n,t,a,l,i]),m=(0,C.useCallback)(async({hash:e,writeId:s,timestamp:r})=>{if(!n)return;let c=await (0,ey.f)(t,{hash:e});c.to&&(0,eo.K)(c.to)===(0,eo.K)(ep.V)?f({writeId:s,timestamp:r,transaction:c}):c.to&&(0,eo.K)(c.to)===(0,eo.K)(a)&&p({hash:e,writeId:s,timestamp:r,transaction:c})},[n,t,a,f,p]);return(0,eh.C)({chainId:e,async onBlock(a){for(let s of a.transactions??(await (0,ej.Q)(t,{chainId:e,blockHash:a.hash})).transactions)c.find(e=>e.hash===s)||m({hash:s,timestamp:a.timestamp})}}),null}function ez({params:{chainName:e},children:a}){return(0,n.oK)(e)?(0,s.jsxs)(el,{children:[(0,s.jsxs)("div",{className:"flex h-screen flex-col",children:[s.jsx(V,{}),a]}),s.jsx(eC,{})]}):(0,r.notFound)()}},26634:(e,a,t)=>{"use strict";t.d(a,{h:()=>s});let s=(0,t(35517).M)()(e=>({transactions:[],setTransaction:a=>e(e=>({transactions:[...e.transactions,a]})),updateTransaction:(a,t)=>e(e=>({transactions:e.transactions.map(e=>e.hash===a?{...e,...t}:e)}))}))},74085:(e,a,t)=>{"use strict";t.d(a,{A:()=>n});var s=t(58287),r=t(72069);function n(){let{chainName:e}=(0,s.useParams)();return(0,r.Yx)(e),r.df[e]}},15503:(e,a,t)=>{"use strict";t.d(a,{b:()=>c});var s=t(58287),r=t(81390),n=t(72069);function c(){let{chainName:e,worldAddress:a}=(0,s.useParams)();(0,n.Yx)(e);let{id:t}=n.df[e];return(0,r.a)({queryKey:["worldAbi",e,a],queryFn:async()=>{let e=await fetch(`/api/world-abi?${new URLSearchParams({chainId:t.toString(),worldAddress:a})}`);return await e.json()},select:e=>({abi:e.abi||[],isWorldDeployed:e.isWorldDeployed}),refetchInterval:5e3})}},72069:(e,a,t)=>{"use strict";t.d(a,{is:()=>m,M0:()=>f,oK:()=>h,df:()=>p,wG:()=>x,Yx:()=>b});var s=t(36851),r=t(9209),n=t(14501),c=t(19887),l=t(42191);r.t;var i={...n.g,iconUrls:["https://redstone.xyz/chain-icons/redstone.png"],indexerUrl:"https://indexer.mud.redstonechain.com"},d={...c.T,iconUrls:["https://redstone.xyz/chain-icons/garnet.png"],indexerUrl:"https://indexer.mud.garnetchain.com"},o={http:["https://rpc.rhodolitechain.com"],webSocket:["wss://rpc.rhodolitechain.com"]},u={...l.i,name:"Rhodolite Devnet",testnet:!0,id:17420,sourceId:17001,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:o,bundler:o,quarryPassIssuer:o,wiresaw:o},contracts:{...l.i.contracts,quarryPaymaster:{address:"0x61f22c3827d90c390e0e2aaf220971524ac0a68d",blockCreated:11262}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.rhodolitechain.com"},worldsExplorer:{name:"MUD Worlds Explorer",url:"https://explorer.mud.dev/rhodolite/worlds"}},iconUrls:["https://redstone.xyz/chain-icons/rhodolite.png"],indexerUrl:"https://indexer.mud.rhodolitechain.com"};let f=["world","store","metadata","puppet","erc20-puppet","erc721-puppet"],p={anvil:s.O,rhodolite:u,garnet:d,redstone:i},m=Object.fromEntries(Object.entries(p).map(([e,a])=>[a.id,e]));function h(e){return"string"==typeof e&&e in p}function x(e){if(!("number"==typeof e&&e in m))throw Error(`Invalid chain ID. Supported chains are: ${Object.keys(m).join(", ")}.`)}function b(e){if(!h(e))throw Error(`Invalid chain name. Supported chains are: ${Object.keys(p).join(", ")}.`)}},49069:(e,a,t)=>{"use strict";t.d(a,{Z:()=>l});var s=t(25166),r=t(56356),n=t(4381),c=t(30966);let l=r.forwardRef(({className:e,orientation:a="horizontal",decorative:t=!0,...r},l)=>s.jsx(n.f,{ref:l,decorative:t,orientation:a,className:(0,c.cn)("shrink-0 bg-border","horizontal"===a?"h-[1px] w-full":"h-full w-[1px]",e),...r}));l.displayName=n.f.displayName},65520:(e,a,t)=>{"use strict";t.d(a,{O:()=>n});var s=t(25166),r=t(30966);function n({className:e,...a}){return s.jsx("div",{className:(0,r.cn)("animate-pulse rounded-md bg-muted",e),...a})}},93920:(e,a,t)=>{"use strict";t.d(a,{a:()=>r});var s=t(25166);function r({hex:e}){return e.length<=10?s.jsx("span",{children:e}):(0,s.jsxs)("span",{children:[s.jsx("span",{className:"after:select-none after:content-['…']",children:e.slice(0,6)}),s.jsx("span",{className:"tracking-[-1ch] text-transparent",children:e.slice(6,-4)}),e.slice(-4)]})}},12218:(e,a,t)=>{"use strict";t.r(a),t.d(a,{$$typeof:()=>c,__esModule:()=>n,default:()=>l});var s=t(12849);let r=(0,s.createProxy)(String.raw`/home/runner/work/mud/mud/packages/explorer/src/app/(explorer)/[chainName]/layout.tsx`),{__esModule:n,$$typeof:c}=r;r.default;let l=(0,s.createProxy)(String.raw`/home/runner/work/mud/mud/packages/explorer/src/app/(explorer)/[chainName]/layout.tsx#default`)},37455:(e,a,t)=>{"use strict";t.r(a),t.d(a,{$$typeof:()=>c,__esModule:()=>n,default:()=>l});var s=t(12849);let r=(0,s.createProxy)(String.raw`/home/runner/work/mud/mud/packages/explorer/src/app/(explorer)/[chainName]/worlds/[worldAddress]/layout.tsx`),{__esModule:n,$$typeof:c}=r;r.default;let l=(0,s.createProxy)(String.raw`/home/runner/work/mud/mud/packages/explorer/src/app/(explorer)/[chainName]/worlds/[worldAddress]/layout.tsx#default`)}};
|