@latticexyz/explorer 2.2.23-a7ce36bd855c91c1a0e7a515c6ed7422ef59973d → 2.2.23-c9a7e15b89f6e4486abcb46c3a75c213741816a4

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.
Files changed (32) hide show
  1. package/.next/standalone/packages/explorer/.next/BUILD_ID +1 -1
  2. package/.next/standalone/packages/explorer/.next/app-build-manifest.json +61 -61
  3. package/.next/standalone/packages/explorer/.next/app-path-routes-manifest.json +1 -1
  4. package/.next/standalone/packages/explorer/.next/build-manifest.json +5 -5
  5. package/.next/standalone/packages/explorer/.next/prerender-manifest.json +1 -1
  6. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/page_client-reference-manifest.js +1 -1
  7. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/decode/page_client-reference-manifest.js +1 -1
  8. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page_client-reference-manifest.js +1 -1
  9. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page.js +3 -3
  10. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page_client-reference-manifest.js +1 -1
  11. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page_client-reference-manifest.js +1 -1
  12. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page_client-reference-manifest.js +1 -1
  13. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/page_client-reference-manifest.js +1 -1
  14. package/.next/standalone/packages/explorer/.next/server/app/(explorer)/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/packages/explorer/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  16. package/.next/standalone/packages/explorer/.next/server/app/_not-found.html +1 -1
  17. package/.next/standalone/packages/explorer/.next/server/app/_not-found.rsc +1 -1
  18. package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay/page_client-reference-manifest.js +1 -1
  19. package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.html +1 -1
  20. package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.rsc +1 -1
  21. package/.next/standalone/packages/explorer/.next/server/app-paths-manifest.json +4 -4
  22. package/.next/standalone/packages/explorer/.next/server/middleware-build-manifest.js +1 -1
  23. package/.next/standalone/packages/explorer/.next/server/pages/404.html +1 -1
  24. package/.next/standalone/packages/explorer/.next/server/pages/500.html +1 -1
  25. package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.js +1 -1
  26. package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.json +1 -1
  27. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page-a8adc0b5969d063d.js +1 -0
  28. package/.next/standalone/packages/explorer/.next/static/chunks/{webpack-b9596634489483b2.js → webpack-0a1a8d946004675b.js} +1 -1
  29. package/package.json +10 -10
  30. package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page-1e744e17feea5bb2.js +0 -1
  31. /package/.next/standalone/packages/explorer/.next/static/{-47yJj-EkTwByh5X6QQGm → sDzEzZ8DMUJe4bzTGd18q}/_buildManifest.js +0 -0
  32. /package/.next/standalone/packages/explorer/.next/static/{-47yJj-EkTwByh5X6QQGm → sDzEzZ8DMUJe4bzTGd18q}/_ssgManifest.js +0 -0
@@ -1,6 +1,6 @@
1
1
  2:I[62729,["824","static/chunks/824-653b7a51ffea0215.js","5225","static/chunks/app/internal/observer-relay/page-ca6de17e1b7b96ef.js"],"Relay"]
2
2
  3:I[82003,[],""]
3
3
  4:I[75373,[],""]
