PageSourceSearch

https://solana.org/_next/static/chunks/pages/delegation-dashboard-6c69f9d7ae1d2144.js

js solana.org collected 2026-09-24 10:19:50 UTC 9,409 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4685],{1931:(t,e,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/delegation-dashboard",function(){return i(90283)}])},7345:t=>{t.exports={container:"DelegationDashboardTable_container__FcV2y",table_title:"DelegationDashboardTable_table_title___Mq4v",delegation_table:"DelegationDashboardTable_delegation_table__luRHO",td_mobile:"DelegationDashboardTable_td_mobile__XFiCy",td_footer:"DelegationDashboardTable_td_footer__cLide","validator-keys":"DelegationDashboardTable_validator-keys__qcFXV","validator-key-label":"DelegationDashboardTable_validator-key-label__DdZ0p","validator-key":"DelegationDashboardTable_validator-key__k0fOv"}},8379:()=>{},18489:t=>{t.exports={container:"DelegationGoals_container__5J_2i",title_section:"DelegationGoals_title_section__gvQP8",list_section:"DelegationGoals_list_section___FTxq",list_item_content:"DelegationGoals_list_item_content__7oXWZ"}},19684:t=>{t.exports={container:"DelegationStatsTile_container__dXpON",tile_title:"DelegationStatsTile_tile_title__Uh4NJ",description:"DelegationStatsTile_description__yWIjl",stat:"DelegationStatsTile_stat__y7Jrt",unit:"DelegationStatsTile_unit__0OyAG",sub:"DelegationStatsTile_sub__NcYUy"}},28867:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var a=i(55729);let s=[];function n(){return window.innerWidth}function l(){let t=n();s.forEach(e=>{e(t)})}function r(){let t=n(),[e,i]=(0,a.useState)(t);return(0,a.useEffect)(()=>(s.push(i),l(),window.addEventListener("resize",l),()=>{let t=s.indexOf(i);t>-1&&s.splice(t,1),window.removeEventListener("resize",l)}),[]),e}},55105:(t,e,i)=>{"use strict";function a(t,e=4){if("*"===e||2*e+3>=t.length)return t;if(t){let i=t.substring(0,e),a=t.substring(t.length-e);return`${i}...${a}`}return""}i.d(e,{Bv:()=>o,Ee:()=>l,ZV:()=>n,Zr:()=>s,e2:()=>r,wM:()=>a});let s=t=>t?t.charAt(0).toUpperCase()+t.slice(1):"",n=(t,e=!1,i="N/A")=>isNaN(t=parseFloat(t))?i:t.toLocaleString(void 0,{minimumFractionDigits:2*!e,maximumFractionDigits:2*!e}),l=(t,e=0)=>{let i=Number(t);return isNaN(i)?"N/A":`${Number(i.toFixed(e))}%`};function r(t,e=2){let i=Number(t);if(isNaN(i))return"N/A";let a=Math.round(i),s=Math.abs(Math.round(i)),n=10**e;switch(!0){case s>=1e6:return(Math.trunc(a/1e6*n)/n).toLocaleString()+"m";case s>=1e3:return(Math.trunc(a/1e3*n)/n).toLocaleString()+"k";default:return a.toLocaleString()}}let o=t=>BigInt(t.replace("n",""))},77705:t=>{t.exports={hero_container:"DelegationHero_hero_container__Xpe0E",link_button:"DelegationHero_link_button__ozqTc"}},85767:t=>{t.exports={"table-container":"Table_table-container__4CRkJ",metric:"Table_metric__asrvg","table-title":"Table_table-title__aJtEq","table-content":"Table_table-content__zGhNR",tableListContainer:"Table_tableListContainer__y1OJi",tableListItem:"Table_tableListItem__uevSX"}},90283:(t,e,i)=>{"use strict";i.r(e),i.d(e,{__N_SSP:()=>A,default:()=>E});var a=i(6029),s=i(55729),n=i(95669),l=i.n(n),r=i(98802),o=i(50212),c=i(2342),d=i(55105),h=i(28867),_=i(85767),u=i.n(_),b=i(7345),x=i.n(b);let m="sfdpDashboard.tables.sfdpTableHeaders";function p({accountSummary:t}){let{t:e}=(0,r.Bd)("common"),i=(0,h.A)(),[n,l]=(0,s.useState)(!1);(0,s.useEffect)(()=>
1{l(!0)},[]);let _=(0,s.useMemo)(()=>[{title:e(`${m}.withDrawPubkey`),key:"withdrawPubkey"},{title:e(`${m}.active`),key:"active"},{title:e(`${m}.activating`),key:"activating"},{title:e(`${m}.total`),key:"total"}],[e]),{tableData:b,totals:g}=(0,s.useMemo)(()=>{let e=0,a=0,s=0,l=n?i>=550?"*":i>=460?16:i>=400?14:11:11;return{tableData:t.map(t=>{let i=Number(((0,d.Bv)(t.activeStakeLamports)+(0,d.Bv)(t.deactivatingStakeLamports))/BigInt(c.Sr)),n=Number((0,d.Bv)(t.activatingStakeLamports)/BigInt(c.Sr)),r=i+n;return e+=i,a+=n,s+=r,{withdrawPubkey:(0,d.wM)(t.pubkey,l),active:(0,d.e2)(i),activating:(0,d.e2)(n),total:(0,d.e2)(r)}}),totals:{active:(0,d.e2)(e),activating:(0,d.e2)(a),total:(0,d.e2)(s)}}},[t,i,n]);return(0,a.jsxs)("section",{className:x().container,children:[(0,a.jsx)("h3",{className:x().table_title,children:e("sfdpDashboard.tables.title")}),(0,a.jsx)("div",{className:u()["table-content"],children:(0,a.jsxs)("table",{className:(0,o.A)("table-body-border table-striped",x().delegation_table),children:[(0,a.jsx)("thead",{children:(0,a.jsx)("tr",{children:_.map((t,e)=>(0,a.jsx)("th",{children:t.title},e))})}),(0,a.jsx)("tbody",{children:b.map((t,e)=>(0,a.jsx)("tr",{children:_.map((e,i)=>(0,a.jsxs)("td",{children:[(0,a.jsx)("span",{className:x().td_text,children:t[e.key]}),(0,a.jsxs)("div",{className:x().td_mobile,children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Active:"})," ",t.active]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Activating:"})," ",t.activating]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Total:"})," ",t.total]})]})]},i))},e))}),(0,a.jsx)("tfoot",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsx)("strong",{children:"TOTAL"})}),(0,a.jsx)("td",{children:(0,a.jsx)("strong",{children:g.active})}),(0,a.jsx)("td",{children:(0,a.jsx)("strong",{children:g.activating})}),(0,a.jsx)("td",{children:(0,a.jsx)("strong",{children:g.total})}),(0,a.jsx)("td",{className:x().td_footer,children:(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"TOTAL"}),(0,a.jsxs)("div",{className:x().td_mobile,children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Active:"})," ",g.active]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Activating:"})," ",g.activating]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Total:"})," ",g.total]})]})]})})]})})]})})]})}var g=i(82203),j=i.n(g),v=i(77705),N=i.n(v);let f="sfdpDashboard.hero";function D(){let{t}=(0,r.Bd)("common");return(0,a.jsxs)("header",{className:N().hero_container,children:[(0,a.jsxs)("hgroup",{children:[(0,a.jsx)("h2",{children:t(`${f}.subTitle`)}),(0,a.jsx)("h1",{children:t(`${f}.title`)})]}),(0,a.jsx)(j(),{href:"/delegation-program",className:N().link_button,children:t(`${f}.links.apply`)})]})}var k=i(19684),S=i.n(k);let T="sfdpDashboard.stats";function $(t){let{epoch:e,stats:i}=t,{t:n}=(0,r.Bd)("common"),l=(0,s.useMemo)(()=>{let t=(0,d.Bv)(i.totalSfdpValidatorFoundationStakeLamports),e=(0,d.Bv)(i.clusterTotalActivatedStakeLamports??""),s=t/BigInt(c.Sr),l=i.clusterTotalValidators?Math.round(i.totalEligibleValidators/i.clusterTotalValidators*100):0,r=e>0?(t*BigInt(100)/e).toString():null;return[{stat:i.totalEligibleValidators.toLocaleString(),description:n(`${T}.totalEligibleValidators.description`),sub:n(`${T}.totalEligibleValidators.sub`,{percentage:l})},{stat:function(t){let e,i=Number(t);if(isNaN(i))return(0,a.jsx)("span",{children:"N/A"});let s=Math.round(i),n=Math.abs(Math.round(i)),l="";switch(!0){case n>=1e6:e=(Math.floor(s/1e4)/100).toLocaleString(),l="m";break;case n>=1e3:e=(Math.floor(s/10)/100).toLocaleString(),l="k";break;default:e=s.toLocaleString()}return(0,a.jsxs)("span",{children:[e,l&&(0,a.jsx)("span",{className:S().unit,children:l})]})}(Number(s)),unit:"SOL",description:n(`${T}.totalFoundationStake.description`),sub:null!==r?n(`${T}.totalFoundationStake.sub`,{percentage:r}):void 0},{stat:i.totalDataCenters.toLocaleString(),unit:"Unique locations",description:n(`${T}.uniqueLocations.description`)},{stat:i.totalDataCenterCountries.toLocaleString(),unit:"Countries",description:n(`${T}.countries.description`)}]},[i]);return(0,a.jsxs)("section",{className:S().container,children:[(0,a.jsxs)("h3",{className:S().tile_title,children:[n(`${T}.title`)," ",e]}),(0,a.jsx)("ul",{className:S().top_list,children:l.map((t,e)=>(0,a.jsxs)("li",{children:[t.description&&(0,a.jsx)("b",{children:(0,a.jsx)("p",{className:S().description,children:t.description})}),(0,a.jsxs)("h4",{className:S().stat,children:[t.stat," ",t.unit&&(0,a.jsx)("span",{className:S().unit,children:t.unit})]}),(0,a.jsx)("div",{children:t.sub&&(0,a.jsx)("p",{className:S().sub,children:(0,a.jsx)("i",{children:(0,a.jsx)("span",{children:t.sub})})})})]},`${t.description}-${e}`))})]})}var y=i(18489),L=i.n(y);let w="sfdpDashboard.goals";function M(){let{t}=(0,r.Bd)("common"),e=(0,s.useMemo)(()=>[{title:t(`${w}.list.decentralization.title`),description:t(`${w}.list.decentralization.description`)},{title:t(`${w}.list.diverseStake.title`),description:t(`${w}.list.diverseStake.description`)},{title:t(`${w}.list.sustainableTestnet.title`),description:t(`${w}.list.sustainableTestnet.description`)}],[t]);
1return(0,a.jsxs)("section",{className:L().container,children:[(0,a.jsx)("div",{className:L().title_section,children:(0,a.jsx)("h3",{children:t(`${w}.title`)})}),(0,a.jsx)("ol",{className:L().list_section,children:e.map((t,e)=>(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{children:e+1}),(0,a.jsxs)("div",{className:L().list_item_content,children:[(0,a.jsx)("h4",{children:t.title}),(0,a.jsx)("p",{children:t.description})]})]},t.title))})]})}var A=!0;let E=function(t){let{recentEpochStats:e}=t,{t:i}=(0,r.Bd)("common");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l(),{children:[(0,a.jsx)("title",{children:`${i("sfdpDashboard.title")} | ${i("main.title")}`}),(0,a.jsx)("meta",{name:"description",content:i("sfdpDashboard.metaDescription")})]}),(0,a.jsx)(D,{}),(0,a.jsx)(M,{}),(0,a.jsx)($,{epoch:e.epoch,stats:e.dashboard_stats}),(0,a.jsx)(p,{accountSummary:e.dashboard_stats.sfdpAccountSummary})]})}},95669:(t,e,i)=>{t.exports=i(63276)}},t=>{t.O(0,[8639,1218,636,6593,8792],()=>t(t.s=1931)),_N_E=t.O()}]);

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.