1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[701],{43383:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/relay",function(){return s(77813)}])},98320:function(e,t,s){"use strict";s.d(t,{m:function(){return a}});var n=s(67294),l=s(96019);let a=()=>{let[e,t]=(0,n.useState)(l.O.none);return(0,n.useEffect)(()=>{let e=setInterval(()=>{t(l.O.some(new Date))},1e3);return()=>clearInterval(e)},[]),e}},77813:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return en},default:function(){return el}});var n=s(85893),l=s(9008),a=s.n(l),r=s(4298),i=s.n(r),o=s(46756),c=s(84849);s(36860);var d=s(71637),x=s(94191),h=s(42857),u=s(6523),m=s(58739),f=s(48613),p=s(67294),j=s(83454);let v=()=>{let e=j.env.NEXT_PUBLIC_NETWORK;switch(e){case"mainnet":return"mainnet";case"holesky":return"holesky";case"hoodi":return"hoodi";default:return console.warn("no NEXT_PUBLIC_NETWORK in env, defaulting to mainnet"),"mainnet"}},g=()=>{let e=v();switch(e){case"holesky":return"https://relay-stag.ultrasound.money";case"hoodi":return"https://relay-hoodi.ultrasound.money";default:return"https://relay.ultrasound.money"}},y=()=>{let e=v(),t=window.location.protocol;new URL(g()).host;let s=window.location.host;return"".concat(t,"//").concat("mainnet"===e?"0xa1559ace749633b997cb3fdacffb890aeebdb0f5a3b6aaa7eeeaf1a38af0a8fe88b9e4b1f61f236d2e64d95733327a62":"0xb1559beef7b5ba3127485bbbb090362d9f497ba64e177ee2c8e7db74746306efad687f2cf8574e38d70067d40ef136dc","@").concat(s)},w=()=>{let e=v();new URL(g()).host;let t=window.location.host;return{pubkey:"mainnet"===e?"0xa1559...":"0xb1559...",host:t}};var b=s(3680),N=s(69443),k=s(89802);let Z=()=>{let[e,t]=(0,p.useState)(!1),[s,l]=(0,p.useState)(""),[a,r]=(0,p.useState)({pubkey:"",host:""});return(0,p.useEffect)(()=>
1{l(y()),r(w())},[]),(0,n.jsxs)(N.K,{className:"relative w-full overflow-hidden",children:[(0,n.jsx)("div",{className:"\n pointer-events-none absolute\n top-10 left-0 h-full\n w-full opacity-[0.3]\n blur-[70px]\n will-change-transform\n md:left-20\n md:opacity-[0.35]\n ",children:(0,n.jsx)("div",{className:"\n pointer-events-none\n absolute h-4/5 w-4/5 rounded-[35%] bg-[#243AFF]\n md:h-3/5\n md:w-3/5\n "})}),(0,n.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,n.jsx)(k.Z,{children:"relay address"}),(0,n.jsx)("p",{className:"\n font-inter font-light text-green-400\n ".concat(e?"visible":"invisible","\n "),children:"copied!"})]}),(0,n.jsxs)("div",{className:"\n mt-2 mb-2 flex flex-col items-center justify-between\n xs:flex-col sm:flex-row\n lg:flex-col xl:flex-row\n ",children:[(0,n.jsxs)("p",{className:"\n mb-3 break-all font-roboto font-light\n sm:mb-0 sm:grow sm:text-center lg:mb-3 xl:mb-0\n ",children:[(0,n.jsx)("span",{className:"bg-gradient-to-r from-orange-400 to-yellow-300 bg-clip-text text-transparent",children:a.pubkey}),(0,n.jsx)("span",{children:"@"}),(0,n.jsx)("span",{className:"bg-gradient-to-r from-cyan-300 to-indigo-500 bg-clip-text text-transparent",children:a.host})]}),(0,n.jsx)("div",{onClick(){navigator.clipboard.writeText(s).catch(e=>{console.error("failed to write to clipboard",e)}),t(!0)},children:(0,n.jsx)(b.Z,{children:"copy"})})]})]})},E=()=>{let[e,t]=(0,p.useState)(""),[s,l]=(0,p.useState)("initial"),a=g(),r=()=>{e.length>0&&fetch("".concat(a,"/api/validators/").concat(e)).then(e=>e.json()).then(e=>{let{status:t}=e;t?l("registered"):l("not registered")}).catch(e=>{console.error("failed to fetch registration status",e)})};return(0,n.jsxs)(N.K,{className:"w-full",children:[(0,n.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,n.jsx)(k.Z,{children:"check registration"}),(0,n.jsx)("p",{className:"\n font-inter font-light\n ".concat("initial"===s?"invisible":"visible","\n ").concat("registered"===s?"text-green-400":"text-red-400","\n "),children:"".concat(s,"!")})]}),(0,n.jsxs)("div",{className:"mt-2 flex flex-row items-center justify-between",children:[(0,n.jsx)("input",{className:"\n mr-4 w-full rounded-full\n border border-slateus-500\n bg-slateus-800 py-1.5 pl-4\n font-inter text-xs font-light\n text-white placeholder-slateus-400 outline-none\n focus-within:border-slateus-400\n md:py-2 md:text-base\n ",placeholder:"validator address",value:e,onChange:e=>t(e.target.value)}),(0,n.jsx)("div",{onClick:r,children:(0,n.jsx)(b.Z,{children:"check"})})]})]})};var _=s(11699),P=s(90917),S=s(90079),q=s(7569),C=s(12597),A=s(23195),T=s.n(A);let U=(()=>{let e=v();return"holesky"===e?"https://holesky.etherscan.io":"hoodi"===e?"https://hoodi.etherscan.io":"https://etherscan.io"})(),I=e=>{let{blockNumber:t,insertedAt:s,value:l}=e,[a,r]=(0,p.useState)(),i=l.toString().substring(0,4);(0,p.useEffect)(()=>{let e=setInterval(()=>{r(new Date)},1e3);return()=>clearInterval(e)},[s]);let o=void 0===a?void 0:C.cj(a,s);return(0,n.jsx)("a",{target:"_blank",rel:"noreferrer",href:"".concat(U,"/block/").concat(t),children:(0,n.jsxs)("li",{className:"grid grid-cols-3 hover:opacity-60",children:[(0,n.jsx)(S.Z,{color:"text-slateus-100",children:(0,n.jsx)(q.Z,{width:"7rem",children:C.x_(t)})}),(0,n.jsxs)("div",{className:"mr-1 text-right",children:[(0,n.jsx)(P.k$,{font:"font-roboto",children:(0,n.jsx)(q.Z,{width:"1rem",children:i})}),(0,n.jsxs)("div",{className:"hidden md:inline",children:[(0,n.jsx)("span",{className:"font-inter",children:"â"}),(0,n.jsx)("span",{className:"font-extralight font-roboto text-slateus-200",children:"ETH"})]})]}),(0,n.jsx)("div",{className:"text-right",children:(0,n.jsx)(S.Z,{unitPostfix:"ago",unitPostfixColor:"text-slateus-100",children:(0,n.jsx)(q.Z,{width:"2rem",children:o})})})]})},t)},O=(e,t)=>{let s=_.Z(new Date,t);return e/Math.round(s/12)},R=e=>{let{payloadCount:t,totalValue:s,firstPayloadAt:l,payloads:a}=e,r=C.vJ(O(t,l)),i=C.cI(s);return(0,n.jsxs)("div",{className:"flex flex-col gap-y-4",children:[(0,n.jsxs)(N.K,{children:[(0,n.jsx)(k.Z,{children:"inclusions"}),(0,n.jsxs)("p",{className:"mt-4 text-3xl font-extralight tracking-wide",children:[(0,n.jsx)("span",{className:"text-white font-inter",children:C.UY(t)}),(0,n.jsx)("span",{children:" "}),(0,n.jsx)("span",{className:"font-roboto text-slateus-200",children:"blocks"})]}),(0,n.jsxs)("div",{className:"\n mt-4 flex flex-row justify-between\n font-inter text-xs font-light uppercase\n tracking-widest text-slateus-400\n ",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"text-slateus-200",children:r}),(0,n.jsx)("span",{children:" of\xa0blocks"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"text-slateus-200",children:"".concat(i," ETH")}),(0,n.jsx)("span",{children:" total\xa0value"})]})]})]}),(0,n.jsx)(N.K,{children:(0,n.jsxs)("div",{className:"flex flex-col gap-y-4",children:[(0,n.jsxs)("div",{className:"grid grid-cols-3",children:[(0,n.jsx)(N.P,{children:"block"}),(0,n.jsx)(N.P,{className:"text-right",children:"value"}),(0,n.jsx)(N.P,{className:"-mr-1 text-right",children:"inclusion"})]}),(0,n.jsx)("ul",{className:"\n -mr-3 flex max-h-[184px]\n flex-col gap-y-4 overflow-y-auto\n pr-1 md:max-h-[214px]\n ".concat(T()["styled-scrollbar-vertical"],"\n ").concat(T()["styled-scrollbar"],"\n "),children:a.map(I)})]})})]})};var K=s(96019),V=s(98320);let W=(()=>{let e=v();return"holesky"===e?"https://holesky.beaconcha.in":"hoodi"===e?"https://hoodi.beaconcha.in":"https://beaconcha.in"})(),X=e=>{let{insertedAt:t,index:s}=e,l=(0,V.m)(),a=(0,K.zG)(l,K.O.map(e=>"".concat(C.cj(e,t)," ago")));return(0,n.jsx)("a",{target:"_blank",rel:"noreferrer",href:"".concat(W,"/validator/").concat(s),children:(0,n.jsxs)("li",{className:"grid grid-cols-2 hover:opacity-60",children:[(0,n.jsx)("div",{className:"mr-1",children:(0,n.jsx)(P.k$,{font:"font-roboto",children:(0,n.jsx)(q.Z,{width:"1rem",children:C.UY(parseInt(s))})})}),(0,n.jsx)("div",{className:"text-right",children:(0,n.jsx)(P.k$,{font:"font-roboto",children:(0,n.jsx)(q.Z,{width:"2rem",children:K.O.toUndefined(a)})})})]})},s)},B=e=>{let{validatorCount:t,knownValidatorCount:s,validators:l}=e,a=C.vJ(t/s);return(0,n.jsxs)("div",{className:"flex flex-col gap-y-4",children:[(0,n.jsxs)(N.K,{children:[(0,n.jsx)(k.Z,{children:"registrations"}),(0,n.jsxs)("p",{className:"mt-4 text-3xl font-extralight tracking-wide",children:[(0,n.jsx)("span",{className:"font-inter text-white",children:C.UY(t)}),(0,n.jsx)("span",{children:" "}),(0,n.jsx)("span",{className:"font-roboto text-slateus-200",children:"val
1idators"})]}),(0,n.jsx)("div",{className:"\n mt-4 flex flex-row justify-between\n font-inter text-xs font-light uppercase\n tracking-widest text-slateus-400\n ",children:(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"text-slateus-200",children:a}),(0,n.jsx)("span",{children:" of\xa0validators"})]})})]}),(0,n.jsx)(N.K,{children:(0,n.jsxs)("div",{className:"flex flex-col gap-y-4",children:[(0,n.jsxs)("div",{className:"grid grid-cols-2",children:[(0,n.jsx)(N.P,{children:"validator"}),(0,n.jsx)(N.P,{className:"-mr-1 text-right",children:"registration"})]}),l.length>0?(0,n.jsx)("ul",{className:"\n -mr-3 flex max-h-[184px]\n flex-col gap-y-4 overflow-y-auto\n pr-1 md:max-h-[214px]\n ".concat(T()["styled-scrollbar-vertical"],"\n ").concat(T()["styled-scrollbar"],"\n "),children:l.map(X)}):(0,n.jsx)("div",{className:"flex h-[184px] items-center justify-center md:h-[214px]",children:(0,n.jsx)(P.k$,{font:"font-roboto",color:"text-slateus-400",children:"registrations unavailable"})})]})})]})};var H=s(82770),L=s(44759),M=s(47387),D=JSON.parse('[{"question":"What is the ultra sound relay?","answer":"The ultra sound relay is a credibly-neutral and permissionless relayâa public good from the ultrasound.money team."},{"question":"What is a credibly-neutral relay?","answer":"A credibly-neutral relay only validates blocks against consensus rules as in enshrined proposer-builder separation."},{"question":"What is enshrined proposer-builder separation?","answer":"Enshrined proposer-builder separation (PBS) is an in-consensus PBS without relays, removing relay weak censorship."},{"question":"What is weak censorship?","answer":"Weak censorship is mild transaction censorship which increases on-chain inclusion delay of censored transactions."},{"question":"How delayed are censored transactions?","answer":"Censorship in X% of blocks yields 1/(1-X%) larger average delay. If X% = 80%, delay grows 5x from 12 sec to 1 min."},{"question":"Anything else?","answer":"The relay operators abstain from searching and block building, and commit to self-cap the relay to 1/3 of blocks."}]');let J=e=>{let t=e.getBoundingClientRect().y+window.scrollY,s=e.clientHeight;return t-window.innerHeight/2+s/2},Y=()=>{var e,t,s,l,a,r,i,o,c,d,x,h;let{changeFaqPosition:u}=p.useContext(M.k),m=p.useRef(null);return p.useEffect(()=>{let e=()=>{if(m.current){let e=J(m.current);u(e)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[u]),(0,n.jsx)("section",{className:"mt-64",ref:m,"data-aos":"fade-up","data-aos-anchor-placement":"top-center","data-aos-delay":"50","data-aos-duration":"1000","data-aos-easing":"ease-in-out",id:"faq",children:(0,n.jsxs)("div",{className:"max-w-3xl md:m-auto md:px-4 lg:px-0 ",children:[(0,n.jsx)("div",{className:"block pb-8",children:(0,n.jsx)(L.N,{children:"q&a"})}),(0,n.jsxs)("div",{className:"w-full px-4 md:px-8 lg:px-0",children:[(0,n.jsx)(H.Z,{title:null===(e=D[0])||void 0===e?void 0:e.question,text:null===(t=D[0])||void 0===t?void 0:t.answer}),(0,n.jsx)("div",{className:"w-full bg-slateus-400",style:{height:"1px",opacity:"0.3"}}),(0,n.jsx)(H.Z,{title:null===(s=D[1])||void 0===s?void 0:s.question,text:null===(l=D[1])||void 0===l?void 0:l.answer}),(0,n.jsx)("div",{className:"w-full bg-slateus-400",style:{height:"1px",opacity:"0.3"}}),(0,n.jsx)(H.Z,{title:null===(a=D[2])||void 0===a?void 0:a.question,text:null===(r=D[2])||void 0===r?void 0:r.answer}),(0,n.jsx)("div",{className:"w-full bg-slateus-400",style:{height:"1px",opacity:"0.3"}}),(0,n.jsx)(H.Z,{title:null===(i=D[3])||void 0===i?void 0:i.question,text:null===(o=D[3])||void 0===o?void 0:o.answer}),(0,n.jsx)("div",{className:"w-full bg-slateus-400",style:{height:"1px",opacity:"0.3"}}),(0,n.jsx)(H.Z,{title:null===(c=D[4])||void 0===c?void 0:c.question,text:null===(d=D[4])||void 0===d?void 0:d.answer}),(0,n.jsx)("div",{className:"w-full bg-slateus-400",style:{height:"1px",opacity:"0.3"}}),(0,n.jsx)(H.Z,{title:null===(x=D[5])||void 0===x?void 0:x.question,text:null===(h=D[5])||void 0===h?void 0:h.answer})]})]})})},$=v(),z=e=>{let{network:t}=e,s="\n mt-4 text-center font-inter text-xl\n font-extralight tracking-wide\n text-slateus-400 sm:mt-0\n ";switch(t){case"mainnet":return null;case"holesky":return(0,n.jsx)("div",{className:s,children:"holesky testnet"});case"hoodi":return(0,n.jsx)("div",{className:s,children:"hoodi testnet"})}},F=e=>{let{payloadStats:t,payloads:s,validatorStats:l,validators:a}=e,{featureFlags:r,setFlag:i}=(0,m.gV)();return(0,n.jsx)(m.JN.Provider,{value:r,children:(0,n.jsxs)(c.y,{baseColor:d.Z.slateus500,highlightColor:"#565b7f",enableAnimation:!0,children:[(0,n.jsx)(h.Z,{}),(0,n.jsxs)("div",{className:"container mx-auto",children:[(0,n.jsx)(o.Z,{children:(0,n.jsx)(x.Z,{setFlag:i})}),(0,n.jsx)("div",{className:"h-[48.5px] md:h-[68px]"}),(0,n.jsx)(u.Z,{children:"ultra sound relay"}),(0,n.jsx)(z,{network:$}),(0,n.jsxs)("div",{className:"mt-16 mb-32 flex flex-col gap-y-4 xs:px-4 md:px-16",children:[(0,n.jsxs)("div",{className:"mt-16 flex flex-col gap-x-4 gap-y-4 lg:flex-row",children:[(0,n.jsx)("div",{className:"flex lg:w-1/2",children:(0,n.jsx)(Z,{})}),(0,n.jsx)("div",{className:"flex lg:w-1/2",children:(0,n.jsx)(E,{})})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-x-4 gap-y-4 lg:flex-row",children:[(0,n.jsx)("div",{className:"flex flex-col lg:w-1/2",children:(0,n.jsx)(R,{payloadCount:t.count,totalValue:t.totalValue,firstPayloadAt:new Date(t.firstPayloadAt),payloads:s})}),(0,n.jsx)("div",{className:"flex flex-col lg:w-1/2",children:(0,n.jsx)(B,{...l,validators:a})})]})]}),(0,n.jsx)(Y,{}),(0,n.jsx)(f.Z,{})]})]})})};var G=s(23855);let Q=e=>({...e,insertedAt:(0,G.Z)(e.insertedAt)}),ee=e=>({...e,insertedAt:(0,G.Z)(e.insertedAt)}),et=e=>({...e,firstPayloadAt:(0,G.Z)(e.firstPayloadAt)}),es=e=>{let{payloadStats:t,payloads:s,validatorStats:l,validators:r}
1=e,c={payloadStats:et(t),payloads:s.map(Q),validatorStats:l,validators:r.map(ee)};return(0,n.jsxs)(o.Z,{children:[(0,n.jsxs)(a(),{children:[(0,n.jsx)("title",{children:"Ultra Sound Relay"}),(0,n.jsx)("meta",{property:"og:title",content:"Ultra Sound Relay"}),(0,n.jsx)("meta",{name:"description",content:"Permissionless, neutral, and censorship free MEV relay"}),(0,n.jsx)("meta",{name:"keywords",content:"ultra sound relay, ethereum, ETH, MEV, MEV Boost Relay"}),(0,n.jsx)("meta",{property:"og:description",content:"Permissionless, neutral, and censorship free MEV relay"}),(0,n.jsx)("meta",{property:"og:url",content:"https://relay.ultrasound.money"})]}),(0,n.jsx)(i(),{defer:!0,"data-domain":"relay.ultrasound.money",src:"https://plausible.io/js/script.js"}),(0,n.jsx)(F,{...c})]})};var en=!0,el=es}},function(e){e.O(0,[550,614,774,888,179],function(){return e(e.s=43383)}),_N_E=e.O()}]); 2//# sourceMappingURL=relay-752edc07e74d4215.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.