4
- 0:["-47yJj-EkTwByh5X6QQGm",[[["",{"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"]]]]]
4
+ 0:["sDzEzZ8DMUJe4bzTGd18q",[[["",{"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
@@ -4,13 +4,13 @@
4
4
  "/(explorer)/icon-uo65sm.svg/route": "app/(explorer)/icon-uo65sm.svg/route.js",
5
5
  "/(explorer)/api/system-abis/route": "app/(explorer)/api/system-abis/route.js",
6
6
  "/(explorer)/api/verified-worlds/route": "app/(explorer)/api/verified-worlds/route.js",
7
- "/(explorer)/api/world-abi/route": "app/(explorer)/api/world-abi/route.js",
8
7
  "/(explorer)/page": "app/(explorer)/page.js",
8
+ "/(explorer)/api/world-abi/route": "app/(explorer)/api/world-abi/route.js",
9
9
  "/(explorer)/[chainName]/page": "app/(explorer)/[chainName]/page.js",
10
10
  "/(explorer)/[chainName]/worlds/page": "app/(explorer)/[chainName]/worlds/page.js",
11
- "/(explorer)/[chainName]/worlds/[worldAddress]/page": "app/(explorer)/[chainName]/worlds/[worldAddress]/page.js",
12
- "/(explorer)/[chainName]/worlds/[worldAddress]/decode/page": "app/(explorer)/[chainName]/worlds/[worldAddress]/decode/page.js",
13
11
  "/(explorer)/[chainName]/worlds/[worldAddress]/explore/page": "app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page.js",
14
12
  "/(explorer)/[chainName]/worlds/[worldAddress]/interact/page": "app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page.js",
15
- "/(explorer)/[chainName]/worlds/[worldAddress]/observe/page": "app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page.js"
13
+ "/(explorer)/[chainName]/worlds/[worldAddress]/observe/page": "app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page.js",
14
+ "/(explorer)/[chainName]/worlds/[worldAddress]/decode/page": "app/(explorer)/[chainName]/worlds/[worldAddress]/decode/page.js",
15
+ "/(explorer)/[chainName]/worlds/[worldAddress]/page": "app/(explorer)/[chainName]/worlds/[worldAddress]/page.js"
16
16
  }
@@ -1 +1 @@
1
- self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-78c92fac7aa8fdd8.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:["static/-47yJj-EkTwByh5X6QQGm/_buildManifest.js","static/-47yJj-EkTwByh5X6QQGm/_ssgManifest.js"],rootMainFiles:["static/chunks/webpack-b9596634489483b2.js","static/chunks/99187bc8-c01639095c820d4b.js","static/chunks/3164-5df01822ba8d356b.js","static/chunks/main-app-c1da57de54a99e0c.js"],pages:{"/_app":["static/chunks/webpack-b9596634489483b2.js","static/chunks/framework-af9b1d45774ad36d.js","static/chunks/main-fdd95518336bb93b.js","static/chunks/pages/_app-ae8019678adc41e5.js"],"/_error":["static/chunks/webpack-b9596634489483b2.js","static/chunks/framework-af9b1d45774ad36d.js","static/chunks/main-fdd95518336bb93b.js","static/chunks/pages/_error-523ecdbdba5b497f.js"]},ampFirstPages:[]};
1
+ self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-78c92fac7aa8fdd8.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:["static/sDzEzZ8DMUJe4bzTGd18q/_buildManifest.js","static/sDzEzZ8DMUJe4bzTGd18q/_ssgManifest.js"],rootMainFiles:["static/chunks/webpack-0a1a8d946004675b.js","static/chunks/99187bc8-c01639095c820d4b.js","static/chunks/3164-5df01822ba8d356b.js","static/chunks/main-app-c1da57de54a99e0c.js"],pages:{"/_app":["static/chunks/webpack-0a1a8d946004675b.js","static/chunks/framework-af9b1d45774ad36d.js","static/chunks/main-fdd95518336bb93b.js","static/chunks/pages/_app-ae8019678adc41e5.js"],"/_error":["static/chunks/webpack-0a1a8d946004675b.js","static/chunks/framework-af9b1d45774ad36d.js","static/chunks/main-fdd95518336bb93b.js","static/chunks/pages/_error-523ecdbdba5b497f.js"]},ampFirstPages:[]};
@@ -1 +1 @@
1
- <!DOCTYPE html><html><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-b9596634489483b2.js"/><script src="/_next/static/chunks/99187bc8-c01639095c820d4b.js" async=""></script><script src="/_next/static/chunks/3164-5df01822ba8d356b.js" async=""></script><script src="/_next/static/chunks/main-app-c1da57de54a99e0c.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><meta name="next-size-adjust"/><script src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js" noModule=""></script></head><body><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>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)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/_next/static/chunks/webpack-b9596634489483b2.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[90003,[],\"\"]\n3:I[82003,[],\"\"]\n4:I[75373,[],\"\"]\na:I[95212,[],\"\"]\n5:{\"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\"}\n6:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n7:{\"display\":\"inline-block\"}\n8:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nb:[]\n"])</script><script>self.__next_f.push([1,"0:[null,[\"$\",\"$L1\",null,{\"buildId\":\"-47yJj-EkTwByh5X6QQGm\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/_not-found\",\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L2\",[[\"$\",\"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.\"}]}]]}]}]]],null],null]},[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[[\"$\",\"html\",null,{\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$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\":\"$5\",\"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\":\"$6\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$7\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$8\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}]}]}],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$L9\"],\"globalErrorComponent\":\"$a\",\"missingSlots\":\"$Wb\"}]]\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"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
+ <!DOCTYPE html><html><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-0a1a8d946004675b.js"/><script src="/_next/static/chunks/99187bc8-c01639095c820d4b.js" async=""></script><script src="/_next/static/chunks/3164-5df01822ba8d356b.js" async=""></script><script src="/_next/static/chunks/main-app-c1da57de54a99e0c.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><meta name="next-size-adjust"/><script src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js" noModule=""></script></head><body><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>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)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/_next/static/chunks/webpack-0a1a8d946004675b.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[90003,[],\"\"]\n3:I[82003,[],\"\"]\n4:I[75373,[],\"\"]\na:I[95212,[],\"\"]\n5:{\"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\"}\n6:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n7:{\"display\":\"inline-block\"}\n8:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nb:[]\n"])</script><script>self.__next_f.push([1,"0:[null,[\"$\",\"$L1\",null,{\"buildId\":\"sDzEzZ8DMUJe4bzTGd18q\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/_not-found\",\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L2\",[[\"$\",\"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.\"}]}]]}]}]]],null],null]},[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[[\"$\",\"html\",null,{\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$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\":\"$5\",\"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\":\"$6\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$7\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$8\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}]}]}],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$L9\"],\"globalErrorComponent\":\"$a\",\"missingSlots\":\"$Wb\"}]]\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"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 +1 @@
1
- <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>500: Internal Server Error</title><meta name="next-head-count" content="3"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js"></script><script src="/_next/static/chunks/webpack-b9596634489483b2.js" defer=""></script><script src="/_next/static/chunks/framework-af9b1d45774ad36d.js" defer=""></script><script src="/_next/static/chunks/main-fdd95518336bb93b.js" defer=""></script><script src="/_next/static/chunks/pages/_app-ae8019678adc41e5.js" defer=""></script><script src="/_next/static/chunks/pages/_error-523ecdbdba5b497f.js" defer=""></script><script src="/_next/static/-47yJj-EkTwByh5X6QQGm/_buildManifest.js" defer=""></script><script src="/_next/static/-47yJj-EkTwByh5X6QQGm/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>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)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"-47yJj-EkTwByh5X6QQGm","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>500: Internal Server Error</title><meta name="next-head-count" content="3"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js"></script><script src="/_next/static/chunks/webpack-0a1a8d946004675b.js" defer=""></script><script src="/_next/static/chunks/framework-af9b1d45774ad36d.js" defer=""></script><script src="/_next/static/chunks/main-fdd95518336bb93b.js" defer=""></script><script src="/_next/static/chunks/pages/_app-ae8019678adc41e5.js" defer=""></script><script src="/_next/static/chunks/pages/_error-523ecdbdba5b497f.js" defer=""></script><script src="/_next/static/sDzEzZ8DMUJe4bzTGd18q/_buildManifest.js" defer=""></script><script src="/_next/static/sDzEzZ8DMUJe4bzTGd18q/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>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)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"sDzEzZ8DMUJe4bzTGd18q","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
@@ -1 +1 @@
1
- self.__RSC_SERVER_MANIFEST="{\"node\":{},\"edge\":{},\"encryptionKey\":\"/oew4FHOEBEXQi1qo9gLJGhtJMulcNeG6CrcIOFftDE=\"}"
1
+ self.__RSC_SERVER_MANIFEST="{\"node\":{},\"edge\":{},\"encryptionKey\":\"p5DXyNhaU3lfDJwrXBfB1x801WtdGznqC5tPuA/qtw0=\"}"
@@ -1 +1 @@
1
- {"node":{},"edge":{},"encryptionKey":"/oew4FHOEBEXQi1qo9gLJGhtJMulcNeG6CrcIOFftDE="}
1
+ {"node":{},"edge":{},"encryptionKey":"p5DXyNhaU3lfDJwrXBfB1x801WtdGznqC5tPuA/qtw0="}
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3027],{3099:function(e,s,t){Promise.resolve().then(t.bind(t,95005))},95005:function(e,s,t){"use strict";t.d(s,{InteractForm:function(){return eg}});var n,a,r=t(65140),i=t(67590),l=t(11650),c=t(6466),o=t(71360),d=t(48071),u=t(20566),m=t(93607),h=t(64920),f=t(77040);function p(e,s){return"".concat(s||"core","-").concat((0,f.r)(e))}var x=t(36120),j=t(30637),y=t(64683),v=t(92660);let g=v.fC,b=v.wy,w=v.Fw;var N=t(11375),I=t(60649),C=t(18304),S=t(98399),A=t(50546),k=t(83802),L=t(21015),E=t(86498),O=t(91524),z=t(51722),R=t(32291),F=t(82941),P=t(57429),Z=t(66684),_=t(64477),M=t(34246),V=t(19305),W=t(37153);t(49373),t(64163),t(20725),t(43609),t(26275);var q=t(80335),U=t(27406),D=t(47671),J=t(65880);function T(e){let{elementId:s,children:t,...n}=e,[a,l]=function(){let e=(0,c.useMemo)(()=>()=>window.location.hash.replace(/^#!?/,""),[]),s=(0,i.useRouter)(),t=(0,i.useParams)(),[n,a]=(0,c.useState)(e());(0,c.useEffect)(()=>{a(e())},[t]);let r=()=>{a(e())};return(0,c.useEffect)(()=>(window.addEventListener("hashchange",r),()=>{window.removeEventListener("hashchange",r)}),[]),[n,e=>{var t;let n=window.location.href;n=J.Z.stringifyUrl({url:null!==(t=n.split("#")[0])&&void 0!==t?t:"",fragmentIdentifier:e}),a(e),s.replace(n)}]}();return(0,c.useEffect)(()=>{if(a===s){var e;null===(e=document.getElementById(s))||void 0===e||e.scrollIntoView()}},[a,s]),(0,r.jsx)("a",{href:"#".concat(s),onClick:()=>{l(s)},...n,children:t})}var B=t(50354),$=t(9303),G=t(60323),K=t(69066),H=t(9994);let X=c.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,r.jsx)("textarea",{className:(0,H.cn)("flex min-h-[80px] w-full","px-3 py-2","rounded-md border border-input ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","bg-background text-base","text-base md:text-sm","placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50","focus-visible:outline-none",t),ref:s,...n})});X.displayName="Textarea";var Y=t(24716),Q=t(11985),ee=t(17396),es=t(85759),et=t(53333),en=t(43482),ea=t(72946);let er=(0,Y.v)({chain:es.R,transport:(0,Q.d)()}),ei=e=>{if(!("components"in e))return e.type;let s=e.components.map(e=>e.name||e.type).join(", ");return"tuple[]"===e.type?"[".concat(s,"][]"):"[".concat(s,"]")};function el(e){let{fieldType:s,...t}=e;return"string"===s?(0,r.jsx)(X,{...t}):(0,r.jsx)(u.I,{...t})}function ec(e){let{input:s,index:t}=e,n=(0,V.Gc)(),a=n.watch("inputs.".concat(t)),i=n.watch("resolvedAddresses.".concat(t)),{data:l,isLoading:o,error:d}=(0,en.a)({queryKey:["ensAddress",a],queryFn:a&&/\w\.\w/.test(a)?async()=>{let e=(0,et.F)(a),s=await (0,ee.O)(er,{name:e});if(!s)throw Error("Invalid ENS name");return s}:ea.CN,retry:1});(0,c.useEffect)(()=>{l!==i&&n.setValue("resolvedAddresses.".concat(t),l)},[l,i,n,t]);let u=(0,c.useCallback)(e=>{if("address"!==s.type){n.setValue("inputs.".concat(t),e);return}if((0,K.U)(e)){n.setValue("inputs.".concat(t),e),n.setValue("resolvedAddresses.".concat(t),e);return}n.setValue("inputs.".concat(t),e),n.setValue("resolvedAddresses.".concat(t),void 0)},[n,t,s.type]);return(0,r.jsx)(D.Wi,{control:n.control,name:"inputs.".concat(t),render:e=>{let{field:t}=e;return(0,r.jsx)(D.xJ,{className:"flex flex-col gap-2",children:(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[s.name&&(0,r.jsx)(D.lX,{className:"shrink-0 font-mono text-sm opacity-70",children:s.name}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)(D.NI,{children:(0,r.jsx)(el,{className:"font-mono text-sm",placeholder:ei(s),fieldType:s.type,value:t.value,onChange:e=>u(e.target.value)})}),(0,r.jsx)(D.zG,{}),"address"===s.type&&!(0,K.U)(a)&&(0,r.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[o&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A.Z,{className:"h-3 w-3 animate-spin"}),(0,r.jsx)("span",{children:"Resolving ENS name..."})]}),d&&(0,r.jsx)("span",{className:"text-destructive",children:"Failed to resolve ENS"}),i&&!o&&(0,r.jsxs)("span",{className:"flex items-center gap-1 font-mono",children:[i," ",(0,r.jsx)(G.Z,{className:"h-4 w-4 text-green-500"})]})]})]})]})})}})}function eo(e,s){return e.map((e,t)=>{let n=s.inputs[t];return n&&e?n.type.includes("[]")||"tuple"===n.type?JSON.parse(e):"bool"===n.type?"true"===e:(n.type.startsWith("uint")||n.type.startsWith("int"))&&"string"==typeof e&&e.endsWith("n")?e.slice(0,-1):e:e})}(n=a||(a={}))[n.READ=0]="READ",n[n.WRITE=1]="WRITE";let ed=M.z.object({inputs:M.z.array(M.z.string()),value:M.z.string().optional(),resolvedAddresses:M.z.record(M.z.string().optional()).optional()}),eu=e=>"components"in e?"tuple"===e.type?e.name||e.type:"tuple[]"===e.type?"".concat(e.name,"[]"):e.type:e.type;function em(e){var s;let{systemId:t,worldAbi:n,functionAbi:a,useSearchParamsArgs:l}=e,d=(0,i.useSearchParams)(),{id:m}=(0,B.A)(),h=(0,R.t)(),f="view"===a.stateMutability||"pure"===a.stateMutability?0:1,{openConnectModal:x}=(0,q.We)(),j=(0,F.Z)(),v=(0,P.m)(),{worldAddress:g}=(0,i.useParams)(),[b,w]=(0,c.useState)(!1),[M,J]=(0,c.useState)(),[G,K]=(0,c.useState)(),[H,X]=(0,c.useState)(),Y=(0,$.U)({hash:H,chainId:m}),Q=a.inputs.map(eu),ee=(0,i.useRouter)(),es=(0,V.cI)({resolver:(0,W.F)(ed),defaultValues:{inputs:l?JSON.parse(d.get("args")||"[]"):[],value:l&&null!==(s=d.get("value"))&&void 0!==s?s:"",resolvedAddresses:{}}});(0,c.useEffect)(()=>{if(l){let e=new URLSearchParams(d.toString());e.delete("args"),e.delete("value"),ee.replace("?".concat(e.toString()).concat(window.location.hash))}},[l,d,ee]);let et=(0,c.useCallback)(()=>{var e;let s=es.watch(),n=new URLSearchParams(d.toString());(null===(e=s.inputs)||void 0===e?void 0:e.length)?n.set("args",JSON.stringify(s.inputs)):n.delete("args"),s.value?n.set("value",s.value):n.delete("value");let r=new URL(window.location.href);return r.hash=p(a,t),r.search=n.toString(),r.toString()},[es,a,d,t]),en=(0,c.useCallback)(async e=>{let s;if(!v.isConnected)return null==x?void 0:x();if(!h){L.A.error("Public client not found");return}w(!0);let i=e.inputs.map((e,s)=>es.getValues("resolvedAddresses.".concat(s))||e);try{if(0===f){let{data:e}=await h.call({account:v.address,data:(0,E.R)({abi:[...n,a],functionName:a.name,args:eo(i,a)}),to:g});J((0,O.P)(e,null,2).replace(/^"|"$/g,""))}else{let l;if(t){let s=function(e){let{abi:s,systemId:t,functionName:n,args:a}=e;return[t,(0,E.R)({abi:s,functionName:function(e,s){let t=(0,o.IJ)(e),n=""!==t.namespace?"".concat(t.namespace,"__"):null;return null!=n&&s.startsWith(n)?(console.warn('Detected world function name "'.concat(s,'" used in call to system "').concat((0,o.qj)(t),"\".\n\nIt's recommended to use a system ABI and system function name with these methods instead.")),s.slice(n.length)):s}(t,n),args:a})]}({abi:[a],functionName:a.name,args:eo(i,a),systemId:t});l=await (0,Z.n)(j,{abi:[...n,a],address:g,functionName:"call",args:s,...e.value&&{value:BigInt(e.value)},chainId:m})}else l=await (0,Z.n)(j,{abi:n,address:g,functionName:a.name,args:eo(i,a),...e.value&&{value:BigInt(e.value)},chainId:m});X(l);let c=await (0,_.e)(j,{hash:l}),d=null==c?void 0:c.logs.map(e=>(0,z.F)({...e,abi:n}));K(d),s=L.A.success((0,r.jsxs)("a",{href:(0,$.U)({hash:l,chainId:m}),target:"_blank",rel:"noopener noreferrer",children:["Transaction successful: ",l," ",(0,r.jsx)(N.Z,{className:"inline-block h-3 w-3"})]}))}}catch(e){console.error(e),L.A.error(e.message||"Something went wrong. Please try again.",{id:s})}finally{w(!1)}},[v.address,v.isConnected,m,a,x,f,h,t,j,n,g,es]);return(0,r.jsx)("div",{className:"pb-6",children:(0,r.jsx)(D.l0,{...es,children:(0,r.jsxs)("form",{onSubmit:es.handleSubmit(en),id:p(a,t),className:"space-y-4 rounded border border-white/10 bg-black/20 p-3 pb-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("h3",{className:"font-semibold",children:(0,r.jsxs)(T,{elementId:p(a,t),className:"group inline-flex items-center hover:no-underline",children:[(0,r.jsx)("span",{className:"text-orange-500 group-hover:underline",children:a.name}),(0,r.jsxs)("span",{className:"opacity-50",children:[" (",Q.join(", "),")"]}),(0,r.jsxs)("span",{className:"ml-2 opacity-50",children:["payable"===a.stateMutability&&(0,r.jsx)(I.Z,{className:"mr-2 inline-block h-4 w-4"}),("view"===a.stateMutability||"pure"===a.stateMutability)&&(0,r.jsx)(C.Z,{className:"mr-2 inline-block h-4 w-4"}),"nonpayable"===a.stateMutability&&(0,r.jsx)(S.Z,{className:"mr-2 inline-block h-4 w-4"})]})]})}),(0,r.jsx)(U.q,{value:et(),className:"h-8 w-8"})]}),a.inputs.length>0&&(0,r.jsxs)("div",{className:"!mt-2 space-y-2",children:[a.inputs.map((e,s)=>(0,r.jsx)(ec,{input:e,index:s},s)),"payable"===a.stateMutability&&(0,r.jsx)(D.Wi,{control:es.control,name:"value",render:e=>{let{field:s}=e;return(0,r.jsxs)(D.xJ,{className:"flex items-center gap-4 space-y-0",children:[(0,r.jsxs)(D.lX,{className:"flex shrink-0 items-center gap-x-2 pt-1 font-mono text-sm opacity-70",children:["value ",(0,r.jsx)(I.Z,{className:"h-4 w-4"})]}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)(D.NI,{children:(0,r.jsx)(u.I,{placeholder:"uint256",...s,className:"font-mono text-sm"})}),(0,r.jsx)(D.zG,{})]})]})}})]}),(0,r.jsx)("div",{children:(0,r.jsxs)(y.z,{type:"submit",size:"sm",disabled:b||!v.isConnected,children:[b&&(0,r.jsx)(A.Z,{className:"-ml-1 mr-2 h-4 w-4 animate-spin"}),0===f?"Read":"Write"]})}),M&&(0,r.jsxs)("pre",{className:"text-md relative rounded border p-3 text-sm",children:[M,(0,r.jsx)(U.q,{value:M,className:"absolute right-1.5 top-1.5"})]}),G&&(0,r.jsxs)("div",{className:"relative flex-grow break-all rounded border border-white/20 p-2 pb-3",children:[(0,r.jsx)("ul",{children:G.map((e,s)=>(0,r.jsxs)("li",{children:[e.eventName&&(0,r.jsxs)("span",{className:"text-sm",children:[e.eventName,":"]}),e.args&&(0,r.jsx)("ul",{className:"list-inside",children:Object.entries(e.args).map(e=>{let[s,t]=e;return(0,r.jsxs)("li",{className:"mt-1 flex",children:[(0,r.jsxs)("span",{className:"text-sm text-white/60",children:[s,":"]})," ",(0,r.jsx)("span",{className:"text-sm",children:String(t)})]},s)})})]},s))}),(0,r.jsx)(U.q,{value:(0,O.P)(G,null,2),className:"absolute right-1.5 top-1.5"})]}),Y&&(0,r.jsxs)(k.default,{href:Y,target:"_blank",className:"flex items-center text-xs text-muted-foreground hover:underline",children:[(0,r.jsx)(N.Z,{className:"mr-2 h-3 w-3"})," View on block explorer"]})]})})})}function eh(e){let{name:s,systems:t,functions:n,worldAbi:a,isNamespace:i,initialFunctionHash:c}=e,[o,d]=(0,l.v1)("expanded",(0,l.S$)(l.Oi).withDefault([])),u=()=>{d(e=>e.includes(s)?e.filter(e=>e!==s):[...e,s])};return i&&t?(0,r.jsx)("div",{children:(0,r.jsxs)(g,{open:o.includes(s),onOpenChange:u,children:[(0,r.jsx)(b,{asChild:!0,children:(0,r.jsxs)("div",{className:"group flex w-full cursor-pointer items-center justify-between",children:[(0,r.jsx)("h4",{className:"mt-4 text-2xl font-semibold",children:s}),(0,r.jsx)(y.z,{size:"sm",variant:"ghost",children:(0,r.jsx)(j.Z,{className:"h-4 w-4"})})]})}),(0,r.jsx)(w,{children:t.map(e=>(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"my-4 text-xl font-semibold opacity-70",children:e.name}),e.functions.map(s=>(0,r.jsx)(em,{systemId:e.systemId,worldAbi:a,functionAbi:s,useSearchParamsArgs:c===p(s,e.systemId)},p(s,e.systemId)))]},e.systemId))})]})}):n?(0,r.jsx)("div",{children:(0,r.jsxs)(g,{open:o.includes(s),onOpenChange:u,children:[(0,r.jsx)(b,{asChild:!0,children:(0,r.jsxs)("div",{className:"group flex w-full cursor-pointer items-center justify-between",children:[(0,r.jsx)("h4",{className:"my-4 text-2xl font-semibold",children:s}),(0,r.jsx)(y.z,{size:"sm",variant:"ghost",children:(0,r.jsx)(j.Z,{className:"h-4 w-4"})})]})}),(0,r.jsx)(w,{children:n.map(e=>(0,r.jsx)(em,{worldAbi:a,functionAbi:e,useSearchParamsArgs:c===p(e)},p(e)))})]})}):null}function ef(e){let{worldAbi:s,filteredFunctions:t,isLoading:n}=e,a=(0,c.useRef)(window.location.hash.slice(1)).current;return(0,r.jsxs)("div",{className:"w-full overflow-y-auto pl-1 pr-1",children:[n&&(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(x.O,{className:"h-[150px]"}),(0,r.jsx)(x.O,{className:"h-[150px]"}),(0,r.jsx)(x.O,{className:"h-[150px]"}),(0,r.jsx)(x.O,{className:"h-[150px]"}),(0,r.jsx)(x.O,{className:"h-[150px]"})]}),!n&&(0,r.jsxs)(r.Fragment,{children:[t.namespaces.map(e=>{let{namespace:t,systems:n}=e;return(0,r.jsx)(eh,{name:t,systems:n,worldAbi:s,initialFunctionHash:a,isNamespace:!0},t)}),t.core.map(e=>(0,r.jsx)(eh,{name:e.name,functions:e.functions,worldAbi:s,initialFunctionHash:a},e.systemId))]})]})}function ep(e){let{abi:s,systemId:t}=e;return(0,r.jsx)("li",{children:(0,r.jsxs)(T,{elementId:p(s,t),className:"whitespace-nowrap text-sm hover:text-orange-500 hover:underline",children:[(0,r.jsxs)("span",{className:"opacity-50",children:["payable"===s.stateMutability&&(0,r.jsx)(I.Z,{className:"mr-2 inline-block h-4 w-4"}),("view"===s.stateMutability||"pure"===s.stateMutability)&&(0,r.jsx)(C.Z,{className:"mr-2 inline-block h-4 w-4"}),"nonpayable"===s.stateMutability&&(0,r.jsx)(S.Z,{className:"mr-2 inline-block h-4 w-4"})]}),(0,r.jsx)("span",{children:s.name}),s.inputs.length>0&&(0,r.jsxs)("span",{className:"opacity-50",children:[" (",s.inputs.length,")"]})]})})}var ex=t(15015);function ej(e){let{systemId:s,name:t,children:n,functionCount:a,isNamespace:i}=e,[c,o]=(0,l.v1)("expanded",(0,l.S$)(l.Oi).withDefault([]));return(0,r.jsx)("li",{children:(0,r.jsxs)(g,{open:c.includes(s),onOpenChange:()=>{o(e=>e.includes(s)?e.filter(e=>e!==s):[...e,s])},children:[(0,r.jsx)(b,{asChild:!0,children:(0,r.jsxs)("div",{className:"group flex w-full cursor-pointer items-center justify-between space-x-1",children:[(0,r.jsx)("h4",{className:"truncate text-sm font-semibold",children:t}),(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[void 0!==a&&(0,r.jsx)(ex.C,{variant:"secondary",className:"h-5 min-w-[20px] rounded-full px-1.5",children:a}),(0,r.jsx)(y.z,{size:"sm",variant:"ghost",children:(0,r.jsx)(j.Z,{className:"h-4 w-4"})})]})]})}),(0,r.jsx)(w,{className:i?void 0:"space-y-1",children:n})]})})}function ey(e){let{filteredFunctions:s,filterValue:t,isLoading:n}=e,a=(0,i.useRouter)(),l=(0,i.useSearchParams)();return(0,c.useEffect)(()=>{let e=new URLSearchParams(l.toString());t?e.set("filter",t):e.delete("filter"),a.replace("?".concat(e.toString()).concat(window.location.hash))},[t,l,a]),(0,r.jsxs)("ul",{className:"py-4 pr-4",children:[n&&Array.from({length:6}).map((e,s)=>(0,r.jsx)("li",{className:"pt-2",children:(0,r.jsx)(x.O,{className:"h-[30px]"})},s)),!n&&(0,r.jsxs)(r.Fragment,{children:[s.namespaces.map(e=>{let{namespace:s,systems:t}=e;return(0,r.jsx)(ej,{systemId:s,name:s,isNamespace:!0,children:(0,r.jsx)("ul",{className:"pl-4",children:t.map(e=>(0,r.jsx)(ej,{systemId:e.systemId,name:e.name,functionCount:e.functions.length,children:(0,r.jsx)("ul",{className:"space-y-1 py-1",children:e.functions.map(s=>(0,r.jsx)(ep,{systemId:e.systemId,abi:s},(0,f.r)(s)))})},e.systemId))})},s)}),s.core.map(e=>(0,r.jsx)(ej,{systemId:e.systemId,name:e.name,functionCount:e.functions.length,children:(0,r.jsx)("ul",{children:e.functions.map(s=>(0,r.jsx)(ep,{systemId:e.systemId,abi:s},(0,f.r)(s)))})},e.systemId))]})]})}function ev(e){return"function"===e.type}function eg(){let e=(0,i.useSearchParams)(),[,s]=(0,l.v1)("expanded",(0,l.S$)(l.Oi).withDefault([])),t=(0,c.useRef)(!1),{data:n,isFetched:a}=(0,h.b)(),{data:f,isFetched:x}=(0,m.A)(),j=a&&x,[y,v]=(0,c.useState)(e.get("filter")||""),g=(0,c.useDeferredValue)(y),b=(0,c.useMemo)(()=>{if(!f)return{core:[],namespaces:[]};let e=g.toLowerCase(),s=d.filter(s=>!!ev(s)&&"core_core_".concat(s.name).toLowerCase().includes(e));return{core:s.length>0?[{systemId:"core",name:"core",namespace:"",functions:s}]:[],namespaces:Object.entries(Object.entries(f).reduce((s,t)=>{let[n,a]=t,{namespace:r,name:i}=(0,o.IJ)(n),l=r||"root",c=a.filter(s=>!!ev(s)&&"".concat(l,"_").concat(i,"_").concat(s.name).toLowerCase().includes(e));if(0===c.length)return s;s[l]||(s[l]=[]);let d=s[l];return d&&d.push({systemId:n,namespace:l,name:i,functions:c}),s},{})).map(e=>{let[s,t]=e;return{namespace:s,systems:t}})}},[f,g]);return(0,c.useEffect)(()=>{if(j&&!t.current){let e=window.location.hash.slice(1);if(e){for(let{namespace:n,systems:a}of b.namespaces)for(let r of a)for(let a of r.functions)if(e===p(a,r.systemId)){s([n,r.systemId]),t.current=!0;return}for(let n of b.core)for(let a of n.functions)if(e===p(a,n.systemId)){s(["core",n.systemId]),t.current=!0;return}}let n=b.namespaces[0];n&&(s([n.namespace]),t.current=!0)}},[j,b,s]),(0,c.useEffect)(()=>{if(j&&g){let e=[];for(let{namespace:s,systems:t}of b.namespaces)t.some(e=>e.name.toLowerCase().includes(g.toLowerCase())||e.functions.some(e=>e.name.toLowerCase().includes(g.toLowerCase())))&&(e.push(s),t.forEach(s=>{(s.name.toLowerCase().includes(g.toLowerCase())||s.functions.some(e=>e.name.toLowerCase().includes(g.toLowerCase())))&&e.push(s.systemId)}));for(let s of b.core)(s.name.toLowerCase().includes(g.toLowerCase())||s.functions.some(e=>e.name.toLowerCase().includes(g.toLowerCase())))&&e.push(s.systemId);s(e)}},[j,g,b,s]),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"-mr-1g -ml-1 flex gap-x-4 overflow-y-hidden",children:[(0,r.jsxs)("div",{className:"w-[320px] flex-shrink-0 overflow-y-auto border-r pl-1",children:[(0,r.jsxs)("div",{className:"pr-4",children:[(0,r.jsx)("h4",{className:"py-4 text-xs font-semibold uppercase opacity-70",children:"Jump to:"}),(0,r.jsx)(u.I,{type:"search",placeholder:"Filter functions…",value:y,onChange:e=>v(e.target.value)})]}),(0,r.jsx)(ey,{filteredFunctions:b,filterValue:g,isLoading:!j})]}),(0,r.jsx)(ef,{worldAbi:null==n?void 0:n.abi,filteredFunctions:b,isLoading:!j})]})})}},93607:function(e,s,t){"use strict";t.d(s,{A:function(){return i}});var n=t(67590),a=t(43482),r=t(50354);function i(){let{worldAddress:e,chainName:s}=(0,n.useParams)(),{id:t}=(0,r.A)();return(0,a.a)({queryKey:["systemAbis",e,s],queryFn:async()=>{let s=await fetch("/api/system-abis?".concat(new URLSearchParams({chainId:t.toString(),worldAddress:e})));return await s.json()},select:e=>e.abis,retry:!1})}},64920:function(e,s,t){"use strict";t.d(s,{b:function(){return i}});var n=t(67590),a=t(43482),r=t(92593);function i(){let{chainName:e,worldAddress:s}=(0,n.useParams)();(0,r.Yx)(e);let{id:t}=r.df[e];return(0,a.a)({queryKey:["worldAbi",e,s],queryFn:async()=>{let e=await fetch("/api/world-abi?".concat(new URLSearchParams({chainId:t.toString(),worldAddress:s})));return await e.json()},select:e=>({abi:e.abi||[],isWorldDeployed:e.isWorldDeployed}),refetchInterval:5e3})}},27406:function(e,s,t){"use strict";t.d(s,{q:function(){return o}});var n=t(65140),a=t(60323),r=t(71852),i=t(6466),l=t(9994),c=t(64683);function o(e){let{className:s,variant:t="outline",value:o,...d}=e,[u,m]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{u&&setTimeout(()=>{m(!1)},2e3)},[u]),(0,n.jsxs)(c.z,{size:"icon",variant:t,className:(0,l.cn)("relative z-10 h-6 w-6 border-white/15 bg-transparent text-zinc-50 hover:bg-secondary hover:text-zinc-50 [&_svg]:h-3 [&_svg]:w-3",s),onClick:()=>{navigator.clipboard.writeText(o),m(!0)},...d,children:[(0,n.jsx)("span",{className:"sr-only",children:"Copy"}),u?(0,n.jsx)(a.Z,{}):(0,n.jsx)(r.Z,{})]})}},15015:function(e,s,t){"use strict";t.d(s,{C:function(){return l}});var n=t(65140),a=t(25183);t(6466);var r=t(9994);let i=(0,a.j)((0,r.cn)("inline-flex items-center px-2.5 py-0.5","rounded-md border","text-xs font-semibold transition-colors","focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"),{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",tertiary:"border-transparent bg-tertiary text-tertiary-foreground hover:bg-tertiary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function l(e){let{className:s,variant:t,...a}=e;return(0,n.jsx)("div",{className:(0,r.cn)(i({variant:t}),s),...a})}},36120:function(e,s,t){"use strict";t.d(s,{O:function(){return r}});var n=t(65140),a=t(9994);function r(e){let{className:s,...t}=e;return(0,n.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-md bg-muted",s),...t})}}},function(e){e.O(0,[3696,587,1720,824,8425,4536,65,3498,3802,806,3194,492,7080,1015,3278,1866,4421,3361,3341,3164,1744],function(){return e(e.s=3099)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- !function(){"use strict";var e,c,a,f,d,t,b,n,r,o={},u={};function i(e){var c=u[e];if(void 0!==c)return c.exports;var a=u[e]={id:e,loaded:!1,exports:{}},f=!0;try{o[e].call(a.exports,a,a.exports,i),f=!1}finally{f&&delete u[e]}return a.loaded=!0,a.exports}i.m=o,i.amdO={},e=[],i.O=function(c,a,f,d){if(a){d=d||0;for(var t=e.length;t>0&&e[t-1][2]>d;t--)e[t]=e[t-1];e[t]=[a,f,d];return}for(var b=1/0,t=0;t<e.length;t++){for(var a=e[t][0],f=e[t][1],d=e[t][2],n=!0,r=0;r<a.length;r++)b>=d&&Object.keys(i.O).every(function(e){return i.O[e](a[r])})?a.splice(r--,1):(n=!1,d<b&&(b=d));if(n){e.splice(t--,1);var o=f();void 0!==o&&(c=o)}}return c},i.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(c,{a:c}),c},a=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(e,f){if(1&f&&(e=this(e)),8&f||"object"==typeof e&&e&&(4&f&&e.__esModule||16&f&&"function"==typeof e.then))return e;var d=Object.create(null);i.r(d);var t={};c=c||[null,a({}),a([]),a(a)];for(var b=2&f&&e;"object"==typeof b&&!~c.indexOf(b);b=a(b))Object.getOwnPropertyNames(b).forEach(function(c){t[c]=function(){return e[c]}});return t.default=function(){return e},i.d(d,t),d},i.d=function(e,c){for(var a in c)i.o(c,a)&&!i.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:c[a]})},i.f={},i.e=function(e){return Promise.all(Object.keys(i.f).reduce(function(c,a){return i.f[a](e,c),c},[]))},i.u=function(e){return 492===e?"static/chunks/492-b879627a8a27defe.js":3157===e?"static/chunks/3157-56ab08b97a815a6f.js":"static/chunks/"+e+"."+({89:"e36536c1c5ebebfb",102:"24ed6e4d0d32b0ec",135:"fab26391b6434414",140:"06b2e3aee37a9c38",170:"26a06a99ec2cba44",187:"503e0de40b5c7667",271:"77f4c5917188c05f",295:"8879dc9d80687100",375:"a6f78892b26aeb7e",490:"1cf91e5b2c10541f",540:"54d135a28baf12d3",613:"6d6c2d03b00d5941",647:"a3a5c4f48de96fcc",815:"cd4c9ec4c71ea665",851:"a15b207044e5bf99",919:"412f492a827fe907",963:"10bd2e3231f2004b",1014:"4ba21604a8ff0a7c",1033:"353fb37db91889cc",1057:"db828565fc70ed13",1071:"0461308d727e3a40",1132:"0a8cbedb66ae9c25",1140:"8ebd07f73b28878b",1146:"db1f0b1f48949631",1308:"1c8a13184e0b5b3a",1315:"812052b945416ecc",1427:"71f3ce65b4f302cb",1513:"7946f1e9bf454c35",1556:"c66191cc9d37cf88",1573:"b4c31769b33614d3",1750:"4a42f425c7656934",1801:"4c6969c4cae0b5d5",1816:"6d789a586ea3025d",1880:"2ae855fe7d1a75c3",1886:"ff69710e4b289f25",1904:"6a50796d4c1eb292",1913:"cdf5546f2757a6f3",1998:"e48090933f64b127",2023:"de192172037a959b",2078:"815e6234dc052798",2091:"866c36091b7f2f8b",2104:"616040a442c00518",2209:"4f4e046eb76fc941",2393:"72d722f5a770a25a",2425:"f4ef66d1f14d5046",2506:"dfcdfd44df303655",2534:"808aa9f1caf405ab",2547:"8ac851b737e09e4c",2555:"0860cd424f8f60c8",2565:"e82c8cd79bcc9bb6",2642:"336cc0d099a45a62",2648:"1f4c4ab557327972",2778:"9aaeadb6683874ee",2848:"2cc03d00a8014d4d",2924:"ef8938468249c864",3257:"15f2f356aea35fb5",3266:"523fbefd05b04975",3316:"08f7567d03c5045d",3348:"5c91b49667b7cb6f",3408:"79ebf0866fd0350b",3439:"7900756b0cccc1ea",3491:"b861bdeb7414430c",3602:"c0f428b4c971321c",3632:"392a1c72dd4600f0",3761:"2d4e3bbbcb74d1e8",3821:"5d4f61b5b4080adc",3871:"85ad10b81e025d2b",3927:"f2b72a30f0124348",3961:"e266d9f1b81727e2",3980:"5044cdac5d857375",4172:"af752e7d96997799",4285:"08ebd9ccc23f3722",4293:"c9de099b06039a89",4393:"ed6283721bf42975",4397:"365ab09892ade36a",4446:"025f1286ee65d544",4489:"e90863c78ed47bdc",4537:"a60b651fe04d72e5",4617:"06dd697b6fb6c73e",4620:"1072c8fe72051fdc",4631:"04c1ea6721964624",4769:"22d64a7cc2d9e2d5",4963:"7d3210364ab60f32",5055:"b8852732a3a46ff2",5091:"343527a72b424455",5107:"0b3e34b2b3d35eea",5282:"fea886db6e6202f1",5307:"b374a9ce282ddbc6",5471:"eaf1a56e5c2f2247",5482:"a35b5bf1e253ec0a",5484:"61824f17cc2e18d2",5700:"f9283e28182241cb",5731:"1855fcd4153cb928",5820:"88de8a86d5301d1a",5858:"a3e0a97fc3c438d1",5936:"eb131d06a259545a",5979:"57f2eda62829befa",6001:"0bccf9106bfc5470",6038:"da4d72a1c26e7282",6125:"cd24542133fa3371",6176:"f11bc2f581ec807a",6193:"6dbf8e99100a013c",6196:"85faeafb103ad55c",6206:"0f6a6891b36a4b99",6213:"d500b229cf1922f7",6288:"d0f58f4bd919cfd0",6370:"526cefe8a1b0bb27",6390:"992e993f8276103b",6426:"6dbe4b4045a230be",6440:"ed316bfb21b6393b",6447:"e18f6a35a76438ec",6503:"ff6e6428ec251236",6586:"6d5c0eea113bb4b0",6618:"79c0c6b01a0f27fd",6731:"e6caf92eb9b25247",6862:"e9fd248e86c15419",6886:"8c1749ccc2d215a3",6894:"9cdf315ddfb86d90",6923:"5083417dd9b67755",6939:"2598c950b69d160a",7011:"1a3e1bb65adc42de",7029:"a7e7c2fdcd670806",7100:"ba41c5d17180e619",7130:"b1b1ce8a970c919e",7192:"5a26f97813546e6e",7246:"a7ac313d449de4b1",7282:"c2b3bf85fa0e45d3",7293:"d5ee432ae8eab704",7418:"e9e25b41a3fde82f",7462:"516d06da124e7556",7533:"682cce06e9f73e15",7731:"29557460680ccd39",7739:"c0e766428519182f",7819:"c5ad198e1a40c9bc",7864:"2ce6e7cbfbb4e926",7966:"23e05106b694469b",8181:"35c9599fdf449181",8265:"363c3918394960e7",8268:"813a675f365c7ac2",8324:"7176c8d16bf3aadc",8363:"66ce1bc3767b5f07",8505:"3bbe441d99a7de81",8743:"dc364169ad9be549",8779:"dc3ef2797914922c",8866:"e4928d1422bf65af",8880:"0463de6a27a67bb7",8930:"6e3255c14088be7b",8932:"677cb100581af19c",9e3:"e1ac9e183884ee97",9017:"280616db60931ca5",9023:"2458f38b4a6f50e1",9134:"247efac267798d1f",9319:"6cfdddfd00e6dc25",9334:"c5b313f0e4e21250",9408:"f813a686cc5081d5",9419:"f91791299e53018f",9456:"0aad3b925fab8567",9484:"b0122999cedee102",9491:"a8de15ae367fc536",9496:"4554ae9833bdf559",9547:"1573d5f43a1538bf",9562:"0fdc8de39d48069d",9611:"d250b718e5425c4f",9630:"e6fdb39a60908e16",9752:"fc5c99183d447f16",9763:"d40f0d0663c6e15d",9770:"6499a4fcf3dc0d02",9834:"b6f705d5ee060c7f",9856:"531862ba5533b41a",9886:"452c5e44e921a6f4",9933:"3456f670721a4281",9971:"f0e32cbfb04a584b",9998:"4edf2b9f4f42ba05"})[e]+".js"},i.miniCssF=function(e){},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f={},d="_N_E:",i.l=function(e,c,a,t){if(f[e]){f[e].push(c);return}if(void 0!==a)for(var b,n,r=document.getElementsByTagName("script"),o=0;o<r.length;o++){var u=r[o];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==d+a){b=u;break}}b||(n=!0,(b=document.createElement("script")).charset="utf-8",b.timeout=120,i.nc&&b.setAttribute("nonce",i.nc),b.setAttribute("data-webpack",d+a),b.src=i.tu(e)),f[e]=[c];var l=function(c,a){b.onerror=b.onload=null,clearTimeout(s);var d=f[e];if(delete f[e],b.parentNode&&b.parentNode.removeChild(b),d&&d.forEach(function(e){return e(a)}),c)return c(a)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:b}),12e4);b.onerror=l.bind(null,b.onerror),b.onload=l.bind(null,b.onload),n&&document.head.appendChild(b)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},i.tt=function(){return void 0===t&&(t={createScriptURL:function(e){return e}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(t=trustedTypes.createPolicy("nextjs#bundler",t))),t},i.tu=function(e){return i.tt().createScriptURL(e)},i.p="/_next/",b={2272:0,6173:0,554:0,9501:0,2825:0,6244:0,2630:0},i.f.j=function(e,c){var a=i.o(b,e)?b[e]:void 0;if(0!==a){if(a)c.push(a[2]);else if(/^(2(272|630|825)|554|6173|6244|9501)$/.test(e))b[e]=0;else{var f=new Promise(function(c,f){a=b[e]=[c,f]});c.push(a[2]=f);var d=i.p+i.u(e),t=Error();i.l(d,function(c){if(i.o(b,e)&&(0!==(a=b[e])&&(b[e]=void 0),a)){var f=c&&("load"===c.type?"missing":c.type),d=c&&c.target&&c.target.src;t.message="Loading chunk "+e+" failed.\n("+f+": "+d+")",t.name="ChunkLoadError",t.type=f,t.request=d,a[1](t)}},"chunk-"+e,e)}}},i.O.j=function(e){return 0===b[e]},n=function(e,c){var a,f,d=c[0],t=c[1],n=c[2],r=0;if(d.some(function(e){return 0!==b[e]})){for(a in t)i.o(t,a)&&(i.m[a]=t[a]);if(n)var o=n(i)}for(e&&e(c);r<d.length;r++)f=d[r],i.o(b,f)&&b[f]&&b[f][0](),b[f]=0;return i.O(o)},(r=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r)),i.nc=void 0}();
1
+ !function(){"use strict";var e,c,a,f,d,t,b,n,r,o={},u={};function i(e){var c=u[e];if(void 0!==c)return c.exports;var a=u[e]={id:e,loaded:!1,exports:{}},f=!0;try{o[e].call(a.exports,a,a.exports,i),f=!1}finally{f&&delete u[e]}return a.loaded=!0,a.exports}i.m=o,i.amdO={},e=[],i.O=function(c,a,f,d){if(a){d=d||0;for(var t=e.length;t>0&&e[t-1][2]>d;t--)e[t]=e[t-1];e[t]=[a,f,d];return}for(var b=1/0,t=0;t<e.length;t++){for(var a=e[t][0],f=e[t][1],d=e[t][2],n=!0,r=0;r<a.length;r++)b>=d&&Object.keys(i.O).every(function(e){return i.O[e](a[r])})?a.splice(r--,1):(n=!1,d<b&&(b=d));if(n){e.splice(t--,1);var o=f();void 0!==o&&(c=o)}}return c},i.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(c,{a:c}),c},a=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(e,f){if(1&f&&(e=this(e)),8&f||"object"==typeof e&&e&&(4&f&&e.__esModule||16&f&&"function"==typeof e.then))return e;var d=Object.create(null);i.r(d);var t={};c=c||[null,a({}),a([]),a(a)];for(var b=2&f&&e;"object"==typeof b&&!~c.indexOf(b);b=a(b))Object.getOwnPropertyNames(b).forEach(function(c){t[c]=function(){return e[c]}});return t.default=function(){return e},i.d(d,t),d},i.d=function(e,c){for(var a in c)i.o(c,a)&&!i.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:c[a]})},i.f={},i.e=function(e){return Promise.all(Object.keys(i.f).reduce(function(c,a){return i.f[a](e,c),c},[]))},i.u=function(e){return 492===e?"static/chunks/492-b879627a8a27defe.js":3157===e?"static/chunks/3157-56ab08b97a815a6f.js":"static/chunks/"+e+"."+({89:"e36536c1c5ebebfb",102:"24ed6e4d0d32b0ec",135:"fab26391b6434414",140:"06b2e3aee37a9c38",170:"26a06a99ec2cba44",187:"503e0de40b5c7667",271:"77f4c5917188c05f",295:"8879dc9d80687100",375:"a6f78892b26aeb7e",490:"1cf91e5b2c10541f",540:"54d135a28baf12d3",613:"6d6c2d03b00d5941",647:"a3a5c4f48de96fcc",815:"cd4c9ec4c71ea665",851:"a15b207044e5bf99",919:"412f492a827fe907",963:"10bd2e3231f2004b",1014:"4ba21604a8ff0a7c",1033:"353fb37db91889cc",1057:"db828565fc70ed13",1071:"0461308d727e3a40",1132:"0a8cbedb66ae9c25",1140:"8ebd07f73b28878b",1146:"db1f0b1f48949631",1308:"1c8a13184e0b5b3a",1315:"812052b945416ecc",1427:"71f3ce65b4f302cb",1513:"7946f1e9bf454c35",1556:"c66191cc9d37cf88",1573:"b4c31769b33614d3",1750:"4a42f425c7656934",1801:"4c6969c4cae0b5d5",1816:"6d789a586ea3025d",1880:"2ae855fe7d1a75c3",1886:"ff69710e4b289f25",1904:"6a50796d4c1eb292",1913:"cdf5546f2757a6f3",1998:"e48090933f64b127",2023:"de192172037a959b",2078:"815e6234dc052798",2091:"866c36091b7f2f8b",2104:"616040a442c00518",2209:"4f4e046eb76fc941",2393:"72d722f5a770a25a",2425:"f4ef66d1f14d5046",2506:"dfcdfd44df303655",2534:"808aa9f1caf405ab",2547:"8ac851b737e09e4c",2555:"0860cd424f8f60c8",2565:"e82c8cd79bcc9bb6",2642:"336cc0d099a45a62",2648:"1f4c4ab557327972",2778:"9aaeadb6683874ee",2848:"2cc03d00a8014d4d",2924:"ef8938468249c864",3257:"15f2f356aea35fb5",3266:"523fbefd05b04975",3316:"08f7567d03c5045d",3348:"5c91b49667b7cb6f",3408:"79ebf0866fd0350b",3439:"7900756b0cccc1ea",3491:"b861bdeb7414430c",3602:"c0f428b4c971321c",3632:"392a1c72dd4600f0",3761:"2d4e3bbbcb74d1e8",3821:"5d4f61b5b4080adc",3871:"85ad10b81e025d2b",3927:"f2b72a30f0124348",3961:"e266d9f1b81727e2",3980:"5044cdac5d857375",4172:"af752e7d96997799",4285:"08ebd9ccc23f3722",4293:"c9de099b06039a89",4393:"ed6283721bf42975",4397:"365ab09892ade36a",4446:"025f1286ee65d544",4489:"e90863c78ed47bdc",4537:"a60b651fe04d72e5",4617:"06dd697b6fb6c73e",4620:"1072c8fe72051fdc",4631:"04c1ea6721964624",4769:"22d64a7cc2d9e2d5",4963:"7d3210364ab60f32",5055:"b8852732a3a46ff2",5091:"343527a72b424455",5107:"0b3e34b2b3d35eea",5282:"fea886db6e6202f1",5307:"b374a9ce282ddbc6",5471:"eaf1a56e5c2f2247",5482:"a35b5bf1e253ec0a",5484:"61824f17cc2e18d2",5700:"f9283e28182241cb",5731:"1855fcd4153cb928",5820:"88de8a86d5301d1a",5858:"a3e0a97fc3c438d1",5936:"eb131d06a259545a",5979:"57f2eda62829befa",6001:"0bccf9106bfc5470",6038:"da4d72a1c26e7282",6125:"cd24542133fa3371",6176:"f11bc2f581ec807a",6193:"6dbf8e99100a013c",6196:"85faeafb103ad55c",6206:"0f6a6891b36a4b99",6213:"d500b229cf1922f7",6288:"d0f58f4bd919cfd0",6370:"526cefe8a1b0bb27",6390:"992e993f8276103b",6426:"6dbe4b4045a230be",6440:"ed316bfb21b6393b",6447:"e18f6a35a76438ec",6503:"ff6e6428ec251236",6586:"6d5c0eea113bb4b0",6618:"79c0c6b01a0f27fd",6731:"e6caf92eb9b25247",6862:"e9fd248e86c15419",6886:"8c1749ccc2d215a3",6894:"9cdf315ddfb86d90",6923:"5083417dd9b67755",6939:"2598c950b69d160a",7011:"1a3e1bb65adc42de",7029:"a7e7c2fdcd670806",7100:"ba41c5d17180e619",7130:"b1b1ce8a970c919e",7192:"5a26f97813546e6e",7246:"a7ac313d449de4b1",7282:"c2b3bf85fa0e45d3",7293:"d5ee432ae8eab704",7418:"e9e25b41a3fde82f",7462:"516d06da124e7556",7533:"682cce06e9f73e15",7731:"29557460680ccd39",7739:"c0e766428519182f",7819:"c5ad198e1a40c9bc",7864:"2ce6e7cbfbb4e926",7966:"23e05106b694469b",8181:"35c9599fdf449181",8265:"363c3918394960e7",8268:"813a675f365c7ac2",8324:"7176c8d16bf3aadc",8363:"66ce1bc3767b5f07",8505:"3bbe441d99a7de81",8743:"dc364169ad9be549",8779:"dc3ef2797914922c",8866:"e4928d1422bf65af",8880:"0463de6a27a67bb7",8930:"6e3255c14088be7b",8932:"677cb100581af19c",9e3:"e1ac9e183884ee97",9017:"280616db60931ca5",9023:"2458f38b4a6f50e1",9134:"247efac267798d1f",9319:"6cfdddfd00e6dc25",9334:"c5b313f0e4e21250",9408:"f813a686cc5081d5",9419:"f91791299e53018f",9456:"0aad3b925fab8567",9484:"b0122999cedee102",9491:"a8de15ae367fc536",9496:"4554ae9833bdf559",9547:"1573d5f43a1538bf",9562:"0fdc8de39d48069d",9611:"d250b718e5425c4f",9630:"e6fdb39a60908e16",9752:"fc5c99183d447f16",9763:"d40f0d0663c6e15d",9770:"6499a4fcf3dc0d02",9834:"b6f705d5ee060c7f",9856:"531862ba5533b41a",9886:"452c5e44e921a6f4",9933:"3456f670721a4281",9971:"f0e32cbfb04a584b",9998:"4edf2b9f4f42ba05"})[e]+".js"},i.miniCssF=function(e){},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f={},d="_N_E:",i.l=function(e,c,a,t){if(f[e]){f[e].push(c);return}if(void 0!==a)for(var b,n,r=document.getElementsByTagName("script"),o=0;o<r.length;o++){var u=r[o];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==d+a){b=u;break}}b||(n=!0,(b=document.createElement("script")).charset="utf-8",b.timeout=120,i.nc&&b.setAttribute("nonce",i.nc),b.setAttribute("data-webpack",d+a),b.src=i.tu(e)),f[e]=[c];var l=function(c,a){b.onerror=b.onload=null,clearTimeout(s);var d=f[e];if(delete f[e],b.parentNode&&b.parentNode.removeChild(b),d&&d.forEach(function(e){return e(a)}),c)return c(a)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:b}),12e4);b.onerror=l.bind(null,b.onerror),b.onload=l.bind(null,b.onload),n&&document.head.appendChild(b)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},i.tt=function(){return void 0===t&&(t={createScriptURL:function(e){return e}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(t=trustedTypes.createPolicy("nextjs#bundler",t))),t},i.tu=function(e){return i.tt().createScriptURL(e)},i.p="/_next/",b={2272:0,6173:0,554:0,9501:0,2825:0,2630:0,6244:0},i.f.j=function(e,c){var a=i.o(b,e)?b[e]:void 0;if(0!==a){if(a)c.push(a[2]);else if(/^(2(272|630|825)|554|6173|6244|9501)$/.test(e))b[e]=0;else{var f=new Promise(function(c,f){a=b[e]=[c,f]});c.push(a[2]=f);var d=i.p+i.u(e),t=Error();i.l(d,function(c){if(i.o(b,e)&&(0!==(a=b[e])&&(b[e]=void 0),a)){var f=c&&("load"===c.type?"missing":c.type),d=c&&c.target&&c.target.src;t.message="Loading chunk "+e+" failed.\n("+f+": "+d+")",t.name="ChunkLoadError",t.type=f,t.request=d,a[1](t)}},"chunk-"+e,e)}}},i.O.j=function(e){return 0===b[e]},n=function(e,c){var a,f,d=c[0],t=c[1],n=c[2],r=0;if(d.some(function(e){return 0!==b[e]})){for(a in t)i.o(t,a)&&(i.m[a]=t[a]);if(n)var o=n(i)}for(e&&e(c);r<d.length;r++)f=d[r],i.o(b,f)&&b[f]&&b[f][0](),b[f]=0;return i.O(o)},(r=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r)),i.nc=void 0}();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@latticexyz/explorer",
3
- "version": "2.2.23-a7ce36bd855c91c1a0e7a515c6ed7422ef59973d",
3
+ "version": "2.2.23-c9a7e15b89f6e4486abcb46c3a75c213741816a4",
4
4
  "description": "World Explorer is a tool for visually exploring and manipulating the state of worlds",
