diff --git a/404.html b/404.html index 7356ee6..0a1ead2 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -404: This page could not be found.

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.

404

This page could not be found.

\ No newline at end of file diff --git a/404/index.html b/404/index.html index 7356ee6..0a1ead2 100644 --- a/404/index.html +++ b/404/index.html @@ -1 +1 @@ -404: This page could not be found.

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.

404

This page could not be found.

\ No newline at end of file diff --git a/_next/static/chunks/4-ef94f1be51e34b84.js b/_next/static/chunks/4-79eee5b4fed54d36.js similarity index 100% rename from _next/static/chunks/4-ef94f1be51e34b84.js rename to _next/static/chunks/4-79eee5b4fed54d36.js diff --git a/_next/static/chunks/495-09e3e638178dd613.js b/_next/static/chunks/495-bf9756ec95d27224.js similarity index 100% rename from _next/static/chunks/495-09e3e638178dd613.js rename to _next/static/chunks/495-bf9756ec95d27224.js diff --git a/_next/static/chunks/567-6a3fa84db28c4453.js b/_next/static/chunks/567-83a7e3cfa5069ea9.js similarity index 100% rename from _next/static/chunks/567-6a3fa84db28c4453.js rename to _next/static/chunks/567-83a7e3cfa5069ea9.js diff --git a/_next/static/chunks/app/layout-901b1a46108badab.js b/_next/static/chunks/app/layout-e57471648a5fe3a1.js similarity index 100% rename from _next/static/chunks/app/layout-901b1a46108badab.js rename to _next/static/chunks/app/layout-e57471648a5fe3a1.js diff --git a/_next/static/chunks/app/page-0bf80553532f8480.js b/_next/static/chunks/app/page-0bf80553532f8480.js new file mode 100644 index 0000000..af9ec76 --- /dev/null +++ b/_next/static/chunks/app/page-0bf80553532f8480.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{67617:function(e,s,t){Promise.resolve().then(t.bind(t,64339))},64339:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return O}});var i=t(3827),a=t(64090),n=t(82012),l=t(80469),r=t(62948),c=t(75615),o=t(3237),d=t(88197),x=t(66803),m=t(19807),u=(0,a.memo)(()=>{let{isConnected:e}=(0,c.hT)(),{address:s,client:t,staking:r}=(0,l.n)(),[u,p]=(0,a.useState)({canFaucet:!1,denom:"",lastFaucetTimestamp:0,maxBalance:0,nextFaucetTimestamp:0}),[h,g]=(0,a.useState)(!1),j=(0,a.useCallback)(async()=>{if(e&&s&&t){var i,a;let e=await (0,m.TI)(s,t);(null===(i=r.state.tokens)||void 0===i?void 0:i.denom)===e.denom&&o.Jg&&(parseInt(null===(a=r.state.tokens)||void 0===a?void 0:a.amount)>e.maxBalance?p({...e,canFaucet:!1}):p(e))}},[e,s,t,r.state.tokens]);if((0,a.useEffect)(()=>{j()},[e,s,t,j]),!e||!u.canFaucet)return null;let v=(0,x.bI)({amount:u.maxBalance.toString(),denom:u.denom});return(0,i.jsx)("div",{className:"grid min-h-[144px] flex-col items-center justify-center gap-[8px] overflow-auto",style:{gridTemplateColumns:"1fr"},children:u.canFaucet&&(0,i.jsxs)(n.zx,{isLoading:h,onClick:async()=>{if(t)try{g(!0),await (0,m.dQ)(s,t)}catch(e){console.error(e)}finally{await (0,d.VZ)(s,r),g(!1)}},children:["Faucet ",v.amount," ",v.denom]})})}),p=t(37275),h=t(22840),g=t(62986),j=t(39730),v=t(67497),f=t(42498);let w="relative flex w-full h-full flex-col items-start gap-3 p-[24px]",N=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"absolute bottom-[24px] right-[-8px] top-[24px] hidden md:block",children:(0,i.jsx)(f.i,{})}),(0,i.jsx)("div",{className:"w-full translate-y-[24px] md:hidden",children:(0,i.jsx)(f.I,{})})]});var b=(0,a.memo)(()=>{let{isConnected:e}=(0,c.hT)(),{staking:s}=(0,l.n)(),[,t]=(0,c.dd)();if(!e)return(0,i.jsxs)("div",{className:"flex min-h-[212px] flex-col items-center justify-center gap-[8px] px-[12px] uppercase",style:{backgroundImage:"url(".concat(o.sb,"/overview-bg.png)"),borderRadius:24},children:[(0,i.jsx)(n.ls,{className:"text-center",children:"Please Log In To View"}),(0,i.jsx)("div",{children:(0,i.jsx)(n.zx,{className:"min-w-[150px]",onClick:()=>{t(!0)},children:"Log In"})})]});let a=(0,j.U2)(s.state,null)||(0,x.IB)(),r=(0,j.Cn)(null,s.state)||(0,x.IB)(),d=(0,j.jc)(s.state),m=s.state.tokens?(0,x.bI)(s.state.tokens):(0,x.IB)();return(0,i.jsxs)("div",{className:"flex min-h-[144px] flex-col items-center justify-center gap-[8px] overflow-auto md:grid",style:{backgroundImage:"url(".concat(o.sb,"/overview-bg.png)"),backgroundSize:"cover",borderRadius:24,gridTemplateColumns:"1fr 1fr 1fr 1fr"},children:[(0,i.jsxs)("div",{className:w,children:[(0,i.jsx)(n.Bz,{children:"Claimable Rewards (XION)"}),(0,i.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,i.jsx)(n.XJ,{title:[r.amount,"XION"].join(" "),children:(0,v.HS)(new h.Z(r.amount),o.Uv)}),(0,j.c3)(s.state)&&(0,i.jsx)(n.hp,{onClick:()=>{var e;s.dispatch((0,g.ZG)({content:{delegations:(null===(e=s.state.delegations)||void 0===e?void 0:e.items)||[]},type:"rewards"}))},children:"Claim"})]}),(0,i.jsx)(n.jr,{children:(0,v.H_)(r)}),(0,i.jsx)(N,{})]}),(0,i.jsxs)("div",{className:w,children:[(0,i.jsx)(n.Bz,{children:"APR"}),(0,i.jsx)(n.XJ,{children:(0,v.PV)(d)}),(0,i.jsx)(N,{})]}),(0,i.jsxs)("div",{className:w,children:[(0,i.jsx)(n.Bz,{children:"Delegated Amount (XION)"}),(0,i.jsx)(n.XJ,{title:(0,v.Em)(a),children:(0,v.HS)(new h.Z(a.amount),o.Uv)}),(0,i.jsx)(n.jr,{children:(0,v.H_)(a)}),(0,i.jsx)(N,{})]}),(0,i.jsxs)("div",{className:w,children:[(0,i.jsx)(n.Bz,{children:"Available For Delegation (XION)"}),(0,i.jsx)(n.XJ,{title:(0,v.Em)(m),children:(0,v.HS)(new h.Z(m.amount))}),(0,i.jsx)(n.jr,{children:(0,v.H_)(m)})]})]})}),k=t(20534),S=t(143),y=t(80148),B=t(89056),C=t(26605),I=t(48074);let D={gap:"16px",gridTemplateColumns:"350px repeat(3, 1fr) 80px 100px",minWidth:800},A=e=>{let{disabled:s,onStake:t,staking:a,validator:l}=e,{identity:r}=l.description,c=(0,B.P)(r),o=(0,j.Sg)(null==l?void 0:l.tokens,a.state),d=(0,v.gg)(o);return(0,i.jsxs)("div",{className:"flex w-full flex-col items-center justify-between gap-0",style:{minWidth:800},children:[(0,i.jsxs)("div",{className:"grid w-full items-center justify-between gap-2 p-4",style:D,children:[(0,i.jsxs)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:[(0,i.jsx)(S.D,{logo:c}),(0,i.jsxs)("div",{className:"flex flex-col justify-center gap-[2px] text-left",children:[(0,i.jsx)("div",{className:"max-w-[150px] overflow-hidden truncate text-[14px] font-bold leading-[20px] md:max-w-[300px]",children:l.description.moniker}),(0,i.jsx)(C.Z,{address:l.operatorAddress})]}),(0,i.jsx)("div",{className:"flex min-w-max flex-col items-center justify-center",children:(0,j.zq)(l.operatorAddress,a.state)&&(0,i.jsx)("div",{className:"rounded-[2px] bg-successBg px-[8px] py-[2px] text-[11px] font-medium leading-[16px] tracking-normal text-success",children:"You staked"})})]}),(0,i.jsx)("div",{className:"text-right",children:(0,i.jsx)(I.Z,{text:(0,v.Em)((0,x.kw)(new h.Z(l.tokens)),!0)})}),(0,i.jsx)("div",{className:"text-right",children:(0,v.i)(l.commission.commissionRates.rate,2)}),o&&(0,i.jsx)("div",{className:"text-right",children:d}),(0,i.jsx)("div",{className:"text-right",children:(0,i.jsx)(n.OL,{href:"/validator?address=".concat(l.operatorAddress),children:"Details"})}),t&&(0,i.jsx)("div",{children:(0,i.jsx)(n.hp,{disabled:s,onClick:t,children:"Delegate"})})]}),(0,i.jsx)("div",{className:"box-content h-[1px] bg-bg-500",style:{width:"calc(100% - 48px)"}})]})},T=S.N;var _=(0,a.memo)(()=>{var e,s,t;let{isConnected:r,staking:c}=(0,l.n)(),[o,d]=(0,a.useState)("none"),[x,m]=(0,a.useState)("active"),[u,p]=(0,a.useState)(""),{validators:v}=c.state,f=(null===(e=v.bonded)||void 0===e?void 0:e.items)||[],w=((null===(s=v.unbonded)||void 0===s?void 0:s.items)||[]).concat((null===(t=v.unbonding)||void 0===t?void 0:t.items)||[]),N=!c.state.validators.bonded||!c.state.validators.unbonding||!c.state.validators.bonded,b=("active"===x?f:w).filter("active"===x?e=>e.status===k.BondStatus.BOND_STATUS_BONDED:e=>e.status===k.BondStatus.BOND_STATUS_UNBONDED||e.status===k.BondStatus.BOND_STATUS_UNBONDING).slice().sort((e,s)=>{if("none"===o)return 0;if(["voting-power-asc","voting-power-desc"].includes(o)){let t=(0,j.Sg)(e.tokens,c.state),i=(0,j.Sg)(s.tokens,c.state);return(0,y.B)(t,i,"voting-power-asc"===o)}if(["commission-asc","commission-desc"].includes(o)){let t=parseFloat(e.commission.commissionRates.rate),i=parseFloat(s.commission.commissionRates.rate);return(0,y.B)(t,i,"commission-asc"===o)}if(["name-asc","name-desc"].includes(o)){let t=e.description.moniker.toLowerCase(),i=s.description.moniker.toLowerCase();return(0,y.B)(t,i,"name-asc"===o)}if(["staked-asc","staked-desc"].includes(o)){let t=new h.Z(e.tokens),i=new h.Z(s.tokens);return(0,y.B)(t,i,"staked-asc"===o)}return 0}).filter(e=>{if(!u)return!0;let s=e.description.moniker.toLowerCase(),t=e.operatorAddress.toLowerCase();return s.includes(u.toLowerCase())||t.includes(u.toLowerCase())});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex flex-col md:grid md:grid-cols-3",children:[(0,i.jsxs)("div",{className:"flex w-full flex-col justify-start gap-[32px] md:flex-row md:gap-[16px]",children:[(0,i.jsx)(n.Dx,{children:"Validators"}),(0,i.jsx)(n.Mj,{onChange:e=>p(e.target.value),value:u})]}),(0,i.jsxs)("div",{className:"mt-[12px] flex flex-row items-center justify-center gap-[40px] uppercase md:mt-0",children:[(0,i.jsxs)(n.Y6,{active:"active"===x,onClick:()=>{m("active")},children:["Active (",f.length,")"]}),(0,i.jsxs)(n.Y6,{active:"inactive"===x,onClick:()=>{m("inactive")},children:["Inactive (",w.length,")"]})]})]}),(0,i.jsxs)("div",{className:"min-h-[100px] overflow-auto rounded-[24px] bg-bg-600 pb-4 text-typo-100",children:[(0,i.jsxs)("div",{className:"grid w-full items-center justify-between gap-2 bg-bg-500 p-4 uppercase",style:D,children:[(0,i.jsx)(T,{onSort:d,sort:o,sorting:["name-asc","name-desc"],children:"Validator"}),(0,i.jsx)(T,{onSort:d,rigthAlign:!0,sort:o,sorting:["staked-asc","staked-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,i.jsx)(T,{onSort:d,rigthAlign:!0,sort:o,sorting:["commission-asc","commission-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Commission"})}),(0,i.jsx)(T,{onSort:d,rigthAlign:!0,sort:o,sorting:["voting-power-asc","voting-power-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Voting Power"})})]}),N&&(0,i.jsx)(n.yV,{}),b.map(e=>(0,i.jsx)(A,{disabled:!r,onStake:"active"===x?()=>{c.dispatch((0,g.ZG)({content:{validator:e},type:"delegate"}))}:null,staking:c,validator:e},e.operatorAddress))]})]})}),O=(0,a.memo)(function(){let{staking:e}=(0,l.n)(),[s,t]=(0,a.useState)(!1),c=(0,r.S6)(e.state);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"page-container flex flex-col gap-6 px-[12px] pb-[24px] md:px-[24px]",children:[(0,i.jsxs)("div",{className:"mt-[40px] flex flex-row justify-between text-left",children:[(0,i.jsx)(n.Dx,{children:"Your Staking Overview"}),c&&(0,i.jsx)(r.sv,{isShowingDetails:s,setIsShowingDetails:t})]}),(0,i.jsx)(u,{}),(0,i.jsx)(b,{}),s&&c&&(0,i.jsx)(r.ZP,{}),(0,i.jsx)(_,{})]}),(0,i.jsx)(p.Z,{})]})})}},function(e){e.O(0,[350,218,147,228,933,4,245,567,495,971,69,744],function(){return e(e.s=67617)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/page-4b131f0944c093e1.js b/_next/static/chunks/app/page-4b131f0944c093e1.js deleted file mode 100644 index 9f24af4..0000000 --- a/_next/static/chunks/app/page-4b131f0944c093e1.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{67617:function(e,s,t){Promise.resolve().then(t.bind(t,64339))},64339:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return O}});var i=t(3827),a=t(64090),n=t(82012),l=t(80469),r=t(62948),c=t(75615),o=t(3237),d=t(88197),x=t(66803),m=t(19807),u=(0,a.memo)(()=>{let{isConnected:e}=(0,c.hT)(),{address:s,client:t,staking:r}=(0,l.n)(),[u,p]=(0,a.useState)({canFaucet:!1,denom:"",lastFaucetTimestamp:0,maxBalance:0,nextFaucetTimestamp:0}),[h,g]=(0,a.useState)(!1),j=(0,a.useCallback)(async()=>{if(e&&s&&t){var i,a;let e=await (0,m.TI)(s,t);(null===(i=r.state.tokens)||void 0===i?void 0:i.denom)===e.denom&&o.Jg&&(parseInt(null===(a=r.state.tokens)||void 0===a?void 0:a.amount)>e.maxBalance?p({...e,canFaucet:!1}):p(e))}},[e,s,t,r.state.tokens]);if((0,a.useEffect)(()=>{j()},[e,s,t,j]),!e||!u.canFaucet)return null;let v=(0,x.bI)({amount:u.maxBalance.toString(),denom:u.denom});return(0,i.jsx)("div",{className:"grid min-h-[144px] flex-col items-center justify-center gap-[8px] overflow-auto",style:{gridTemplateColumns:"1fr"},children:u.canFaucet&&(0,i.jsxs)(n.zx,{isLoading:h,onClick:async()=>{if(t)try{g(!0),await (0,m.dQ)(s,t)}catch(e){console.error(e)}finally{await (0,d.VZ)(s,r),g(!1)}},children:["Faucet ",v.amount," ",v.denom]})})}),p=t(37275),h=t(22840),g=t(62986),j=t(39730),v=t(67497),f=t(42498);let w="absolute bottom-[24px] right-[-8px] top-[24px]",N="relative flex h-full flex-col items-start gap-3 p-[24px]";var b=(0,a.memo)(()=>{let{isConnected:e}=(0,c.hT)(),{staking:s}=(0,l.n)(),[,t]=(0,c.dd)();if(!e)return(0,i.jsxs)("div",{className:"flex min-h-[212px] flex-col items-center justify-center gap-[8px] px-[12px] uppercase",style:{backgroundImage:"url(".concat(o.sb,"/overview-bg.png)"),borderRadius:24},children:[(0,i.jsx)(n.ls,{className:"text-center",children:"Please Log In To View"}),(0,i.jsx)("div",{children:(0,i.jsx)(n.zx,{className:"min-w-[150px]",onClick:()=>{t(!0)},children:"Log In"})})]});let a=(0,j.U2)(s.state,null)||(0,x.IB)(),r=(0,j.Cn)(null,s.state)||(0,x.IB)(),d=(0,j.jc)(s.state),m=s.state.tokens?(0,x.bI)(s.state.tokens):(0,x.IB)();return(0,i.jsxs)("div",{className:"grid min-h-[144px] flex-col items-center justify-center gap-[8px] overflow-auto",style:{backgroundImage:"url(".concat(o.sb,"/overview-bg.png)"),borderRadius:24,gridTemplateColumns:"1fr 1fr 1fr 1fr"},children:[(0,i.jsxs)("div",{className:N,children:[(0,i.jsx)(n.Bz,{children:"Claimable Rewards (XION)"}),(0,i.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,i.jsx)(n.XJ,{title:[r.amount,"XION"].join(" "),children:(0,v.HS)(new h.Z(r.amount),o.Uv)}),(0,j.c3)(s.state)&&(0,i.jsx)(n.hp,{onClick:()=>{var e;s.dispatch((0,g.ZG)({content:{delegations:(null===(e=s.state.delegations)||void 0===e?void 0:e.items)||[]},type:"rewards"}))},children:"Claim"})]}),(0,i.jsx)(n.jr,{children:(0,v.H_)(r)}),(0,i.jsx)("div",{className:w,children:(0,i.jsx)(f.i,{})})]}),(0,i.jsxs)("div",{className:N,children:[(0,i.jsx)(n.Bz,{children:"APR"}),(0,i.jsx)(n.XJ,{children:(0,v.PV)(d)}),(0,i.jsx)("div",{className:w,children:(0,i.jsx)(f.i,{})})]}),(0,i.jsxs)("div",{className:N,children:[(0,i.jsx)(n.Bz,{children:"Delegated Amount (XION)"}),(0,i.jsx)(n.XJ,{title:(0,v.Em)(a),children:(0,v.HS)(new h.Z(a.amount),o.Uv)}),(0,i.jsx)(n.jr,{children:(0,v.H_)(a)}),(0,i.jsx)("div",{className:w,children:(0,i.jsx)(f.i,{})})]}),(0,i.jsxs)("div",{className:N,children:[(0,i.jsx)(n.Bz,{children:"Available For Delegation (XION)"}),(0,i.jsx)(n.XJ,{title:(0,v.Em)(m),children:(0,v.HS)(new h.Z(m.amount))}),(0,i.jsx)(n.jr,{children:(0,v.H_)(m)})]})]})}),k=t(20534),S=t(143),y=t(80148),B=t(89056),C=t(26605),I=t(48074);let D={gap:"16px",gridTemplateColumns:"350px repeat(3, 1fr) 80px 100px",minWidth:800},A=e=>{let{disabled:s,onStake:t,staking:a,validator:l}=e,{identity:r}=l.description,c=(0,B.P)(r),o=(0,j.Sg)(null==l?void 0:l.tokens,a.state),d=(0,v.gg)(o);return(0,i.jsxs)("div",{className:"flex w-full flex-col items-center justify-between gap-0",style:{minWidth:800},children:[(0,i.jsxs)("div",{className:"grid w-full items-center justify-between gap-2 p-4",style:D,children:[(0,i.jsxs)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:[(0,i.jsx)(S.D,{logo:c}),(0,i.jsxs)("div",{className:"flex flex-col justify-center gap-[2px] text-left",children:[(0,i.jsx)("div",{className:"max-w-[150px] overflow-hidden truncate text-[14px] font-bold leading-[20px] md:max-w-[300px]",children:l.description.moniker}),(0,i.jsx)(C.Z,{address:l.operatorAddress})]}),(0,i.jsx)("div",{className:"flex min-w-max flex-col items-center justify-center",children:(0,j.zq)(l.operatorAddress,a.state)&&(0,i.jsx)("div",{className:"rounded-[2px] bg-successBg px-[8px] py-[2px] text-[11px] font-medium leading-[16px] tracking-normal text-success",children:"You staked"})})]}),(0,i.jsx)("div",{className:"text-right",children:(0,i.jsx)(I.Z,{text:(0,v.Em)((0,x.kw)(new h.Z(l.tokens)),!0)})}),(0,i.jsx)("div",{className:"text-right",children:(0,v.i)(l.commission.commissionRates.rate,2)}),o&&(0,i.jsx)("div",{className:"text-right",children:d}),(0,i.jsx)("div",{className:"text-right",children:(0,i.jsx)(n.OL,{href:"/validator?address=".concat(l.operatorAddress),children:"Details"})}),t&&(0,i.jsx)("div",{children:(0,i.jsx)(n.hp,{disabled:s,onClick:t,children:"Delegate"})})]}),(0,i.jsx)("div",{className:"box-content h-[1px] bg-bg-500",style:{width:"calc(100% - 48px)"}})]})},T=S.N;var _=(0,a.memo)(()=>{var e,s,t;let{isConnected:r,staking:c}=(0,l.n)(),[o,d]=(0,a.useState)("none"),[x,m]=(0,a.useState)("active"),[u,p]=(0,a.useState)(""),{validators:v}=c.state,f=(null===(e=v.bonded)||void 0===e?void 0:e.items)||[],w=((null===(s=v.unbonded)||void 0===s?void 0:s.items)||[]).concat((null===(t=v.unbonding)||void 0===t?void 0:t.items)||[]),N=!c.state.validators.bonded||!c.state.validators.unbonding||!c.state.validators.bonded,b=("active"===x?f:w).filter("active"===x?e=>e.status===k.BondStatus.BOND_STATUS_BONDED:e=>e.status===k.BondStatus.BOND_STATUS_UNBONDED||e.status===k.BondStatus.BOND_STATUS_UNBONDING).slice().sort((e,s)=>{if("none"===o)return 0;if(["voting-power-asc","voting-power-desc"].includes(o)){let t=(0,j.Sg)(e.tokens,c.state),i=(0,j.Sg)(s.tokens,c.state);return(0,y.B)(t,i,"voting-power-asc"===o)}if(["commission-asc","commission-desc"].includes(o)){let t=parseFloat(e.commission.commissionRates.rate),i=parseFloat(s.commission.commissionRates.rate);return(0,y.B)(t,i,"commission-asc"===o)}if(["name-asc","name-desc"].includes(o)){let t=e.description.moniker.toLowerCase(),i=s.description.moniker.toLowerCase();return(0,y.B)(t,i,"name-asc"===o)}if(["staked-asc","staked-desc"].includes(o)){let t=new h.Z(e.tokens),i=new h.Z(s.tokens);return(0,y.B)(t,i,"staked-asc"===o)}return 0}).filter(e=>{if(!u)return!0;let s=e.description.moniker.toLowerCase(),t=e.operatorAddress.toLowerCase();return s.includes(u.toLowerCase())||t.includes(u.toLowerCase())});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex flex-col md:grid md:grid-cols-3",children:[(0,i.jsxs)("div",{className:"flex w-full flex-col justify-start gap-[32px] md:flex-row md:gap-[16px]",children:[(0,i.jsx)(n.Dx,{children:"Validators"}),(0,i.jsx)(n.Mj,{onChange:e=>p(e.target.value),value:u})]}),(0,i.jsxs)("div",{className:"mt-[12px] flex flex-row items-center justify-center gap-[40px] uppercase md:mt-0",children:[(0,i.jsxs)(n.Y6,{active:"active"===x,onClick:()=>{m("active")},children:["Active (",f.length,")"]}),(0,i.jsxs)(n.Y6,{active:"inactive"===x,onClick:()=>{m("inactive")},children:["Inactive (",w.length,")"]})]})]}),(0,i.jsxs)("div",{className:"min-h-[100px] overflow-auto rounded-[24px] bg-bg-600 pb-4 text-typo-100",children:[(0,i.jsxs)("div",{className:"grid w-full items-center justify-between gap-2 bg-bg-500 p-4 uppercase",style:D,children:[(0,i.jsx)(T,{onSort:d,sort:o,sorting:["name-asc","name-desc"],children:"Validator"}),(0,i.jsx)(T,{onSort:d,rigthAlign:!0,sort:o,sorting:["staked-asc","staked-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,i.jsx)(T,{onSort:d,rigthAlign:!0,sort:o,sorting:["commission-asc","commission-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Commission"})}),(0,i.jsx)(T,{onSort:d,rigthAlign:!0,sort:o,sorting:["voting-power-asc","voting-power-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Voting Power"})})]}),N&&(0,i.jsx)(n.yV,{}),b.map(e=>(0,i.jsx)(A,{disabled:!r,onStake:"active"===x?()=>{c.dispatch((0,g.ZG)({content:{validator:e},type:"delegate"}))}:null,staking:c,validator:e},e.operatorAddress))]})]})}),O=(0,a.memo)(function(){let{staking:e}=(0,l.n)(),[s,t]=(0,a.useState)(!1),c=(0,r.S6)(e.state);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"page-container flex flex-col gap-6 px-[12px] pb-[24px] md:px-[24px]",children:[(0,i.jsxs)("div",{className:"mt-[40px] flex flex-row justify-between text-left",children:[(0,i.jsx)(n.Dx,{children:"Your Staking Overview"}),c&&(0,i.jsx)(r.sv,{isShowingDetails:s,setIsShowingDetails:t})]}),(0,i.jsx)(u,{}),(0,i.jsx)(b,{}),s&&c&&(0,i.jsx)(r.ZP,{}),(0,i.jsx)(_,{})]}),(0,i.jsx)(p.Z,{})]})})}},function(e){e.O(0,[350,218,147,228,933,4,245,567,495,971,69,744],function(){return e(e.s=67617)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/validator/page-9982cae7072b6c93.js b/_next/static/chunks/app/validator/page-c078862ab7535b5b.js similarity index 100% rename from _next/static/chunks/app/validator/page-9982cae7072b6c93.js rename to _next/static/chunks/app/validator/page-c078862ab7535b5b.js diff --git a/_next/static/chunks/webpack-2ebce36c139a8db8.js b/_next/static/chunks/webpack-2ebce36c139a8db8.js new file mode 100644 index 0000000..37fcb42 --- /dev/null +++ b/_next/static/chunks/webpack-2ebce36c139a8db8.js @@ -0,0 +1 @@ +!function(){"use strict";var e,t,n,r,o,u,i,c,f,a={},d={};function l(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={id:e,loaded:!1,exports:{}},r=!0;try{a[e].call(n.exports,n,n.exports,l),r=!1}finally{r&&delete d[e]}return n.loaded=!0,n.exports}l.m=a,l.amdO={},e=[],l.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(l.O).every(function(e){return l.O[e](n[f])})?n.splice(f--,1):(c=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(d.O).every(function(e){return d.O[e](n[f])})?n.splice(f--,1):(c=!1,oXION Staking
Your Staking Overview
Please Log In To View
Validators
Loading the data...
\ No newline at end of file +XION Staking
Your Staking Overview
Please Log In To View
Validators
Loading the data...
\ No newline at end of file diff --git a/index.txt b/index.txt index 63823a4..7b868f1 100644 --- a/index.txt +++ b/index.txt @@ -1,7 +1,7 @@ -2:I[64339,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-ef94f1be51e34b84.js","245","static/chunks/245-8266bc6575a22c44.js","567","static/chunks/567-6a3fa84db28c4453.js","495","static/chunks/495-09e3e638178dd613.js","931","static/chunks/app/page-4b131f0944c093e1.js"],""] -3:I[56225,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-ef94f1be51e34b84.js","567","static/chunks/567-6a3fa84db28c4453.js","185","static/chunks/app/layout-901b1a46108badab.js"],""] +2:I[64339,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-79eee5b4fed54d36.js","245","static/chunks/245-8266bc6575a22c44.js","567","static/chunks/567-83a7e3cfa5069ea9.js","495","static/chunks/495-bf9756ec95d27224.js","931","static/chunks/app/page-0bf80553532f8480.js"],""] +3:I[56225,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-79eee5b4fed54d36.js","567","static/chunks/567-83a7e3cfa5069ea9.js","185","static/chunks/app/layout-e57471648a5fe3a1.js"],""] 4:I[5613,[],""] 5:I[31778,[],""] -0:["hHzGEcjBwk_otAP_FQWYn",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},["$L1",["$","$L2",null,{}],null]]},[null,["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":{}}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/8e69049fa282e630.css","precedence":"next","crossOrigin":""}],["$","link","1",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/9abbf91051391e37.css","precedence":"next","crossOrigin":""}],["$","link","2",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/0d4ca32eaf93f705.css","precedence":"next","crossOrigin":""}]],"$L6"]]]] +0:["tbFBKiwOMV5FoYdXk_OK3",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},["$L1",["$","$L2",null,{}],null]]},[null,["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":{}}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/8e69049fa282e630.css","precedence":"next","crossOrigin":""}],["$","link","1",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/9abbf91051391e37.css","precedence":"next","crossOrigin":""}],["$","link","2",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/62df248c84a2e08a.css","precedence":"next","crossOrigin":""}]],"$L6"]]]] 6:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"XION Staking"}],["$","link","3",{"rel":"icon","href":"/xion-staking/favicon.ico","type":"image/x-icon","sizes":"16x16"}]] 1:null diff --git a/validator/index.html b/validator/index.html index c9d4c71..bac9ba0 100644 --- a/validator/index.html +++ b/validator/index.html @@ -1 +1 @@ -XION Validator Details
\ No newline at end of file +XION Validator Details
\ No newline at end of file diff --git a/validator/index.txt b/validator/index.txt index aee75b1..b049d76 100644 --- a/validator/index.txt +++ b/validator/index.txt @@ -1,8 +1,8 @@ 2:"$Sreact.suspense" -3:I[66355,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-ef94f1be51e34b84.js","245","static/chunks/245-8266bc6575a22c44.js","567","static/chunks/567-6a3fa84db28c4453.js","495","static/chunks/495-09e3e638178dd613.js","276","static/chunks/app/validator/page-9982cae7072b6c93.js"],""] +3:I[66355,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-79eee5b4fed54d36.js","245","static/chunks/245-8266bc6575a22c44.js","567","static/chunks/567-83a7e3cfa5069ea9.js","495","static/chunks/495-bf9756ec95d27224.js","276","static/chunks/app/validator/page-c078862ab7535b5b.js"],""] 4:I[5613,[],""] 5:I[31778,[],""] -6:I[56225,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-ef94f1be51e34b84.js","567","static/chunks/567-6a3fa84db28c4453.js","185","static/chunks/app/layout-901b1a46108badab.js"],""] -0:["hHzGEcjBwk_otAP_FQWYn",[[["",{"children":["validator",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["validator",{"children":["__PAGE__",{},["$L1",["$","$2",null,{"children":["$","$L3",null,{}]}],null]]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","validator","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]},[null,["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":{}}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/8e69049fa282e630.css","precedence":"next","crossOrigin":""}],["$","link","1",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/9abbf91051391e37.css","precedence":"next","crossOrigin":""}],["$","link","2",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/0d4ca32eaf93f705.css","precedence":"next","crossOrigin":""}]],"$L7"]]]] +6:I[56225,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-79eee5b4fed54d36.js","567","static/chunks/567-83a7e3cfa5069ea9.js","185","static/chunks/app/layout-e57471648a5fe3a1.js"],""] +0:["tbFBKiwOMV5FoYdXk_OK3",[[["",{"children":["validator",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["validator",{"children":["__PAGE__",{},["$L1",["$","$2",null,{"children":["$","$L3",null,{}]}],null]]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","validator","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]},[null,["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":{}}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/8e69049fa282e630.css","precedence":"next","crossOrigin":""}],["$","link","1",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/9abbf91051391e37.css","precedence":"next","crossOrigin":""}],["$","link","2",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/62df248c84a2e08a.css","precedence":"next","crossOrigin":""}]],"$L7"]]]] 7:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"XION Validator Details"}],["$","link","3",{"rel":"icon","href":"/xion-staking/favicon.ico","type":"image/x-icon","sizes":"16x16"}]] 1:null