diff --git a/404.html b/404.html index 6f4dc0b..1e8af65 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/_next/static/1u5sTaL3nlak0IDPHtgT3/_buildManifest.js b/_next/static/XG-UmKXUDWOTuozZPbsHl/_buildManifest.js similarity index 100% rename from _next/static/1u5sTaL3nlak0IDPHtgT3/_buildManifest.js rename to _next/static/XG-UmKXUDWOTuozZPbsHl/_buildManifest.js diff --git a/_next/static/1u5sTaL3nlak0IDPHtgT3/_ssgManifest.js b/_next/static/XG-UmKXUDWOTuozZPbsHl/_ssgManifest.js similarity index 100% rename from _next/static/1u5sTaL3nlak0IDPHtgT3/_ssgManifest.js rename to _next/static/XG-UmKXUDWOTuozZPbsHl/_ssgManifest.js diff --git a/_next/static/chunks/663-e79dade5639d919d.js b/_next/static/chunks/663-e79dade5639d919d.js new file mode 100644 index 0000000..40c649f --- /dev/null +++ b/_next/static/chunks/663-e79dade5639d919d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[663],{98909:function(e,t,n){n.d(t,{Bz:function(){return h},Dx:function(){return x},M5:function(){return g},OL:function(){return j},Rk:function(){return k},Wz:function(){return b},XJ:function(){return p},Xq:function(){return N},hp:function(){return v},jr:function(){return f},ls:function(){return m},sr:function(){return y},zx:function(){return w}});var s=n(3827),l=n(20996),r=n(32283),i=n(8792),a=n(64090),o=n(30298),c=n(77658),d=n(6245),u=n(97573);let x=e=>{let{children:t,className:n=""}=e;return(0,s.jsx)("div",{className:["typo-title",n].join(" "),children:t})},m=e=>{let{children:t,className:n=""}=e;return(0,s.jsx)("div",{className:["typo-hero",n].join(" "),children:t})},p=e=>{let{children:t,className:n=""}=e;return(0,s.jsx)("div",{className:["heading2",n].join(" "),children:t})},h=e=>{let{children:t,className:n="",color:l="text-typo-150"}=e;return(0,s.jsx)("div",{className:["heading8",l,n].join(" "),children:t})},f=e=>{let{children:t,className:n=""}=e;return(0,s.jsx)("div",{className:["typo-body-medium",n].join(" "),children:t})},j=e=>{let{children:t,href:n}=e;return(0,s.jsx)(i.default,{className:"text-left font-normal leading-[24px] underline",href:n,children:t})},v=e=>{let{className:t,...n}=e;return(0,s.jsx)("button",{...n,className:["cursor-pointer rounded-full bg-bg-550 px-[8px] py-[4px] text-white hover:bg-bg-600 disabled:cursor-not-allowed disabled:bg-bg-600 disabled:text-typo-150",t].join(" ")})},g=e=>{let{textToCopy:t}=e;return(0,s.jsx)("button",{className:"cursor-pointer",dangerouslySetInnerHTML:{__html:c.BR},onClick:()=>{navigator.clipboard.writeText(t),(0,o.Am)("Copied to clipboard",{type:"info"})}})},b=e=>{let{error:t,...n}=e;return(0,s.jsxs)("span",{className:"relative block",children:[(0,s.jsx)("input",{...n,className:["h-[96px] w-full rounded-[16px] border-[1px] bg-black p-[16px] pr-[140px] text-[48px] focus:outline-none",t?"border-danger":"border-white"].join(" ")}),(0,s.jsx)("span",{className:"absolute bottom-0 right-[12px] top-0 flex h-full items-center text-[48px] text-typo-300",children:"XION"})]})},N=e=>{let{children:t}=e;return(0,s.jsx)("div",{className:"text-danger",children:t})},y=e=>(0,s.jsx)("input",{...e,className:"h-[50px] w-full bg-black py-[8px] focus:outline-none",style:{border:"none",borderBottom:"1px solid white"}}),w=e=>{let{className:t,variant:n,...l}=e;return(0,s.jsx)("button",{...l,className:["w-full rounded-[8px] px-[12px] py-[16px] text-black disabled:cursor-not-allowed","danger"===n?"text-danger disabled:text-typo-150 bg-[#D745061A]":"success"===n?"bg-success text-black disabled:bg-green-400":"bg-white text-black disabled:bg-bg-400",t||""].join(" ")})},k=e=>{let{children:t,className:n,id:i,modalClass:o,offset:c,placement:x,Trigger:m}=e,[p,h]=(0,a.useState)(null),{core:f}=(0,d.l)(),j=f.state.popupOpenId===i;return(0,s.jsxs)("div",{className:[n].join(" "),children:[(0,s.jsx)("button",{onClick:e=>{e.stopPropagation(),f.dispatch((0,u.h3)(i))},ref:h,children:(0,s.jsx)(m,{id:i})}),j&&(0,s.jsx)(l.d,{onClickAway:()=>{j&&f.dispatch((0,u.h3)(null))},children:(0,s.jsx)(r.G,{anchor:p,className:[o].join(" "),offset:c,open:j,placement:x,withTransition:!0,children:t})})]})}},143:function(e,t,n){n.d(t,{N:function(){return r}});var s=n(3827),l=n(77658);let r=e=>{let{children:t,onSort:n,sort:r,sorting:i}=e,a=(i||[]).concat(["none"]),o=r?a.indexOf(r):-1;return(0,s.jsx)("div",{className:"text-[14px] font-normal leading-[14px] tracking-wider",children:(0,s.jsxs)("span",{className:"relative",children:[t," ",!!n&&!!r&&(0,s.jsx)("button",{className:"absolute right-[-16px] top-[6px] cursor-pointer",dangerouslySetInnerHTML:{__html:l.Sf},onClick:()=>{if(!n)return;let e=(1+a.indexOf(r))%a.length,t=a[e];null==n||n(t)},style:{rotate:0===o?"180deg":1===o?"0deg":"90deg"}})]})})}},6245:function(e,t,n){n.d(t,{l:function(){return r}});var s=n(64090),l=n(34417);let r=()=>{let e=(0,s.useRef)({}),t=(0,s.useContext)(l._);return e.current.state=t.state,e.current.dispatch=t.dispatch,{core:e.current}}},26605:function(e,t,n){var s=n(3827),l=n(30298);t.Z=e=>{let{address:t}=e;if(!t)return null;let n=[t.slice(0,5),t.slice(t.length-5)].join("...");return(0,s.jsx)("button",{className:"cursor-pointer text-left text-[12px] font-normal leading-[20px] text-typo-200",onClick:()=>{navigator.clipboard.writeText(t),(0,l.Am)("Copied to clipboard",{type:"info"})},children:n})}},79055:function(e,t,n){n.d(t,{sv:function(){return N},ZP:function(){return z},S6:function(){return b}});var s=n(3827),l=n(64090),r=n(98909),i=n(143),a=n(6245),o=n(97573);let c=(e,t,n)=>typeof e!=typeof t?0:"string"==typeof e?"asc"===n?e.localeCompare(t):t.localeCompare(e):"number"==typeof e?Number.isNaN(e)||Number.isNaN(t)?0:"asc"===n?e-t:t-e:0;var d=n(88197),u=n(80469),x=n(62986),m=n(39730),p=n(89056),h=n(66803),f=n(77658),j=n(67497),v=n(26605),g=n(48074);let b=e=>{let t=(0,m.jv)(e,null),n=(0,m.U2)(e,null);return(0,h.UO)(t)||(0,h.UO)(n)},N=e=>{let{isShowingDetails:t,setIsShowingDetails:n}=e;return(0,s.jsxs)("button",{className:"text-primary-500 flex flex-row items-center gap-2",onClick:()=>{n(!t)},children:[t?"Hide details":"Show details",(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:f.cx},style:{transform:"rotate(".concat(t?"0deg":"180deg",")")}})]})},y={gap:"16px",gridTemplateColumns:"60px 1.5fr repeat(4, 1fr)"},w="grid w-full items-center justify-between gap-2 p-2 mb-[24px] last:mb-[0px] bg-black rounded-[8px]",k="w-full overflow-hidden rounded-[24px] bg-bg-600 pb-4 text-typo-100 px-[16px]",S=()=>(0,s.jsx)("span",{children:". . ."}),C=(0,l.memo)(e=>{let{accountAddress:t,client:n,core:i,delegation:a,disabled:c,index:u,staking:m}=e,[h,f]=(0,l.useState)(null),{validatorAddress:b}=a;(0,l.useEffect)(()=>{(async()=>{b&&f(await (0,d.Dr)(b,m))})()},[b,m]);let N=(0,p.P)(null==h?void 0:h.description.identity);return(0,s.jsxs)("div",{className:w,style:y,children:[(0,s.jsx)("div",{className:"flex items-center justify-start",children:(0,s.jsx)("img",{alt:"Validator logo",className:"block w-[50px] rounded-full",src:N,style:{height:50,width:50}})}),(0,s.jsx)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:(0,s.jsxs)("div",{className:"flex flex-col justify-start gap-2 text-left",children:[(0,s.jsx)("div",{className:"text-[14px] font-bold leading-[20px]",children:(null==h?void 0:h.description.moniker)||""}),(0,s.jsx)(v.Z,{address:(null==h?void 0:h.operatorAddress)||""})]})}),(0,s.jsx)("div",{className:"text-right",children:(0,s.jsx)(g.Z,{text:(0,j.Em)(a.balance)})}),(0,s.jsx)("div",{className:"text-right",children:h?(0,j.i)(h.commission.commissionRates.rate,0):""}),(0,s.jsx)("div",{className:"text-right",children:(0,s.jsx)(g.Z,{text:(0,j.Em)(a.rewards)})}),(0,s.jsxs)("div",{className:"flex flex-row items-center justify-start gap-[8px]",children:[(0,s.jsx)(r.hp,{disabled:c,onClick:()=>{h&&m.dispatch((0,x.ZG)({content:{validator:h},type:"delegate"}))},children:"Delegate"}),(0,s.jsx)(r.Rk,{Trigger:S,id:"delegation-".concat(u),children:(0,s.jsxs)("div",{className:"flex flex-col gap-[12px] bg-black",children:[(0,s.jsx)(r.hp,{disabled:c,onClick:()=>{if(!n)return;let e={delegator:t,validator:a.validatorAddress};i.dispatch((0,o.WY)(!0)),(0,d.sT)(e,n,m).finally(()=>{i.dispatch((0,o.WY)(!1))})},children:"Claim rewards"}),(0,s.jsx)(r.hp,{disabled:c,onClick:()=>{h&&m.dispatch((0,x.ZG)({content:{validator:h},type:"undelegate"}))},children:"Undelegate"})]})})]})]})}),A=e=>{var t;let{disabled:n,staking:l,unbonding:i}=e,a=((null===(t=l.state.validators)||void 0===t?void 0:t.items)||[]).find(e=>e.operatorAddress===i.validator),o=(0,p.P)(null==a?void 0:a.description.identity);return(0,s.jsxs)("div",{className:w,style:y,children:[(0,s.jsx)("div",{className:"flex items-center justify-start",children:(0,s.jsx)("img",{alt:"Validator logo",className:"block w-[50px] rounded-full",src:o,style:{height:50,width:50}})}),(0,s.jsx)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:(0,s.jsxs)("div",{className:"flex flex-col justify-start gap-2 text-left",children:[(0,s.jsx)("div",{className:"text-[14px] font-bold leading-[20px]",children:(null==a?void 0:a.description.moniker)||""}),(0,s.jsx)(v.Z,{address:(null==a?void 0:a.operatorAddress)||""})]})}),(0,s.jsx)("div",{className:"text-right",children:(0,s.jsx)(g.Z,{text:(0,j.Em)(i.balance)})}),(0,s.jsx)("div",{className:"text-right",children:"Unbonding"}),(0,s.jsx)("div",{className:"text-right",children:(0,j.ts)(i.completionTime)}),(0,s.jsx)("div",{children:(0,s.jsx)(r.hp,{disabled:n,onClick:()=>{},children:"Cancel"})})]})},Z=i.N,E=i.N,O="grid w-full items-center justify-between gap-2 p-4 uppercase";var z=(0,l.memo)(()=>{let e=(0,u.n)(),{core:t}=(0,a.l)(),{client:n,staking:r}=e,[i,o]=(0,l.useState)("none"),[d,x]=(0,l.useState)("none"),{delegations:m,unbondings:p}=r.state,h=!!(null==m?void 0:m.items.length),f=!!(null==p?void 0:p.items.length);return h||f?(0,s.jsxs)("div",{className:"flex h-full flex-1 flex-col items-end gap-[16px]",children:[h&&(()=>{var l;let a=(null===(l=r.state.validators)||void 0===l?void 0:l.items.reduce((e,t)=>(e[t.operatorAddress]=t,e),{...r.state.extraValidators}))||{},d=m.items.slice().sort((e,t)=>{switch(i){case"staked-asc":case"staked-desc":return c(e.balance.amount,t.balance.amount,"staked-asc"===i?"asc":"desc");case"rewards-asc":case"rewards-desc":return c(e.rewards.amount,t.rewards.amount,"rewards-asc"===i?"asc":"desc");case"commission-asc":case"commission-desc":{let n=a[e.validatorAddress],s=a[t.validatorAddress];return c(Number(null==n?void 0:n.commission.commissionRates.rate),Number(null==s?void 0:s.commission.commissionRates.rate),"commission-asc"===i?"asc":"desc")}default:return 0}});return(0,s.jsxs)("div",{className:k,children:[(0,s.jsxs)("div",{className:O,style:y,children:[(0,s.jsx)("div",{}),(0,s.jsx)(Z,{children:"Delegations"}),(0,s.jsx)(Z,{onSort:o,sort:i,sorting:["staked-asc","staked-desc"],children:(0,s.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,s.jsx)(Z,{onSort:o,sort:i,sorting:["commission-asc","commission-desc"],children:(0,s.jsx)("div",{className:"text-right",children:"Commission"})}),(0,s.jsx)(Z,{onSort:o,sort:i,sorting:["rewards-asc","rewards-desc"],children:(0,s.jsx)("div",{className:"text-right",children:"Rewards"})})]}),d.map((l,i)=>(0,s.jsx)(C,{accountAddress:e.account.bech32Address,client:n,core:t,delegation:l,index:i,staking:r},i))]})})(),f&&(()=>{let e=p.items.slice().sort((e,t)=>{switch(d){case"amount-asc":case"amount-desc":return c(Number(e.balance.amount),Number(t.balance.amount),"amount-asc"===d?"asc":"desc");case"completion-asc":case"completion-desc":return c(e.completionTime,t.completionTime,"completion-asc"===d?"asc":"desc");default:return 0}});return(0,s.jsxs)("div",{className:k,children:[(0,s.jsxs)("div",{className:O,style:y,children:[(0,s.jsx)("div",{}),(0,s.jsx)(E,{children:"Unstakings"}),(0,s.jsx)(E,{onSort:x,sort:d,sorting:["staked-asc","staked-desc"],children:(0,s.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,s.jsx)(E,{children:(0,s.jsx)("div",{className:"text-right",children:"Status"})}),(0,s.jsx)(E,{onSort:x,sort:d,sorting:["date-asc","date-desc"],children:(0,s.jsx)("div",{className:"text-right",children:"Completion Time"})})]}),e.map((e,t)=>(0,s.jsx)(A,{staking:r,unbonding:e},t))]})})()]}):null})},71860:function(e,t,n){n.d(t,{Z:function(){return k}});var s=n(3827),l=n(98909),r=n(64090),i=n(98245),a=n.n(i),o=n(77658);a().setAppElement(document.body);var c=e=>{let{children:t,...n}=e;return(0,r.useEffect)(()=>{if(n.isOpen){let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[n.isOpen]),(0,s.jsx)(a(),{...n,style:{content:{background:"#000",border:"none",borderRadius:"48px",bottom:"auto",boxShadow:"0px 0px 50px 0px #FFFFFF40",left:"50%",opacity:.8,padding:"45px",right:"auto",top:"50%",transform:"translate(-50%, -50%)"},overlay:{backgroundColor:"rgba(0, 0, 0, 0.5)"}},children:(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsx)("button",{className:"absolute right-[-16px] top-[-16px] w-[36px] cursor-pointer",dangerouslySetInnerHTML:{__html:o.kC},onClick:n.onRequestClose}),t]})})},d=n(80469),u=n(62986),x=()=>{let e=(0,d.n)(),{staking:t}=e,{modal:n}=t.state,r=(null==n?void 0:n.type)==="rewards";return r?(0,s.jsxs)(c,{isOpen:r,onRequestClose:()=>{e.staking.dispatch((0,u.ZG)(null))},children:[(0,s.jsx)("div",{children:"Success!"}),(0,s.jsx)("div",{children:"You have claimed your staking rewards successfully."}),(0,s.jsx)(l.zx,{children:"CLOSE"})]}):null},m=n(22840),p=n(30298),h=n(88197),f=n(39730),j=n(66803),v=n(9016),g=n(67497);let b="input";var N=()=>{let e=(0,d.n)(),{client:t}=e,[n,i]=(0,r.useState)(b),[a,o]=(0,r.useState)(!1),[x,N]=(0,r.useState)(""),[y,w]=(0,r.useState)(""),[k,S]=(0,r.useState)({amount:void 0,memo:void 0}),{account:C,staking:A}=e,{modal:Z}=A.state,E=(null==Z?void 0:Z.type)==="delegate";if((0,r.useEffect)(()=>()=>{i(b),S({}),N(""),w("")},[E]),!E)return null;let{validator:O}=null==Z?void 0:Z.content,z=new m.Z(x),F=z.isNaN()?"":z.times(v.Ex),I=Object.values(k).some(e=>!!e),H=(0,f.ap)(A.state);return(0,s.jsx)(c,{isOpen:E,onRequestClose:()=>{a||e.staking.dispatch((0,u.ZG)(null))},children:(0,s.jsx)("div",{className:"min-w-[390px]",children:(()=>{if("completed"===n)return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"mb-[16px]",children:(0,s.jsx)(l.ls,{children:"SUCCESS!"})}),(0,s.jsxs)("div",{children:["You have successfully staked on"," ",O.description.moniker,". Thank you for contributing in securing the XION network."]})]}),(0,s.jsxs)("div",{className:"mb-[32px] mt-[32px] flex w-full flex-col items-center justify-center gap-[12px]",children:[(0,s.jsx)(l.Bz,{children:"Staked Amount"}),(0,s.jsx)(l.XJ,{children:x}),(0,s.jsx)(l.Bz,{children:"$24N"})]}),!!y&&(0,s.jsx)("div",{className:"mb-[32px] text-center italic",children:(0,s.jsx)("div",{children:y})}),(0,s.jsx)(l.zx,{disabled:a,onClick:()=>{e.staking.dispatch((0,u.ZG)(null))},children:"CLOSE"})]});let r=()=>!F||!H||z.isNaN()||z.gt(H);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"text-center uppercase",children:(0,s.jsxs)(l.ls,{children:["Delegate To ",O.description.moniker]})}),H&&(()=>{let e=H.times(v.Ex);return(0,s.jsxs)("div",{className:"mt-[40px] flex w-full flex-col items-center justify-center gap-[12px] uppercase",children:[(0,s.jsx)(l.Bz,{children:"Available for delegation (XION)"}),(0,s.jsx)(l.XJ,{children:(0,g.HS)(H)}),(0,s.jsxs)(l.Bz,{children:["$",(0,g.HS)(e)]})]})})(),(0,s.jsxs)("div",{className:"mt-[40px] flex w-full flex-row justify-between",children:[(0,s.jsx)("div",{children:"Amount"}),!!F&&(0,s.jsxs)(l.Bz,{children:["= $",(0,g.HS)(F)]})]}),(0,s.jsxs)("form",{onSubmit:e=>{if(null==e||e.stopPropagation(),null==e||e.preventDefault(),!t||I||r()||z.lt(0))return;o(!0);let n={delegator:C.bech32Address,validator:O.operatorAddress};(0,h._5)(n,(0,j.Jp)(z),y,t,A).then(e=>(i("completed"),e())).catch(()=>{(0,p.Am)("Staking error",{type:"error"})}).finally(()=>{o(!1)})},children:[(0,s.jsxs)("div",{className:"mt-[8px]",children:[(0,s.jsx)(l.Wz,{disabled:a,error:!!k.amount,onBlur:()=>{r()&&S({...k,amount:"Invalid amount"})},onChange:e=>{k.amount&&S({...k,amount:void 0}),N(e.target.value)},value:x}),k.amount&&(0,s.jsx)("div",{children:(0,s.jsx)(l.Xq,{children:k.amount})})]}),(0,s.jsx)("div",{className:"mt-[40px] w-full",children:(0,s.jsx)(l.sr,{disabled:a,onChange:e=>{w(e.target.value)},placeholder:"Memo (Optional)",value:y})}),(0,s.jsx)("div",{className:"mt-[48px] w-full",children:(0,s.jsx)(l.zx,{disabled:a||I,type:"submit",children:"Delegate Now"})})]})]})})()})})};let y="input";var w=()=>{let e=(0,d.n)(),{client:t}=e,[n,i]=(0,r.useState)(y),[a,o]=(0,r.useState)(!1),[x,b]=(0,r.useState)(""),[N,w]=(0,r.useState)(""),{account:k,staking:S}=e,{modal:C}=S.state,A=(null==C?void 0:C.type)==="undelegate";if((0,r.useEffect)(()=>()=>{i(y),b(""),w("")},[A]),!A)return null;let{validator:Z}=null==C?void 0:C.content,E=new m.Z(x),O=E.isNaN()?"":E.times(v.Ex),z=(0,f.U2)(S.state,Z.operatorAddress);return(0,s.jsx)(c,{isOpen:A,onRequestClose:()=>{a||e.staking.dispatch((0,u.ZG)(null))},children:(0,s.jsx)("div",{className:"min-w-[390px]",children:"completed"===n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"mb-[16px]",children:(0,s.jsx)(l.ls,{children:"SUCCESS!"})}),(0,s.jsxs)("div",{children:["You have successfully unstaked from"," ",Z.description.moniker,". It takes"," ",21," days to complete the unstaking process"]})]}),(0,s.jsxs)("div",{className:"mb-[32px] mt-[32px] flex w-full flex-col items-center justify-center gap-[12px]",children:[(0,s.jsx)(l.Bz,{children:"Unstaking Amount (XION)"}),(0,s.jsx)(l.XJ,{children:(0,g.HS)(E)}),(0,s.jsx)(l.Bz,{children:(0,g.H_)((0,j.Jp)(E))})]}),!!N&&(0,s.jsx)("div",{className:"mb-[32px] text-center italic",children:(0,s.jsx)("div",{children:N})}),(0,s.jsx)(l.zx,{disabled:a,onClick:()=>{e.staking.dispatch((0,u.ZG)(null))},children:"CLOSE"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"text-center uppercase",children:(0,s.jsxs)(l.ls,{children:["Unstake From ",Z.description.moniker]})}),z&&(()=>{let e=new m.Z(z.amount).times(v.Ex);return(0,s.jsxs)("div",{className:"mt-[40px] flex w-full flex-col items-center justify-center gap-[12px] uppercase",children:[(0,s.jsx)(l.Bz,{children:"Available amount (XION)"}),(0,s.jsx)(l.XJ,{children:(0,g.HS)(new m.Z(z.amount))}),(0,s.jsxs)(l.Bz,{children:["$",(0,g.HS)(e)]})]})})(),(0,s.jsxs)("div",{className:"mt-[40px] flex w-full flex-row justify-between",children:[(0,s.jsx)("div",{children:"Amount"}),!!O&&(0,s.jsxs)(l.Bz,{children:["=$",(0,g.HS)(O)]})]}),(0,s.jsxs)("form",{onSubmit:e=>{if(null==e||e.stopPropagation(),null==e||e.preventDefault(),!t||!E.gt(0))return;o(!0);let n={delegator:k.bech32Address,validator:Z.operatorAddress};(0,h.xu)(n,(0,j.Jp)(E),N,t,S).then(e=>(i("completed"),e())).catch(()=>{(0,p.Am)("Staking error",{type:"error"})}).finally(()=>{o(!1)})},children:[(0,s.jsx)("div",{className:"mt-[8px]",children:(0,s.jsx)(l.Wz,{disabled:a,onChange:e=>{b(e.target.value)},value:x})}),(0,s.jsx)("div",{className:"mt-[40px] w-full",children:(0,s.jsx)(l.sr,{disabled:a,onChange:e=>{w(e.target.value)},placeholder:"Memo (Optional)",value:N})}),(0,s.jsx)("div",{className:"mt-[48px] w-full",children:(0,s.jsx)(l.zx,{disabled:a,type:"submit",children:"Unstake Now"})})]})]})})})},k=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(N,{}),(0,s.jsx)(w,{}),(0,s.jsx)(x,{})]})},48074:function(e,t,n){var s=n(3827);t.Z=e=>{let{text:t}=e,[n,l]=t.split(" ");return(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{children:n})," ",(0,s.jsx)("span",{className:"text-typo-200",children:l})]})}},39730:function(e,t,n){n.d(t,{Cn:function(){return a},Sg:function(){return d},U2:function(){return r},ap:function(){return o},jv:function(){return i},zq:function(){return c}});var s=n(22840),l=n(66803);let r=(e,t)=>{let{delegations:n}=e;if(!(null==n?void 0:n.items.length))return null;let s=n.items.filter(e=>!t||e.validatorAddress===t).map(e=>e.balance);return(0,l.HJ)(s)},i=(e,t)=>{let{unbondings:n}=e;if(!(null==n?void 0:n.items.length))return null;let s=n.items.filter(e=>!t||e.validator===t).map(e=>e.balance);return(0,l.HJ)(s)},a=(e,t)=>{let{delegations:n}=t;if(!(null==n?void 0:n.items.length))return null;let s=n.items.filter(t=>!e||t.validatorAddress===e).map(e=>e.rewards);return(0,l.HJ)(s)},o=e=>{let{tokens:t}=e;return t?new s.Z((0,l.bI)(t).amount):null},c=(e,t)=>{var n;return!!(null===(n=t.delegations)||void 0===n?void 0:n.items.some(t=>t.validatorAddress===e))},d=(e,t)=>{let{pool:n}=t;return e&&"string"==typeof(null==n?void 0:n.bondedTokens)?new s.Z(e).div(new s.Z(n.bondedTokens)).toNumber():null}},89056:function(e,t,n){n.d(t,{P:function(){return a}});var s=n(64090),l=n(9016);let r={},i={getIdentityLogo:e=>{if(r[e])return r[e];let t=fetch("https://keybase.io/_/api/1.0/user/lookup.json?key_suffix=".concat(e)).then(e=>e.json()).then(e=>{var t,n,s,l;return(null==e?void 0:null===(l=e.them)||void 0===l?void 0:null===(s=l[0])||void 0===s?void 0:null===(n=s.pictures)||void 0===n?void 0:null===(t=n.primary)||void 0===t?void 0:t.url)||null}).catch(()=>null);return r[e]=t,t}},a=e=>{let[t,n]=(0,s.useState)(null);return(0,s.useEffect)(()=>{(async()=>{e&&n(await i.getIdentityLogo(e))})()},[e]),t||l.c1}},67497:function(e,t,n){n.d(t,{Em:function(){return i},HS:function(){return o},H_:function(){return d},gg:function(){return a},i:function(){return c},ts:function(){return u}});var s=n(22840),l=n(66803),r=n(9016);let i=(e,t)=>{let n=(0,l.bI)(e),r=new s.Z(n.amount);if(r.eq(0))return"".concat(r.toFormat()," ").concat(n.denom);if(r.lt(1e-4))return"<".concat(1e-4," ").concat(n.denom);if(t){let e=Intl.NumberFormat("en",{notation:"compact"});return"".concat(e.format(r.toNumber())," ").concat(n.denom)}return"".concat(r.toFormat(4)," ").concat(n.denom)},a=e=>{if("number"!=typeof e||Number.isNaN(e))return null;let t=e<1e-4?"<0.1":(100*e).toFixed(1);return"".concat(t,"%")},o=e=>Intl.NumberFormat("en",{notation:"compact"}).format(e.toNumber()),c=(e,t)=>{let n=new s.Z(e).div(new s.Z(10).pow(18)).toNumber();return"".concat((100*n).toFixed(t),"%")},d=(e,t)=>{let n=(0,l.bI)(e||(0,l.IB)()),i=new s.Z(e?n.amount:0).times(r.Ex);return!t&&i.lt(.01)?"<$0.01":"$".concat(t?o(i):i.toFormat(2))},u=e=>{let t=1e3*e,n=Math.floor((t-Date.now())/864e5),s=new Date(t).toLocaleString("default",{month:"short"}),l=new Date(t).getDate(),r=new Date(t).getFullYear();return"in ".concat(n," day").concat(1===n?"":"s",", ").concat(s," ").concat(l," ").concat(r)}}}]); \ No newline at end of file diff --git a/_next/static/chunks/736-8ea8cb054a331a98.js b/_next/static/chunks/736-8ea8cb054a331a98.js deleted file mode 100644 index 938e4e7..0000000 --- a/_next/static/chunks/736-8ea8cb054a331a98.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[736],{98909:function(e,t,n){n.d(t,{Bz:function(){return h},Dx:function(){return x},M5:function(){return g},OL:function(){return j},Rk:function(){return k},Wz:function(){return b},XJ:function(){return p},Xq:function(){return N},hp:function(){return v},jr:function(){return f},ls:function(){return m},sr:function(){return y},zx:function(){return w}});var s=n(3827),l=n(20996),r=n(32283),i=n(8792),a=n(64090),d=n(30298),o=n(77658),c=n(6245),u=n(97573);let x=e=>{let{children:t,className:n=""}=e;return(0,s.jsx)("div",{className:["typo-title",n].join(" "),children:t})},m=e=>{let{children:t,className:n=""}=e;return(0,s.jsx)("div",{className:["typo-hero",n].join(" "),children:t})},p=e=>{let{children:t,className:n=""}=e;return(0,s.jsx)("div",{className:["heading2",n].join(" "),children:t})},h=e=>{let{children:t,className:n="",color:l="text-typo-150"}=e;return(0,s.jsx)("div",{className:["heading8",l,n].join(" "),children:t})},f=e=>{let{children:t,className:n=""}=e;return(0,s.jsx)("div",{className:["typo-body-medium",n].join(" "),children:t})},j=e=>{let{children:t,href:n}=e;return(0,s.jsx)(i.default,{className:"text-left font-normal leading-[24px] underline",href:n,children:t})},v=e=>{let{className:t,...n}=e;return(0,s.jsx)("button",{...n,className:["cursor-pointer rounded-full bg-bg-550 px-[8px] py-[4px] text-white hover:bg-bg-600 disabled:cursor-not-allowed disabled:bg-bg-600 disabled:text-typo-150",t].join(" ")})},g=e=>{let{textToCopy:t}=e;return(0,s.jsx)("button",{className:"cursor-pointer",dangerouslySetInnerHTML:{__html:o.BR},onClick:()=>{navigator.clipboard.writeText(t),(0,d.Am)("Copied to clipboard",{type:"info"})}})},b=e=>{let{error:t,...n}=e;return(0,s.jsxs)("span",{className:"relative block",children:[(0,s.jsx)("input",{...n,className:["h-[96px] w-full rounded-[16px] border-[1px] bg-black p-[16px] pr-[140px] text-[48px] focus:outline-none",t?"border-danger":"border-white"].join(" ")}),(0,s.jsx)("span",{className:"absolute bottom-0 right-[12px] top-0 flex h-full items-center text-[48px] text-typo-300",children:"XION"})]})},N=e=>{let{children:t}=e;return(0,s.jsx)("div",{className:"text-danger",children:t})},y=e=>(0,s.jsx)("input",{...e,className:"h-[50px] w-full bg-black py-[8px] focus:outline-none",style:{border:"none",borderBottom:"1px solid white"}}),w=e=>{let{className:t,variant:n,...l}=e;return(0,s.jsx)("button",{...l,className:["w-full rounded-[8px] px-[12px] py-[16px] text-black disabled:cursor-not-allowed","danger"===n?"text-danger disabled:text-typo-150 bg-[#D745061A]":"success"===n?"bg-success text-black disabled:bg-green-400":"bg-white text-black disabled:bg-bg-400",t||""].join(" ")})},k=e=>{let{children:t,className:n,id:i,modalClass:d,offset:o,placement:x,Trigger:m}=e,[p,h]=(0,a.useState)(null),{core:f}=(0,c.l)(),j=f.state.popupOpenId===i;return(0,s.jsxs)("div",{className:[n].join(" "),children:[(0,s.jsx)("button",{onClick:e=>{e.stopPropagation(),f.dispatch((0,u.h3)(i))},ref:h,children:(0,s.jsx)(m,{id:i})}),j&&(0,s.jsx)(l.d,{onClickAway:()=>{j&&f.dispatch((0,u.h3)(null))},children:(0,s.jsx)(r.G,{anchor:p,className:[d].join(" "),offset:o,open:j,placement:x,withTransition:!0,children:t})})]})}},143:function(e,t,n){n.d(t,{N:function(){return r}});var s=n(3827),l=n(77658);let r=e=>{let{children:t,onSort:n,sort:r,sorting:i}=e,a=(i||[]).concat(["none"]),d=r?a.indexOf(r):-1;return(0,s.jsx)("div",{className:"text-[14px] font-normal leading-[14px] tracking-wider",children:(0,s.jsxs)("span",{className:"relative",children:[t," ",!!n&&!!r&&(0,s.jsx)("button",{className:"absolute right-[-16px] top-[6px] cursor-pointer",dangerouslySetInnerHTML:{__html:l.Sf},onClick:()=>{if(!n)return;let e=(1+a.indexOf(r))%a.length,t=a[e];null==n||n(t)},style:{rotate:0===d?"180deg":1===d?"0deg":"90deg"}})]})})}},6245:function(e,t,n){n.d(t,{l:function(){return r}});var s=n(64090),l=n(34417);let r=()=>{let e=(0,s.useRef)({}),t=(0,s.useContext)(l._);return e.current.state=t.state,e.current.dispatch=t.dispatch,{core:e.current}}},26605:function(e,t,n){var s=n(3827),l=n(30298);t.Z=e=>{let{address:t}=e;if(!t)return null;let n=[t.slice(0,5),t.slice(t.length-5)].join("...");return(0,s.jsx)("button",{className:"cursor-pointer text-left text-[12px] font-normal leading-[20px] text-typo-200",onClick:()=>{navigator.clipboard.writeText(t),(0,l.Am)("Copied to clipboard",{type:"info"})},children:n})}},62948:function(e,t,n){n.d(t,{S6:function(){return g},sv:function(){return b}});var s=n(3827),l=n(64090),r=n(98909),i=n(143),a=n(6245),d=n(97573),o=n(88197),c=n(80469),u=n(62986),x=n(39730),m=n(89056),p=n(66803),h=n(77658),f=n(67497),j=n(26605),v=n(48074);let g=e=>{let t=(0,x.jv)(e,null),n=(0,x.U2)(e,null);return(0,p.UO)(t)||(0,p.UO)(n)},b=e=>{let{isShowingDetails:t,setIsShowingDetails:n}=e;return(0,s.jsxs)("button",{className:"text-primary-500 flex flex-row items-center gap-2",onClick:()=>{n(!t)},children:[t?"Hide details":"Show details",(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:h.cx},style:{transform:"rotate(".concat(t?"0deg":"180deg",")")}})]})},N={gap:"16px",gridTemplateColumns:"60px 1.5fr repeat(4, 1fr)"},y="grid w-full items-center justify-between gap-2 p-2 mb-[24px] last:mb-[0px] bg-black rounded-[8px]",w="w-full overflow-hidden rounded-[24px] bg-bg-600 pb-4 text-typo-100 px-[16px]",k=()=>(0,s.jsx)("span",{children:". . ."}),S=(0,l.memo)(e=>{let{accountAddress:t,client:n,core:i,delegation:a,disabled:c,index:x,staking:p}=e,[h,g]=(0,l.useState)(null),{validatorAddress:b}=a;(0,l.useEffect)(()=>{(async()=>{b&&g(await (0,o.Dr)(b,p))})()},[b,p]);let w=(0,m.P)(null==h?void 0:h.description.identity);return(0,s.jsxs)("div",{className:y,style:N,children:[(0,s.jsx)("div",{className:"flex items-center justify-start",children:(0,s.jsx)("img",{alt:"Validator logo",className:"block w-[50px] rounded-full",src:w,style:{height:50,width:50}})}),(0,s.jsx)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:(0,s.jsxs)("div",{className:"flex flex-col justify-start gap-2 text-left",children:[(0,s.jsx)("div",{className:"text-[14px] font-bold leading-[20px]",children:(null==h?void 0:h.description.moniker)||""}),(0,s.jsx)(j.Z,{address:(null==h?void 0:h.operatorAddress)||""})]})}),(0,s.jsx)("div",{className:"text-right",children:(0,s.jsx)(v.Z,{text:(0,f.Em)(a.balance)})}),(0,s.jsx)("div",{className:"text-right",children:h?(0,f.i)(h.commission.commissionRates.rate,0):""}),(0,s.jsx)("div",{className:"text-right",children:(0,s.jsx)(v.Z,{text:(0,f.Em)(a.rewards)})}),(0,s.jsxs)("div",{className:"flex flex-row items-center justify-start gap-[8px]",children:[(0,s.jsx)(r.hp,{disabled:c,onClick:()=>{h&&p.dispatch((0,u.ZG)({content:{validator:h},type:"delegate"}))},children:"Delegate"}),(0,s.jsx)(r.Rk,{Trigger:k,id:"delegation-".concat(x),children:(0,s.jsxs)("div",{className:"flex flex-col gap-[12px] bg-black",children:[(0,s.jsx)(r.hp,{disabled:c,onClick:()=>{if(!n)return;let e={delegator:t,validator:a.validatorAddress};i.dispatch((0,d.WY)(!0)),(0,o.sT)(e,n,p).finally(()=>{i.dispatch((0,d.WY)(!1))})},children:"Claim rewards"}),(0,s.jsx)(r.hp,{disabled:c,onClick:()=>{h&&p.dispatch((0,u.ZG)({content:{validator:h},type:"undelegate"}))},children:"Undelegate"})]})})]})]})}),C=e=>{var t;let{disabled:n,staking:l,unbonding:i}=e,a=((null===(t=l.state.validators)||void 0===t?void 0:t.items)||[]).find(e=>e.operatorAddress===i.validator),d=(0,m.P)(null==a?void 0:a.description.identity);return(0,s.jsxs)("div",{className:y,style:N,children:[(0,s.jsx)("div",{className:"flex items-center justify-start",children:(0,s.jsx)("img",{alt:"Validator logo",className:"block w-[50px] rounded-full",src:d,style:{height:50,width:50}})}),(0,s.jsx)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:(0,s.jsxs)("div",{className:"flex flex-col justify-start gap-2 text-left",children:[(0,s.jsx)("div",{className:"text-[14px] font-bold leading-[20px]",children:(null==a?void 0:a.description.moniker)||""}),(0,s.jsx)(j.Z,{address:(null==a?void 0:a.operatorAddress)||""})]})}),(0,s.jsx)("div",{className:"text-right",children:(0,s.jsx)(v.Z,{text:(0,f.Em)(i.balance)})}),(0,s.jsx)("div",{className:"text-right",children:"Unbonding"}),(0,s.jsx)("div",{className:"text-right",children:(0,f.ts)(i.completionTime)}),(0,s.jsx)("div",{children:(0,s.jsx)(r.hp,{disabled:n,onClick:()=>{},children:"Cancel"})})]})},A=i.N,Z="grid w-full items-center justify-between gap-2 p-4 uppercase";t.ZP=(0,l.memo)(()=>{let e=(0,c.n)(),{core:t}=(0,a.l)(),{client:n,staking:r}=e,[i,d]=(0,l.useState)("none"),[o,u]=(0,l.useState)("none"),{delegations:x,unbondings:m}=r.state,p=!!(null==x?void 0:x.items.length),h=!!(null==m?void 0:m.items.length);return p||h?(0,s.jsxs)("div",{className:"flex h-full flex-1 flex-col items-end gap-[16px]",children:[p&&(()=>{let l=x.items.slice();return(0,s.jsxs)("div",{className:w,children:[(0,s.jsxs)("div",{className:Z,style:N,children:[(0,s.jsx)("div",{}),(0,s.jsx)(A,{children:"Delegations"}),(0,s.jsx)(A,{onSort:u,sort:i,sorting:["staked-asc","staked-desc"],children:(0,s.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,s.jsx)(A,{onSort:u,sort:i,sorting:["commission-asc","commission-desc"],children:(0,s.jsx)("div",{className:"text-right",children:"Commission"})}),(0,s.jsx)(A,{onSort:u,sort:i,sorting:["rewards-asc","rewards-desc"],children:(0,s.jsx)("div",{className:"text-right",children:"Rewards"})})]}),l.map((l,i)=>(0,s.jsx)(S,{accountAddress:e.account.bech32Address,client:n,core:t,delegation:l,index:i,staking:r},i))]})})(),h&&(()=>{let e=m.items.slice();return(0,s.jsxs)("div",{className:w,children:[(0,s.jsxs)("div",{className:Z,style:N,children:[(0,s.jsx)("div",{}),(0,s.jsx)(A,{children:"Delegations"}),(0,s.jsx)(A,{onSort:d,sort:o,sorting:["staked-asc","staked-desc"],children:(0,s.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,s.jsx)(A,{children:(0,s.jsx)("div",{className:"text-right",children:"Status"})}),(0,s.jsx)(A,{onSort:d,sort:o,sorting:["date-asc","date-desc"],children:(0,s.jsx)("div",{className:"text-right",children:"Completion Time"})})]}),e.map((e,t)=>(0,s.jsx)(C,{staking:r,unbonding:e},t))]})})()]}):null})},71860:function(e,t,n){n.d(t,{Z:function(){return k}});var s=n(3827),l=n(98909),r=n(64090),i=n(98245),a=n.n(i),d=n(77658);a().setAppElement(document.body);var o=e=>{let{children:t,...n}=e;return(0,r.useEffect)(()=>{if(n.isOpen){let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[n.isOpen]),(0,s.jsx)(a(),{...n,style:{content:{background:"#000",border:"none",borderRadius:"48px",bottom:"auto",boxShadow:"0px 0px 50px 0px #FFFFFF40",left:"50%",opacity:.8,padding:"45px",right:"auto",top:"50%",transform:"translate(-50%, -50%)"},overlay:{backgroundColor:"rgba(0, 0, 0, 0.5)"}},children:(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsx)("button",{className:"absolute right-[-16px] top-[-16px] w-[36px] cursor-pointer",dangerouslySetInnerHTML:{__html:d.kC},onClick:n.onRequestClose}),t]})})},c=n(80469),u=n(62986),x=()=>{let e=(0,c.n)(),{staking:t}=e,{modal:n}=t.state,r=(null==n?void 0:n.type)==="rewards";return r?(0,s.jsxs)(o,{isOpen:r,onRequestClose:()=>{e.staking.dispatch((0,u.ZG)(null))},children:[(0,s.jsx)("div",{children:"Success!"}),(0,s.jsx)("div",{children:"You have claimed your staking rewards successfully."}),(0,s.jsx)(l.zx,{children:"CLOSE"})]}):null},m=n(22840),p=n(30298),h=n(88197),f=n(39730),j=n(66803),v=n(9016),g=n(67497);let b="input";var N=()=>{let e=(0,c.n)(),{client:t}=e,[n,i]=(0,r.useState)(b),[a,d]=(0,r.useState)(!1),[x,N]=(0,r.useState)(""),[y,w]=(0,r.useState)(""),[k,S]=(0,r.useState)({amount:void 0,memo:void 0}),{account:C,staking:A}=e,{modal:Z}=A.state,E=(null==Z?void 0:Z.type)==="delegate";if((0,r.useEffect)(()=>()=>{i(b),S({}),N(""),w("")},[E]),!E)return null;let{validator:O}=null==Z?void 0:Z.content,z=new m.Z(x),F=z.isNaN()?"":z.times(v.Ex),I=Object.values(k).some(e=>!!e),H=(0,f.ap)(A.state);return(0,s.jsx)(o,{isOpen:E,onRequestClose:()=>{a||e.staking.dispatch((0,u.ZG)(null))},children:(0,s.jsx)("div",{className:"min-w-[390px]",children:(()=>{if("completed"===n)return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"mb-[16px]",children:(0,s.jsx)(l.ls,{children:"SUCCESS!"})}),(0,s.jsxs)("div",{children:["You have successfully staked on"," ",O.description.moniker,". Thank you for contributing in securing the XION network."]})]}),(0,s.jsxs)("div",{className:"mb-[32px] mt-[32px] flex w-full flex-col items-center justify-center gap-[12px]",children:[(0,s.jsx)(l.Bz,{children:"Staked Amount"}),(0,s.jsx)(l.XJ,{children:x}),(0,s.jsx)(l.Bz,{children:"$24N"})]}),!!y&&(0,s.jsx)("div",{className:"mb-[32px] text-center italic",children:(0,s.jsx)("div",{children:y})}),(0,s.jsx)(l.zx,{disabled:a,onClick:()=>{e.staking.dispatch((0,u.ZG)(null))},children:"CLOSE"})]});let r=()=>!F||!H||z.isNaN()||z.gt(H);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"text-center uppercase",children:(0,s.jsxs)(l.ls,{children:["Delegate To ",O.description.moniker]})}),H&&(()=>{let e=H.times(v.Ex);return(0,s.jsxs)("div",{className:"mt-[40px] flex w-full flex-col items-center justify-center gap-[12px] uppercase",children:[(0,s.jsx)(l.Bz,{children:"Available for delegation (XION)"}),(0,s.jsx)(l.XJ,{children:(0,g.HS)(H)}),(0,s.jsxs)(l.Bz,{children:["$",(0,g.HS)(e)]})]})})(),(0,s.jsxs)("div",{className:"mt-[40px] flex w-full flex-row justify-between",children:[(0,s.jsx)("div",{children:"Amount"}),!!F&&(0,s.jsxs)(l.Bz,{children:["= $",(0,g.HS)(F)]})]}),(0,s.jsxs)("form",{onSubmit:e=>{if(null==e||e.stopPropagation(),null==e||e.preventDefault(),!t||I||r()||z.lt(0))return;d(!0);let n={delegator:C.bech32Address,validator:O.operatorAddress};(0,h._5)(n,(0,j.Jp)(z),y,t,A).then(e=>(i("completed"),e())).catch(()=>{(0,p.Am)("Staking error",{type:"error"})}).finally(()=>{d(!1)})},children:[(0,s.jsxs)("div",{className:"mt-[8px]",children:[(0,s.jsx)(l.Wz,{disabled:a,error:!!k.amount,onBlur:()=>{r()&&S({...k,amount:"Invalid amount"})},onChange:e=>{k.amount&&S({...k,amount:void 0}),N(e.target.value)},value:x}),k.amount&&(0,s.jsx)("div",{children:(0,s.jsx)(l.Xq,{children:k.amount})})]}),(0,s.jsx)("div",{className:"mt-[40px] w-full",children:(0,s.jsx)(l.sr,{disabled:a,onChange:e=>{w(e.target.value)},placeholder:"Memo (Optional)",value:y})}),(0,s.jsx)("div",{className:"mt-[48px] w-full",children:(0,s.jsx)(l.zx,{disabled:a||I,type:"submit",children:"Delegate Now"})})]})]})})()})})};let y="input";var w=()=>{let e=(0,c.n)(),{client:t}=e,[n,i]=(0,r.useState)(y),[a,d]=(0,r.useState)(!1),[x,b]=(0,r.useState)(""),[N,w]=(0,r.useState)(""),{account:k,staking:S}=e,{modal:C}=S.state,A=(null==C?void 0:C.type)==="undelegate";if((0,r.useEffect)(()=>()=>{i(y),b(""),w("")},[A]),!A)return null;let{validator:Z}=null==C?void 0:C.content,E=new m.Z(x),O=E.isNaN()?"":E.times(v.Ex),z=(0,f.U2)(S.state,Z.operatorAddress);return(0,s.jsx)(o,{isOpen:A,onRequestClose:()=>{a||e.staking.dispatch((0,u.ZG)(null))},children:(0,s.jsx)("div",{className:"min-w-[390px]",children:"completed"===n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"mb-[16px]",children:(0,s.jsx)(l.ls,{children:"SUCCESS!"})}),(0,s.jsxs)("div",{children:["You have successfully unstaked from"," ",Z.description.moniker,". It takes"," ",21," days to complete the unstaking process"]})]}),(0,s.jsxs)("div",{className:"mb-[32px] mt-[32px] flex w-full flex-col items-center justify-center gap-[12px]",children:[(0,s.jsx)(l.Bz,{children:"Unstaking Amount (XION)"}),(0,s.jsx)(l.XJ,{children:(0,g.HS)(E)}),(0,s.jsx)(l.Bz,{children:(0,g.H_)((0,j.Jp)(E))})]}),!!N&&(0,s.jsx)("div",{className:"mb-[32px] text-center italic",children:(0,s.jsx)("div",{children:N})}),(0,s.jsx)(l.zx,{disabled:a,onClick:()=>{e.staking.dispatch((0,u.ZG)(null))},children:"CLOSE"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"text-center uppercase",children:(0,s.jsxs)(l.ls,{children:["Unstake From ",Z.description.moniker]})}),z&&(()=>{let e=new m.Z(z.amount).times(v.Ex);return(0,s.jsxs)("div",{className:"mt-[40px] flex w-full flex-col items-center justify-center gap-[12px] uppercase",children:[(0,s.jsx)(l.Bz,{children:"Available amount (XION)"}),(0,s.jsx)(l.XJ,{children:(0,g.HS)(new m.Z(z.amount))}),(0,s.jsxs)(l.Bz,{children:["$",(0,g.HS)(e)]})]})})(),(0,s.jsxs)("div",{className:"mt-[40px] flex w-full flex-row justify-between",children:[(0,s.jsx)("div",{children:"Amount"}),!!O&&(0,s.jsxs)(l.Bz,{children:["=$",(0,g.HS)(O)]})]}),(0,s.jsxs)("form",{onSubmit:e=>{if(null==e||e.stopPropagation(),null==e||e.preventDefault(),!t||!E.gt(0))return;d(!0);let n={delegator:k.bech32Address,validator:Z.operatorAddress};(0,h.xu)(n,(0,j.Jp)(E),N,t,S).then(e=>(i("completed"),e())).catch(()=>{(0,p.Am)("Staking error",{type:"error"})}).finally(()=>{d(!1)})},children:[(0,s.jsx)("div",{className:"mt-[8px]",children:(0,s.jsx)(l.Wz,{disabled:a,onChange:e=>{b(e.target.value)},value:x})}),(0,s.jsx)("div",{className:"mt-[40px] w-full",children:(0,s.jsx)(l.sr,{disabled:a,onChange:e=>{w(e.target.value)},placeholder:"Memo (Optional)",value:N})}),(0,s.jsx)("div",{className:"mt-[48px] w-full",children:(0,s.jsx)(l.zx,{disabled:a,type:"submit",children:"Unstake Now"})})]})]})})})},k=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(N,{}),(0,s.jsx)(w,{}),(0,s.jsx)(x,{})]})},48074:function(e,t,n){var s=n(3827);t.Z=e=>{let{text:t}=e,[n,l]=t.split(" ");return(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{children:n})," ",(0,s.jsx)("span",{className:"text-typo-200",children:l})]})}},39730:function(e,t,n){n.d(t,{Cn:function(){return a},Sg:function(){return c},U2:function(){return r},ap:function(){return d},jv:function(){return i},zq:function(){return o}});var s=n(22840),l=n(66803);let r=(e,t)=>{let{delegations:n}=e;if(!(null==n?void 0:n.items.length))return null;let s=n.items.filter(e=>!t||e.validatorAddress===t).map(e=>e.balance);return(0,l.HJ)(s)},i=(e,t)=>{let{unbondings:n}=e;if(!(null==n?void 0:n.items.length))return null;let s=n.items.filter(e=>!t||e.validator===t).map(e=>e.balance);return(0,l.HJ)(s)},a=(e,t)=>{let{delegations:n}=t;if(!(null==n?void 0:n.items.length))return null;let s=n.items.filter(t=>!e||t.validatorAddress===e).map(e=>e.rewards);return(0,l.HJ)(s)},d=e=>{let{tokens:t}=e;return t?new s.Z((0,l.bI)(t).amount):null},o=(e,t)=>{var n;return!!(null===(n=t.delegations)||void 0===n?void 0:n.items.some(t=>t.validatorAddress===e))},c=(e,t)=>{let{pool:n}=t;return e&&"string"==typeof(null==n?void 0:n.bondedTokens)?new s.Z(e).div(new s.Z(n.bondedTokens)).toNumber():null}},89056:function(e,t,n){n.d(t,{P:function(){return a}});var s=n(64090),l=n(9016);let r={},i={getIdentityLogo:e=>{if(r[e])return r[e];let t=fetch("https://keybase.io/_/api/1.0/user/lookup.json?key_suffix=".concat(e)).then(e=>e.json()).then(e=>{var t,n,s,l;return(null==e?void 0:null===(l=e.them)||void 0===l?void 0:null===(s=l[0])||void 0===s?void 0:null===(n=s.pictures)||void 0===n?void 0:null===(t=n.primary)||void 0===t?void 0:t.url)||null}).catch(()=>null);return r[e]=t,t}},a=e=>{let[t,n]=(0,s.useState)(null);return(0,s.useEffect)(()=>{(async()=>{e&&n(await i.getIdentityLogo(e))})()},[e]),t||l.c1}},67497:function(e,t,n){n.d(t,{Em:function(){return i},HS:function(){return d},H_:function(){return c},gg:function(){return a},i:function(){return o},ts:function(){return u}});var s=n(22840),l=n(66803),r=n(9016);let i=(e,t)=>{let n=(0,l.bI)(e),r=new s.Z(n.amount);if(r.eq(0))return"".concat(r.toFormat()," ").concat(n.denom);if(r.lt(1e-4))return"<".concat(1e-4," ").concat(n.denom);if(t){let e=Intl.NumberFormat("en",{notation:"compact"});return"".concat(e.format(r.toNumber())," ").concat(n.denom)}return"".concat(r.toFormat(4)," ").concat(n.denom)},a=e=>{if("number"!=typeof e||Number.isNaN(e))return null;let t=e<1e-4?"<0.1":(100*e).toFixed(1);return"".concat(t,"%")},d=e=>Intl.NumberFormat("en",{notation:"compact"}).format(e.toNumber()),o=(e,t)=>{let n=new s.Z(e).div(new s.Z(10).pow(18)).toNumber();return"".concat((100*n).toFixed(t),"%")},c=(e,t)=>{let n=(0,l.bI)(e||(0,l.IB)()),i=new s.Z(e?n.amount:0).times(r.Ex);return!t&&i.lt(.01)?"<$0.01":"$".concat(t?d(i):i.toFormat(2))},u=e=>{let t=1e3*e,n=Math.floor((t-Date.now())/864e5),s=new Date(t).toLocaleString("default",{month:"short"}),l=new Date(t).getDate(),r=new Date(t).getFullYear();return"in ".concat(n," day").concat(1===n?"":"s",", ").concat(s," ").concat(l," ").concat(r)}}}]); \ No newline at end of file diff --git a/_next/static/chunks/app/page-47c693c332e9de24.js b/_next/static/chunks/app/page-25d4b2a7aac5cbc2.js similarity index 98% rename from _next/static/chunks/app/page-47c693c332e9de24.js rename to _next/static/chunks/app/page-25d4b2a7aac5cbc2.js index ea9b7d4..a8f4d45 100644 --- a/_next/static/chunks/app/page-47c693c332e9de24.js +++ b/_next/static/chunks/app/page-25d4b2a7aac5cbc2.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{67617:function(e,s,t){Promise.resolve().then(t.bind(t,64350))},64350:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return C}});var i=t(3827),l=t(64090),r=t(98909),n=t(80469),a=t(62948),c=t(71860),o=t(75615),d=t(39730),x=t(66803),m=t(9016),p=t(19807),h=t(67497),u=(0,l.memo)(()=>{let{isConnected:e}=(0,o.hT)(),{staking:s}=(0,n.n)();if(!e)return(0,i.jsxs)("div",{className:"flex min-h-[212px] flex-col items-center justify-center gap-[32px] uppercase",style:{backgroundImage:"url(".concat(m.sb,"/overview-bg.png)"),borderRadius:24},children:[(0,i.jsx)(r.ls,{children:"Please Log In To View"}),(0,i.jsx)("div",{children:"Log In"})]});let t=(0,d.U2)(s.state,null)||(0,x.IB)(),l=(0,d.Cn)(null,s.state)||(0,x.IB)(),a=s.state.tokens||(0,x.IB)();return(0,i.jsxs)("div",{className:"grid min-h-[144px] flex-col items-center justify-center gap-[32px]",style:{backgroundImage:"url(".concat(m.sb,"/overview-bg.png)"),borderRadius:24,gridTemplateColumns:"1fr 1fr 1fr 1fr"},children:[(0,i.jsxs)("div",{className:"flex h-full flex-col items-start gap-3 p-[24px]",children:[(0,i.jsx)(r.Bz,{children:"Claimable Rewards"}),(0,i.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,i.jsx)(r.XJ,{children:(0,h.H_)(l)}),(0,p.sj)(l)&&(0,i.jsx)(r.hp,{children:"Claim"})]}),(0,i.jsx)(r.jr,{children:(0,h.Em)(l)})]}),(0,i.jsxs)("div",{className:"flex h-full flex-col items-start gap-3 p-[24px]",children:[(0,i.jsx)(r.Bz,{children:"APR"}),(0,i.jsx)(r.XJ,{children:"15.57%"})]}),(0,i.jsxs)("div",{className:"flex h-full flex-col items-start gap-3 p-[24px]",children:[(0,i.jsx)(r.Bz,{children:"Delegated Amount"}),(0,i.jsx)(r.XJ,{children:(0,h.H_)(t)}),(0,i.jsx)(r.jr,{children:(0,h.Em)(t)})]}),(0,i.jsxs)("div",{className:"flex h-full flex-col items-start gap-3 p-[24px]",children:[(0,i.jsx)(r.Bz,{children:"Available For Delegation"}),(0,i.jsx)(r.XJ,{children:(0,h.H_)(a)}),(0,i.jsx)(r.jr,{children:(0,h.Em)(a)})]})]})}),g=t(22840),j=t(143),f=t(62986),v=t(89056),w=t(26605),N=t(48074);let b={gap:"16px",gridTemplateColumns:"60px 1.5fr repeat(3, 1fr) 80px 80px"},k=e=>{let{disabled:s,onStake:t,staking:l,validator:n}=e,{identity:a}=n.description,c=(0,v.P)(a),o=(0,d.Sg)(null==n?void 0:n.tokens,l.state),m=(0,h.gg)(o);return(0,i.jsxs)("div",{className:"flex w-full flex-col items-center justify-between gap-2",children:[(0,i.jsxs)("div",{className:"grid w-full items-center justify-between gap-2 p-4",style:b,children:[(0,i.jsx)("div",{className:"flex items-center justify-start",children:(0,i.jsx)("img",{alt:"Validator logo",className:"block w-[50px] rounded-full",src:c,style:{height:50,width:50}})}),(0,i.jsxs)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:[(0,i.jsxs)("div",{className:"flex flex-col justify-start gap-2 text-left",children:[(0,i.jsx)("div",{className:"text-[14px] font-bold leading-[20px]",children:n.description.moniker}),(0,i.jsx)(w.Z,{address:n.operatorAddress})]}),(0,i.jsx)("div",{className:"flex min-w-max flex-col items-center justify-center",children:(0,d.zq)(n.operatorAddress,l.state)&&(0,i.jsx)("div",{className:"rounded-[2px] bg-successBg p-[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)(N.Z,{text:(0,h.Em)((0,x.kw)(new g.Z(n.tokens)),!0)})}),(0,i.jsx)("div",{className:"text-right",children:(0,h.i)(n.commission.commissionRates.rate,2)}),o&&(0,i.jsx)("div",{className:"text-right",children:m}),(0,i.jsx)("div",{className:"text-right",children:(0,i.jsx)(r.OL,{href:"/validator?address=".concat(n.operatorAddress),children:"Details"})}),(0,i.jsx)("div",{children:(0,i.jsx)(r.hp,{disabled:s,onClick:t,children:"Delegate"})})]}),(0,i.jsx)("div",{className:"box-content h-[1px] bg-bg-500",style:{width:"calc(100% - 48px)"}})]})},y=j.N;var S=(0,l.memo)(()=>{let{isConnected:e,staking:s}=(0,n.n)(),[t,r]=(0,l.useState)("none"),{validators:a}=s.state;if(!(null==a?void 0:a.items.length))return null;let c=a.items.slice().sort((e,i)=>{if("none"===t)return 0;if(["voting-power-asc","voting-power-desc"].includes(t)){let l=(0,d.Sg)(e.tokens,s.state),r=(0,d.Sg)(i.tokens,s.state);return l&&r?"voting-power-asc"===t?l-r:r-l:0}if(["commission-asc","commission-desc"].includes(t)){let s=parseFloat(e.commission.commissionRates.rate),l=parseFloat(i.commission.commissionRates.rate);return s&&l?"commission-asc"===t?s-l:l-s:0}if(["name-asc","name-desc"].includes(t)){let s=e.description.moniker.toLowerCase(),l=i.description.moniker.toLowerCase();return s&&l?"name-asc"===t?s.localeCompare(l):l.localeCompare(s):0}if(["staked-asc","staked-desc"].includes(t)){let s=new g.Z(e.tokens),l=new g.Z(i.tokens);return"staked-asc"===t?s.minus(l).toNumber():l.minus(s).toNumber()}return 0});return(0,i.jsxs)("div",{className:"overflow-hidden 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:b,children:[(0,i.jsx)("div",{}),(0,i.jsx)(y,{onSort:r,sort:t,sorting:["name-asc","name-desc"],children:"Validator"}),(0,i.jsx)(y,{onSort:r,sort:t,sorting:["staked-asc","staked-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,i.jsx)(y,{onSort:r,sort:t,sorting:["commission-asc","commission-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Commission"})}),(0,i.jsx)(y,{onSort:r,sort:t,sorting:["voting-power-asc","voting-power-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Voting Power"})})]}),c.map(t=>(0,i.jsx)(k,{disabled:!e,onStake:()=>{s.dispatch((0,f.ZG)({content:{validator:t},type:"delegate"}))},staking:s,validator:t},t.operatorAddress))]})}),C=(0,l.memo)(function(){let{staking:e}=(0,n.n)(),[s,t]=(0,l.useState)(!1),o=(0,a.S6)(e.state);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"page-container flex flex-col gap-6 px-[24px] pb-[24px]",children:[(0,i.jsxs)("div",{className:"mt-[40px] flex flex-row justify-between text-left",children:[(0,i.jsx)(r.Dx,{children:"Your Staking Overview"}),o&&(0,i.jsx)(a.sv,{isShowingDetails:s,setIsShowingDetails:t})]}),(0,i.jsx)(u,{}),s&&o&&(0,i.jsx)(a.ZP,{}),(0,i.jsx)(r.Dx,{children:"Validators"}),(0,i.jsx)(S,{})]}),(0,i.jsx)(c.Z,{})]})})}},function(e){e.O(0,[350,218,147,228,933,348,649,291,736,971,69,744],function(){return e(e.s=67617)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{67617:function(e,s,t){Promise.resolve().then(t.bind(t,64350))},64350:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return C}});var i=t(3827),l=t(64090),r=t(98909),n=t(80469),a=t(79055),c=t(71860),o=t(75615),d=t(39730),x=t(66803),m=t(9016),p=t(19807),h=t(67497),u=(0,l.memo)(()=>{let{isConnected:e}=(0,o.hT)(),{staking:s}=(0,n.n)();if(!e)return(0,i.jsxs)("div",{className:"flex min-h-[212px] flex-col items-center justify-center gap-[32px] uppercase",style:{backgroundImage:"url(".concat(m.sb,"/overview-bg.png)"),borderRadius:24},children:[(0,i.jsx)(r.ls,{children:"Please Log In To View"}),(0,i.jsx)("div",{children:"Log In"})]});let t=(0,d.U2)(s.state,null)||(0,x.IB)(),l=(0,d.Cn)(null,s.state)||(0,x.IB)(),a=s.state.tokens||(0,x.IB)();return(0,i.jsxs)("div",{className:"grid min-h-[144px] flex-col items-center justify-center gap-[32px]",style:{backgroundImage:"url(".concat(m.sb,"/overview-bg.png)"),borderRadius:24,gridTemplateColumns:"1fr 1fr 1fr 1fr"},children:[(0,i.jsxs)("div",{className:"flex h-full flex-col items-start gap-3 p-[24px]",children:[(0,i.jsx)(r.Bz,{children:"Claimable Rewards"}),(0,i.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,i.jsx)(r.XJ,{children:(0,h.H_)(l)}),(0,p.sj)(l)&&(0,i.jsx)(r.hp,{children:"Claim"})]}),(0,i.jsx)(r.jr,{children:(0,h.Em)(l)})]}),(0,i.jsxs)("div",{className:"flex h-full flex-col items-start gap-3 p-[24px]",children:[(0,i.jsx)(r.Bz,{children:"APR"}),(0,i.jsx)(r.XJ,{children:"15.57%"})]}),(0,i.jsxs)("div",{className:"flex h-full flex-col items-start gap-3 p-[24px]",children:[(0,i.jsx)(r.Bz,{children:"Delegated Amount"}),(0,i.jsx)(r.XJ,{children:(0,h.H_)(t)}),(0,i.jsx)(r.jr,{children:(0,h.Em)(t)})]}),(0,i.jsxs)("div",{className:"flex h-full flex-col items-start gap-3 p-[24px]",children:[(0,i.jsx)(r.Bz,{children:"Available For Delegation"}),(0,i.jsx)(r.XJ,{children:(0,h.H_)(a)}),(0,i.jsx)(r.jr,{children:(0,h.Em)(a)})]})]})}),g=t(22840),j=t(143),f=t(62986),v=t(89056),w=t(26605),N=t(48074);let b={gap:"16px",gridTemplateColumns:"60px 1.5fr repeat(3, 1fr) 80px 80px"},k=e=>{let{disabled:s,onStake:t,staking:l,validator:n}=e,{identity:a}=n.description,c=(0,v.P)(a),o=(0,d.Sg)(null==n?void 0:n.tokens,l.state),m=(0,h.gg)(o);return(0,i.jsxs)("div",{className:"flex w-full flex-col items-center justify-between gap-2",children:[(0,i.jsxs)("div",{className:"grid w-full items-center justify-between gap-2 p-4",style:b,children:[(0,i.jsx)("div",{className:"flex items-center justify-start",children:(0,i.jsx)("img",{alt:"Validator logo",className:"block w-[50px] rounded-full",src:c,style:{height:50,width:50}})}),(0,i.jsxs)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:[(0,i.jsxs)("div",{className:"flex flex-col justify-start gap-2 text-left",children:[(0,i.jsx)("div",{className:"text-[14px] font-bold leading-[20px]",children:n.description.moniker}),(0,i.jsx)(w.Z,{address:n.operatorAddress})]}),(0,i.jsx)("div",{className:"flex min-w-max flex-col items-center justify-center",children:(0,d.zq)(n.operatorAddress,l.state)&&(0,i.jsx)("div",{className:"rounded-[2px] bg-successBg p-[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)(N.Z,{text:(0,h.Em)((0,x.kw)(new g.Z(n.tokens)),!0)})}),(0,i.jsx)("div",{className:"text-right",children:(0,h.i)(n.commission.commissionRates.rate,2)}),o&&(0,i.jsx)("div",{className:"text-right",children:m}),(0,i.jsx)("div",{className:"text-right",children:(0,i.jsx)(r.OL,{href:"/validator?address=".concat(n.operatorAddress),children:"Details"})}),(0,i.jsx)("div",{children:(0,i.jsx)(r.hp,{disabled:s,onClick:t,children:"Delegate"})})]}),(0,i.jsx)("div",{className:"box-content h-[1px] bg-bg-500",style:{width:"calc(100% - 48px)"}})]})},y=j.N;var S=(0,l.memo)(()=>{let{isConnected:e,staking:s}=(0,n.n)(),[t,r]=(0,l.useState)("none"),{validators:a}=s.state;if(!(null==a?void 0:a.items.length))return null;let c=a.items.slice().sort((e,i)=>{if("none"===t)return 0;if(["voting-power-asc","voting-power-desc"].includes(t)){let l=(0,d.Sg)(e.tokens,s.state),r=(0,d.Sg)(i.tokens,s.state);return l&&r?"voting-power-asc"===t?l-r:r-l:0}if(["commission-asc","commission-desc"].includes(t)){let s=parseFloat(e.commission.commissionRates.rate),l=parseFloat(i.commission.commissionRates.rate);return s&&l?"commission-asc"===t?s-l:l-s:0}if(["name-asc","name-desc"].includes(t)){let s=e.description.moniker.toLowerCase(),l=i.description.moniker.toLowerCase();return s&&l?"name-asc"===t?s.localeCompare(l):l.localeCompare(s):0}if(["staked-asc","staked-desc"].includes(t)){let s=new g.Z(e.tokens),l=new g.Z(i.tokens);return"staked-asc"===t?s.minus(l).toNumber():l.minus(s).toNumber()}return 0});return(0,i.jsxs)("div",{className:"overflow-hidden 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:b,children:[(0,i.jsx)("div",{}),(0,i.jsx)(y,{onSort:r,sort:t,sorting:["name-asc","name-desc"],children:"Validator"}),(0,i.jsx)(y,{onSort:r,sort:t,sorting:["staked-asc","staked-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,i.jsx)(y,{onSort:r,sort:t,sorting:["commission-asc","commission-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Commission"})}),(0,i.jsx)(y,{onSort:r,sort:t,sorting:["voting-power-asc","voting-power-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Voting Power"})})]}),c.map(t=>(0,i.jsx)(k,{disabled:!e,onStake:()=>{s.dispatch((0,f.ZG)({content:{validator:t},type:"delegate"}))},staking:s,validator:t},t.operatorAddress))]})}),C=(0,l.memo)(function(){let{staking:e}=(0,n.n)(),[s,t]=(0,l.useState)(!1),o=(0,a.S6)(e.state);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"page-container flex flex-col gap-6 px-[24px] pb-[24px]",children:[(0,i.jsxs)("div",{className:"mt-[40px] flex flex-row justify-between text-left",children:[(0,i.jsx)(r.Dx,{children:"Your Staking Overview"}),o&&(0,i.jsx)(a.sv,{isShowingDetails:s,setIsShowingDetails:t})]}),(0,i.jsx)(u,{}),s&&o&&(0,i.jsx)(a.ZP,{}),(0,i.jsx)(r.Dx,{children:"Validators"}),(0,i.jsx)(S,{})]}),(0,i.jsx)(c.Z,{})]})})}},function(e){e.O(0,[350,218,147,228,933,348,649,291,663,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-803966f61e32a4e6.js b/_next/static/chunks/app/validator/page-71e9b73609345c11.js similarity index 98% rename from _next/static/chunks/app/validator/page-803966f61e32a4e6.js rename to _next/static/chunks/app/validator/page-71e9b73609345c11.js index 80968cc..c8638d6 100644 --- a/_next/static/chunks/app/validator/page-803966f61e32a4e6.js +++ b/_next/static/chunks/app/validator/page-71e9b73609345c11.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[276],{90858:function(e,s,i){Promise.resolve().then(i.bind(i,18157))},18157:function(e,s,i){"use strict";i.r(s),i.d(s,{default:function(){return B}});var l=i(3827),t=i(59115),a=i(22840),n=i(8792),d=i(15313),r=i(64090),c=i(98909),x=i(6245),o=i(88197),h=i(80469),m=i(62986),p=i(39730),j=i(89056),g=i(66803),v=i(9016),u=i(67497);let b=()=>(0,l.jsx)("div",{className:"h-[1px] w-full bg-bg-400"}),N=()=>(0,l.jsx)("div",{className:"h-full w-[1px] bg-bg-400"});var f=i(71860),w=i(75615),k=i(97573),z=i(62948);function y(){let e=(0,d.useSearchParams)().get("address"),s=(0,h.n)(),{core:i}=(0,x.l)(),[,t]=(0,w.dd)(),[n,m]=(0,r.useState)(!1),{isConnected:j,staking:v}=s,{isLoadingBlocking:b}=i.state,[f,y]=(0,r.useState)(null),{client:B}=s;if((0,r.useEffect)(()=>{(async()=>{e&&y(await (0,o.qp)(e,v))})()},[e,v]),!f)return(0,l.jsx)("div",{children:"Loading ..."});let C=(0,p.ap)(s.staking.state),S=(0,p.U2)(s.staking.state,null),X=(0,p.jv)(s.staking.state,null),_=(0,p.Cn)(f.operatorAddress,s.staking.state),A=(0,z.S6)(s.staking.state),H=j?(0,l.jsxs)("div",{className:"grid grid-cols-4 rounded-[24px] bg-bg-600 p-[24px]",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(c.Bz,{children:"Claimable Rewards"}),(0,l.jsxs)("div",{className:"mb-[8px] mt-[12px] flex flex-row items-center gap-[8px]",children:[(0,l.jsx)(c.XJ,{children:(0,u.H_)(_)}),_&&(null==_?void 0:_.amount)!=="0"&&(0,l.jsx)(c.hp,{disabled:b,onClick:()=>{if(!B)return;let e={delegator:s.account.bech32Address,validator:f.operatorAddress};i.dispatch((0,k.WY)(!0)),(0,o.sT)(e,B,s.staking).finally(()=>{i.dispatch((0,k.WY)(!1))})},children:"Claim"})]}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(c.Bz,{children:"My Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:S&&(0,l.jsx)(c.XJ,{children:(0,u.HS)(new a.Z(S.amount))})}),(0,l.jsx)(c.Bz,{children:(0,u.H_)(S)}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N,{})})]}),(0,l.jsx)("div",{className:"flex flex-row gap-[16px]",children:(0,l.jsxs)("div",{className:"relative w-full",children:[(0,l.jsx)(c.Bz,{children:"Available For Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(c.XJ,{children:C?(0,u.HS)(C):"-"})}),(0,l.jsx)(c.Bz,{children:C?(0,u.H_)((0,g.Jp)(C)):"-"}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N,{})})]})}),(0,l.jsx)("div",{className:"flex flex-row gap-[16px]",children:(0,l.jsxs)("div",{children:[(0,l.jsx)(c.Bz,{children:"Unstakings (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(c.XJ,{children:X?(0,u.HS)(new a.Z(X.amount)):"-"})}),(0,l.jsx)(c.Bz,{children:X?(0,u.H_)(X):"-"})]})})]}):(0,l.jsxs)("div",{className:"flex h-[220px] flex-col items-center justify-center gap-[32px] rounded-[24px] bg-bg-600 uppercase",children:[(0,l.jsx)(c.ls,{children:"Please log in to view"}),(0,l.jsx)(c.zx,{disabled:b,onClick:()=>{t(!0)},children:"Log in"})]});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"mb-[24px] mt-[32px] flex flex-row items-center justify-between",children:[(0,l.jsx)(c.Dx,{children:"My Delegations"}),A&&(0,l.jsx)(z.sv,{isShowingDetails:n,setIsShowingDetails:m})]}),H,A&&n&&(0,l.jsx)(z.ZP,{})]})}function B(){let e=(0,d.useSearchParams)().get("address"),s=(0,h.n)(),{core:i}=(0,x.l)(),{isLoadingBlocking:w}=i.state,[k,z]=(0,r.useState)(null),B=(0,j.P)(null==k?void 0:k.description.identity);if((0,r.useEffect)(()=>{(async()=>{e&&z(await (0,o.qp)(e,s.staking))})()},[e,s]),!k)return(0,l.jsx)("div",{children:"Loading ..."});let C=(0,p.Sg)(k.tokens,s.staking.state),S=(0,u.gg)(C),X=new a.Z(k.tokens).div(new a.Z(10).pow(6)),_=(0,p.U2)(s.staking.state,k.operatorAddress),A=(0,p.zq)(k.operatorAddress,s.staking.state);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"page-container flex w-full flex-col gap-[16px] px-[16px] pb-[32px]",children:[(0,l.jsxs)("div",{className:"mb-[32px] mt-[40px]",children:[(0,l.jsx)(c.OL,{href:"/",children:"STAKING"})," ","> ",(0,l.jsx)("span",{children:k.description.moniker})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-[24px] p-[24px]",style:{backgroundImage:"url(".concat(v.sb,"/overview-bg.png)"),backgroundSize:"cover",borderRadius:16},children:[(0,l.jsxs)("div",{className:"flex flex-row items-center gap-[16px]",children:[(0,l.jsx)("img",{alt:"Validator logo",className:"block w-[80px] rounded-full",src:B||v.c1}),(0,l.jsxs)("div",{className:"flex flex-1 items-center gap-[16px]",children:[(0,l.jsx)("div",{className:"typo-validator-name",children:k.description.moniker||""}),A&&(0,l.jsx)("div",{className:"rounded-[4px] bg-successBg px-[8px] py-[4px] text-[11px] text-success",children:"You staked"})]}),(0,l.jsx)("div",{children:(0,l.jsx)(t.z,{disabled:!s.isConnected||w,onClick:()=>{s.staking.dispatch((0,m.ZG)({content:{validator:k},type:"delegate"}))},children:"DELEGATE NOW"})})]}),(0,l.jsx)(b,{}),(0,l.jsxs)("div",{className:"grid grid-cols-4",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(c.Bz,{children:"Total Stake (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(c.XJ,{children:(0,u.HS)(X)})}),(0,l.jsx)(c.Bz,{children:(0,u.H_)((0,g.Jp)(X))}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(c.Bz,{children:"Commission Rate"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(c.XJ,{children:(0,u.i)(k.commission.commissionRates.rate,2)})}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(c.Bz,{children:"Voting Power"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(c.XJ,{children:S})}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(c.Bz,{children:"My Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(c.XJ,{children:_?(0,u.HS)(new a.Z((0,g.bI)(_).amount)):"-"})}),(0,l.jsx)(c.Bz,{children:(0,u.H_)(_)})]})]}),(0,l.jsx)(b,{}),(0,l.jsxs)("div",{className:"grid grid-cols-4",children:[(0,l.jsxs)("div",{className:"col-span-2",children:[(0,l.jsx)(c.Bz,{color:"text-white",children:"XION Address"}),(0,l.jsxs)("div",{className:"inline-flex flex-row gap-2 break-all",children:[k.operatorAddress," ",(0,l.jsx)(c.M5,{textToCopy:k.operatorAddress})]})]}),k.description.website&&(0,l.jsxs)("div",{children:[(0,l.jsx)(c.Bz,{color:"text-white",children:"Website"}),(0,l.jsx)(n.default,{href:k.description.website,target:"_blank",children:k.description.website})]}),k.description.securityContact&&(0,l.jsxs)("div",{children:[(0,l.jsx)(c.Bz,{color:"text-white",children:"Security Contact"}),(0,l.jsx)(n.default,{href:"mailto:".concat(k.description.securityContact),children:k.description.securityContact})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(c.Bz,{color:"text-white",children:"Details"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{children:k.description.details}),(0,l.jsxs)("div",{children:["Max Commission Rate:"," ",(0,u.i)(k.commission.commissionRates.maxRate,0)]}),(0,l.jsxs)("div",{children:["Max commission Change Rate:"," ",(0,u.i)(k.commission.commissionRates.maxChangeRate,0)]})]})]})]}),(0,l.jsx)(y,{})]}),(0,l.jsx)(f.Z,{})]})}}},function(e){e.O(0,[350,218,147,228,933,348,649,291,736,971,69,744],function(){return e(e.s=90858)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[276],{90858:function(e,s,i){Promise.resolve().then(i.bind(i,18157))},18157:function(e,s,i){"use strict";i.r(s),i.d(s,{default:function(){return B}});var l=i(3827),t=i(59115),a=i(22840),n=i(8792),d=i(15313),r=i(64090),c=i(98909),x=i(6245),o=i(88197),h=i(80469),m=i(62986),p=i(39730),j=i(89056),g=i(66803),v=i(9016),u=i(67497);let b=()=>(0,l.jsx)("div",{className:"h-[1px] w-full bg-bg-400"}),N=()=>(0,l.jsx)("div",{className:"h-full w-[1px] bg-bg-400"});var f=i(71860),w=i(75615),k=i(97573),z=i(79055);function y(){let e=(0,d.useSearchParams)().get("address"),s=(0,h.n)(),{core:i}=(0,x.l)(),[,t]=(0,w.dd)(),[n,m]=(0,r.useState)(!1),{isConnected:j,staking:v}=s,{isLoadingBlocking:b}=i.state,[f,y]=(0,r.useState)(null),{client:B}=s;if((0,r.useEffect)(()=>{(async()=>{e&&y(await (0,o.qp)(e,v))})()},[e,v]),!f)return(0,l.jsx)("div",{children:"Loading ..."});let C=(0,p.ap)(s.staking.state),S=(0,p.U2)(s.staking.state,null),X=(0,p.jv)(s.staking.state,null),_=(0,p.Cn)(f.operatorAddress,s.staking.state),A=(0,z.S6)(s.staking.state),H=j?(0,l.jsxs)("div",{className:"grid grid-cols-4 rounded-[24px] bg-bg-600 p-[24px]",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(c.Bz,{children:"Claimable Rewards"}),(0,l.jsxs)("div",{className:"mb-[8px] mt-[12px] flex flex-row items-center gap-[8px]",children:[(0,l.jsx)(c.XJ,{children:(0,u.H_)(_)}),_&&(null==_?void 0:_.amount)!=="0"&&(0,l.jsx)(c.hp,{disabled:b,onClick:()=>{if(!B)return;let e={delegator:s.account.bech32Address,validator:f.operatorAddress};i.dispatch((0,k.WY)(!0)),(0,o.sT)(e,B,s.staking).finally(()=>{i.dispatch((0,k.WY)(!1))})},children:"Claim"})]}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(c.Bz,{children:"My Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:S&&(0,l.jsx)(c.XJ,{children:(0,u.HS)(new a.Z(S.amount))})}),(0,l.jsx)(c.Bz,{children:(0,u.H_)(S)}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N,{})})]}),(0,l.jsx)("div",{className:"flex flex-row gap-[16px]",children:(0,l.jsxs)("div",{className:"relative w-full",children:[(0,l.jsx)(c.Bz,{children:"Available For Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(c.XJ,{children:C?(0,u.HS)(C):"-"})}),(0,l.jsx)(c.Bz,{children:C?(0,u.H_)((0,g.Jp)(C)):"-"}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N,{})})]})}),(0,l.jsx)("div",{className:"flex flex-row gap-[16px]",children:(0,l.jsxs)("div",{children:[(0,l.jsx)(c.Bz,{children:"Unstakings (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(c.XJ,{children:X?(0,u.HS)(new a.Z(X.amount)):"-"})}),(0,l.jsx)(c.Bz,{children:X?(0,u.H_)(X):"-"})]})})]}):(0,l.jsxs)("div",{className:"flex h-[220px] flex-col items-center justify-center gap-[32px] rounded-[24px] bg-bg-600 uppercase",children:[(0,l.jsx)(c.ls,{children:"Please log in to view"}),(0,l.jsx)(c.zx,{disabled:b,onClick:()=>{t(!0)},children:"Log in"})]});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"mb-[24px] mt-[32px] flex flex-row items-center justify-between",children:[(0,l.jsx)(c.Dx,{children:"My Delegations"}),A&&(0,l.jsx)(z.sv,{isShowingDetails:n,setIsShowingDetails:m})]}),H,A&&n&&(0,l.jsx)(z.ZP,{})]})}function B(){let e=(0,d.useSearchParams)().get("address"),s=(0,h.n)(),{core:i}=(0,x.l)(),{isLoadingBlocking:w}=i.state,[k,z]=(0,r.useState)(null),B=(0,j.P)(null==k?void 0:k.description.identity);if((0,r.useEffect)(()=>{(async()=>{e&&z(await (0,o.qp)(e,s.staking))})()},[e,s]),!k)return(0,l.jsx)("div",{children:"Loading ..."});let C=(0,p.Sg)(k.tokens,s.staking.state),S=(0,u.gg)(C),X=new a.Z(k.tokens).div(new a.Z(10).pow(6)),_=(0,p.U2)(s.staking.state,k.operatorAddress),A=(0,p.zq)(k.operatorAddress,s.staking.state);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"page-container flex w-full flex-col gap-[16px] px-[16px] pb-[32px]",children:[(0,l.jsxs)("div",{className:"mb-[32px] mt-[40px]",children:[(0,l.jsx)(c.OL,{href:"/",children:"STAKING"})," ","> ",(0,l.jsx)("span",{children:k.description.moniker})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-[24px] p-[24px]",style:{backgroundImage:"url(".concat(v.sb,"/overview-bg.png)"),backgroundSize:"cover",borderRadius:16},children:[(0,l.jsxs)("div",{className:"flex flex-row items-center gap-[16px]",children:[(0,l.jsx)("img",{alt:"Validator logo",className:"block w-[80px] rounded-full",src:B||v.c1}),(0,l.jsxs)("div",{className:"flex flex-1 items-center gap-[16px]",children:[(0,l.jsx)("div",{className:"typo-validator-name",children:k.description.moniker||""}),A&&(0,l.jsx)("div",{className:"rounded-[4px] bg-successBg px-[8px] py-[4px] text-[11px] text-success",children:"You staked"})]}),(0,l.jsx)("div",{children:(0,l.jsx)(t.z,{disabled:!s.isConnected||w,onClick:()=>{s.staking.dispatch((0,m.ZG)({content:{validator:k},type:"delegate"}))},children:"DELEGATE NOW"})})]}),(0,l.jsx)(b,{}),(0,l.jsxs)("div",{className:"grid grid-cols-4",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(c.Bz,{children:"Total Stake (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(c.XJ,{children:(0,u.HS)(X)})}),(0,l.jsx)(c.Bz,{children:(0,u.H_)((0,g.Jp)(X))}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(c.Bz,{children:"Commission Rate"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(c.XJ,{children:(0,u.i)(k.commission.commissionRates.rate,2)})}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(c.Bz,{children:"Voting Power"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(c.XJ,{children:S})}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(c.Bz,{children:"My Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(c.XJ,{children:_?(0,u.HS)(new a.Z((0,g.bI)(_).amount)):"-"})}),(0,l.jsx)(c.Bz,{children:(0,u.H_)(_)})]})]}),(0,l.jsx)(b,{}),(0,l.jsxs)("div",{className:"grid grid-cols-4",children:[(0,l.jsxs)("div",{className:"col-span-2",children:[(0,l.jsx)(c.Bz,{color:"text-white",children:"XION Address"}),(0,l.jsxs)("div",{className:"inline-flex flex-row gap-2 break-all",children:[k.operatorAddress," ",(0,l.jsx)(c.M5,{textToCopy:k.operatorAddress})]})]}),k.description.website&&(0,l.jsxs)("div",{children:[(0,l.jsx)(c.Bz,{color:"text-white",children:"Website"}),(0,l.jsx)(n.default,{href:k.description.website,target:"_blank",children:k.description.website})]}),k.description.securityContact&&(0,l.jsxs)("div",{children:[(0,l.jsx)(c.Bz,{color:"text-white",children:"Security Contact"}),(0,l.jsx)(n.default,{href:"mailto:".concat(k.description.securityContact),children:k.description.securityContact})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(c.Bz,{color:"text-white",children:"Details"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{children:k.description.details}),(0,l.jsxs)("div",{children:["Max Commission Rate:"," ",(0,u.i)(k.commission.commissionRates.maxRate,0)]}),(0,l.jsxs)("div",{children:["Max commission Change Rate:"," ",(0,u.i)(k.commission.commissionRates.maxChangeRate,0)]})]})]})]}),(0,l.jsx)(y,{})]}),(0,l.jsx)(f.Z,{})]})}}},function(e){e.O(0,[350,218,147,228,933,348,649,291,663,971,69,744],function(){return e(e.s=90858)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/index.html b/index.html index be5df0c..45b77ce 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -
Your Staking Overview
Please Log In To View
Log In
Validators
\ No newline at end of file +
Your Staking Overview
Please Log In To View
Log In
Validators
\ No newline at end of file diff --git a/index.txt b/index.txt index c3be74d..b897f86 100644 --- a/index.txt +++ b/index.txt @@ -1,7 +1,7 @@ -2:I[64350,["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","348","static/chunks/348-aea99bae280f2051.js","649","static/chunks/649-5d9bc52a7e1a33c5.js","291","static/chunks/291-d7a6bd15b7555615.js","736","static/chunks/736-8ea8cb054a331a98.js","931","static/chunks/app/page-47c693c332e9de24.js"],""] +2:I[64350,["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","348","static/chunks/348-aea99bae280f2051.js","649","static/chunks/649-5d9bc52a7e1a33c5.js","291","static/chunks/291-d7a6bd15b7555615.js","663","static/chunks/663-e79dade5639d919d.js","931","static/chunks/app/page-25d4b2a7aac5cbc2.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","348","static/chunks/348-aea99bae280f2051.js","291","static/chunks/291-d7a6bd15b7555615.js","185","static/chunks/app/layout-a476cbd767c80c19.js"],""] 4:I[5613,[],""] 5:I[31778,[],""] -0:["1u5sTaL3nlak0IDPHtgT3",[[["",{"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/ed72a8b40debfab8.css","precedence":"next","crossOrigin":""}]],"$L6"]]]] +0:["XG-UmKXUDWOTuozZPbsHl",[[["",{"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/ed72a8b40debfab8.css","precedence":"next","crossOrigin":""}]],"$L6"]]]] 6:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","link","2",{"rel":"icon","href":"/xion-staking/favicon.ico","type":"image/x-icon","sizes":"16x16"}]] 1:null diff --git a/validator.html b/validator.html index dc60dcc..b65fdc3 100644 --- a/validator.html +++ b/validator.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/validator.txt b/validator.txt index 0e0fa0b..553fd02 100644 --- a/validator.txt +++ b/validator.txt @@ -1,8 +1,8 @@ 2:"$Sreact.suspense" -3:I[18157,["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","348","static/chunks/348-aea99bae280f2051.js","649","static/chunks/649-5d9bc52a7e1a33c5.js","291","static/chunks/291-d7a6bd15b7555615.js","736","static/chunks/736-8ea8cb054a331a98.js","276","static/chunks/app/validator/page-803966f61e32a4e6.js"],""] +3:I[18157,["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","348","static/chunks/348-aea99bae280f2051.js","649","static/chunks/649-5d9bc52a7e1a33c5.js","291","static/chunks/291-d7a6bd15b7555615.js","663","static/chunks/663-e79dade5639d919d.js","276","static/chunks/app/validator/page-71e9b73609345c11.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","348","static/chunks/348-aea99bae280f2051.js","291","static/chunks/291-d7a6bd15b7555615.js","185","static/chunks/app/layout-a476cbd767c80c19.js"],""] -0:["1u5sTaL3nlak0IDPHtgT3",[[["",{"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/ed72a8b40debfab8.css","precedence":"next","crossOrigin":""}]],"$L7"]]]] +0:["XG-UmKXUDWOTuozZPbsHl",[[["",{"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/ed72a8b40debfab8.css","precedence":"next","crossOrigin":""}]],"$L7"]]]] 7:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","link","2",{"rel":"icon","href":"/xion-staking/favicon.ico","type":"image/x-icon","sizes":"16x16"}]] 1:null