From 9f22e5b66a957757de9dbaace2201edd2a5296a8 Mon Sep 17 00:00:00 2001 From: icfor Date: Fri, 22 Mar 2024 13:04:14 +0000 Subject: [PATCH] deploy: d177ceef72fe08b2b79e9f585cfe0d6af3dcbd06 --- 404.html | 2 +- 404/index.html | 2 +- .../_buildManifest.js | 0 .../_ssgManifest.js | 0 _next/static/chunks/495-5d52f82819642416.js | 1 - _next/static/chunks/495-98b16a23a63c77ad.js | 1 + _next/static/chunks/567-6a3fa84db28c4453.js | 1 - _next/static/chunks/567-b27cd3c75cf29dda.js | 1 + ...ayout-e74a2c6d7b2cecc3.js => layout-95e47f871f604368.js} | 0 _next/static/chunks/app/validator/page-6449348ec0f4fca5.js | 1 - _next/static/chunks/app/validator/page-99f45ac7476dce4e.js | 1 + _next/static/chunks/webpack-b37fd64761982b6b.js | 1 - _next/static/chunks/webpack-e64b6ddfee597fee.js | 1 + _next/static/css/c146a6f34fb07589.css | 3 +++ _next/static/css/ca0d6868cc0498e3.css | 3 --- index.html | 2 +- index.txt | 6 +++--- validator/index.html | 2 +- validator/index.txt | 6 +++--- 19 files changed, 17 insertions(+), 17 deletions(-) rename _next/static/{nW_e3mAcSG--XWOlOUGVv => 865nF-tH3SB-lTujYR9Vj}/_buildManifest.js (100%) rename _next/static/{nW_e3mAcSG--XWOlOUGVv => 865nF-tH3SB-lTujYR9Vj}/_ssgManifest.js (100%) delete mode 100644 _next/static/chunks/495-5d52f82819642416.js create mode 100644 _next/static/chunks/495-98b16a23a63c77ad.js delete mode 100644 _next/static/chunks/567-6a3fa84db28c4453.js create mode 100644 _next/static/chunks/567-b27cd3c75cf29dda.js rename _next/static/chunks/app/{layout-e74a2c6d7b2cecc3.js => layout-95e47f871f604368.js} (100%) delete mode 100644 _next/static/chunks/app/validator/page-6449348ec0f4fca5.js create mode 100644 _next/static/chunks/app/validator/page-99f45ac7476dce4e.js delete mode 100644 _next/static/chunks/webpack-b37fd64761982b6b.js create mode 100644 _next/static/chunks/webpack-e64b6ddfee597fee.js create mode 100644 _next/static/css/c146a6f34fb07589.css delete mode 100644 _next/static/css/ca0d6868cc0498e3.css diff --git a/404.html b/404.html index 373bdea..66f2daf 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -404: This page could not be found.

404

This page could not be found.

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

404

This page could not be found.

\ No newline at end of file diff --git a/404/index.html b/404/index.html index 373bdea..66f2daf 100644 --- a/404/index.html +++ b/404/index.html @@ -1 +1 @@ -404: This page could not be found.

404

This page could not be found.

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

404

This page could not be found.

