diff --git a/404.html b/404.html index ba5ef6a..7356ee6 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 ba5ef6a..7356ee6 100644 --- a/404/index.html +++ b/404/index.html @@ -1 +1 @@ -404: This page could not be found.

404

This page could not be found.

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

404

This page could not be found.

\ No newline at end of file diff --git a/_next/static/chunks/495-13767b7c31434034.js b/_next/static/chunks/495-09e3e638178dd613.js similarity index 100% rename from _next/static/chunks/495-13767b7c31434034.js rename to _next/static/chunks/495-09e3e638178dd613.js diff --git a/_next/static/chunks/567-6a3fa84db28c4453.js b/_next/static/chunks/567-6a3fa84db28c4453.js new file mode 100644 index 0000000..8b9b227 --- /dev/null +++ b/_next/static/chunks/567-6a3fa84db28c4453.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="",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-bf1c877d12071642.js b/_next/static/chunks/567-bf1c877d12071642.js deleted file mode 100644 index 6831f22..0000000 --- a/_next/static/chunks/567-bf1c877d12071642.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 l},Jg:function(){return r},Mx:function(){return u},Od:function(){return i},T$:function(){return a},Uv:function(){return c},_H:function(){return d},c1:function(){return s},sb:function(){return o}});let r=!0,a=void 0,i="https://rpc.xion-testnet.forbole.com",o="/xion-staking",l=10,s="".concat(o,"/default-avatar.svg"),u=r?3:21,d=1e-5,c=.001},82012:function(t,e,n){"use strict";n.d(e,{jr:function(){return h},zx:function(){return C},ZP:function(){return b},hp:function(){return w},M5:function(){return y},Rk:function(){return O},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 T},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"}),C=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})},O=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"})]}),T=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 C},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},C=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},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:"1000",denom:"uxion"}],gasLimit:r="400000",memo:a="",msgs:i}=t;return{amount:n,gas:await d(i,a).catch(()=>null)||r,granter:e}},g=t=>({amount:t.amount,denom:["UXION","XION"].includes(t.denom.toUpperCase())?t.denom.toLowerCase():t.denom}),p=t=>{if("UXION"===t.denom.toUpperCase())return g(t);if("XION"===t.denom.toUpperCase())return g((0,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)}}}]); \ No newline at end of file diff --git a/_next/static/chunks/app/layout-20ca0a110e12d2ac.js b/_next/static/chunks/app/layout-901b1a46108badab.js similarity index 82% rename from _next/static/chunks/app/layout-20ca0a110e12d2ac.js rename to _next/static/chunks/app/layout-901b1a46108badab.js index f5f2771..9cd2aaa 100644 --- a/_next/static/chunks/app/layout-20ca0a110e12d2ac.js +++ b/_next/static/chunks/app/layout-901b1a46108badab.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{18127:function(e,n,r){Promise.resolve().then(r.bind(r,56225))},56225:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return _}});var s=r(3827),t=r(75615);r(22754),r(25805);var c=r(30298);r(88062);var l=r(3237),i=r(8792),a=r(59115),o=r(59371),x=r(82012);let d=()=>(0,s.jsxs)("span",{className:"flex flex-row items-center gap-[8px] rounded-[8px] bg-bg-600 px-[16px] py-[18px]",children:[(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:o.gU}}),(0,s.jsx)("span",{className:"font-bold",children:"Account"})," ",(0,s.jsx)("span",{className:["rounded-[4px] p-[4px] text-[12px] uppercase",l.Jg?"bg-chain-testnetBg text-chain-testnetFg":"bg-chain-mainnetBg text-chain-mainnetFg"].join(" "),children:l.Jg?"Testnet":"Mainnet"})]});var u=()=>{let[,e]=(0,t.dd)(),{isConnected:n}=(0,t.hT)(),{logout:r}=(0,t.Hj)();return(0,s.jsx)("div",{className:"cursor-pointer",children:n?(0,s.jsx)(x.Rk,{Trigger:d,id:"nav-account",children:(0,s.jsx)("div",{className:"flex items-center justify-center rounded-[16px] bg-bg-600 px-[24px] py-[12px]",children:(0,s.jsx)(x.hp,{className:"bg-transparent",onClick:()=>{null==r||r()},variant:"danger",children:"Log out"})})}):(0,s.jsx)(a.z,{onClick:()=>{e(!0)},children:"Log in"})})};function h(e){let{children:n}=e,[,r]=(0,t.dd)();return(0,s.jsxs)("main",{className:"flex min-h-screen flex-col items-center",children:[(0,s.jsx)("nav",{className:"flex w-full flex-row",style:{borderBottom:"1px solid #333"},children:(0,s.jsxs)("div",{className:"page-container m-auto flex h-[80px] flex-row items-center justify-between px-[16px]",children:[(0,s.jsx)("div",{children:(0,s.jsx)(i.default,{className:"cursor-pointer",href:"/",children:(0,s.jsx)("img",{alt:"Xion Logo",src:"".concat(l.sb,"/xion-logo.svg")})})}),(0,s.jsx)(u,{})]})}),n,(0,s.jsx)(t.my,{onClose:()=>{r(!1)}})]})}var p=r(64090),f=r(97573),j=r(34417);let g=e=>{let{children:n}=e,[r,t]=(0,p.useReducer)(f.I,j.W);return(0,s.jsx)(j._.Provider,{value:{dispatch:t,state:r},children:n})};var m=r(80469),v=r(62986),b=r(544);let N=e=>{let{children:n}=e;return(0,m.f)(),(0,s.jsx)(s.Fragment,{children:n})},k=e=>{let{children:n}=e,[r,t]=(0,p.useReducer)(v.I6,b.W);return(0,p.useEffect)(()=>{window.stakingContext={state:r}},[r]),(0,s.jsx)(b.Y.Provider,{value:{dispatch:t,state:r},children:(0,s.jsx)(N,{children:n})})};r(63385);let w={contracts:[],dashboardUrl:l.T$,rpcUrl:l.Od,stake:!0};function _(e){let{children:n}=e;return(0,s.jsx)("html",{lang:"en",children:(0,s.jsxs)("body",{children:[(0,s.jsx)(t.B7,{config:w,children:(0,s.jsx)(g,{children:(0,s.jsx)(k,{children:(0,s.jsx)(h,{children:n})})})}),(0,s.jsx)(c.Ix,{closeOnClick:!0})]})})}},22754:function(){},25805:function(){},88062:function(){},63385:function(){}},function(e){e.O(0,[350,218,147,228,933,852,4,907,567,971,69,744],function(){return e(e.s=18127)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{18127:function(e,n,r){Promise.resolve().then(r.bind(r,56225))},56225:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return _}});var s=r(3827),t=r(75615);r(22754),r(25805);var c=r(30298);r(88062);var l=r(3237),i=r(8792),a=r(59115),o=r(59371),x=r(82012);let d=()=>(0,s.jsxs)("span",{className:"flex flex-row items-center gap-[8px] rounded-[8px] bg-bg-600 px-[16px] py-[18px]",children:[(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:o.gU}}),(0,s.jsx)("span",{className:"font-bold",children:"Account"})," ",(0,s.jsx)("span",{className:["rounded-[4px] p-[4px] text-[12px] uppercase",l.Jg?"bg-chain-testnetBg text-chain-testnetFg":"bg-chain-mainnetBg text-chain-mainnetFg"].join(" "),children:l.Jg?"Testnet":"Mainnet"})]});var u=()=>{let[,e]=(0,t.dd)(),{isConnected:n}=(0,t.hT)(),{logout:r}=(0,t.Hj)();return(0,s.jsx)("div",{className:"cursor-pointer",children:n?(0,s.jsx)(x.Rk,{Trigger:d,id:"nav-account",children:(0,s.jsx)("div",{className:"flex items-center justify-center rounded-[16px] bg-bg-600 px-[24px] py-[12px]",children:(0,s.jsx)(x.hp,{className:"bg-transparent",onClick:()=>{null==r||r()},variant:"danger",children:"Log out"})})}):(0,s.jsx)(a.z,{onClick:()=>{e(!0)},children:"Log in"})})};function h(e){let{children:n}=e,[,r]=(0,t.dd)();return(0,s.jsxs)("main",{className:"flex min-h-screen flex-col items-center",children:[(0,s.jsx)("nav",{className:"flex w-full flex-row",style:{borderBottom:"1px solid #333"},children:(0,s.jsxs)("div",{className:"page-container m-auto flex h-[80px] flex-row items-center justify-between px-[16px]",children:[(0,s.jsx)("div",{children:(0,s.jsx)(i.default,{className:"cursor-pointer",href:"/",children:(0,s.jsx)("img",{alt:"Xion Logo",src:"".concat(l.sb,"/xion-logo.svg")})})}),(0,s.jsx)(u,{})]})}),n,(0,s.jsx)(t.my,{onClose:()=>{r(!1)}})]})}var p=r(64090),f=r(97573),j=r(34417);let g=e=>{let{children:n}=e,[r,t]=(0,p.useReducer)(f.I,j.W);return(0,s.jsx)(j._.Provider,{value:{dispatch:t,state:r},children:n})};var m=r(80469),v=r(62986),b=r(544);let N=e=>{let{children:n}=e;return(0,m.f)(),(0,s.jsx)(s.Fragment,{children:n})},k=e=>{let{children:n}=e,[r,t]=(0,p.useReducer)(v.I6,b.W);return(0,p.useEffect)(()=>{window.stakingContext={state:r}},[r]),(0,s.jsx)(b.Y.Provider,{value:{dispatch:t,state:r},children:(0,s.jsx)(N,{children:n})})};r(63385);let w={contracts:[l.aJ],dashboardUrl:l.T$,rpcUrl:l.Od,stake:!0};function _(e){let{children:n}=e;return(0,s.jsx)("html",{lang:"en",children:(0,s.jsxs)("body",{children:[(0,s.jsx)(t.B7,{config:w,children:(0,s.jsx)(g,{children:(0,s.jsx)(k,{children:(0,s.jsx)(h,{children:n})})})}),(0,s.jsx)(c.Ix,{closeOnClick:!0})]})})}},22754:function(){},25805:function(){},88062:function(){},63385:function(){}},function(e){e.O(0,[350,218,147,228,933,852,4,907,567,971,69,744],function(){return e(e.s=18127)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/page-4b131f0944c093e1.js b/_next/static/chunks/app/page-4b131f0944c093e1.js new file mode 100644 index 0000000..9f24af4 --- /dev/null +++ b/_next/static/chunks/app/page-4b131f0944c093e1.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{67617:function(e,s,t){Promise.resolve().then(t.bind(t,64339))},64339:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return O}});var i=t(3827),a=t(64090),n=t(82012),l=t(80469),r=t(62948),c=t(75615),o=t(3237),d=t(88197),x=t(66803),m=t(19807),u=(0,a.memo)(()=>{let{isConnected:e}=(0,c.hT)(),{address:s,client:t,staking:r}=(0,l.n)(),[u,p]=(0,a.useState)({canFaucet:!1,denom:"",lastFaucetTimestamp:0,maxBalance:0,nextFaucetTimestamp:0}),[h,g]=(0,a.useState)(!1),j=(0,a.useCallback)(async()=>{if(e&&s&&t){var i,a;let e=await (0,m.TI)(s,t);(null===(i=r.state.tokens)||void 0===i?void 0:i.denom)===e.denom&&o.Jg&&(parseInt(null===(a=r.state.tokens)||void 0===a?void 0:a.amount)>e.maxBalance?p({...e,canFaucet:!1}):p(e))}},[e,s,t,r.state.tokens]);if((0,a.useEffect)(()=>{j()},[e,s,t,j]),!e||!u.canFaucet)return null;let v=(0,x.bI)({amount:u.maxBalance.toString(),denom:u.denom});return(0,i.jsx)("div",{className:"grid min-h-[144px] flex-col items-center justify-center gap-[8px] overflow-auto",style:{gridTemplateColumns:"1fr"},children:u.canFaucet&&(0,i.jsxs)(n.zx,{isLoading:h,onClick:async()=>{if(t)try{g(!0),await (0,m.dQ)(s,t)}catch(e){console.error(e)}finally{await (0,d.VZ)(s,r),g(!1)}},children:["Faucet ",v.amount," ",v.denom]})})}),p=t(37275),h=t(22840),g=t(62986),j=t(39730),v=t(67497),f=t(42498);let w="absolute bottom-[24px] right-[-8px] top-[24px]",N="relative flex h-full flex-col items-start gap-3 p-[24px]";var b=(0,a.memo)(()=>{let{isConnected:e}=(0,c.hT)(),{staking:s}=(0,l.n)(),[,t]=(0,c.dd)();if(!e)return(0,i.jsxs)("div",{className:"flex min-h-[212px] flex-col items-center justify-center gap-[8px] px-[12px] uppercase",style:{backgroundImage:"url(".concat(o.sb,"/overview-bg.png)"),borderRadius:24},children:[(0,i.jsx)(n.ls,{className:"text-center",children:"Please Log In To View"}),(0,i.jsx)("div",{children:(0,i.jsx)(n.zx,{className:"min-w-[150px]",onClick:()=>{t(!0)},children:"Log In"})})]});let a=(0,j.U2)(s.state,null)||(0,x.IB)(),r=(0,j.Cn)(null,s.state)||(0,x.IB)(),d=(0,j.jc)(s.state),m=s.state.tokens?(0,x.bI)(s.state.tokens):(0,x.IB)();return(0,i.jsxs)("div",{className:"grid min-h-[144px] flex-col items-center justify-center gap-[8px] overflow-auto",style:{backgroundImage:"url(".concat(o.sb,"/overview-bg.png)"),borderRadius:24,gridTemplateColumns:"1fr 1fr 1fr 1fr"},children:[(0,i.jsxs)("div",{className:N,children:[(0,i.jsx)(n.Bz,{children:"Claimable Rewards (XION)"}),(0,i.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,i.jsx)(n.XJ,{title:[r.amount,"XION"].join(" "),children:(0,v.HS)(new h.Z(r.amount),o.Uv)}),(0,j.c3)(s.state)&&(0,i.jsx)(n.hp,{onClick:()=>{var e;s.dispatch((0,g.ZG)({content:{delegations:(null===(e=s.state.delegations)||void 0===e?void 0:e.items)||[]},type:"rewards"}))},children:"Claim"})]}),(0,i.jsx)(n.jr,{children:(0,v.H_)(r)}),(0,i.jsx)("div",{className:w,children:(0,i.jsx)(f.i,{})})]}),(0,i.jsxs)("div",{className:N,children:[(0,i.jsx)(n.Bz,{children:"APR"}),(0,i.jsx)(n.XJ,{children:(0,v.PV)(d)}),(0,i.jsx)("div",{className:w,children:(0,i.jsx)(f.i,{})})]}),(0,i.jsxs)("div",{className:N,children:[(0,i.jsx)(n.Bz,{children:"Delegated Amount (XION)"}),(0,i.jsx)(n.XJ,{title:(0,v.Em)(a),children:(0,v.HS)(new h.Z(a.amount),o.Uv)}),(0,i.jsx)(n.jr,{children:(0,v.H_)(a)}),(0,i.jsx)("div",{className:w,children:(0,i.jsx)(f.i,{})})]}),(0,i.jsxs)("div",{className:N,children:[(0,i.jsx)(n.Bz,{children:"Available For Delegation (XION)"}),(0,i.jsx)(n.XJ,{title:(0,v.Em)(m),children:(0,v.HS)(new h.Z(m.amount))}),(0,i.jsx)(n.jr,{children:(0,v.H_)(m)})]})]})}),k=t(20534),S=t(143),y=t(80148),B=t(89056),C=t(26605),I=t(48074);let D={gap:"16px",gridTemplateColumns:"350px repeat(3, 1fr) 80px 100px",minWidth:800},A=e=>{let{disabled:s,onStake:t,staking:a,validator:l}=e,{identity:r}=l.description,c=(0,B.P)(r),o=(0,j.Sg)(null==l?void 0:l.tokens,a.state),d=(0,v.gg)(o);return(0,i.jsxs)("div",{className:"flex w-full flex-col items-center justify-between gap-0",style:{minWidth:800},children:[(0,i.jsxs)("div",{className:"grid w-full items-center justify-between gap-2 p-4",style:D,children:[(0,i.jsxs)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:[(0,i.jsx)(S.D,{logo:c}),(0,i.jsxs)("div",{className:"flex flex-col justify-center gap-[2px] text-left",children:[(0,i.jsx)("div",{className:"max-w-[150px] overflow-hidden truncate text-[14px] font-bold leading-[20px] md:max-w-[300px]",children:l.description.moniker}),(0,i.jsx)(C.Z,{address:l.operatorAddress})]}),(0,i.jsx)("div",{className:"flex min-w-max flex-col items-center justify-center",children:(0,j.zq)(l.operatorAddress,a.state)&&(0,i.jsx)("div",{className:"rounded-[2px] bg-successBg px-[8px] py-[2px] text-[11px] font-medium leading-[16px] tracking-normal text-success",children:"You staked"})})]}),(0,i.jsx)("div",{className:"text-right",children:(0,i.jsx)(I.Z,{text:(0,v.Em)((0,x.kw)(new h.Z(l.tokens)),!0)})}),(0,i.jsx)("div",{className:"text-right",children:(0,v.i)(l.commission.commissionRates.rate,2)}),o&&(0,i.jsx)("div",{className:"text-right",children:d}),(0,i.jsx)("div",{className:"text-right",children:(0,i.jsx)(n.OL,{href:"/validator?address=".concat(l.operatorAddress),children:"Details"})}),t&&(0,i.jsx)("div",{children:(0,i.jsx)(n.hp,{disabled:s,onClick:t,children:"Delegate"})})]}),(0,i.jsx)("div",{className:"box-content h-[1px] bg-bg-500",style:{width:"calc(100% - 48px)"}})]})},T=S.N;var _=(0,a.memo)(()=>{var e,s,t;let{isConnected:r,staking:c}=(0,l.n)(),[o,d]=(0,a.useState)("none"),[x,m]=(0,a.useState)("active"),[u,p]=(0,a.useState)(""),{validators:v}=c.state,f=(null===(e=v.bonded)||void 0===e?void 0:e.items)||[],w=((null===(s=v.unbonded)||void 0===s?void 0:s.items)||[]).concat((null===(t=v.unbonding)||void 0===t?void 0:t.items)||[]),N=!c.state.validators.bonded||!c.state.validators.unbonding||!c.state.validators.bonded,b=("active"===x?f:w).filter("active"===x?e=>e.status===k.BondStatus.BOND_STATUS_BONDED:e=>e.status===k.BondStatus.BOND_STATUS_UNBONDED||e.status===k.BondStatus.BOND_STATUS_UNBONDING).slice().sort((e,s)=>{if("none"===o)return 0;if(["voting-power-asc","voting-power-desc"].includes(o)){let t=(0,j.Sg)(e.tokens,c.state),i=(0,j.Sg)(s.tokens,c.state);return(0,y.B)(t,i,"voting-power-asc"===o)}if(["commission-asc","commission-desc"].includes(o)){let t=parseFloat(e.commission.commissionRates.rate),i=parseFloat(s.commission.commissionRates.rate);return(0,y.B)(t,i,"commission-asc"===o)}if(["name-asc","name-desc"].includes(o)){let t=e.description.moniker.toLowerCase(),i=s.description.moniker.toLowerCase();return(0,y.B)(t,i,"name-asc"===o)}if(["staked-asc","staked-desc"].includes(o)){let t=new h.Z(e.tokens),i=new h.Z(s.tokens);return(0,y.B)(t,i,"staked-asc"===o)}return 0}).filter(e=>{if(!u)return!0;let s=e.description.moniker.toLowerCase(),t=e.operatorAddress.toLowerCase();return s.includes(u.toLowerCase())||t.includes(u.toLowerCase())});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex flex-col md:grid md:grid-cols-3",children:[(0,i.jsxs)("div",{className:"flex w-full flex-col justify-start gap-[32px] md:flex-row md:gap-[16px]",children:[(0,i.jsx)(n.Dx,{children:"Validators"}),(0,i.jsx)(n.Mj,{onChange:e=>p(e.target.value),value:u})]}),(0,i.jsxs)("div",{className:"mt-[12px] flex flex-row items-center justify-center gap-[40px] uppercase md:mt-0",children:[(0,i.jsxs)(n.Y6,{active:"active"===x,onClick:()=>{m("active")},children:["Active (",f.length,")"]}),(0,i.jsxs)(n.Y6,{active:"inactive"===x,onClick:()=>{m("inactive")},children:["Inactive (",w.length,")"]})]})]}),(0,i.jsxs)("div",{className:"min-h-[100px] overflow-auto rounded-[24px] bg-bg-600 pb-4 text-typo-100",children:[(0,i.jsxs)("div",{className:"grid w-full items-center justify-between gap-2 bg-bg-500 p-4 uppercase",style:D,children:[(0,i.jsx)(T,{onSort:d,sort:o,sorting:["name-asc","name-desc"],children:"Validator"}),(0,i.jsx)(T,{onSort:d,rigthAlign:!0,sort:o,sorting:["staked-asc","staked-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,i.jsx)(T,{onSort:d,rigthAlign:!0,sort:o,sorting:["commission-asc","commission-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Commission"})}),(0,i.jsx)(T,{onSort:d,rigthAlign:!0,sort:o,sorting:["voting-power-asc","voting-power-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Voting Power"})})]}),N&&(0,i.jsx)(n.yV,{}),b.map(e=>(0,i.jsx)(A,{disabled:!r,onStake:"active"===x?()=>{c.dispatch((0,g.ZG)({content:{validator:e},type:"delegate"}))}:null,staking:c,validator:e},e.operatorAddress))]})]})}),O=(0,a.memo)(function(){let{staking:e}=(0,l.n)(),[s,t]=(0,a.useState)(!1),c=(0,r.S6)(e.state);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"page-container flex flex-col gap-6 px-[12px] pb-[24px] md:px-[24px]",children:[(0,i.jsxs)("div",{className:"mt-[40px] flex flex-row justify-between text-left",children:[(0,i.jsx)(n.Dx,{children:"Your Staking Overview"}),c&&(0,i.jsx)(r.sv,{isShowingDetails:s,setIsShowingDetails:t})]}),(0,i.jsx)(u,{}),(0,i.jsx)(b,{}),s&&c&&(0,i.jsx)(r.ZP,{}),(0,i.jsx)(_,{})]}),(0,i.jsx)(p.Z,{})]})})}},function(e){e.O(0,[350,218,147,228,933,4,245,567,495,971,69,744],function(){return e(e.s=67617)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/page-c4a1206e04e8629e.js b/_next/static/chunks/app/page-c4a1206e04e8629e.js deleted file mode 100644 index 96a3e86..0000000 --- a/_next/static/chunks/app/page-c4a1206e04e8629e.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{67617:function(e,s,t){Promise.resolve().then(t.bind(t,64350))},64350:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return I}});var i=t(3827),n=t(64090),a=t(82012),l=t(80469),r=t(62948),c=t(37275),d=t(75615),o=t(22840),x=t(3237),m=t(62986),p=t(39730),u=t(66803),h=t(67497),g=t(42498);let j="absolute bottom-[24px] right-[-8px] top-[24px]",v="relative flex h-full flex-col items-start gap-3 p-[24px]";var f=(0,n.memo)(()=>{let{isConnected:e}=(0,d.hT)(),{staking:s}=(0,l.n)(),[,t]=(0,d.dd)();if(!e)return(0,i.jsxs)("div",{className:"flex min-h-[212px] flex-col items-center justify-center gap-[8px] px-[12px] uppercase",style:{backgroundImage:"url(".concat(x.sb,"/overview-bg.png)"),borderRadius:24},children:[(0,i.jsx)(a.ls,{className:"text-center",children:"Please Log In To View"}),(0,i.jsx)("div",{children:(0,i.jsx)(a.zx,{className:"min-w-[150px]",onClick:()=>{t(!0)},children:"Log In"})})]});let n=(0,p.U2)(s.state,null)||(0,u.IB)(),r=(0,p.Cn)(null,s.state)||(0,u.IB)(),c=(0,p.jc)(s.state),f=s.state.tokens?(0,u.bI)(s.state.tokens):(0,u.IB)();return(0,i.jsxs)("div",{className:"grid min-h-[144px] flex-col items-center justify-center gap-[8px] overflow-auto",style:{backgroundImage:"url(".concat(x.sb,"/overview-bg.png)"),borderRadius:24,gridTemplateColumns:"1fr 1fr 1fr 1fr"},children:[(0,i.jsxs)("div",{className:v,children:[(0,i.jsx)(a.Bz,{children:"Claimable Rewards (XION)"}),(0,i.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,i.jsx)(a.XJ,{title:[r.amount,"XION"].join(" "),children:(0,h.HS)(new o.Z(r.amount),x.Uv)}),(0,p.c3)(s.state)&&(0,i.jsx)(a.hp,{onClick:()=>{var e;s.dispatch((0,m.ZG)({content:{delegations:(null===(e=s.state.delegations)||void 0===e?void 0:e.items)||[]},type:"rewards"}))},children:"Claim"})]}),(0,i.jsx)(a.jr,{children:(0,h.H_)(r)}),(0,i.jsx)("div",{className:j,children:(0,i.jsx)(g.i,{})})]}),(0,i.jsxs)("div",{className:v,children:[(0,i.jsx)(a.Bz,{children:"APR"}),(0,i.jsx)(a.XJ,{children:(0,h.PV)(c)}),(0,i.jsx)("div",{className:j,children:(0,i.jsx)(g.i,{})})]}),(0,i.jsxs)("div",{className:v,children:[(0,i.jsx)(a.Bz,{children:"Delegated Amount (XION)"}),(0,i.jsx)(a.XJ,{title:(0,h.Em)(n),children:(0,h.HS)(new o.Z(n.amount),x.Uv)}),(0,i.jsx)(a.jr,{children:(0,h.H_)(n)}),(0,i.jsx)("div",{className:j,children:(0,i.jsx)(g.i,{})})]}),(0,i.jsxs)("div",{className:v,children:[(0,i.jsx)(a.Bz,{children:"Available For Delegation (XION)"}),(0,i.jsx)(a.XJ,{title:(0,h.Em)(f),children:(0,h.HS)(new o.Z(f.amount))}),(0,i.jsx)(a.jr,{children:(0,h.H_)(f)})]})]})}),N=t(20534),w=t(143),b=t(80148),k=t(89056),S=t(26605),y=t(48074);let B={gap:"16px",gridTemplateColumns:"350px repeat(3, 1fr) 80px 100px",minWidth:800},C=e=>{let{disabled:s,onStake:t,staking:n,validator:l}=e,{identity:r}=l.description,c=(0,k.P)(r),d=(0,p.Sg)(null==l?void 0:l.tokens,n.state),x=(0,h.gg)(d);return(0,i.jsxs)("div",{className:"flex w-full flex-col items-center justify-between gap-0",style:{minWidth:800},children:[(0,i.jsxs)("div",{className:"grid w-full items-center justify-between gap-2 p-4",style:B,children:[(0,i.jsxs)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:[(0,i.jsx)(w.D,{logo:c}),(0,i.jsxs)("div",{className:"flex flex-col justify-center gap-[2px] text-left",children:[(0,i.jsx)("div",{className:"max-w-[150px] overflow-hidden truncate text-[14px] font-bold leading-[20px] md:max-w-[300px]",children:l.description.moniker}),(0,i.jsx)(S.Z,{address:l.operatorAddress})]}),(0,i.jsx)("div",{className:"flex min-w-max flex-col items-center justify-center",children:(0,p.zq)(l.operatorAddress,n.state)&&(0,i.jsx)("div",{className:"rounded-[2px] bg-successBg px-[8px] py-[2px] text-[11px] font-medium leading-[16px] tracking-normal text-success",children:"You staked"})})]}),(0,i.jsx)("div",{className:"text-right",children:(0,i.jsx)(y.Z,{text:(0,h.Em)((0,u.kw)(new o.Z(l.tokens)),!0)})}),(0,i.jsx)("div",{className:"text-right",children:(0,h.i)(l.commission.commissionRates.rate,2)}),d&&(0,i.jsx)("div",{className:"text-right",children:x}),(0,i.jsx)("div",{className:"text-right",children:(0,i.jsx)(a.OL,{href:"/validator?address=".concat(l.operatorAddress),children:"Details"})}),t&&(0,i.jsx)("div",{children:(0,i.jsx)(a.hp,{disabled:s,onClick:t,children:"Delegate"})})]}),(0,i.jsx)("div",{className:"box-content h-[1px] bg-bg-500",style:{width:"calc(100% - 48px)"}})]})},D=w.N;var A=(0,n.memo)(()=>{var e,s,t;let{isConnected:r,staking:c}=(0,l.n)(),[d,x]=(0,n.useState)("none"),[u,h]=(0,n.useState)("active"),[g,j]=(0,n.useState)(""),{validators:v}=c.state,f=(null===(e=v.bonded)||void 0===e?void 0:e.items)||[],w=((null===(s=v.unbonded)||void 0===s?void 0:s.items)||[]).concat((null===(t=v.unbonding)||void 0===t?void 0:t.items)||[]),k=!c.state.validators.bonded||!c.state.validators.unbonding||!c.state.validators.bonded,S=("active"===u?f:w).filter("active"===u?e=>e.status===N.BondStatus.BOND_STATUS_BONDED:e=>e.status===N.BondStatus.BOND_STATUS_UNBONDED||e.status===N.BondStatus.BOND_STATUS_UNBONDING).slice().sort((e,s)=>{if("none"===d)return 0;if(["voting-power-asc","voting-power-desc"].includes(d)){let t=(0,p.Sg)(e.tokens,c.state),i=(0,p.Sg)(s.tokens,c.state);return(0,b.B)(t,i,"voting-power-asc"===d)}if(["commission-asc","commission-desc"].includes(d)){let t=parseFloat(e.commission.commissionRates.rate),i=parseFloat(s.commission.commissionRates.rate);return(0,b.B)(t,i,"commission-asc"===d)}if(["name-asc","name-desc"].includes(d)){let t=e.description.moniker.toLowerCase(),i=s.description.moniker.toLowerCase();return(0,b.B)(t,i,"name-asc"===d)}if(["staked-asc","staked-desc"].includes(d)){let t=new o.Z(e.tokens),i=new o.Z(s.tokens);return(0,b.B)(t,i,"staked-asc"===d)}return 0}).filter(e=>{if(!g)return!0;let s=e.description.moniker.toLowerCase(),t=e.operatorAddress.toLowerCase();return s.includes(g.toLowerCase())||t.includes(g.toLowerCase())});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex flex-col md:grid md:grid-cols-3",children:[(0,i.jsxs)("div",{className:"flex w-full flex-col justify-start gap-[32px] md:flex-row md:gap-[16px]",children:[(0,i.jsx)(a.Dx,{children:"Validators"}),(0,i.jsx)(a.Mj,{onChange:e=>j(e.target.value),value:g})]}),(0,i.jsxs)("div",{className:"mt-[12px] flex flex-row items-center justify-center gap-[40px] uppercase md:mt-0",children:[(0,i.jsxs)(a.Y6,{active:"active"===u,onClick:()=>{h("active")},children:["Active (",f.length,")"]}),(0,i.jsxs)(a.Y6,{active:"inactive"===u,onClick:()=>{h("inactive")},children:["Inactive (",w.length,")"]})]})]}),(0,i.jsxs)("div",{className:"min-h-[100px] overflow-auto rounded-[24px] bg-bg-600 pb-4 text-typo-100",children:[(0,i.jsxs)("div",{className:"grid w-full items-center justify-between gap-2 bg-bg-500 p-4 uppercase",style:B,children:[(0,i.jsx)(D,{onSort:x,sort:d,sorting:["name-asc","name-desc"],children:"Validator"}),(0,i.jsx)(D,{onSort:x,rigthAlign:!0,sort:d,sorting:["staked-asc","staked-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,i.jsx)(D,{onSort:x,rigthAlign:!0,sort:d,sorting:["commission-asc","commission-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Commission"})}),(0,i.jsx)(D,{onSort:x,rigthAlign:!0,sort:d,sorting:["voting-power-asc","voting-power-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Voting Power"})})]}),k&&(0,i.jsx)(a.yV,{}),S.map(e=>(0,i.jsx)(C,{disabled:!r,onStake:"active"===u?()=>{c.dispatch((0,m.ZG)({content:{validator:e},type:"delegate"}))}:null,staking:c,validator:e},e.operatorAddress))]})]})}),I=(0,n.memo)(function(){let{staking:e}=(0,l.n)(),[s,t]=(0,n.useState)(!1),d=(0,r.S6)(e.state);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"page-container flex flex-col gap-6 px-[12px] pb-[24px] md:px-[24px]",children:[(0,i.jsxs)("div",{className:"mt-[40px] flex flex-row justify-between text-left",children:[(0,i.jsx)(a.Dx,{children:"Your Staking Overview"}),d&&(0,i.jsx)(r.sv,{isShowingDetails:s,setIsShowingDetails:t})]}),(0,i.jsx)(f,{}),s&&d&&(0,i.jsx)(r.ZP,{}),(0,i.jsx)(A,{})]}),(0,i.jsx)(c.Z,{})]})})}},function(e){e.O(0,[350,218,147,228,933,4,245,567,495,971,69,744],function(){return e(e.s=67617)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/validator/page-42b81e7dac7b3f5e.js b/_next/static/chunks/app/validator/page-9982cae7072b6c93.js similarity index 100% rename from _next/static/chunks/app/validator/page-42b81e7dac7b3f5e.js rename to _next/static/chunks/app/validator/page-9982cae7072b6c93.js diff --git a/_next/static/0IMGRM6OmIfrcDbk56dgs/_buildManifest.js b/_next/static/hHzGEcjBwk_otAP_FQWYn/_buildManifest.js similarity index 100% rename from _next/static/0IMGRM6OmIfrcDbk56dgs/_buildManifest.js rename to _next/static/hHzGEcjBwk_otAP_FQWYn/_buildManifest.js diff --git a/_next/static/0IMGRM6OmIfrcDbk56dgs/_ssgManifest.js b/_next/static/hHzGEcjBwk_otAP_FQWYn/_ssgManifest.js similarity index 100% rename from _next/static/0IMGRM6OmIfrcDbk56dgs/_ssgManifest.js rename to _next/static/hHzGEcjBwk_otAP_FQWYn/_ssgManifest.js diff --git a/index.html b/index.html index db4cd92..70d5573 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -XION Staking
Your Staking Overview
Please Log In To View
Validators
Loading the data...
\ No newline at end of file +XION Staking
Your Staking Overview
Please Log In To View
Validators
Loading the data...
\ No newline at end of file diff --git a/index.txt b/index.txt index 3de68e0..63823a4 100644 --- a/index.txt +++ b/index.txt @@ -1,7 +1,7 @@ -2:I[64350,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-ef94f1be51e34b84.js","245","static/chunks/245-8266bc6575a22c44.js","567","static/chunks/567-bf1c877d12071642.js","495","static/chunks/495-13767b7c31434034.js","931","static/chunks/app/page-c4a1206e04e8629e.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-bf1c877d12071642.js","185","static/chunks/app/layout-20ca0a110e12d2ac.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-6a3fa84db28c4453.js","495","static/chunks/495-09e3e638178dd613.js","931","static/chunks/app/page-4b131f0944c093e1.js"],""] +3:I[56225,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-ef94f1be51e34b84.js","567","static/chunks/567-6a3fa84db28c4453.js","185","static/chunks/app/layout-901b1a46108badab.js"],""] 4:I[5613,[],""] 5:I[31778,[],""] -0:["0IMGRM6OmIfrcDbk56dgs",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},["$L1",["$","$L2",null,{}],null]]},[null,["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":{}}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/8e69049fa282e630.css","precedence":"next","crossOrigin":""}],["$","link","1",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/9abbf91051391e37.css","precedence":"next","crossOrigin":""}],["$","link","2",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/0d4ca32eaf93f705.css","precedence":"next","crossOrigin":""}]],"$L6"]]]] +0:["hHzGEcjBwk_otAP_FQWYn",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},["$L1",["$","$L2",null,{}],null]]},[null,["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":{}}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/8e69049fa282e630.css","precedence":"next","crossOrigin":""}],["$","link","1",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/9abbf91051391e37.css","precedence":"next","crossOrigin":""}],["$","link","2",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/0d4ca32eaf93f705.css","precedence":"next","crossOrigin":""}]],"$L6"]]]] 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 4fcb0ac..c9d4c71 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 489235a..aee75b1 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-bf1c877d12071642.js","495","static/chunks/495-13767b7c31434034.js","276","static/chunks/app/validator/page-42b81e7dac7b3f5e.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-6a3fa84db28c4453.js","495","static/chunks/495-09e3e638178dd613.js","276","static/chunks/app/validator/page-9982cae7072b6c93.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-bf1c877d12071642.js","185","static/chunks/app/layout-20ca0a110e12d2ac.js"],""] -0:["0IMGRM6OmIfrcDbk56dgs",[[["",{"children":["validator",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["validator",{"children":["__PAGE__",{},["$L1",["$","$2",null,{"children":["$","$L3",null,{}]}],null]]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","validator","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]},[null,["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":{}}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/8e69049fa282e630.css","precedence":"next","crossOrigin":""}],["$","link","1",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/9abbf91051391e37.css","precedence":"next","crossOrigin":""}],["$","link","2",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/0d4ca32eaf93f705.css","precedence":"next","crossOrigin":""}]],"$L7"]]]] +6:I[56225,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-ef94f1be51e34b84.js","567","static/chunks/567-6a3fa84db28c4453.js","185","static/chunks/app/layout-901b1a46108badab.js"],""] +0:["hHzGEcjBwk_otAP_FQWYn",[[["",{"children":["validator",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["validator",{"children":["__PAGE__",{},["$L1",["$","$2",null,{"children":["$","$L3",null,{}]}],null]]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","validator","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}]]},[null,["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":{}}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/8e69049fa282e630.css","precedence":"next","crossOrigin":""}],["$","link","1",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/9abbf91051391e37.css","precedence":"next","crossOrigin":""}],["$","link","2",{"rel":"stylesheet","href":"/xion-staking/_next/static/css/0d4ca32eaf93f705.css","precedence":"next","crossOrigin":""}]],"$L7"]]]] 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