diff --git a/404.html b/404.html index 3cf332c..1871115 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/chunks/298-c235e7148b387090.js b/_next/static/chunks/298-c235e7148b387090.js new file mode 100644 index 0000000..0b9de09 --- /dev/null +++ b/_next/static/chunks/298-c235e7148b387090.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[298],{98909:function(e,t,n){n.d(t,{Bz:function(){return d},Dx:function(){return o},M5:function(){return m},OL:function(){return x},Wz:function(){return h},XJ:function(){return c},Xq:function(){return f},hp:function(){return p},jr:function(){return u},ls:function(){return a},sr:function(){return j},zx:function(){return v}});var l=n(3827),r=n(8792),s=n(86123),i=n(77658);let o=e=>{let{children:t,className:n=""}=e;return(0,l.jsx)("div",{className:["typo-title",n].join(" "),children:t})},a=e=>{let{children:t,className:n=""}=e;return(0,l.jsx)("div",{className:["typo-hero",n].join(" "),children:t})},c=e=>{let{children:t,className:n=""}=e;return(0,l.jsx)("div",{className:["heading2",n].join(" "),children:t})},d=e=>{let{children:t,className:n="",color:r="text-typo-150"}=e;return(0,l.jsx)("div",{className:["heading8",r,n].join(" "),children:t})},u=e=>{let{children:t,className:n=""}=e;return(0,l.jsx)("div",{className:["typo-body-medium",n].join(" "),children:t})},x=e=>{let{children:t,href:n}=e;return(0,l.jsx)(r.default,{className:"text-left font-[14px] font-normal leading-[24px] underline",href:n,children:t})},p=e=>{let{className:t,...n}=e;return(0,l.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-400 disabled:text-typo-150",t].join(" ")})},m=e=>{let{textToCopy:t}=e;return(0,l.jsx)("button",{className:"cursor-pointer",dangerouslySetInnerHTML:{__html:i.BR},onClick:()=>{navigator.clipboard.writeText(t),(0,s.Am)("Copied to clipboard",{type:"info"})}})},h=e=>{let{error:t,...n}=e;return(0,l.jsxs)("span",{className:"relative block",children:[(0,l.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,l.jsx)("span",{className:"absolute bottom-0 right-[12px] top-0 flex h-full items-center text-[24px] text-[48px] text-typo-300",children:"XION"})]})},f=e=>{let{children:t}=e;return(0,l.jsx)("div",{className:"text-danger",children:t})},j=e=>(0,l.jsx)("input",{...e,className:"h-[50px] w-full bg-black py-[8px] focus:outline-none",style:{border:"none",borderBottom:"1px solid white"}}),v=e=>{let{className:t,variant:n,...r}=e;return(0,l.jsx)("button",{...r,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(" ")})}},143:function(e,t,n){n.d(t,{N:function(){return s}});var l=n(3827),r=n(77658);let s=e=>{let{children:t,onSort:n,sort:s,sorting:i}=e,o=(i||[]).concat(["none"]),a=s?o.indexOf(s):-1;return(0,l.jsx)("div",{className:"text-[14px] font-normal leading-[14px] tracking-wider",children:(0,l.jsxs)("span",{className:"relative",children:[t," ",!!n&&!!s&&(0,l.jsx)("button",{className:"absolute right-[-16px] top-[6px] cursor-pointer",dangerouslySetInnerHTML:{__html:r.Sf},onClick:()=>{if(!n)return;let e=(1+o.indexOf(s))%o.length,t=o[e];null==n||n(t)},style:{rotate:0===a?"180deg":1===a?"0deg":"90deg"}})]})})}},26605:function(e,t,n){var l=n(3827),r=n(86123);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,l.jsx)("button",{className:"cursor-pointer text-left text-[12px] font-normal leading-[20px] text-typo-200",onClick:()=>{navigator.clipboard.writeText(t),(0,r.Am)("Copied to clipboard",{type:"info"})},children:n})}},71860:function(e,t,n){n.d(t,{Z:function(){return S}});var l=n(3827),r=n(98909),s=n(64090),i=n(98245),o=n.n(i),a=n(77658);o().setAppElement(document.body);var c=e=>{let{children:t,...n}=e;return(0,s.useEffect)(()=>{if(n.isOpen){let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[n.isOpen]),(0,l.jsx)(o(),{...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,l.jsxs)("div",{className:"relative w-full",children:[(0,l.jsx)("button",{className:"absolute right-[-16px] top-[-16px] w-[36px] cursor-pointer",dangerouslySetInnerHTML:{__html:a.kC},onClick:n.onRequestClose}),t]})})},d=n(80469),u=n(62986),x=()=>{let e=(0,d.n)(),{staking:t}=e,{modal:n}=t.state,s=(null==n?void 0:n.type)==="rewards";return s?(0,l.jsxs)(c,{isOpen:s,onRequestClose:()=>{e.staking.dispatch((0,u.ZG)(null))},children:[(0,l.jsx)("div",{children:"Success!"}),(0,l.jsx)("div",{children:"You have claimed your staking rewards successfully."}),(0,l.jsx)(r.zx,{children:"CLOSE"})]}):null},p=n(23234),m=n(22840),h=n(86123),f=n(88197),j=n(39730),v=n(66803),b=n(9016),g=n(67497);let N="input";var y=()=>{let e=(0,d.n)(),{client:t}=(0,p.Hj)(),[n,i]=(0,s.useState)(N),[o,a]=(0,s.useState)(!1),[x,y]=(0,s.useState)(""),[w,k]=(0,s.useState)(""),[S,C]=(0,s.useState)({amount:void 0,memo:void 0}),{account:z,staking:A}=e,{modal:F}=A.state,O=(null==F?void 0:F.type)==="delegate";if((0,s.useEffect)(()=>()=>{i(N),C({}),y(""),k("")},[O]),!O)return null;let{validator:Z}=null==F?void 0:F.content,E=new m.Z(x),H=E.isNaN()?"":E.times(b.Ex),I=Object.values(S).some(e=>!!e),B=(0,j.ap)(A.state);return(0,l.jsx)(c,{isOpen:O,onRequestClose:()=>{o||e.staking.dispatch((0,u.ZG)(null))},children:(0,l.jsx)("div",{className:"min-w-[390px]",children:(()=>{if("completed"===n)return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("div",{className:"mb-[16px]",children:(0,l.jsx)(r.ls,{children:"SUCCESS!"})}),(0,l.jsxs)("div",{children:["You have successfully staked on"," ",Z.description.moniker,". Thank you for contributing in securing the XION network."]})]}),(0,l.jsxs)("div",{className:"mb-[32px] mt-[32px] flex w-full flex-col items-center justify-center gap-[12px]",children:[(0,l.jsx)(r.Bz,{children:"Staked Amount"}),(0,l.jsx)(r.XJ,{children:x}),(0,l.jsx)(r.Bz,{children:"$24N"})]}),!!w&&(0,l.jsx)("div",{className:"mb-[32px] text-center italic",children:(0,l.jsx)("div",{children:w})}),(0,l.jsx)(r.zx,{disabled:o,onClick:()=>{e.staking.dispatch((0,u.ZG)(null))},children:"CLOSE"})]});let s=()=>!H||!B||E.isNaN()||E.gt(B);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"text-center uppercase",children:(0,l.jsxs)(r.ls,{children:["Delegate To ",Z.description.moniker]})}),B&&(()=>{let e=B.times(b.Ex);return(0,l.jsxs)("div",{className:"mt-[40px] flex w-full flex-col items-center justify-center gap-[12px] uppercase",children:[(0,l.jsx)(r.Bz,{children:"Available for delegation (XION)"}),(0,l.jsx)(r.XJ,{children:(0,g.HS)(B)}),(0,l.jsxs)(r.Bz,{children:["$",(0,g.HS)(e)]})]})})(),(0,l.jsxs)("div",{className:"mt-[40px] flex w-full flex-row justify-between",children:[(0,l.jsx)("div",{children:"Amount"}),!!H&&(0,l.jsxs)(r.Bz,{children:["= $",(0,g.HS)(H)]})]}),(0,l.jsxs)("form",{onSubmit:e=>{if(null==e||e.stopPropagation(),null==e||e.preventDefault(),!t||I||s()||E.lt(0))return;a(!0);let n={delegator:z.bech32Address,validator:Z.operatorAddress};(0,f._5)(n,(0,v.Jp)(E),w,t,A).then(e=>(i("completed"),e())).catch(()=>{(0,h.Am)("Staking error",{type:"error"})}).finally(()=>{a(!1)})},children:[(0,l.jsxs)("div",{className:"mt-[8px]",children:[(0,l.jsx)(r.Wz,{disabled:o,error:!!S.amount,onBlur:()=>{s()&&C({...S,amount:"Invalid amount"})},onChange:e=>{S.amount&&C({...S,amount:void 0}),y(e.target.value)},value:x}),S.amount&&(0,l.jsx)("div",{children:(0,l.jsx)(r.Xq,{children:S.amount})})]}),(0,l.jsx)("div",{className:"mt-[40px] w-full",children:(0,l.jsx)(r.sr,{disabled:o,onChange:e=>{k(e.target.value)},placeholder:"Memo (Optional)",value:w})}),(0,l.jsx)("div",{className:"mt-[48px] w-full",children:(0,l.jsx)(r.zx,{disabled:o||I,type:"submit",children:"Delegate Now"})})]})]})})()})})};let w="input";var k=()=>{let e=(0,d.n)(),{client:t}=(0,p.Hj)(),[n,i]=(0,s.useState)(w),[o,a]=(0,s.useState)(!1),[x,N]=(0,s.useState)(""),[y,k]=(0,s.useState)(""),{account:S,staking:C}=e,{modal:z}=C.state,A=(null==z?void 0:z.type)==="undelegate";if((0,s.useEffect)(()=>()=>{i(w),N(""),k("")},[A]),!A)return null;let{validator:F}=null==z?void 0:z.content,O=new m.Z(x),Z=O.isNaN()?"":O.times(b.Ex),E=(0,j.U2)(C.state,F.operatorAddress);return(0,l.jsx)(c,{isOpen:A,onRequestClose:()=>{o||e.staking.dispatch((0,u.ZG)(null))},children:(0,l.jsx)("div",{className:"min-w-[390px]",children:"completed"===n?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("div",{className:"mb-[16px]",children:(0,l.jsx)(r.ls,{children:"SUCCESS!"})}),(0,l.jsxs)("div",{children:["You have successfully unstaked from"," ",F.description.moniker,". It takes"," ",21," days to complete the unstaking process"]})]}),(0,l.jsxs)("div",{className:"mb-[32px] mt-[32px] flex w-full flex-col items-center justify-center gap-[12px]",children:[(0,l.jsx)(r.Bz,{children:"Unstaking Amount (XION)"}),(0,l.jsx)(r.XJ,{children:(0,g.HS)(O)}),(0,l.jsx)(r.Bz,{children:(0,g.H_)((0,v.Jp)(O))})]}),!!y&&(0,l.jsx)("div",{className:"mb-[32px] text-center italic",children:(0,l.jsx)("div",{children:y})}),(0,l.jsx)(r.zx,{disabled:o,onClick:()=>{e.staking.dispatch((0,u.ZG)(null))},children:"CLOSE"})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"text-center uppercase",children:(0,l.jsxs)(r.ls,{children:["Unstake From ",F.description.moniker]})}),E&&(()=>{let e=new m.Z(E.amount).times(b.Ex);return(0,l.jsxs)("div",{className:"mt-[40px] flex w-full flex-col items-center justify-center gap-[12px] uppercase",children:[(0,l.jsx)(r.Bz,{children:"Available amount (XION)"}),(0,l.jsx)(r.XJ,{children:(0,g.HS)(new m.Z(E.amount))}),(0,l.jsxs)(r.Bz,{children:["$",(0,g.HS)(e)]})]})})(),(0,l.jsxs)("div",{className:"mt-[40px] flex w-full flex-row justify-between",children:[(0,l.jsx)("div",{children:"Amount"}),!!Z&&(0,l.jsxs)(r.Bz,{children:["=$",(0,g.HS)(Z)]})]}),(0,l.jsxs)("form",{onSubmit:e=>{if(null==e||e.stopPropagation(),null==e||e.preventDefault(),!t||!O.gt(0))return;a(!0);let n={delegator:S.bech32Address,validator:F.operatorAddress};(0,f.xu)(n,(0,v.Jp)(O),y,t,C).then(e=>(i("completed"),e())).catch(()=>{(0,h.Am)("Staking error",{type:"error"})}).finally(()=>{a(!1)})},children:[(0,l.jsx)("div",{className:"mt-[8px]",children:(0,l.jsx)(r.Wz,{disabled:o,onChange:e=>{N(e.target.value)},value:x})}),(0,l.jsx)("div",{className:"mt-[40px] w-full",children:(0,l.jsx)(r.sr,{disabled:o,onChange:e=>{k(e.target.value)},placeholder:"Memo (Optional)",value:y})}),(0,l.jsx)("div",{className:"mt-[48px] w-full",children:(0,l.jsx)(r.zx,{disabled:o,type:"submit",children:"Unstake Now"})})]})]})})})},S=()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(y,{}),(0,l.jsx)(k,{}),(0,l.jsx)(x,{})]})},48074:function(e,t,n){var l=n(3827);t.Z=e=>{let{text:t}=e,[n,r]=t.split(" ");return(0,l.jsxs)("span",{children:[(0,l.jsx)("span",{children:n})," ",(0,l.jsx)("span",{className:"text-typo-200",children:r})]})}},39730:function(e,t,n){n.d(t,{Cn:function(){return o},Sg:function(){return d},U2:function(){return s},ap:function(){return a},jv:function(){return i},zq:function(){return c}});var l=n(22840),r=n(66803);let s=(e,t)=>{let{delegations:n}=e;if(!(null==n?void 0:n.items.length))return null;let l=n.items.filter(e=>!t||e.validatorAddress===t).map(e=>e.balance);return(0,r.HJ)(l)},i=(e,t)=>{let{unbondings:n}=e;if(!(null==n?void 0:n.items.length))return null;let l=n.items.filter(e=>!t||e.validator===t).map(e=>e.balance);return(0,r.HJ)(l)},o=(e,t)=>{let{delegations:n}=t;if(!(null==n?void 0:n.items.length))return null;let l=n.items.filter(t=>!e||t.validatorAddress===e).map(e=>e.rewards);return(0,r.HJ)(l)},a=e=>{let{tokens:t}=e;return t?new l.Z((0,r.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 l.Z(e).div(new l.Z(n.bondedTokens)).toNumber():null}},89056:function(e,t,n){n.d(t,{P:function(){return o}});var l=n(64090),r=n(9016);let s={},i={getIdentityLogo:e=>{if(s[e])return s[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,l,r;return(null==e?void 0:null===(r=e.them)||void 0===r?void 0:null===(l=r[0])||void 0===l?void 0:null===(n=l.pictures)||void 0===n?void 0:null===(t=n.primary)||void 0===t?void 0:t.url)||null}).catch(()=>null);return s[e]=t,t}},o=e=>{let[t,n]=(0,l.useState)(null);return(0,l.useEffect)(()=>{(async()=>{e&&n(await i.getIdentityLogo(e))})()},[e]),t||r.c1}},67497:function(e,t,n){n.d(t,{Em:function(){return i},HS:function(){return a},H_:function(){return d},gg:function(){return o},i:function(){return c}});var l=n(22840),r=n(66803),s=n(9016);let i=(e,t)=>{let n=(0,r.bI)(e),s=new l.Z(n.amount);if(s.eq(0))return"".concat(s.toFormat()," ").concat(n.denom);if(s.lt(1e-4))return"<".concat(1e-4," ").concat(n.denom);if(t){let e=Intl.NumberFormat("en",{notation:"compact"});return"".concat(e.format(s.toNumber())," ").concat(n.denom)}return"".concat(s.toFormat(4)," ").concat(n.denom)},o=e=>{if("number"!=typeof e||Number.isNaN(e))return null;let t=e<1e-4?"<0.1":(100*e).toFixed(1);return"".concat(t,"%")},a=e=>Intl.NumberFormat("en",{notation:"compact"}).format(e.toNumber()),c=(e,t)=>{let n=new l.Z(e).div(new l.Z(10).pow(18)).toNumber();return"".concat((100*n).toFixed(t),"%")},d=(e,t)=>{let n=(0,r.bI)(e||(0,r.IB)()),i=new l.Z(e?n.amount:0).times(s.Ex);return!t&&i.lt(.01)?"<$0.01":"$".concat(t?a(i):i.toFormat(2))}}}]); \ No newline at end of file diff --git a/_next/static/chunks/82-3e09f7920f5fc198.js b/_next/static/chunks/82-3e09f7920f5fc198.js new file mode 100644 index 0000000..97e888c --- /dev/null +++ b/_next/static/chunks/82-3e09f7920f5fc198.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[82],{46601:function(){},89214:function(){},42480:function(){},85568:function(){},69386:function(){},31616:function(){},20131:function(){},16026:function(){},33370:function(){},88197:function(t,n,e){"use strict";e.d(n,{sT:function(){return S},wX:function(){return h},VZ:function(){return y},qp:function(){return x},_5:function(){return O},xu:function(){return A}});var a=e(22840),o=e(71694),r=e(66803);let i=null,s=async()=>i||(i=(await (0,o.C_)()).staking.validators("BOND_STATUS_BONDED").then(t=>(i=null,t))),l=null,u=async t=>{if((null==l?void 0:l[0])===t)return l[1];let n=(await (0,o.C_)()).staking.validator(t).then(n=>((null==l?void 0:l[0])===t&&(l=null),n.validator));return l=[t,n],n},d=null,c=async()=>d||(d=(await (0,o.C_)()).staking.pool().then(t=>(d=null,t.pool))),g=async t=>{let n=await (0,o.N$)();return await n.getBalance(t,"uxion")},m=async t=>{let n=await (0,o.C_)();return await n.staking.delegatorDelegations(t)},v=async t=>{let n=await (0,o.C_)();return await n.staking.delegatorUnbondingDelegations(t)},f=async(t,n)=>{let e=await (0,o.C_)(),i=await e.distribution.delegationRewards(t,n);return(await Promise.all(i.rewards.map(async t=>{if(0==t.denom.indexOf("ibc/")){var n;let a=await e.ibc.transfer.denomTrace(t.denom.substring(4));t.denom=(null===(n=a.denomTrace)||void 0===n?void 0:n.baseDenom)||t.denom}return t}))).filter(t=>{var n;return(null===(n=t.denom)||void 0===n?void 0:n.toUpperCase())==="UXION"}).map(t=>({amount:new a.Z(t.amount).div(new a.Z(10).pow(18)).toString(),denom:t.denom})).map(t=>(0,r.bI)(t))};var w=e(19807),p=e(62986);let h=async t=>{try{var n,e;t.dispatch((0,p.Kv)(!0));let[a,o]=await Promise.all([s(),c()]);t.dispatch((0,p.T2)({items:a.validators,nextKey:(null===(n=a.pagination)||void 0===n?void 0:n.nextKey)||null,total:(null===(e=a.pagination)||void 0===e?void 0:e.total)||null},!0)),t.dispatch((0,p.DD)(o)),t.dispatch((0,p.Kv)(!1))}catch(t){console.error("error fetching staking data:",t)}},y=async(t,n)=>{try{var e,a,o,i;n.dispatch((0,p.Kv)(!0));let[s,l,u]=await Promise.all([g(t),m(t).then(async n=>({items:await Promise.all(n.delegationResponses.map(async n=>({balance:n.balance,rewards:await f(t,n.delegation.validatorAddress).then(t=>(0,r.HJ)(t)),validatorAddress:n.delegation.validatorAddress}))),pagination:n.pagination})),v(t).then(t=>({items:t.unbondingResponses.reduce((t,n)=>(t.push(...n.entries.map(t=>({balance:{amount:t.balance,denom:"uxion"},completionTime:Number(t.completionTime.seconds),completionTimeNanos:t.completionTime.nanos,id:t.unbondingId.toString(),validator:n.validatorAddress}))),t),[]),pagination:t.pagination})).catch(()=>({items:[],pagination:null})).then(t=>({items:t.items,pagination:t.pagination}))]);n.dispatch((0,p.d0)(s)),n.dispatch((0,p.Qx)({items:l.items,nextKey:(null===(e=l.pagination)||void 0===e?void 0:e.nextKey)||null,total:(null===(a=l.pagination)||void 0===a?void 0:a.total)||null},!0)),n.dispatch((0,p.Kg)({items:u.items,nextKey:(null===(o=u.pagination)||void 0===o?void 0:o.nextKey)||null,total:(null===(i=u.pagination)||void 0===i?void 0:i.total)||null},!0)),n.dispatch((0,p.Kv)(!1))}catch(t){console.error("error fetching staking data:",t)}},O=async(t,n,e,a,o)=>(await (0,w.H0)(t,a,n,e),async()=>{await y(t.delegator,o)}),A=async(t,n,e,a,o)=>(await (0,w.vZ)(t,a,n,e),async()=>{await y(t.delegator,o)}),S=async(t,n,e)=>{await (0,w.YY)(t,n),await y(t.delegator,e)},x=async(t,n)=>{var e;if((null===(e=n.state.validatorDetails)||void 0===e?void 0:e.operatorAddress)===t)return n.state.validatorDetails;let a=await u(t);return n.dispatch((0,p.gT)(a)),a}},80469:function(t,n,e){"use strict";e.d(n,{f:function(){return u},n:function(){return l}});var a=e(23234),o=e(64090),r=e(88197),i=e(62986),s=e(544);let l=()=>{let t=(0,o.useRef)({}),n=(0,o.useContext)(s.Y);t.current.state=n.state,t.current.dispatch=n.dispatch;let{data:e,isConnected:r}=(0,a.hT)(),i=null==e?void 0:e.bech32Address;return{account:e,address:i,isConnected:r,staking:t.current}},u=()=>{let{address:t,isConnected:n,staking:e}=l();(0,o.useEffect)(()=>{(0,r.wX)(e)},[e]),(0,o.useEffect)(()=>{if(n&&t)return(0,r.VZ)(t,e),()=>{e.dispatch((0,i.kS)())}},[n,t,e])}},62986:function(t,n,e){"use strict";e.d(n,{DD:function(){return u},I6:function(){return w},Kg:function(){return s},Kv:function(){return o},Qx:function(){return i},T2:function(){return r},WY:function(){return f},ZG:function(){return c},d0:function(){return a},gT:function(){return l},kS:function(){return d}});let a=t=>({content:t,type:"SET_TOKENS"}),o=t=>({content:t,type:"SET_IS_INFO_LOADING"}),r=(t,n)=>({content:t,reset:n,type:"ADD_VALIDATORS"}),i=(t,n)=>({content:t,reset:n,type:"ADD_DELEGATIONS"}),s=(t,n)=>({content:t,reset:n,type:"ADD_UNBONDINGS"}),l=t=>({content:t,type:"SET_VALIDATOR_DETAILS"}),u=t=>({content:t,type:"SET_POOL"}),d=()=>({content:null,type:"LOGOUT"}),c=t=>({content:t,type:"SET_MODAL"}),g=t=>{let n=new Set;return t.filter(t=>!n.has(t.operatorAddress)&&(n.add(t.operatorAddress),!0))},m=t=>{let n=new Set;return t.filter(t=>!n.has(t.validatorAddress)&&(n.add(t.validatorAddress),!0))},v=t=>{let n=new Set;return t.filter(t=>{let e=t.id;return!n.has(e)&&(n.add(e),!0)})},f=t=>({content:t,type:"SET_IS_LOADING_BLOCKING"}),w=(t,n)=>{switch(n.type){case"SET_TOKENS":return{...t,tokens:n.content};case"ADD_VALIDATORS":{let e=!n.reset&&t.validators||{items:[],nextKey:null,total:null};return e.total=n.content.total,e.nextKey=n.content.nextKey,e.items=g(e.items.concat(n.content.items)),{...t,validators:e}}case"ADD_DELEGATIONS":{let e=!n.reset&&t.delegations||{items:[],nextKey:null,total:null};return e.total=n.content.total,e.nextKey=n.content.nextKey,e.items=m(n.content.items.concat(e.items)),{...t,delegations:e}}case"ADD_UNBONDINGS":{let e=!n.reset&&t.unbondings||{items:[],nextKey:null,total:null};return e.total=n.content.total,e.nextKey=n.content.nextKey,e.items=v(n.content.items.concat(e.items)),{...t,unbondings:e}}case"SET_IS_INFO_LOADING":return{...t,isInfoLoading:n.content};case"SET_VALIDATOR_DETAILS":return{...t,validatorDetails:n.content};case"SET_POOL":return{...t,pool:n.content};case"SET_MODAL":return{...t,modal:n.content};case"LOGOUT":return{...t,delegations:null,unbondings:null,validators:null};case"SET_IS_LOADING_BLOCKING":return{...t,isLoadingBlocking:n.content};default:return t}}},544:function(t,n,e){"use strict";e.d(n,{W:function(){return o},Y:function(){return r}});var a=e(64090);let o={delegations:null,isInfoLoading:!1,isLoadingBlocking:!1,modal:null,pool:null,tokens:null,unbondings:null,validatorDetails:null,validators:null},r=(0,a.createContext)({dispatch:()=>null,state:o})},71694:function(t,n,e){"use strict";let a,o;e.d(n,{C_:function(){return u},N$:function(){return d},v4:function(){return c}});var r=e(18722),i=e(58015),s=e(43890),l=e(9016);let u=()=>(a||(a=(async()=>{let t=await s.Tendermint34Client.connect(l.Od);return i.QueryClient.withExtensions(t,i.setupStakingExtension,i.setupDistributionExtension,i.setupIbcExtension)})()),a),d=()=>(o||(o=(async()=>await i.StargateClient.connect(l.Od))()),o),c=async()=>{let t=localStorage.getItem("xion-authz-temp-account");if(!t)return;let n=await r.DirectSecp256k1HdWallet.deserialize(t,"abstraxion"),e=await n.getAccounts().then(t=>{var n;return null===(n=t[0])||void 0===n?void 0:n.address});return{client:await i.SigningStargateClient.connectWithSigner(l.Od,n),granteeAddress:e}}},66803:function(t,n,e){"use strict";e.d(n,{HJ:function(){return d},IB:function(){return r},Jp:function(){return i},UO:function(){return s},bI:function(){return o},bP:function(){return u},kw:function(){return l}});var a=e(22840);let o=t=>{var n,e,o;return(null===(n=t.denom)||void 0===n?void 0:n.toUpperCase())==="UXION"?{amount:new a.Z(t.amount).div(new a.Z(10).pow(6)).toString(),denom:"XION"}:(null===(e=t.denom)||void 0===e?void 0:e.toUpperCase())==="XION"?{amount:t.amount,denom:"XION"}:{...t,denom:null===(o=t.denom)||void 0===o?void 0:o.toUpperCase()}},r=()=>({amount:"0",denom:"XION"}),i=t=>({amount:t.toString(),denom:"XION"}),s=t=>t&&new a.Z(t.amount).gt(0),l=t=>({amount:t.div(new a.Z(10).pow(6)).toString(),denom:"XION"}),u=t=>({amount:t.times(new a.Z(10).pow(6)).toString(),denom:"UXION"}),d=t=>t.reduce((t,n)=>({amount:new a.Z(t.amount).plus(o(n).amount).toString(),denom:t.denom}),r())},9016:function(t,n,e){"use strict";e.d(n,{Ex:function(){return s},Jg:function(){return a},Od:function(){return r},T$:function(){return o},c1:function(){return l},sb:function(){return i}});let a=!0,o=void 0,r="https://rpc.xion-testnet.forbole.com",i="/xion-staking",s=10,l="".concat(i,"/default-avatar.svg")},77658:function(t,n,e){"use strict";e.d(n,{BR:function(){return o},Sf:function(){return a},gU:function(){return r},kC:function(){return i}});let a='',o='',r='',i=''},19807:function(t,n,e){"use strict";e.d(n,{YY:function(){return p},sj:function(){return h},H0:function(){return f},vZ:function(){return w}});var a=e(22840),o=e(53856),r=e(62884),i=e(66803),s=e(97481),l=e(71694);let u=async(t,n)=>{let{client:e,granteeAddress:a}=await (0,l.v4)()||{};if(!e||!a)return null;let o=[{typeUrl:"/cosmos.authz.v1beta1.MsgExec",value:s.MsgExec.fromPartial({grantee:a,msgs:t.map(t=>e.registry.encodeAsAny(t))})}];return await e.simulate(a,o,n).then(t=>Math.ceil(2*t).toString()).catch(t=>(console.log("debug: core/base.ts: Estimate error",t),null))},d=async t=>{let{address:n,amount:e=[{amount:"1000",denom:"uxion"}],gasLimit:a="400000",memo:o="",msgs:r}=t;return{amount:e,gas:await u(r,o)||a,granter:n}},c=t=>({amount:t.amount,denom:["UXION","XION"].includes(t.denom.toUpperCase())?t.denom.toLowerCase():t.denom}),g=t=>{if("UXION"===t.denom.toUpperCase())return c(t);if("XION"===t.denom.toUpperCase())return c((0,i.bP)(new a.Z(t.amount)));throw Error("Invalid coin denom")},m=t=>n=>{if(console.log("debug: base.ts: result",n),!n.events.find(n=>n.type===t))throw console.error(n),Error("Out of gas");return n},v=t=>{throw console.error(t),t},f=async(t,n,e,a)=>{let o=g(e),i={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:r.MsgDelegate.fromPartial({amount:o,delegatorAddress:t.delegator,validatorAddress:t.validator})},s=await d({address:t.delegator,memo:a,msgs:[i]});return await n.signAndBroadcast(t.delegator,[i],s,a).then(m("delegate")).catch(v)},w=async(t,n,e,a)=>{let o=g(e),i={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:r.MsgUndelegate.fromPartial({amount:o,delegatorAddress:t.delegator,validatorAddress:t.validator})},s=await d({address:t.delegator,memo:a,msgs:[i]});return await n.signAndBroadcast(t.delegator,[i],s,a).then(m("unbond")).catch(v)},p=async(t,n)=>{let e=[{typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:o.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:t.delegator,validatorAddress:t.validator})}],a=await d({address:t.delegator,msgs:e});return await n.signAndBroadcast(t.delegator,e,a).then(m("withdraw_rewards")).catch(v)},h=t=>{let n=(0,i.bI)(t);return new a.Z(n.amount).gte(1e-4)}}}]); \ No newline at end of file diff --git a/_next/static/chunks/82-4cedc3b593b4df9c.js b/_next/static/chunks/82-4cedc3b593b4df9c.js deleted file mode 100644 index 0f1ce6a..0000000 --- a/_next/static/chunks/82-4cedc3b593b4df9c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[82],{46601:function(){},89214:function(){},42480:function(){},85568:function(){},69386:function(){},31616:function(){},20131:function(){},16026:function(){},33370:function(){},88197:function(t,n,e){"use strict";e.d(n,{sT:function(){return S},wX:function(){return h},VZ:function(){return y},qp:function(){return D},_5:function(){return x},xu:function(){return A}});var a=e(22840),o=e(71694),i=e(66803);let r=null,l=async()=>r||(r=(await (0,o.C_)()).staking.validators("BOND_STATUS_BONDED").then(t=>(r=null,t))),s=null,u=async t=>{if((null==s?void 0:s[0])===t)return s[1];let n=(await (0,o.C_)()).staking.validator(t).then(n=>((null==s?void 0:s[0])===t&&(s=null),n.validator));return s=[t,n],n},d=null,c=async()=>d||(d=(await (0,o.C_)()).staking.pool().then(t=>(d=null,t.pool))),g=async t=>{let n=await (0,o.N$)();return await n.getBalance(t,"uxion")},v=async t=>{let n=await (0,o.C_)();return await n.staking.delegatorDelegations(t)},m=async t=>{let n=await (0,o.C_)();return await n.staking.delegatorUnbondingDelegations(t)},w=async(t,n)=>{let e=await (0,o.C_)(),r=await e.distribution.delegationRewards(t,n);return(await Promise.all(r.rewards.map(async t=>{if(0==t.denom.indexOf("ibc/")){var n;let a=await e.ibc.transfer.denomTrace(t.denom.substring(4));t.denom=(null===(n=a.denomTrace)||void 0===n?void 0:n.baseDenom)||t.denom}return t}))).filter(t=>{var n;return(null===(n=t.denom)||void 0===n?void 0:n.toUpperCase())==="UXION"}).map(t=>({amount:new a.Z(t.amount).div(new a.Z(10).pow(18)).toString(),denom:t.denom})).map(t=>(0,i.bI)(t))};var f=e(19807),p=e(62986);let h=async t=>{try{var n,e;t.dispatch((0,p.Kv)(!0));let[a,o]=await Promise.all([l(),c()]);t.dispatch((0,p.T2)({items:a.validators,nextKey:(null===(n=a.pagination)||void 0===n?void 0:n.nextKey)||null,total:(null===(e=a.pagination)||void 0===e?void 0:e.total)||null},!0)),t.dispatch((0,p.DD)(o)),t.dispatch((0,p.Kv)(!1))}catch(t){console.error("error fetching staking data:",t)}},y=async(t,n)=>{try{var e,a,o,r;n.dispatch((0,p.Kv)(!0));let[l,s,u]=await Promise.all([g(t),v(t).then(async n=>({items:await Promise.all(n.delegationResponses.map(async n=>({balance:n.balance,rewards:await w(t,n.delegation.validatorAddress).then(t=>(0,i.HJ)(t)),validatorAddress:n.delegation.validatorAddress}))),pagination:n.pagination})),m(t).then(t=>({items:t.unbondingResponses.reduce((t,n)=>(t.push(...n.entries.map(t=>({balance:{amount:t.balance,denom:"uxion"},completionTime:Number(t.completionTime.seconds),completionTimeNanos:t.completionTime.nanos,id:t.unbondingId.toString(),validator:n.validatorAddress}))),t),[]),pagination:t.pagination})).catch(()=>({items:[],pagination:null})).then(t=>({items:t.items,pagination:t.pagination}))]);n.dispatch((0,p.d0)(l)),n.dispatch((0,p.Qx)({items:s.items,nextKey:(null===(e=s.pagination)||void 0===e?void 0:e.nextKey)||null,total:(null===(a=s.pagination)||void 0===a?void 0:a.total)||null},!0)),n.dispatch((0,p.Kg)({items:u.items,nextKey:(null===(o=u.pagination)||void 0===o?void 0:o.nextKey)||null,total:(null===(r=u.pagination)||void 0===r?void 0:r.total)||null},!0)),n.dispatch((0,p.Kv)(!1))}catch(t){console.error("error fetching staking data:",t)}},x=async(t,n,e,a,o)=>(await (0,f.H0)(t,a,n,e),async()=>{await y(t.delegator,o)}),A=async(t,n,e,a,o)=>(await (0,f.vZ)(t,a,n,e),async()=>{await y(t.delegator,o)}),S=async(t,n,e)=>{await (0,f.YY)(t,n),await y(t.delegator,e)},D=async(t,n)=>{var e;if((null===(e=n.state.validatorDetails)||void 0===e?void 0:e.operatorAddress)===t)return n.state.validatorDetails;let a=await u(t);return n.dispatch((0,p.gT)(a)),a}},80469:function(t,n,e){"use strict";e.d(n,{f:function(){return u},n:function(){return s}});var a=e(23234),o=e(64090),i=e(88197),r=e(62986),l=e(544);let s=()=>{let t=(0,o.useRef)({}),n=(0,o.useContext)(l.Y);t.current.state=n.state,t.current.dispatch=n.dispatch;let{data:e,isConnected:i}=(0,a.hT)(),r=null==e?void 0:e.bech32Address;return{account:e,address:r,isConnected:i,staking:t.current}},u=()=>{let{address:t,isConnected:n,staking:e}=s();(0,o.useEffect)(()=>{(0,i.wX)(e)},[e]),(0,o.useEffect)(()=>{if(n&&t)return(0,i.VZ)(t,e),()=>{e.dispatch((0,r.kS)())}},[n,t,e])}},62986:function(t,n,e){"use strict";e.d(n,{DD:function(){return u},I6:function(){return f},Kg:function(){return l},Kv:function(){return o},Qx:function(){return r},T2:function(){return i},WY:function(){return w},ZG:function(){return c},d0:function(){return a},gT:function(){return s},kS:function(){return d}});let a=t=>({content:t,type:"SET_TOKENS"}),o=t=>({content:t,type:"SET_IS_INFO_LOADING"}),i=(t,n)=>({content:t,reset:n,type:"ADD_VALIDATORS"}),r=(t,n)=>({content:t,reset:n,type:"ADD_DELEGATIONS"}),l=(t,n)=>({content:t,reset:n,type:"ADD_UNBONDINGS"}),s=t=>({content:t,type:"SET_VALIDATOR_DETAILS"}),u=t=>({content:t,type:"SET_POOL"}),d=()=>({content:null,type:"LOGOUT"}),c=t=>({content:t,type:"SET_MODAL"}),g=t=>{let n=new Set;return t.filter(t=>!n.has(t.operatorAddress)&&(n.add(t.operatorAddress),!0))},v=t=>{let n=new Set;return t.filter(t=>!n.has(t.validatorAddress)&&(n.add(t.validatorAddress),!0))},m=t=>{let n=new Set;return t.filter(t=>{let e=t.id;return!n.has(e)&&(n.add(e),!0)})},w=t=>({content:t,type:"SET_IS_LOADING_BLOCKING"}),f=(t,n)=>{switch(n.type){case"SET_TOKENS":return{...t,tokens:n.content};case"ADD_VALIDATORS":{let e=!n.reset&&t.validators||{items:[],nextKey:null,total:null};return e.total=n.content.total,e.nextKey=n.content.nextKey,e.items=g(e.items.concat(n.content.items)),{...t,validators:e}}case"ADD_DELEGATIONS":{let e=!n.reset&&t.delegations||{items:[],nextKey:null,total:null};return e.total=n.content.total,e.nextKey=n.content.nextKey,e.items=v(n.content.items.concat(e.items)),{...t,delegations:e}}case"ADD_UNBONDINGS":{let e=!n.reset&&t.unbondings||{items:[],nextKey:null,total:null};return e.total=n.content.total,e.nextKey=n.content.nextKey,e.items=m(n.content.items.concat(e.items)),{...t,unbondings:e}}case"SET_IS_INFO_LOADING":return{...t,isInfoLoading:n.content};case"SET_VALIDATOR_DETAILS":return{...t,validatorDetails:n.content};case"SET_POOL":return{...t,pool:n.content};case"SET_MODAL":return{...t,modal:n.content};case"LOGOUT":return{...t,delegations:null,unbondings:null,validators:null};case"SET_IS_LOADING_BLOCKING":return{...t,isLoadingBlocking:n.content};default:return t}}},544:function(t,n,e){"use strict";e.d(n,{W:function(){return o},Y:function(){return i}});var a=e(64090);let o={delegations:null,isInfoLoading:!1,isLoadingBlocking:!1,modal:null,pool:null,tokens:null,unbondings:null,validatorDetails:null,validators:null},i=(0,a.createContext)({dispatch:()=>null,state:o})},71694:function(t,n,e){"use strict";let a,o;e.d(n,{C_:function(){return u},N$:function(){return d},v4:function(){return c}});var i=e(18722),r=e(58015),l=e(43890),s=e(9016);let u=()=>(a||(a=(async()=>{let t=await l.Tendermint34Client.connect(s.Od);return r.QueryClient.withExtensions(t,r.setupStakingExtension,r.setupDistributionExtension,r.setupIbcExtension)})()),a),d=()=>(o||(o=(async()=>await r.StargateClient.connect(s.Od))()),o),c=async()=>{let t=localStorage.getItem("xion-authz-temp-account");if(!t)return;let n=await i.DirectSecp256k1HdWallet.deserialize(t,"abstraxion"),e=await n.getAccounts().then(t=>{var n;return null===(n=t[0])||void 0===n?void 0:n.address});return{client:await r.SigningStargateClient.connectWithSigner(s.Od,n),granteeAddress:e}}},66803:function(t,n,e){"use strict";e.d(n,{HJ:function(){return s},IB:function(){return i},Jp:function(){return r},bI:function(){return o},kw:function(){return l}});var a=e(22840);let o=t=>{var n,e,o;return(null===(n=t.denom)||void 0===n?void 0:n.toUpperCase())==="UXION"?{amount:new a.Z(t.amount).div(new a.Z(10).pow(6)).toString(),denom:"XION"}:(null===(e=t.denom)||void 0===e?void 0:e.toUpperCase())==="XION"?{amount:t.amount,denom:"XION"}:{...t,denom:null===(o=t.denom)||void 0===o?void 0:o.toUpperCase()}},i=()=>({amount:"0",denom:"XION"}),r=t=>({amount:t.toString(),denom:"XION"}),l=t=>({amount:t.div(new a.Z(10).pow(6)).toString(),denom:"XION"}),s=t=>t.reduce((t,n)=>({amount:new a.Z(t.amount).plus(o(n).amount).toString(),denom:t.denom}),i())},9016:function(t,n,e){"use strict";e.d(n,{Ex:function(){return l},Jg:function(){return a},Od:function(){return i},T$:function(){return o},c1:function(){return s},sb:function(){return r}});let a=!0,o=void 0,i="https://rpc.xion-testnet.forbole.com",r="/xion-staking",l=10,s="".concat(r,"/default-avatar.svg")},77658:function(t,n,e){"use strict";e.d(n,{BR:function(){return o},Sf:function(){return a},gU:function(){return i},kC:function(){return r}});let a='',o='',i='',r=''},19807:function(t,n,e){"use strict";e.d(n,{YY:function(){return w},sj:function(){return f},H0:function(){return v},vZ:function(){return m}});var a=e(22840),o=e(53856),i=e(62884),r=e(66803),l=e(97481),s=e(71694);let u=async(t,n)=>{let{client:e,granteeAddress:a}=await (0,s.v4)()||{};if(!e||!a)return null;let o=[{typeUrl:"/cosmos.authz.v1beta1.MsgExec",value:l.MsgExec.fromPartial({grantee:a,msgs:t.map(t=>e.registry.encodeAsAny(t))})}];return await e.simulate(a,o,n).then(t=>Math.ceil(2*t).toString()).catch(t=>(console.log("debug: core/base.ts: Estimate error",t),null))},d=async t=>{let{address:n,amount:e=[{amount:"1000",denom:"uxion"}],gasLimit:a="400000",memo:o="",msgs:i}=t;return{amount:e,gas:await u(i,o)||a,granter:n}},c=t=>n=>{if(console.log("debug: base.ts: result",n),!n.events.find(n=>n.type===t))throw console.error(n),Error("Out of gas");return n},g=t=>{throw console.error(t),t},v=async(t,n,e,o)=>{let l=new a.Z((0,r.bI)(e).amount).times(new a.Z(10).pow(6)).toString(),s={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:i.MsgDelegate.fromPartial({amount:{amount:l,denom:"uxion"},delegatorAddress:t.delegator,validatorAddress:t.validator})},u=await d({address:t.delegator,memo:o,msgs:[s]});return await n.signAndBroadcast(t.delegator,[s],u,o).then(c("delegate")).catch(g)},m=async(t,n,e,a)=>{let o={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:i.MsgUndelegate.fromPartial({amount:e,delegatorAddress:t.delegator,validatorAddress:t.validator})},r=await d({address:t.delegator,memo:a,msgs:[o]});return await n.signAndBroadcast(t.delegator,[o],r,a).then(c("unbond")).catch(g)},w=async(t,n)=>{let e=[{typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:o.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:t.delegator,validatorAddress:t.validator})}],a=await d({address:t.delegator,msgs:e});return await n.signAndBroadcast(t.delegator,e,a).then(c("withdraw_rewards")).catch(g)},f=t=>{let n=(0,r.bI)(t);return new a.Z(n.amount).gte(1e-4)}}}]); \ No newline at end of file diff --git a/_next/static/chunks/98-147c50edab696178.js b/_next/static/chunks/98-147c50edab696178.js deleted file mode 100644 index 2b3f7c6..0000000 --- a/_next/static/chunks/98-147c50edab696178.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98],{98909:function(e,t,n){n.d(t,{Bz:function(){return u},Dx:function(){return o},M5:function(){return p},OL:function(){return x},Wz:function(){return h},XJ:function(){return d},Xq:function(){return f},hp:function(){return m},jr:function(){return c},ls:function(){return a},sr:function(){return j},zx:function(){return v}});var r=n(3827),l=n(8792),s=n(86123),i=n(77658);let o=e=>{let{children:t,className:n=""}=e;return(0,r.jsx)("div",{className:["typo-title",n].join(" "),children:t})},a=e=>{let{children:t,className:n=""}=e;return(0,r.jsx)("div",{className:["typo-hero",n].join(" "),children:t})},d=e=>{let{children:t,className:n=""}=e;return(0,r.jsx)("div",{className:["heading2",n].join(" "),children:t})},u=e=>{let{children:t,className:n="",color:l="text-typo-150"}=e;return(0,r.jsx)("div",{className:["heading8",l,n].join(" "),children:t})},c=e=>{let{children:t,className:n=""}=e;return(0,r.jsx)("div",{className:["typo-body-medium",n].join(" "),children:t})},x=e=>{let{children:t,href:n}=e;return(0,r.jsx)(l.default,{className:"text-left font-[14px] font-normal leading-[24px] underline",href:n,children:t})},m=e=>{let{className:t,...n}=e;return(0,r.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-400 disabled:text-typo-150",t].join(" ")})},p=e=>{let{textToCopy:t}=e;return(0,r.jsx)("button",{className:"cursor-pointer",dangerouslySetInnerHTML:{__html:i.BR},onClick:()=>{navigator.clipboard.writeText(t),(0,s.Am)("Copied to clipboard",{type:"info"})}})},h=e=>{let{error:t,...n}=e;return(0,r.jsxs)("span",{className:"relative block",children:[(0,r.jsx)("input",{...n,className:["h-[96px] w-full rounded-[16px] border-[1px] bg-black p-[16px] pl-[52px] text-[48px] focus:outline-none",t?"border-danger":"border-white"].join(" ")}),(0,r.jsx)("span",{className:"absolute bottom-0 left-[12px] top-0 flex h-full items-center text-[24px] text-[48px]",children:"$"})]})},f=e=>{let{children:t}=e;return(0,r.jsx)("div",{className:"text-danger",children:t})},j=e=>(0,r.jsx)("input",{...e,className:"h-[50px] w-full bg-black py-[8px] focus:outline-none",style:{border:"none",borderBottom:"1px solid white"}}),v=e=>{let{className:t,variant:n,...l}=e;return(0,r.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(" ")})}},71860:function(e,t,n){n.d(t,{Z:function(){return S}});var r=n(3827),l=n(98909),s=n(64090),i=n(98245),o=n.n(i),a=n(77658);o().setAppElement(document.body);var d=e=>{let{children:t,...n}=e;return(0,s.useEffect)(()=>{if(n.isOpen){let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[n.isOpen]),(0,r.jsx)(o(),{...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,r.jsxs)("div",{className:"relative w-full",children:[(0,r.jsx)("button",{className:"absolute right-[-16px] top-[-16px] w-[36px] cursor-pointer",dangerouslySetInnerHTML:{__html:a.kC},onClick:n.onRequestClose}),t]})})},u=n(80469),c=n(62986),x=()=>{let e=(0,u.n)(),{staking:t}=e,{modal:n}=t.state,s=(null==n?void 0:n.type)==="rewards";return s?(0,r.jsxs)(d,{isOpen:s,onRequestClose:()=>{e.staking.dispatch((0,c.ZG)(null))},children:[(0,r.jsx)("div",{children:"Success!"}),(0,r.jsx)("div",{children:"You have claimed your staking rewards successfully."}),(0,r.jsx)(l.zx,{children:"CLOSE"})]}):null},m=n(23234),p=n(22840),h=n(86123),f=n(88197),j=n(39730),v=n(66803),b=n(9016),g=n(67497);let N="input";var w=()=>{let e=(0,u.n)(),{client:t}=(0,m.Hj)(),[n,i]=(0,s.useState)(N),[o,a]=(0,s.useState)(!1),[x,w]=(0,s.useState)(""),[y,k]=(0,s.useState)(""),[S,C]=(0,s.useState)({amount:void 0,memo:void 0}),{account:z,staking:F}=e,{modal:E}=F.state,A=(null==E?void 0:E.type)==="delegate";if((0,s.useEffect)(()=>()=>{i(N),C({}),w(""),k("")},[A]),!A)return null;let{validator:O}=null==E?void 0:E.content,I=(()=>{let e=parseFloat(x);return Number.isNaN(e)?"":new p.Z(e/b.Ex)})(),Z=Object.values(S).some(e=>!!e),B=(0,j.ap)(F.state);return(0,r.jsx)(d,{isOpen:A,onRequestClose:()=>{o||e.staking.dispatch((0,c.ZG)(null))},children:(0,r.jsx)("div",{className:"min-w-[390px]",children:(()=>{if("completed"===n)return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("div",{className:"mb-[16px]",children:(0,r.jsx)(l.ls,{children:"SUCCESS!"})}),(0,r.jsxs)("div",{children:["You have successfully staked on"," ",O.description.moniker,". Thank you for contributing in securing the XION network."]})]}),(0,r.jsxs)("div",{className:"mb-[32px] mt-[32px] flex w-full flex-col items-center justify-center gap-[12px]",children:[(0,r.jsx)(l.Bz,{children:"Staked Amount"}),(0,r.jsx)(l.XJ,{children:x}),(0,r.jsx)(l.Bz,{children:"24 XION"})]}),!!y&&(0,r.jsx)("div",{className:"mb-[32px] text-center italic",children:(0,r.jsx)("div",{children:y})}),(0,r.jsx)(l.zx,{disabled:o,onClick:()=>{e.staking.dispatch((0,c.ZG)(null))},children:"CLOSE"})]});let s=()=>!I||!B||I.isNaN()||I.gt(B);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"text-center uppercase",children:(0,r.jsxs)(l.ls,{children:["Delegate To ",O.description.moniker]})}),B&&(()=>{let e=B.times(b.Ex);return(0,r.jsxs)("div",{className:"mt-[40px] flex w-full flex-col items-center justify-center gap-[12px] uppercase",children:[(0,r.jsx)(l.Bz,{children:"Available for delegation"}),(0,r.jsxs)(l.XJ,{children:["$",(0,g.HS)(e)]}),(0,r.jsx)(l.Bz,{children:(0,g.Em)((0,v.Jp)(B),!0)})]})})(),(0,r.jsxs)("div",{className:"mt-[40px] flex w-full flex-row justify-between",children:[(0,r.jsx)("div",{children:"Amount"}),!!I&&(0,r.jsxs)(l.Bz,{children:["=",(0,g.HS)(I)," XION"]})]}),(0,r.jsxs)("form",{onSubmit:e=>{if(null==e||e.stopPropagation(),!t||!I||Z||s())return;a(!0);let n={delegator:z.bech32Address,validator:O.operatorAddress};(0,f._5)(n,(0,v.Jp)(I),y,t,F).then(e=>(i("completed"),e())).catch(()=>{(0,h.Am)("Staking error",{type:"error"})}).finally(()=>{a(!1)})},children:[(0,r.jsxs)("div",{className:"mt-[8px]",children:[(0,r.jsx)(l.Wz,{disabled:o,error:!!S.amount,onBlur:()=>{s()&&C({...S,amount:"Invalid amount"})},onChange:e=>{S.amount&&C({...S,amount:void 0}),w(e.target.value)},value:x}),S.amount&&(0,r.jsx)("div",{children:(0,r.jsx)(l.Xq,{children:S.amount})})]}),(0,r.jsx)("div",{className:"mt-[40px] w-full",children:(0,r.jsx)(l.sr,{disabled:o,onChange:e=>{k(e.target.value)},placeholder:"Memo (Optional)",value:y})}),(0,r.jsx)("div",{className:"mt-[48px] w-full",children:(0,r.jsx)(l.zx,{disabled:o||Z,type:"submit",children:"Delegate Now"})})]})]})})()})})};let y="input";var k=()=>{let e=(0,u.n)(),{client:t}=(0,m.Hj)(),[n,i]=(0,s.useState)(y),[o,a]=(0,s.useState)(!1),[x,N]=(0,s.useState)(""),[w,k]=(0,s.useState)(""),{account:S,staking:C}=e,{modal:z}=C.state,F=(null==z?void 0:z.type)==="undelegate";if((0,s.useEffect)(()=>()=>{i(y),N(""),k("")},[F]),!F)return null;let{validator:E}=null==z?void 0:z.content,A=(()=>{let e=parseFloat(x);return Number.isNaN(e)?"":new p.Z(e/b.Ex)})(),O=(0,j.U2)(C.state,E.operatorAddress);return(0,r.jsx)(d,{isOpen:F,onRequestClose:()=>{o||e.staking.dispatch((0,c.ZG)(null))},children:(0,r.jsx)("div",{className:"min-w-[390px]",children:"completed"===n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("div",{className:"mb-[16px]",children:(0,r.jsx)(l.ls,{children:"SUCCESS!"})}),(0,r.jsxs)("div",{children:["You have successfully staked on"," ",E.description.moniker,". Thank you for contributing in securing the XION network."]})]}),(0,r.jsxs)("div",{className:"mb-[32px] mt-[32px] flex w-full flex-col items-center justify-center gap-[12px]",children:[(0,r.jsx)(l.Bz,{children:"Staked Amount"}),(0,r.jsx)(l.XJ,{children:x}),(0,r.jsx)(l.Bz,{children:"24 XION"})]}),!!w&&(0,r.jsx)("div",{className:"mb-[32px] text-center italic",children:(0,r.jsx)("div",{children:w})}),(0,r.jsx)(l.zx,{disabled:o,onClick:()=>{e.staking.dispatch((0,c.ZG)(null))},children:"CLOSE"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"text-center uppercase",children:(0,r.jsxs)(l.ls,{children:["Unstake From ",E.description.moniker]})}),O&&(()=>{let e=new p.Z(O.amount).times(b.Ex);return(0,r.jsxs)("div",{className:"mt-[40px] flex w-full flex-col items-center justify-center gap-[12px] uppercase",children:[(0,r.jsx)(l.Bz,{children:"Available for delegation"}),(0,r.jsxs)(l.XJ,{children:["$",(0,g.HS)(e)]}),(0,r.jsx)(l.Bz,{children:(0,g.Em)(O,!0)})]})})(),(0,r.jsxs)("div",{className:"mt-[40px] flex w-full flex-row justify-between",children:[(0,r.jsx)("div",{children:"Amount"}),!!A&&(0,r.jsxs)(l.Bz,{children:["=",(0,g.HS)(A)," XION"]})]}),(0,r.jsxs)("form",{onSubmit:e=>{if(null==e||e.stopPropagation(),!t||!A)return;a(!0);let n={delegator:S.bech32Address,validator:E.operatorAddress};(0,f.xu)(n,(0,v.Jp)(A),w,t,C).then(e=>(i("completed"),e())).catch(()=>{(0,h.Am)("Staking error",{type:"error"})}).finally(()=>{a(!1)})},children:[(0,r.jsx)("div",{className:"mt-[8px]",children:(0,r.jsx)(l.Wz,{disabled:o,onChange:e=>{N(e.target.value)},value:x})}),(0,r.jsx)("div",{className:"mt-[40px] w-full",children:(0,r.jsx)(l.sr,{disabled:o,onChange:e=>{k(e.target.value)},placeholder:"Memo (Optional)",value:w})}),(0,r.jsx)("div",{className:"mt-[48px] w-full",children:(0,r.jsx)(l.zx,{disabled:o,type:"submit",children:"Unstake Now"})})]})]})})})},S=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w,{}),(0,r.jsx)(k,{}),(0,r.jsx)(x,{})]})},39730:function(e,t,n){n.d(t,{Cn:function(){return i},Sg:function(){return d},U2:function(){return s},ap:function(){return o},zq:function(){return a}});var r=n(22840),l=n(66803);let s=(e,t)=>{let{delegations:n}=e;if(!(null==n?void 0:n.items.length))return null;let r=n.items.filter(e=>!t||e.validatorAddress===t).map(e=>e.balance);return(0,l.HJ)(r)},i=(e,t)=>{let{delegations:n}=t;if(!(null==n?void 0:n.items.length))return null;let r=n.items.filter(t=>!e||t.validatorAddress===e).map(e=>e.rewards);return(0,l.HJ)(r)},o=e=>{let{tokens:t}=e;return t?new r.Z((0,l.bI)(t).amount):null},a=(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 r.Z(e).div(new r.Z(n.bondedTokens)).toNumber():null}},89056:function(e,t,n){n.d(t,{P:function(){return o}});var r=n(64090),l=n(9016);let s={},i={getIdentityLogo:e=>{if(s[e])return s[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,r,l;return(null==e?void 0:null===(l=e.them)||void 0===l?void 0:null===(r=l[0])||void 0===r?void 0:null===(n=r.pictures)||void 0===n?void 0:null===(t=n.primary)||void 0===t?void 0:t.url)||null}).catch(()=>null);return s[e]=t,t}},o=e=>{let[t,n]=(0,r.useState)(null);return(0,r.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 a},H_:function(){return u},gg:function(){return o},i:function(){return d}});var r=n(22840),l=n(66803),s=n(9016);let i=(e,t)=>{let n=(0,l.bI)(e),s=new r.Z(n.amount);if(s.eq(0))return"".concat(s.toFormat()," ").concat(n.denom);if(s.lt(1e-4))return"<".concat(1e-4," ").concat(n.denom);if(t){let e=Intl.NumberFormat("en",{notation:"compact"});return"".concat(e.format(s.toNumber())," ").concat(n.denom)}return"".concat(s.toFormat(4)," ").concat(n.denom)},o=e=>{if("number"!=typeof e||Number.isNaN(e))return null;let t=e<1e-4?"<0.1":(100*e).toFixed(1);return"".concat(t,"%")},a=e=>Intl.NumberFormat("en",{notation:"compact"}).format(e.toNumber()),d=(e,t)=>{let n=new r.Z(e).div(new r.Z(10).pow(18)).toNumber();return"".concat((100*n).toFixed(t),"%")},u=(e,t)=>{let n=(0,l.bI)(e||(0,l.IB)()),i=new r.Z(e?n.amount:0).times(s.Ex);return!t&&i.lt(.01)?"<$0.01":"$".concat(t?a(i):i.toFormat(2))}}}]); \ No newline at end of file diff --git a/_next/static/chunks/app/layout-0f5c6a224e5406d3.js b/_next/static/chunks/app/layout-8f1e1648b2aea2cf.js similarity index 100% rename from _next/static/chunks/app/layout-0f5c6a224e5406d3.js rename to _next/static/chunks/app/layout-8f1e1648b2aea2cf.js diff --git a/_next/static/chunks/app/page-0ce6ad80fb8a621c.js b/_next/static/chunks/app/page-0ce6ad80fb8a621c.js deleted file mode 100644 index 061ff05..0000000 --- a/_next/static/chunks/app/page-0ce6ad80fb8a621c.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,99378))},99378:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return S}});var i=t(3827),l=t(64090),r=t(98909),n=t(71860),a=t(23234),c=t(80469),o=t(39730),d=t(66803),x=t(9016),m=t(19807),p=t(67497),h=(0,l.memo)(()=>{let{isConnected:e}=(0,a.hT)(),{staking:s}=(0,c.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(x.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,o.U2)(s.state,null)||(0,d.IB)(),l=(0,o.Cn)(null,s.state)||(0,d.IB)(),n=s.state.tokens||(0,d.IB)();return(0,i.jsxs)("div",{className:"grid min-h-[144px] flex-col items-center justify-center gap-[32px]",style:{backgroundImage:"url(".concat(x.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,p.H_)(l)}),(0,m.sj)(l)&&(0,i.jsx)(r.hp,{children:"Claim"})]}),(0,i.jsx)(r.jr,{children:(0,p.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,p.H_)(t)}),(0,i.jsx)(r.jr,{children:(0,p.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,p.H_)(n)}),(0,i.jsx)(r.jr,{children:(0,p.Em)(n)})]})]})}),u=t(22840),g=t(62986),j=t(89056),f=t(77658),v=t(86123),N=e=>{let{address:s}=e;if(!s)return null;let t=[s.slice(0,5),s.slice(s.length-5)].join("...");return(0,i.jsx)("button",{className:"cursor-pointer text-left text-[12px] font-normal leading-[20px] text-typo-200",onClick:()=>{navigator.clipboard.writeText(s),(0,v.Am)("Copied to clipboard",{type:"info"})},children:t})},b=e=>{let{text:s}=e,[t,l]=s.split(" ");return(0,i.jsxs)("span",{children:[(0,i.jsx)("span",{children:t})," ",(0,i.jsx)("span",{className:"text-typo-200",children:l})]})};let w={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,j.P)(a),x=(0,o.Sg)(null==n?void 0:n.tokens,l.state),m=(0,p.gg)(x);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:w,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)(N,{address:n.operatorAddress})]}),(0,i.jsx)("div",{className:"flex min-w-max flex-col items-center justify-center",children:(0,o.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)(b,{text:(0,p.Em)((0,d.kw)(new u.Z(n.tokens)),!0)})}),(0,i.jsx)("div",{className:"text-right",children:(0,p.i)(n.commission.commissionRates.rate,2)}),x&&(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=e=>{let{children:s,onSort:t,sort:l,sorting:r}=e,n=(r||[]).concat(["none"]),a=n.indexOf(l);return(0,i.jsx)("div",{className:"text-[14px] font-normal leading-[14px] tracking-wider",children:(0,i.jsxs)("span",{className:"relative",children:[s," ",!!t&&(0,i.jsx)("button",{className:"absolute right-[-16px] top-[6px] cursor-pointer",dangerouslySetInnerHTML:{__html:f.Sf},onClick:()=>{if(!t)return;let e=(1+n.indexOf(l))%n.length,s=n[e];null==t||t(s)},style:{rotate:0===a?"180deg":1===a?"0deg":"90deg"}})]})})};var C=()=>{let{staking:e}=(0,c.n)(),[s,t]=(0,l.useState)("none"),{validators:r}=e.state;if(!(null==r?void 0:r.items.length))return null;let n=r.items.slice().sort((t,i)=>{if("none"===s)return 0;if(["voting-power-asc","voting-power-desc"].includes(s)){let l=(0,o.Sg)(t.tokens,e.state),r=(0,o.Sg)(i.tokens,e.state);return l&&r?"voting-power-asc"===s?l-r:r-l:0}if(["commission-asc","commission-desc"].includes(s)){let e=parseFloat(t.commission.commissionRates.rate),l=parseFloat(i.commission.commissionRates.rate);return e&&l?"commission-asc"===s?e-l:l-e:0}if(["name-asc","name-desc"].includes(s)){let e=t.description.moniker.toLowerCase(),l=i.description.moniker.toLowerCase();return e&&l?"name-asc"===s?e.localeCompare(l):l.localeCompare(e):0}if(["staked-asc","staked-desc"].includes(s)){let e=new u.Z(t.tokens),l=new u.Z(i.tokens);return"staked-asc"===s?e.minus(l).toNumber():l.minus(e).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:w,children:[(0,i.jsx)("div",{}),(0,i.jsx)(y,{onSort:t,sort:s,sorting:["name-asc","name-desc"],children:"Validator"}),(0,i.jsx)(y,{onSort:t,sort:s,sorting:["staked-asc","staked-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,i.jsx)(y,{onSort:t,sort:s,sorting:["commission-asc","commission-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Commission"})}),(0,i.jsx)(y,{onSort:t,sort:s,sorting:["voting-power-asc","voting-power-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Voting Power"})})]}),n.map(s=>(0,i.jsx)(k,{onStake:()=>{e.dispatch((0,g.ZG)({content:{validator:s},type:"delegate"}))},staking:e,validator:s},s.operatorAddress))]})},S=(0,l.memo)(function(){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.jsx)("div",{className:"mt-[40px] text-left",children:(0,i.jsx)(r.Dx,{children:"Your Staking Overview"})}),(0,i.jsx)(h,{}),(0,i.jsx)(r.Dx,{children:"Validators"}),(0,i.jsx)(C,{})]}),(0,i.jsx)(n.Z,{})]})})}},function(e){e.O(0,[350,218,147,228,933,115,245,82,98,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-7e9a42ab2b23ba11.js b/_next/static/chunks/app/page-7e9a42ab2b23ba11.js new file mode 100644 index 0000000..a64e974 --- /dev/null +++ b/_next/static/chunks/app/page-7e9a42ab2b23ba11.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,64350))},64350:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return C}});var i=t(3827),r=t(64090),l=t(98909),n=t(71860),a=t(23234),c=t(80469),o=t(39730),d=t(66803),x=t(9016),m=t(19807),p=t(67497),h=(0,r.memo)(()=>{let{isConnected:e}=(0,a.hT)(),{staking:s}=(0,c.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(x.sb,"/overview-bg.png)"),borderRadius:24},children:[(0,i.jsx)(l.ls,{children:"Please Log In To View"}),(0,i.jsx)("div",{children:"Log In"})]});let t=(0,o.U2)(s.state,null)||(0,d.IB)(),r=(0,o.Cn)(null,s.state)||(0,d.IB)(),n=s.state.tokens||(0,d.IB)();return(0,i.jsxs)("div",{className:"grid min-h-[144px] flex-col items-center justify-center gap-[32px]",style:{backgroundImage:"url(".concat(x.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)(l.Bz,{children:"Claimable Rewards"}),(0,i.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,i.jsx)(l.XJ,{children:(0,p.H_)(r)}),(0,m.sj)(r)&&(0,i.jsx)(l.hp,{children:"Claim"})]}),(0,i.jsx)(l.jr,{children:(0,p.Em)(r)})]}),(0,i.jsxs)("div",{className:"flex h-full flex-col items-start gap-3 p-[24px]",children:[(0,i.jsx)(l.Bz,{children:"APR"}),(0,i.jsx)(l.XJ,{children:"15.57%"})]}),(0,i.jsxs)("div",{className:"flex h-full flex-col items-start gap-3 p-[24px]",children:[(0,i.jsx)(l.Bz,{children:"Delegated Amount"}),(0,i.jsx)(l.XJ,{children:(0,p.H_)(t)}),(0,i.jsx)(l.jr,{children:(0,p.Em)(t)})]}),(0,i.jsxs)("div",{className:"flex h-full flex-col items-start gap-3 p-[24px]",children:[(0,i.jsx)(l.Bz,{children:"Available For Delegation"}),(0,i.jsx)(l.XJ,{children:(0,p.H_)(n)}),(0,i.jsx)(l.jr,{children:(0,p.Em)(n)})]})]})}),u=t(22840),g=t(143),j=t(62986),f=t(89056),v=t(26605),N=t(48074);let w={gap:"16px",gridTemplateColumns:"60px 1.5fr repeat(3, 1fr) 80px 80px"},b=e=>{let{disabled:s,onStake:t,staking:r,validator:n}=e,{identity:a}=n.description,c=(0,f.P)(a),x=(0,o.Sg)(null==n?void 0:n.tokens,r.state),m=(0,p.gg)(x);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:w,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)(v.Z,{address:n.operatorAddress})]}),(0,i.jsx)("div",{className:"flex min-w-max flex-col items-center justify-center",children:(0,o.zq)(n.operatorAddress,r.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,p.Em)((0,d.kw)(new u.Z(n.tokens)),!0)})}),(0,i.jsx)("div",{className:"text-right",children:(0,p.i)(n.commission.commissionRates.rate,2)}),x&&(0,i.jsx)("div",{className:"text-right",children:m}),(0,i.jsx)("div",{className:"text-right",children:(0,i.jsx)(l.OL,{href:"/validator?address=".concat(n.operatorAddress),children:"Details"})}),(0,i.jsx)("div",{children:(0,i.jsx)(l.hp,{disabled:s,onClick:t,children:"Delegate"})})]}),(0,i.jsx)("div",{className:"box-content h-[1px] bg-bg-500",style:{width:"calc(100% - 48px)"}})]})},k=g.N;var y=()=>{let{staking:e}=(0,c.n)(),[s,t]=(0,r.useState)("none"),{validators:l}=e.state;if(!(null==l?void 0:l.items.length))return null;let n=l.items.slice().sort((t,i)=>{if("none"===s)return 0;if(["voting-power-asc","voting-power-desc"].includes(s)){let r=(0,o.Sg)(t.tokens,e.state),l=(0,o.Sg)(i.tokens,e.state);return r&&l?"voting-power-asc"===s?r-l:l-r:0}if(["commission-asc","commission-desc"].includes(s)){let e=parseFloat(t.commission.commissionRates.rate),r=parseFloat(i.commission.commissionRates.rate);return e&&r?"commission-asc"===s?e-r:r-e:0}if(["name-asc","name-desc"].includes(s)){let e=t.description.moniker.toLowerCase(),r=i.description.moniker.toLowerCase();return e&&r?"name-asc"===s?e.localeCompare(r):r.localeCompare(e):0}if(["staked-asc","staked-desc"].includes(s)){let e=new u.Z(t.tokens),r=new u.Z(i.tokens);return"staked-asc"===s?e.minus(r).toNumber():r.minus(e).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:w,children:[(0,i.jsx)("div",{}),(0,i.jsx)(k,{onSort:t,sort:s,sorting:["name-asc","name-desc"],children:"Validator"}),(0,i.jsx)(k,{onSort:t,sort:s,sorting:["staked-asc","staked-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,i.jsx)(k,{onSort:t,sort:s,sorting:["commission-asc","commission-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Commission"})}),(0,i.jsx)(k,{onSort:t,sort:s,sorting:["voting-power-asc","voting-power-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Voting Power"})})]}),n.map(s=>(0,i.jsx)(b,{onStake:()=>{e.dispatch((0,j.ZG)({content:{validator:s},type:"delegate"}))},staking:e,validator:s},s.operatorAddress))]})},C=(0,r.memo)(function(){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.jsx)("div",{className:"mt-[40px] text-left",children:(0,i.jsx)(l.Dx,{children:"Your Staking Overview"})}),(0,i.jsx)(h,{}),(0,i.jsx)(l.Dx,{children:"Validators"}),(0,i.jsx)(y,{})]}),(0,i.jsx)(n.Z,{})]})})}},function(e){e.O(0,[350,218,147,228,933,115,245,82,298,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-7eab576e4fb56d49.js b/_next/static/chunks/app/validator/page-7eab576e4fb56d49.js new file mode 100644 index 0000000..f883984 --- /dev/null +++ b/_next/static/chunks/app/validator/page-7eab576e4fb56d49.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[276],{90858:function(e,s,i){Promise.resolve().then(i.bind(i,62367))},62367:function(e,s,i){"use strict";i.r(s),i.d(s,{default:function(){return H}});var t=i(3827),l=i(59115),a=i(22840),d=i(8792),n=i(15313),r=i(64090),c=i(98909),x=i(88197),o=i(80469),m=i(62986),h=i(39730),j=i(89056),p=i(66803),g=i(9016),v=i(67497);let u=()=>(0,t.jsx)("div",{className:"h-[1px] w-full bg-bg-400"}),f=()=>(0,t.jsx)("div",{className:"h-full w-[1px] bg-bg-400"});var b=i(71860),N=i(23234),w=i(143),k=i(26605),y=i(48074);let S=e=>{let s=(0,h.jv)(e,null),i=(0,h.U2)(e,null);return(0,p.UO)(s)||(0,p.UO)(i)},C={gap:"16px",gridTemplateColumns:"60px 1.5fr repeat(4, 1fr)"},z=e=>{var s;let{delegation:i,disabled:l,staking:a}=e,d=((null===(s=a.state.validators)||void 0===s?void 0:s.items)||[]).find(e=>e.operatorAddress===i.validatorAddress),n=(0,j.P)(null==d?void 0:d.description.identity);return(0,t.jsxs)("div",{className:"flex w-full flex-col items-center justify-between gap-2",children:[(0,t.jsxs)("div",{className:"grid w-full items-center justify-between gap-2 p-4",style:C,children:[(0,t.jsx)("div",{className:"flex items-center justify-start",children:(0,t.jsx)("img",{alt:"Validator logo",className:"block w-[50px] rounded-full",src:n,style:{height:50,width:50}})}),(0,t.jsx)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:(0,t.jsxs)("div",{className:"flex flex-col justify-start gap-2 text-left",children:[(0,t.jsx)("div",{className:"text-[14px] font-bold leading-[20px]",children:(null==d?void 0:d.description.moniker)||""}),(0,t.jsx)(k.Z,{address:(null==d?void 0:d.operatorAddress)||""})]})}),(0,t.jsx)("div",{className:"text-right",children:(0,t.jsx)(y.Z,{text:(0,v.Em)(i.balance)})}),(0,t.jsx)("div",{className:"text-right",children:d?(0,v.i)(d.commission.commissionRates.rate,0):""}),(0,t.jsx)("div",{className:"text-right",children:(0,t.jsx)(y.Z,{text:(0,v.Em)(i.rewards)})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(c.hp,{disabled:l,onClick:()=>{d&&a.dispatch((0,m.ZG)({content:{validator:d},type:"delegate"}))},children:"Delegate"}),(0,t.jsx)(c.hp,{disabled:l,onClick:()=>{d&&a.dispatch((0,m.ZG)({content:{validator:d},type:"undelegate"}))},children:"Undelegate (tmp)"})]})]}),(0,t.jsx)("div",{className:"box-content h-[1px] bg-bg-500",style:{width:"calc(100% - 48px)"}})]})},A=e=>{var s;let{disabled:i,staking:l,unbonding:a}=e,d=((null===(s=l.state.validators)||void 0===s?void 0:s.items)||[]).find(e=>e.operatorAddress===a.validator),n=(0,j.P)(null==d?void 0:d.description.identity);return(0,t.jsxs)("div",{className:"flex w-full flex-col items-center justify-between gap-2",children:[(0,t.jsxs)("div",{className:"grid w-full items-center justify-between gap-2 p-4",style:C,children:[(0,t.jsx)("div",{className:"flex items-center justify-start",children:(0,t.jsx)("img",{alt:"Validator logo",className:"block w-[50px] rounded-full",src:n,style:{height:50,width:50}})}),(0,t.jsx)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:(0,t.jsxs)("div",{className:"flex flex-col justify-start gap-2 text-left",children:[(0,t.jsx)("div",{className:"text-[14px] font-bold leading-[20px]",children:(null==d?void 0:d.description.moniker)||""}),(0,t.jsx)(k.Z,{address:(null==d?void 0:d.operatorAddress)||""})]})}),(0,t.jsx)("div",{className:"text-right",children:(0,t.jsx)(y.Z,{text:(0,v.Em)(a.balance)})}),(0,t.jsx)("div",{className:"text-right",children:"Unbonding"}),(0,t.jsx)("div",{className:"text-right",children:new Date(1e3*a.completionTime).toString()}),(0,t.jsx)("div",{children:(0,t.jsx)(c.hp,{disabled:i,onClick:()=>{},children:"Cancel"})})]}),(0,t.jsx)("div",{className:"box-content h-[1px] bg-bg-500",style:{width:"calc(100% - 48px)"}})]})},B=w.N;var X=(0,r.memo)(()=>{let{staking:e}=(0,o.n)(),[s,i]=(0,r.useState)("none"),[l,a]=(0,r.useState)("none"),{delegations:d,unbondings:n}=e.state,c=!!(null==d?void 0:d.items.length),x=!!(null==n?void 0:n.items.length);return c||x?(0,t.jsxs)("div",{className:"flex h-full flex-1 flex-col items-end gap-[16px]",children:[c&&(()=>{let i=d.items.slice();return(0,t.jsxs)("div",{className:"w-full overflow-hidden rounded-[24px] bg-bg-600 pb-4 text-typo-100",children:[(0,t.jsxs)("div",{className:"grid w-full items-center justify-between gap-2 bg-bg-500 p-4 uppercase",style:C,children:[(0,t.jsx)("div",{}),(0,t.jsx)(B,{children:"Delegations"}),(0,t.jsx)(B,{onSort:a,sort:s,sorting:["staked-asc","staked-desc"],children:(0,t.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,t.jsx)(B,{onSort:a,sort:s,sorting:["commission-asc","commission-desc"],children:(0,t.jsx)("div",{className:"text-right",children:"Commission"})}),(0,t.jsx)(B,{onSort:a,sort:s,sorting:["rewards-asc","rewards-desc"],children:(0,t.jsx)("div",{className:"text-right",children:"Rewards"})})]}),i.map((s,i)=>(0,t.jsx)(z,{delegation:s,staking:e},i))]})})(),x&&(()=>{let s=n.items.slice();return(0,t.jsxs)("div",{className:"w-full overflow-hidden rounded-[24px] bg-bg-600 pb-4 text-typo-100",children:[(0,t.jsxs)("div",{className:"grid w-full items-center justify-between gap-2 bg-bg-500 p-4 uppercase",style:C,children:[(0,t.jsx)("div",{}),(0,t.jsx)(B,{children:"Delegations"}),(0,t.jsx)(B,{onSort:i,sort:l,sorting:["staked-asc","staked-desc"],children:(0,t.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,t.jsx)(B,{onSort:i,sort:l,sorting:["commission-asc","commission-desc"],children:(0,t.jsx)("div",{className:"text-right",children:"Commission"})}),(0,t.jsx)(B,{onSort:i,sort:l,sorting:["rewards-asc","rewards-desc"],children:(0,t.jsx)("div",{className:"text-right",children:"Rewards"})})]}),s.map((s,i)=>(0,t.jsx)(A,{staking:e,unbonding:s},i))]})})()]}):null});function Z(){let e=(0,n.useSearchParams)().get("address"),s=(0,o.n)(),[,i]=(0,N.dd)(),[l,d]=(0,r.useState)(!1),{isConnected:j,staking:g}=s,{isLoadingBlocking:u}=g.state,[b,w]=(0,r.useState)(null),{client:k}=(0,N.Hj)();if((0,r.useEffect)(()=>{(async()=>{e&&w(await (0,x.qp)(e,g))})()},[e,g]),!b)return(0,t.jsx)("div",{children:"Loading ..."});let y=(0,h.ap)(s.staking.state),C=(0,h.U2)(s.staking.state,null),z=(0,h.jv)(s.staking.state,null),A=(0,h.Cn)(b.operatorAddress,s.staking.state),B=S(s.staking.state),Z=j?(0,t.jsxs)("div",{className:"grid grid-cols-4 rounded-[24px] bg-bg-600 p-[24px]",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(c.Bz,{children:"Claimable Rewards"}),(0,t.jsxs)("div",{className:"mb-[8px] mt-[12px] flex flex-row items-center gap-[8px]",children:[(0,t.jsx)(c.XJ,{children:(0,v.H_)(A)}),A&&(null==A?void 0:A.amount)!=="0"&&(0,t.jsx)(c.hp,{disabled:u,onClick:()=>{if(!k)return;let e={delegator:s.account.bech32Address,validator:b.operatorAddress};g.dispatch((0,m.WY)(!0)),(0,x.sT)(e,k,s.staking).finally(()=>{g.dispatch((0,m.WY)(!1))})},children:"Claim"})]}),(0,t.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,t.jsx)(f,{})})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(c.Bz,{children:"My Delegation (XION)"}),(0,t.jsx)("div",{className:"mb-[8px] mt-[12px]",children:C&&(0,t.jsx)(c.XJ,{children:(0,v.HS)(new a.Z(C.amount))})}),(0,t.jsx)(c.Bz,{children:(0,v.H_)(C)}),(0,t.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,t.jsx)(f,{})})]}),(0,t.jsx)("div",{className:"flex flex-row gap-[16px]",children:(0,t.jsxs)("div",{className:"relative w-full",children:[(0,t.jsx)(c.Bz,{children:"Available For Delegation (XION)"}),(0,t.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,t.jsx)(c.XJ,{children:y?(0,v.HS)(y):"-"})}),(0,t.jsx)(c.Bz,{children:y?(0,v.H_)((0,p.Jp)(y)):"-"}),(0,t.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,t.jsx)(f,{})})]})}),(0,t.jsx)("div",{className:"flex flex-row gap-[16px]",children:(0,t.jsxs)("div",{children:[(0,t.jsx)(c.Bz,{children:"Unstakings (XION)"}),(0,t.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,t.jsx)(c.XJ,{children:z?(0,v.HS)(new a.Z(z.amount)):"-"})}),(0,t.jsx)(c.Bz,{children:z?(0,v.H_)(z):"-"})]})})]}):(0,t.jsxs)("div",{className:"flex h-[220px] flex-col items-center justify-center gap-[32px] rounded-[24px] bg-bg-600 uppercase",children:[(0,t.jsx)(c.ls,{children:"Please log in to view"}),(0,t.jsx)(c.zx,{disabled:u,onClick:()=>{i(!0)},children:"Log in"})]});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-[24px] mt-[32px] flex flex-row items-center justify-between",children:[(0,t.jsx)(c.Dx,{children:"My Delegations"}),B&&(0,t.jsx)("button",{onClick:()=>{d(!l)},children:l?"Hide details":"Show details"})]}),Z,B&&l&&(0,t.jsx)(X,{})]})}function H(){let e=(0,n.useSearchParams)().get("address"),s=(0,o.n)(),{isLoadingBlocking:i}=s.staking.state,[N,w]=(0,r.useState)(null),k=(0,j.P)(null==N?void 0:N.description.identity);if((0,r.useEffect)(()=>{(async()=>{e&&w(await (0,x.qp)(e,s.staking))})()},[e,s]),!N)return(0,t.jsx)("div",{children:"Loading ..."});let y=(0,h.Sg)(N.tokens,s.staking.state),S=(0,v.gg)(y),C=new a.Z(N.tokens).div(new a.Z(10).pow(6)),z=(0,h.U2)(s.staking.state,N.operatorAddress),A=(0,h.zq)(N.operatorAddress,s.staking.state);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"page-container flex w-full flex-col gap-[16px] px-[16px] pb-[32px]",children:[(0,t.jsxs)("div",{className:"mb-[32px] mt-[40px]",children:[(0,t.jsx)(c.OL,{href:"/",children:"STAKING"})," ","> ",(0,t.jsx)("span",{children:N.description.moniker})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-[24px] p-[24px]",style:{backgroundImage:"url(".concat(g.sb,"/overview-bg.png)"),backgroundSize:"cover",borderRadius:16},children:[(0,t.jsxs)("div",{className:"flex flex-row items-center gap-[16px]",children:[(0,t.jsx)("img",{alt:"Validator logo",className:"block w-[80px] rounded-full",src:k||g.c1}),(0,t.jsxs)("div",{className:"flex flex-1 items-center gap-[16px]",children:[(0,t.jsx)("div",{className:"typo-validator-name",children:N.description.moniker||""}),A&&(0,t.jsx)("div",{className:"rounded-[4px] bg-successBg px-[8px] py-[4px] text-[11px] text-success",children:"You staked"})]}),(0,t.jsx)("div",{children:(0,t.jsx)(l.z,{disabled:!s.isConnected||i,onClick:()=>{s.staking.dispatch((0,m.ZG)({content:{validator:N},type:"delegate"}))},children:"DELEGATE NOW"})})]}),(0,t.jsx)(u,{}),(0,t.jsxs)("div",{className:"grid grid-cols-4",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(c.Bz,{children:"Total Stake (XION)"}),(0,t.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,t.jsx)(c.XJ,{children:(0,v.HS)(C)})}),(0,t.jsx)(c.Bz,{children:(0,v.H_)((0,p.Jp)(C))}),(0,t.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,t.jsx)(f,{})})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(c.Bz,{children:"Commission Rate"}),(0,t.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,t.jsx)(c.XJ,{children:(0,v.i)(N.commission.commissionRates.rate,2)})}),(0,t.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,t.jsx)(f,{})})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(c.Bz,{children:"Voting Power"}),(0,t.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,t.jsx)(c.XJ,{children:S})}),(0,t.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,t.jsx)(f,{})})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(c.Bz,{children:"My Delegation (XION)"}),(0,t.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,t.jsx)(c.XJ,{children:z?(0,v.HS)(new a.Z((0,p.bI)(z).amount)):"-"})}),(0,t.jsx)(c.Bz,{children:(0,v.H_)(z)})]})]}),(0,t.jsx)(u,{}),(0,t.jsxs)("div",{className:"grid grid-cols-4",children:[(0,t.jsxs)("div",{className:"col-span-2",children:[(0,t.jsx)(c.Bz,{color:"text-white",children:"XION Address"}),(0,t.jsxs)("div",{className:"inline-flex flex-row gap-2 break-all",children:[N.operatorAddress," ",(0,t.jsx)(c.M5,{textToCopy:N.operatorAddress})]})]}),N.description.website&&(0,t.jsxs)("div",{children:[(0,t.jsx)(c.Bz,{color:"text-white",children:"Website"}),(0,t.jsx)(d.default,{href:N.description.website,target:"_blank",children:N.description.website})]}),N.description.securityContact&&(0,t.jsxs)("div",{children:[(0,t.jsx)(c.Bz,{color:"text-white",children:"Security Contact"}),(0,t.jsx)(d.default,{href:"mailto:".concat(N.description.securityContact),children:N.description.securityContact})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(c.Bz,{color:"text-white",children:"Details"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{children:N.description.details}),(0,t.jsxs)("div",{children:["Max Commission Rate:"," ",(0,v.i)(N.commission.commissionRates.maxRate,0)]}),(0,t.jsxs)("div",{children:["Max commission Change Rate:"," ",(0,v.i)(N.commission.commissionRates.maxChangeRate,0)]})]})]})]}),(0,t.jsx)(Z,{})]}),(0,t.jsx)(b.Z,{})]})}}},function(e){e.O(0,[350,218,147,228,933,115,245,82,298,971,69,744],function(){return e(e.s=90858)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/validator/page-bf0bc077399c7f3f.js b/_next/static/chunks/app/validator/page-bf0bc077399c7f3f.js deleted file mode 100644 index f635d7c..0000000 --- a/_next/static/chunks/app/validator/page-bf0bc077399c7f3f.js +++ /dev/null @@ -1 +0,0 @@ -(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 w}});var a=i(3827),l=i(59115),t=i(22840),d=i(8792),n=i(15313),c=i(64090),r=i(98909),x=i(88197),o=i(80469),h=i(62986),p=i(39730),m=i(89056),j=i(66803),g=i(9016),v=i(67497);let u=()=>(0,a.jsx)("div",{className:"h-[1px] w-full bg-bg-400"}),b=()=>(0,a.jsx)("div",{className:"h-full w-[1px] bg-bg-400"});var f=i(71860),N=i(23234);function k(){let e=(0,n.useSearchParams)().get("address"),s=(0,o.n)(),[,i]=(0,N.dd)(),{isConnected:l,staking:d}=s,{isLoadingBlocking:m}=d.state,[g,u]=(0,c.useState)(null),{client:f}=(0,N.Hj)();if((0,c.useEffect)(()=>{(async()=>{e&&u(await (0,x.qp)(e,d))})()},[e,d]),!g)return(0,a.jsx)("div",{children:"Loading ..."});let k=(0,p.ap)(s.staking.state),w=(0,p.U2)(s.staking.state,null),C=(0,p.U2)(s.staking.state,g.operatorAddress),z=(0,p.Cn)(g.operatorAddress,s.staking.state),y=l?(0,a.jsxs)("div",{className:"grid grid-cols-4 rounded-[24px] bg-bg-600 p-[24px]",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(r.Bz,{children:"Claimable Rewards"}),(0,a.jsxs)("div",{className:"mb-[8px] mt-[12px] flex flex-row items-center gap-[8px]",children:[(0,a.jsx)(r.XJ,{children:(0,v.H_)(z)}),z&&(null==z?void 0:z.amount)!=="0"&&(0,a.jsx)(r.hp,{disabled:m,onClick:()=>{if(!f)return;let e={delegator:s.account.bech32Address,validator:g.operatorAddress};d.dispatch((0,h.WY)(!0)),(0,x.sT)(e,f,s.staking).finally(()=>{d.dispatch((0,h.WY)(!1))})},children:"Claim"})]}),(0,a.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,a.jsx)(b,{})})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(r.Bz,{children:"My Delegation (XION)"}),(0,a.jsx)("div",{className:"mb-[8px] mt-[12px]",children:w&&(0,a.jsx)(r.XJ,{children:(0,v.HS)(new t.Z(w.amount))})}),(0,a.jsx)(r.Bz,{children:(0,v.H_)(w)}),(0,a.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,a.jsx)(b,{})})]}),(0,a.jsxs)("div",{className:"col-span-2 flex flex-row gap-[16px]",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(r.Bz,{children:"Available For Delegation (XION)"}),(0,a.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,a.jsx)(r.XJ,{children:k?(0,v.HS)(k):"-"})}),(0,a.jsx)(r.Bz,{children:k?(0,v.H_)((0,j.Jp)(k)):"-"})]}),(0,a.jsxs)("div",{className:"flex h-full flex-1 flex-row items-end gap-[16px]",children:[(0,a.jsx)(r.zx,{className:"flex-1",disabled:!s.isConnected||m,onClick:()=>{d.dispatch((0,h.ZG)({content:{validator:g},type:"delegate"}))},variant:"success",children:"Delegate"}),(0,a.jsx)(r.zx,{className:"flex-1",disabled:m||!s.isConnected||!C||(null==C?void 0:C.amount)==="0",onClick:()=>{d.dispatch((0,h.ZG)({content:{validator:g},type:"undelegate"}))},variant:"danger",children:"Unstake"})]})]})]}):(0,a.jsxs)("div",{className:"flex h-[220px] flex-col items-center justify-center gap-[32px] rounded-[24px] bg-bg-600 uppercase",children:[(0,a.jsx)(r.ls,{children:"Please log in to view"}),(0,a.jsx)(r.zx,{disabled:m,onClick:()=>{i(!0)},children:"Log in"})]});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mb-[24px] mt-[32px]",children:(0,a.jsx)(r.Dx,{children:"My Delegations"})}),y]})}function w(){let e=(0,n.useSearchParams)().get("address"),s=(0,o.n)(),{isLoadingBlocking:i}=s.staking.state,[N,w]=(0,c.useState)(null),C=(0,m.P)(null==N?void 0:N.description.identity);if((0,c.useEffect)(()=>{(async()=>{e&&w(await (0,x.qp)(e,s.staking))})()},[e,s]),!N)return(0,a.jsx)("div",{children:"Loading ..."});let z=(0,p.Sg)(N.tokens,s.staking.state),y=(0,v.gg)(z),B=new t.Z(N.tokens).div(new t.Z(10).pow(6)),S=(0,p.U2)(s.staking.state,N.operatorAddress),A=(0,p.zq)(N.operatorAddress,s.staking.state);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"page-container flex w-full flex-col gap-[16px] px-[16px] pb-[32px]",children:[(0,a.jsxs)("div",{className:"mb-[32px] mt-[40px]",children:[(0,a.jsx)(r.OL,{href:"/",children:"STAKING"})," ","> ",(0,a.jsx)("span",{children:N.description.moniker})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[24px] p-[24px]",style:{backgroundImage:"url(".concat(g.sb,"/overview-bg.png)"),backgroundSize:"cover",borderRadius:16},children:[(0,a.jsxs)("div",{className:"flex flex-row items-center gap-[16px]",children:[(0,a.jsx)("img",{alt:"Validator logo",className:"block w-[80px] rounded-full",src:C||g.c1}),(0,a.jsxs)("div",{className:"flex flex-1 items-center gap-[16px]",children:[(0,a.jsx)("div",{className:"typo-validator-name",children:N.description.moniker||""}),A&&(0,a.jsx)("div",{className:"rounded-[4px] bg-successBg px-[8px] py-[4px] text-[11px] text-success",children:"You staked"})]}),(0,a.jsx)("div",{children:(0,a.jsx)(l.z,{disabled:!s.isConnected||i,onClick:()=>{s.staking.dispatch((0,h.ZG)({content:{validator:N},type:"delegate"}))},children:"DELEGATE NOW"})})]}),(0,a.jsx)(u,{}),(0,a.jsxs)("div",{className:"grid grid-cols-4",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(r.Bz,{children:"Total Stake (XION)"}),(0,a.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,a.jsx)(r.XJ,{children:(0,v.HS)(B)})}),(0,a.jsx)(r.Bz,{children:(0,v.H_)((0,j.Jp)(B))}),(0,a.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,a.jsx)(b,{})})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(r.Bz,{children:"Commission Rate"}),(0,a.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,a.jsx)(r.XJ,{children:(0,v.i)(N.commission.commissionRates.rate,2)})}),(0,a.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,a.jsx)(b,{})})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(r.Bz,{children:"Voting Power"}),(0,a.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,a.jsx)(r.XJ,{children:y})}),(0,a.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,a.jsx)(b,{})})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(r.Bz,{children:"My Delegation (XION)"}),(0,a.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,a.jsx)(r.XJ,{children:S?(0,v.HS)(new t.Z((0,j.bI)(S).amount)):"-"})}),(0,a.jsx)(r.Bz,{children:(0,v.H_)(S)})]})]}),(0,a.jsx)(u,{}),(0,a.jsxs)("div",{className:"grid grid-cols-4",children:[(0,a.jsxs)("div",{className:"col-span-2",children:[(0,a.jsx)(r.Bz,{color:"text-white",children:"XION Address"}),(0,a.jsxs)("div",{className:"inline-flex flex-row gap-2 break-all",children:[N.operatorAddress," ",(0,a.jsx)(r.M5,{textToCopy:N.operatorAddress})]})]}),N.description.website&&(0,a.jsxs)("div",{children:[(0,a.jsx)(r.Bz,{color:"text-white",children:"Website"}),(0,a.jsx)(d.default,{href:N.description.website,target:"_blank",children:N.description.website})]}),N.description.securityContact&&(0,a.jsxs)("div",{children:[(0,a.jsx)(r.Bz,{color:"text-white",children:"Security Contact"}),(0,a.jsx)(d.default,{href:"mailto:".concat(N.description.securityContact),children:N.description.securityContact})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(r.Bz,{color:"text-white",children:"Details"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{children:N.description.details}),(0,a.jsxs)("div",{children:["Max Commission Rate:"," ",(0,v.i)(N.commission.commissionRates.maxRate,0)]}),(0,a.jsxs)("div",{children:["Max commission Change Rate:"," ",(0,v.i)(N.commission.commissionRates.maxChangeRate,0)]})]})]})]}),(0,a.jsx)(k,{})]}),(0,a.jsx)(f.Z,{})]})}}},function(e){e.O(0,[350,218,147,228,933,115,245,82,98,971,69,744],function(){return e(e.s=90858)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/webpack-70568752a904f0a0.js b/_next/static/chunks/webpack-caab2c960d40dcc7.js similarity index 98% rename from _next/static/chunks/webpack-70568752a904f0a0.js rename to _next/static/chunks/webpack-caab2c960d40dcc7.js index 701726a..82dccd2 100644 --- a/_next/static/chunks/webpack-70568752a904f0a0.js +++ b/_next/static/chunks/webpack-caab2c960d40dcc7.js @@ -1 +1 @@ -!function(){"use strict";var e,t,n,r,o,u,i,c,f,a={},l={};function d(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={id:e,loaded:!1,exports:{}},r=!0;try{a[e].call(n.exports,n,n.exports,d),r=!1}finally{r&&delete l[e]}return n.loaded=!0,n.exports}d.m=a,d.amdO={},e=[],d.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(d.O).every(function(e){return d.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,o*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;flex:1 1 auto;padding:6px;display:flex;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;flex:1}.Toastify__toast-icon{margin-inline-end:10px;width:20px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width:480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--colored.Toastify__toast--default,.Toastify__toast-theme--light{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;align-self:flex-start;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:focus,.Toastify__close-button:hover{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:auto;transform-origin:right;border-bottom-left-radius:0;border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp{position:absolute;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--bottom-left,.Toastify__bounce-enter--top-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--bottom-right,.Toastify__bounce-enter--top-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--bottom-left,.Toastify__bounce-exit--top-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--bottom-right,.Toastify__bounce-exit--top-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--bottom-left,.Toastify__slide-enter--top-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--bottom-right,.Toastify__slide-enter--top-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--bottom-left,.Toastify__slide-exit--top-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-right,.Toastify__slide-exit--top-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}} /* ! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com -*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.heading2{font-size:40px;font-weight:700;line-height:36px;--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.heading8{font-size:14px;font-weight:700;line-height:16px}.typo-hero{font-size:32px;font-weight:300;line-height:38px}.typo-title{font-size:24px;font-weight:700;line-height:28px;--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.typo-body-medium{font-size:16px;font-weight:400;line-height:24px;--tw-text-opacity:1;color:rgb(187 187 187/var(--tw-text-opacity))}.typo-validator-name{font-size:32px;font-weight:700;line-height:36px;--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.page-container{width:100%;max-width:1136px}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.left-\[12px\]{left:12px}.right-\[-16px\]{right:-16px}.right-\[20px\]{right:20px}.top-0{top:0}.top-\[-16px\]{top:-16px}.top-\[6px\]{top:6px}.col-span-2{grid-column:span 2/span 2}.m-auto{margin:auto}.mb-\[16px\]{margin-bottom:16px}.mb-\[24px\]{margin-bottom:24px}.mb-\[32px\]{margin-bottom:32px}.mb-\[8px\]{margin-bottom:8px}.mt-\[12px\]{margin-top:12px}.mt-\[32px\]{margin-top:32px}.mt-\[40px\]{margin-top:40px}.mt-\[48px\]{margin-top:48px}.mt-\[8px\]{margin-top:8px}.box-content{box-sizing:content-box}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-\[1px\]{height:1px}.h-\[220px\]{height:220px}.h-\[50px\]{height:50px}.h-\[80px\]{height:80px}.h-\[96px\]{height:96px}.h-full{height:100%}.min-h-\[144px\]{min-height:144px}.min-h-\[212px\]{min-height:212px}.min-h-screen{min-height:100vh}.w-\[1px\]{width:1px}.w-\[36px\]{width:36px}.w-\[50px\]{width:50px}.w-\[80px\]{width:80px}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.min-w-\[390px\]{min-width:390px}.min-w-max{min-width:-moz-max-content;min-width:max-content}.flex-1{flex:1 1 0%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-\[12px\]{gap:12px}.gap-\[16px\]{gap:16px}.gap-\[24px\]{gap:24px}.gap-\[32px\]{gap:32px}.gap-\[8px\]{gap:8px}.overflow-hidden{overflow:hidden}.break-all{word-break:break-all}.rounded-\[16px\]{border-radius:16px}.rounded-\[24px\]{border-radius:24px}.rounded-\[2px\]{border-radius:2px}.rounded-\[4px\]{border-radius:4px}.rounded-\[8px\]{border-radius:8px}.rounded-full{border-radius:9999px}.border,.border-\[1px\]{border-width:1px}.border-danger{--tw-border-opacity:1;border-color:rgb(215 69 6/var(--tw-border-opacity))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-\[\#D745061A\]{background-color:#d745061a}.bg-bg-400{--tw-bg-opacity:1;background-color:rgb(148 148 148/var(--tw-bg-opacity))}.bg-bg-500{--tw-bg-opacity:1;background-color:rgb(71 71 71/var(--tw-bg-opacity))}.bg-bg-550{--tw-bg-opacity:1;background-color:rgb(67 64 64/var(--tw-bg-opacity))}.bg-bg-600{--tw-bg-opacity:1;background-color:rgb(26 26 26/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-success{--tw-bg-opacity:1;background-color:rgb(4 199 0/var(--tw-bg-opacity))}.bg-successBg{background-color:#04c7001a}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-4{padding:1rem}.p-\[16px\]{padding:16px}.p-\[24px\]{padding:24px}.p-\[2px\]{padding:2px}.px-\[12px\]{padding-left:12px;padding-right:12px}.px-\[16px\]{padding-left:16px;padding-right:16px}.px-\[24px\]{padding-left:24px;padding-right:24px}.px-\[8px\]{padding-left:8px;padding-right:8px}.py-\[16px\]{padding-top:16px;padding-bottom:16px}.py-\[18px\]{padding-top:18px;padding-bottom:18px}.py-\[4px\]{padding-top:4px;padding-bottom:4px}.py-\[8px\]{padding-top:8px;padding-bottom:8px}.pb-4{padding-bottom:1rem}.pb-\[24px\]{padding-bottom:24px}.pb-\[32px\]{padding-bottom:32px}.pl-\[52px\]{padding-left:52px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[14px\]{font-size:14px}.text-\[24px\]{font-size:24px}.text-\[48px\]{font-size:48px}.font-\[14px\]{font-weight:14px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-\[14px\]{line-height:14px}.leading-\[16px\]{line-height:16px}.leading-\[20px\]{line-height:20px}.leading-\[24px\]{line-height:24px}.tracking-normal{letter-spacing:0}.tracking-wider{letter-spacing:.05em}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-danger{--tw-text-opacity:1;color:rgb(215 69 6/var(--tw-text-opacity))}.text-success{--tw-text-opacity:1;color:rgb(4 199 0/var(--tw-text-opacity))}.text-typo-100{--tw-text-opacity:1;color:rgb(242 242 242/var(--tw-text-opacity))}.text-typo-150{--tw-text-opacity:1;color:rgb(165 165 165/var(--tw-text-opacity))}.text-typo-200{--tw-text-opacity:1;color:rgb(148 148 148/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:root{--foreground-rgb:255,255,255;--background-start-rgb:0,0,0;--background-end-rgb:0,0,0}body{color:rgb(var(--foreground-rgb));background:linear-gradient(to bottom,transparent,rgb(var(--background-end-rgb))) rgb(var(--background-start-rgb))}@font-face{font-family:Akkurat;font-weight:400;src:url(/xion-staking/_next/static/media/AkkuratLL-Regular.6f87a958.otf)}@font-face{font-family:Akkurat;font-weight:700;src:url(/xion-staking/_next/static/media/AkkuratLL-Bold.c922abae.otf)}*{font-family:Akkurat}.hover\:bg-bg-600:hover{--tw-bg-opacity:1;background-color:rgb(26 26 26/var(--tw-bg-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-bg-400:disabled{--tw-bg-opacity:1;background-color:rgb(148 148 148/var(--tw-bg-opacity))}.disabled\:bg-green-400:disabled{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.disabled\:text-typo-150:disabled{--tw-text-opacity:1;color:rgb(165 165 165/var(--tw-text-opacity))} \ No newline at end of file +*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.heading2{font-size:40px;font-weight:700;line-height:36px;--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.heading8{font-size:14px;font-weight:700;line-height:16px}.typo-hero{font-size:32px;font-weight:300;line-height:38px}.typo-title{font-size:24px;font-weight:700;line-height:28px;--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.typo-body-medium{font-size:16px;font-weight:400;line-height:24px;--tw-text-opacity:1;color:rgb(187 187 187/var(--tw-text-opacity))}.typo-validator-name{font-size:32px;font-weight:700;line-height:36px;--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.page-container{width:100%;max-width:1136px}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.right-\[-16px\]{right:-16px}.right-\[12px\]{right:12px}.right-\[20px\]{right:20px}.top-0{top:0}.top-\[-16px\]{top:-16px}.top-\[6px\]{top:6px}.col-span-2{grid-column:span 2/span 2}.m-auto{margin:auto}.mb-\[16px\]{margin-bottom:16px}.mb-\[24px\]{margin-bottom:24px}.mb-\[32px\]{margin-bottom:32px}.mb-\[8px\]{margin-bottom:8px}.mt-\[12px\]{margin-top:12px}.mt-\[32px\]{margin-top:32px}.mt-\[40px\]{margin-top:40px}.mt-\[48px\]{margin-top:48px}.mt-\[8px\]{margin-top:8px}.box-content{box-sizing:content-box}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-\[1px\]{height:1px}.h-\[220px\]{height:220px}.h-\[50px\]{height:50px}.h-\[80px\]{height:80px}.h-\[96px\]{height:96px}.h-full{height:100%}.min-h-\[144px\]{min-height:144px}.min-h-\[212px\]{min-height:212px}.min-h-screen{min-height:100vh}.w-\[1px\]{width:1px}.w-\[36px\]{width:36px}.w-\[50px\]{width:50px}.w-\[80px\]{width:80px}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.min-w-\[390px\]{min-width:390px}.min-w-max{min-width:-moz-max-content;min-width:max-content}.flex-1{flex:1 1 0%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-\[12px\]{gap:12px}.gap-\[16px\]{gap:16px}.gap-\[24px\]{gap:24px}.gap-\[32px\]{gap:32px}.gap-\[8px\]{gap:8px}.overflow-hidden{overflow:hidden}.break-all{word-break:break-all}.rounded-\[16px\]{border-radius:16px}.rounded-\[24px\]{border-radius:24px}.rounded-\[2px\]{border-radius:2px}.rounded-\[4px\]{border-radius:4px}.rounded-\[8px\]{border-radius:8px}.rounded-full{border-radius:9999px}.border,.border-\[1px\]{border-width:1px}.border-danger{--tw-border-opacity:1;border-color:rgb(215 69 6/var(--tw-border-opacity))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-\[\#D745061A\]{background-color:#d745061a}.bg-bg-400{--tw-bg-opacity:1;background-color:rgb(148 148 148/var(--tw-bg-opacity))}.bg-bg-500{--tw-bg-opacity:1;background-color:rgb(71 71 71/var(--tw-bg-opacity))}.bg-bg-550{--tw-bg-opacity:1;background-color:rgb(67 64 64/var(--tw-bg-opacity))}.bg-bg-600{--tw-bg-opacity:1;background-color:rgb(26 26 26/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-success{--tw-bg-opacity:1;background-color:rgb(4 199 0/var(--tw-bg-opacity))}.bg-successBg{background-color:#04c7001a}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-4{padding:1rem}.p-\[16px\]{padding:16px}.p-\[24px\]{padding:24px}.p-\[2px\]{padding:2px}.px-\[12px\]{padding-left:12px;padding-right:12px}.px-\[16px\]{padding-left:16px;padding-right:16px}.px-\[24px\]{padding-left:24px;padding-right:24px}.px-\[8px\]{padding-left:8px;padding-right:8px}.py-\[16px\]{padding-top:16px;padding-bottom:16px}.py-\[18px\]{padding-top:18px;padding-bottom:18px}.py-\[4px\]{padding-top:4px;padding-bottom:4px}.py-\[8px\]{padding-top:8px;padding-bottom:8px}.pb-4{padding-bottom:1rem}.pb-\[24px\]{padding-bottom:24px}.pb-\[32px\]{padding-bottom:32px}.pr-\[140px\]{padding-right:140px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[14px\]{font-size:14px}.text-\[24px\]{font-size:24px}.text-\[48px\]{font-size:48px}.font-\[14px\]{font-weight:14px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-\[14px\]{line-height:14px}.leading-\[16px\]{line-height:16px}.leading-\[20px\]{line-height:20px}.leading-\[24px\]{line-height:24px}.tracking-normal{letter-spacing:0}.tracking-wider{letter-spacing:.05em}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-danger{--tw-text-opacity:1;color:rgb(215 69 6/var(--tw-text-opacity))}.text-success{--tw-text-opacity:1;color:rgb(4 199 0/var(--tw-text-opacity))}.text-typo-100{--tw-text-opacity:1;color:rgb(242 242 242/var(--tw-text-opacity))}.text-typo-150{--tw-text-opacity:1;color:rgb(165 165 165/var(--tw-text-opacity))}.text-typo-200{--tw-text-opacity:1;color:rgb(148 148 148/var(--tw-text-opacity))}.text-typo-300{--tw-text-opacity:1;color:rgb(142 145 154/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:root{--foreground-rgb:255,255,255;--background-start-rgb:0,0,0;--background-end-rgb:0,0,0}body{color:rgb(var(--foreground-rgb));background:linear-gradient(to bottom,transparent,rgb(var(--background-end-rgb))) rgb(var(--background-start-rgb))}@font-face{font-family:Akkurat;font-weight:400;src:url(/xion-staking/_next/static/media/AkkuratLL-Regular.6f87a958.otf)}@font-face{font-family:Akkurat;font-weight:700;src:url(/xion-staking/_next/static/media/AkkuratLL-Bold.c922abae.otf)}*{font-family:Akkurat}.hover\:bg-bg-600:hover{--tw-bg-opacity:1;background-color:rgb(26 26 26/var(--tw-bg-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-bg-400:disabled{--tw-bg-opacity:1;background-color:rgb(148 148 148/var(--tw-bg-opacity))}.disabled\:bg-green-400:disabled{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.disabled\:text-typo-150:disabled{--tw-text-opacity:1;color:rgb(165 165 165/var(--tw-text-opacity))} \ No newline at end of file diff --git a/_next/static/R4woSpPslnK6vvZmLZxV8/_buildManifest.js b/_next/static/rjoPSOAxP-QChgGCmnom1/_buildManifest.js similarity index 100% rename from _next/static/R4woSpPslnK6vvZmLZxV8/_buildManifest.js rename to _next/static/rjoPSOAxP-QChgGCmnom1/_buildManifest.js diff --git a/_next/static/R4woSpPslnK6vvZmLZxV8/_ssgManifest.js b/_next/static/rjoPSOAxP-QChgGCmnom1/_ssgManifest.js similarity index 100% rename from _next/static/R4woSpPslnK6vvZmLZxV8/_ssgManifest.js rename to _next/static/rjoPSOAxP-QChgGCmnom1/_ssgManifest.js diff --git a/index.html b/index.html index b59a405..3d2e724 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 2867436..1d58d17 100644 --- a/index.txt +++ b/index.txt @@ -1,7 +1,7 @@ -2:I[99378,["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","115","static/chunks/115-344e87f4b1870cc4.js","245","static/chunks/245-3236bf90fc198cb7.js","82","static/chunks/82-4cedc3b593b4df9c.js","98","static/chunks/98-147c50edab696178.js","931","static/chunks/app/page-0ce6ad80fb8a621c.js"],""] -3:I[61382,["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","115","static/chunks/115-344e87f4b1870cc4.js","82","static/chunks/82-4cedc3b593b4df9c.js","185","static/chunks/app/layout-0f5c6a224e5406d3.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","115","static/chunks/115-344e87f4b1870cc4.js","245","static/chunks/245-3236bf90fc198cb7.js","82","static/chunks/82-3e09f7920f5fc198.js","298","static/chunks/298-c235e7148b387090.js","931","static/chunks/app/page-7e9a42ab2b23ba11.js"],""] +3:I[61382,["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","115","static/chunks/115-344e87f4b1870cc4.js","82","static/chunks/82-3e09f7920f5fc198.js","185","static/chunks/app/layout-8f1e1648b2aea2cf.js"],""] 4:I[5613,[],""] 5:I[31778,[],""] -0:["R4woSpPslnK6vvZmLZxV8",[[["",{"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/5f1250eeb0f4dd7d.css","precedence":"next","crossOrigin":""}]],"$L6"]]]] +0:["rjoPSOAxP-QChgGCmnom1",[[["",{"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/729457d19871edd6.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 88962dd..4ecbf75 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 5c76206..b24f5e8 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","115","static/chunks/115-344e87f4b1870cc4.js","245","static/chunks/245-3236bf90fc198cb7.js","82","static/chunks/82-4cedc3b593b4df9c.js","98","static/chunks/98-147c50edab696178.js","276","static/chunks/app/validator/page-bf0bc077399c7f3f.js"],""] +3:I[62367,["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","115","static/chunks/115-344e87f4b1870cc4.js","245","static/chunks/245-3236bf90fc198cb7.js","82","static/chunks/82-3e09f7920f5fc198.js","298","static/chunks/298-c235e7148b387090.js","276","static/chunks/app/validator/page-7eab576e4fb56d49.js"],""] 4:I[5613,[],""] 5:I[31778,[],""] -6:I[61382,["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","115","static/chunks/115-344e87f4b1870cc4.js","82","static/chunks/82-4cedc3b593b4df9c.js","185","static/chunks/app/layout-0f5c6a224e5406d3.js"],""] -0:["R4woSpPslnK6vvZmLZxV8",[[["",{"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/5f1250eeb0f4dd7d.css","precedence":"next","crossOrigin":""}]],"$L7"]]]] +6:I[61382,["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","115","static/chunks/115-344e87f4b1870cc4.js","82","static/chunks/82-3e09f7920f5fc198.js","185","static/chunks/app/layout-8f1e1648b2aea2cf.js"],""] +0:["rjoPSOAxP-QChgGCmnom1",[[["",{"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/729457d19871edd6.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