\ No newline at end of file diff --git a/_next/static/nW_e3mAcSG--XWOlOUGVv/_buildManifest.js b/_next/static/865nF-tH3SB-lTujYR9Vj/_buildManifest.js similarity index 100% rename from _next/static/nW_e3mAcSG--XWOlOUGVv/_buildManifest.js rename to _next/static/865nF-tH3SB-lTujYR9Vj/_buildManifest.js diff --git a/_next/static/nW_e3mAcSG--XWOlOUGVv/_ssgManifest.js b/_next/static/865nF-tH3SB-lTujYR9Vj/_ssgManifest.js similarity index 100% rename from _next/static/nW_e3mAcSG--XWOlOUGVv/_ssgManifest.js rename to _next/static/865nF-tH3SB-lTujYR9Vj/_ssgManifest.js diff --git a/_next/static/chunks/495-5d52f82819642416.js b/_next/static/chunks/495-5d52f82819642416.js deleted file mode 100644 index 03a541e..0000000 --- a/_next/static/chunks/495-5d52f82819642416.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[495],{143:function(e,t,n){n.d(t,{D:function(){return i},N:function(){return l}});var s=n(3827),r=n(59371);let l=e=>{let{children:t,onSort:n,rigthAlign:l,sort:i,sorting:a}=e,c=(a||[]).concat(["none"]),o=i?c.indexOf(i):-1;return(0,s.jsx)("div",{className:["flex flex-row text-[14px] font-normal leading-[14px] tracking-wider",l?"justify-end":""].join(" "),children:(0,s.jsxs)("button",{className:["flex flex-row items-center gap-[8px] uppercase",n?"cursor-pointer":"cursor-default"].join(" "),onClick:()=>{if(!n||!i)return;let e=(1+c.indexOf(i))%(c.length-1),t=c[e];null==n||n(t)},children:[(0,s.jsx)("span",{children:t}),n&&(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:r.Sf},style:{rotate:0===o?"180deg":"0deg"}})]})})},i=e=>{let{logo:t}=e;return(0,s.jsx)("div",{className:"flex items-center justify-start",children:(0,s.jsx)("img",{alt:"Validator logo",className:"block w-[50px] rounded-full",src:t,style:{height:50,minHeight:50,minWidth:50,width:50}})})}},80148:function(e,t,n){n.d(t,{B:function(){return r}});var s=n(22840);let r=(e,t,n)=>typeof e!=typeof t?0:"string"==typeof e?n?e.localeCompare(t):t.localeCompare(e):"number"==typeof e?Number.isNaN(e)||Number.isNaN(t)?0:n?e-t:t-e:e instanceof s.Z&&t instanceof s.Z?n?e.minus(t).toNumber():t.minus(e).toNumber():0},26605:function(e,t,n){var s=n(3827),r=n(30298);t.Z=e=>{let{address:t}=e;if(!t)return null;let n=[t.slice(0,7),t.slice(t.length-7)].join("...");return(0,s.jsx)("button",{className:"cursor-pointer text-left text-[12px] font-normal leading-[20px] text-typo-200",onClick:()=>{navigator.clipboard.writeText(t),(0,r.Am)("Copied to clipboard",{type:"info"})},children:n})}},62948:function(e,t,n){n.d(t,{S6:function(){return w},sv:function(){return b}});var s=n(3827),r=n(22840),l=n(20534),i=n(64090),a=n(82012),c=n(143),o=n(59371),d=n(80148),u=n(88197),x=n(80469),m=n(62986),p=n(39730),h=n(89056),f=n(66803),j=n(19807),g=n(67497),v=n(26605),N=n(48074);let w=e=>{let t=(0,p.jv)(e,null),n=(0,p.U2)(e,null);return(0,f.UO)(t)||(0,f.UO)(n)},b=e=>{let{isShowingDetails:t,setIsShowingDetails:n}=e;return(0,s.jsxs)("button",{className:"text-primary-500 flex flex-row items-center gap-2 text-[14px]",onClick:()=>{n(!t)},children:[t?"Hide details":"View details",(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:o.cx},style:{transform:"rotate(".concat(t?"0deg":"180deg",")")}})]})},y={gap:"16px",gridTemplateColumns:"1.5fr repeat(4, 1.05fr)",minWidth:1e3,overflow:"auto"},k="grid w-full items-center justify-between gap-2 p-2 mb-[16px] last:mb-[0px] bg-black rounded-[8px]",S="w-full overflow-auto rounded-[24px] bg-bg-600 pb-4 text-typo-100 px-[16px]",C=()=>(0,s.jsx)("span",{className:"hover:bg-bg-500",dangerouslySetInnerHTML:{__html:o.GI}}),Z=(0,i.memo)(e=>{let{delegation:t,disabled:n,index:r,staking:o,validator:d}=e,{validatorAddress:x}=t;(0,i.useEffect)(()=>{x&&(0,u.Dr)(x,o)},[x,o]);let p=(0,h.P)(null==d?void 0:d.description.identity);return(0,s.jsxs)("div",{className:k,style:y,children:[(0,s.jsxs)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:[(0,s.jsx)(c.D,{logo:p}),(0,s.jsxs)("div",{className:"flex flex-col justify-center gap-[2px] text-left",children:[(0,s.jsx)("div",{className:"max-w-[150px] overflow-hidden truncate text-[14px] font-bold leading-[20px] md:max-w-[250px]",children:(null==d?void 0:d.description.moniker)||""}),(0,s.jsx)(v.Z,{address:(null==d?void 0:d.operatorAddress)||""})]})]}),(0,s.jsx)("div",{className:"text-right",children:(0,s.jsx)(N.Z,{text:(0,g.Em)(t.balance)})}),(0,s.jsx)("div",{className:"text-right",children:d?(0,g.i)(d.commission.commissionRates.rate,0):""}),(0,s.jsx)("div",{className:"text-right",children:(0,s.jsx)(N.Z,{text:(0,g.Em)(t.rewards)})}),(0,s.jsxs)("div",{className:"flex flex-row items-center justify-end gap-[8px]",children:[(0,s.jsx)(a.hp,{disabled:n||(null==d?void 0:d.status)!==l.BondStatus.BOND_STATUS_BONDED,onClick:()=>{d&&o.dispatch((0,m.ZG)({content:{validator:d},type:"delegate"}))},children:"Delegate"}),(0,s.jsx)(a.Rk,{Trigger:C,id:"delegation-".concat(r),children:(0,s.jsxs)("div",{className:"flex flex-col gap-[12px] rounded-[8px] bg-bg-600 py-[4px]",children:[(0,s.jsx)(a.ZP,{disabled:!(0,j.m)(null==t?void 0:t.rewards)||n,onClick:()=>{d&&o.dispatch((0,m.ZG)({content:{delegations:[t]},type:"rewards"}))},children:"Claim rewards"}),(0,s.jsx)(a.ZP,{disabled:n,onClick:()=>{d&&o.dispatch((0,m.ZG)({content:{validator:d},type:"undelegate"}))},variant:"danger",children:"Undelegate"})]})})]})]})}),A=e=>{let{disabled:t,stakingRef:n,unbonding:r,validator:l}=e,{staking:o}=n,d=(0,h.P)(null==l?void 0:l.description.identity),x=r.validator;return(0,i.useEffect)(()=>{x&&(0,u.Dr)(x,o)},[x,o]),(0,s.jsxs)("div",{className:k,style:y,children:[(0,s.jsxs)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:[(0,s.jsx)(c.D,{logo:d}),(0,s.jsxs)("div",{className:"flex flex-col justify-start gap-2 text-left",children:[(0,s.jsx)("div",{className:"text-[14px] font-bold leading-[20px]",children:(null==l?void 0:l.description.moniker)||""}),(0,s.jsx)(v.Z,{address:(null==l?void 0:l.operatorAddress)||""})]})]}),(0,s.jsx)("div",{className:"text-right",children:(0,s.jsx)(N.Z,{text:(0,g.Em)(r.balance)})}),(0,s.jsx)("div",{className:"text-right",children:"Unbonding"}),(0,s.jsx)("div",{className:"text-right",children:(0,g.ts)(r.completionTime)}),(0,s.jsx)("div",{className:"text-right",children:(0,s.jsx)(a.hp,{disabled:t,onClick:()=>{o.dispatch((0,m.ZG)({content:{unbondings:[r]},type:"cancel-unstaking"}))},variant:"danger",children:"Cancel Unstake"})})]})},F=c.N,E=c.N,I="grid w-full items-center justify-between gap-2 py-4 px-2 uppercase";t.ZP=(0,i.memo)(()=>{let e=(0,x.n)(),{staking:t}=e,[n,l]=(0,i.useState)("none"),[a,c]=(0,i.useState)("none"),o=(0,p.mM)(t.state),{delegations:u,unbondings:m}=t.state,h=!!(null==u?void 0:u.items.length),f=!!(null==m?void 0:m.items.length);return h||f?(0,s.jsxs)("div",{className:"flex h-full flex-1 flex-col items-end gap-[16px]",children:[h&&(()=>{let e=u.items.slice().sort((e,t)=>{switch(n){case"staked-asc":case"staked-desc":return(0,d.B)(new r.Z(e.balance.amount),new r.Z(t.balance.amount),"staked-asc"===n);case"rewards-asc":case"rewards-desc":return(0,d.B)(new r.Z(e.rewards.amount),new r.Z(t.rewards.amount),"rewards-asc"===n);case"commission-asc":case"commission-desc":{let s=o[e.validatorAddress],r=o[t.validatorAddress];return(0,d.B)(Number(null==s?void 0:s.commission.commissionRates.rate),Number(null==r?void 0:r.commission.commissionRates.rate),"commission-asc"===n)}default:return 0}});return(0,s.jsxs)("div",{className:S,children:[(0,s.jsxs)("div",{className:I,style:y,children:[(0,s.jsx)(F,{children:"Delegations"}),(0,s.jsx)(F,{onSort:l,rigthAlign:!0,sort:n,sorting:["staked-asc","staked-desc"],children:"Staked Amount"}),(0,s.jsx)(F,{onSort:l,rigthAlign:!0,sort:n,sorting:["commission-asc","commission-desc"],children:(0,s.jsx)("div",{className:"text-right",children:"Commission"})}),(0,s.jsx)(F,{onSort:l,rigthAlign:!0,sort:n,sorting:["rewards-asc","rewards-desc"],children:(0,s.jsx)("div",{className:"text-right",children:"Rewards"})})]}),e.map((e,n)=>(0,s.jsx)(Z,{delegation:e,index:n,staking:t,validator:o[e.validatorAddress]},n))]})})(),f&&(()=>{let t=m.items.slice().sort((e,t)=>{switch(a){case"amount-asc":case"amount-desc":return(0,d.B)(Number(e.balance.amount),Number(t.balance.amount),"amount-asc"===a);case"completion-asc":case"completion-desc":return(0,d.B)(e.completionTime,t.completionTime,"completion-asc"===a);default:return 0}});return(0,s.jsxs)("div",{className:S,children:[(0,s.jsxs)("div",{className:I,style:y,children:[(0,s.jsx)(E,{children:"Unstakings"}),(0,s.jsx)(E,{onSort:c,rigthAlign:!0,sort:a,sorting:["staked-asc","staked-desc"],children:(0,s.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,s.jsx)(E,{rigthAlign:!0,children:(0,s.jsx)("div",{className:"text-right",children:"Status"})}),(0,s.jsx)(E,{onSort:c,rigthAlign:!0,sort:a,sorting:["date-asc","date-desc"],children:(0,s.jsx)("div",{className:"text-right",children:"Completion Time"})})]}),t.map((t,n)=>(0,s.jsx)(A,{stakingRef:e,unbonding:t,validator:o[t.validator]},n))]})})()]}):null})},42498:function(e,t,n){n.d(t,{I:function(){return r},i:function(){return l}});var s=n(3827);let r=e=>{let{className:t}=e;return(0,s.jsx)("div",{className:["h-[1px] w-full bg-[#ffffff33]",t||""].join(" ")})},l=()=>(0,s.jsx)("div",{className:"h-full w-[1px] bg-[#ffffff33]"})},37275:function(e,t,n){n.d(t,{Z:function(){return A}});var s=n(3827),r=n(64090),l=n(30298),i=n(82012),a=n(98245),c=n.n(a),o=n(59371);c().setAppElement(document.body);let d=e=>{let{children:t}=e;return(0,s.jsx)("div",{className:"mb-[16px] text-[16px] leading-[24px] text-typo-100 opacity-50",children:t})};var u=e=>{let{children:t,...n}=e;return(0,r.useEffect)(()=>{if(n.isOpen){let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[n.isOpen]),(0,s.jsx)(c(),{...n,style:{content:{background:"transparent",border:"none",bottom:"auto",boxShadow:"0px 0px 50px 0px #FFFFFF40",boxSizing:"border-box",display:"grid",gridTemplateColumns:"1fr",inset:0,maxHeight:"100%",minWidth:"100vw",outline:"none",overflow:"auto",padding:"0",pointerEvents:"none",position:"fixed",right:"auto",width:"100vw",zIndex:10},overlay:{backdropFilter:"blur(10px)",backgroundColor:"rgba(0, 0, 0, 0.5)"}},children:(0,s.jsxs)("div",{className:"relative w-full overflow-auto px-[16px] py-[40px] md:p-[50px]",style:{backgroundColor:"#000",borderRadius:"48px",boxShadow:"0px 0px 50px 0px #FFFFFF40",boxSizing:"border-box",display:"flex",flexDirection:"column",height:"max-content",margin:"auto",maxWidth:"100vw",outline:"none",pointerEvents:"auto",position:"relative",width:"min-content"},children:[(0,s.jsx)("button",{className:"absolute right-[12px] top-[12px] w-[36px] cursor-pointer",dangerouslySetInnerHTML:{__html:o.kC},onClick:n.onRequestClose}),t]})})},x=n(88197),m=n(80469),p=n(62986),h=n(19807),f=(0,r.memo)(()=>{let e=(0,m.n)(),[t,n]=(0,r.useState)("confirm"),[a,c]=(0,r.useState)(!1),{account:o,client:f,staking:j}=e,{modal:g}=j.state,v=(null==g?void 0:g.type)==="cancel-unstaking";if(!v)return null;let{unbondings:N}=(null==g?void 0:g.content)||{};if(!(null==N?void 0:N.length))return null;let w="confirm"===t?(0,s.jsxs)("div",{className:"w-full text-center",children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsx)(i.ls,{children:"Are you sure?"})}),(0,s.jsxs)(d,{children:["We are currently completing the unstaking process.",(0,s.jsx)("br",{}),"Are you sure you want to cancel the process?"]}),(0,s.jsx)(i.zx,{className:"mt-[25px]",isLoading:a,onClick:()=>{f&&(c(!0),N.reduce(async(e,t)=>{await e;let n={delegator:o.bech32Address,validator:t.validator};await (0,h.mu)(n,t,f)},Promise.resolve()).then(()=>{(0,x.VZ)(o.bech32Address,j),n("completed")}).catch(()=>{(0,l.Am)("There was an unexpected error canceling your unstaking. Please try again later.",{type:"error"})}).finally(()=>{c(!1)}))},children:"CONFIRM"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsx)(i.ls,{children:"Success!"})}),(0,s.jsx)(d,{children:"You have successfully cancel the unstaking process, and you are now contributing to the security of the XION network again."})]}),(0,s.jsx)(i.zx,{className:"mt-[25px]",onClick:()=>{e.staking.dispatch((0,p.ZG)(null))},children:"CLOSE"})]});return(0,s.jsx)(u,{isOpen:v,onRequestClose:()=>{a||e.staking.dispatch((0,p.ZG)(null))},children:(0,s.jsx)("div",{className:"min-w-[90vw] md:min-w-[390px]",children:w})})}),j=n(22840),g=n(3237),v=n(66803);let N=async(e,t)=>{let{client:n,staking:s}=e,{modal:r}=s.state;if((null==r?void 0:r.type)!=="rewards")return;let{delegations:i}=(null==r?void 0:r.content)||{};if(!n||!(null==i?void 0:i.length))return;let a=e.account.bech32Address;i.reduce(async(e,t)=>{await e;let s=(0,v.bI)(t.rewards);if(new j.Z(s.amount).lt(g._H))return;let r={delegator:a,validator:t.validatorAddress};await (0,h.YY)(r,n)},Promise.resolve()).then(()=>(0,x.VZ)(a,s)).then(()=>{t("completed")}).catch(()=>{(0,l.Am)("There was an unexpected error claiming your rewards. Please try again later.",{type:"error"})})};var w=(0,r.memo)(()=>{let e=(0,m.n)(),[t,n]=(0,r.useState)("loading"),l=(0,r.useRef)(!1),{staking:a}=e,{modal:c}=a.state,o=(null==c?void 0:c.type)==="rewards";if((0,r.useEffect)(()=>{o&&!l.current&&(l.current=!0,N(e,n))},[o,e]),!o)return null;let x="loading"===t?(0,s.jsxs)("div",{className:"w-full text-center",children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsx)(i.ls,{children:"CLAIMING"})}),(0,s.jsx)(d,{children:"Wait until your rewards are withdrawn."}),(0,s.jsx)(i.zx,{className:"mt-[25px]",isLoading:!0})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsx)(i.ls,{children:"Success!"})}),(0,s.jsx)(d,{children:"You have claimed your staking rewards successfully."})]}),(0,s.jsx)(i.zx,{className:"mt-[25px]",onClick:()=>{e.staking.dispatch((0,p.ZG)(null))},children:"CLOSE"})]});return(0,s.jsx)(u,{isOpen:o,onRequestClose:()=>{"loading"!==t&&e.staking.dispatch((0,p.ZG)(null))},children:(0,s.jsx)("div",{className:"min-w-[90vw] md:min-w-[390px]",children:x})})}),b=n(39730),y=n(67497);let k="input";var S=()=>{let e=(0,m.n)(),{client:t}=e,[n,a]=(0,r.useState)(k),[c,o]=(0,r.useState)(!1),[h,f]=(0,r.useState)(""),[N,w]=(0,r.useState)(""),[S,C]=(0,r.useState)({amount:void 0,memo:void 0}),{account:Z,staking:A}=e,{modal:F}=A.state,E=(null==F?void 0:F.type)==="delegate";if((0,r.useEffect)(()=>()=>{a(k),C({}),f(""),w("")},[E]),!E)return null;let{validator:I}=null==F?void 0:F.content;if(!I)return null;let O=new j.Z(h),z=O.isNaN()?"":O.times(g.Ex),B=Object.values(S).some(e=>!!e),D=(0,b.ap)(A.state);return(0,s.jsx)(u,{isOpen:E,onRequestClose:()=>{c||e.staking.dispatch((0,p.ZG)(null))},children:(0,s.jsx)("div",{className:"min-w-[90vw] md:min-w-[390px]",children:(()=>{let r=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mb-[32px] mt-[32px] flex w-full flex-col items-center justify-center gap-[12px]",children:[(0,s.jsx)(i.Bz,{children:"Staked Amount (XION)"}),(0,s.jsx)(i.XJ,{children:O.toString()}),z&&(0,s.jsxs)(i.Bz,{children:["$",(0,y.HS)(z)]})]}),!!N&&(0,s.jsx)("div",{className:"mb-[32px] text-center italic",children:(0,s.jsx)("div",{children:N})})]});if("completed"===n)return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsx)(i.ls,{children:"SUCCESS!"})}),(0,s.jsxs)(d,{children:["You have successfully staked on"," ",I.description.moniker,". Thank you for contributing in securing the XION network."]})]}),r(),(0,s.jsx)(i.zx,{disabled:c,onClick:()=>{e.staking.dispatch((0,p.ZG)(null))},children:"CLOSE"})]});if("review"===n)return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsx)(i.ls,{children:"REVIEW"})}),(0,s.jsxs)(d,{children:["Get ready to stake your XION token with"," ",I.description.moniker,". Press 'Confirm' to proceed."]})]}),r(),(0,s.jsx)(i.zx,{isLoading:c,onClick:()=>{if(!t)return;o(!0);let e={delegator:Z.bech32Address,validator:I.operatorAddress};(0,x._5)(e,(0,v.Jp)(O),N,t,A).then(e=>(a("completed"),e())).catch(()=>{(0,l.Am)("Staking error",{type:"error"})}).finally(()=>{o(!1)})},children:"CONFIRM"})]});let u=()=>{if(!z||!D||O.isNaN()||O.gt(D))return C({...S,amount:"Invalid amount"}),!0};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsxs)(i.ls,{children:["Delegate To ",I.description.moniker]})}),D&&(()=>{let e=D.times(g.Ex);return(0,s.jsxs)("div",{className:"mt-[40px] flex w-full flex-col items-center justify-center gap-[12px] uppercase",children:[(0,s.jsx)(i.Bz,{children:"Available for delegation (XION)"}),(0,s.jsx)(i.XJ,{children:(0,y.HS)(D)}),(0,s.jsxs)(i.Bz,{children:["$",(0,y.HS)(e)]})]})})(),(0,s.jsxs)("div",{className:"mt-[40px] flex w-full flex-row justify-between",children:[(0,s.jsx)("div",{children:"Amount"}),!!z&&(0,s.jsxs)(i.Bz,{children:["= $",(0,y.HS)(z)]})]}),(0,s.jsxs)("form",{onSubmit:e=>{null==e||e.stopPropagation(),null==e||e.preventDefault(),!u()&&(!t||B||O.lt(0)||a("review"))},children:[(0,s.jsxs)("div",{className:"mt-[8px]",children:[(0,s.jsx)(i.Wz,{disabled:c,error:!!S.amount,onBlur:()=>{u()},onChange:e=>{S.amount&&C({...S,amount:void 0}),f(e.target.value)},value:h}),S.amount&&(0,s.jsx)(i.Xq,{children:S.amount})]}),(0,s.jsx)("div",{className:"mt-[40px] w-full",children:(0,s.jsx)(i.sr,{disabled:c,onChange:e=>{w(e.target.value)},placeholder:"Memo (Optional)",value:N})}),(0,s.jsx)("div",{className:"mt-[48px] w-full",children:(0,s.jsx)(i.zx,{disabled:c||B,type:"submit",children:"DELEGATE NOW"})})]})]})})()})})};let C="input";var Z=()=>{let e=(0,m.n)(),{client:t}=e,[n,a]=(0,r.useState)(C),[c,o]=(0,r.useState)(!1),[h,f]=(0,r.useState)({amount:void 0,memo:void 0}),[N,w]=(0,r.useState)(""),[k,S]=(0,r.useState)(""),{account:Z,staking:A}=e,{modal:F}=A.state,E=(null==F?void 0:F.type)==="undelegate";if((0,r.useEffect)(()=>()=>{a(C),w(""),f({}),S("")},[E]),!E)return null;let{validator:I}=null==F?void 0:F.content;if(!I)return null;let O=new j.Z(N),z=O.isNaN()?"":O.times(g.Ex),B=(0,b.U2)(A.state,I.operatorAddress),D=()=>{if(!z||!B||O.lte(0)||O.gt(new j.Z(B.amount)))return f({...h,amount:"Invalid amount"}),!0},T=e=>{null==e||e.stopPropagation(),null==e||e.preventDefault(),!D()&&t&&O.gt(0)&&a("review")};return(0,s.jsx)(u,{isOpen:E,onRequestClose:()=>{c||e.staking.dispatch((0,p.ZG)(null))},children:(0,s.jsx)("div",{className:"min-w-[90vw] md:min-w-[390px]",children:(()=>{let r=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mb-[32px] mt-[32px] flex w-full flex-col items-center justify-center gap-[12px]",children:[(0,s.jsx)(i.Bz,{children:"Unstaking Amount (XION)"}),(0,s.jsx)(i.XJ,{children:(0,y.HS)(O)}),(0,s.jsx)(i.Bz,{children:(0,y.H_)((0,v.Jp)(O))})]}),!!k&&(0,s.jsx)("div",{className:"mb-[32px] text-center italic",children:(0,s.jsx)("div",{children:k})})]});return"completed"===n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsx)(i.ls,{children:"SUCCESS!"})}),(0,s.jsxs)(d,{children:["You have successfully unstaked from"," ",I.description.moniker,". It takes ",g.Mx," ","days to complete the unstaking process"]})]}),r(),(0,s.jsx)(i.zx,{disabled:c,onClick:()=>{e.staking.dispatch((0,p.ZG)(null))},children:"CLOSE"})]}):"review"===n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsx)(i.ls,{children:"REVIEW"})}),(0,s.jsxs)(d,{children:["Unstaking your XION Token means you'll stop earning rewards. Remember, it takes ",g.Mx," days to complete the unstaking process."]})]}),r(),(0,s.jsx)(i.zx,{isLoading:c,onClick:()=>{if(!t)return;o(!0);let e={delegator:Z.bech32Address,validator:I.operatorAddress};(0,x.xu)(e,(0,v.Jp)(O),k,t,A).then(e=>(a("completed"),e())).catch(()=>{(0,l.Am)("Staking error",{type:"error"})}).finally(()=>{o(!1)})},children:"CONFIRM"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsxs)(i.ls,{children:["Unstake From ",I.description.moniker]})}),B&&(()=>{let e=new j.Z(B.amount).times(g.Ex);return(0,s.jsxs)("div",{className:"mt-[40px] flex w-full flex-col items-center justify-center gap-[12px] uppercase",children:[(0,s.jsx)(i.Bz,{children:"Available amount (XION)"}),(0,s.jsx)(i.XJ,{children:(0,y.HS)(new j.Z(B.amount))}),(0,s.jsxs)(i.Bz,{children:["$",(0,y.HS)(e)]})]})})(),(0,s.jsxs)("div",{className:"mt-[40px] flex w-full flex-row justify-between",children:[(0,s.jsx)("div",{children:"Amount"}),!!z&&(0,s.jsxs)(i.Bz,{children:["=$",(0,y.HS)(z)]})]}),(0,s.jsxs)("form",{onSubmit:T,children:[(0,s.jsxs)("div",{className:"mt-[8px]",children:[(0,s.jsx)(i.Wz,{disabled:c,error:!!h.amount,onBlur:()=>{D()},onChange:e=>{h.amount&&f({...h,amount:void 0}),w(e.target.value)},value:N}),h.amount&&(0,s.jsx)(i.Xq,{children:h.amount})]}),(0,s.jsx)("div",{className:"mt-[40px] w-full",children:(0,s.jsx)(i.sr,{disabled:c,onChange:e=>{S(e.target.value)},placeholder:"Memo (Optional)",value:k})}),(0,s.jsx)("div",{className:"mt-[48px] w-full",children:(0,s.jsx)(i.zx,{disabled:c,type:"submit",children:"Unstake Now"})})]})]})})()})})},A=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(S,{}),(0,s.jsx)(Z,{}),(0,s.jsx)(w,{}),(0,s.jsx)(f,{})]})},48074:function(e,t,n){var s=n(3827);t.Z=e=>{let{text:t}=e,[n,r]=t.split(" ");return(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{children:n})," ",(0,s.jsx)("span",{className:"text-typo-200",children:r})]})}},89056:function(e,t,n){n.d(t,{P:function(){return a}});var s=n(64090),r=n(3237);let l={},i={getIdentityLogo:e=>{if(l[e])return l[e];let t=fetch("https://keybase.io/_/api/1.0/user/lookup.json?key_suffix=".concat(e)).then(e=>e.json()).then(e=>{var t,n,s,r;return(null==e?void 0:null===(r=e.them)||void 0===r?void 0:null===(s=r[0])||void 0===s?void 0:null===(n=s.pictures)||void 0===n?void 0:null===(t=n.primary)||void 0===t?void 0:t.url)||null}).catch(()=>null);return l[e]=t,t}},a=e=>{let[t,n]=(0,s.useState)(null);return(0,s.useEffect)(()=>{(async()=>{e&&n(await i.getIdentityLogo(e))})()},[e]),t||r.c1}},67497:function(e,t,n){n.d(t,{Em:function(){return i},HS:function(){return c},H_:function(){return d},PV:function(){return x},gg:function(){return a},i:function(){return o},ts:function(){return u}});var s=n(22840),r=n(3237),l=n(66803);let i=(e,t)=>{let n=(0,l.bI)(e),r=new s.Z(n.amount);if(r.eq(0))return"".concat(r.toFormat()," ").concat(n.denom);if(r.lt(1e-4))return"<".concat(1e-4," ").concat(n.denom);if(t){let e=Intl.NumberFormat("en",{notation:"compact"});return"".concat(e.format(r.toNumber())," ").concat(n.denom)}return"".concat(r.toFormat(4)," ").concat(n.denom)},a=e=>{if("number"!=typeof e||Number.isNaN(e))return null;let t=e<1e-4?"<0.1":(100*e).toFixed(1);return"".concat(t,"%")},c=(e,t)=>t&&e.lt(t)?"<".concat(t):Intl.NumberFormat("en",{notation:"compact"}).format(e.toNumber()),o=(e,t)=>{let n=new s.Z(e).div(new s.Z(10).pow(18)).toNumber();return"".concat((100*n).toFixed(t),"%")},d=(e,t)=>{let n=(0,l.bI)(e||(0,l.IB)()),i=new s.Z(e?n.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,n=Math.floor((t-Date.now())/864e5),s=new Date(t).toLocaleString("en-US",{month:"short"}),r=new Date(t).getDate(),l=new Date(t).getFullYear();return"in ".concat(n," day").concat(1===n?"":"s",", ").concat(s," ").concat(r," ").concat(l)},x=e=>e?"".concat(e.times(100).toFixed(2),"%"):"-"}}]); \ No newline at end of file diff --git a/_next/static/chunks/495-98b16a23a63c77ad.js b/_next/static/chunks/495-98b16a23a63c77ad.js new file mode 100644 index 0000000..899e27c --- /dev/null +++ b/_next/static/chunks/495-98b16a23a63c77ad.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[495],{143:function(e,t,n){n.d(t,{D:function(){return i},N:function(){return l}});var s=n(3827),r=n(59371);let l=e=>{let{children:t,onSort:n,rigthAlign:l,sort:i,sorting:a}=e,c=(a||[]).concat(["none"]),o=i?c.indexOf(i):-1;return(0,s.jsx)("div",{className:["flex flex-row text-[14px] font-normal leading-[14px] tracking-wider",l?"justify-end":""].join(" "),children:(0,s.jsxs)("button",{className:["flex flex-row items-center gap-[8px] uppercase",n?"cursor-pointer":"cursor-default"].join(" "),onClick:()=>{if(!n||!i)return;let e=(1+c.indexOf(i))%(c.length-1),t=c[e];null==n||n(t)},children:[(0,s.jsx)("span",{children:t}),n&&(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:r.Sf},style:{rotate:0===o?"180deg":"0deg"}})]})})},i=e=>{let{logo:t}=e;return(0,s.jsx)("div",{className:"flex items-center justify-start",children:(0,s.jsx)("img",{alt:"Validator logo",className:"block w-[50px] rounded-full",src:t,style:{height:50,minHeight:50,minWidth:50,width:50}})})}},80148:function(e,t,n){n.d(t,{B:function(){return r}});var s=n(22840);let r=(e,t,n)=>typeof e!=typeof t?0:"string"==typeof e?n?e.localeCompare(t):t.localeCompare(e):"number"==typeof e?Number.isNaN(e)||Number.isNaN(t)?0:n?e-t:t-e:e instanceof s.Z&&t instanceof s.Z?n?e.minus(t).toNumber():t.minus(e).toNumber():0},26605:function(e,t,n){var s=n(3827),r=n(30298);t.Z=e=>{let{address:t}=e;if(!t)return null;let n=[t.slice(0,7),t.slice(t.length-7)].join("...");return(0,s.jsx)("button",{className:"cursor-pointer text-left text-[12px] font-normal leading-[20px] text-typo-200",onClick:()=>{navigator.clipboard.writeText(t),(0,r.Am)("Copied to clipboard",{type:"info"})},children:n})}},62948:function(e,t,n){n.d(t,{S6:function(){return w},sv:function(){return b}});var s=n(3827),r=n(22840),l=n(20534),i=n(64090),a=n(82012),c=n(143),o=n(59371),d=n(80148),u=n(88197),x=n(80469),m=n(62986),p=n(39730),h=n(89056),f=n(66803),j=n(19807),g=n(67497),v=n(26605),N=n(48074);let w=e=>{let t=(0,p.jv)(e,null),n=(0,p.U2)(e,null);return(0,f.UO)(t)||(0,f.UO)(n)},b=e=>{let{isShowingDetails:t,setIsShowingDetails:n}=e;return(0,s.jsxs)("button",{className:"text-primary-500 flex flex-row items-center gap-2 text-[14px]",onClick:()=>{n(!t)},children:[t?"Hide details":"View details",(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:o.cx},style:{transform:"rotate(".concat(t?"0deg":"180deg",")")}})]})},y={gap:"16px",gridTemplateColumns:"1.5fr repeat(4, 1.05fr)",minWidth:1e3,overflow:"auto"},k="grid w-full items-center justify-between gap-2 p-2 mb-[16px] last:mb-[0px] bg-black rounded-[8px]",S="w-full overflow-auto rounded-[24px] bg-bg-600 pb-4 text-typo-100 px-[16px]",C=()=>(0,s.jsx)("span",{className:"hover:bg-bg-500",dangerouslySetInnerHTML:{__html:o.GI}}),Z=(0,i.memo)(e=>{let{delegation:t,disabled:n,index:r,staking:o,validator:d}=e,{validatorAddress:x}=t;(0,i.useEffect)(()=>{x&&(0,u.Dr)(x,o)},[x,o]);let p=(0,h.P)(null==d?void 0:d.description.identity);return(0,s.jsxs)("div",{className:k,style:y,children:[(0,s.jsxs)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:[(0,s.jsx)(c.D,{logo:p}),(0,s.jsxs)("div",{className:"flex flex-col justify-center gap-[2px] text-left",children:[(0,s.jsx)("div",{className:"max-w-[150px] overflow-hidden truncate text-[14px] font-bold leading-[20px] md:max-w-[250px]",children:(null==d?void 0:d.description.moniker)||""}),(0,s.jsx)(v.Z,{address:(null==d?void 0:d.operatorAddress)||""})]})]}),(0,s.jsx)("div",{className:"text-right",children:(0,s.jsx)(N.Z,{text:(0,g.Em)(t.balance)})}),(0,s.jsx)("div",{className:"text-right",children:d?(0,g.i)(d.commission.commissionRates.rate,0):""}),(0,s.jsx)("div",{className:"text-right",children:(0,s.jsx)(N.Z,{text:(0,g.Em)(t.rewards)})}),(0,s.jsxs)("div",{className:"flex flex-row items-center justify-end gap-[8px]",children:[(0,s.jsx)(a.hp,{disabled:n||(null==d?void 0:d.status)!==l.BondStatus.BOND_STATUS_BONDED,onClick:()=>{d&&o.dispatch((0,m.ZG)({content:{validator:d},type:"delegate"}))},children:"Delegate"}),(0,s.jsx)(a.Rk,{Trigger:C,id:"delegation-".concat(r),children:(0,s.jsxs)("div",{className:"flex flex-col gap-[12px] rounded-[8px] bg-bg-600 py-[4px]",children:[(0,s.jsx)(a.ZP,{disabled:!(0,j.m)(null==t?void 0:t.rewards)||n,onClick:()=>{d&&o.dispatch((0,m.ZG)({content:{delegations:[t]},type:"rewards"}))},children:"Claim rewards"}),(0,s.jsx)(a.ZP,{disabled:n,onClick:()=>{d&&o.dispatch((0,m.ZG)({content:{validator:d},type:"undelegate"}))},variant:"danger",children:"Undelegate"})]})})]})]})}),A=e=>{let{disabled:t,stakingRef:n,unbonding:r,validator:l}=e,{staking:o}=n,d=(0,h.P)(null==l?void 0:l.description.identity),x=r.validator;return(0,i.useEffect)(()=>{x&&(0,u.Dr)(x,o)},[x,o]),(0,s.jsxs)("div",{className:k,style:y,children:[(0,s.jsxs)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:[(0,s.jsx)(c.D,{logo:d}),(0,s.jsxs)("div",{className:"flex flex-col justify-start gap-2 text-left",children:[(0,s.jsx)("div",{className:"text-[14px] font-bold leading-[20px]",children:(null==l?void 0:l.description.moniker)||""}),(0,s.jsx)(v.Z,{address:(null==l?void 0:l.operatorAddress)||""})]})]}),(0,s.jsx)("div",{className:"text-right",children:(0,s.jsx)(N.Z,{text:(0,g.Em)(r.balance)})}),(0,s.jsx)("div",{className:"text-right",children:"Unbonding"}),(0,s.jsx)("div",{className:"text-right",children:(0,g.ts)(r.completionTime)}),(0,s.jsx)("div",{className:"text-right",children:(0,s.jsx)(a.hp,{disabled:t,onClick:()=>{o.dispatch((0,m.ZG)({content:{unbondings:[r]},type:"cancel-unstaking"}))},variant:"danger",children:"Cancel Unstake"})})]})},F=c.N,E=c.N,I="grid w-full items-center justify-between gap-2 py-4 px-2 uppercase";t.ZP=(0,i.memo)(()=>{let e=(0,x.n)(),{staking:t}=e,[n,l]=(0,i.useState)("none"),[a,c]=(0,i.useState)("none"),o=(0,p.mM)(t.state),{delegations:u,unbondings:m}=t.state,h=!!(null==u?void 0:u.items.length),f=!!(null==m?void 0:m.items.length);return h||f?(0,s.jsxs)("div",{className:"flex h-full flex-1 flex-col items-end gap-[16px]",children:[h&&(()=>{let e=u.items.slice().sort((e,t)=>{switch(n){case"staked-asc":case"staked-desc":return(0,d.B)(new r.Z(e.balance.amount),new r.Z(t.balance.amount),"staked-asc"===n);case"rewards-asc":case"rewards-desc":return(0,d.B)(new r.Z(e.rewards.amount),new r.Z(t.rewards.amount),"rewards-asc"===n);case"commission-asc":case"commission-desc":{let s=o[e.validatorAddress],r=o[t.validatorAddress];return(0,d.B)(Number(null==s?void 0:s.commission.commissionRates.rate),Number(null==r?void 0:r.commission.commissionRates.rate),"commission-asc"===n)}default:return 0}});return(0,s.jsxs)("div",{className:S,children:[(0,s.jsxs)("div",{className:I,style:y,children:[(0,s.jsx)(F,{children:"Delegations"}),(0,s.jsx)(F,{onSort:l,rigthAlign:!0,sort:n,sorting:["staked-asc","staked-desc"],children:"Staked Amount"}),(0,s.jsx)(F,{onSort:l,rigthAlign:!0,sort:n,sorting:["commission-asc","commission-desc"],children:(0,s.jsx)("div",{className:"text-right",children:"Commission"})}),(0,s.jsx)(F,{onSort:l,rigthAlign:!0,sort:n,sorting:["rewards-asc","rewards-desc"],children:(0,s.jsx)("div",{className:"text-right",children:"Rewards"})})]}),e.map((e,n)=>(0,s.jsx)(Z,{delegation:e,index:n,staking:t,validator:o[e.validatorAddress]},n))]})})(),f&&(()=>{let t=m.items.slice().sort((e,t)=>{switch(a){case"amount-asc":case"amount-desc":return(0,d.B)(Number(e.balance.amount),Number(t.balance.amount),"amount-asc"===a);case"completion-asc":case"completion-desc":return(0,d.B)(e.completionTime,t.completionTime,"completion-asc"===a);default:return 0}});return(0,s.jsxs)("div",{className:S,children:[(0,s.jsxs)("div",{className:I,style:y,children:[(0,s.jsx)(E,{children:"Unstakings"}),(0,s.jsx)(E,{onSort:c,rigthAlign:!0,sort:a,sorting:["staked-asc","staked-desc"],children:(0,s.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,s.jsx)(E,{rigthAlign:!0,children:(0,s.jsx)("div",{className:"text-right",children:"Status"})}),(0,s.jsx)(E,{onSort:c,rigthAlign:!0,sort:a,sorting:["date-asc","date-desc"],children:(0,s.jsx)("div",{className:"text-right",children:"Completion Time"})})]}),t.map((t,n)=>(0,s.jsx)(A,{stakingRef:e,unbonding:t,validator:o[t.validator]},n))]})})()]}):null})},42498:function(e,t,n){n.d(t,{I:function(){return r},i:function(){return l}});var s=n(3827);let r=e=>{let{className:t}=e;return(0,s.jsx)("div",{className:["h-[1px] w-full bg-[#ffffff33]",t||""].join(" ")})},l=()=>(0,s.jsx)("div",{className:"h-full w-[1px] bg-[#ffffff33]"})},37275:function(e,t,n){n.d(t,{Z:function(){return A}});var s=n(3827),r=n(64090),l=n(30298),i=n(82012),a=n(98245),c=n.n(a),o=n(59371);c().setAppElement(document.body);let d=e=>{let{children:t}=e;return(0,s.jsx)("div",{className:"mb-[16px] text-[16px] leading-[24px] text-typo-100 opacity-50",children:t})};var u=e=>{let{children:t,...n}=e;return(0,r.useEffect)(()=>{if(n.isOpen){let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[n.isOpen]),(0,s.jsx)(c(),{...n,style:{content:{background:"transparent",border:"none",bottom:"auto",boxShadow:"0px 0px 50px 0px #FFFFFF40",boxSizing:"border-box",display:"grid",gridTemplateColumns:"1fr",inset:0,maxHeight:"100%",minWidth:"100vw",outline:"none",overflow:"auto",padding:"0",pointerEvents:"none",position:"fixed",right:"auto",width:"100vw",zIndex:10},overlay:{backdropFilter:"blur(10px)",backgroundColor:"rgba(0, 0, 0, 0.5)"}},children:(0,s.jsxs)("div",{className:"relative min-h-[100vh] w-full overflow-auto bg-[#000] px-[16px] py-[80px] md:min-h-[unset] md:rounded-[48px] md:p-[50px] md:py-[40px]",style:{boxShadow:"0px 0px 50px 0px #FFFFFF40",boxSizing:"border-box",display:"flex",flexDirection:"column",height:"max-content",margin:"auto",maxWidth:"100vw",outline:"none",pointerEvents:"auto",position:"relative",width:"min-content"},children:[(0,s.jsx)("button",{className:"absolute right-[12px] top-[12px] w-[36px] cursor-pointer",dangerouslySetInnerHTML:{__html:o.kC},onClick:n.onRequestClose}),t]})})},x=n(88197),m=n(80469),p=n(62986),h=n(19807),f=(0,r.memo)(()=>{let e=(0,m.n)(),[t,n]=(0,r.useState)("confirm"),[a,c]=(0,r.useState)(!1),{account:o,client:f,staking:j}=e,{modal:g}=j.state,v=(null==g?void 0:g.type)==="cancel-unstaking";if(!v)return null;let{unbondings:N}=(null==g?void 0:g.content)||{};if(!(null==N?void 0:N.length))return null;let w="confirm"===t?(0,s.jsxs)("div",{className:"w-full text-center",children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsx)(i.ls,{children:"Are you sure?"})}),(0,s.jsxs)(d,{children:["We are currently completing the unstaking process.",(0,s.jsx)("br",{}),"Are you sure you want to cancel the process?"]}),(0,s.jsx)(i.zx,{className:"mt-[25px]",isLoading:a,onClick:()=>{f&&(c(!0),N.reduce(async(e,t)=>{await e;let n={delegator:o.bech32Address,validator:t.validator};await (0,h.mu)(n,t,f)},Promise.resolve()).then(()=>{(0,x.VZ)(o.bech32Address,j),n("completed")}).catch(()=>{(0,l.Am)("There was an unexpected error canceling your unstaking. Please try again later.",{type:"error"})}).finally(()=>{c(!1)}))},children:"CONFIRM"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsx)(i.ls,{children:"Success!"})}),(0,s.jsx)(d,{children:"You have successfully cancel the unstaking process, and you are now contributing to the security of the XION network again."})]}),(0,s.jsx)(i.zx,{className:"mt-[25px]",onClick:()=>{e.staking.dispatch((0,p.ZG)(null))},children:"CLOSE"})]});return(0,s.jsx)(u,{isOpen:v,onRequestClose:()=>{a||e.staking.dispatch((0,p.ZG)(null))},children:(0,s.jsx)("div",{className:"min-w-[90vw] md:min-w-[390px]",children:w})})}),j=n(22840),g=n(3237),v=n(66803);let N=async(e,t)=>{let{client:n,staking:s}=e,{modal:r}=s.state;if((null==r?void 0:r.type)!=="rewards")return;let{delegations:i}=(null==r?void 0:r.content)||{};if(!n||!(null==i?void 0:i.length))return;let a=e.account.bech32Address;i.reduce(async(e,t)=>{await e;let s=(0,v.bI)(t.rewards);if(new j.Z(s.amount).lt(g._H))return;let r={delegator:a,validator:t.validatorAddress};await (0,h.YY)(r,n)},Promise.resolve()).then(()=>(0,x.VZ)(a,s)).then(()=>{t("completed")}).catch(()=>{(0,l.Am)("There was an unexpected error claiming your rewards. Please try again later.",{type:"error"})})};var w=(0,r.memo)(()=>{let e=(0,m.n)(),[t,n]=(0,r.useState)("loading"),l=(0,r.useRef)(!1),{staking:a}=e,{modal:c}=a.state,o=(null==c?void 0:c.type)==="rewards";if((0,r.useEffect)(()=>{o&&!l.current&&(l.current=!0,N(e,n))},[o,e]),!o)return null;let x="loading"===t?(0,s.jsxs)("div",{className:"w-full text-center",children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsx)(i.ls,{children:"CLAIMING"})}),(0,s.jsx)(d,{children:"Wait until your rewards are withdrawn."}),(0,s.jsx)(i.zx,{className:"mt-[25px]",isLoading:!0})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsx)(i.ls,{children:"Success!"})}),(0,s.jsx)(d,{children:"You have claimed your staking rewards successfully."})]}),(0,s.jsx)(i.zx,{className:"mt-[25px]",onClick:()=>{e.staking.dispatch((0,p.ZG)(null))},children:"CLOSE"})]});return(0,s.jsx)(u,{isOpen:o,onRequestClose:()=>{"loading"!==t&&e.staking.dispatch((0,p.ZG)(null))},children:(0,s.jsx)("div",{className:"min-w-[90vw] md:min-w-[390px]",children:x})})}),b=n(39730),y=n(67497);let k="input";var S=()=>{let e=(0,m.n)(),{client:t}=e,[n,a]=(0,r.useState)(k),[c,o]=(0,r.useState)(!1),[h,f]=(0,r.useState)(""),[N,w]=(0,r.useState)(""),[S,C]=(0,r.useState)({amount:void 0,memo:void 0}),{account:Z,staking:A}=e,{modal:F}=A.state,E=(null==F?void 0:F.type)==="delegate";if((0,r.useEffect)(()=>()=>{a(k),C({}),f(""),w("")},[E]),!E)return null;let{validator:I}=null==F?void 0:F.content;if(!I)return null;let O=new j.Z(h),z=O.isNaN()?"":O.times(g.Ex),B=Object.values(S).some(e=>!!e),D=(0,b.ap)(A.state);return(0,s.jsx)(u,{isOpen:E,onRequestClose:()=>{c||e.staking.dispatch((0,p.ZG)(null))},children:(0,s.jsx)("div",{className:"min-w-[90vw] md:min-w-[390px]",children:(()=>{let r=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mb-[32px] mt-[32px] flex w-full flex-col items-center justify-center gap-[12px]",children:[(0,s.jsx)(i.Bz,{children:"Staked Amount (XION)"}),(0,s.jsx)(i.XJ,{children:O.toString()}),z&&(0,s.jsxs)(i.Bz,{children:["$",(0,y.HS)(z)]})]}),!!N&&(0,s.jsx)("div",{className:"mb-[32px] text-center italic",children:(0,s.jsx)("div",{children:N})})]});if("completed"===n)return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsx)(i.ls,{children:"SUCCESS!"})}),(0,s.jsxs)(d,{children:["You have successfully staked on"," ",I.description.moniker,". Thank you for contributing in securing the XION network."]})]}),r(),(0,s.jsx)(i.zx,{disabled:c,onClick:()=>{e.staking.dispatch((0,p.ZG)(null))},children:"CLOSE"})]});if("review"===n)return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsx)(i.ls,{children:"REVIEW"})}),(0,s.jsxs)(d,{children:["Get ready to stake your XION token with"," ",I.description.moniker,". Press 'Confirm' to proceed."]})]}),r(),(0,s.jsx)(i.zx,{isLoading:c,onClick:()=>{if(!t)return;o(!0);let e={delegator:Z.bech32Address,validator:I.operatorAddress};(0,x._5)(e,(0,v.Jp)(O),N,t,A).then(e=>(a("completed"),e())).catch(()=>{(0,l.Am)("Staking error",{type:"error"})}).finally(()=>{o(!1)})},children:"CONFIRM"})]});let u=()=>{if(!z||!D||O.isNaN()||O.gt(D))return C({...S,amount:"Invalid amount"}),!0};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsxs)(i.ls,{children:["Delegate To ",I.description.moniker]})}),D&&(()=>{let e=D.times(g.Ex);return(0,s.jsxs)("div",{className:"mt-[40px] flex w-full flex-col items-center justify-center gap-[12px] uppercase",children:[(0,s.jsx)(i.Bz,{children:"Available for delegation (XION)"}),(0,s.jsx)(i.XJ,{children:(0,y.HS)(D)}),(0,s.jsxs)(i.Bz,{children:["$",(0,y.HS)(e)]})]})})(),(0,s.jsxs)("div",{className:"mt-[40px] flex w-full flex-row justify-between",children:[(0,s.jsx)("div",{children:"Amount"}),!!z&&(0,s.jsxs)(i.Bz,{children:["= $",(0,y.HS)(z)]})]}),(0,s.jsxs)("form",{onSubmit:e=>{null==e||e.stopPropagation(),null==e||e.preventDefault(),!u()&&(!t||B||O.lt(0)||a("review"))},children:[(0,s.jsxs)("div",{className:"mt-[8px]",children:[(0,s.jsx)(i.Wz,{disabled:c,error:!!S.amount,onBlur:()=>{u()},onChange:e=>{S.amount&&C({...S,amount:void 0}),f(e.target.value)},value:h}),S.amount&&(0,s.jsx)(i.Xq,{children:S.amount})]}),(0,s.jsx)("div",{className:"mt-[40px] w-full",children:(0,s.jsx)(i.sr,{disabled:c,onChange:e=>{w(e.target.value)},placeholder:"Memo (Optional)",value:N})}),(0,s.jsx)("div",{className:"mt-[48px] w-full",children:(0,s.jsx)(i.zx,{disabled:c||B,type:"submit",children:"DELEGATE NOW"})})]})]})})()})})};let C="input";var Z=()=>{let e=(0,m.n)(),{client:t}=e,[n,a]=(0,r.useState)(C),[c,o]=(0,r.useState)(!1),[h,f]=(0,r.useState)({amount:void 0,memo:void 0}),[N,w]=(0,r.useState)(""),[k,S]=(0,r.useState)(""),{account:Z,staking:A}=e,{modal:F}=A.state,E=(null==F?void 0:F.type)==="undelegate";if((0,r.useEffect)(()=>()=>{a(C),w(""),f({}),S("")},[E]),!E)return null;let{validator:I}=null==F?void 0:F.content;if(!I)return null;let O=new j.Z(N),z=O.isNaN()?"":O.times(g.Ex),B=(0,b.U2)(A.state,I.operatorAddress),D=()=>{if(!z||!B||O.lte(0)||O.gt(new j.Z(B.amount)))return f({...h,amount:"Invalid amount"}),!0},T=e=>{null==e||e.stopPropagation(),null==e||e.preventDefault(),!D()&&t&&O.gt(0)&&a("review")};return(0,s.jsx)(u,{isOpen:E,onRequestClose:()=>{c||e.staking.dispatch((0,p.ZG)(null))},children:(0,s.jsx)("div",{className:"min-w-[90vw] md:min-w-[390px]",children:(()=>{let r=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mb-[32px] mt-[32px] flex w-full flex-col items-center justify-center gap-[12px]",children:[(0,s.jsx)(i.Bz,{children:"Unstaking Amount (XION)"}),(0,s.jsx)(i.XJ,{children:(0,y.HS)(O)}),(0,s.jsx)(i.Bz,{children:(0,y.H_)((0,v.Jp)(O))})]}),!!k&&(0,s.jsx)("div",{className:"mb-[32px] text-center italic",children:(0,s.jsx)("div",{children:k})})]});return"completed"===n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsx)(i.ls,{children:"SUCCESS!"})}),(0,s.jsxs)(d,{children:["You have successfully unstaked from"," ",I.description.moniker,". It takes ",g.Mx," ","days to complete the unstaking process"]})]}),r(),(0,s.jsx)(i.zx,{disabled:c,onClick:()=>{e.staking.dispatch((0,p.ZG)(null))},children:"CLOSE"})]}):"review"===n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsx)(i.ls,{children:"REVIEW"})}),(0,s.jsxs)(d,{children:["Unstaking your XION Token means you'll stop earning rewards. Remember, it takes ",g.Mx," days to complete the unstaking process."]})]}),r(),(0,s.jsx)(i.zx,{isLoading:c,onClick:()=>{if(!t)return;o(!0);let e={delegator:Z.bech32Address,validator:I.operatorAddress};(0,x.xu)(e,(0,v.Jp)(O),k,t,A).then(e=>(a("completed"),e())).catch(()=>{(0,l.Am)("Staking error",{type:"error"})}).finally(()=>{o(!1)})},children:"CONFIRM"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mb-[35px] text-center uppercase",children:(0,s.jsxs)(i.ls,{children:["Unstake From ",I.description.moniker]})}),B&&(()=>{let e=new j.Z(B.amount).times(g.Ex);return(0,s.jsxs)("div",{className:"mt-[40px] flex w-full flex-col items-center justify-center gap-[12px] uppercase",children:[(0,s.jsx)(i.Bz,{children:"Available amount (XION)"}),(0,s.jsx)(i.XJ,{children:(0,y.HS)(new j.Z(B.amount))}),(0,s.jsxs)(i.Bz,{children:["$",(0,y.HS)(e)]})]})})(),(0,s.jsxs)("div",{className:"mt-[40px] flex w-full flex-row justify-between",children:[(0,s.jsx)("div",{children:"Amount"}),!!z&&(0,s.jsxs)(i.Bz,{children:["=$",(0,y.HS)(z)]})]}),(0,s.jsxs)("form",{onSubmit:T,children:[(0,s.jsxs)("div",{className:"mt-[8px]",children:[(0,s.jsx)(i.Wz,{disabled:c,error:!!h.amount,onBlur:()=>{D()},onChange:e=>{h.amount&&f({...h,amount:void 0}),w(e.target.value)},value:N}),h.amount&&(0,s.jsx)(i.Xq,{children:h.amount})]}),(0,s.jsx)("div",{className:"mt-[40px] w-full",children:(0,s.jsx)(i.sr,{disabled:c,onChange:e=>{S(e.target.value)},placeholder:"Memo (Optional)",value:k})}),(0,s.jsx)("div",{className:"mt-[48px] w-full",children:(0,s.jsx)(i.zx,{disabled:c,type:"submit",children:"Unstake Now"})})]})]})})()})})},A=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(S,{}),(0,s.jsx)(Z,{}),(0,s.jsx)(w,{}),(0,s.jsx)(f,{})]})},48074:function(e,t,n){var s=n(3827);t.Z=e=>{let{text:t}=e,[n,r]=t.split(" ");return(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{children:n})," ",(0,s.jsx)("span",{className:"text-typo-200",children:r})]})}},89056:function(e,t,n){n.d(t,{P:function(){return a}});var s=n(64090),r=n(3237);let l={},i={getIdentityLogo:e=>{if(l[e])return l[e];let t=fetch("https://keybase.io/_/api/1.0/user/lookup.json?key_suffix=".concat(e)).then(e=>e.json()).then(e=>{var t,n,s,r;return(null==e?void 0:null===(r=e.them)||void 0===r?void 0:null===(s=r[0])||void 0===s?void 0:null===(n=s.pictures)||void 0===n?void 0:null===(t=n.primary)||void 0===t?void 0:t.url)||null}).catch(()=>null);return l[e]=t,t}},a=e=>{let[t,n]=(0,s.useState)(null);return(0,s.useEffect)(()=>{(async()=>{e&&n(await i.getIdentityLogo(e))})()},[e]),t||r.c1}},67497:function(e,t,n){n.d(t,{Em:function(){return i},HS:function(){return c},H_:function(){return d},PV:function(){return x},gg:function(){return a},i:function(){return o},ts:function(){return u}});var s=n(22840),r=n(3237),l=n(66803);let i=(e,t)=>{let n=(0,l.bI)(e),r=new s.Z(n.amount);if(r.eq(0))return"".concat(r.toFormat()," ").concat(n.denom);if(r.lt(1e-4))return"<".concat(1e-4," ").concat(n.denom);if(t){let e=Intl.NumberFormat("en",{notation:"compact"});return"".concat(e.format(r.toNumber())," ").concat(n.denom)}return"".concat(r.toFormat(4)," ").concat(n.denom)},a=e=>{if("number"!=typeof e||Number.isNaN(e))return null;let t=e<1e-4?"<0.1":(100*e).toFixed(1);return"".concat(t,"%")},c=(e,t)=>t&&e.lt(t)?"<".concat(t):Intl.NumberFormat("en",{notation:"compact"}).format(e.toNumber()),o=(e,t)=>{let n=new s.Z(e).div(new s.Z(10).pow(18)).toNumber();return"".concat((100*n).toFixed(t),"%")},d=(e,t)=>{let n=(0,l.bI)(e||(0,l.IB)()),i=new s.Z(e?n.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,n=Math.floor((t-Date.now())/864e5),s=new Date(t).toLocaleString("en-US",{month:"short"}),r=new Date(t).getDate(),l=new Date(t).getFullYear();return"in ".concat(n," day").concat(1===n?"":"s",", ").concat(s," ").concat(r," ").concat(l)},x=e=>e?"".concat(e.times(100).toFixed(2),"%"):"-"}}]); \ No newline at end of file diff --git a/_next/static/chunks/567-6a3fa84db28c4453.js b/_next/static/chunks/567-6a3fa84db28c4453.js deleted file mode 100644 index 8b9b227..0000000 --- a/_next/static/chunks/567-6a3fa84db28c4453.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(){},3237:function(t,e,n){"use strict";n.d(e,{Ex:function(){return s},Jg:function(){return r},Mx:function(){return d},Od:function(){return i},T$:function(){return a},Uv:function(){return g},_H:function(){return c},aJ:function(){return o},c1:function(){return u},sb:function(){return l}});let r=!0,a=void 0,i="https://rpc.xion-testnet.forbole.com",o="xion1z8gr3jn7rd5leyvz7z3zmelxmrz6q8lv7flc3a4u8kltwj6leags8u64qx",l="/xion-staking",s=10,u="".concat(l,"/default-avatar.svg"),d=r?3:21,c=1e-5,g=.001},82012:function(t,e,n){"use strict";n.d(e,{jr:function(){return h},zx:function(){return T},ZP:function(){return b},hp:function(){return w},M5:function(){return y},Rk:function(){return C},Xq:function(){return N},XJ:function(){return m},Bz:function(){return x},ls:function(){return f},Wz:function(){return _},yV:function(){return D},OL:function(){return v},sr:function(){return A},Mj:function(){return S},Y6:function(){return O},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(34417);let d=()=>{let t=(0,l.useRef)({}),e=(0,l.useContext)(u._);return t.current.state=e.state,t.current.dispatch=e.dispatch,{core:t.current}};var c=n(97573),g=n(59371);let p=t=>{let{children:e,className:n="",title:a}=t;return(0,r.jsx)("div",{className:["text-[24px] font-bold leading-[28px] text-white",n].join(" "),title:a,children:e})},f=t=>{let{children:e,className:n="",title:a}=t;return(0,r.jsx)("div",{className:["text-[32px] font-light leading-[38px]",n].join(" "),title:a,children:e})},m=t=>{let{children:e,className:n="",title:a}=t;return(0,r.jsx)("div",{className:["text-white; text-[40px] font-bold leading-[36px]",n].join(" "),title:a,children:e})},x=t=>{let{children:e,className:n="",color:a="text-[#ffffff80]",title:i}=t;return(0,r.jsx)("div",{className:["text-[14px] font-bold leading-[16px]",a,n].join(" "),title:i,children:e})},h=t=>{let{children:e,className:n="",title:a}=t;return(0,r.jsx)("div",{className:["text-[16px] font-normal leading-[24px] text-[#ffffffb3]",n].join(" "),title:a,children:e})},v=t=>{let{children:e,href:n}=t;return(0,r.jsx)(o.default,{className:"text-left font-normal leading-[24px] underline underline-offset-[2px]",href:n,children:e})},w=t=>{let{className:e,variant:n,...a}=t;return(0,r.jsx)("button",{...a,className:["cursor-pointer rounded-full bg-bg-550 px-[16px] py-[4px] text-white hover:bg-bg-600 disabled:cursor-not-allowed disabled:bg-bg-600 disabled:text-typo-150","danger"===n?"[&]:bg-dangerBg [&]: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:g.BR},onClick:()=>{navigator.clipboard.writeText(e),(0,s.Am)("Copied to clipboard",{type:"info"})}})},_=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-[rgba(255,255,255,0.2)]"].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"})]})},N=t=>{let{children:e}=t;return(0,r.jsx)("div",{className:"mt-[8px] text-danger",children:e})},A=t=>(0,r.jsx)("input",{...t,className:"h-[50px] w-full border-b-[1px] border-b-bg-400 bg-black py-[8px] focus:outline-none"}),T=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:g._m}})}):i.children})},C=t=>{let{children:e,className:n,id:o,modalClass:s,offset:u,placement:g,Trigger:p}=t,[f,m]=(0,l.useState)(null),{core:x}=d(),h=x.state.popupOpenId===o;return(0,r.jsxs)("div",{className:[n].join(" "),children:[(0,r.jsx)("button",{onClick:t=>{t.stopPropagation(),x.dispatch((0,c.h)(o))},ref:m,children:(0,r.jsx)(p,{id:o})}),h&&(0,r.jsx)(a.d,{onClickAway:()=>{h&&x.dispatch((0,c.h)(null))},children:(0,r.jsx)(i.G,{anchor:f,className:[s].join(" "),offset:u,open:h,placement:g,withTransition:!0,children:e})})]})},S=t=>(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"z-5 absolute bottom-[10px] left-0",children:(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:g.yC}})}),(0,r.jsx)("input",{...t,className:"border-b-[1px] border-b-transparent bg-transparent pb-[8px] pl-[24px] text-white outline-none hover:border-b-bg-400 focus:border-b-bg-400"})]}),O=t=>{let{active:e,...n}=t;return(0,r.jsx)("button",{...n,className:["border-b-[1px] pb-[4px] text-[12px] uppercase leading-[12px] tracking-[1.5px]",e?"border-b-white":"border-b-transparent"].join(" ")})},D=()=>(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center gap-[28px]",children:[(0,r.jsxs)("div",{className:"mt-[80px] text-typo-100 opacity-50",children:["Loading the data..."," "]}),(0,r.jsx)("div",{className:"mb-[80px] flex w-[80px] items-center justify-center",children:(0,r.jsx)("span",{className:"animate-spin",dangerouslySetInnerHTML:{__html:g.Qn}})})]})},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})},59371:function(t,e,n){"use strict";n.d(e,{BR:function(){return o},GI:function(){return c},Qn:function(){return r},Sf:function(){return l},_m:function(){return i},cx:function(){return d},gU:function(){return u},kC:function(){return s},yC:function(){return a}});let r='',a='',i='',o='',l='',s='',u='',d='',c=''},88197:function(t,e,n){"use strict";n.d(e,{wX:function(){return b},VZ:function(){return y},Dr:function(){return T},qp:function(){return A},_5:function(){return _},xu:function(){return N}});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))},x=async()=>{let t=await (0,a.C_)(),e=await t.mint.params().catch(()=>null);return(null==e?void 0:e.inflationMax)||.2};var h=n(19807),v=n(62986),w=n(39730);let b=async t=>{try{t.dispatch((0,v.Kv)(!0));let[e,n,r,a,i]=await Promise.all([l("BOND_STATUS_BONDED"),l("BOND_STATUS_UNBONDED"),l("BOND_STATUS_UNBONDING"),x(),c()]);[[e,"bonded"],[n,"unbonded"],[r,"unbonding"]].forEach(e=>{var n,r;let[a,i]=e;t.dispatch((0,v.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,v.DD)(i)),t.dispatch((0,v.Km)(a.toString())),t.dispatch((0,v.Kv)(!1))}catch(t){console.error("error fetching staking data:",t)}},y=async(t,e)=>{try{var n,r,a,o;e.dispatch((0,v.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,v.d0)(l)),e.dispatch((0,v.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,v.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,v.Kv)(!1))}catch(t){console.error("error fetching staking data:",t)}},_=async(t,e,n,r,a)=>(await (0,h.H0)(t,r,e,n),async()=>{await y(t.delegator,a)}),N=async(t,e,n,r,a)=>(await (0,h.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,w.mM)(e.state)[t]||await u(t);return e.dispatch((0,v.gT)(r)),r},T=async(t,e)=>{let n=(0,w.mM)(e.state)[t];if(n)return n;let r=await u(t);return e.dispatch((0,v.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 h},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))},x=t=>{let e=new Set;return t.filter(t=>{let n=t.id;return!e.has(n)&&(e.add(n),!0)})},h=(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=x(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 s},Sg:function(){return c},U2:function(){return o},ap:function(){return u},c3:function(){return g},jc:function(){return f},jv:function(){return l},mM:function(){return p},zq:function(){return d}});var r=n(22840),a=n(66803),i=n(19807);let o=(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)},l=(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)},s=(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)},u=t=>{let{tokens:e}=t;return e?new r.Z((0,a.bI)(e).amount):null},d=(t,e)=>{var n;return!!(null===(n=e.delegations)||void 0===n?void 0:n.items.some(e=>e.validatorAddress===t))},c=(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},g=t=>{let{delegations:e}=t;return null!=e&&!!e.items.length&&e.items.some(t=>(0,i.m)(null==t?void 0:t.rewards))},p=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}),f=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(3237);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())},19807:function(t,e,n){"use strict";n.d(e,{mu:function(){return b},YY:function(){return v},dQ:function(){return _},TI:function(){return y},m:function(){return w},H0:function(){return x},vZ:function(){return h}});var r=n(22840),a=n(53856),i=n(62884),o=n(3237),l=n(66803),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:"0",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,l.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},x=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)},h=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)},v=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)},w=t=>{if(!t)return!1;let e=(0,l.bI)(t);return new r.Z(e.amount).gte(o._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)},y=async(t,e)=>await e.queryContractSmart(o.aJ,{get_address_last_faucet_timestamp:{address:t}}).then(t=>{let e=Math.floor(Date.now()/1e3),n=parseInt(t.timestamp);return 0===n?{canFaucet:!0,denom:t.denom,lastFaucetTimestamp:0,maxBalance:t.amount_to_faucet,nextFaucetTimestamp:e}:{canFaucet:n+t.cooldown_periodawait e.execute(t,o.aJ,{faucet:{}},"auto").catch(m)}}]); \ No newline at end of file diff --git a/_next/static/chunks/567-b27cd3c75cf29dda.js b/_next/static/chunks/567-b27cd3c75cf29dda.js new file mode 100644 index 0000000..884e33a --- /dev/null +++ b/_next/static/chunks/567-b27cd3c75cf29dda.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(){},3237:function(t,e,n){"use strict";n.d(e,{Ex:function(){return s},Jg:function(){return r},Mx:function(){return d},Od:function(){return i},T$:function(){return a},Uv:function(){return g},_H:function(){return c},aJ:function(){return o},c1:function(){return u},sb:function(){return l}});let r=!0,a=void 0,i="https://rpc.xion-testnet.forbole.com",o="xion1z8gr3jn7rd5leyvz7z3zmelxmrz6q8lv7flc3a4u8kltwj6leags8u64qx",l="/xion-staking",s=10,u="".concat(l,"/default-avatar.svg"),d=r?3:21,c=1e-5,g=.001},82012:function(t,e,n){"use strict";n.d(e,{jr:function(){return h},zx:function(){return T},ZP:function(){return b},hp:function(){return w},M5:function(){return y},Rk:function(){return C},Xq:function(){return N},XJ:function(){return m},Bz:function(){return x},ls:function(){return f},Wz:function(){return _},yV:function(){return D},OL:function(){return v},sr:function(){return A},Mj:function(){return S},Y6:function(){return O},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(34417);let d=()=>{let t=(0,l.useRef)({}),e=(0,l.useContext)(u._);return t.current.state=e.state,t.current.dispatch=e.dispatch,{core:t.current}};var c=n(97573),g=n(59371);let p=t=>{let{children:e,className:n="",title:a}=t;return(0,r.jsx)("div",{className:["text-[24px] font-bold leading-[28px] text-white",n].join(" "),title:a,children:e})},f=t=>{let{children:e,className:n="",title:a}=t;return(0,r.jsx)("div",{className:["text-[32px] font-light leading-[38px]",n].join(" "),title:a,children:e})},m=t=>{let{children:e,className:n="",responsive:a=!1,title:i}=t;return(0,r.jsx)("div",{className:["text-white; text-[40px] font-bold leading-[36px]",a?"&:text-[24px] &:leading-[28px]":"",n].join(" "),title:i,children:e})},x=t=>{let{children:e,className:n="",color:a="text-[#ffffff80]",title:i}=t;return(0,r.jsx)("div",{className:["text-[14px] font-bold leading-[16px]",a,n].join(" "),title:i,children:e})},h=t=>{let{children:e,className:n="",title:a}=t;return(0,r.jsx)("div",{className:["text-[16px] font-normal leading-[24px] text-[#ffffffb3]",n].join(" "),title:a,children:e})},v=t=>{let{children:e,href:n}=t;return(0,r.jsx)(o.default,{className:"text-left font-normal leading-[24px] underline underline-offset-[2px]",href:n,children:e})},w=t=>{let{className:e,variant:n,...a}=t;return(0,r.jsx)("button",{...a,className:["cursor-pointer rounded-full bg-bg-550 px-[16px] py-[4px] text-white hover:bg-bg-600 disabled:cursor-not-allowed disabled:bg-bg-600 disabled:text-typo-150","danger"===n?"[&]:bg-dangerBg [&]: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:g.BR},onClick:()=>{navigator.clipboard.writeText(e),(0,s.Am)("Copied to clipboard",{type:"info"})}})},_=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-[rgba(255,255,255,0.2)]"].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"})]})},N=t=>{let{children:e}=t;return(0,r.jsx)("div",{className:"mt-[8px] text-danger",children:e})},A=t=>(0,r.jsx)("input",{...t,className:"h-[50px] w-full border-b-[1px] border-b-bg-400 bg-black py-[8px] focus:outline-none"}),T=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:g._m}})}):i.children})},C=t=>{let{children:e,className:n,id:o,modalClass:s,offset:u,placement:g,Trigger:p}=t,[f,m]=(0,l.useState)(null),{core:x}=d(),h=x.state.popupOpenId===o;return(0,r.jsxs)("div",{className:[n].join(" "),children:[(0,r.jsx)("button",{onClick:t=>{t.stopPropagation(),x.dispatch((0,c.h)(o))},ref:m,children:(0,r.jsx)(p,{id:o})}),h&&(0,r.jsx)(a.d,{onClickAway:()=>{h&&x.dispatch((0,c.h)(null))},children:(0,r.jsx)(i.G,{anchor:f,className:[s].join(" "),offset:u,open:h,placement:g,withTransition:!0,children:e})})]})},S=t=>(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"z-5 absolute bottom-[10px] left-0",children:(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:g.yC}})}),(0,r.jsx)("input",{...t,className:"border-b-[1px] border-b-transparent bg-transparent pb-[8px] pl-[24px] text-white outline-none hover:border-b-bg-400 focus:border-b-bg-400"})]}),O=t=>{let{active:e,...n}=t;return(0,r.jsx)("button",{...n,className:["border-b-[1px] pb-[4px] text-[12px] uppercase leading-[12px] tracking-[1.5px]",e?"border-b-white":"border-b-transparent"].join(" ")})},D=()=>(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center gap-[28px]",children:[(0,r.jsxs)("div",{className:"mt-[80px] text-typo-100 opacity-50",children:["Loading the data..."," "]}),(0,r.jsx)("div",{className:"mb-[80px] flex w-[80px] items-center justify-center",children:(0,r.jsx)("span",{className:"animate-spin",dangerouslySetInnerHTML:{__html:g.Qn}})})]})},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})},59371:function(t,e,n){"use strict";n.d(e,{BR:function(){return o},GI:function(){return c},Qn:function(){return r},Sf:function(){return l},_m:function(){return i},cx:function(){return d},gU:function(){return u},kC:function(){return s},yC:function(){return a}});let r='',a='',i='',o='',l='',s='',u='',d='',c=''},88197:function(t,e,n){"use strict";n.d(e,{wX:function(){return b},VZ:function(){return y},Dr:function(){return T},qp:function(){return A},_5:function(){return _},xu:function(){return N}});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))},x=async()=>{let t=await (0,a.C_)(),e=await t.mint.params().catch(()=>null);return(null==e?void 0:e.inflationMax)||.2};var h=n(19807),v=n(62986),w=n(39730);let b=async t=>{try{t.dispatch((0,v.Kv)(!0));let[e,n,r,a,i]=await Promise.all([l("BOND_STATUS_BONDED"),l("BOND_STATUS_UNBONDED"),l("BOND_STATUS_UNBONDING"),x(),c()]);[[e,"bonded"],[n,"unbonded"],[r,"unbonding"]].forEach(e=>{var n,r;let[a,i]=e;t.dispatch((0,v.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,v.DD)(i)),t.dispatch((0,v.Km)(a.toString())),t.dispatch((0,v.Kv)(!1))}catch(t){console.error("error fetching staking data:",t)}},y=async(t,e)=>{try{var n,r,a,o;e.dispatch((0,v.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,v.d0)(l)),e.dispatch((0,v.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,v.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,v.Kv)(!1))}catch(t){console.error("error fetching staking data:",t)}},_=async(t,e,n,r,a)=>(await (0,h.H0)(t,r,e,n),async()=>{await y(t.delegator,a)}),N=async(t,e,n,r,a)=>(await (0,h.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,w.mM)(e.state)[t]||await u(t);return e.dispatch((0,v.gT)(r)),r},T=async(t,e)=>{let n=(0,w.mM)(e.state)[t];if(n)return n;let r=await u(t);return e.dispatch((0,v.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 h},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))},x=t=>{let e=new Set;return t.filter(t=>{let n=t.id;return!e.has(n)&&(e.add(n),!0)})},h=(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=x(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 s},Sg:function(){return c},U2:function(){return o},ap:function(){return u},c3:function(){return g},jc:function(){return f},jv:function(){return l},mM:function(){return p},zq:function(){return d}});var r=n(22840),a=n(66803),i=n(19807);let o=(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)},l=(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)},s=(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)},u=t=>{let{tokens:e}=t;return e?new r.Z((0,a.bI)(e).amount):null},d=(t,e)=>{var n;return!!(null===(n=e.delegations)||void 0===n?void 0:n.items.some(e=>e.validatorAddress===t))},c=(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},g=t=>{let{delegations:e}=t;return null!=e&&!!e.items.length&&e.items.some(t=>(0,i.m)(null==t?void 0:t.rewards))},p=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}),f=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(3237);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())},19807:function(t,e,n){"use strict";n.d(e,{mu:function(){return b},YY:function(){return v},dQ:function(){return _},TI:function(){return y},m:function(){return w},H0:function(){return x},vZ:function(){return h}});var r=n(22840),a=n(53856),i=n(62884),o=n(3237),l=n(66803),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:"0",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,l.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},x=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)},h=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)},v=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)},w=t=>{if(!t)return!1;let e=(0,l.bI)(t);return new r.Z(e.amount).gte(o._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)},y=async(t,e)=>await e.queryContractSmart(o.aJ,{get_address_last_faucet_timestamp:{address:t}}).then(t=>{let e=Math.floor(Date.now()/1e3),n=parseInt(t.timestamp);return 0===n?{canFaucet:!0,denom:t.denom,lastFaucetTimestamp:0,maxBalance:t.amount_to_faucet,nextFaucetTimestamp:e}:{canFaucet:n+t.cooldown_periodawait e.execute(t,o.aJ,{faucet:{}},"auto").catch(m)}}]); \ No newline at end of file diff --git a/_next/static/chunks/app/layout-e74a2c6d7b2cecc3.js b/_next/static/chunks/app/layout-95e47f871f604368.js similarity index 100% rename from _next/static/chunks/app/layout-e74a2c6d7b2cecc3.js rename to _next/static/chunks/app/layout-95e47f871f604368.js diff --git a/_next/static/chunks/app/validator/page-6449348ec0f4fca5.js b/_next/static/chunks/app/validator/page-6449348ec0f4fca5.js deleted file mode 100644 index e8767ba..0000000 --- a/_next/static/chunks/app/validator/page-6449348ec0f4fca5.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[276],{90858:function(e,s,i){Promise.resolve().then(i.bind(i,66355))},66355:function(e,s,i){"use strict";i.r(s),i.d(s,{default:function(){return y}});var l=i(3827),a=i(59115),n=i(22840),t=i(20534),c=i(8792),d=i(15313),x=i(64090),r=i(3237),o=i(82012),m=i(88197),p=i(80469),h=i(62986),j=i(39730),v=i(89056),u=i(66803),g=i(67497),f=i(42498),N=i(37275),w=i(75615),b=i(62948);let k=()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0 hidden md:block",children:(0,l.jsx)(f.i,{})}),(0,l.jsx)("div",{className:"block w-full translate-y-[12px] md:hidden",children:(0,l.jsx)(f.I,{})})]});function S(){var e;let s=(0,d.useSearchParams)().get("address"),i=(0,p.n)(),[,a]=(0,w.dd)(),[t,c]=(0,x.useState)(!1),{isConnected:v,staking:f}=i,[N,S]=(0,x.useState)(null);if((0,x.useEffect)(()=>{(async()=>{s&&S(await (0,m.qp)(s,f))})()},[s,f]),!N)return(0,l.jsx)("div",{children:"Loading ..."});let y=(0,j.ap)(f.state),C=(0,j.U2)(f.state,null),z=(0,j.jv)(f.state,null),B=(0,j.Cn)(null,f.state),X=(0,b.S6)(f.state),I=(null===(e=f.state.unbondings)||void 0===e?void 0:e.items)||[],_=v?(0,l.jsxs)("div",{className:"flex flex-col gap-[32px] rounded-[24px] bg-bg-600 p-[24px] md:grid md:grid-cols-4 md:gap-0",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(o.Bz,{children:"Claimable Rewards (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px] flex flex-row items-center gap-[8px]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,l.jsxs)("div",{className:"flex flex-row items-center gap-[12px]",children:[B&&(0,l.jsx)(o.XJ,{title:[B.amount,"XION"].join(" "),children:(0,g.HS)(new n.Z(B.amount),r.Uv)}),(0,j.c3)(f.state)&&(0,l.jsx)(o.hp,{onClick:()=>{var e;f.dispatch((0,h.ZG)({content:{delegations:(null===(e=f.state.delegations)||void 0===e?void 0:e.items)||[]},type:"rewards"}))},children:"Claim"})]}),(0,l.jsx)(o.jr,{children:(0,g.H_)(B)})]})}),(0,l.jsx)(k,{})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(o.Bz,{children:"My Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:C&&(0,l.jsx)(o.XJ,{children:(0,g.HS)(new n.Z(C.amount))})}),(0,l.jsx)(o.jr,{children:(0,g.H_)(C)}),(0,l.jsx)(k,{})]}),(0,l.jsx)("div",{className:"flex flex-row gap-[16px]",children:(0,l.jsxs)("div",{className:"relative w-full",children:[(0,l.jsx)(o.Bz,{children:"Available For Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(o.XJ,{children:y?(0,g.HS)(y):"-"})}),(0,l.jsx)(o.jr,{children:y?(0,g.H_)((0,u.Jp)(y)):"-"}),(0,l.jsx)(k,{})]})}),(0,l.jsx)("div",{className:"flex flex-row gap-[16px]",children:(0,l.jsxs)("div",{children:[(0,l.jsx)(o.Bz,{children:"Unstakings (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-[12px]",children:[(0,l.jsx)(o.XJ,{children:z?(0,g.HS)(new n.Z(z.amount)):"-"}),!!(null==I?void 0:I.length)&&(0,l.jsx)("div",{className:"flex h-full flex-row items-end justify-end text-right",children:(0,l.jsx)("span",{children:(0,l.jsx)(o.hp,{className:"text-[14px]",onClick:()=>{f.dispatch((0,h.ZG)({content:{unbondings:I},type:"cancel-unstaking"}))},variant:"danger",children:"Cancel Unstake"})})})]})}),(0,l.jsx)(o.jr,{children:z?(0,g.H_)(z):"-"})]})})]}):(0,l.jsxs)("div",{className:"flex h-[220px] min-w-[1000px] flex-col items-center justify-center gap-[32px] rounded-[24px] bg-bg-600 uppercase",children:[(0,l.jsx)(o.ls,{children:"Please log in to view"}),(0,l.jsx)("div",{children:(0,l.jsx)(o.zx,{className:"[&]:min-w-[150px]",onClick:()=>{a(!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)(o.Dx,{children:"My Delegations"}),X&&(0,l.jsx)(b.sv,{isShowingDetails:t,setIsShowingDetails:c})]}),(0,l.jsx)("div",{className:"w-full overflow-auto",children:_}),X&&t&&(0,l.jsx)(b.ZP,{})]})}function y(){let e=(0,d.useSearchParams)().get("address"),s=(0,p.n)(),[i,w]=(0,x.useState)(null),b=(0,v.P)(null==i?void 0:i.description.identity);if((0,x.useEffect)(()=>{(async()=>{e&&w(await (0,m.qp)(e,s.staking))})()},[e,s]),!i)return(0,l.jsx)("div",{className:"mb-[36px] w-full",children:(0,l.jsx)(o.yV,{})});let k=(0,j.Sg)(i.tokens,s.staking.state),y=(0,g.gg)(k),C=new n.Z(i.tokens).div(new n.Z(10).pow(6)),z=(0,j.U2)(s.staking.state,i.operatorAddress),B=(0,j.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)(o.OL,{href:"/",children:"STAKING"})," ","> ",(0,l.jsx)("span",{className:"uppercase",children:i.description.moniker})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-[24px] overflow-auto p-[24px]",style:{backgroundImage:"url(".concat(r.sb,"/overview-bg.png)"),backgroundSize:"cover",borderRadius:16},children:[(0,l.jsxs)("div",{className:"flex w-full min-w-[1000px] flex-row items-center gap-[16px]",children:[(0,l.jsx)("img",{alt:"Validator logo",className:"block w-[80px] rounded-full",src:b||r.c1}),(0,l.jsxs)("div",{className:"flex flex-1 items-center gap-[16px]",children:[(0,l.jsx)("div",{className:"text-[32px] font-bold leading-[36px] text-white",children:i.description.moniker||""}),B&&(0,l.jsx)("div",{className:"rounded-[4px] bg-successBg px-[8px] py-[4px] text-[11px] text-success",children:"You staked"})]}),i.status===t.BondStatus.BOND_STATUS_BONDED&&(0,l.jsx)("div",{children:(0,l.jsx)(a.z,{disabled:!s.isConnected,onClick:()=>{s.staking.dispatch((0,h.ZG)({content:{validator:i},type:"delegate"}))},children:"DELEGATE NOW"})})]}),(0,l.jsx)(f.I,{className:"min-w-[1000px]"}),(0,l.jsxs)("div",{className:"grid min-w-[1000px] grid-cols-4",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(o.Bz,{children:"Total Stake (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(o.XJ,{children:(0,g.HS)(C)})}),(0,l.jsx)(o.jr,{children:(0,g.H_)((0,u.Jp)(C))}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(f.i,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(o.Bz,{children:"Commission Rate"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(o.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)(f.i,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(o.Bz,{children:"Voting Power"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(o.XJ,{children:y})}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(f.i,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(o.Bz,{children:"My Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(o.XJ,{children:z?(0,g.HS)(new n.Z((0,u.bI)(z).amount)):"-"})}),(0,l.jsx)(o.jr,{children:(0,g.H_)(z)})]})]}),(0,l.jsx)(f.I,{className:"min-w-[1000px]"}),(0,l.jsxs)("div",{className:"grid min-w-[1000px] grid-cols-4",children:[(0,l.jsxs)("div",{className:"col-span-2 flex flex-col gap-[8px]",children:[(0,l.jsx)(o.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)(o.M5,{textToCopy:i.operatorAddress})]})]}),i.description.website&&(0,l.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,l.jsx)(o.Bz,{color:"text-white",children:"Website"}),(0,l.jsx)(c.default,{href:i.description.website,target:"_blank",children:i.description.website})]}),i.description.securityContact&&(0,l.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,l.jsx)(o.Bz,{color:"text-white",children:"Security Contact"}),(0,l.jsx)(c.default,{href:"mailto:".concat(i.description.securityContact),children:i.description.securityContact})]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,l.jsx)(o.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)(S,{})]}),(0,l.jsx)(N.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/app/validator/page-99f45ac7476dce4e.js b/_next/static/chunks/app/validator/page-99f45ac7476dce4e.js new file mode 100644 index 0000000..0456478 --- /dev/null +++ b/_next/static/chunks/app/validator/page-99f45ac7476dce4e.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[276],{90858:function(e,s,i){Promise.resolve().then(i.bind(i,66355))},66355:function(e,s,i){"use strict";i.r(s),i.d(s,{default:function(){return y}});var l=i(3827),a=i(22840),n=i(20534),t=i(8792),c=i(15313),d=i(64090),x=i(3237),r=i(82012),o=i(88197),m=i(80469),p=i(62986),h=i(39730),j=i(89056),v=i(66803),u=i(67497),g=i(42498),f=i(37275),N=i(75615),w=i(62948);let b=()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0 hidden md:block",children:(0,l.jsx)(g.i,{})}),(0,l.jsx)("div",{className:"block w-full translate-y-[12px] md:hidden",children:(0,l.jsx)(g.I,{})})]});function k(){var e;let s=(0,c.useSearchParams)().get("address"),i=(0,m.n)(),[,n]=(0,N.dd)(),[t,j]=(0,d.useState)(!1),{isConnected:g,staking:f}=i,[k,y]=(0,d.useState)(null);if((0,d.useEffect)(()=>{(async()=>{s&&y(await (0,o.qp)(s,f))})()},[s,f]),!k)return(0,l.jsx)("div",{children:"Loading ..."});let S=(0,h.ap)(f.state),C=(0,h.U2)(f.state,null),z=(0,h.jv)(f.state,null),B=(0,h.Cn)(null,f.state),X=(0,w.S6)(f.state),I=(null===(e=f.state.unbondings)||void 0===e?void 0:e.items)||[],_=g?(0,l.jsxs)("div",{className:"flex flex-col gap-[32px] rounded-[24px] bg-bg-600 p-[24px] md:grid md:grid-cols-4 md:gap-0",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(r.Bz,{children:"Claimable Rewards (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px] flex flex-row items-center gap-[8px]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,l.jsxs)("div",{className:"flex flex-row items-center gap-[12px]",children:[B&&(0,l.jsx)(r.XJ,{title:[B.amount,"XION"].join(" "),children:(0,u.HS)(new a.Z(B.amount),x.Uv)}),(0,h.c3)(f.state)&&(0,l.jsx)(r.hp,{onClick:()=>{var e;f.dispatch((0,p.ZG)({content:{delegations:(null===(e=f.state.delegations)||void 0===e?void 0:e.items)||[]},type:"rewards"}))},children:"Claim"})]}),(0,l.jsx)(r.jr,{children:(0,u.H_)(B)})]})}),(0,l.jsx)(b,{})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(r.Bz,{children:"My Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:C&&(0,l.jsx)(r.XJ,{children:(0,u.HS)(new a.Z(C.amount))})}),(0,l.jsx)(r.jr,{children:(0,u.H_)(C)}),(0,l.jsx)(b,{})]}),(0,l.jsx)("div",{className:"flex flex-row gap-[16px]",children:(0,l.jsxs)("div",{className:"relative w-full",children:[(0,l.jsx)(r.Bz,{children:"Available For Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(r.XJ,{children:S?(0,u.HS)(S):"-"})}),(0,l.jsx)(r.jr,{children:S?(0,u.H_)((0,v.Jp)(S)):"-"}),(0,l.jsx)(b,{})]})}),(0,l.jsx)("div",{className:"flex flex-row gap-[16px]",children:(0,l.jsxs)("div",{children:[(0,l.jsx)(r.Bz,{children:"Unstakings (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-[12px]",children:[(0,l.jsx)(r.XJ,{children:z?(0,u.HS)(new a.Z(z.amount)):"-"}),!!(null==I?void 0:I.length)&&(0,l.jsx)("div",{className:"flex h-full flex-row items-end justify-end text-right",children:(0,l.jsx)("span",{children:(0,l.jsx)(r.hp,{className:"text-[14px]",onClick:()=>{f.dispatch((0,p.ZG)({content:{unbondings:I},type:"cancel-unstaking"}))},variant:"danger",children:"Cancel Unstake"})})})]})}),(0,l.jsx)(r.jr,{children:z?(0,u.H_)(z):"-"})]})})]}):(0,l.jsxs)("div",{className:"flex h-[220px] min-w-[1000px] flex-col items-center justify-center gap-[32px] rounded-[24px] bg-bg-600 uppercase",children:[(0,l.jsx)(r.ls,{children:"Please log in to view"}),(0,l.jsx)("div",{children:(0,l.jsx)(r.zx,{className:"[&]:min-w-[150px]",onClick:()=>{n(!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)(r.Dx,{children:"My Delegations"}),X&&(0,l.jsx)(w.sv,{isShowingDetails:t,setIsShowingDetails:j})]}),(0,l.jsx)("div",{className:"w-full overflow-auto",children:_}),X&&t&&(0,l.jsx)(w.ZP,{})]})}function y(){let e=(0,c.useSearchParams)().get("address"),s=(0,m.n)(),[i,N]=(0,d.useState)(null),w=(0,j.P)(null==i?void 0:i.description.identity);if((0,d.useEffect)(()=>{(async()=>{e&&N(await (0,o.qp)(e,s.staking))})()},[e,s]),!i)return(0,l.jsx)("div",{className:"mb-[36px] w-full",children:(0,l.jsx)(r.yV,{})});let b=(0,h.Sg)(i.tokens,s.staking.state),y=(0,u.gg)(b),S=new a.Z(i.tokens).div(new a.Z(10).pow(6)),C=(0,h.U2)(s.staking.state,i.operatorAddress),z=(0,h.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)(r.OL,{href:"/",children:"STAKING"})," ","> ",(0,l.jsx)("span",{className:"uppercase",children:i.description.moniker})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-[24px] overflow-auto p-[24px]",style:{backgroundImage:"url(".concat(x.sb,"/overview-bg.png)"),backgroundSize:"cover",borderRadius:16},children:[(0,l.jsxs)("div",{className:"flex w-full flex-col items-center gap-[16px] md:min-w-[1000px] md:flex-row",children:[(0,l.jsxs)("div",{className:"flex w-full flex-row justify-between gap-[16px]",children:[(0,l.jsx)("img",{alt:"Validator logo",className:"block w-[80px] rounded-full",src:w||x.c1}),(0,l.jsxs)("div",{className:"flex flex-1 items-center gap-[16px]",children:[(0,l.jsx)("div",{className:"text-[32px] font-bold leading-[36px] text-white",children:i.description.moniker||""}),z&&(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",{className:"flex w-full md:w-[unset]",children:(0,l.jsx)(r.zx,{className:"w-full md:w-max",disabled:!s.isConnected,onClick:()=>{s.staking.dispatch((0,p.ZG)({content:{validator:i},type:"delegate"}))},children:"DELEGATE NOW"})})]}),(0,l.jsx)(g.I,{className:"md:min-w-[1000px]"}),(0,l.jsxs)("div",{className:"grid grid-cols-2 md:min-w-[1000px] md:grid-cols-4",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(r.Bz,{children:"Total Stake (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(r.XJ,{responsive:!0,children:(0,u.HS)(S)})}),(0,l.jsx)(r.jr,{children:(0,u.H_)((0,v.Jp)(S))}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(g.i,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(r.Bz,{children:"Commission Rate"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(r.XJ,{responsive:!0,children:(0,u.i)(i.commission.commissionRates.rate,2)})}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(g.i,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(r.Bz,{children:"Voting Power"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(r.XJ,{responsive:!0,children:y})}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(g.i,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(r.Bz,{children:"My Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(r.XJ,{responsive:!0,children:C?(0,u.HS)(new a.Z((0,v.bI)(C).amount)):"-"})}),(0,l.jsx)(r.jr,{children:(0,u.H_)(C)})]})]}),(0,l.jsx)(g.I,{className:"md:min-w-[1000px]"}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-[24px] md:min-w-[1000px] md:grid-cols-4 md:gap-0",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-[8px] md:col-span-2",children:[(0,l.jsx)(r.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)(r.M5,{textToCopy:i.operatorAddress})]})]}),i.description.website&&(0,l.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,l.jsx)(r.Bz,{color:"text-white",children:"Website"}),(0,l.jsx)(t.default,{href:i.description.website,target:"_blank",children:i.description.website})]}),i.description.securityContact&&(0,l.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,l.jsx)(r.Bz,{color:"text-white",children:"Security Contact"}),(0,l.jsx)(t.default,{href:"mailto:".concat(i.description.securityContact),children:i.description.securityContact})]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,l.jsx)(r.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,u.i)(i.commission.commissionRates.maxRate,0)]}),(0,l.jsxs)("div",{children:["Max commission Change Rate:"," ",(0,u.i)(i.commission.commissionRates.maxChangeRate,0)]})]})]})]}),(0,l.jsx)(k,{})]}),(0,l.jsx)(f.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-b37fd64761982b6b.js b/_next/static/chunks/webpack-b37fd64761982b6b.js deleted file mode 100644 index 3fd5262..0000000 --- a/_next/static/chunks/webpack-b37fd64761982b6b.js +++ /dev/null @@ -1 +0,0 @@ -!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(l.O).every(function(e){return l.O[e](n[f])})?n.splice(f--,1):(c=!1,oXION Staking
Your Overview
Please Log In To View
Validators
Loading the data...
\ No newline at end of file +XION Staking
Your Overview
Please Log In To View
Validators
Loading the data...
\ No newline at end of file diff --git a/index.txt b/index.txt index 87edc1f..8d6e2f4 100644 --- a/index.txt +++ b/index.txt @@ -1,7 +1,7 @@ -2:I[64339,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-ef94f1be51e34b84.js","245","static/chunks/245-8266bc6575a22c44.js","567","static/chunks/567-6a3fa84db28c4453.js","495","static/chunks/495-5d52f82819642416.js","931","static/chunks/app/page-8a063383ca43f580.js"],""] -3:I[56225,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-ef94f1be51e34b84.js","567","static/chunks/567-6a3fa84db28c4453.js","185","static/chunks/app/layout-e74a2c6d7b2cecc3.js"],""] +2:I[64339,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-ef94f1be51e34b84.js","245","static/chunks/245-8266bc6575a22c44.js","567","static/chunks/567-b27cd3c75cf29dda.js","495","static/chunks/495-98b16a23a63c77ad.js","931","static/chunks/app/page-8a063383ca43f580.js"],""] +3:I[56225,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-ef94f1be51e34b84.js","567","static/chunks/567-b27cd3c75cf29dda.js","185","static/chunks/app/layout-95e47f871f604368.js"],""] 4:I[5613,[],""] 5:I[31778,[],""] -0:["nW_e3mAcSG--XWOlOUGVv",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},["$L1",["$","$L2",null,{}],null]]},[null,["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":{}}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/8e69049fa282e630.css","precedence":"next","crossOrigin":""}],["$","link","1",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/9abbf91051391e37.css","precedence":"next","crossOrigin":""}],["$","link","2",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/ca0d6868cc0498e3.css","precedence":"next","crossOrigin":""}]],"$L6"]]]] +0:["865nF-tH3SB-lTujYR9Vj",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},["$L1",["$","$L2",null,{}],null]]},[null,["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":{}}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/8e69049fa282e630.css","precedence":"next","crossOrigin":""}],["$","link","1",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/9abbf91051391e37.css","precedence":"next","crossOrigin":""}],["$","link","2",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/c146a6f34fb07589.css","precedence":"next","crossOrigin":""}]],"$L6"]]]] 6:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"XION Staking"}],["$","link","3",{"rel":"icon","href":"/xion-staking/favicon.ico","type":"image/x-icon","sizes":"16x16"}]] 1:null diff --git a/validator/index.html b/validator/index.html index 617c1ea..8b111ae 100644 --- a/validator/index.html +++ b/validator/index.html @@ -1 +1 @@ -XION Validator Details
\ No newline at end of file +XION Validator Details
\ No newline at end of file diff --git a/validator/index.txt b/validator/index.txt index 5c59bb7..c0e9780 100644 --- a/validator/index.txt +++ b/validator/index.txt @@ -1,8 +1,8 @@ 2:"$Sreact.suspense" -3:I[66355,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-ef94f1be51e34b84.js","245","static/chunks/245-8266bc6575a22c44.js","567","static/chunks/567-6a3fa84db28c4453.js","495","static/chunks/495-5d52f82819642416.js","276","static/chunks/app/validator/page-6449348ec0f4fca5.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-ef94f1be51e34b84.js","245","static/chunks/245-8266bc6575a22c44.js","567","static/chunks/567-b27cd3c75cf29dda.js","495","static/chunks/495-98b16a23a63c77ad.js","276","static/chunks/app/validator/page-99f45ac7476dce4e.js"],""] 4:I[5613,[],""] 5:I[31778,[],""] -6:I[56225,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-ef94f1be51e34b84.js","567","static/chunks/567-6a3fa84db28c4453.js","185","static/chunks/app/layout-e74a2c6d7b2cecc3.js"],""] -0:["nW_e3mAcSG--XWOlOUGVv",[[["",{"children":["validator",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["validator",{"children":["__PAGE__",{},["$L1",["$","$2",null,{"children":["$","$L3",null,{}]}],null]]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","validator","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]},[null,["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":{}}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/8e69049fa282e630.css","precedence":"next","crossOrigin":""}],["$","link","1",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/9abbf91051391e37.css","precedence":"next","crossOrigin":""}],["$","link","2",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/ca0d6868cc0498e3.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-ef94f1be51e34b84.js","567","static/chunks/567-b27cd3c75cf29dda.js","185","static/chunks/app/layout-95e47f871f604368.js"],""] +0:["865nF-tH3SB-lTujYR9Vj",[[["",{"children":["validator",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["validator",{"children":["__PAGE__",{},["$L1",["$","$2",null,{"children":["$","$L3",null,{}]}],null]]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","validator","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]},[null,["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":{}}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/8e69049fa282e630.css","precedence":"next","crossOrigin":""}],["$","link","1",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/9abbf91051391e37.css","precedence":"next","crossOrigin":""}],["$","link","2",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/c146a6f34fb07589.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