From bedfd7a89536624700772d2cfe486663d61ba6ca Mon Sep 17 00:00:00 2001 From: icfor Date: Thu, 7 Mar 2024 05:00:50 +0000 Subject: [PATCH] deploy: 934bd0b9739ff923798d3e763fc86a05f812eead --- 404.html | 2 +- .../_buildManifest.js | 0 .../_ssgManifest.js | 0 .../chunks/{4-9f7a960e3a7653fa.js => 4-a82c649a6d50a6e6.js} | 0 _next/static/chunks/495-7852da99d988a2fb.js | 1 + _next/static/chunks/503-376cbc65515ee87c.js | 1 - _next/static/chunks/567-52b253322bfdeb49.js | 1 - _next/static/chunks/567-759415d61a602f42.js | 1 + ...ayout-3869892885b7981f.js => layout-17799167bdabcbab.js} | 0 _next/static/chunks/app/page-11070a3e09ad0e6d.js | 1 + _next/static/chunks/app/page-1bfffe88fc8fe4b3.js | 1 - .../{page-ee9dd284c1466810.js => page-132c807459b7f82d.js} | 2 +- ...pack-991c8e27867cb0e9.js => webpack-8e87202304def201.js} | 2 +- .../css/{9e20252c6882c039.css => ac09cf9a18ca7b2d.css} | 2 +- index.html | 2 +- index.txt | 6 +++--- validator.html | 2 +- validator.txt | 6 +++--- 18 files changed, 15 insertions(+), 15 deletions(-) rename _next/static/{O31cwiSF3TCFP9vhWphOF => I0wG-yfzl0KO1EiJr1xD_}/_buildManifest.js (100%) rename _next/static/{O31cwiSF3TCFP9vhWphOF => I0wG-yfzl0KO1EiJr1xD_}/_ssgManifest.js (100%) rename _next/static/chunks/{4-9f7a960e3a7653fa.js => 4-a82c649a6d50a6e6.js} (100%) create mode 100644 _next/static/chunks/495-7852da99d988a2fb.js delete mode 100644 _next/static/chunks/503-376cbc65515ee87c.js delete mode 100644 _next/static/chunks/567-52b253322bfdeb49.js create mode 100644 _next/static/chunks/567-759415d61a602f42.js rename _next/static/chunks/app/{layout-3869892885b7981f.js => layout-17799167bdabcbab.js} (100%) create mode 100644 _next/static/chunks/app/page-11070a3e09ad0e6d.js delete mode 100644 _next/static/chunks/app/page-1bfffe88fc8fe4b3.js rename _next/static/chunks/app/validator/{page-ee9dd284c1466810.js => page-132c807459b7f82d.js} (98%) rename _next/static/chunks/{webpack-991c8e27867cb0e9.js => webpack-8e87202304def201.js} (98%) rename _next/static/css/{9e20252c6882c039.css => ac09cf9a18ca7b2d.css} (74%) diff --git a/404.html b/404.html index 75502cc..8233401 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/O31cwiSF3TCFP9vhWphOF/_buildManifest.js b/_next/static/I0wG-yfzl0KO1EiJr1xD_/_buildManifest.js similarity index 100% rename from _next/static/O31cwiSF3TCFP9vhWphOF/_buildManifest.js rename to _next/static/I0wG-yfzl0KO1EiJr1xD_/_buildManifest.js diff --git a/_next/static/O31cwiSF3TCFP9vhWphOF/_ssgManifest.js b/_next/static/I0wG-yfzl0KO1EiJr1xD_/_ssgManifest.js similarity index 100% rename from _next/static/O31cwiSF3TCFP9vhWphOF/_ssgManifest.js rename to _next/static/I0wG-yfzl0KO1EiJr1xD_/_ssgManifest.js diff --git a/_next/static/chunks/4-9f7a960e3a7653fa.js b/_next/static/chunks/4-a82c649a6d50a6e6.js similarity index 100% rename from _next/static/chunks/4-9f7a960e3a7653fa.js rename to _next/static/chunks/4-a82c649a6d50a6e6.js diff --git a/_next/static/chunks/495-7852da99d988a2fb.js b/_next/static/chunks/495-7852da99d988a2fb.js new file mode 100644 index 0000000..c729391 --- /dev/null +++ b/_next/static/chunks/495-7852da99d988a2fb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[495],{143:function(e,t,s){s.d(t,{N:function(){return r}});var n=s(3827),l=s(77658);let r=e=>{let{children:t,onSort:s,sort:r,sorting:a}=e,i=(a||[]).concat(["none"]),c=r?i.indexOf(r):-1;return(0,n.jsx)("div",{className:"text-[14px] font-normal leading-[14px] tracking-wider",children:(0,n.jsxs)("span",{className:"relative",children:[t," ",!!s&&!!r&&(0,n.jsx)("button",{className:"absolute right-[-16px] top-[6px] cursor-pointer",dangerouslySetInnerHTML:{__html:l.Sf},onClick:()=>{if(!s)return;let e=(1+i.indexOf(r))%i.length,t=i[e];null==s||s(t)},style:{rotate:0===c?"180deg":1===c?"0deg":"90deg"}})]})})}},80148:function(e,t,s){s.d(t,{B:function(){return l}});var n=s(22840);let l=(e,t,s)=>typeof e!=typeof t?0:"string"==typeof e?s?e.localeCompare(t):t.localeCompare(e):"number"==typeof e?Number.isNaN(e)||Number.isNaN(t)?0:s?e-t:t-e:e instanceof n.Z&&t instanceof n.Z?s?e.minus(t).toNumber():t.minus(e).toNumber():0},26605:function(e,t,s){var n=s(3827),l=s(30298);t.Z=e=>{let{address:t}=e;if(!t)return null;let s=[t.slice(0,5),t.slice(t.length-5)].join("...");return(0,n.jsx)("button",{className:"cursor-pointer text-left text-[12px] font-normal leading-[20px] text-typo-200",onClick:()=>{navigator.clipboard.writeText(t),(0,l.Am)("Copied to clipboard",{type:"info"})},children:s})}},62948:function(e,t,s){s.d(t,{S6:function(){return v},sv:function(){return g}});var n=s(3827),l=s(64090),r=s(82012),a=s(143),i=s(80148),c=s(88197),d=s(80469),o=s(62986),u=s(39730),x=s(89056),m=s(66803),p=s(77658),h=s(67497),j=s(26605),f=s(48074);let v=e=>{let t=(0,u.jv)(e,null),s=(0,u.U2)(e,null);return(0,m.UO)(t)||(0,m.UO)(s)},g=e=>{let{isShowingDetails:t,setIsShowingDetails:s}=e;return(0,n.jsxs)("button",{className:"text-primary-500 flex flex-row items-center gap-2",onClick:()=>{s(!t)},children:[t?"Hide details":"Show details",(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:p.cx},style:{transform:"rotate(".concat(t?"0deg":"180deg",")")}})]})},N={gap:"16px",gridTemplateColumns:"60px 1.5fr repeat(4, 1fr)"},b="grid w-full items-center justify-between gap-2 p-2 mb-[24px] last:mb-[0px] bg-black rounded-[8px]",y="w-full overflow-hidden rounded-[24px] bg-bg-600 pb-4 text-typo-100 px-[16px]",w=()=>(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:p.GI}}),k=(0,l.memo)(e=>{let{delegation:t,disabled:s,index:a,staking:i,validator:d}=e,{validatorAddress:u}=t;(0,l.useEffect)(()=>{u&&(0,c.Dr)(u,i)},[u,i]);let m=(0,x.P)(null==d?void 0:d.description.identity);return(0,n.jsxs)("div",{className:b,style:N,children:[(0,n.jsx)("div",{className:"flex items-center justify-start",children:(0,n.jsx)("img",{alt:"Validator logo",className:"block w-[50px] rounded-full",src:m,style:{height:50,width:50}})}),(0,n.jsx)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:(0,n.jsxs)("div",{className:"flex flex-col justify-start gap-2 text-left",children:[(0,n.jsx)("div",{className:"text-[14px] font-bold leading-[20px]",children:(null==d?void 0:d.description.moniker)||""}),(0,n.jsx)(j.Z,{address:(null==d?void 0:d.operatorAddress)||""})]})}),(0,n.jsx)("div",{className:"text-right",children:(0,n.jsx)(f.Z,{text:(0,h.Em)(t.balance)})}),(0,n.jsx)("div",{className:"text-right",children:d?(0,h.i)(d.commission.commissionRates.rate,0):""}),(0,n.jsx)("div",{className:"text-right",children:(0,n.jsx)(f.Z,{text:(0,h.Em)(t.rewards)})}),(0,n.jsxs)("div",{className:"flex flex-row items-center justify-end gap-[8px]",children:[(0,n.jsx)(r.hp,{disabled:s,onClick:()=>{d&&i.dispatch((0,o.ZG)({content:{validator:d},type:"delegate"}))},children:"Delegate"}),(0,n.jsx)(r.Rk,{Trigger:w,id:"delegation-".concat(a),children:(0,n.jsxs)("div",{className:"flex flex-col gap-[12px] rounded-[8px] bg-bg-600 py-[4px]",children:[(0,n.jsx)(r.ZP,{disabled:s,onClick:()=>{d&&i.dispatch((0,o.ZG)({content:{delegations:[t]},type:"rewards"}))},children:"Claim rewards"}),(0,n.jsx)(r.ZP,{disabled:s,onClick:()=>{d&&i.dispatch((0,o.ZG)({content:{validator:d},type:"undelegate"}))},variant:"danger",children:"Undelegate"})]})})]})]})}),S=e=>{let{disabled:t,stakingRef:s,unbonding:a,validator:i}=e,{staking:d}=s,u=(0,x.P)(null==i?void 0:i.description.identity),m=a.validator;return(0,l.useEffect)(()=>{m&&(0,c.Dr)(m,d)},[m,d]),(0,n.jsxs)("div",{className:b,style:N,children:[(0,n.jsx)("div",{className:"flex items-center justify-start",children:(0,n.jsx)("img",{alt:"Validator logo",className:"block w-[50px] rounded-full",src:u,style:{height:50,width:50}})}),(0,n.jsx)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:(0,n.jsxs)("div",{className:"flex flex-col justify-start gap-2 text-left",children:[(0,n.jsx)("div",{className:"text-[14px] font-bold leading-[20px]",children:(null==i?void 0:i.description.moniker)||""}),(0,n.jsx)(j.Z,{address:(null==i?void 0:i.operatorAddress)||""})]})}),(0,n.jsx)("div",{className:"text-right",children:(0,n.jsx)(f.Z,{text:(0,h.Em)(a.balance)})}),(0,n.jsx)("div",{className:"text-right",children:"Unbonding"}),(0,n.jsx)("div",{className:"text-right",children:(0,h.ts)(a.completionTime)}),(0,n.jsx)("div",{className:"text-right",children:(0,n.jsx)(r.hp,{disabled:t,onClick:()=>{d.dispatch((0,o.ZG)({content:{unbonding:a},type:"cancel-staking"}))},variant:"danger",children:"Cancel Unstake"})})]})},C=a.N,Z=a.N,E="grid w-full items-center justify-between gap-2 p-4 uppercase";t.ZP=(0,l.memo)(()=>{let e=(0,d.n)(),{staking:t}=e,[s,r]=(0,l.useState)("none"),[a,c]=(0,l.useState)("none"),o=(0,u.mM)(t.state),{delegations:x,unbondings:m}=t.state,p=!!(null==x?void 0:x.items.length),h=!!(null==m?void 0:m.items.length);return p||h?(0,n.jsxs)("div",{className:"flex h-full flex-1 flex-col items-end gap-[16px]",children:[p&&(()=>{let e=x.items.slice().sort((e,t)=>{switch(s){case"staked-asc":case"staked-desc":return(0,i.B)(e.balance.amount,t.balance.amount,"staked-asc"===s);case"rewards-asc":case"rewards-desc":return(0,i.B)(e.rewards.amount,t.rewards.amount,"rewards-asc"===s);case"commission-asc":case"commission-desc":{let n=o[e.validatorAddress],l=o[t.validatorAddress];return(0,i.B)(Number(null==n?void 0:n.commission.commissionRates.rate),Number(null==l?void 0:l.commission.commissionRates.rate),"commission-asc"===s)}default:return 0}});return(0,n.jsxs)("div",{className:y,children:[(0,n.jsxs)("div",{className:E,style:N,children:[(0,n.jsx)("div",{}),(0,n.jsx)(C,{children:"Delegations"}),(0,n.jsx)(C,{onSort:r,sort:s,sorting:["staked-asc","staked-desc"],children:(0,n.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,n.jsx)(C,{onSort:r,sort:s,sorting:["commission-asc","commission-desc"],children:(0,n.jsx)("div",{className:"text-right",children:"Commission"})}),(0,n.jsx)(C,{onSort:r,sort:s,sorting:["rewards-asc","rewards-desc"],children:(0,n.jsx)("div",{className:"text-right",children:"Rewards"})})]}),e.map((e,s)=>(0,n.jsx)(k,{delegation:e,index:s,staking:t,validator:o[e.validatorAddress]},s))]})})(),h&&(()=>{let t=m.items.slice().sort((e,t)=>{switch(a){case"amount-asc":case"amount-desc":return(0,i.B)(Number(e.balance.amount),Number(t.balance.amount),"amount-asc"===a);case"completion-asc":case"completion-desc":return(0,i.B)(e.completionTime,t.completionTime,"completion-asc"===a);default:return 0}});return(0,n.jsxs)("div",{className:y,children:[(0,n.jsxs)("div",{className:E,style:N,children:[(0,n.jsx)("div",{}),(0,n.jsx)(Z,{children:"Unstakings"}),(0,n.jsx)(Z,{onSort:c,sort:a,sorting:["staked-asc","staked-desc"],children:(0,n.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,n.jsx)(Z,{children:(0,n.jsx)("div",{className:"text-right",children:"Status"})}),(0,n.jsx)(Z,{onSort:c,sort:a,sorting:["date-asc","date-desc"],children:(0,n.jsx)("div",{className:"text-right",children:"Completion Time"})})]}),t.map((t,s)=>(0,n.jsx)(S,{stakingRef:e,unbonding:t,validator:o[t.validator]},s))]})})()]}):null})},42498:function(e,t,s){s.d(t,{I:function(){return l},i:function(){return r}});var n=s(3827);let l=()=>(0,n.jsx)("div",{className:"h-[1px] w-full bg-bg-400"}),r=()=>(0,n.jsx)("div",{className:"h-full w-[1px] bg-bg-400"})},37275:function(e,t,s){s.d(t,{Z:function(){return E}});var n=s(3827),l=s(64090),r=s(30298),a=s(82012),i=s(98245),c=s.n(i),d=s(77658);c().setAppElement(document.body);let o=e=>{let{children:t}=e;return(0,n.jsx)("div",{className:"mb-[16px] text-[16px] leading-[24px] text-typo-100 opacity-50",children:t})};var u=e=>{let{children:t,...s}=e;return(0,l.useEffect)(()=>{if(s.isOpen){let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[s.isOpen]),(0,n.jsx)(c(),{...s,style:{content:{background:"rgba(0,0,0,0.8)",border:"none",borderRadius:"48px",bottom:"auto",boxShadow:"0px 0px 50px 0px #FFFFFF40",left:"50%",padding:"48px",right:"auto",top:"50%",transform:"translate(-50%, -50%)"},overlay:{backgroundColor:"rgba(0, 0, 0, 0.5)"}},children:(0,n.jsxs)("div",{className:"relative w-full",children:[(0,n.jsx)("button",{className:"absolute right-[-30px] top-[-30px] w-[36px] cursor-pointer",dangerouslySetInnerHTML:{__html:d.kC},onClick:s.onRequestClose}),t]})})},x=s(88197),m=s(80469),p=s(62986),h=(0,l.memo)(()=>{let e=(0,m.n)(),[t,s]=(0,l.useState)("confirm"),[i,c]=(0,l.useState)(!1),{account:d,client:h,staking:j}=e,{modal:f}=j.state,v=(null==f?void 0:f.type)==="cancel-staking";if(!v)return null;let{unbonding:g}=(null==f?void 0:f.content)||{};if(!g)return null;let N="confirm"===t?(0,n.jsxs)("div",{className:"w-full text-center",children:[(0,n.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,n.jsx)(a.ls,{children:"Are you sure?"})}),(0,n.jsxs)(o,{children:["We are currently completing the unstaking process.",(0,n.jsx)("br",{}),"Are you sure you want to cancel the process?"]}),(0,n.jsx)(a.zx,{className:"mt-[25px]",isLoading:i,onClick:()=>{if(!h)return;c(!0);let e={delegator:d.bech32Address,validator:g.validator};(0,x.p4)(e,g,h,j).then(e=>{e(),s("completed")}).catch(()=>{(0,r.Am)("There was an unexpected error canceling your unstaking. Please try again later.",{type:"error"})}).finally(()=>{c(!1)})},children:"CONFIRM"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,n.jsx)(a.ls,{children:"Success!"})}),(0,n.jsx)(o,{children:"You have successfully cancel the unstaking process, and you are now contributing to the security of the XION network again."})]}),(0,n.jsx)(a.zx,{className:"mt-[25px]",onClick:()=>{e.staking.dispatch((0,p.ZG)(null))},children:"CLOSE"})]});return(0,n.jsx)(u,{isOpen:v,onRequestClose:()=>{i||e.staking.dispatch((0,p.ZG)(null))},children:(0,n.jsx)("div",{className:"min-w-[390px]",children:N})})}),j=s(19807);let f=async(e,t)=>{let{client:s,staking:n}=e,{modal:l}=n.state;if((null==l?void 0:l.type)!=="rewards")return;let{delegations:a}=(null==l?void 0:l.content)||{};if(!s||!(null==a?void 0:a.length))return;let i=e.account.bech32Address;a.reduce(async(e,t)=>{await e;let n={delegator:i,validator:t.validatorAddress};await (0,j.YY)(n,s)},Promise.resolve()).then(()=>(0,x.VZ)(i,n)).then(()=>{t("completed")}).catch(()=>{(0,r.Am)("There was an unexpected error claiming your rewards. Please try again later.",{type:"error"})})};var v=(0,l.memo)(()=>{let e=(0,m.n)(),[t,s]=(0,l.useState)("loading"),r=(0,l.useRef)(!1),{staking:i}=e,{modal:c}=i.state,d=(null==c?void 0:c.type)==="rewards";if((0,l.useEffect)(()=>{d&&!r.current&&(r.current=!0,f(e,s))},[d,e]),!d)return null;let x="loading"===t?(0,n.jsxs)("div",{className:"w-full text-center",children:[(0,n.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,n.jsx)(a.ls,{children:"CLAIMING"})}),(0,n.jsx)(o,{children:"Wait until your rewards are withdrawn."}),(0,n.jsx)(a.zx,{className:"mt-[25px]",isLoading:!0})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,n.jsx)(a.ls,{children:"Success!"})}),(0,n.jsx)(o,{children:"You have claimed your staking rewards successfully."})]}),(0,n.jsx)(a.zx,{className:"mt-[25px]",onClick:()=>{e.staking.dispatch((0,p.ZG)(null))},children:"CLOSE"})]});return(0,n.jsx)(u,{isOpen:d,onRequestClose:()=>{"loading"!==t&&e.staking.dispatch((0,p.ZG)(null))},children:(0,n.jsx)("div",{className:"min-w-[390px]",children:x})})}),g=s(22840),N=s(39730),b=s(66803),y=s(9016),w=s(67497);let k="input";var S=()=>{let e=(0,m.n)(),{client:t}=e,[s,i]=(0,l.useState)(k),[c,d]=(0,l.useState)(!1),[h,j]=(0,l.useState)(""),[f,v]=(0,l.useState)(""),[S,C]=(0,l.useState)({amount:void 0,memo:void 0}),{account:Z,staking:E}=e,{modal:A}=E.state,I=(null==A?void 0:A.type)==="delegate";if((0,l.useEffect)(()=>()=>{i(k),C({}),j(""),v("")},[I]),!I)return null;let{validator:F}=null==A?void 0:A.content;if(!F)return null;let O=new g.Z(h),z=O.isNaN()?"":O.times(y.Ex),B=Object.values(S).some(e=>!!e),R=(0,N.ap)(E.state);return(0,n.jsx)(u,{isOpen:I,onRequestClose:()=>{c||e.staking.dispatch((0,p.ZG)(null))},children:(0,n.jsx)("div",{className:"min-w-[390px]",children:(()=>{let l=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"mb-[32px] mt-[32px] flex w-full flex-col items-center justify-center gap-[12px]",children:[(0,n.jsx)(a.Bz,{children:"Staked Amount (XION)"}),(0,n.jsx)(a.XJ,{children:O.toString()}),z&&(0,n.jsxs)(a.Bz,{children:["$",(0,w.HS)(z)]})]}),!!f&&(0,n.jsx)("div",{className:"mb-[32px] text-center italic",children:(0,n.jsx)("div",{children:f})})]});if("completed"===s)return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,n.jsx)(a.ls,{children:"SUCCESS!"})}),(0,n.jsxs)(o,{children:["You have successfully staked on"," ",F.description.moniker,". Thank you for contributing in securing the XION network."]})]}),l(),(0,n.jsx)(a.zx,{disabled:c,onClick:()=>{e.staking.dispatch((0,p.ZG)(null))},children:"CLOSE"})]});if("review"===s)return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,n.jsx)(a.ls,{children:"REVIEW"})}),(0,n.jsxs)(o,{children:["Get ready to stake your XION token with"," ",F.description.moniker,". Press 'Confirm' to proceed."]})]}),l(),(0,n.jsx)(a.zx,{isLoading:c,onClick:()=>{if(!t)return;d(!0);let e={delegator:Z.bech32Address,validator:F.operatorAddress};(0,x._5)(e,(0,b.Jp)(O),f,t,E).then(e=>(i("completed"),e())).catch(()=>{(0,r.Am)("Staking error",{type:"error"})}).finally(()=>{d(!1)})},children:"CONFIRM"})]});let u=()=>{if(!z||!R||O.isNaN()||O.gt(R))return C({...S,amount:"Invalid amount"}),!0};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,n.jsxs)(a.ls,{children:["Delegate To ",F.description.moniker]})}),R&&(()=>{let e=R.times(y.Ex);return(0,n.jsxs)("div",{className:"mt-[40px] flex w-full flex-col items-center justify-center gap-[12px] uppercase",children:[(0,n.jsx)(a.Bz,{children:"Available for delegation (XION)"}),(0,n.jsx)(a.XJ,{children:(0,w.HS)(R)}),(0,n.jsxs)(a.Bz,{children:["$",(0,w.HS)(e)]})]})})(),(0,n.jsxs)("div",{className:"mt-[40px] flex w-full flex-row justify-between",children:[(0,n.jsx)("div",{children:"Amount"}),!!z&&(0,n.jsxs)(a.Bz,{children:["= $",(0,w.HS)(z)]})]}),(0,n.jsxs)("form",{onSubmit:e=>{null==e||e.stopPropagation(),null==e||e.preventDefault(),!u()&&(!t||B||O.lt(0)||i("review"))},children:[(0,n.jsxs)("div",{className:"mt-[8px]",children:[(0,n.jsx)(a.Wz,{disabled:c,error:!!S.amount,onBlur:()=>{u()},onChange:e=>{S.amount&&C({...S,amount:void 0}),j(e.target.value)},value:h}),S.amount&&(0,n.jsx)("div",{children:(0,n.jsx)(a.Xq,{children:S.amount})})]}),(0,n.jsx)("div",{className:"mt-[40px] w-full",children:(0,n.jsx)(a.sr,{disabled:c,onChange:e=>{v(e.target.value)},placeholder:"Memo (Optional)",value:f})}),(0,n.jsx)("div",{className:"mt-[48px] w-full",children:(0,n.jsx)(a.zx,{disabled:c||B,type:"submit",children:"DELEGATE NOW"})})]})]})})()})})};let C="input";var Z=()=>{let e=(0,m.n)(),{client:t}=e,[s,i]=(0,l.useState)(C),[c,d]=(0,l.useState)(!1),[h,j]=(0,l.useState)({amount:void 0,memo:void 0}),[f,v]=(0,l.useState)(""),[k,S]=(0,l.useState)(""),{account:Z,staking:E}=e,{modal:A}=E.state,I=(null==A?void 0:A.type)==="undelegate";if((0,l.useEffect)(()=>()=>{i(C),v(""),j({}),S("")},[I]),!I)return null;let{validator:F}=null==A?void 0:A.content;if(!F)return null;let O=new g.Z(f),z=O.isNaN()?"":O.times(y.Ex),B=(0,N.U2)(E.state,F.operatorAddress),R=()=>{if(!z||!B||O.lte(0)||O.gt(new g.Z(B.amount)))return j({...h,amount:"Invalid amount"}),!0},L=e=>{null==e||e.stopPropagation(),null==e||e.preventDefault(),!R()&&t&&O.gt(0)&&i("review")};return(0,n.jsx)(u,{isOpen:I,onRequestClose:()=>{c||e.staking.dispatch((0,p.ZG)(null))},children:(0,n.jsx)("div",{className:"min-w-[390px]",children:(()=>{let l=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"mb-[32px] mt-[32px] flex w-full flex-col items-center justify-center gap-[12px]",children:[(0,n.jsx)(a.Bz,{children:"Unstaking Amount (XION)"}),(0,n.jsx)(a.XJ,{children:(0,w.HS)(O)}),(0,n.jsx)(a.Bz,{children:(0,w.H_)((0,b.Jp)(O))})]}),!!k&&(0,n.jsx)("div",{className:"mb-[32px] text-center italic",children:(0,n.jsx)("div",{children:k})})]});return"completed"===s?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,n.jsx)(a.ls,{children:"SUCCESS!"})}),(0,n.jsxs)(o,{children:["You have successfully unstaked from"," ",F.description.moniker,". It takes ",y.Mx," ","days to complete the unstaking process"]})]}),l(),(0,n.jsx)(a.zx,{disabled:c,onClick:()=>{e.staking.dispatch((0,p.ZG)(null))},children:"CLOSE"})]}):"review"===s?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,n.jsx)(a.ls,{children:"REVIEW"})}),(0,n.jsxs)(o,{children:["Unstaking your XION Token means you'll stop earning rewards. Remember, it takes ",y.Mx," days to complete the unstaking process."]})]}),l(),(0,n.jsx)(a.zx,{isLoading:c,onClick:()=>{if(!t)return;d(!0);let e={delegator:Z.bech32Address,validator:F.operatorAddress};(0,x.xu)(e,(0,b.Jp)(O),k,t,E).then(e=>(i("completed"),e())).catch(()=>{(0,r.Am)("Staking error",{type:"error"})}).finally(()=>{d(!1)})},children:"CONFIRM"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,n.jsxs)(a.ls,{children:["Unstake From ",F.description.moniker]})}),B&&(()=>{let e=new g.Z(B.amount).times(y.Ex);return(0,n.jsxs)("div",{className:"mt-[40px] flex w-full flex-col items-center justify-center gap-[12px] uppercase",children:[(0,n.jsx)(a.Bz,{children:"Available amount (XION)"}),(0,n.jsx)(a.XJ,{children:(0,w.HS)(new g.Z(B.amount))}),(0,n.jsxs)(a.Bz,{children:["$",(0,w.HS)(e)]})]})})(),(0,n.jsxs)("div",{className:"mt-[40px] flex w-full flex-row justify-between",children:[(0,n.jsx)("div",{children:"Amount"}),!!z&&(0,n.jsxs)(a.Bz,{children:["=$",(0,w.HS)(z)]})]}),(0,n.jsxs)("form",{onSubmit:L,children:[(0,n.jsxs)("div",{className:"mt-[8px]",children:[(0,n.jsx)(a.Wz,{disabled:c,onBlur:()=>{R()},onChange:e=>{h.amount&&j({...h,amount:void 0}),v(e.target.value)},value:f}),h.amount&&(0,n.jsx)("div",{children:(0,n.jsx)(a.Xq,{children:h.amount})})]}),(0,n.jsx)("div",{className:"mt-[40px] w-full",children:(0,n.jsx)(a.sr,{disabled:c,onChange:e=>{S(e.target.value)},placeholder:"Memo (Optional)",value:k})}),(0,n.jsx)("div",{className:"mt-[48px] w-full",children:(0,n.jsx)(a.zx,{disabled:c,type:"submit",children:"Unstake Now"})})]})]})})()})})},E=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(S,{}),(0,n.jsx)(Z,{}),(0,n.jsx)(v,{}),(0,n.jsx)(h,{})]})},48074:function(e,t,s){var n=s(3827);t.Z=e=>{let{text:t}=e,[s,l]=t.split(" ");return(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{children:s})," ",(0,n.jsx)("span",{className:"text-typo-200",children:l})]})}},89056:function(e,t,s){s.d(t,{P:function(){return i}});var n=s(64090),l=s(9016);let r={},a={getIdentityLogo:e=>{if(r[e])return r[e];let t=fetch("https://keybase.io/_/api/1.0/user/lookup.json?key_suffix=".concat(e)).then(e=>e.json()).then(e=>{var t,s,n,l;return(null==e?void 0:null===(l=e.them)||void 0===l?void 0:null===(n=l[0])||void 0===n?void 0:null===(s=n.pictures)||void 0===s?void 0:null===(t=s.primary)||void 0===t?void 0:t.url)||null}).catch(()=>null);return r[e]=t,t}},i=e=>{let[t,s]=(0,n.useState)(null);return(0,n.useEffect)(()=>{(async()=>{e&&s(await a.getIdentityLogo(e))})()},[e]),t||l.c1}},67497:function(e,t,s){s.d(t,{Em:function(){return a},HS:function(){return c},H_:function(){return o},PV:function(){return x},gg:function(){return i},i:function(){return d},ts:function(){return u}});var n=s(22840),l=s(66803),r=s(9016);let a=(e,t)=>{let s=(0,l.bI)(e),r=new n.Z(s.amount);if(r.eq(0))return"".concat(r.toFormat()," ").concat(s.denom);if(r.lt(1e-4))return"<".concat(1e-4," ").concat(s.denom);if(t){let e=Intl.NumberFormat("en",{notation:"compact"});return"".concat(e.format(r.toNumber())," ").concat(s.denom)}return"".concat(r.toFormat(4)," ").concat(s.denom)},i=e=>{if("number"!=typeof e||Number.isNaN(e))return null;let t=e<1e-4?"<0.1":(100*e).toFixed(1);return"".concat(t,"%")},c=e=>Intl.NumberFormat("en",{notation:"compact"}).format(e.toNumber()),d=(e,t)=>{let s=new n.Z(e).div(new n.Z(10).pow(18)).toNumber();return"".concat((100*s).toFixed(t),"%")},o=(e,t)=>{let s=(0,l.bI)(e||(0,l.IB)()),a=new n.Z(e?s.amount:0).times(r.Ex);return a.eq(0)?"$0":!t&&a.lt(.01)?"<$0.01":"$".concat(t?c(a):a.toFormat(2))},u=e=>{let t=1e3*e,s=Math.floor((t-Date.now())/864e5),n=new Date(t).toLocaleString("default",{month:"short"}),l=new Date(t).getDate(),r=new Date(t).getFullYear();return"in ".concat(s," day").concat(1===s?"":"s",", ").concat(n," ").concat(l," ").concat(r)},x=e=>e?"".concat(e.times(100).toFixed(2),"%"):"-"}}]); \ No newline at end of file diff --git a/_next/static/chunks/503-376cbc65515ee87c.js b/_next/static/chunks/503-376cbc65515ee87c.js deleted file mode 100644 index a6ec072..0000000 --- a/_next/static/chunks/503-376cbc65515ee87c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[503],{143:function(e,t,s){s.d(t,{N:function(){return r}});var n=s(3827),l=s(77658);let r=e=>{let{children:t,onSort:s,sort:r,sorting:i}=e,a=(i||[]).concat(["none"]),c=r?a.indexOf(r):-1;return(0,n.jsx)("div",{className:"text-[14px] font-normal leading-[14px] tracking-wider",children:(0,n.jsxs)("span",{className:"relative",children:[t," ",!!s&&!!r&&(0,n.jsx)("button",{className:"absolute right-[-16px] top-[6px] cursor-pointer",dangerouslySetInnerHTML:{__html:l.Sf},onClick:()=>{if(!s)return;let e=(1+a.indexOf(r))%a.length,t=a[e];null==s||s(t)},style:{rotate:0===c?"180deg":1===c?"0deg":"90deg"}})]})})}},80148:function(e,t,s){s.d(t,{B:function(){return l}});var n=s(22840);let l=(e,t,s)=>typeof e!=typeof t?0:"string"==typeof e?s?e.localeCompare(t):t.localeCompare(e):"number"==typeof e?Number.isNaN(e)||Number.isNaN(t)?0:s?e-t:t-e:e instanceof n.Z&&t instanceof n.Z?s?e.minus(t).toNumber():t.minus(e).toNumber():0},26605:function(e,t,s){var n=s(3827),l=s(30298);t.Z=e=>{let{address:t}=e;if(!t)return null;let s=[t.slice(0,5),t.slice(t.length-5)].join("...");return(0,n.jsx)("button",{className:"cursor-pointer text-left text-[12px] font-normal leading-[20px] text-typo-200",onClick:()=>{navigator.clipboard.writeText(t),(0,l.Am)("Copied to clipboard",{type:"info"})},children:s})}},62948:function(e,t,s){s.d(t,{S6:function(){return g},sv:function(){return N}});var n=s(3827),l=s(64090),r=s(82012),i=s(143),a=s(80148),c=s(88197),d=s(80469),o=s(62986),u=s(39730),x=s(89056),m=s(66803),h=s(77658),p=s(19807),j=s(67497),f=s(26605),v=s(48074);let g=e=>{let t=(0,u.jv)(e,null),s=(0,u.U2)(e,null);return(0,m.UO)(t)||(0,m.UO)(s)},N=e=>{let{isShowingDetails:t,setIsShowingDetails:s}=e;return(0,n.jsxs)("button",{className:"text-primary-500 flex flex-row items-center gap-2",onClick:()=>{s(!t)},children:[t?"Hide details":"Show details",(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:h.cx},style:{transform:"rotate(".concat(t?"0deg":"180deg",")")}})]})},b={gap:"16px",gridTemplateColumns:"60px 1.5fr repeat(4, 1fr)"},y="grid w-full items-center justify-between gap-2 p-2 mb-[24px] last:mb-[0px] bg-black rounded-[8px]",w="w-full overflow-hidden rounded-[24px] bg-bg-600 pb-4 text-typo-100 px-[16px]",k=()=>(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:h.GI}}),S=(0,l.memo)(e=>{let{delegation:t,disabled:s,index:i,staking:a,validator:d}=e,{validatorAddress:u}=t;(0,l.useEffect)(()=>{u&&(0,c.Dr)(u,a)},[u,a]);let m=(0,x.P)(null==d?void 0:d.description.identity);return(0,n.jsxs)("div",{className:y,style:b,children:[(0,n.jsx)("div",{className:"flex items-center justify-start",children:(0,n.jsx)("img",{alt:"Validator logo",className:"block w-[50px] rounded-full",src:m,style:{height:50,width:50}})}),(0,n.jsx)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:(0,n.jsxs)("div",{className:"flex flex-col justify-start gap-2 text-left",children:[(0,n.jsx)("div",{className:"text-[14px] font-bold leading-[20px]",children:(null==d?void 0:d.description.moniker)||""}),(0,n.jsx)(f.Z,{address:(null==d?void 0:d.operatorAddress)||""})]})}),(0,n.jsx)("div",{className:"text-right",children:(0,n.jsx)(v.Z,{text:(0,j.Em)(t.balance)})}),(0,n.jsx)("div",{className:"text-right",children:d?(0,j.i)(d.commission.commissionRates.rate,0):""}),(0,n.jsx)("div",{className:"text-right",children:(0,n.jsx)(v.Z,{text:(0,j.Em)(t.rewards)})}),(0,n.jsxs)("div",{className:"flex flex-row items-center justify-end gap-[8px]",children:[(0,n.jsx)(r.hp,{disabled:s,onClick:()=>{d&&a.dispatch((0,o.ZG)({content:{validator:d},type:"delegate"}))},children:"Delegate"}),(0,n.jsx)(r.Rk,{Trigger:k,id:"delegation-".concat(i),children:(0,n.jsxs)("div",{className:"flex flex-col gap-[12px] rounded-[8px] bg-bg-600 py-[4px]",children:[(0,n.jsx)(r.ZP,{disabled:s,onClick:()=>{d&&a.dispatch((0,o.ZG)({content:{delegations:[t]},type:"rewards"}))},children:"Claim rewards"}),(0,n.jsx)(r.ZP,{disabled:s,onClick:()=>{d&&a.dispatch((0,o.ZG)({content:{validator:d},type:"undelegate"}))},variant:"danger",children:"Undelegate"})]})})]})]})}),C=e=>{let{disabled:t,stakingRef:s,unbonding:i,validator:a}=e,{account:d,client:o,staking:u}=s,m=(0,x.P)(null==a?void 0:a.description.identity),h=i.validator;return(0,l.useEffect)(()=>{h&&(0,c.Dr)(h,u)},[h,u]),(0,n.jsxs)("div",{className:y,style:b,children:[(0,n.jsx)("div",{className:"flex items-center justify-start",children:(0,n.jsx)("img",{alt:"Validator logo",className:"block w-[50px] rounded-full",src:m,style:{height:50,width:50}})}),(0,n.jsx)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:(0,n.jsxs)("div",{className:"flex flex-col justify-start gap-2 text-left",children:[(0,n.jsx)("div",{className:"text-[14px] font-bold leading-[20px]",children:(null==a?void 0:a.description.moniker)||""}),(0,n.jsx)(f.Z,{address:(null==a?void 0:a.operatorAddress)||""})]})}),(0,n.jsx)("div",{className:"text-right",children:(0,n.jsx)(v.Z,{text:(0,j.Em)(i.balance)})}),(0,n.jsx)("div",{className:"text-right",children:"Unbonding"}),(0,n.jsx)("div",{className:"text-right",children:(0,j.ts)(i.completionTime)}),(0,n.jsx)("div",{className:"text-right",children:(0,n.jsx)(r.hp,{disabled:t,onClick:()=>{if(!o)return;let e={delegator:d.bech32Address||"",validator:i.validator};(0,p.mu)(e,i,o)},variant:"danger",children:"Cancel Unstake"})})]})},Z=i.N,E=i.N,I="grid w-full items-center justify-between gap-2 p-4 uppercase";t.ZP=(0,l.memo)(()=>{let e=(0,d.n)(),{staking:t}=e,[s,r]=(0,l.useState)("none"),[i,c]=(0,l.useState)("none"),o=(0,u.mM)(t.state),{delegations:x,unbondings:m}=t.state,h=!!(null==x?void 0:x.items.length),p=!!(null==m?void 0:m.items.length);return h||p?(0,n.jsxs)("div",{className:"flex h-full flex-1 flex-col items-end gap-[16px]",children:[h&&(()=>{let e=x.items.slice().sort((e,t)=>{switch(s){case"staked-asc":case"staked-desc":return(0,a.B)(e.balance.amount,t.balance.amount,"staked-asc"===s);case"rewards-asc":case"rewards-desc":return(0,a.B)(e.rewards.amount,t.rewards.amount,"rewards-asc"===s);case"commission-asc":case"commission-desc":{let n=o[e.validatorAddress],l=o[t.validatorAddress];return(0,a.B)(Number(null==n?void 0:n.commission.commissionRates.rate),Number(null==l?void 0:l.commission.commissionRates.rate),"commission-asc"===s)}default:return 0}});return(0,n.jsxs)("div",{className:w,children:[(0,n.jsxs)("div",{className:I,style:b,children:[(0,n.jsx)("div",{}),(0,n.jsx)(Z,{children:"Delegations"}),(0,n.jsx)(Z,{onSort:r,sort:s,sorting:["staked-asc","staked-desc"],children:(0,n.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,n.jsx)(Z,{onSort:r,sort:s,sorting:["commission-asc","commission-desc"],children:(0,n.jsx)("div",{className:"text-right",children:"Commission"})}),(0,n.jsx)(Z,{onSort:r,sort:s,sorting:["rewards-asc","rewards-desc"],children:(0,n.jsx)("div",{className:"text-right",children:"Rewards"})})]}),e.map((e,s)=>(0,n.jsx)(S,{delegation:e,index:s,staking:t,validator:o[e.validatorAddress]},s))]})})(),p&&(()=>{let t=m.items.slice().sort((e,t)=>{switch(i){case"amount-asc":case"amount-desc":return(0,a.B)(Number(e.balance.amount),Number(t.balance.amount),"amount-asc"===i);case"completion-asc":case"completion-desc":return(0,a.B)(e.completionTime,t.completionTime,"completion-asc"===i);default:return 0}});return(0,n.jsxs)("div",{className:w,children:[(0,n.jsxs)("div",{className:I,style:b,children:[(0,n.jsx)("div",{}),(0,n.jsx)(E,{children:"Unstakings"}),(0,n.jsx)(E,{onSort:c,sort:i,sorting:["staked-asc","staked-desc"],children:(0,n.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,n.jsx)(E,{children:(0,n.jsx)("div",{className:"text-right",children:"Status"})}),(0,n.jsx)(E,{onSort:c,sort:i,sorting:["date-asc","date-desc"],children:(0,n.jsx)("div",{className:"text-right",children:"Completion Time"})})]}),t.map((t,s)=>(0,n.jsx)(C,{stakingRef:e,unbonding:t,validator:o[t.validator]},s))]})})()]}):null})},42498:function(e,t,s){s.d(t,{I:function(){return l},i:function(){return r}});var n=s(3827);let l=()=>(0,n.jsx)("div",{className:"h-[1px] w-full bg-bg-400"}),r=()=>(0,n.jsx)("div",{className:"h-full w-[1px] bg-bg-400"})},71860:function(e,t,s){s.d(t,{Z:function(){return C}});var n=s(3827),l=s(64090),r=s(30298),i=s(82012),a=s(98245),c=s.n(a),d=s(77658);c().setAppElement(document.body);var o=e=>{let{children:t,...s}=e;return(0,l.useEffect)(()=>{if(s.isOpen){let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[s.isOpen]),(0,n.jsx)(c(),{...s,style:{content:{background:"rgba(0,0,0,0.8)",border:"none",borderRadius:"48px",bottom:"auto",boxShadow:"0px 0px 50px 0px #FFFFFF40",left:"50%",padding:"45px",right:"auto",top:"50%",transform:"translate(-50%, -50%)"},overlay:{backgroundColor:"rgba(0, 0, 0, 0.5)"}},children:(0,n.jsxs)("div",{className:"relative w-full",children:[(0,n.jsx)("button",{className:"absolute right-[-16px] top-[-16px] w-[36px] cursor-pointer",dangerouslySetInnerHTML:{__html:d.kC},onClick:s.onRequestClose}),t]})})},u=s(88197),x=s(80469),m=s(62986),h=s(19807);let p=async(e,t)=>{let{client:s,staking:n}=e,{modal:l}=n.state,{delegations:i}=(null==l?void 0:l.content)||{};if(!s||!(null==i?void 0:i.length))return;let a=e.account.bech32Address;i.reduce(async(e,t)=>{await e;let n={delegator:a,validator:t.validatorAddress};await (0,h.YY)(n,s)},Promise.resolve()).then(()=>(0,u.VZ)(a,n)).then(()=>{t("completed")}).catch(()=>{(0,r.Am)("There was an unexpected error claiming your rewards. Please try again later.",{type:"error"})})};var j=(0,l.memo)(()=>{let e=(0,x.n)(),[t,s]=(0,l.useState)("loading"),r=(0,l.useRef)(!1),{staking:a}=e,{modal:c}=a.state,d=(null==c?void 0:c.type)==="rewards";if((0,l.useEffect)(()=>{d&&!r.current&&(r.current=!0,p(e,s))},[d,e]),!d)return null;let u="loading"===t?(0,n.jsxs)("div",{className:"w-full text-center",children:[(0,n.jsx)("div",{className:"mb-[16px] uppercase",children:(0,n.jsx)(i.ls,{children:"CLAIMING"})}),(0,n.jsx)("div",{className:"mb-[16px] text-typo-100",children:"Wait until your rewards are withdrawn."}),(0,n.jsx)(i.zx,{isLoading:!0})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"mb-[16px] uppercase",children:(0,n.jsx)(i.ls,{children:"Success!"})}),(0,n.jsx)("div",{className:"mb-[16px] text-typo-100",children:"You have claimed your staking rewards successfully."})]}),(0,n.jsx)(i.zx,{onClick:()=>{e.staking.dispatch((0,m.ZG)(null))},children:"CLOSE"})]});return(0,n.jsx)(o,{isOpen:d,onRequestClose:()=>{"loading"!==t&&e.staking.dispatch((0,m.ZG)(null))},children:(0,n.jsx)("div",{className:"min-w-[390px]",children:u})})}),f=s(22840),v=s(39730),g=s(66803),N=s(9016),b=s(67497);let y="input";var w=()=>{let e=(0,x.n)(),{client:t}=e,[s,a]=(0,l.useState)(y),[c,d]=(0,l.useState)(!1),[h,p]=(0,l.useState)(""),[j,w]=(0,l.useState)(""),[k,S]=(0,l.useState)({amount:void 0,memo:void 0}),{account:C,staking:Z}=e,{modal:E}=Z.state,I=(null==E?void 0:E.type)==="delegate";if((0,l.useEffect)(()=>()=>{a(y),S({}),p(""),w("")},[I]),!I)return null;let{validator:A}=null==E?void 0:E.content;if(!A)return null;let F=new f.Z(h),O=F.isNaN()?"":F.times(N.Ex),z=Object.values(k).some(e=>!!e),B=(0,v.ap)(Z.state);return(0,n.jsx)(o,{isOpen:I,onRequestClose:()=>{c||e.staking.dispatch((0,m.ZG)(null))},children:(0,n.jsx)("div",{className:"min-w-[390px]",children:(()=>{let l=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"mb-[32px] mt-[32px] flex w-full flex-col items-center justify-center gap-[12px]",children:[(0,n.jsx)(i.Bz,{children:"Staked Amount (XION)"}),(0,n.jsx)(i.XJ,{children:F.toString()}),O&&(0,n.jsxs)(i.Bz,{children:["$",(0,b.HS)(O)]})]}),!!j&&(0,n.jsx)("div",{className:"mb-[32px] text-center italic",children:(0,n.jsx)("div",{children:j})})]});if("completed"===s)return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"mb-[16px]",children:(0,n.jsx)(i.ls,{children:"SUCCESS!"})}),(0,n.jsxs)("div",{className:"text-typo-100",children:["You have successfully staked on"," ",A.description.moniker,". Thank you for contributing in securing the XION network."]})]}),l(),(0,n.jsx)(i.zx,{disabled:c,onClick:()=>{e.staking.dispatch((0,m.ZG)(null))},children:"CLOSE"})]});if("review"===s)return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"mb-[16px]",children:(0,n.jsx)(i.ls,{children:"REVIEW"})}),(0,n.jsxs)("div",{className:"text-typo-100",children:["Get ready to stake your XION token with"," ",A.description.moniker,". Press 'Confirm' to proceed."]})]}),l(),(0,n.jsx)(i.zx,{isLoading:c,onClick:()=>{if(!t)return;d(!0);let e={delegator:C.bech32Address,validator:A.operatorAddress};(0,u._5)(e,(0,g.Jp)(F),j,t,Z).then(e=>(a("completed"),e())).catch(()=>{(0,r.Am)("Staking error",{type:"error"})}).finally(()=>{d(!1)})},children:"CONFIRM"})]});let o=()=>{if(!O||!B||F.isNaN()||F.gt(B))return S({...k,amount:"Invalid amount"}),!0};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"text-center uppercase",children:(0,n.jsxs)(i.ls,{children:["Delegate To ",A.description.moniker]})}),B&&(()=>{let e=B.times(N.Ex);return(0,n.jsxs)("div",{className:"mt-[40px] flex w-full flex-col items-center justify-center gap-[12px] uppercase",children:[(0,n.jsx)(i.Bz,{children:"Available for delegation (XION)"}),(0,n.jsx)(i.XJ,{children:(0,b.HS)(B)}),(0,n.jsxs)(i.Bz,{children:["$",(0,b.HS)(e)]})]})})(),(0,n.jsxs)("div",{className:"mt-[40px] flex w-full flex-row justify-between",children:[(0,n.jsx)("div",{children:"Amount"}),!!O&&(0,n.jsxs)(i.Bz,{children:["= $",(0,b.HS)(O)]})]}),(0,n.jsxs)("form",{onSubmit:e=>{null==e||e.stopPropagation(),null==e||e.preventDefault(),!o()&&(!t||z||F.lt(0)||a("review"))},children:[(0,n.jsxs)("div",{className:"mt-[8px]",children:[(0,n.jsx)(i.Wz,{disabled:c,error:!!k.amount,onBlur:()=>{o()},onChange:e=>{k.amount&&S({...k,amount:void 0}),p(e.target.value)},value:h}),k.amount&&(0,n.jsx)("div",{children:(0,n.jsx)(i.Xq,{children:k.amount})})]}),(0,n.jsx)("div",{className:"mt-[40px] w-full",children:(0,n.jsx)(i.sr,{disabled:c,onChange:e=>{w(e.target.value)},placeholder:"Memo (Optional)",value:j})}),(0,n.jsx)("div",{className:"mt-[48px] w-full",children:(0,n.jsx)(i.zx,{disabled:c||z,type:"submit",children:"DELEGATE NOW"})})]})]})})()})})};let k="input";var S=()=>{let e=(0,x.n)(),{client:t}=e,[s,a]=(0,l.useState)(k),[c,d]=(0,l.useState)(!1),[h,p]=(0,l.useState)({amount:void 0,memo:void 0}),[j,y]=(0,l.useState)(""),[w,S]=(0,l.useState)(""),{account:C,staking:Z}=e,{modal:E}=Z.state,I=(null==E?void 0:E.type)==="undelegate";if((0,l.useEffect)(()=>()=>{a(k),y(""),p({}),S("")},[I]),!I)return null;let{validator:A}=null==E?void 0:E.content;if(!A)return null;let F=new f.Z(j),O=F.isNaN()?"":F.times(N.Ex),z=(0,v.U2)(Z.state,A.operatorAddress),B=()=>{if(!O||!z||F.lte(0)||F.gt(new f.Z(z.amount)))return p({...h,amount:"Invalid amount"}),!0},R=e=>{null==e||e.stopPropagation(),null==e||e.preventDefault(),!B()&&t&&F.gt(0)&&a("review")};return(0,n.jsx)(o,{isOpen:I,onRequestClose:()=>{c||e.staking.dispatch((0,m.ZG)(null))},children:(0,n.jsx)("div",{className:"min-w-[390px]",children:(()=>{let l=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"mb-[32px] mt-[32px] flex w-full flex-col items-center justify-center gap-[12px]",children:[(0,n.jsx)(i.Bz,{children:"Unstaking Amount (XION)"}),(0,n.jsx)(i.XJ,{children:(0,b.HS)(F)}),(0,n.jsx)(i.Bz,{children:(0,b.H_)((0,g.Jp)(F))})]}),!!w&&(0,n.jsx)("div",{className:"mb-[32px] text-center italic",children:(0,n.jsx)("div",{children:w})})]});return"completed"===s?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"mb-[16px]",children:(0,n.jsx)(i.ls,{children:"SUCCESS!"})}),(0,n.jsxs)("div",{className:"text-typo-100",children:["You have successfully unstaked from"," ",A.description.moniker,". It takes ",N.Mx," ","days to complete the unstaking process"]})]}),l(),(0,n.jsx)(i.zx,{disabled:c,onClick:()=>{e.staking.dispatch((0,m.ZG)(null))},children:"CLOSE"})]}):"review"===s?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"mb-[16px]",children:(0,n.jsx)(i.ls,{children:"REVIEW"})}),(0,n.jsxs)("div",{className:"text-typo-100",children:["Unstaking your XION Token means you'll stop earning rewards. Remember, it takes ",N.Mx," days to complete the unstaking process."]})]}),l(),(0,n.jsx)(i.zx,{isLoading:c,onClick:()=>{if(!t)return;d(!0);let e={delegator:C.bech32Address,validator:A.operatorAddress};(0,u.xu)(e,(0,g.Jp)(F),w,t,Z).then(e=>(a("completed"),e())).catch(()=>{(0,r.Am)("Staking error",{type:"error"})}).finally(()=>{d(!1)})},children:"CONFIRM"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"text-center uppercase",children:(0,n.jsxs)(i.ls,{children:["Unstake From ",A.description.moniker]})}),z&&(()=>{let e=new f.Z(z.amount).times(N.Ex);return(0,n.jsxs)("div",{className:"mt-[40px] flex w-full flex-col items-center justify-center gap-[12px] uppercase",children:[(0,n.jsx)(i.Bz,{children:"Available amount (XION)"}),(0,n.jsx)(i.XJ,{children:(0,b.HS)(new f.Z(z.amount))}),(0,n.jsxs)(i.Bz,{children:["$",(0,b.HS)(e)]})]})})(),(0,n.jsxs)("div",{className:"mt-[40px] flex w-full flex-row justify-between",children:[(0,n.jsx)("div",{children:"Amount"}),!!O&&(0,n.jsxs)(i.Bz,{children:["=$",(0,b.HS)(O)]})]}),(0,n.jsxs)("form",{onSubmit:R,children:[(0,n.jsxs)("div",{className:"mt-[8px]",children:[(0,n.jsx)(i.Wz,{disabled:c,onBlur:()=>{B()},onChange:e=>{h.amount&&p({...h,amount:void 0}),y(e.target.value)},value:j}),h.amount&&(0,n.jsx)("div",{children:(0,n.jsx)(i.Xq,{children:h.amount})})]}),(0,n.jsx)("div",{className:"mt-[40px] w-full",children:(0,n.jsx)(i.sr,{disabled:c,onChange:e=>{S(e.target.value)},placeholder:"Memo (Optional)",value:w})}),(0,n.jsx)("div",{className:"mt-[48px] w-full",children:(0,n.jsx)(i.zx,{disabled:c,type:"submit",children:"Unstake Now"})})]})]})})()})})},C=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(w,{}),(0,n.jsx)(S,{}),(0,n.jsx)(j,{})]})},48074:function(e,t,s){var n=s(3827);t.Z=e=>{let{text:t}=e,[s,l]=t.split(" ");return(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{children:s})," ",(0,n.jsx)("span",{className:"text-typo-200",children:l})]})}},89056:function(e,t,s){s.d(t,{P:function(){return a}});var n=s(64090),l=s(9016);let r={},i={getIdentityLogo:e=>{if(r[e])return r[e];let t=fetch("https://keybase.io/_/api/1.0/user/lookup.json?key_suffix=".concat(e)).then(e=>e.json()).then(e=>{var t,s,n,l;return(null==e?void 0:null===(l=e.them)||void 0===l?void 0:null===(n=l[0])||void 0===n?void 0:null===(s=n.pictures)||void 0===s?void 0:null===(t=s.primary)||void 0===t?void 0:t.url)||null}).catch(()=>null);return r[e]=t,t}},a=e=>{let[t,s]=(0,n.useState)(null);return(0,n.useEffect)(()=>{(async()=>{e&&s(await i.getIdentityLogo(e))})()},[e]),t||l.c1}},67497:function(e,t,s){s.d(t,{Em:function(){return i},HS:function(){return c},H_:function(){return o},PV:function(){return x},gg:function(){return a},i:function(){return d},ts:function(){return u}});var n=s(22840),l=s(66803),r=s(9016);let i=(e,t)=>{let s=(0,l.bI)(e),r=new n.Z(s.amount);if(r.eq(0))return"".concat(r.toFormat()," ").concat(s.denom);if(r.lt(1e-4))return"<".concat(1e-4," ").concat(s.denom);if(t){let e=Intl.NumberFormat("en",{notation:"compact"});return"".concat(e.format(r.toNumber())," ").concat(s.denom)}return"".concat(r.toFormat(4)," ").concat(s.denom)},a=e=>{if("number"!=typeof e||Number.isNaN(e))return null;let t=e<1e-4?"<0.1":(100*e).toFixed(1);return"".concat(t,"%")},c=e=>Intl.NumberFormat("en",{notation:"compact"}).format(e.toNumber()),d=(e,t)=>{let s=new n.Z(e).div(new n.Z(10).pow(18)).toNumber();return"".concat((100*s).toFixed(t),"%")},o=(e,t)=>{let s=(0,l.bI)(e||(0,l.IB)()),i=new n.Z(e?s.amount:0).times(r.Ex);return i.eq(0)?"$0":!t&&i.lt(.01)?"<$0.01":"$".concat(t?c(i):i.toFormat(2))},u=e=>{let t=1e3*e,s=Math.floor((t-Date.now())/864e5),n=new Date(t).toLocaleString("default",{month:"short"}),l=new Date(t).getDate(),r=new Date(t).getFullYear();return"in ".concat(s," day").concat(1===s?"":"s",", ").concat(n," ").concat(l," ").concat(r)},x=e=>e?"".concat(e.times(100).toFixed(2),"%"):"-"}}]); \ No newline at end of file diff --git a/_next/static/chunks/567-52b253322bfdeb49.js b/_next/static/chunks/567-52b253322bfdeb49.js deleted file mode 100644 index 8e276b7..0000000 --- a/_next/static/chunks/567-52b253322bfdeb49.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[567],{46601:function(){},89214:function(){},42480:function(){},85568:function(){},69386:function(){},31616:function(){},20131:function(){},16026:function(){},33370:function(){},82012:function(t,e,n){"use strict";n.d(e,{jr:function(){return v},zx:function(){return O},ZP:function(){return b},hp:function(){return x},M5:function(){return y},Rk:function(){return S},Xq:function(){return _},XJ:function(){return m},Bz:function(){return h},ls:function(){return f},Wz:function(){return N},OL:function(){return w},sr:function(){return A},Mj:function(){return C},Dx:function(){return p}});var r=n(3827),a=n(20996),i=n(32283),o=n(8792),l=n(64090),s=n(30298),u=n(77658),d=n(34417);let c=()=>{let t=(0,l.useRef)({}),e=(0,l.useContext)(d._);return t.current.state=e.state,t.current.dispatch=e.dispatch,{core:t.current}};var g=n(97573);let p=t=>{let{children:e,className:n=""}=t;return(0,r.jsx)("div",{className:["typo-title",n].join(" "),children:e})},f=t=>{let{children:e,className:n=""}=t;return(0,r.jsx)("div",{className:["typo-hero",n].join(" "),children:e})},m=t=>{let{children:e,className:n=""}=t;return(0,r.jsx)("div",{className:["heading2",n].join(" "),children:e})},h=t=>{let{children:e,className:n="",color:a="text-typo-150"}=t;return(0,r.jsx)("div",{className:["heading8",a,n].join(" "),children:e})},v=t=>{let{children:e,className:n=""}=t;return(0,r.jsx)("div",{className:["typo-body-medium",n].join(" "),children:e})},w=t=>{let{children:e,href:n}=t;return(0,r.jsx)(o.default,{className:"text-left font-normal leading-[24px] underline",href:n,children:e})},x=t=>{let{className:e,variant:n,...a}=t;return(0,r.jsx)("button",{...a,className:["cursor-pointer rounded-full bg-bg-550 px-[8px] py-[4px] text-white hover:bg-bg-600 disabled:cursor-not-allowed disabled:bg-bg-600 disabled:text-typo-150","danger"===n?"[&]:text-danger":"",e].join(" ")})},b=t=>{let{className:e,variant:n,...a}=t;return(0,r.jsx)("button",{...a,className:["cursor-pointer rounded-full bg-transparent px-[8px] py-[4px] text-white disabled:cursor-not-allowed disabled:bg-bg-600 disabled:text-typo-150","danger"===n?"[&]:text-danger":"",e].join(" ")})},y=t=>{let{textToCopy:e}=t;return(0,r.jsx)("button",{className:"cursor-pointer",dangerouslySetInnerHTML:{__html:u.BR},onClick:()=>{navigator.clipboard.writeText(e),(0,s.Am)("Copied to clipboard",{type:"info"})}})},N=t=>{let{error:e,...n}=t;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] pr-[140px] text-[48px] focus:outline-none",e?"border-danger":"border-white"].join(" ")}),(0,r.jsx)("span",{className:"absolute bottom-0 right-[12px] top-0 flex h-full items-center text-[48px] text-typo-300",children:"XION"})]})},_=t=>{let{children:e}=t;return(0,r.jsx)("div",{className:"text-danger",children:e})},A=t=>(0,r.jsx)("input",{...t,className:"h-[50px] w-full bg-black py-[8px] focus:outline-none",style:{border:"none",borderBottom:"1px solid white"}}),O=t=>{let{className:e,isLoading:n,variant:a,...i}=t;return(0,r.jsx)("button",{...i,className:["w-full rounded-[8px] px-[12px] py-[16px] text-black disabled:cursor-not-allowed","danger"===a?"text-danger disabled:text-typo-150 bg-[#D745061A]":"success"===a?"bg-success text-black disabled:bg-green-400":"bg-white text-black disabled:bg-bg-400",e||""].join(" "),disabled:n||i.disabled,children:n?(0,r.jsx)("span",{className:"flex items-center justify-center",children:(0,r.jsx)("span",{className:"animate-spin",dangerouslySetInnerHTML:{__html:u._m}})}):i.children})},S=t=>{let{children:e,className:n,id:o,modalClass:s,offset:u,placement:d,Trigger:p}=t,[f,m]=(0,l.useState)(null),{core:h}=c(),v=h.state.popupOpenId===o;return(0,r.jsxs)("div",{className:[n].join(" "),children:[(0,r.jsx)("button",{onClick:t=>{t.stopPropagation(),h.dispatch((0,g.h)(o))},ref:m,children:(0,r.jsx)(p,{id:o})}),v&&(0,r.jsx)(a.d,{onClickAway:()=>{v&&h.dispatch((0,g.h)(null))},children:(0,r.jsx)(i.G,{anchor:f,className:[s].join(" "),offset:u,open:v,placement:d,withTransition:!0,children:e})})]})},C=t=>(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"z-5 absolute bottom-[5px] left-0",children:(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:u.yC}})}),(0,r.jsx)("input",{...t,className:"border-b-[1px] border-b-transparent bg-transparent pl-[24px] text-white outline-none hover:border-b-white focus:border-b-white"})]})},97573:function(t,e,n){"use strict";n.d(e,{I:function(){return a},h:function(){return r}});let r=t=>({content:t,type:"SET_POPUP_OPEN_ID"}),a=(t,e)=>"SET_POPUP_OPEN_ID"===e.type?{...t,popupOpenId:e.content}:t},34417:function(t,e,n){"use strict";n.d(e,{W:function(){return a},_:function(){return i}});var r=n(64090);let a={popupOpenId:null},i=(0,r.createContext)({dispatch:()=>null,state:a})},88197:function(t,e,n){"use strict";n.d(e,{wX:function(){return b},VZ:function(){return y},Dr:function(){return O},qp:function(){return A},_5:function(){return N},xu:function(){return _}});var r=n(22840),a=n(71694),i=n(66803);let o=null,l=async t=>o||(o=(await (0,a.C_)()).staking.validators(t).then(t=>(o=null,t))),s={},u=async t=>{let e=s[t];if(e)return e;let n=(await (0,a.C_)()).staking.validator(t).then(e=>(s[t]=void 0,e.validator));return s[t]=n,n},d=null,c=async()=>d||(d=(await (0,a.C_)()).staking.pool().then(t=>(d=null,t.pool))),g=async t=>{let e=await (0,a.N$)();return await e.getBalance(t,"uxion")},p=async t=>{let e=await (0,a.C_)();return await e.staking.delegatorDelegations(t)},f=async t=>{let e=await (0,a.C_)();return await e.staking.delegatorUnbondingDelegations(t)},m=async(t,e)=>{let n=await (0,a.C_)(),o=await n.distribution.delegationRewards(t,e);return(await Promise.all(o.rewards.map(async t=>{if(0==t.denom.indexOf("ibc/")){var e;let r=await n.ibc.transfer.denomTrace(t.denom.substring(4));t.denom=(null===(e=r.denomTrace)||void 0===e?void 0:e.baseDenom)||t.denom}return t}))).filter(t=>{var e;return(null===(e=t.denom)||void 0===e?void 0:e.toUpperCase())==="UXION"}).map(t=>({amount:new r.Z(t.amount).div(new r.Z(10).pow(18)).toString(),denom:t.denom})).map(t=>(0,i.bI)(t))},h=async()=>{let t=await (0,a.C_)(),e=await t.mint.params().catch(()=>null);return(null==e?void 0:e.inflationMax)||.2};var v=n(19807),w=n(62986),x=n(39730);let b=async t=>{try{t.dispatch((0,w.Kv)(!0));let[e,n,r,a,i]=await Promise.all([l("BOND_STATUS_BONDED"),l("BOND_STATUS_UNBONDED"),l("BOND_STATUS_UNBONDING"),h(),c()]);[[e,"bonded"],[n,"unbonded"],[r,"unbonding"]].forEach(e=>{var n,r;let[a,i]=e;t.dispatch((0,w.T2)({items:a.validators,nextKey:(null===(n=a.pagination)||void 0===n?void 0:n.nextKey)||null,total:(null===(r=a.pagination)||void 0===r?void 0:r.total)||null},!0,i))}),t.dispatch((0,w.DD)(i)),t.dispatch((0,w.Km)(a.toString())),t.dispatch((0,w.Kv)(!1))}catch(t){console.error("error fetching staking data:",t)}},y=async(t,e)=>{try{var n,r,a,o;e.dispatch((0,w.Kv)(!0));let[l,s,u]=await Promise.all([g(t),p(t).then(async e=>({items:await Promise.all(e.delegationResponses.map(async e=>({balance:e.balance,rewards:await m(t,e.delegation.validatorAddress).then(t=>(0,i.HJ)(t)),validatorAddress:e.delegation.validatorAddress}))),pagination:e.pagination})),f(t).then(t=>({items:t.unbondingResponses.reduce((t,e)=>(t.push(...e.entries.map(t=>({balance:{amount:t.balance,denom:"uxion"},completionTime:Number(t.completionTime.seconds),completionTimeNanos:t.completionTime.nanos,creationHeight:t.creationHeight,id:t.unbondingId.toString(),validator:e.validatorAddress}))),t),[]),pagination:t.pagination})).catch(()=>({items:[],pagination:null})).then(t=>({items:t.items,pagination:t.pagination}))]);e.dispatch((0,w.d0)(l)),e.dispatch((0,w.Qx)({items:s.items,nextKey:(null===(n=s.pagination)||void 0===n?void 0:n.nextKey)||null,total:(null===(r=s.pagination)||void 0===r?void 0:r.total)||null},!0)),e.dispatch((0,w.Kg)({items:u.items,nextKey:(null===(a=u.pagination)||void 0===a?void 0:a.nextKey)||null,total:(null===(o=u.pagination)||void 0===o?void 0:o.total)||null},!0)),e.dispatch((0,w.Kv)(!1))}catch(t){console.error("error fetching staking data:",t)}},N=async(t,e,n,r,a)=>(await (0,v.H0)(t,r,e,n),async()=>{await y(t.delegator,a)}),_=async(t,e,n,r,a)=>(await (0,v.vZ)(t,r,e,n),async()=>{await y(t.delegator,a)}),A=async(t,e)=>{var n;if((null===(n=e.state.validatorDetails)||void 0===n?void 0:n.operatorAddress)===t)return e.state.validatorDetails;let r=(0,x.mM)(e.state)[t]||await u(t);return e.dispatch((0,w.gT)(r)),r},O=async(t,e)=>{let n=(0,x.mM)(e.state)[t];if(n)return n;let r=await u(t);return e.dispatch((0,w.N7)({[t]:r,...e.state.extraValidators})),r}},80469:function(t,e,n){"use strict";let r;n.d(e,{f:function(){return d},n:function(){return u}});var a=n(75615),i=n(64090),o=n(88197),l=n(62986),s=n(544);let u=()=>{let t=(0,i.useRef)({}),e=(0,i.useContext)(s.Y);t.current.state=e.state,t.current.dispatch=e.dispatch;let{data:n,isConnected:o}=(0,a.hT)(),l=null==n?void 0:n.bech32Address;return{account:n,address:l,client:o?r:void 0,isConnected:o,staking:t.current}},d=()=>{let{client:t}=(0,a.Hj)(),{address:e,isConnected:n,staking:s}=u();r=n?t:void 0,(0,i.useEffect)(()=>{(0,o.wX)(s)},[s]),(0,i.useEffect)(()=>{if(n&&e)return(0,o.VZ)(e,s),()=>{s.dispatch((0,l.kS)())}},[n,e,s])}},62986:function(t,e,n){"use strict";n.d(e,{DD:function(){return u},I6:function(){return v},Kg:function(){return l},Km:function(){return g},Kv:function(){return a},N7:function(){return p},Qx:function(){return o},T2:function(){return i},ZG:function(){return c},d0:function(){return r},gT:function(){return s},kS:function(){return d}});let r=t=>({content:t,type:"SET_TOKENS"}),a=t=>({content:t,type:"SET_IS_INFO_LOADING"}),i=(t,e,n)=>({content:t,reset:e,status:n,type:"ADD_VALIDATORS"}),o=(t,e)=>({content:t,reset:e,type:"ADD_DELEGATIONS"}),l=(t,e)=>({content:t,reset:e,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=>({content:t,type:"SET_INFLATION"}),p=t=>({content:t,type:"SET_EXTRA_VALIDATORS"}),f=t=>{let e=new Set;return t.filter(t=>!e.has(t.operatorAddress)&&(e.add(t.operatorAddress),!0))},m=t=>{let e=new Set;return t.filter(t=>!e.has(t.validatorAddress)&&(e.add(t.validatorAddress),!0))},h=t=>{let e=new Set;return t.filter(t=>{let n=t.id;return!e.has(n)&&(e.add(n),!0)})},v=(t,e)=>{switch(e.type){case"SET_TOKENS":return{...t,tokens:e.content};case"ADD_VALIDATORS":{let n=!e.reset&&t.validators[e.status]||{items:[],nextKey:null,total:null};return n.total=e.content.total,n.nextKey=e.content.nextKey,n.items=f(n.items.concat(e.content.items)),{...t,validators:{...t.validators,[e.status]:n}}}case"ADD_DELEGATIONS":{let n=!e.reset&&t.delegations||{items:[],nextKey:null,total:null};return n.total=e.content.total,n.nextKey=e.content.nextKey,n.items=m(e.content.items.concat(n.items)),{...t,delegations:n}}case"ADD_UNBONDINGS":{let n=!e.reset&&t.unbondings||{items:[],nextKey:null,total:null};return n.total=e.content.total,n.nextKey=e.content.nextKey,n.items=h(e.content.items.concat(n.items)),{...t,unbondings:n}}case"SET_IS_INFO_LOADING":return{...t,isInfoLoading:e.content};case"SET_VALIDATOR_DETAILS":return{...t,validatorDetails:e.content};case"SET_POOL":return{...t,pool:e.content};case"SET_MODAL":return{...t,modal:e.content};case"LOGOUT":return{...t,delegations:null,unbondings:null};case"SET_EXTRA_VALIDATORS":return{...t,extraValidators:e.content};case"SET_INFLATION":return{...t,inflation:e.content};default:return t}}},39730:function(t,e,n){"use strict";n.d(e,{Cn:function(){return l},Sg:function(){return d},U2:function(){return i},ap:function(){return s},jc:function(){return g},jv:function(){return o},mM:function(){return c},zq:function(){return u}});var r=n(22840),a=n(66803);let i=(t,e)=>{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(t=>t.balance);return(0,a.HJ)(r)},o=(t,e)=>{let{unbondings:n}=t;if(!(null==n?void 0:n.items.length))return null;let r=n.items.filter(t=>!e||t.validator===e).map(t=>t.balance);return(0,a.HJ)(r)},l=(t,e)=>{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(t=>t.rewards);return(0,a.HJ)(r)},s=t=>{let{tokens:e}=t;return e?new r.Z((0,a.bI)(e).amount):null},u=(t,e)=>{var n;return!!(null===(n=e.delegations)||void 0===n?void 0:n.items.some(e=>e.validatorAddress===t))},d=(t,e)=>{let{pool:n}=e;return t&&"string"==typeof(null==n?void 0:n.bondedTokens)?new r.Z(t).div(new r.Z(n.bondedTokens)).toNumber():null},c=t=>Object.values(t.validators).map(t=>null==t?void 0:t.items).flat().reduce((t,e)=>e?{...t,[e.operatorAddress]:e}:t,t.extraValidators),g=t=>t.inflation?new r.Z(t.inflation):null},544:function(t,e,n){"use strict";n.d(e,{W:function(){return a},Y:function(){return i}});var r=n(64090);let a={delegations:null,extraValidators:{},inflation:null,isInfoLoading:!1,modal:null,pool:null,tokens:null,unbondings:null,validatorDetails:null,validators:{bonded:null,unbonded:null,unbonding:null}},i=(0,r.createContext)({dispatch:()=>null,state:a})},71694:function(t,e,n){"use strict";let r,a;n.d(e,{C_:function(){return u},N$:function(){return d},v4:function(){return c}});var i=n(18722),o=n(58015),l=n(43890),s=n(9016);let u=()=>(r||(r=(async()=>{let t=await l.Tendermint34Client.connect(s.Od);return o.QueryClient.withExtensions(t,o.setupStakingExtension,o.setupDistributionExtension,o.setupMintExtension,o.setupIbcExtension)})()),r),d=()=>(a||(a=(async()=>await o.StargateClient.connect(s.Od))()),a),c=async t=>{let e=localStorage.getItem("xion-authz-temp-account");if(!e)return;let n=await i.DirectSecp256k1HdWallet.deserialize(e,"abstraxion"),r=await n.getAccounts().then(t=>{var e;return null===(e=t[0])||void 0===e?void 0:e.address});return{client:await o.SigningStargateClient.connectWithSigner(s.Od,n,{registry:t}),granteeAddress:r}}},66803:function(t,e,n){"use strict";n.d(e,{HJ:function(){return d},IB:function(){return i},Jp:function(){return o},UO:function(){return l},bI:function(){return a},bP:function(){return u},kw:function(){return s}});var r=n(22840);let a=t=>{var e,n,a;return(null===(e=t.denom)||void 0===e?void 0:e.toUpperCase())==="UXION"?{amount:new r.Z(t.amount).div(new r.Z(10).pow(6)).toString(),denom:"XION"}:(null===(n=t.denom)||void 0===n?void 0:n.toUpperCase())==="XION"?{amount:t.amount,denom:"XION"}:{...t,denom:null===(a=t.denom)||void 0===a?void 0:a.toUpperCase()}},i=()=>({amount:"0",denom:"XION"}),o=t=>({amount:t.toString(),denom:"XION"}),l=t=>t&&new r.Z(t.amount).gt(0),s=t=>({amount:t.div(new r.Z(10).pow(6)).toString(),denom:"XION"}),u=t=>({amount:t.times(new r.Z(10).pow(6)).toString(),denom:"UXION"}),d=t=>t.reduce((t,e)=>({amount:new r.Z(t.amount).plus(a(e).amount).toString(),denom:t.denom}),i())},9016:function(t,e,n){"use strict";n.d(e,{Ex:function(){return l},Jg:function(){return r},Mx:function(){return u},Od:function(){return i},T$:function(){return a},_H:function(){return d},c1:function(){return s},sb:function(){return o}});let r=!0,a=void 0,i="https://rpc.xion-testnet.forbole.com",o="/xion-staking",l=10,s="".concat(o,"/default-avatar.svg"),u=r?3:21,d=1e-4},77658:function(t,e,n){"use strict";n.d(e,{BR:function(){return a},GI:function(){return s},Sf:function(){return r},_m:function(){return u},cx:function(){return l},gU:function(){return i},kC:function(){return o},yC:function(){return d}});let r='',a='',i='',o='',l='',s='',u='',d=''},19807:function(t,e,n){"use strict";n.d(e,{mu:function(){return b},YY:function(){return w},sj:function(){return x},H0:function(){return h},vZ:function(){return v}});var r=n(22840),a=n(53856),i=n(62884),o=n(66803),l=n(9016),s=n(97481),u=n(71694);let d=async(t,e)=>{let{client:n,granteeAddress:r}=await (0,u.v4)()||{};if(!n||!r)return null;let a=[{typeUrl:"/cosmos.authz.v1beta1.MsgExec",value:s.MsgExec.fromPartial({grantee:r,msgs:t.map(t=>n.registry.encodeAsAny(t))})}];return await n.simulate(r,a,e).then(t=>Math.ceil(2*t).toString()).catch(t=>(console.log("debug: core/base.ts: Estimate error",t),null))},c=async t=>{let{address:e,amount:n=[{amount:"1000",denom:"uxion"}],gasLimit:r="400000",memo:a="",msgs:i}=t;return{amount:n,gas:await d(i,a).catch(()=>null)||r,granter:e}},g=t=>({amount:t.amount,denom:["UXION","XION"].includes(t.denom.toUpperCase())?t.denom.toLowerCase():t.denom}),p=t=>{if("UXION"===t.denom.toUpperCase())return g(t);if("XION"===t.denom.toUpperCase())return g((0,o.bP)(new r.Z(t.amount)));throw Error("Invalid coin denom")},f=t=>e=>{if(console.log("debug: base.ts: result",e),!e.events.find(e=>e.type===t))throw console.error(e),Error("Out of gas");return e},m=t=>{throw console.error(t),t},h=async(t,e,n,r)=>{let a=p(n),o={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:i.MsgDelegate.fromPartial({amount:a,delegatorAddress:t.delegator,validatorAddress:t.validator})},l=await c({address:t.delegator,memo:r,msgs:[o]});return await e.signAndBroadcast(t.delegator,[o],l,r).then(f("delegate")).catch(m)},v=async(t,e,n,r)=>{let a=p(n),o={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:i.MsgUndelegate.fromPartial({amount:a,delegatorAddress:t.delegator,validatorAddress:t.validator})},l=await c({address:t.delegator,memo:r,msgs:[o]});return await e.signAndBroadcast(t.delegator,[o],l,r).then(f("unbond")).catch(m)},w=async(t,e)=>{let n=[{typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:a.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:t.delegator,validatorAddress:t.validator})}],r=await c({address:t.delegator,msgs:n});return await e.signAndBroadcast(t.delegator,n,r).then(f("withdraw_rewards")).catch(m)},x=t=>{let e=(0,o.bI)(t);return new r.Z(e.amount).gte(l._H)},b=async(t,e,n)=>{n.registry.register(i.MsgCancelUnbondingDelegation.typeUrl,i.MsgCancelUnbondingDelegation);let r=[{typeUrl:"/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",value:i.MsgCancelUnbondingDelegation.fromPartial({amount:e.balance,creationHeight:e.creationHeight,delegatorAddress:t.delegator,validatorAddress:t.validator})}],a=await c({address:t.delegator,msgs:r});return await n.signAndBroadcast(t.delegator,r,a,"").then(f("cancel_unbonding_delegation")).catch(m)}}}]); \ No newline at end of file diff --git a/_next/static/chunks/567-759415d61a602f42.js b/_next/static/chunks/567-759415d61a602f42.js new file mode 100644 index 0000000..9a3d7bd --- /dev/null +++ b/_next/static/chunks/567-759415d61a602f42.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[567],{46601:function(){},89214:function(){},42480:function(){},85568:function(){},69386:function(){},31616:function(){},20131:function(){},16026:function(){},33370:function(){},82012:function(t,e,n){"use strict";n.d(e,{jr:function(){return v},zx:function(){return O},ZP:function(){return b},hp:function(){return x},M5:function(){return y},Rk:function(){return S},Xq:function(){return _},XJ:function(){return m},Bz:function(){return h},ls:function(){return f},Wz:function(){return N},OL:function(){return w},sr:function(){return A},Mj:function(){return C},Dx:function(){return p}});var r=n(3827),a=n(20996),i=n(32283),o=n(8792),l=n(64090),s=n(30298),u=n(77658),d=n(34417);let c=()=>{let t=(0,l.useRef)({}),e=(0,l.useContext)(d._);return t.current.state=e.state,t.current.dispatch=e.dispatch,{core:t.current}};var g=n(97573);let p=t=>{let{children:e,className:n=""}=t;return(0,r.jsx)("div",{className:["typo-title",n].join(" "),children:e})},f=t=>{let{children:e,className:n=""}=t;return(0,r.jsx)("div",{className:["typo-hero",n].join(" "),children:e})},m=t=>{let{children:e,className:n=""}=t;return(0,r.jsx)("div",{className:["heading2",n].join(" "),children:e})},h=t=>{let{children:e,className:n="",color:a="text-typo-150"}=t;return(0,r.jsx)("div",{className:["heading8",a,n].join(" "),children:e})},v=t=>{let{children:e,className:n=""}=t;return(0,r.jsx)("div",{className:["typo-body-medium",n].join(" "),children:e})},w=t=>{let{children:e,href:n}=t;return(0,r.jsx)(o.default,{className:"text-left font-normal leading-[24px] underline",href:n,children:e})},x=t=>{let{className:e,variant:n,...a}=t;return(0,r.jsx)("button",{...a,className:["cursor-pointer rounded-full bg-bg-550 px-[8px] py-[4px] text-white hover:bg-bg-600 disabled:cursor-not-allowed disabled:bg-bg-600 disabled:text-typo-150","danger"===n?"[&]:text-danger":"",e].join(" ")})},b=t=>{let{className:e,variant:n,...a}=t;return(0,r.jsx)("button",{...a,className:["cursor-pointer rounded-full bg-transparent px-[8px] py-[4px] text-white disabled:cursor-not-allowed disabled:bg-bg-600 disabled:text-typo-150","danger"===n?"[&]:text-danger":"",e].join(" ")})},y=t=>{let{textToCopy:e}=t;return(0,r.jsx)("button",{className:"cursor-pointer",dangerouslySetInnerHTML:{__html:u.BR},onClick:()=>{navigator.clipboard.writeText(e),(0,s.Am)("Copied to clipboard",{type:"info"})}})},N=t=>{let{error:e,...n}=t;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] pr-[140px] text-[48px] focus:outline-none",e?"border-danger":"border-white"].join(" ")}),(0,r.jsx)("span",{className:"absolute bottom-0 right-[12px] top-0 flex h-full items-center text-[48px] text-typo-300",children:"XION"})]})},_=t=>{let{children:e}=t;return(0,r.jsx)("div",{className:"text-danger",children:e})},A=t=>(0,r.jsx)("input",{...t,className:"h-[50px] w-full bg-black py-[8px] focus:outline-none",style:{border:"none",borderBottom:"1px solid white"}}),O=t=>{let{className:e,isLoading:n,variant:a,...i}=t;return(0,r.jsx)("button",{...i,className:["w-full rounded-[8px] px-[12px] py-[16px] text-black disabled:cursor-not-allowed","danger"===a?"text-danger disabled:text-typo-150 bg-[#D745061A]":"success"===a?"bg-success text-black disabled:bg-green-400":"bg-white text-black disabled:bg-bg-400",e||""].join(" "),disabled:n||i.disabled,children:n?(0,r.jsx)("span",{className:"flex items-center justify-center",children:(0,r.jsx)("span",{className:"animate-spin",dangerouslySetInnerHTML:{__html:u._m}})}):i.children})},S=t=>{let{children:e,className:n,id:o,modalClass:s,offset:u,placement:d,Trigger:p}=t,[f,m]=(0,l.useState)(null),{core:h}=c(),v=h.state.popupOpenId===o;return(0,r.jsxs)("div",{className:[n].join(" "),children:[(0,r.jsx)("button",{onClick:t=>{t.stopPropagation(),h.dispatch((0,g.h)(o))},ref:m,children:(0,r.jsx)(p,{id:o})}),v&&(0,r.jsx)(a.d,{onClickAway:()=>{v&&h.dispatch((0,g.h)(null))},children:(0,r.jsx)(i.G,{anchor:f,className:[s].join(" "),offset:u,open:v,placement:d,withTransition:!0,children:e})})]})},C=t=>(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"z-5 absolute bottom-[5px] left-0",children:(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:u.yC}})}),(0,r.jsx)("input",{...t,className:"border-b-[1px] border-b-transparent bg-transparent pl-[24px] text-white outline-none hover:border-b-white focus:border-b-white"})]})},97573:function(t,e,n){"use strict";n.d(e,{I:function(){return a},h:function(){return r}});let r=t=>({content:t,type:"SET_POPUP_OPEN_ID"}),a=(t,e)=>"SET_POPUP_OPEN_ID"===e.type?{...t,popupOpenId:e.content}:t},34417:function(t,e,n){"use strict";n.d(e,{W:function(){return a},_:function(){return i}});var r=n(64090);let a={popupOpenId:null},i=(0,r.createContext)({dispatch:()=>null,state:a})},88197:function(t,e,n){"use strict";n.d(e,{p4:function(){return _},wX:function(){return b},VZ:function(){return y},Dr:function(){return S},qp:function(){return O},_5:function(){return N},xu:function(){return A}});var r=n(22840),a=n(71694),i=n(66803);let o=null,l=async t=>o||(o=(await (0,a.C_)()).staking.validators(t).then(t=>(o=null,t))),s={},u=async t=>{let e=s[t];if(e)return e;let n=(await (0,a.C_)()).staking.validator(t).then(e=>(s[t]=void 0,e.validator));return s[t]=n,n},d=null,c=async()=>d||(d=(await (0,a.C_)()).staking.pool().then(t=>(d=null,t.pool))),g=async t=>{let e=await (0,a.N$)();return await e.getBalance(t,"uxion")},p=async t=>{let e=await (0,a.C_)();return await e.staking.delegatorDelegations(t)},f=async t=>{let e=await (0,a.C_)();return await e.staking.delegatorUnbondingDelegations(t)},m=async(t,e)=>{let n=await (0,a.C_)(),o=await n.distribution.delegationRewards(t,e);return(await Promise.all(o.rewards.map(async t=>{if(0==t.denom.indexOf("ibc/")){var e;let r=await n.ibc.transfer.denomTrace(t.denom.substring(4));t.denom=(null===(e=r.denomTrace)||void 0===e?void 0:e.baseDenom)||t.denom}return t}))).filter(t=>{var e;return(null===(e=t.denom)||void 0===e?void 0:e.toUpperCase())==="UXION"}).map(t=>({amount:new r.Z(t.amount).div(new r.Z(10).pow(18)).toString(),denom:t.denom})).map(t=>(0,i.bI)(t))},h=async()=>{let t=await (0,a.C_)(),e=await t.mint.params().catch(()=>null);return(null==e?void 0:e.inflationMax)||.2};var v=n(19807),w=n(62986),x=n(39730);let b=async t=>{try{t.dispatch((0,w.Kv)(!0));let[e,n,r,a,i]=await Promise.all([l("BOND_STATUS_BONDED"),l("BOND_STATUS_UNBONDED"),l("BOND_STATUS_UNBONDING"),h(),c()]);[[e,"bonded"],[n,"unbonded"],[r,"unbonding"]].forEach(e=>{var n,r;let[a,i]=e;t.dispatch((0,w.T2)({items:a.validators,nextKey:(null===(n=a.pagination)||void 0===n?void 0:n.nextKey)||null,total:(null===(r=a.pagination)||void 0===r?void 0:r.total)||null},!0,i))}),t.dispatch((0,w.DD)(i)),t.dispatch((0,w.Km)(a.toString())),t.dispatch((0,w.Kv)(!1))}catch(t){console.error("error fetching staking data:",t)}},y=async(t,e)=>{try{var n,r,a,o;e.dispatch((0,w.Kv)(!0));let[l,s,u]=await Promise.all([g(t),p(t).then(async e=>({items:await Promise.all(e.delegationResponses.map(async e=>({balance:e.balance,rewards:await m(t,e.delegation.validatorAddress).then(t=>(0,i.HJ)(t)),validatorAddress:e.delegation.validatorAddress}))),pagination:e.pagination})),f(t).then(t=>({items:t.unbondingResponses.reduce((t,e)=>(t.push(...e.entries.map(t=>({balance:{amount:t.balance,denom:"uxion"},completionTime:Number(t.completionTime.seconds),completionTimeNanos:t.completionTime.nanos,creationHeight:t.creationHeight,id:t.unbondingId.toString(),validator:e.validatorAddress}))),t),[]),pagination:t.pagination})).catch(()=>({items:[],pagination:null})).then(t=>({items:t.items,pagination:t.pagination}))]);e.dispatch((0,w.d0)(l)),e.dispatch((0,w.Qx)({items:s.items,nextKey:(null===(n=s.pagination)||void 0===n?void 0:n.nextKey)||null,total:(null===(r=s.pagination)||void 0===r?void 0:r.total)||null},!0)),e.dispatch((0,w.Kg)({items:u.items,nextKey:(null===(a=u.pagination)||void 0===a?void 0:a.nextKey)||null,total:(null===(o=u.pagination)||void 0===o?void 0:o.total)||null},!0)),e.dispatch((0,w.Kv)(!1))}catch(t){console.error("error fetching staking data:",t)}},N=async(t,e,n,r,a)=>(await (0,v.H0)(t,r,e,n),async()=>{await y(t.delegator,a)}),_=async(t,e,n,r)=>(await (0,v.mu)(t,e,n),async()=>{await y(t.delegator,r)}),A=async(t,e,n,r,a)=>(await (0,v.vZ)(t,r,e,n),async()=>{await y(t.delegator,a)}),O=async(t,e)=>{var n;if((null===(n=e.state.validatorDetails)||void 0===n?void 0:n.operatorAddress)===t)return e.state.validatorDetails;let r=(0,x.mM)(e.state)[t]||await u(t);return e.dispatch((0,w.gT)(r)),r},S=async(t,e)=>{let n=(0,x.mM)(e.state)[t];if(n)return n;let r=await u(t);return e.dispatch((0,w.N7)({[t]:r,...e.state.extraValidators})),r}},80469:function(t,e,n){"use strict";let r;n.d(e,{f:function(){return d},n:function(){return u}});var a=n(75615),i=n(64090),o=n(88197),l=n(62986),s=n(544);let u=()=>{let t=(0,i.useRef)({}),e=(0,i.useContext)(s.Y);t.current.state=e.state,t.current.dispatch=e.dispatch;let{data:n,isConnected:o}=(0,a.hT)(),l=null==n?void 0:n.bech32Address;return{account:n,address:l,client:o?r:void 0,isConnected:o,staking:t.current}},d=()=>{let{client:t}=(0,a.Hj)(),{address:e,isConnected:n,staking:s}=u();r=n?t:void 0,(0,i.useEffect)(()=>{(0,o.wX)(s)},[s]),(0,i.useEffect)(()=>{if(n&&e)return(0,o.VZ)(e,s),()=>{s.dispatch((0,l.kS)())}},[n,e,s])}},62986:function(t,e,n){"use strict";n.d(e,{DD:function(){return u},I6:function(){return v},Kg:function(){return l},Km:function(){return g},Kv:function(){return a},N7:function(){return p},Qx:function(){return o},T2:function(){return i},ZG:function(){return c},d0:function(){return r},gT:function(){return s},kS:function(){return d}});let r=t=>({content:t,type:"SET_TOKENS"}),a=t=>({content:t,type:"SET_IS_INFO_LOADING"}),i=(t,e,n)=>({content:t,reset:e,status:n,type:"ADD_VALIDATORS"}),o=(t,e)=>({content:t,reset:e,type:"ADD_DELEGATIONS"}),l=(t,e)=>({content:t,reset:e,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=>({content:t,type:"SET_INFLATION"}),p=t=>({content:t,type:"SET_EXTRA_VALIDATORS"}),f=t=>{let e=new Set;return t.filter(t=>!e.has(t.operatorAddress)&&(e.add(t.operatorAddress),!0))},m=t=>{let e=new Set;return t.filter(t=>!e.has(t.validatorAddress)&&(e.add(t.validatorAddress),!0))},h=t=>{let e=new Set;return t.filter(t=>{let n=t.id;return!e.has(n)&&(e.add(n),!0)})},v=(t,e)=>{switch(e.type){case"SET_TOKENS":return{...t,tokens:e.content};case"ADD_VALIDATORS":{let n=!e.reset&&t.validators[e.status]||{items:[],nextKey:null,total:null};return n.total=e.content.total,n.nextKey=e.content.nextKey,n.items=f(n.items.concat(e.content.items)),{...t,validators:{...t.validators,[e.status]:n}}}case"ADD_DELEGATIONS":{let n=!e.reset&&t.delegations||{items:[],nextKey:null,total:null};return n.total=e.content.total,n.nextKey=e.content.nextKey,n.items=m(e.content.items.concat(n.items)),{...t,delegations:n}}case"ADD_UNBONDINGS":{let n=!e.reset&&t.unbondings||{items:[],nextKey:null,total:null};return n.total=e.content.total,n.nextKey=e.content.nextKey,n.items=h(e.content.items.concat(n.items)),{...t,unbondings:n}}case"SET_IS_INFO_LOADING":return{...t,isInfoLoading:e.content};case"SET_VALIDATOR_DETAILS":return{...t,validatorDetails:e.content};case"SET_POOL":return{...t,pool:e.content};case"SET_MODAL":return{...t,modal:e.content};case"LOGOUT":return{...t,delegations:null,unbondings:null};case"SET_EXTRA_VALIDATORS":return{...t,extraValidators:e.content};case"SET_INFLATION":return{...t,inflation:e.content};default:return t}}},39730:function(t,e,n){"use strict";n.d(e,{Cn:function(){return l},Sg:function(){return d},U2:function(){return i},ap:function(){return s},jc:function(){return g},jv:function(){return o},mM:function(){return c},zq:function(){return u}});var r=n(22840),a=n(66803);let i=(t,e)=>{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(t=>t.balance);return(0,a.HJ)(r)},o=(t,e)=>{let{unbondings:n}=t;if(!(null==n?void 0:n.items.length))return null;let r=n.items.filter(t=>!e||t.validator===e).map(t=>t.balance);return(0,a.HJ)(r)},l=(t,e)=>{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(t=>t.rewards);return(0,a.HJ)(r)},s=t=>{let{tokens:e}=t;return e?new r.Z((0,a.bI)(e).amount):null},u=(t,e)=>{var n;return!!(null===(n=e.delegations)||void 0===n?void 0:n.items.some(e=>e.validatorAddress===t))},d=(t,e)=>{let{pool:n}=e;return t&&"string"==typeof(null==n?void 0:n.bondedTokens)?new r.Z(t).div(new r.Z(n.bondedTokens)).toNumber():null},c=t=>Object.values(t.validators).map(t=>null==t?void 0:t.items).flat().reduce((t,e)=>e?{...t,[e.operatorAddress]:e}:t,t.extraValidators),g=t=>t.inflation?new r.Z(t.inflation):null},544:function(t,e,n){"use strict";n.d(e,{W:function(){return a},Y:function(){return i}});var r=n(64090);let a={delegations:null,extraValidators:{},inflation:null,isInfoLoading:!1,modal:null,pool:null,tokens:null,unbondings:null,validatorDetails:null,validators:{bonded:null,unbonded:null,unbonding:null}},i=(0,r.createContext)({dispatch:()=>null,state:a})},71694:function(t,e,n){"use strict";let r,a;n.d(e,{C_:function(){return u},N$:function(){return d},v4:function(){return c}});var i=n(18722),o=n(58015),l=n(43890),s=n(9016);let u=()=>(r||(r=(async()=>{let t=await l.Tendermint34Client.connect(s.Od);return o.QueryClient.withExtensions(t,o.setupStakingExtension,o.setupDistributionExtension,o.setupMintExtension,o.setupIbcExtension)})()),r),d=()=>(a||(a=(async()=>await o.StargateClient.connect(s.Od))()),a),c=async t=>{let e=localStorage.getItem("xion-authz-temp-account");if(!e)return;let n=await i.DirectSecp256k1HdWallet.deserialize(e,"abstraxion"),r=await n.getAccounts().then(t=>{var e;return null===(e=t[0])||void 0===e?void 0:e.address});return{client:await o.SigningStargateClient.connectWithSigner(s.Od,n,{registry:t}),granteeAddress:r}}},66803:function(t,e,n){"use strict";n.d(e,{HJ:function(){return d},IB:function(){return i},Jp:function(){return o},UO:function(){return l},bI:function(){return a},bP:function(){return u},kw:function(){return s}});var r=n(22840);let a=t=>{var e,n,a;return(null===(e=t.denom)||void 0===e?void 0:e.toUpperCase())==="UXION"?{amount:new r.Z(t.amount).div(new r.Z(10).pow(6)).toString(),denom:"XION"}:(null===(n=t.denom)||void 0===n?void 0:n.toUpperCase())==="XION"?{amount:t.amount,denom:"XION"}:{...t,denom:null===(a=t.denom)||void 0===a?void 0:a.toUpperCase()}},i=()=>({amount:"0",denom:"XION"}),o=t=>({amount:t.toString(),denom:"XION"}),l=t=>t&&new r.Z(t.amount).gt(0),s=t=>({amount:t.div(new r.Z(10).pow(6)).toString(),denom:"XION"}),u=t=>({amount:t.times(new r.Z(10).pow(6)).toString(),denom:"UXION"}),d=t=>t.reduce((t,e)=>({amount:new r.Z(t.amount).plus(a(e).amount).toString(),denom:t.denom}),i())},9016:function(t,e,n){"use strict";n.d(e,{Ex:function(){return l},Jg:function(){return r},Mx:function(){return u},Od:function(){return i},T$:function(){return a},_H:function(){return d},c1:function(){return s},sb:function(){return o}});let r=!0,a=void 0,i="https://rpc.xion-testnet.forbole.com",o="/xion-staking",l=10,s="".concat(o,"/default-avatar.svg"),u=r?3:21,d=1e-4},77658:function(t,e,n){"use strict";n.d(e,{BR:function(){return a},GI:function(){return s},Sf:function(){return r},_m:function(){return u},cx:function(){return l},gU:function(){return i},kC:function(){return o},yC:function(){return d}});let r='',a='',i='',o='',l='',s='',u='',d=''},19807:function(t,e,n){"use strict";n.d(e,{mu:function(){return b},YY:function(){return w},sj:function(){return x},H0:function(){return h},vZ:function(){return v}});var r=n(22840),a=n(53856),i=n(62884),o=n(66803),l=n(9016),s=n(97481),u=n(71694);let d=async(t,e)=>{let{client:n,granteeAddress:r}=await (0,u.v4)()||{};if(!n||!r)return null;let a=[{typeUrl:"/cosmos.authz.v1beta1.MsgExec",value:s.MsgExec.fromPartial({grantee:r,msgs:t.map(t=>n.registry.encodeAsAny(t))})}];return await n.simulate(r,a,e).then(t=>Math.ceil(2*t).toString()).catch(t=>(console.log("debug: core/base.ts: Estimate error",t),null))},c=async t=>{let{address:e,amount:n=[{amount:"1000",denom:"uxion"}],gasLimit:r="400000",memo:a="",msgs:i}=t;return{amount:n,gas:await d(i,a).catch(()=>null)||r,granter:e}},g=t=>({amount:t.amount,denom:["UXION","XION"].includes(t.denom.toUpperCase())?t.denom.toLowerCase():t.denom}),p=t=>{if("UXION"===t.denom.toUpperCase())return g(t);if("XION"===t.denom.toUpperCase())return g((0,o.bP)(new r.Z(t.amount)));throw Error("Invalid coin denom")},f=t=>e=>{if(console.log("debug: base.ts: result",e),!e.events.find(e=>e.type===t))throw console.error(e),Error("Out of gas");return e},m=t=>{throw console.error(t),t},h=async(t,e,n,r)=>{let a=p(n),o={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:i.MsgDelegate.fromPartial({amount:a,delegatorAddress:t.delegator,validatorAddress:t.validator})},l=await c({address:t.delegator,memo:r,msgs:[o]});return await e.signAndBroadcast(t.delegator,[o],l,r).then(f("delegate")).catch(m)},v=async(t,e,n,r)=>{let a=p(n),o={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:i.MsgUndelegate.fromPartial({amount:a,delegatorAddress:t.delegator,validatorAddress:t.validator})},l=await c({address:t.delegator,memo:r,msgs:[o]});return await e.signAndBroadcast(t.delegator,[o],l,r).then(f("unbond")).catch(m)},w=async(t,e)=>{let n=[{typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:a.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:t.delegator,validatorAddress:t.validator})}],r=await c({address:t.delegator,msgs:n});return await e.signAndBroadcast(t.delegator,n,r).then(f("withdraw_rewards")).catch(m)},x=t=>{let e=(0,o.bI)(t);return new r.Z(e.amount).gte(l._H)},b=async(t,e,n)=>{n.registry.register(i.MsgCancelUnbondingDelegation.typeUrl,i.MsgCancelUnbondingDelegation);let r=[{typeUrl:"/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",value:i.MsgCancelUnbondingDelegation.fromPartial({amount:e.balance,creationHeight:e.creationHeight,delegatorAddress:t.delegator,validatorAddress:t.validator})}],a=await c({address:t.delegator,msgs:r});return await n.signAndBroadcast(t.delegator,r,a,"").then(f("cancel_unbonding_delegation")).catch(m)}}}]); \ No newline at end of file diff --git a/_next/static/chunks/app/layout-3869892885b7981f.js b/_next/static/chunks/app/layout-17799167bdabcbab.js similarity index 100% rename from _next/static/chunks/app/layout-3869892885b7981f.js rename to _next/static/chunks/app/layout-17799167bdabcbab.js diff --git a/_next/static/chunks/app/page-11070a3e09ad0e6d.js b/_next/static/chunks/app/page-11070a3e09ad0e6d.js new file mode 100644 index 0000000..becb1f2 --- /dev/null +++ b/_next/static/chunks/app/page-11070a3e09ad0e6d.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 I}});var i=t(3827),n=t(64090),r=t(82012),l=t(80469),a=t(62948),c=t(37275),d=t(75615),o=t(62986),x=t(39730),m=t(66803),u=t(9016),h=t(19807),j=t(67497),p=t(42498);let g="absolute bottom-[24px] right-[10px] top-[24px]",v="relative flex h-full flex-col items-start gap-3 p-[24px]";var f=(0,n.memo)(()=>{let{isConnected:e}=(0,d.hT)(),{staking:s}=(0,l.n)(),[,t]=(0,d.dd)();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(u.sb,"/overview-bg.png)"),borderRadius:24},children:[(0,i.jsx)(r.ls,{children:"Please Log In To View"}),(0,i.jsx)("div",{children:(0,i.jsx)(r.zx,{className:"min-w-[150px]",onClick:()=>{t(!0)},children:"Log In"})})]});let n=(0,x.U2)(s.state,null)||(0,m.IB)(),a=(0,x.Cn)(null,s.state)||(0,m.IB)(),c=(0,x.jc)(s.state),f=s.state.tokens||(0,m.IB)();return(0,i.jsxs)("div",{className:"grid min-h-[144px] flex-col items-center justify-center gap-[32px]",style:{backgroundImage:"url(".concat(u.sb,"/overview-bg.png)"),borderRadius:24,gridTemplateColumns:"1fr 1fr 1fr 1fr"},children:[(0,i.jsxs)("div",{className:v,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,j.H_)(a)}),(0,h.sj)(a)&&(0,i.jsx)(r.hp,{onClick:()=>{var e;s.dispatch((0,o.ZG)({content:{delegations:(null===(e=s.state.delegations)||void 0===e?void 0:e.items)||[]},type:"rewards"}))},children:"Claim"})]}),(0,i.jsx)(r.jr,{children:(0,j.Em)(a)}),(0,i.jsx)("div",{className:g,children:(0,i.jsx)(p.i,{})})]}),(0,i.jsxs)("div",{className:v,children:[(0,i.jsx)(r.Bz,{children:"APR"}),(0,i.jsx)(r.XJ,{children:(0,j.PV)(c)}),(0,i.jsx)("div",{className:g,children:(0,i.jsx)(p.i,{})})]}),(0,i.jsxs)("div",{className:v,children:[(0,i.jsx)(r.Bz,{children:"Delegated Amount"}),(0,i.jsx)(r.XJ,{children:(0,j.H_)(n)}),(0,i.jsx)(r.jr,{children:(0,j.Em)(n)}),(0,i.jsx)("div",{className:g,children:(0,i.jsx)(p.i,{})})]}),(0,i.jsxs)("div",{className:v,children:[(0,i.jsx)(r.Bz,{children:"Available For Delegation"}),(0,i.jsx)(r.XJ,{children:(0,j.H_)(f)}),(0,i.jsx)(r.jr,{children:(0,j.Em)(f)})]})]})}),N=t(22840),w=t(20534),b=t(143),k=t(80148),S=t(89056),y=t(26605),B=t(48074);let C={gap:"16px",gridTemplateColumns:"60px 1.5fr repeat(3, 1fr) 80px 80px"},D=e=>{let{disabled:s,onStake:t,staking:n,validator:l}=e,{identity:a}=l.description,c=(0,S.P)(a),d=(0,x.Sg)(null==l?void 0:l.tokens,n.state),o=(0,j.gg)(d);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:C,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:l.description.moniker}),(0,i.jsx)(y.Z,{address:l.operatorAddress})]}),(0,i.jsx)("div",{className:"flex min-w-max flex-col items-center justify-center",children:(0,x.zq)(l.operatorAddress,n.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.Z,{text:(0,j.Em)((0,m.kw)(new N.Z(l.tokens)),!0)})}),(0,i.jsx)("div",{className:"text-right",children:(0,j.i)(l.commission.commissionRates.rate,2)}),d&&(0,i.jsx)("div",{className:"text-right",children:o}),(0,i.jsx)("div",{className:"text-right",children:(0,i.jsx)(r.OL,{href:"/validator?address=".concat(l.operatorAddress),children:"Details"})}),t&&(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)"}})]})},_=b.N;var A=(0,n.memo)(()=>{var e,s,t;let{isConnected:a,staking:c}=(0,l.n)(),[d,m]=(0,n.useState)("none"),[u,h]=(0,n.useState)("active"),[j,p]=(0,n.useState)(""),{validators:g}=c.state,v=(null===(e=g.bonded)||void 0===e?void 0:e.items)||[],f=((null===(s=g.unbonded)||void 0===s?void 0:s.items)||[]).concat((null===(t=g.unbonding)||void 0===t?void 0:t.items)||[]),b=("active"===u?v:f).filter("active"===u?e=>e.status===w.BondStatus.BOND_STATUS_BONDED:e=>e.status===(w.BondStatus.BOND_STATUS_UNBONDED||w.BondStatus.BOND_STATUS_UNBONDING)).slice().sort((e,s)=>{if("none"===d)return 0;if(["voting-power-asc","voting-power-desc"].includes(d)){let t=(0,x.Sg)(e.tokens,c.state),i=(0,x.Sg)(s.tokens,c.state);return(0,k.B)(t,i,"voting-power-asc"===d)}if(["commission-asc","commission-desc"].includes(d)){let t=parseFloat(e.commission.commissionRates.rate),i=parseFloat(s.commission.commissionRates.rate);return(0,k.B)(t,i,"commission-asc"===d)}if(["name-asc","name-desc"].includes(d)){let t=e.description.moniker.toLowerCase(),i=s.description.moniker.toLowerCase();return(0,k.B)(t,i,"name-asc"===d)}if(["staked-asc","staked-desc"].includes(d)){let t=new N.Z(e.tokens),i=new N.Z(s.tokens);return(0,k.B)(t,i,"staked-asc"===d)}return 0}).filter(e=>{if(!j)return!0;let s=e.description.moniker.toLowerCase(),t=e.operatorAddress.toLowerCase();return s.includes(j.toLowerCase())||t.includes(j.toLowerCase())});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"grid grid-cols-3",children:[(0,i.jsxs)("div",{className:"flex w-full flex-row justify-start gap-[16px]",children:[(0,i.jsx)(r.Dx,{children:"Validators"}),(0,i.jsx)(r.Mj,{onChange:e=>p(e.target.value),value:j})]}),(0,i.jsxs)("div",{className:"flex flex-row items-center justify-center gap-[40px]",children:[(0,i.jsxs)("button",{onClick:()=>{h("active")},children:["Active (",v.length,")"]}),(0,i.jsxs)("button",{onClick:()=>{h("inactive")},children:["Inactive (",f.length,")"]})]})]}),(0,i.jsxs)("div",{className:"min-h-[100px] 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:C,children:[(0,i.jsx)("div",{}),(0,i.jsx)(_,{onSort:m,sort:d,sorting:["name-asc","name-desc"],children:"Validator"}),(0,i.jsx)(_,{onSort:m,sort:d,sorting:["staked-asc","staked-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,i.jsx)(_,{onSort:m,sort:d,sorting:["commission-asc","commission-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Commission"})}),(0,i.jsx)(_,{onSort:m,sort:d,sorting:["voting-power-asc","voting-power-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Voting Power"})})]}),b.map(e=>(0,i.jsx)(D,{disabled:!a,onStake:"active"===u?()=>{c.dispatch((0,o.ZG)({content:{validator:e},type:"delegate"}))}:null,staking:c,validator:e},e.operatorAddress))]})]})}),I=(0,n.memo)(function(){let{staking:e}=(0,l.n)(),[s,t]=(0,n.useState)(!1),d=(0,a.S6)(e.state);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"page-container flex flex-col gap-6 px-[24px] pb-[24px]",children:[(0,i.jsxs)("div",{className:"mt-[40px] flex flex-row justify-between text-left",children:[(0,i.jsx)(r.Dx,{children:"Your Staking Overview"}),d&&(0,i.jsx)(a.sv,{isShowingDetails:s,setIsShowingDetails:t})]}),(0,i.jsx)(f,{}),s&&d&&(0,i.jsx)(a.ZP,{}),(0,i.jsx)(A,{})]}),(0,i.jsx)(c.Z,{})]})})}},function(e){e.O(0,[350,218,147,228,933,4,245,567,495,971,69,744],function(){return e(e.s=67617)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/page-1bfffe88fc8fe4b3.js b/_next/static/chunks/app/page-1bfffe88fc8fe4b3.js deleted file mode 100644 index 7c6fe76..0000000 --- a/_next/static/chunks/app/page-1bfffe88fc8fe4b3.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,64350))},64350:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return I}});var i=t(3827),n=t(64090),r=t(82012),a=t(80469),l=t(62948),c=t(71860),d=t(75615),o=t(62986),x=t(39730),m=t(66803),u=t(9016),j=t(19807),h=t(67497),p=t(42498);let g="absolute bottom-[24px] right-[10px] top-[24px]",v="relative flex h-full flex-col items-start gap-3 p-[24px]";var f=(0,n.memo)(()=>{let{isConnected:e}=(0,d.hT)(),{staking:s}=(0,a.n)(),[,t]=(0,d.dd)();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(u.sb,"/overview-bg.png)"),borderRadius:24},children:[(0,i.jsx)(r.ls,{children:"Please Log In To View"}),(0,i.jsx)("div",{children:(0,i.jsx)(r.zx,{className:"min-w-[150px]",onClick:()=>{t(!0)},children:"Log In"})})]});let n=(0,x.U2)(s.state,null)||(0,m.IB)(),l=(0,x.Cn)(null,s.state)||(0,m.IB)(),c=(0,x.jc)(s.state),f=s.state.tokens||(0,m.IB)();return(0,i.jsxs)("div",{className:"grid min-h-[144px] flex-col items-center justify-center gap-[32px]",style:{backgroundImage:"url(".concat(u.sb,"/overview-bg.png)"),borderRadius:24,gridTemplateColumns:"1fr 1fr 1fr 1fr"},children:[(0,i.jsxs)("div",{className:v,children:[(0,i.jsx)(r.Bz,{children:"Claimable Rewards"}),(0,i.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,i.jsx)(r.XJ,{children:(0,h.H_)(l)}),(0,j.sj)(l)&&(0,i.jsx)(r.hp,{onClick:()=>{var e;s.dispatch((0,o.ZG)({content:{delegations:(null===(e=s.state.delegations)||void 0===e?void 0:e.items)||[]},type:"rewards"}))},children:"Claim"})]}),(0,i.jsx)(r.jr,{children:(0,h.Em)(l)}),(0,i.jsx)("div",{className:g,children:(0,i.jsx)(p.i,{})})]}),(0,i.jsxs)("div",{className:v,children:[(0,i.jsx)(r.Bz,{children:"APR"}),(0,i.jsx)(r.XJ,{children:(0,h.PV)(c)}),(0,i.jsx)("div",{className:g,children:(0,i.jsx)(p.i,{})})]}),(0,i.jsxs)("div",{className:v,children:[(0,i.jsx)(r.Bz,{children:"Delegated Amount"}),(0,i.jsx)(r.XJ,{children:(0,h.H_)(n)}),(0,i.jsx)(r.jr,{children:(0,h.Em)(n)}),(0,i.jsx)("div",{className:g,children:(0,i.jsx)(p.i,{})})]}),(0,i.jsxs)("div",{className:v,children:[(0,i.jsx)(r.Bz,{children:"Available For Delegation"}),(0,i.jsx)(r.XJ,{children:(0,h.H_)(f)}),(0,i.jsx)(r.jr,{children:(0,h.Em)(f)})]})]})}),N=t(22840),w=t(20534),b=t(143),k=t(80148),S=t(89056),y=t(26605),B=t(48074);let C={gap:"16px",gridTemplateColumns:"60px 1.5fr repeat(3, 1fr) 80px 80px"},D=e=>{let{disabled:s,onStake:t,staking:n,validator:a}=e,{identity:l}=a.description,c=(0,S.P)(l),d=(0,x.Sg)(null==a?void 0:a.tokens,n.state),o=(0,h.gg)(d);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:C,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:a.description.moniker}),(0,i.jsx)(y.Z,{address:a.operatorAddress})]}),(0,i.jsx)("div",{className:"flex min-w-max flex-col items-center justify-center",children:(0,x.zq)(a.operatorAddress,n.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.Z,{text:(0,h.Em)((0,m.kw)(new N.Z(a.tokens)),!0)})}),(0,i.jsx)("div",{className:"text-right",children:(0,h.i)(a.commission.commissionRates.rate,2)}),d&&(0,i.jsx)("div",{className:"text-right",children:o}),(0,i.jsx)("div",{className:"text-right",children:(0,i.jsx)(r.OL,{href:"/validator?address=".concat(a.operatorAddress),children:"Details"})}),t&&(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)"}})]})},_=b.N;var A=(0,n.memo)(()=>{var e,s,t;let{isConnected:l,staking:c}=(0,a.n)(),[d,m]=(0,n.useState)("none"),[u,j]=(0,n.useState)("active"),[h,p]=(0,n.useState)(""),{validators:g}=c.state,v=("active"===u?(null===(e=g.bonded)||void 0===e?void 0:e.items)||[]:((null===(s=g.unbonded)||void 0===s?void 0:s.items)||[]).concat((null===(t=g.unbonding)||void 0===t?void 0:t.items)||[])).filter("active"===u?e=>e.status===w.BondStatus.BOND_STATUS_BONDED:e=>e.status===(w.BondStatus.BOND_STATUS_UNBONDED||w.BondStatus.BOND_STATUS_UNBONDING)).slice().sort((e,s)=>{if("none"===d)return 0;if(["voting-power-asc","voting-power-desc"].includes(d)){let t=(0,x.Sg)(e.tokens,c.state),i=(0,x.Sg)(s.tokens,c.state);return(0,k.B)(t,i,"voting-power-asc"===d)}if(["commission-asc","commission-desc"].includes(d)){let t=parseFloat(e.commission.commissionRates.rate),i=parseFloat(s.commission.commissionRates.rate);return(0,k.B)(t,i,"commission-asc"===d)}if(["name-asc","name-desc"].includes(d)){let t=e.description.moniker.toLowerCase(),i=s.description.moniker.toLowerCase();return(0,k.B)(t,i,"name-asc"===d)}if(["staked-asc","staked-desc"].includes(d)){let t=new N.Z(e.tokens),i=new N.Z(s.tokens);return(0,k.B)(t,i,"staked-asc"===d)}return 0}).filter(e=>{if(!h)return!0;let s=e.description.moniker.toLowerCase(),t=e.operatorAddress.toLowerCase();return s.includes(h.toLowerCase())||t.includes(h.toLowerCase())});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"grid grid-cols-3",children:[(0,i.jsxs)("div",{className:"flex w-full flex-row justify-start gap-[16px]",children:[(0,i.jsx)(r.Dx,{children:"Validators"}),(0,i.jsx)(r.Mj,{onChange:e=>p(e.target.value),value:h})]}),(0,i.jsxs)("div",{className:"flex flex-row items-center justify-center gap-[40px]",children:[(0,i.jsx)("button",{onClick:()=>{j("active")},children:"Active"}),(0,i.jsx)("button",{onClick:()=>{j("inactive")},children:"Inactive"})]})]}),(0,i.jsxs)("div",{className:"min-h-[100px] 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:C,children:[(0,i.jsx)("div",{}),(0,i.jsx)(_,{onSort:m,sort:d,sorting:["name-asc","name-desc"],children:"Validator"}),(0,i.jsx)(_,{onSort:m,sort:d,sorting:["staked-asc","staked-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,i.jsx)(_,{onSort:m,sort:d,sorting:["commission-asc","commission-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Commission"})}),(0,i.jsx)(_,{onSort:m,sort:d,sorting:["voting-power-asc","voting-power-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Voting Power"})})]}),v.map(e=>(0,i.jsx)(D,{disabled:!l,onStake:"active"===u?()=>{c.dispatch((0,o.ZG)({content:{validator:e},type:"delegate"}))}:null,staking:c,validator:e},e.operatorAddress))]})]})}),I=(0,n.memo)(function(){let{staking:e}=(0,a.n)(),[s,t]=(0,n.useState)(!1),d=(0,l.S6)(e.state);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"page-container flex flex-col gap-6 px-[24px] pb-[24px]",children:[(0,i.jsxs)("div",{className:"mt-[40px] flex flex-row justify-between text-left",children:[(0,i.jsx)(r.Dx,{children:"Your Staking Overview"}),d&&(0,i.jsx)(l.sv,{isShowingDetails:s,setIsShowingDetails:t})]}),(0,i.jsx)(f,{}),s&&d&&(0,i.jsx)(l.ZP,{}),(0,i.jsx)(A,{})]}),(0,i.jsx)(c.Z,{})]})})}},function(e){e.O(0,[350,218,147,228,933,4,245,567,503,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-ee9dd284c1466810.js b/_next/static/chunks/app/validator/page-132c807459b7f82d.js similarity index 98% rename from _next/static/chunks/app/validator/page-ee9dd284c1466810.js rename to _next/static/chunks/app/validator/page-132c807459b7f82d.js index 1ff1f54..c6d5781 100644 --- a/_next/static/chunks/app/validator/page-ee9dd284c1466810.js +++ b/_next/static/chunks/app/validator/page-132c807459b7f82d.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[276],{90858:function(e,s,i){Promise.resolve().then(i.bind(i,66355))},66355:function(e,s,i){"use strict";i.r(s),i.d(s,{default:function(){return z}});var l=i(3827),t=i(59115),a=i(22840),n=i(20534),d=i(8792),c=i(15313),r=i(64090),x=i(82012),o=i(88197),h=i(80469),m=i(62986),p=i(39730),j=i(89056),v=i(66803),u=i(9016),g=i(67497),N=i(42498),b=i(71860),f=i(75615),w=i(62948);function k(){let e=(0,c.useSearchParams)().get("address"),s=(0,h.n)(),[,i]=(0,f.dd)(),[t,n]=(0,r.useState)(!1),{isConnected:d,staking:j}=s,[u,b]=(0,r.useState)(null);if((0,r.useEffect)(()=>{(async()=>{e&&b(await (0,o.qp)(e,j))})()},[e,j]),!u)return(0,l.jsx)("div",{children:"Loading ..."});let k=(0,p.ap)(j.state),z=(0,p.U2)(j.state,null),B=(0,p.jv)(j.state,null),S=(0,p.Cn)(u.operatorAddress,j.state),y=(0,w.S6)(j.state),C=d?(0,l.jsxs)("div",{className:"grid grid-cols-4 rounded-[24px] bg-bg-600 p-[24px]",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(x.Bz,{children:"Claimable Rewards"}),(0,l.jsxs)("div",{className:"mb-[8px] mt-[12px] flex flex-row items-center gap-[8px]",children:[(0,l.jsx)(x.XJ,{children:(0,g.H_)(S)}),S&&(null==S?void 0:S.amount)!=="0"&&(0,l.jsx)(x.hp,{onClick:()=>{var e;j.dispatch((0,m.ZG)({content:{delegations:(null===(e=j.state.delegations)||void 0===e?void 0:e.items)||[]},type:"rewards"}))},children:"Claim"})]}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N.i,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(x.Bz,{children:"My Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:z&&(0,l.jsx)(x.XJ,{children:(0,g.HS)(new a.Z(z.amount))})}),(0,l.jsx)(x.Bz,{children:(0,g.H_)(z)}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N.i,{})})]}),(0,l.jsx)("div",{className:"flex flex-row gap-[16px]",children:(0,l.jsxs)("div",{className:"relative w-full",children:[(0,l.jsx)(x.Bz,{children:"Available For Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(x.XJ,{children:k?(0,g.HS)(k):"-"})}),(0,l.jsx)(x.Bz,{children:k?(0,g.H_)((0,v.Jp)(k)):"-"}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N.i,{})})]})}),(0,l.jsx)("div",{className:"flex flex-row gap-[16px]",children:(0,l.jsxs)("div",{children:[(0,l.jsx)(x.Bz,{children:"Unstakings (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(x.XJ,{children:B?(0,g.HS)(new a.Z(B.amount)):"-"})}),(0,l.jsx)(x.Bz,{children:B?(0,g.H_)(B):"-"})]})})]}):(0,l.jsxs)("div",{className:"flex h-[220px] flex-col items-center justify-center gap-[32px] rounded-[24px] bg-bg-600 uppercase",children:[(0,l.jsx)(x.ls,{children:"Please log in to view"}),(0,l.jsx)("div",{children:(0,l.jsx)(x.zx,{className:"[&]:min-w-[150px]",onClick:()=>{i(!0)},children:"Log in"})})]});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"mb-[24px] mt-[32px] flex flex-row items-center justify-between",children:[(0,l.jsx)(x.Dx,{children:"My Delegations"}),y&&(0,l.jsx)(w.sv,{isShowingDetails:t,setIsShowingDetails:n})]}),C,y&&t&&(0,l.jsx)(w.ZP,{})]})}function z(){let e=(0,c.useSearchParams)().get("address"),s=(0,h.n)(),[i,f]=(0,r.useState)(null),w=(0,j.P)(null==i?void 0:i.description.identity);if((0,r.useEffect)(()=>{(async()=>{e&&f(await (0,o.qp)(e,s.staking))})()},[e,s]),!i)return(0,l.jsx)("div",{children:"Loading ..."});let z=(0,p.Sg)(i.tokens,s.staking.state),B=(0,g.gg)(z),S=new a.Z(i.tokens).div(new a.Z(10).pow(6)),y=(0,p.U2)(s.staking.state,i.operatorAddress),C=(0,p.zq)(i.operatorAddress,s.staking.state);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"page-container flex w-full flex-col gap-[16px] px-[16px] pb-[32px]",children:[(0,l.jsxs)("div",{className:"mb-[32px] mt-[40px]",children:[(0,l.jsx)(x.OL,{href:"/",children:"STAKING"})," ","> ",(0,l.jsx)("span",{children:i.description.moniker})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-[24px] p-[24px]",style:{backgroundImage:"url(".concat(u.sb,"/overview-bg.png)"),backgroundSize:"cover",borderRadius:16},children:[(0,l.jsxs)("div",{className:"flex flex-row items-center gap-[16px]",children:[(0,l.jsx)("img",{alt:"Validator logo",className:"block w-[80px] rounded-full",src:w||u.c1}),(0,l.jsxs)("div",{className:"flex flex-1 items-center gap-[16px]",children:[(0,l.jsx)("div",{className:"typo-validator-name",children:i.description.moniker||""}),C&&(0,l.jsx)("div",{className:"rounded-[4px] bg-successBg px-[8px] py-[4px] text-[11px] text-success",children:"You staked"})]}),i.status===n.BondStatus.BOND_STATUS_BONDED&&(0,l.jsx)("div",{children:(0,l.jsx)(t.z,{disabled:!s.isConnected,onClick:()=>{s.staking.dispatch((0,m.ZG)({content:{validator:i},type:"delegate"}))},children:"DELEGATE NOW"})})]}),(0,l.jsx)(N.I,{}),(0,l.jsxs)("div",{className:"grid grid-cols-4",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(x.Bz,{children:"Total Stake (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(x.XJ,{children:(0,g.HS)(S)})}),(0,l.jsx)(x.Bz,{children:(0,g.H_)((0,v.Jp)(S))}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N.i,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(x.Bz,{children:"Commission Rate"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(x.XJ,{children:(0,g.i)(i.commission.commissionRates.rate,2)})}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N.i,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(x.Bz,{children:"Voting Power"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(x.XJ,{children:B})}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N.i,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(x.Bz,{children:"My Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(x.XJ,{children:y?(0,g.HS)(new a.Z((0,v.bI)(y).amount)):"-"})}),(0,l.jsx)(x.Bz,{children:(0,g.H_)(y)})]})]}),(0,l.jsx)(N.I,{}),(0,l.jsxs)("div",{className:"grid grid-cols-4",children:[(0,l.jsxs)("div",{className:"col-span-2",children:[(0,l.jsx)(x.Bz,{color:"text-white",children:"XION Address"}),(0,l.jsxs)("div",{className:"inline-flex flex-row gap-2 break-all",children:[i.operatorAddress," ",(0,l.jsx)(x.M5,{textToCopy:i.operatorAddress})]})]}),i.description.website&&(0,l.jsxs)("div",{children:[(0,l.jsx)(x.Bz,{color:"text-white",children:"Website"}),(0,l.jsx)(d.default,{href:i.description.website,target:"_blank",children:i.description.website})]}),i.description.securityContact&&(0,l.jsxs)("div",{children:[(0,l.jsx)(x.Bz,{color:"text-white",children:"Security Contact"}),(0,l.jsx)(d.default,{href:"mailto:".concat(i.description.securityContact),children:i.description.securityContact})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(x.Bz,{color:"text-white",children:"Details"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{children:i.description.details}),(0,l.jsxs)("div",{children:["Max Commission Rate:"," ",(0,g.i)(i.commission.commissionRates.maxRate,0)]}),(0,l.jsxs)("div",{children:["Max commission Change Rate:"," ",(0,g.i)(i.commission.commissionRates.maxChangeRate,0)]})]})]})]}),(0,l.jsx)(k,{})]}),(0,l.jsx)(b.Z,{})]})}}},function(e){e.O(0,[350,218,147,228,933,4,245,567,503,971,69,744],function(){return e(e.s=90858)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[276],{90858:function(e,s,i){Promise.resolve().then(i.bind(i,66355))},66355:function(e,s,i){"use strict";i.r(s),i.d(s,{default:function(){return z}});var l=i(3827),t=i(59115),a=i(22840),n=i(20534),d=i(8792),c=i(15313),r=i(64090),x=i(82012),o=i(88197),h=i(80469),m=i(62986),p=i(39730),j=i(89056),v=i(66803),u=i(9016),g=i(67497),N=i(42498),b=i(37275),f=i(75615),w=i(62948);function k(){let e=(0,c.useSearchParams)().get("address"),s=(0,h.n)(),[,i]=(0,f.dd)(),[t,n]=(0,r.useState)(!1),{isConnected:d,staking:j}=s,[u,b]=(0,r.useState)(null);if((0,r.useEffect)(()=>{(async()=>{e&&b(await (0,o.qp)(e,j))})()},[e,j]),!u)return(0,l.jsx)("div",{children:"Loading ..."});let k=(0,p.ap)(j.state),z=(0,p.U2)(j.state,null),B=(0,p.jv)(j.state,null),S=(0,p.Cn)(u.operatorAddress,j.state),y=(0,w.S6)(j.state),C=d?(0,l.jsxs)("div",{className:"grid grid-cols-4 rounded-[24px] bg-bg-600 p-[24px]",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(x.Bz,{children:"Claimable Rewards"}),(0,l.jsxs)("div",{className:"mb-[8px] mt-[12px] flex flex-row items-center gap-[8px]",children:[(0,l.jsx)(x.XJ,{children:(0,g.H_)(S)}),S&&(null==S?void 0:S.amount)!=="0"&&(0,l.jsx)(x.hp,{onClick:()=>{var e;j.dispatch((0,m.ZG)({content:{delegations:(null===(e=j.state.delegations)||void 0===e?void 0:e.items)||[]},type:"rewards"}))},children:"Claim"})]}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N.i,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(x.Bz,{children:"My Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:z&&(0,l.jsx)(x.XJ,{children:(0,g.HS)(new a.Z(z.amount))})}),(0,l.jsx)(x.Bz,{children:(0,g.H_)(z)}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N.i,{})})]}),(0,l.jsx)("div",{className:"flex flex-row gap-[16px]",children:(0,l.jsxs)("div",{className:"relative w-full",children:[(0,l.jsx)(x.Bz,{children:"Available For Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(x.XJ,{children:k?(0,g.HS)(k):"-"})}),(0,l.jsx)(x.Bz,{children:k?(0,g.H_)((0,v.Jp)(k)):"-"}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N.i,{})})]})}),(0,l.jsx)("div",{className:"flex flex-row gap-[16px]",children:(0,l.jsxs)("div",{children:[(0,l.jsx)(x.Bz,{children:"Unstakings (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(x.XJ,{children:B?(0,g.HS)(new a.Z(B.amount)):"-"})}),(0,l.jsx)(x.Bz,{children:B?(0,g.H_)(B):"-"})]})})]}):(0,l.jsxs)("div",{className:"flex h-[220px] flex-col items-center justify-center gap-[32px] rounded-[24px] bg-bg-600 uppercase",children:[(0,l.jsx)(x.ls,{children:"Please log in to view"}),(0,l.jsx)("div",{children:(0,l.jsx)(x.zx,{className:"[&]:min-w-[150px]",onClick:()=>{i(!0)},children:"Log in"})})]});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"mb-[24px] mt-[32px] flex flex-row items-center justify-between",children:[(0,l.jsx)(x.Dx,{children:"My Delegations"}),y&&(0,l.jsx)(w.sv,{isShowingDetails:t,setIsShowingDetails:n})]}),C,y&&t&&(0,l.jsx)(w.ZP,{})]})}function z(){let e=(0,c.useSearchParams)().get("address"),s=(0,h.n)(),[i,f]=(0,r.useState)(null),w=(0,j.P)(null==i?void 0:i.description.identity);if((0,r.useEffect)(()=>{(async()=>{e&&f(await (0,o.qp)(e,s.staking))})()},[e,s]),!i)return(0,l.jsx)("div",{children:"Loading ..."});let z=(0,p.Sg)(i.tokens,s.staking.state),B=(0,g.gg)(z),S=new a.Z(i.tokens).div(new a.Z(10).pow(6)),y=(0,p.U2)(s.staking.state,i.operatorAddress),C=(0,p.zq)(i.operatorAddress,s.staking.state);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"page-container flex w-full flex-col gap-[16px] px-[16px] pb-[32px]",children:[(0,l.jsxs)("div",{className:"mb-[32px] mt-[40px]",children:[(0,l.jsx)(x.OL,{href:"/",children:"STAKING"})," ","> ",(0,l.jsx)("span",{children:i.description.moniker})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-[24px] p-[24px]",style:{backgroundImage:"url(".concat(u.sb,"/overview-bg.png)"),backgroundSize:"cover",borderRadius:16},children:[(0,l.jsxs)("div",{className:"flex flex-row items-center gap-[16px]",children:[(0,l.jsx)("img",{alt:"Validator logo",className:"block w-[80px] rounded-full",src:w||u.c1}),(0,l.jsxs)("div",{className:"flex flex-1 items-center gap-[16px]",children:[(0,l.jsx)("div",{className:"typo-validator-name",children:i.description.moniker||""}),C&&(0,l.jsx)("div",{className:"rounded-[4px] bg-successBg px-[8px] py-[4px] text-[11px] text-success",children:"You staked"})]}),i.status===n.BondStatus.BOND_STATUS_BONDED&&(0,l.jsx)("div",{children:(0,l.jsx)(t.z,{disabled:!s.isConnected,onClick:()=>{s.staking.dispatch((0,m.ZG)({content:{validator:i},type:"delegate"}))},children:"DELEGATE NOW"})})]}),(0,l.jsx)(N.I,{}),(0,l.jsxs)("div",{className:"grid grid-cols-4",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(x.Bz,{children:"Total Stake (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(x.XJ,{children:(0,g.HS)(S)})}),(0,l.jsx)(x.Bz,{children:(0,g.H_)((0,v.Jp)(S))}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N.i,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(x.Bz,{children:"Commission Rate"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(x.XJ,{children:(0,g.i)(i.commission.commissionRates.rate,2)})}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N.i,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(x.Bz,{children:"Voting Power"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(x.XJ,{children:B})}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N.i,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(x.Bz,{children:"My Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(x.XJ,{children:y?(0,g.HS)(new a.Z((0,v.bI)(y).amount)):"-"})}),(0,l.jsx)(x.Bz,{children:(0,g.H_)(y)})]})]}),(0,l.jsx)(N.I,{}),(0,l.jsxs)("div",{className:"grid grid-cols-4",children:[(0,l.jsxs)("div",{className:"col-span-2",children:[(0,l.jsx)(x.Bz,{color:"text-white",children:"XION Address"}),(0,l.jsxs)("div",{className:"inline-flex flex-row gap-2 break-all",children:[i.operatorAddress," ",(0,l.jsx)(x.M5,{textToCopy:i.operatorAddress})]})]}),i.description.website&&(0,l.jsxs)("div",{children:[(0,l.jsx)(x.Bz,{color:"text-white",children:"Website"}),(0,l.jsx)(d.default,{href:i.description.website,target:"_blank",children:i.description.website})]}),i.description.securityContact&&(0,l.jsxs)("div",{children:[(0,l.jsx)(x.Bz,{color:"text-white",children:"Security Contact"}),(0,l.jsx)(d.default,{href:"mailto:".concat(i.description.securityContact),children:i.description.securityContact})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(x.Bz,{color:"text-white",children:"Details"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{children:i.description.details}),(0,l.jsxs)("div",{children:["Max Commission Rate:"," ",(0,g.i)(i.commission.commissionRates.maxRate,0)]}),(0,l.jsxs)("div",{children:["Max commission Change Rate:"," ",(0,g.i)(i.commission.commissionRates.maxChangeRate,0)]})]})]})]}),(0,l.jsx)(k,{})]}),(0,l.jsx)(b.Z,{})]})}}},function(e){e.O(0,[350,218,147,228,933,4,245,567,495,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-991c8e27867cb0e9.js b/_next/static/chunks/webpack-8e87202304def201.js similarity index 98% rename from _next/static/chunks/webpack-991c8e27867cb0e9.js rename to _next/static/chunks/webpack-8e87202304def201.js index ee0cd49..e38a169 100644 --- a/_next/static/chunks/webpack-991c8e27867cb0e9.js +++ b/_next/static/chunks/webpack-8e87202304def201.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}.bottom-\[24px\]{bottom:24px}.bottom-\[5px\]{bottom:5px}.left-0{left:0}.right-\[-16px\]{right:-16px}.right-\[10px\]{right:10px}.right-\[12px\]{right:12px}.right-\[20px\]{right:20px}.top-0{top:0}.top-\[-16px\]{top:-16px}.top-\[24px\]{top:24px}.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-\[100px\]{min-height:100px}.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-\[150px\]{min-width:150px}.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))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.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-end{justify-content:flex-end}.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-\[40px\]{gap:40px}.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-b-\[1px\]{border-bottom-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))}.border-b-transparent{border-bottom-color:transparent}.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-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-2{padding:.5rem}.p-4{padding:1rem}.p-\[16px\]{padding:16px}.p-\[24px\]{padding:24px}.p-\[2px\]{padding:2px}.p-\[4px\]{padding:4px}.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-\[12px\]{padding-top:12px;padding-bottom:12px}.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-\[24px\]{padding-left:24px}.pr-\[140px\]{padding-right:140px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[14px\]{font-size:14px}.text-\[48px\]{font-size:48px}.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}.outline-none{outline:2px solid transparent;outline-offset:2px}.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-family:Akkurat}.last\:mb-\[0px\]:last-child{margin-bottom:0}.hover\:border-b-white:hover{--tw-border-opacity:1;border-bottom-color:rgb(255 255 255/var(--tw-border-opacity))}.hover\:bg-bg-600:hover{--tw-bg-opacity:1;background-color:rgb(26 26 26/var(--tw-bg-opacity))}.focus\:border-b-white:focus{--tw-border-opacity:1;border-bottom-color:rgb(255 255 255/var(--tw-border-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-bg-600:disabled{--tw-bg-opacity:1;background-color:rgb(26 26 26/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))}.\[\&\]\:min-w-\[150px\]{min-width:150px}.\[\&\]\:text-danger{--tw-text-opacity:1;color:rgb(215 69 6/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}.bottom-\[24px\]{bottom:24px}.bottom-\[5px\]{bottom:5px}.left-0{left:0}.right-\[-16px\]{right:-16px}.right-\[-30px\]{right:-30px}.right-\[10px\]{right:10px}.right-\[12px\]{right:12px}.right-\[20px\]{right:20px}.top-0{top:0}.top-\[-30px\]{top:-30px}.top-\[24px\]{top:24px}.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-\[35px\]{margin-bottom:35px}.mb-\[8px\]{margin-bottom:8px}.mt-\[12px\]{margin-top:12px}.mt-\[25px\]{margin-top:25px}.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-\[100px\]{min-height:100px}.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-\[150px\]{min-width:150px}.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))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.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-end{justify-content:flex-end}.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-\[40px\]{gap:40px}.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-b-\[1px\]{border-bottom-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))}.border-b-transparent{border-bottom-color:transparent}.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-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-2{padding:.5rem}.p-4{padding:1rem}.p-\[16px\]{padding:16px}.p-\[24px\]{padding:24px}.p-\[2px\]{padding:2px}.p-\[4px\]{padding:4px}.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-\[12px\]{padding-top:12px;padding-bottom:12px}.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-\[24px\]{padding-left:24px}.pr-\[140px\]{padding-right:140px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[14px\]{font-size:14px}.text-\[16px\]{font-size:16px}.text-\[48px\]{font-size:48px}.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}.opacity-50{opacity:.5}.outline-none{outline:2px solid transparent;outline-offset:2px}.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-family:Akkurat}.last\:mb-\[0px\]:last-child{margin-bottom:0}.hover\:border-b-white:hover{--tw-border-opacity:1;border-bottom-color:rgb(255 255 255/var(--tw-border-opacity))}.hover\:bg-bg-600:hover{--tw-bg-opacity:1;background-color:rgb(26 26 26/var(--tw-bg-opacity))}.focus\:border-b-white:focus{--tw-border-opacity:1;border-bottom-color:rgb(255 255 255/var(--tw-border-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-bg-600:disabled{--tw-bg-opacity:1;background-color:rgb(26 26 26/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))}.\[\&\]\:min-w-\[150px\]{min-width:150px}.\[\&\]\:text-danger{--tw-text-opacity:1;color:rgb(215 69 6/var(--tw-text-opacity))} \ No newline at end of file diff --git a/index.html b/index.html index 4f37a10..d7a1cdf 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -XION Staking
Your Staking Overview
Please Log In To View
Validators
Validator
Staked Amount
Commission
Voting Power
\ No newline at end of file +XION Staking
Your Staking Overview
Please Log In To View
Validators
Validator
Staked Amount
Commission
Voting Power
\ No newline at end of file diff --git a/index.txt b/index.txt index e9bd78e..23db3f9 100644 --- a/index.txt +++ b/index.txt @@ -1,7 +1,7 @@ -2:I[64350,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-9f7a960e3a7653fa.js","245","static/chunks/245-8266bc6575a22c44.js","567","static/chunks/567-52b253322bfdeb49.js","503","static/chunks/503-376cbc65515ee87c.js","931","static/chunks/app/page-1bfffe88fc8fe4b3.js"],""] -3:I[56225,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-9f7a960e3a7653fa.js","567","static/chunks/567-52b253322bfdeb49.js","185","static/chunks/app/layout-3869892885b7981f.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","4","static/chunks/4-a82c649a6d50a6e6.js","245","static/chunks/245-8266bc6575a22c44.js","567","static/chunks/567-759415d61a602f42.js","495","static/chunks/495-7852da99d988a2fb.js","931","static/chunks/app/page-11070a3e09ad0e6d.js"],""] +3:I[56225,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-a82c649a6d50a6e6.js","567","static/chunks/567-759415d61a602f42.js","185","static/chunks/app/layout-17799167bdabcbab.js"],""] 4:I[5613,[],""] 5:I[31778,[],""] -0:["O31cwiSF3TCFP9vhWphOF",[[["",{"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/9e20252c6882c039.css","precedence":"next","crossOrigin":""}]],"$L6"]]]] +0:["I0wG-yfzl0KO1EiJr1xD_",[[["",{"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/ac09cf9a18ca7b2d.css","precedence":"next","crossOrigin":""}]],"$L6"]]]] 6:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"XION Staking"}],["$","link","3",{"rel":"icon","href":"/xion-staking/favicon.ico","type":"image/x-icon","sizes":"16x16"}]] 1:null diff --git a/validator.html b/validator.html index e9f3d94..131d752 100644 --- a/validator.html +++ b/validator.html @@ -1 +1 @@ -XION Validator Details
\ No newline at end of file +XION Validator Details
\ No newline at end of file diff --git a/validator.txt b/validator.txt index 2c72cf9..cdaff43 100644 --- a/validator.txt +++ b/validator.txt @@ -1,8 +1,8 @@ 2:"$Sreact.suspense" -3:I[66355,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-9f7a960e3a7653fa.js","245","static/chunks/245-8266bc6575a22c44.js","567","static/chunks/567-52b253322bfdeb49.js","503","static/chunks/503-376cbc65515ee87c.js","276","static/chunks/app/validator/page-ee9dd284c1466810.js"],""] +3:I[66355,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-a82c649a6d50a6e6.js","245","static/chunks/245-8266bc6575a22c44.js","567","static/chunks/567-759415d61a602f42.js","495","static/chunks/495-7852da99d988a2fb.js","276","static/chunks/app/validator/page-132c807459b7f82d.js"],""] 4:I[5613,[],""] 5:I[31778,[],""] -6:I[56225,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-9f7a960e3a7653fa.js","567","static/chunks/567-52b253322bfdeb49.js","185","static/chunks/app/layout-3869892885b7981f.js"],""] -0:["O31cwiSF3TCFP9vhWphOF",[[["",{"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/9e20252c6882c039.css","precedence":"next","crossOrigin":""}]],"$L7"]]]] +6:I[56225,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-a82c649a6d50a6e6.js","567","static/chunks/567-759415d61a602f42.js","185","static/chunks/app/layout-17799167bdabcbab.js"],""] +0:["I0wG-yfzl0KO1EiJr1xD_",[[["",{"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/ac09cf9a18ca7b2d.css","precedence":"next","crossOrigin":""}]],"$L7"]]]] 7:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"XION Validator Details"}],["$","link","3",{"rel":"icon","href":"/xion-staking/favicon.ico","type":"image/x-icon","sizes":"16x16"}]] 1:null