forked from bombastictranz/DuneQueryRepo
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontracts-c5c5fd3b811c0068.js.download
2 lines (2 loc) · 32.8 KB
/
contracts-c5c5fd3b811c0068.js.download
1
2
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9690],{53637:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/workspace/u/[handle]/library/contracts",function(){return r(94094)}])},10874:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var s=r(67294),n=r(7659),i=r(84077),l=r(68583);function o(){let[e,t]=(0,i.Z)("q","",{onChangeTransform:l.X}),[r,o]=(0,s.useState)(e);return(0,s.useEffect)(()=>{o(e)},[e]),(0,n.b)({delayMs:300},()=>t(r),[r]),{freetextFilter:r,setFreetextFilter:o,freetextFilterDebounced:e}}},68583:function(e,t,r){"use strict";r.d(t,{X:function(){return i},Z:function(){return n}});var s=r(48821);function n(){return(0,s.Z)(e=>{let t=Number(e.page),r=Number.isInteger(t)&&t>0;return r?t:1},e=>({page:1===e?void 0:e}))}function i(e){return{...e,page:void 0}}},90869:function(e,t,r){"use strict";r.d(t,{p:function(){return c},e:function(){return u}});var s=r(85893),n=r(77251),i=r(10398),l=r(10933),o=r(41118),a=r(45439);function c(e){let{searchStringState:t,placeholder:r}=e;return(0,s.jsx)(n.$0,{title:"Filter results",children:(0,s.jsx)("li",{children:(0,s.jsx)(i.U,{size:"M",style:"contained",placeholder:r,value:t.value,onChange:e=>t.setState(e.target.value),prefix:(0,s.jsx)(a.IconMagnifyingGlass,{}),suffix:(0,s.jsx)(l.h,{size:"XS",theme:"ghost",onClick:()=>t.setState(""),style:""===t.value?{visibility:"hidden"}:void 0,children:(0,s.jsx)(o.IconCross,{})})})})})}var d=r(10874);function u(){let{freetextFilter:e,freetextFilterDebounced:t,setFreetextFilter:r}=(0,d.Z)();return{value:e,debouncedValue:t,setState:r}}},43953:function(e,t,r){"use strict";r.r(t),r.d(t,{IconArrowRight:function(){return n}});var s=r(85893);function n(){return(0,s.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 7.72386 1.22386 7.5 1.5 7.5L13.2929 7.5L10.1464 4.35355C9.95118 4.15829 9.95118 3.84171 10.1464 3.64645C10.3417 3.45118 10.6583 3.45118 10.8536 3.64645L14.8536 7.64645C15.0488 7.84171 15.0488 8.15829 14.8536 8.35355L10.8536 12.3536C10.6583 12.5488 10.3417 12.5488 10.1464 12.3536C9.95118 12.1583 9.95118 11.8417 10.1464 11.6464L13.2929 8.5H1.5C1.22386 8.5 1 8.27614 1 8Z",fill:"currentColor"})})}},61018:function(e,t,r){"use strict";r.r(t),r.d(t,{IconBellRing:function(){return n}});var s=r(85893);let n=()=>(0,s.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M3 12H13",stroke:"currentColor",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M4 8C4 5.79086 5.79086 4 8 4V4C10.2091 4 12 5.79086 12 8V12H4V8Z",stroke:"currentColor"}),(0,s.jsx)("path",{d:"M6.98122 14.435C7.26281 14.7166 7.6024 14.8574 8 14.8574C8.3976 14.8574 8.73719 14.7166 9.01878 14.435C9.30037 14.1535 9.44116 13.8139 9.44116 13.4163H6.55884C6.55884 13.8139 6.69963 14.1535 6.98122 14.435Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M7 3C7 2.44772 7.44772 2 8 2C8.55228 2 9 2.44772 9 3V4H7V3Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M2.16426 5.15975C2.77213 3.89512 3.75161 2.80199 4.9955 1.99999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M13.9955 5.15981C13.3877 3.89518 12.4082 2.80205 11.1643 2.00005",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})},5505:function(e,t,r){"use strict";r.r(t),r.d(t,{IconClockHistory:function(){return n}});var s=r(85893);function n(){return(0,s.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M3.52779 4C4.62643 2.7725 6.223 2 8 2C11.3137 2 14 4.68629 14 8C14 9.52167 13.4335 10.911 12.5 11.9687",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"2 2"}),(0,s.jsx)("path",{d:"M3.52779 4C2.57771 5.06151 2 6.46329 2 8C2 11.3137 4.68629 14 8 14C9.79204 14 11.4006 13.2144 12.5 11.9687",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M8 5V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M10.6 9.5L8 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})}},10295:function(e,t,r){"use strict";r.d(t,{s:function(){return n}});var s=r(48821);function n(e){let{key:t,defaultValue:r,validValues:n,...i}=e,l=e=>"string"==typeof e&&n.includes(e);return(0,s.Z)(function(e){let s=e[t];return l(s)?s:r},function(e){return e===r?{[t]:void 0}:{[t]:e}},i)}},94094:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return eM}});var s=r(85893),n=r(31821),i=r(37242),l=r(32546),o=r(77251),a=r(41499),c=r(90869),d=r(32613),u=r(45186),h=r(78528),f=r(10295),x=r(68583);let p=["","processed","pending","rejected","cancelled"];function j(e){let{statusFilterState:t}=e;function r(e){switch(e){case"":return"All statuses";case"processed":return"Approved";case"pending":return"Pending";case"rejected":return"Rejected";case"cancelled":return"Cancelled"}}return(0,s.jsx)(u.f,{content:e=>{let{close:n}=e;return(0,s.jsx)(d.s_,{children:(0,s.jsx)(d.$0,{children:p.map(e=>(0,s.jsx)(d.FB,{href:t.getUrl(e),selected:t.value===e,onOpen:n,children:(0,s.jsx)(d.xv,{children:r(e)})},e))})})},position:"below-align-left-full-width",children:(0,s.jsx)("div",{children:(0,s.jsxs)(o.zt,{color:"gray",children:[(0,s.jsx)(o.xv,{children:r(t.value)}),(0,s.jsx)(h.IconChevronDown,{})]})})})}var C=r(61857),g=r(1801),m=r(15840),_=r(36986),v=r(11969),b=r(18035);function y(){let{activeContext:e}=(0,_.a)(),t=(0,b.Y)(e);return(0,s.jsxs)(l.Oo,{children:[(0,s.jsx)(l.zJ,{onClick:v.BR,children:(0,s.jsx)(C.i,{color:"inherit",size:"M",inline:!1,owner:e})})," / ",(0,s.jsx)(l.At,{href:t,children:"Library"})," / ",(0,s.jsxs)(l.At,{href:t,children:[(0,s.jsx)(g.C,{size:"L",variant:"filled",color:"neutral",iconOnly:!0,children:(0,s.jsx)(m.IconFiles,{})}),(0,s.jsx)("h1",{children:"Contracts"})]})]})}var L=r(4139),w=r.n(L),A=r(15490),M=r(73587),S=r.n(M);function k(){return(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,s.jsx)("title",{children:"Ethereum"}),(0,s.jsx)("path",{d:"M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12Z",fill:"#F2F2F2"}),(0,s.jsx)("path",{d:"M12.0155 2.0292V2.03893C12.0252 2.08759 12.0252 2.14599 12.0252 2.20438V9.22141C12.0155 9.26034 11.9863 9.27007 11.9571 9.28954C11.7527 9.38686 11.5581 9.47445 11.3537 9.56204C11.0714 9.68856 10.7795 9.82482 10.4972 9.95134L9.47534 10.4185C9.1931 10.545 8.91086 10.6715 8.63836 10.7981C8.30746 10.9538 7.96682 11.0998 7.63592 11.2555C7.35369 11.382 7.07145 11.5182 6.77948 11.6448C6.5459 11.7518 6.31232 11.8491 6.08848 11.9562C6.06901 11.9659 6.04955 11.9757 6.03008 11.9757C6.02035 11.9757 6.02035 11.9757 6.01062 11.9659L6.27339 11.528C6.77948 10.691 7.27583 9.86375 7.78191 9.02676C8.31719 8.13139 8.8622 7.23601 9.39748 6.34063C9.89383 5.51338 10.3999 4.68613 10.8963 3.85888C11.2564 3.25547 11.6262 2.65207 11.9863 2.04866C11.996 2.0292 12.0058 2.01946 12.0058 2H12.0155C12.0058 2.00973 12.0155 2.01946 12.0155 2.0292Z",fill:"#8A92B2"}),(0,s.jsx)("path",{d:"M17.9903 11.9659L18 11.9757L16.5693 12.8224L12.073 15.4793C12.0535 15.4891 12.034 15.4988 12.0243 15.5085C11.9951 15.5085 11.9951 15.4793 11.9951 15.4696V15.382V9.36741C11.9951 9.33821 11.9951 9.29928 12.0048 9.27008C12.0146 9.23115 12.0438 9.24089 12.073 9.25062C12.1995 9.30901 12.3357 9.36741 12.4623 9.4258C12.8418 9.60098 13.2214 9.77616 13.601 9.94161C13.9319 10.0876 14.253 10.2433 14.5839 10.3893C14.9148 10.5353 15.2457 10.691 15.5766 10.837C15.8589 10.9635 16.1508 11.0998 16.4331 11.2263C16.7153 11.3528 17.0073 11.4891 17.2895 11.6156C17.5134 11.7129 17.7372 11.82 17.9611 11.9173C17.9611 11.9465 17.9708 11.9562 17.9903 11.9659Z",fill:"#454A75"}),(0,s.jsx)("path",{d:"M12.0146 21.5523C12.0146 21.562 12.0049 21.5718 12.0049 21.5815H11.9952C11.9952 21.562 11.9757 21.5523 11.966 21.5328C11.3626 20.6861 10.7592 19.8297 10.1558 18.983C9.54261 18.1168 8.91974 17.2409 8.3066 16.3747C7.71293 15.5377 7.10952 14.691 6.51585 13.854C6.36013 13.6302 6.20441 13.4161 6.0487 13.1922C6.03896 13.1727 6.02923 13.163 6.00977 13.1338C6.03896 13.1338 6.05843 13.1533 6.06816 13.163C6.91488 13.6594 7.75186 14.1557 8.59857 14.6521C9.57181 15.2263 10.5353 15.8005 11.5085 16.3747L12.0049 16.6667C12.0244 16.6861 12.0244 16.7056 12.0244 16.7251V21.4161C12.0244 21.4647 12.0244 21.5134 12.0146 21.5523Z",fill:"#8A92B2"}),(0,s.jsx)("path",{d:"M6 11.9854V11.9757C6.31144 11.8394 6.61314 11.6934 6.92457 11.5572C7.3236 11.3722 7.72263 11.1971 8.12165 11.0121C8.42336 10.8759 8.73479 10.7299 9.0365 10.5937C9.48418 10.3893 9.92214 10.1946 10.3698 9.99025C10.6715 9.854 10.9732 9.71775 11.2847 9.57176C11.4988 9.47444 11.7226 9.37711 11.9367 9.27979C11.9562 9.27006 11.9854 9.26032 11.9951 9.24086C12.0049 9.24086 12.0049 9.25059 11.9951 9.26032V15.4404C11.9951 15.4696 11.9854 15.4988 12.0049 15.5182C11.9854 15.5474 11.9659 15.5182 11.9562 15.5085C11.8686 15.4598 11.781 15.4112 11.6934 15.3528C9.81508 14.2433 7.92701 13.1241 6.04866 12.0146C6.03893 12.0048 6.01946 11.9951 6 11.9854Z",fill:"#62688F"}),(0,s.jsx)("path",{d:"M17.9707 13.1338H17.9804C17.9804 13.1533 17.961 13.1727 17.9512 13.1922C16.1605 15.7129 14.3697 18.2433 12.579 20.764C12.3941 21.0268 12.1994 21.2895 12.0145 21.5523C12.0048 21.5426 12.0048 21.5328 12.0048 21.5231V21.4647V16.7445V16.6569C12.4135 16.4136 12.8125 16.18 13.2213 15.9367C14.7979 15.0024 16.3746 14.0779 17.9415 13.1436C17.9512 13.1533 17.961 13.1436 17.9707 13.1338Z",fill:"#62688F"}),(0,s.jsx)("path",{d:"M12.0049 9.26034V9.24087V9.18248V2.11678C12.0049 2.08759 11.9952 2.06812 12.0147 2.03893C13.9903 5.31873 15.966 8.5888 17.9319 11.8686C17.9514 11.8978 17.9806 11.9367 17.9903 11.9757C17.8541 11.927 17.7276 11.8589 17.601 11.8005C17.4453 11.7324 17.2799 11.6545 17.1242 11.5864C17.0268 11.5377 16.9198 11.4988 16.8225 11.4501C16.657 11.3723 16.4916 11.3041 16.3261 11.2263C16.2288 11.1873 16.1315 11.1387 16.0341 11.09L15.3918 10.798C15.2847 10.7494 15.1777 10.7007 15.0609 10.6521L14.5937 10.4477C14.4964 10.4088 14.3991 10.3601 14.3018 10.3114L13.6594 10.0195C13.5524 9.9708 13.4453 9.92214 13.3285 9.87348L12.8614 9.6691C12.7543 9.62043 12.657 9.57177 12.55 9.52311C12.365 9.43552 12.1801 9.34793 11.9855 9.27007C12.0147 9.26034 12.0049 9.26034 12.0049 9.26034Z",fill:"#62688F"})]})}function B(e){let{className:t}=e;return(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:t,children:[(0,s.jsx)("title",{children:"xDai"}),(0,s.jsxs)("g",{clipPath:"url(#clip0_144_135)",children:[(0,s.jsx)("path",{d:"M12 23.7C18.4618 23.7 23.7001 18.4617 23.7001 12C23.7001 5.53827 18.4618 0.300003 12 0.300003C5.53832 0.300003 0.300049 5.53827 0.300049 12C0.300049 18.4617 5.53832 23.7 12 23.7Z",fill:"white",stroke:"#DDDDDD"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 4.8H4.80005V7.8H10.8V4.8ZM19.2 4.8H13.2V7.8H19.2V4.8ZM13.2 16.2H16.2V13.2H19.2V16.2V19.2H16.2H13.2V16.2ZM10.8 16.2H7.80005V13.2H4.80005V16.2V19.2H7.80005H10.8V16.2Z",fill:"#62A7A5"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_144_135",children:(0,s.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})}var V=r(34546),I=r(29295),F=r(49704),O=r(41275);function N(e){let{className:t}=e;return(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"-1 -1 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,s.jsx)("title",{children:"Arbitrum"}),(0,s.jsx)("path",{d:"M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12Z",fill:"white"}),(0,s.jsxs)("g",{clipPath:"url(#clip0_191_369)",children:[(0,s.jsx)("path",{d:"M13.8064 11.3203L14.9812 9.32674L18.1479 14.259L18.1494 15.2055L18.1391 8.69208C18.1316 8.53286 18.047 8.38722 17.9122 8.30131L12.2109 5.02188C12.0777 4.95631 11.9085 4.95706 11.7753 5.02395C11.7573 5.03292 11.7404 5.04274 11.7243 5.05344L11.7044 5.06593L6.17052 8.27278L6.14907 8.28253C6.12146 8.29522 6.09352 8.31136 6.06736 8.33011C5.96241 8.40534 5.89275 8.51661 5.87021 8.64143C5.86682 8.66035 5.86431 8.67959 5.86316 8.69906L5.87186 14.0069L8.82146 9.43512C9.19285 8.82892 10.0019 8.63366 10.753 8.64427L11.6346 8.66753L6.44036 16.9976L7.05265 17.3501L12.309 8.676L14.6324 8.66756L9.38956 17.5605L11.5744 18.8172L11.8354 18.9673C11.9459 19.0122 12.076 19.0145 12.1874 18.9742L17.9687 15.6239L16.8634 16.2644L13.8064 11.3203ZM14.2546 17.7762L12.0479 14.3128L13.395 12.027L16.2931 16.5949L14.2546 17.7762Z",fill:"#2D374B"}),(0,s.jsx)("path",{d:"M12.0482 14.3137L14.2549 17.7772L16.2934 16.5958L13.3952 12.0279L12.0482 14.3137Z",fill:"#28A0F0"}),(0,s.jsx)("path",{d:"M18.1494 15.2062L18.1479 14.2597L14.9812 9.32744L13.8064 11.321L16.8634 16.265L17.9687 15.6245C18.0771 15.5364 18.1427 15.4072 18.1496 15.2678L18.1494 15.2062Z",fill:"#28A0F0"}),(0,s.jsx)("path",{d:"M4.88037 16.0991L6.44122 16.9986L11.6354 8.66854L10.7539 8.64527C10.0028 8.63466 9.19364 8.82993 8.82228 9.43613L5.87269 14.0079L4.88037 15.5326V16.0991Z",fill:"white"}),(0,s.jsx)("path",{d:"M14.632 8.66856L12.3086 8.677L7.05225 17.3511L8.88952 18.4089L9.38916 17.5615L14.632 8.66856Z",fill:"white"}),(0,s.jsx)("path",{d:"M19.1286 8.65602C19.1092 8.17012 18.8461 7.72532 18.434 7.46636L12.6581 4.14475C12.2505 3.93949 11.7412 3.93923 11.3329 4.14461C11.2846 4.16896 5.7159 7.39858 5.7159 7.39858C5.63883 7.43555 5.56459 7.47957 5.49477 7.52956C5.1269 7.7932 4.90267 8.20291 4.87964 8.65302V15.532L5.87195 14.0073L5.86329 8.69951C5.86444 8.6801 5.86688 8.66099 5.87034 8.64214C5.89278 8.51726 5.9625 8.40585 6.06748 8.33056C6.09368 8.31181 11.7575 5.03337 11.7755 5.02437C11.9086 4.95751 12.0778 4.95672 12.2111 5.02229L17.9123 8.30166C18.0472 8.38757 18.1318 8.53321 18.1393 8.69243V15.2675C18.1324 15.4069 18.0773 15.5361 17.9688 15.6242L16.8635 16.2647L16.2932 16.5952L14.2548 17.7766L12.1875 18.9746C12.0762 19.0148 11.946 19.0125 11.8356 18.9677L9.38969 17.5609L8.89006 18.4083L11.0881 19.6738C11.1608 19.7152 11.2255 19.7518 11.2787 19.7816C11.3609 19.8277 11.417 19.8586 11.4368 19.8682C11.593 19.9441 11.8178 19.9883 12.0204 19.9883C12.2061 19.9883 12.3872 19.9542 12.5585 19.8871L18.563 16.4097C18.9076 16.1427 19.1104 15.74 19.1286 15.3038V8.65602Z",fill:"#96BEDC"})]}),(0,s.jsx)("path",{d:"M12 23C5.92487 23 1 18.0751 1 12H-1C-1 19.1797 4.8203 25 12 25V23ZM23 12C23 18.0751 18.0751 23 12 23V25C19.1797 25 25 19.1797 25 12H23ZM12 1C18.0751 1 23 5.92487 23 12H25C25 4.8203 19.1797 -1 12 -1V1ZM12 -1C4.8203 -1 -1 4.8203 -1 12H1C1 5.92487 5.92487 1 12 1V-1Z",fill:"#DDDDDD"}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_191_369",children:(0,s.jsx)("rect",{width:"16",height:"16",fill:"white",transform:"translate(4 4)"})})})]})}var Z=r(42643),D=r(70617),E=r(47483),H=r(53123),G=r(44737),U=r(60485),P=r(89880),R=r(81906),X=r(35545),z=r(33935),T=r(40551),J=r(40614);function $(e){let{className:t}=e;return(0,s.jsxs)("svg",{width:"3000",height:"3000",viewBox:"0 0 3000 3000",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,s.jsx)("title",{children:"Zora"}),(0,s.jsx)("mask",{id:"mask0_506_268",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"3000",height:"3000",children:(0,s.jsx)("circle",{cx:"1500",cy:"1500",r:"1500",fill:"#D9D9D9"})}),(0,s.jsxs)("g",{mask:"url(#mask0_506_268)",children:[(0,s.jsx)("rect",{x:"-462.894",y:"-652.133",width:"3971.24",height:"3971.24",fill:"#A1723A"}),(0,s.jsx)("g",{filter:"url(#filter0_f_506_268)",children:(0,s.jsx)("ellipse",{cx:"1614.56",cy:"1336.74",rx:"1600.65",ry:"1600.19",fill:"#531002"})}),(0,s.jsx)("g",{filter:"url(#filter1_f_506_268)",children:(0,s.jsx)("ellipse",{cx:"1823.28",cy:"1095.55",rx:"1262.99",ry:"1263.45",fill:"#2B5DF0"})}),(0,s.jsx)("g",{filter:"url(#filter2_f_506_268)",children:(0,s.jsx)("ellipse",{cx:"1800.09",cy:"1114.1",rx:"1316.79",ry:"1317.25",fill:"url(#paint0_radial_506_268)"})}),(0,s.jsx)("g",{filter:"url(#filter3_f_506_268)",children:(0,s.jsx)("circle",{cx:"1987.94",cy:"809.833",r:"708.72",fill:"#FCB8D4"})}),(0,s.jsx)("g",{filter:"url(#filter4_f_506_268)",children:(0,s.jsx)("circle",{cx:"1987.48",cy:"809.37",r:"298.237",fill:"white"})}),(0,s.jsx)("g",{filter:"url(#filter5_f_506_268)",children:(0,s.jsx)("circle",{cx:"1806.59",cy:"1081.17",r:"2446.66",fill:"url(#paint1_radial_506_268)",fillOpacity:"0.9"})})]}),(0,s.jsxs)("defs",{children:[(0,s.jsxs)("filter",{id:"filter0_f_506_268",x:"-357.638",y:"-635.001",width:"3944.4",height:"3943.48",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,s.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,s.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,s.jsx)("feGaussianBlur",{stdDeviation:"185.776",result:"effect1_foregroundBlur_506_268"})]}),(0,s.jsxs)("filter",{id:"filter1_f_506_268",x:"-182.808",y:"-911.007",width:"4012.18",height:"4013.11",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,s.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,s.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,s.jsx)("feGaussianBlur",{stdDeviation:"371.552",result:"effect1_foregroundBlur_506_268"})]}),(0,s.jsxs)("filter",{id:"filter2_f_506_268",x:"204.638",y:"-481.817",width:"3190.91",height:"3191.84",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,s.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,s.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,s.jsx)("feGaussianBlur",{stdDeviation:"139.332",result:"effect1_foregroundBlur_506_268"})]}),(0,s.jsxs)("filter",{id:"filter3_f_506_268",x:"721.892",y:"-456.215",width:"2532.1",height:"2532.1",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,s.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,s.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,s.jsx)("feGaussianBlur",{stdDeviation:"278.664",result:"effect1_foregroundBlur_506_268"})]}),(0,s.jsxs)("filter",{id:"filter4_f_506_268",x:"1317.69",y:"139.581",width:"1339.58",height:"1339.58",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,s.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,s.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,s.jsx)("feGaussianBlur",{stdDeviation:"185.776",result:"effect1_foregroundBlur_506_268"})]}),(0,s.jsxs)("filter",{id:"filter5_f_506_268",x:"-918.738",y:"-1644.16",width:"5450.65",height:"5450.65",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,s.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,s.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,s.jsx)("feGaussianBlur",{stdDeviation:"139.332",result:"effect1_foregroundBlur_506_268"})]}),(0,s.jsxs)("radialGradient",{id:"paint0_radial_506_268",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(2022.2 742.48) rotate(128.228) scale(2486.93 2486.72)",children:[(0,s.jsx)("stop",{offset:"0.286458",stopColor:"#387AFA"}),(0,s.jsx)("stop",{offset:"0.647782",stopColor:"#387AFA",stopOpacity:"0"})]}),(0,s.jsxs)("radialGradient",{id:"paint1_radial_506_268",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(1806.59 1081.17) rotate(90) scale(2446.66)",children:[(0,s.jsx)("stop",{offset:"0.598958",stopOpacity:"0"}),(0,s.jsx)("stop",{offset:"0.671875"}),(0,s.jsx)("stop",{offset:"0.734375",stopOpacity:"0"})]})]})]})}var q=r(84937),W=r(9794),Y=r(54838);function Q(e){let{blockchain:t}=e;switch(t){case q.OuM.Ethereum:return(0,s.jsx)(k,{});case q.OuM.XDai:return(0,s.jsx)(B,{});case q.OuM.Polygon:return(0,s.jsx)(V.Z,{});case q.OuM.ZkEvm:return(0,s.jsx)(I._,{});case q.OuM.Optimism:return(0,s.jsx)(F.Z,{});case q.OuM.Bsc:return(0,s.jsx)(O.Z,{});case q.OuM.Arbitrum:return(0,s.jsx)(N,{});case q.OuM.Avalanche:return(0,s.jsx)(Z.Z,{});case q.OuM.Goerli:return(0,s.jsx)(E.I,{});case q.OuM.Fantom:return(0,s.jsx)(D.Z,{});case q.OuM.Mantle:return(0,s.jsx)(P.B,{});case q.OuM.Scroll:return(0,s.jsx)(R.N,{});case q.OuM.Tron:return(0,s.jsx)(z.$,{});case q.OuM.Celo:return(0,s.jsx)(H.G,{});case q.OuM.Base:return(0,s.jsx)(G.o,{});case q.OuM.Blast:return(0,s.jsx)(U.w,{});case q.OuM.ZkSync:return(0,s.jsx)(J.V,{});case q.OuM.Zora:return(0,s.jsx)($,{});case q.OuM.Linea:return(0,s.jsx)(X.s,{});case q.OuM.Sepolia:return(0,s.jsx)(W.H,{});case q.OuM.Sei:return(0,s.jsx)(Y.B,{});default:(0,T.U)(t)}}var K=r(27073),ee=r(15616),et=r.n(ee),er=r(41664),es=r.n(er),en=r(47730),ei=r(51681);function el(e){let t=(0,K.iP)().width>699;return(0,s.jsxs)("div",{className:S().wrapper,children:[(0,s.jsxs)("table",{className:S().table,children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[t&&(0,s.jsx)("td",{className:S().avatarColumn}),(0,s.jsxs)("td",{children:["Contract/",(0,s.jsx)("wbr",{}),"Address"]}),(0,s.jsx)("td",{children:"Project"}),(0,s.jsxs)("td",{children:["Status/",(0,s.jsx)("wbr",{}),"Submitted at"]}),(0,s.jsx)("td",{})]})}),(0,s.jsx)("tbody",{children:e.contractSubmissions.map(e=>(0,s.jsxs)("tr",{className:e.deletedAt&&S().deletedSubmission,children:[t&&(0,s.jsx)("td",{className:S().avatarColumn,children:(0,s.jsx)(m.IconFiles,{})}),(0,s.jsx)("td",{children:(0,s.jsxs)("div",{className:S().multiline,children:[(0,s.jsxs)("div",{className:S().contractName,children:[e.status===q.X_x.Processed?(0,s.jsx)(es(),{href:"/queries?category=decoded_project&namespace=".concat(e.projectName),children:e.contractName}):(0,s.jsx)(s.Fragment,{children:e.contractName}),(0,s.jsx)(Q,{blockchain:e.blockchain})]}),(0,s.jsx)("div",{className:S().contractAddress,children:t?(0,s.jsx)(s.Fragment,{children:e.address}):(0,s.jsx)(s.Fragment,{children:"".concat(e.address.slice(0,4),"...").concat(e.address.slice(-4))})})]})}),(0,s.jsx)("td",{className:S().project,children:e.projectName}),(0,s.jsx)("td",{children:(0,s.jsxs)("div",{className:S().multiline,children:[(0,s.jsx)(eo,{contractSubmission:e}),t&&(0,s.jsx)("div",{className:S().date,children:et()(new Date(e.createdAt),"yyyy-MM-dd HH:mm")})]})}),(0,s.jsx)("td",{children:(0,s.jsx)("div",{className:S().multiline,children:null!==e.deletedAt&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(en.u,{label:"This submission is no longer decoded",position:"below-align-left",children:(0,s.jsx)("div",{children:(0,s.jsx)(g.C,{size:"L",variant:"filled",color:"error",children:"Deleted"})})}),t&&(0,s.jsx)("div",{className:S().date,children:et()(new Date(e.deletedAt),"yyyy-MM-dd HH:mm")})]})})})]},e.id))})]}),(0,s.jsx)(ei.df,{onChange:t=>{t&&0!==e.contractSubmissions.length&&e.fetchMore()},children:(0,s.jsx)("div",{})})]})}function eo(e){let{status:t}=e.contractSubmission;switch(t){case q.X_x.Pending:case q.X_x.Approved:return(0,s.jsx)(g.C,{size:"L",variant:"filled",color:"neutral",children:"Pending"});case q.X_x.InProgress:return(0,s.jsx)(en.u,{position:"below-align-left",label:"We've looked at the contract but we are trying to resolve some issues before we can start using it for decoding.",children:(0,s.jsx)("div",{children:(0,s.jsx)(g.C,{size:"L",variant:"filled",color:"brand-blue",children:"In progress"})})});case q.X_x.Cancelled:return(0,s.jsx)(g.C,{size:"L",variant:"filled",color:"error",children:"Cancelled"});case q.X_x.Rejected:return(0,s.jsx)(en.u,{label:e.contractSubmission.comment,hidden:!e.contractSubmission.comment,position:"below-align-left",children:(0,s.jsx)("div",{children:(0,s.jsx)(g.C,{size:"L",variant:"filled",color:"error",children:"Rejected"})})});case q.X_x.Processed:return(0,s.jsx)(g.C,{size:"L",variant:"filled",color:"success",children:"Approved"})}}var ea=r(82729),ec=r(51577),ed=r(57831);function eu(){let e=(0,ea._)(["\nquery ContractSubmissions($filters: ContractSubmissionFiltersInput!, $pagination: PaginationInput!, $orderBy: [OrderByInput!]){\n contractSubmissions(filters: $filters, pagination: $pagination, orderBy: $orderBy) {\n edges {\n node {\n id\n projectName\n contractName\n address\n abi\n blockchain\n isProxy\n isManualAbi\n hasMultipleInstances\n isCreatedByFactory\n cognitoUserId\n resubmissionReason\n status\n comment\n createdAt\n deletedAt\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n endCursor\n }\n }\n}\n"]);return eu=function(){return e},e}(0,r(39137).Z)(eu());var eh=r(42665),ef=r(43953),ex=r(68357),ep=r(54173),ej=r(7395),eC=r(48884),eg=r.n(eC),em=r(25675),e_=r.n(em),ev={src:"/_next/static/media/Library_Empty_Contracts.f94ed77f.png",height:732,width:1037,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAElBMVEVMaXH0XkDzXz3xXj32YD7yYD6jpJwJAAAABnRSTlMAESc4WneqjstNAAAACXBIWXMAACE4AAAhOAFFljFgAAAAIklEQVR4nGNggANGJiZGMM3MysIIYjIyMTMyMkPEoHJQAAAEugAqg6wBcQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:6},eb=r(11163);function ey(e){var t,r;let n=(0,eb.useRouter)(),{filter:i}=e,{result:l,fetchMore:o}=function(e){let t=(0,ed.kP)(),r=(0,q.G6J)({skip:!t,context:{session:t},variables:{filters:{cognitoUserId:{equals:t.sub},...""!==e.filter.freetext?{searchQuery:{query:e.filter.freetext}}:{},status:{in:function(){let t=e.filter.status;switch(t){case"":return null;case"cancelled":return[q.X_x.Cancelled];case"rejected":return[q.X_x.Rejected];case"processed":return[q.X_x.Processed];case"pending":return[q.X_x.Pending,q.X_x.Approved,q.X_x.InProgress]}}()}},pagination:{first:20}},onError:ec.k.error,fetchPolicy:"cache-and-network"});return{result:r.loading?{status:"loading",isIdle:!1,isLoading:!0,isError:!1,isSuccess:!1,data:void 0}:r.error?{status:"error",isIdle:!1,isLoading:!1,isError:!0,isSuccess:!1,data:void 0}:void 0!==r.data?{status:"success",isIdle:!1,isLoading:!1,isError:!1,isSuccess:!0,data:r.data}:{status:"idle",isIdle:!0,isLoading:!1,isError:!1,isSuccess:!1,data:void 0},fetchMore:()=>{r.data&&r.variables&&r.data.contractSubmissions.pageInfo.hasNextPage&&r.fetchMore({variables:{...r.variables,pagination:{...r.variables.pagination,first:r.variables.pagination.first,after:r.data.contractSubmissions.pageInfo.endCursor}}})}}}({filter:i}),a=""===i.freetext&&""===i.status,c=null!==(r=null===(t=l.data)||void 0===t?void 0:t.contractSubmissions.edges.map(e=>{let{node:t}=e;return t}))&&void 0!==r?r:[],d="success"===l.status&&0===c.length;return(0,s.jsx)("div",{className:w().page,children:(0,s.jsx)("section",{children:(()=>{switch(l.status){case"idle":case"loading":return(0,s.jsx)(A.g,{});case"error":return(0,s.jsx)("section",{children:"Error"});case"success":if(a&&d)return(0,s.jsx)(ej.u,{title:"No contract submissions yet!",description:"When you submit contracts they will show up here.",illustration:(0,s.jsx)(e_(),{alt:"",src:ev,className:eg().emptyStateImage}),actions:(0,s.jsx)(ep.A,{theme:"secondary",size:"M",href:"/contracts/new",children:"Submit contracts"})});if(d)return(0,s.jsx)(ej.u,{title:"There are no results for your filters",illustration:(0,s.jsx)(e_(),{alt:"",src:ev,className:eg().emptyStateImage}),actions:(0,s.jsx)(ep.A,{theme:"secondary-light",size:"M",shallow:!0,href:{pathname:n.pathname,query:{handle:n.query.handle}},children:"Show all"})});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(el,{fetchMore:o,contractSubmissions:c}),(0,s.jsx)(eh.P,{level:"info",title:"Contract submissions normally take a few days to get processed.",dismissable:!1,actions:(0,s.jsxs)(ex.L,{size:"M",theme:"primary",href:"/docs/app/decoding-contracts/",children:["Open docs ",(0,s.jsx)(ef.IconArrowRight,{})]})})]})}})()})})}var eL=r(41042),ew=r(69339),eA=r(87257),eM=(0,_.c)(function(){let e=(0,ew.L)(),t=c.e(),r=function(){let[e,t,r]=(0,f.s)({key:"publicness",defaultValue:"",validValues:p,onChangeTransform:x.X});return{value:e,setState:t,getUrl:r}}();switch((0,eL.e)(e.value,{getUrl:e=>(0,b.Y)(e)}),e.status){case"LOADING":return(0,s.jsx)(i.h,{});case"INVALID":return(0,s.jsx)(eA.C,{urlContext:e.invalidValue})}let d=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.E,{activePage:"Contracts"}),(0,s.jsx)(o.$0,{title:"Show",children:(0,s.jsx)(j,{statusFilterState:r})}),(0,s.jsx)(c.p,{placeholder:"Search contracts",searchStringState:t})]});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.yG,{title:"Contracts"}),(0,s.jsxs)(l.T3,{children:[(0,s.jsx)(l.h4,{renderLibraryMobileMenu:()=>d}),(0,s.jsxs)(l.or,{children:[(0,s.jsx)(o.im,{children:d}),(0,s.jsxs)(l.JH,{children:[(0,s.jsxs)(l.bU,{children:[(0,s.jsx)(y,{}),(0,s.jsx)("div",{children:(0,s.jsx)(ep.A,{theme:"primary-light",size:"M",href:"/contracts/new",children:"Add contract"})})]}),(0,s.jsx)(l.Kb,{children:(0,s.jsx)(ey,{filter:{freetext:t.debouncedValue,status:r.value}})})]})]})]})]})})},40551:function(e,t,r){"use strict";function s(e){throw Error("Unreachable code reached")}r.d(t,{U:function(){return s}})},73587:function(e){e.exports={wrapper:"ContractSubmissionList_wrapper__5oFPL",table:"ContractSubmissionList_table__GAf2E",avatarColumn:"ContractSubmissionList_avatarColumn__PaEh0",multiline:"ContractSubmissionList_multiline__nTcEA",contractName:"ContractSubmissionList_contractName__V8NWt",contractAddress:"ContractSubmissionList_contractAddress__hvC5X",project:"ContractSubmissionList_project__41Vx_",date:"ContractSubmissionList_date__7ZO6y",deletedSubmission:"ContractSubmissionList_deletedSubmission__xH7QB"}},4139:function(e){e.exports={page:"ContractSubmissions_page__1_Jic",emptyState:"ContractSubmissions_emptyState__VDA6J",searchAndFilters:"ContractSubmissions_searchAndFilters__mBjGn",newAndfilter:"ContractSubmissions_newAndfilter__EpGfF"}},51681:function(e,t,r){"use strict";r.d(t,{YD:function(){return f},df:function(){return h}});var s=r(67294),n=Object.defineProperty,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,l=(e,t,r)=>(i(e,"symbol"!=typeof t?t+"":t,r),r),o=new Map,a=new WeakMap,c=0,d=void 0;function u(e,t,r={},s=d){if(void 0===window.IntersectionObserver&&void 0!==s){let n=e.getBoundingClientRect();return t(s,{isIntersecting:s,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:n,intersectionRect:n,rootBounds:n}),()=>{}}let{id:n,observer:i,elements:l}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var r;return`${t}_${"root"===t?(r=e.root)?(a.has(r)||(c+=1,a.set(r,c.toString())),a.get(r)):"0":e[t]}`}).toString(),r=o.get(t);if(!r){let s;let n=new Map,i=new IntersectionObserver(t=>{t.forEach(t=>{var r;let i=t.isIntersecting&&s.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(r=n.get(t.target))||r.forEach(e=>{e(i,t)})})},e);s=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:i,elements:n},o.set(t,r)}return r}(r),u=l.get(e)||[];return l.has(e)||l.set(e,u),u.push(t),i.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(l.delete(e),i.unobserve(e)),0===l.size&&(i.disconnect(),o.delete(n))}}var h=class extends s.Component{constructor(e){super(e),l(this,"node",null),l(this,"_unobserveCb",null),l(this,"handleNode",e=>{!this.node||(this.unobserve(),e||this.props.triggerOnce||this.props.skip||this.setState({inView:!!this.props.initialInView,entry:void 0})),this.node=e||null,this.observeNode()}),l(this,"handleChange",(e,t)=>{e&&this.props.triggerOnce&&this.unobserve(),"function"!=typeof this.props.children||this.setState({inView:e,entry:t}),this.props.onChange&&this.props.onChange(e,t)}),this.state={inView:!!e.initialInView,entry:void 0}}componentDidMount(){this.unobserve(),this.observeNode()}componentDidUpdate(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve()}observeNode(){if(!this.node||this.props.skip)return;let{threshold:e,root:t,rootMargin:r,trackVisibility:s,delay:n,fallbackInView:i}=this.props;this._unobserveCb=u(this.node,this.handleChange,{threshold:e,root:t,rootMargin:r,trackVisibility:s,delay:n},i)}unobserve(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}render(){let{children:e}=this.props;if("function"==typeof e){let{inView:t,entry:r}=this.state;return e({inView:t,entry:r,ref:this.handleNode})}let{as:t,triggerOnce:r,threshold:n,root:i,rootMargin:l,onChange:o,skip:a,trackVisibility:c,delay:d,initialInView:u,fallbackInView:h,...f}=this.props;return s.createElement(t||"div",{ref:this.handleNode,...f},e)}};function f({threshold:e,delay:t,trackVisibility:r,rootMargin:n,root:i,triggerOnce:l,skip:o,initialInView:a,fallbackInView:c,onChange:d}={}){var h;let[f,x]=s.useState(null),p=s.useRef(),[j,C]=s.useState({inView:!!a,entry:void 0});p.current=d,s.useEffect(()=>{let s;if(!o&&f)return s=u(f,(e,t)=>{C({inView:e,entry:t}),p.current&&p.current(e,t),t.isIntersecting&&l&&s&&(s(),s=void 0)},{root:i,rootMargin:n,threshold:e,trackVisibility:r,delay:t},c),()=>{s&&s()}},[Array.isArray(e)?e.toString():e,f,i,n,l,o,r,c,t]);let g=null==(h=j.entry)?void 0:h.target,m=s.useRef();f||!g||l||o||m.current===g||(m.current=g,C({inView:!!a,entry:void 0}));let _=[x,j.inView,j.entry];return _.ref=_[0],_.inView=_[1],_.entry=_[2],_}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9225,3318,8110,3295,777,6746,5675,1444,9002,9938,9694,1532,492,9774,2888,179],function(){return t(73611),t(53637)}),_N_E=e.O()}]);
//# sourceMappingURL=contracts-c5c5fd3b811c0068.js.map