5
5
  "type": "module",
6
6
  "exports": {
@@ -61,15 +61,15 @@
61
61
  "yargs": "^17.7.1",
62
62
  "zod": "3.23.8",
63
63
  "zustand": "^4.3.7",
64
- "@latticexyz/block-logs-stream": "2.2.23-a7ce36bd855c91c1a0e7a515c6ed7422ef59973d",
65
- "@latticexyz/common": "2.2.23-a7ce36bd855c91c1a0e7a515c6ed7422ef59973d",
66
- "@latticexyz/config": "2.2.23-a7ce36bd855c91c1a0e7a515c6ed7422ef59973d",
67
- "@latticexyz/protocol-parser": "2.2.23-a7ce36bd855c91c1a0e7a515c6ed7422ef59973d",
68
- "@latticexyz/schema-type": "2.2.23-a7ce36bd855c91c1a0e7a515c6ed7422ef59973d",
69
- "@latticexyz/store": "2.2.23-a7ce36bd855c91c1a0e7a515c6ed7422ef59973d",
70
- "@latticexyz/store-indexer": "2.2.23-a7ce36bd855c91c1a0e7a515c6ed7422ef59973d",
71
- "@latticexyz/store-sync": "2.2.23-a7ce36bd855c91c1a0e7a515c6ed7422ef59973d",
72
- "@latticexyz/world": "2.2.23-a7ce36bd855c91c1a0e7a515c6ed7422ef59973d"
64
+ "@latticexyz/block-logs-stream": "2.2.23-c9a7e15b89f6e4486abcb46c3a75c213741816a4",
65
+ "@latticexyz/common": "2.2.23-c9a7e15b89f6e4486abcb46c3a75c213741816a4",
66
+ "@latticexyz/config": "2.2.23-c9a7e15b89f6e4486abcb46c3a75c213741816a4",
67
+ "@latticexyz/protocol-parser": "2.2.23-c9a7e15b89f6e4486abcb46c3a75c213741816a4",
68
+ "@latticexyz/schema-type": "2.2.23-c9a7e15b89f6e4486abcb46c3a75c213741816a4",
69
+ "@latticexyz/store": "2.2.23-c9a7e15b89f6e4486abcb46c3a75c213741816a4",
70
+ "@latticexyz/store-indexer": "2.2.23-c9a7e15b89f6e4486abcb46c3a75c213741816a4",
71
+ "@latticexyz/store-sync": "2.2.23-c9a7e15b89f6e4486abcb46c3a75c213741816a4",
72
+ "@latticexyz/world": "2.2.23-c9a7e15b89f6e4486abcb46c3a75c213741816a4"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@trivago/prettier-plugin-sort-imports": "^4.3.0",
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3027],{3099:function(e,s,t){Promise.resolve().then(t.bind(t,95005))},95005:function(e,s,t){"use strict";t.d(s,{InteractForm:function(){return eg}});var n,a,r=t(65140),i=t(67590),l=t(11650),c=t(6466),o=t(71360),d=t(48071),u=t(20566),m=t(93607),h=t(64920),f=t(77040);function x(e,s){return"".concat(s||"core","-").concat((0,f.r)(e))}var p=t(36120),j=t(30637),v=t(64683),y=t(92660);let g=y.fC,w=y.wy,b=y.Fw;var N=t(11375),I=t(60649),C=t(18304),S=t(98399),A=t(50546),L=t(83802),k=t(21015),E=t(86498),O=t(91524),R=t(51722),z=t(32291),F=t(82941),P=t(57429),Z=t(66684),_=t(64477),M=t(34246),V=t(19305),U=t(37153);t(49373),t(64163),t(20725),t(43609),t(26275);var q=t(80335),D=t(27406),W=t(47671),J=t(65880);function T(e){let{elementId:s,children:t,...n}=e,[a,l]=function(){let e=(0,c.useMemo)(()=>()=>window.location.hash.replace(/^#!?/,""),[]),s=(0,i.useRouter)(),t=(0,i.useParams)(),[n,a]=(0,c.useState)(e());(0,c.useEffect)(()=>{a(e())},[t]);let r=()=>{a(e())};return(0,c.useEffect)(()=>(window.addEventListener("hashchange",r),()=>{window.removeEventListener("hashchange",r)}),[]),[n,e=>{var t;let n=window.location.href;n=J.Z.stringifyUrl({url:null!==(t=n.split("#")[0])&&void 0!==t?t:"",fragmentIdentifier:e}),a(e),s.replace(n)}]}();return(0,c.useEffect)(()=>{if(a===s){var e;null===(e=document.getElementById(s))||void 0===e||e.scrollIntoView()}},[a,s]),(0,r.jsx)("a",{href:"#".concat(s),onClick:()=>{l(s);let e=new URL(window.location.href);e.hash=s,navigator.clipboard.writeText(e.toString())},...n,children:t})}var B=t(50354),$=t(9303),G=t(60323),K=t(69066),H=t(9994);let X=c.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,r.jsx)("textarea",{className:(0,H.cn)("flex min-h-[80px] w-full","px-3 py-2","rounded-md border border-input ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","bg-background text-base","text-base md:text-sm","placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50","focus-visible:outline-none",t),ref:s,...n})});X.displayName="Textarea";var Y=t(24716),Q=t(11985),ee=t(17396),es=t(85759),et=t(53333),en=t(43482),ea=t(72946);let er=(0,Y.v)({chain:es.R,transport:(0,Q.d)()}),ei=e=>{if(!("components"in e))return e.type;let s=e.components.map(e=>e.name||e.type).join(", ");return"tuple[]"===e.type?"[".concat(s,"][]"):"[".concat(s,"]")};function el(e){let{fieldType:s,...t}=e;return"string"===s?(0,r.jsx)(X,{...t}):(0,r.jsx)(u.I,{...t})}function ec(e){let{input:s,index:t}=e,n=(0,V.Gc)(),a=n.watch("inputs.".concat(t)),i=n.watch("resolvedAddresses.".concat(t)),{data:l,isLoading:o,error:d}=(0,en.a)({queryKey:["ensAddress",a],queryFn:a&&/\w\.\w/.test(a)?async()=>{let e=(0,et.F)(a),s=await (0,ee.O)(er,{name:e});if(!s)throw Error("Invalid ENS name");return s}:ea.CN,retry:1});(0,c.useEffect)(()=>{l!==i&&n.setValue("resolvedAddresses.".concat(t),l)},[l,i,n,t]);let u=(0,c.useCallback)(e=>{if("address"!==s.type){n.setValue("inputs.".concat(t),e);return}if((0,K.U)(e)){n.setValue("inputs.".concat(t),e),n.setValue("resolvedAddresses.".concat(t),e);return}n.setValue("inputs.".concat(t),e),n.setValue("resolvedAddresses.".concat(t),void 0)},[n,t,s.type]);return(0,r.jsx)(W.Wi,{control:n.control,name:"inputs.".concat(t),render:e=>{let{field:t}=e;return(0,r.jsx)(W.xJ,{className:"flex flex-col gap-2",children:(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[s.name&&(0,r.jsx)(W.lX,{className:"shrink-0 font-mono text-sm opacity-70",children:s.name}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)(W.NI,{children:(0,r.jsx)(el,{className:"font-mono text-sm",placeholder:ei(s),fieldType:s.type,value:t.value,onChange:e=>u(e.target.value)})}),(0,r.jsx)(W.zG,{}),"address"===s.type&&!(0,K.U)(a)&&(0,r.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[o&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A.Z,{className:"h-3 w-3 animate-spin"}),(0,r.jsx)("span",{children:"Resolving ENS name..."})]}),d&&(0,r.jsx)("span",{className:"text-destructive",children:"Failed to resolve ENS"}),i&&!o&&(0,r.jsxs)("span",{className:"flex items-center gap-1 font-mono",children:[i," ",(0,r.jsx)(G.Z,{className:"h-4 w-4 text-green-500"})]})]})]})]})})}})}function eo(e,s){return e.map((e,t)=>{let n=s.inputs[t];return n&&e?n.type.includes("[]")||"tuple"===n.type?JSON.parse(e):"bool"===n.type?"true"===e:e:e})}(n=a||(a={}))[n.READ=0]="READ",n[n.WRITE=1]="WRITE";let ed=M.z.object({inputs:M.z.array(M.z.string()),value:M.z.string().optional(),resolvedAddresses:M.z.record(M.z.string().optional()).optional()}),eu=e=>"components"in e?"tuple"===e.type?e.name||e.type:"tuple[]"===e.type?"".concat(e.name,"[]"):e.type:e.type;function em(e){var s;let{systemId:t,worldAbi:n,functionAbi:a,useSearchParamsArgs:l}=e,d=(0,i.useSearchParams)(),{id:m}=(0,B.A)(),h=(0,z.t)(),f="view"===a.stateMutability||"pure"===a.stateMutability?0:1,{openConnectModal:p}=(0,q.We)(),j=(0,F.Z)(),y=(0,P.m)(),{worldAddress:g}=(0,i.useParams)(),[w,b]=(0,c.useState)(!1),[M,J]=(0,c.useState)(),[G,K]=(0,c.useState)(),[H,X]=(0,c.useState)(),Y=(0,$.U)({hash:H,chainId:m}),Q=a.inputs.map(eu),ee=(0,i.useRouter)(),es=(0,V.cI)({resolver:(0,U.F)(ed),defaultValues:{inputs:l?JSON.parse(d.get("args")||"[]"):[],value:l&&null!==(s=d.get("value"))&&void 0!==s?s:"",resolvedAddresses:{}}});(0,c.useEffect)(()=>{if(l){let e=new URLSearchParams(d.toString());e.delete("args"),e.delete("value"),ee.replace("?".concat(e.toString()).concat(window.location.hash))}},[l,d,ee]);let et=(0,c.useCallback)(()=>{var e;let s=es.watch(),n=new URLSearchParams(d.toString());(null===(e=s.inputs)||void 0===e?void 0:e.length)?n.set("args",JSON.stringify(s.inputs)):n.delete("args"),s.value?n.set("value",s.value):n.delete("value");let r=new URL(window.location.href);return r.hash=x(a,t),r.search=n.toString(),r.toString()},[es,a,d,t]),en=(0,c.useCallback)(async e=>{let s;if(!y.isConnected)return null==p?void 0:p();if(!h){k.A.error("Public client not found");return}b(!0);let i=e.inputs.map((e,s)=>es.getValues("resolvedAddresses.".concat(s))||e);try{if(0===f){let{data:e}=await h.call({account:y.address,data:(0,E.R)({abi:[...n,a],functionName:a.name,args:eo(i,a)}),to:g});J((0,O.P)(e,null,2).replace(/^"|"$/g,""))}else{let l;if(t){let s=function(e){let{abi:s,systemId:t,functionName:n,args:a}=e;return[t,(0,E.R)({abi:s,functionName:function(e,s){let t=(0,o.IJ)(e),n=""!==t.namespace?"".concat(t.namespace,"__"):null;return null!=n&&s.startsWith(n)?(console.warn('Detected world function name "'.concat(s,'" used in call to system "').concat((0,o.qj)(t),"\".\n\nIt's recommended to use a system ABI and system function name with these methods instead.")),s.slice(n.length)):s}(t,n),args:a})]}({abi:[a],functionName:a.name,args:eo(i,a),systemId:t});l=await (0,Z.n)(j,{abi:[...n,a],address:g,functionName:"call",args:s,...e.value&&{value:BigInt(e.value)},chainId:m})}else l=await (0,Z.n)(j,{abi:n,address:g,functionName:a.name,args:eo(i,a),...e.value&&{value:BigInt(e.value)},chainId:m});X(l);let c=await (0,_.e)(j,{hash:l}),d=null==c?void 0:c.logs.map(e=>(0,R.F)({...e,abi:n}));K(d),s=k.A.success((0,r.jsxs)("a",{href:(0,$.U)({hash:l,chainId:m}),target:"_blank",rel:"noopener noreferrer",children:["Transaction successful: ",l," ",(0,r.jsx)(N.Z,{className:"inline-block h-3 w-3"})]}))}}catch(e){console.error(e),k.A.error(e.message||"Something went wrong. Please try again.",{id:s})}finally{b(!1)}},[y.address,y.isConnected,m,a,p,f,h,t,j,n,g,es]);return(0,r.jsx)("div",{className:"pb-6",children:(0,r.jsx)(W.l0,{...es,children:(0,r.jsxs)("form",{onSubmit:es.handleSubmit(en),id:x(a,t),className:"space-y-4 rounded border border-white/10 bg-black/20 p-3 pb-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("h3",{className:"font-semibold",children:(0,r.jsxs)(T,{elementId:x(a,t),className:"group inline-flex items-center hover:no-underline",children:[(0,r.jsx)("span",{className:"text-orange-500 group-hover:underline",children:a.name}),(0,r.jsxs)("span",{className:"opacity-50",children:[" (",Q.join(", "),")"]}),(0,r.jsxs)("span",{className:"ml-2 opacity-50",children:["payable"===a.stateMutability&&(0,r.jsx)(I.Z,{className:"mr-2 inline-block h-4 w-4"}),("view"===a.stateMutability||"pure"===a.stateMutability)&&(0,r.jsx)(C.Z,{className:"mr-2 inline-block h-4 w-4"}),"nonpayable"===a.stateMutability&&(0,r.jsx)(S.Z,{className:"mr-2 inline-block h-4 w-4"})]})]})}),(0,r.jsx)(D.q,{value:et(),className:"h-8 w-8"})]}),a.inputs.length>0&&(0,r.jsxs)("div",{className:"!mt-2 space-y-2",children:[a.inputs.map((e,s)=>(0,r.jsx)(ec,{input:e,index:s},s)),"payable"===a.stateMutability&&(0,r.jsx)(W.Wi,{control:es.control,name:"value",render:e=>{let{field:s}=e;return(0,r.jsxs)(W.xJ,{className:"flex items-center gap-4 space-y-0",children:[(0,r.jsxs)(W.lX,{className:"flex shrink-0 items-center gap-x-2 pt-1 font-mono text-sm opacity-70",children:["value ",(0,r.jsx)(I.Z,{className:"h-4 w-4"})]}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)(W.NI,{children:(0,r.jsx)(u.I,{placeholder:"uint256",...s,className:"font-mono text-sm"})}),(0,r.jsx)(W.zG,{})]})]})}})]}),(0,r.jsx)("div",{children:(0,r.jsxs)(v.z,{type:"submit",size:"sm",disabled:w||!y.isConnected,children:[w&&(0,r.jsx)(A.Z,{className:"-ml-1 mr-2 h-4 w-4 animate-spin"}),0===f?"Read":"Write"]})}),M&&(0,r.jsxs)("pre",{className:"text-md relative rounded border p-3 text-sm",children:[M,(0,r.jsx)(D.q,{value:M,className:"absolute right-1.5 top-1.5"})]}),G&&(0,r.jsxs)("div",{className:"relative flex-grow break-all rounded border border-white/20 p-2 pb-3",children:[(0,r.jsx)("ul",{children:G.map((e,s)=>(0,r.jsxs)("li",{children:[e.eventName&&(0,r.jsxs)("span",{className:"text-sm",children:[e.eventName,":"]}),e.args&&(0,r.jsx)("ul",{className:"list-inside",children:Object.entries(e.args).map(e=>{let[s,t]=e;return(0,r.jsxs)("li",{className:"mt-1 flex",children:[(0,r.jsxs)("span",{className:"text-sm text-white/60",children:[s,":"]})," ",(0,r.jsx)("span",{className:"text-sm",children:String(t)})]},s)})})]},s))}),(0,r.jsx)(D.q,{value:(0,O.P)(G,null,2),className:"absolute right-1.5 top-1.5"})]}),Y&&(0,r.jsxs)(L.default,{href:Y,target:"_blank",className:"flex items-center text-xs text-muted-foreground hover:underline",children:[(0,r.jsx)(N.Z,{className:"mr-2 h-3 w-3"})," View on block explorer"]})]})})})}function eh(e){let{name:s,systems:t,functions:n,worldAbi:a,isNamespace:i,initialFunctionHash:c}=e,[o,d]=(0,l.v1)("expanded",(0,l.S$)(l.Oi).withDefault([])),u=()=>{d(e=>e.includes(s)?e.filter(e=>e!==s):[...e,s])};return i&&t?(0,r.jsx)("div",{children:(0,r.jsxs)(g,{open:o.includes(s),onOpenChange:u,children:[(0,r.jsx)(w,{asChild:!0,children:(0,r.jsxs)("div",{className:"group flex w-full cursor-pointer items-center justify-between",children:[(0,r.jsx)("h4",{className:"mt-4 text-2xl font-semibold",children:s}),(0,r.jsx)(v.z,{size:"sm",variant:"ghost",children:(0,r.jsx)(j.Z,{className:"h-4 w-4"})})]})}),(0,r.jsx)(b,{children:t.map(e=>(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"my-4 text-xl font-semibold opacity-70",children:e.name}),e.functions.map(s=>(0,r.jsx)(em,{systemId:e.systemId,worldAbi:a,functionAbi:s,useSearchParamsArgs:c===x(s,e.systemId)},x(s,e.systemId)))]},e.systemId))})]})}):n?(0,r.jsx)("div",{children:(0,r.jsxs)(g,{open:o.includes(s),onOpenChange:u,children:[(0,r.jsx)(w,{asChild:!0,children:(0,r.jsxs)("div",{className:"group flex w-full cursor-pointer items-center justify-between",children:[(0,r.jsx)("h4",{className:"my-4 text-2xl font-semibold",children:s}),(0,r.jsx)(v.z,{size:"sm",variant:"ghost",children:(0,r.jsx)(j.Z,{className:"h-4 w-4"})})]})}),(0,r.jsx)(b,{children:n.map(e=>(0,r.jsx)(em,{worldAbi:a,functionAbi:e,useSearchParamsArgs:c===x(e)},x(e)))})]})}):null}function ef(e){let{worldAbi:s,filteredFunctions:t,isLoading:n}=e,a=(0,c.useRef)(window.location.hash.slice(1)).current;return(0,r.jsxs)("div",{className:"w-full overflow-y-auto pl-1 pr-1",children:[n&&(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(p.O,{className:"h-[150px]"}),(0,r.jsx)(p.O,{className:"h-[150px]"}),(0,r.jsx)(p.O,{className:"h-[150px]"}),(0,r.jsx)(p.O,{className:"h-[150px]"}),(0,r.jsx)(p.O,{className:"h-[150px]"})]}),!n&&(0,r.jsxs)(r.Fragment,{children:[t.namespaces.map(e=>{let{namespace:t,systems:n}=e;return(0,r.jsx)(eh,{name:t,systems:n,worldAbi:s,initialFunctionHash:a,isNamespace:!0},t)}),t.core.map(e=>(0,r.jsx)(eh,{name:e.name,functions:e.functions,worldAbi:s,initialFunctionHash:a},e.systemId))]})]})}function ex(e){let{abi:s,systemId:t}=e;return(0,r.jsx)("li",{children:(0,r.jsxs)(T,{elementId:x(s,t),className:"whitespace-nowrap text-sm hover:text-orange-500 hover:underline",children:[(0,r.jsxs)("span",{className:"opacity-50",children:["payable"===s.stateMutability&&(0,r.jsx)(I.Z,{className:"mr-2 inline-block h-4 w-4"}),("view"===s.stateMutability||"pure"===s.stateMutability)&&(0,r.jsx)(C.Z,{className:"mr-2 inline-block h-4 w-4"}),"nonpayable"===s.stateMutability&&(0,r.jsx)(S.Z,{className:"mr-2 inline-block h-4 w-4"})]}),(0,r.jsx)("span",{children:s.name}),s.inputs.length>0&&(0,r.jsxs)("span",{className:"opacity-50",children:[" (",s.inputs.length,")"]})]})})}var ep=t(15015);function ej(e){let{systemId:s,name:t,children:n,functionCount:a,isNamespace:i}=e,[c,o]=(0,l.v1)("expanded",(0,l.S$)(l.Oi).withDefault([]));return(0,r.jsx)("li",{children:(0,r.jsxs)(g,{open:c.includes(s),onOpenChange:()=>{o(e=>e.includes(s)?e.filter(e=>e!==s):[...e,s])},children:[(0,r.jsx)(w,{asChild:!0,children:(0,r.jsxs)("div",{className:"group flex w-full cursor-pointer items-center justify-between space-x-1",children:[(0,r.jsx)("h4",{className:"truncate text-sm font-semibold",children:t}),(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[void 0!==a&&(0,r.jsx)(ep.C,{variant:"secondary",className:"h-5 min-w-[20px] rounded-full px-1.5",children:a}),(0,r.jsx)(v.z,{size:"sm",variant:"ghost",children:(0,r.jsx)(j.Z,{className:"h-4 w-4"})})]})]})}),(0,r.jsx)(b,{className:i?void 0:"space-y-1",children:n})]})})}function ev(e){let{filteredFunctions:s,filterValue:t,isLoading:n}=e,a=(0,i.useRouter)(),l=(0,i.useSearchParams)();return(0,c.useEffect)(()=>{let e=new URLSearchParams(l.toString());t?e.set("filter",t):e.delete("filter"),a.replace("?".concat(e.toString()).concat(window.location.hash))},[t,l,a]),(0,r.jsxs)("ul",{className:"py-4 pr-4",children:[n&&Array.from({length:6}).map((e,s)=>(0,r.jsx)("li",{className:"pt-2",children:(0,r.jsx)(p.O,{className:"h-[30px]"})},s)),!n&&(0,r.jsxs)(r.Fragment,{children:[s.namespaces.map(e=>{let{namespace:s,systems:t}=e;return(0,r.jsx)(ej,{systemId:s,name:s,isNamespace:!0,children:(0,r.jsx)("ul",{className:"pl-4",children:t.map(e=>(0,r.jsx)(ej,{systemId:e.systemId,name:e.name,functionCount:e.functions.length,children:(0,r.jsx)("ul",{className:"space-y-1 py-1",children:e.functions.map(s=>(0,r.jsx)(ex,{systemId:e.systemId,abi:s},(0,f.r)(s)))})},e.systemId))})},s)}),s.core.map(e=>(0,r.jsx)(ej,{systemId:e.systemId,name:e.name,functionCount:e.functions.length,children:(0,r.jsx)("ul",{children:e.functions.map(s=>(0,r.jsx)(ex,{systemId:e.systemId,abi:s},(0,f.r)(s)))})},e.systemId))]})]})}function ey(e){return"function"===e.type}function eg(){let e=(0,i.useSearchParams)(),[,s]=(0,l.v1)("expanded",(0,l.S$)(l.Oi).withDefault([])),t=(0,c.useRef)(!1),{data:n,isFetched:a}=(0,h.b)(),{data:f,isFetched:p}=(0,m.A)(),j=a&&p,[v,y]=(0,c.useState)(e.get("filter")||""),g=(0,c.useDeferredValue)(v),w=(0,c.useMemo)(()=>{if(!f)return{core:[],namespaces:[]};let e=g.toLowerCase(),s=d.filter(s=>!!ey(s)&&"core_core_".concat(s.name).toLowerCase().includes(e));return{core:s.length>0?[{systemId:"core",name:"core",namespace:"",functions:s}]:[],namespaces:Object.entries(Object.entries(f).reduce((s,t)=>{let[n,a]=t,{namespace:r,name:i}=(0,o.IJ)(n),l=r||"root",c=a.filter(s=>!!ey(s)&&"".concat(l,"_").concat(i,"_").concat(s.name).toLowerCase().includes(e));if(0===c.length)return s;s[l]||(s[l]=[]);let d=s[l];return d&&d.push({systemId:n,namespace:l,name:i,functions:c}),s},{})).map(e=>{let[s,t]=e;return{namespace:s,systems:t}})}},[f,g]);return(0,c.useEffect)(()=>{if(j&&!t.current){let e=window.location.hash.slice(1);if(e){for(let{namespace:n,systems:a}of w.namespaces)for(let r of a)for(let a of r.functions)if(e===x(a,r.systemId)){s([n,r.systemId]),t.current=!0;return}for(let n of w.core)for(let a of n.functions)if(e===x(a,n.systemId)){s(["core",n.systemId]),t.current=!0;return}}let n=w.namespaces[0];n&&(s([n.namespace]),t.current=!0)}},[j,w,s]),(0,c.useEffect)(()=>{if(j&&g){let e=[];for(let{namespace:s,systems:t}of w.namespaces)t.some(e=>e.name.toLowerCase().includes(g.toLowerCase())||e.functions.some(e=>e.name.toLowerCase().includes(g.toLowerCase())))&&(e.push(s),t.forEach(s=>{(s.name.toLowerCase().includes(g.toLowerCase())||s.functions.some(e=>e.name.toLowerCase().includes(g.toLowerCase())))&&e.push(s.systemId)}));for(let s of w.core)(s.name.toLowerCase().includes(g.toLowerCase())||s.functions.some(e=>e.name.toLowerCase().includes(g.toLowerCase())))&&e.push(s.systemId);s(e)}},[j,g,w,s]),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"-mr-1g -ml-1 flex gap-x-4 overflow-y-hidden",children:[(0,r.jsxs)("div",{className:"w-[320px] flex-shrink-0 overflow-y-auto border-r pl-1",children:[(0,r.jsxs)("div",{className:"pr-4",children:[(0,r.jsx)("h4",{className:"py-4 text-xs font-semibold uppercase opacity-70",children:"Jump to:"}),(0,r.jsx)(u.I,{type:"search",placeholder:"Filter functions…",value:v,onChange:e=>y(e.target.value)})]}),(0,r.jsx)(ev,{filteredFunctions:w,filterValue:g,isLoading:!j})]}),(0,r.jsx)(ef,{worldAbi:null==n?void 0:n.abi,filteredFunctions:w,isLoading:!j})]})})}},93607:function(e,s,t){"use strict";t.d(s,{A:function(){return i}});var n=t(67590),a=t(43482),r=t(50354);function i(){let{worldAddress:e,chainName:s}=(0,n.useParams)(),{id:t}=(0,r.A)();return(0,a.a)({queryKey:["systemAbis",e,s],queryFn:async()=>{let s=await fetch("/api/system-abis?".concat(new URLSearchParams({chainId:t.toString(),worldAddress:e})));return await s.json()},select:e=>e.abis,retry:!1})}},64920:function(e,s,t){"use strict";t.d(s,{b:function(){return i}});var n=t(67590),a=t(43482),r=t(92593);function i(){let{chainName:e,worldAddress:s}=(0,n.useParams)();(0,r.Yx)(e);let{id:t}=r.df[e];return(0,a.a)({queryKey:["worldAbi",e,s],queryFn:async()=>{let e=await fetch("/api/world-abi?".concat(new URLSearchParams({chainId:t.toString(),worldAddress:s})));return await e.json()},select:e=>({abi:e.abi||[],isWorldDeployed:e.isWorldDeployed}),refetchInterval:5e3})}},27406:function(e,s,t){"use strict";t.d(s,{q:function(){return o}});var n=t(65140),a=t(60323),r=t(71852),i=t(6466),l=t(9994),c=t(64683);function o(e){let{className:s,variant:t="outline",value:o,...d}=e,[u,m]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{u&&setTimeout(()=>{m(!1)},2e3)},[u]),(0,n.jsxs)(c.z,{size:"icon",variant:t,className:(0,l.cn)("relative z-10 h-6 w-6 border-white/15 bg-transparent text-zinc-50 hover:bg-secondary hover:text-zinc-50 [&_svg]:h-3 [&_svg]:w-3",s),onClick:()=>{navigator.clipboard.writeText(o),m(!0)},...d,children:[(0,n.jsx)("span",{className:"sr-only",children:"Copy"}),u?(0,n.jsx)(a.Z,{}):(0,n.jsx)(r.Z,{})]})}},15015:function(e,s,t){"use strict";t.d(s,{C:function(){return l}});var n=t(65140),a=t(25183);t(6466);var r=t(9994);let i=(0,a.j)((0,r.cn)("inline-flex items-center px-2.5 py-0.5","rounded-md border","text-xs font-semibold transition-colors","focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"),{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",tertiary:"border-transparent bg-tertiary text-tertiary-foreground hover:bg-tertiary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function l(e){let{className:s,variant:t,...a}=e;return(0,n.jsx)("div",{className:(0,r.cn)(i({variant:t}),s),...a})}},36120:function(e,s,t){"use strict";t.d(s,{O:function(){return r}});var n=t(65140),a=t(9994);function r(e){let{className:s,...t}=e;return(0,n.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-md bg-muted",s),...t})}}},function(e){e.O(0,[3696,587,1720,824,8425,4536,65,3498,3802,806,3194,492,7080,1015,3278,1866,4421,3361,3341,3164,1744],function(){return e(e.s=3099)}),_N_E=e.O()}]);