From 368bbde341df4dbc27210d380d63dfced94c529f Mon Sep 17 00:00:00 2001 From: icfor Date: Thu, 7 Mar 2024 07:21:01 +0000 Subject: [PATCH] deploy: 8de4d6507a8bc6304bf336d8de62b32742a1ba63 --- 404.html | 2 +- .../chunks/{4-a82c649a6d50a6e6.js => 4-8a573df626c1a230.js} | 0 .../{495-624d50152cedc15b.js => 495-c4dfbb13cae0bb21.js} | 0 _next/static/chunks/567-473fbb658e625348.js | 1 + _next/static/chunks/567-bdc379a41ba90738.js | 1 - ...ayout-6d3018734569504b.js => layout-c5d40c49c0a85fbf.js} | 0 _next/static/chunks/app/page-1fd3883c94d911df.js | 1 - _next/static/chunks/app/page-e5bdeb2c1d5206a3.js | 1 + _next/static/chunks/app/validator/page-bd0b3b0c36f2e5d3.js | 1 + _next/static/chunks/app/validator/page-c64697378586801f.js | 1 - ...pack-151cf5fcd9f37b6b.js => webpack-2de6c244b51b4bcd.js} | 2 +- _next/static/css/3767cbc38a2bd2fc.css | 3 --- _next/static/css/c1327db2fe285a41.css | 3 +++ .../_buildManifest.js | 0 .../_ssgManifest.js | 0 index.html | 2 +- index.txt | 6 +++--- validator.html | 2 +- validator.txt | 6 +++--- 19 files changed, 16 insertions(+), 16 deletions(-) rename _next/static/chunks/{4-a82c649a6d50a6e6.js => 4-8a573df626c1a230.js} (100%) rename _next/static/chunks/{495-624d50152cedc15b.js => 495-c4dfbb13cae0bb21.js} (100%) create mode 100644 _next/static/chunks/567-473fbb658e625348.js delete mode 100644 _next/static/chunks/567-bdc379a41ba90738.js rename _next/static/chunks/app/{layout-6d3018734569504b.js => layout-c5d40c49c0a85fbf.js} (100%) delete mode 100644 _next/static/chunks/app/page-1fd3883c94d911df.js create mode 100644 _next/static/chunks/app/page-e5bdeb2c1d5206a3.js create mode 100644 _next/static/chunks/app/validator/page-bd0b3b0c36f2e5d3.js delete mode 100644 _next/static/chunks/app/validator/page-c64697378586801f.js rename _next/static/chunks/{webpack-151cf5fcd9f37b6b.js => webpack-2de6c244b51b4bcd.js} (98%) delete mode 100644 _next/static/css/3767cbc38a2bd2fc.css create mode 100644 _next/static/css/c1327db2fe285a41.css rename _next/static/{Q_T0naol4gB99AzBt99zS => gbnQcujrHZF4-kptybWHW}/_buildManifest.js (100%) rename _next/static/{Q_T0naol4gB99AzBt99zS => gbnQcujrHZF4-kptybWHW}/_ssgManifest.js (100%) diff --git a/404.html b/404.html index f011cf6..3311f62 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -404: This page could not be found.

404

This page could not be found.

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

404

This page could not be found.

\ No newline at end of file diff --git a/_next/static/chunks/4-a82c649a6d50a6e6.js b/_next/static/chunks/4-8a573df626c1a230.js similarity index 100% rename from _next/static/chunks/4-a82c649a6d50a6e6.js rename to _next/static/chunks/4-8a573df626c1a230.js diff --git a/_next/static/chunks/495-624d50152cedc15b.js b/_next/static/chunks/495-c4dfbb13cae0bb21.js similarity index 100% rename from _next/static/chunks/495-624d50152cedc15b.js rename to _next/static/chunks/495-c4dfbb13cae0bb21.js diff --git a/_next/static/chunks/567-473fbb658e625348.js b/_next/static/chunks/567-473fbb658e625348.js new file mode 100644 index 0000000..4fa899a --- /dev/null +++ b/_next/static/chunks/567-473fbb658e625348.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[567],{46601:function(){},89214:function(){},42480:function(){},85568:function(){},69386:function(){},31616:function(){},20131:function(){},16026:function(){},33370:function(){},82012:function(t,e,n){"use strict";n.d(e,{jr:function(){return x},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 h},ls:function(){return f},Wz:function(){return _},OL:function(){return v},sr:function(){return A},Mj:function(){return S},Y6:function(){return D},Dx:function(){return p}});var r=n(3827),a=n(20996),i=n(32283),o=n(8792),l=n(64090),s=n(30298),u=n(77658),d=n(34417);let c=()=>{let t=(0,l.useRef)({}),e=(0,l.useContext)(d._);return t.current.state=e.state,t.current.dispatch=e.dispatch,{core:t.current}};var g=n(97573);let p=t=>{let{children:e,className:n=""}=t;return(0,r.jsx)("div",{className:["text-[24px] font-bold leading-[28px] text-white",n].join(" "),children:e})},f=t=>{let{children:e,className:n=""}=t;return(0,r.jsx)("div",{className:["text-[32px] font-light leading-[38px]",n].join(" "),children:e})},m=t=>{let{children:e,className:n=""}=t;return(0,r.jsx)("div",{className:["text-white; text-[40px] font-bold leading-[36px]",n].join(" "),children:e})},h=t=>{let{children:e,className:n="",color:a="text-typo-150"}=t;return(0,r.jsx)("div",{className:["text-[14px] font-bold leading-[16px]",a,n].join(" "),children:e})},x=t=>{let{children:e,className:n=""}=t;return(0,r.jsx)("div",{className:["text-[16px] font-normal leading-[24px] text-typo-125",n].join(" "),children:e})},v=t=>{let{children:e,href:n}=t;return(0,r.jsx)(o.default,{className:"text-left font-normal leading-[24px] underline",href:n,children:e})},w=t=>{let{className:e,variant:n,...a}=t;return(0,r.jsx)("button",{...a,className:["cursor-pointer rounded-full bg-bg-550 px-[8px] py-[4px] text-white hover:bg-bg-600 disabled:cursor-not-allowed disabled:bg-bg-600 disabled:text-typo-150","danger"===n?"[&]:text-danger":"",e].join(" ")})},b=t=>{let{className:e,variant:n,...a}=t;return(0,r.jsx)("button",{...a,className:["cursor-pointer rounded-full bg-transparent px-[8px] py-[4px] text-white disabled:cursor-not-allowed disabled:bg-bg-600 disabled:text-typo-150","danger"===n?"[&]:text-danger":"",e].join(" ")})},y=t=>{let{textToCopy:e}=t;return(0,r.jsx)("button",{className:"cursor-pointer",dangerouslySetInnerHTML:{__html:u.BR},onClick:()=>{navigator.clipboard.writeText(e),(0,s.Am)("Copied to clipboard",{type:"info"})}})},_=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:u._m}})}):i.children})},O=t=>{let{children:e,className:n,id:o,modalClass:s,offset:u,placement:d,Trigger:p}=t,[f,m]=(0,l.useState)(null),{core:h}=c(),x=h.state.popupOpenId===o;return(0,r.jsxs)("div",{className:[n].join(" "),children:[(0,r.jsx)("button",{onClick:t=>{t.stopPropagation(),h.dispatch((0,g.h)(o))},ref:m,children:(0,r.jsx)(p,{id:o})}),x&&(0,r.jsx)(a.d,{onClickAway:()=>{x&&h.dispatch((0,g.h)(null))},children:(0,r.jsx)(i.G,{anchor:f,className:[s].join(" "),offset:u,open:x,placement:d,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:u.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"})]}),D=t=>{let{active:e,...n}=t;return(0,r.jsx)("button",{...n,className:["pb-[4px] text-[12px] uppercase leading-[12px] tracking-[1.5px]",e?"border-b-[1px]":""].join(" ")})}},97573:function(t,e,n){"use strict";n.d(e,{I:function(){return a},h:function(){return r}});let r=t=>({content:t,type:"SET_POPUP_OPEN_ID"}),a=(t,e)=>"SET_POPUP_OPEN_ID"===e.type?{...t,popupOpenId:e.content}:t},34417:function(t,e,n){"use strict";n.d(e,{W:function(){return a},_:function(){return i}});var r=n(64090);let a={popupOpenId:null},i=(0,r.createContext)({dispatch:()=>null,state:a})},88197:function(t,e,n){"use strict";n.d(e,{p4:function(){return N},wX:function(){return b},VZ:function(){return y},Dr:function(){return O},qp:function(){return C},_5:function(){return _},xu:function(){return A}});var r=n(22840),a=n(71694),i=n(66803);let o=null,l=async t=>o||(o=(await (0,a.C_)()).staking.validators(t).then(t=>(o=null,t))),s={},u=async t=>{let e=s[t];if(e)return e;let n=(await (0,a.C_)()).staking.validator(t).then(e=>(s[t]=void 0,e.validator));return s[t]=n,n},d=null,c=async()=>d||(d=(await (0,a.C_)()).staking.pool().then(t=>(d=null,t.pool))),g=async t=>{let e=await (0,a.N$)();return await e.getBalance(t,"uxion")},p=async t=>{let e=await (0,a.C_)();return await e.staking.delegatorDelegations(t)},f=async t=>{let e=await (0,a.C_)();return await e.staking.delegatorUnbondingDelegations(t)},m=async(t,e)=>{let n=await (0,a.C_)(),o=await n.distribution.delegationRewards(t,e);return(await Promise.all(o.rewards.map(async t=>{if(0==t.denom.indexOf("ibc/")){var e;let r=await n.ibc.transfer.denomTrace(t.denom.substring(4));t.denom=(null===(e=r.denomTrace)||void 0===e?void 0:e.baseDenom)||t.denom}return t}))).filter(t=>{var e;return(null===(e=t.denom)||void 0===e?void 0:e.toUpperCase())==="UXION"}).map(t=>({amount:new r.Z(t.amount).div(new r.Z(10).pow(18)).toString(),denom:t.denom})).map(t=>(0,i.bI)(t))},h=async()=>{let t=await (0,a.C_)(),e=await t.mint.params().catch(()=>null);return(null==e?void 0:e.inflationMax)||.2};var x=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"),h(),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,x.H0)(t,r,e,n),async()=>{await y(t.delegator,a)}),N=async(t,e,n,r)=>(await (0,x.mu)(t,e,n),async()=>{await y(t.delegator,r)}),A=async(t,e,n,r,a)=>(await (0,x.vZ)(t,r,e,n),async()=>{await y(t.delegator,a)}),C=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},O=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 x},Kg:function(){return l},Km:function(){return g},Kv:function(){return a},N7:function(){return p},Qx:function(){return o},T2:function(){return i},ZG:function(){return c},d0:function(){return r},gT:function(){return s},kS:function(){return d}});let r=t=>({content:t,type:"SET_TOKENS"}),a=t=>({content:t,type:"SET_IS_INFO_LOADING"}),i=(t,e,n)=>({content:t,reset:e,status:n,type:"ADD_VALIDATORS"}),o=(t,e)=>({content:t,reset:e,type:"ADD_DELEGATIONS"}),l=(t,e)=>({content:t,reset:e,type:"ADD_UNBONDINGS"}),s=t=>({content:t,type:"SET_VALIDATOR_DETAILS"}),u=t=>({content:t,type:"SET_POOL"}),d=()=>({content:null,type:"LOGOUT"}),c=t=>({content:t,type:"SET_MODAL"}),g=t=>({content:t,type:"SET_INFLATION"}),p=t=>({content:t,type:"SET_EXTRA_VALIDATORS"}),f=t=>{let e=new Set;return t.filter(t=>!e.has(t.operatorAddress)&&(e.add(t.operatorAddress),!0))},m=t=>{let e=new Set;return t.filter(t=>!e.has(t.validatorAddress)&&(e.add(t.validatorAddress),!0))},h=t=>{let e=new Set;return t.filter(t=>{let n=t.id;return!e.has(n)&&(e.add(n),!0)})},x=(t,e)=>{switch(e.type){case"SET_TOKENS":return{...t,tokens:e.content};case"ADD_VALIDATORS":{let n=!e.reset&&t.validators[e.status]||{items:[],nextKey:null,total:null};return n.total=e.content.total,n.nextKey=e.content.nextKey,n.items=f(n.items.concat(e.content.items)),{...t,validators:{...t.validators,[e.status]:n}}}case"ADD_DELEGATIONS":{let n=!e.reset&&t.delegations||{items:[],nextKey:null,total:null};return n.total=e.content.total,n.nextKey=e.content.nextKey,n.items=m(e.content.items.concat(n.items)),{...t,delegations:n}}case"ADD_UNBONDINGS":{let n=!e.reset&&t.unbondings||{items:[],nextKey:null,total:null};return n.total=e.content.total,n.nextKey=e.content.nextKey,n.items=h(e.content.items.concat(n.items)),{...t,unbondings:n}}case"SET_IS_INFO_LOADING":return{...t,isInfoLoading:e.content};case"SET_VALIDATOR_DETAILS":return{...t,validatorDetails:e.content};case"SET_POOL":return{...t,pool:e.content};case"SET_MODAL":return{...t,modal:e.content};case"LOGOUT":return{...t,delegations:null,unbondings:null};case"SET_EXTRA_VALIDATORS":return{...t,extraValidators:e.content};case"SET_INFLATION":return{...t,inflation:e.content};default:return t}}},39730:function(t,e,n){"use strict";n.d(e,{Cn:function(){return l},Sg:function(){return d},U2:function(){return i},ap:function(){return s},jc:function(){return g},jv:function(){return o},mM:function(){return c},zq:function(){return u}});var r=n(22840),a=n(66803);let i=(t,e)=>{let{delegations:n}=t;if(!(null==n?void 0:n.items.length))return null;let r=n.items.filter(t=>!e||t.validatorAddress===e).map(t=>t.balance);return(0,a.HJ)(r)},o=(t,e)=>{let{unbondings:n}=t;if(!(null==n?void 0:n.items.length))return null;let r=n.items.filter(t=>!e||t.validator===e).map(t=>t.balance);return(0,a.HJ)(r)},l=(t,e)=>{let{delegations:n}=e;if(!(null==n?void 0:n.items.length))return null;let r=n.items.filter(e=>!t||e.validatorAddress===t).map(t=>t.rewards);return(0,a.HJ)(r)},s=t=>{let{tokens:e}=t;return e?new r.Z((0,a.bI)(e).amount):null},u=(t,e)=>{var n;return!!(null===(n=e.delegations)||void 0===n?void 0:n.items.some(e=>e.validatorAddress===t))},d=(t,e)=>{let{pool:n}=e;return t&&"string"==typeof(null==n?void 0:n.bondedTokens)?new r.Z(t).div(new r.Z(n.bondedTokens)).toNumber():null},c=t=>Object.values(t.validators).map(t=>null==t?void 0:t.items).flat().reduce((t,e)=>e?{...t,[e.operatorAddress]:e}:t,t.extraValidators),g=t=>t.inflation?new r.Z(t.inflation):null},544:function(t,e,n){"use strict";n.d(e,{W:function(){return a},Y:function(){return i}});var r=n(64090);let a={delegations:null,extraValidators:{},inflation:null,isInfoLoading:!1,modal:null,pool:null,tokens:null,unbondings:null,validatorDetails:null,validators:{bonded:null,unbonded:null,unbonding:null}},i=(0,r.createContext)({dispatch:()=>null,state:a})},71694:function(t,e,n){"use strict";let r,a;n.d(e,{C_:function(){return u},N$:function(){return d},v4:function(){return c}});var i=n(18722),o=n(58015),l=n(43890),s=n(9016);let u=()=>(r||(r=(async()=>{let t=await l.Tendermint34Client.connect(s.Od);return o.QueryClient.withExtensions(t,o.setupStakingExtension,o.setupDistributionExtension,o.setupMintExtension,o.setupIbcExtension)})()),r),d=()=>(a||(a=(async()=>await o.StargateClient.connect(s.Od))()),a),c=async t=>{let e=localStorage.getItem("xion-authz-temp-account");if(!e)return;let n=await i.DirectSecp256k1HdWallet.deserialize(e,"abstraxion"),r=await n.getAccounts().then(t=>{var e;return null===(e=t[0])||void 0===e?void 0:e.address});return{client:await o.SigningStargateClient.connectWithSigner(s.Od,n,{registry:t}),granteeAddress:r}}},66803:function(t,e,n){"use strict";n.d(e,{HJ:function(){return d},IB:function(){return i},Jp:function(){return o},UO:function(){return l},bI:function(){return a},bP:function(){return u},kw:function(){return s}});var r=n(22840);let a=t=>{var e,n,a;return(null===(e=t.denom)||void 0===e?void 0:e.toUpperCase())==="UXION"?{amount:new r.Z(t.amount).div(new r.Z(10).pow(6)).toString(),denom:"XION"}:(null===(n=t.denom)||void 0===n?void 0:n.toUpperCase())==="XION"?{amount:t.amount,denom:"XION"}:{...t,denom:null===(a=t.denom)||void 0===a?void 0:a.toUpperCase()}},i=()=>({amount:"0",denom:"XION"}),o=t=>({amount:t.toString(),denom:"XION"}),l=t=>t&&new r.Z(t.amount).gt(0),s=t=>({amount:t.div(new r.Z(10).pow(6)).toString(),denom:"XION"}),u=t=>({amount:t.times(new r.Z(10).pow(6)).toString(),denom:"UXION"}),d=t=>t.reduce((t,e)=>({amount:new r.Z(t.amount).plus(a(e).amount).toString(),denom:t.denom}),i())},9016:function(t,e,n){"use strict";n.d(e,{Ex:function(){return l},Jg:function(){return r},Mx:function(){return u},Od:function(){return i},T$:function(){return a},_H:function(){return d},c1:function(){return s},sb:function(){return o}});let r=!0,a=void 0,i="https://rpc.xion-testnet.forbole.com",o="/xion-staking",l=10,s="".concat(o,"/default-avatar.svg"),u=r?3:21,d=1e-4},77658:function(t,e,n){"use strict";n.d(e,{BR:function(){return a},GI:function(){return s},Qn:function(){return d},Sf:function(){return r},_m:function(){return u},cx:function(){return l},gU:function(){return i},kC:function(){return o},yC:function(){return c}});let r='',a='',i='',o='',l='',s='',u='',d='',c=''},19807:function(t,e,n){"use strict";n.d(e,{mu:function(){return b},YY:function(){return v},sj:function(){return w},H0:function(){return h},vZ:function(){return x}});var r=n(22840),a=n(53856),i=n(62884),o=n(66803),l=n(9016),s=n(97481),u=n(71694);let d=async(t,e)=>{let{client:n,granteeAddress:r}=await (0,u.v4)()||{};if(!n||!r)return null;let a=[{typeUrl:"/cosmos.authz.v1beta1.MsgExec",value:s.MsgExec.fromPartial({grantee:r,msgs:t.map(t=>n.registry.encodeAsAny(t))})}];return await n.simulate(r,a,e).then(t=>Math.ceil(2*t).toString()).catch(t=>(console.log("debug: core/base.ts: Estimate error",t),null))},c=async t=>{let{address:e,amount:n=[{amount:"1000",denom:"uxion"}],gasLimit:r="400000",memo:a="",msgs:i}=t;return{amount:n,gas:await d(i,a).catch(()=>null)||r,granter:e}},g=t=>({amount:t.amount,denom:["UXION","XION"].includes(t.denom.toUpperCase())?t.denom.toLowerCase():t.denom}),p=t=>{if("UXION"===t.denom.toUpperCase())return g(t);if("XION"===t.denom.toUpperCase())return g((0,o.bP)(new r.Z(t.amount)));throw Error("Invalid coin denom")},f=t=>e=>{if(console.log("debug: base.ts: result",e),!e.events.find(e=>e.type===t))throw console.error(e),Error("Out of gas");return e},m=t=>{throw console.error(t),t},h=async(t,e,n,r)=>{let a=p(n),o={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:i.MsgDelegate.fromPartial({amount:a,delegatorAddress:t.delegator,validatorAddress:t.validator})},l=await c({address:t.delegator,memo:r,msgs:[o]});return await e.signAndBroadcast(t.delegator,[o],l,r).then(f("delegate")).catch(m)},x=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=>{let e=(0,o.bI)(t);return new r.Z(e.amount).gte(l._H)},b=async(t,e,n)=>{n.registry.register(i.MsgCancelUnbondingDelegation.typeUrl,i.MsgCancelUnbondingDelegation);let r=[{typeUrl:"/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",value:i.MsgCancelUnbondingDelegation.fromPartial({amount:e.balance,creationHeight:e.creationHeight,delegatorAddress:t.delegator,validatorAddress:t.validator})}],a=await c({address:t.delegator,msgs:r});return await n.signAndBroadcast(t.delegator,r,a,"").then(f("cancel_unbonding_delegation")).catch(m)}}}]); \ No newline at end of file diff --git a/_next/static/chunks/567-bdc379a41ba90738.js b/_next/static/chunks/567-bdc379a41ba90738.js deleted file mode 100644 index 1a3cb6a..0000000 --- a/_next/static/chunks/567-bdc379a41ba90738.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[567],{46601:function(){},89214:function(){},42480:function(){},85568:function(){},69386:function(){},31616:function(){},20131:function(){},16026:function(){},33370:function(){},82012:function(t,e,n){"use strict";n.d(e,{jr:function(){return v},zx:function(){return C},ZP:function(){return b},hp:function(){return x},M5:function(){return y},Rk:function(){return O},Xq:function(){return N},XJ:function(){return m},Bz:function(){return h},ls:function(){return f},Wz:function(){return _},OL:function(){return w},sr:function(){return A},Mj:function(){return S},Dx:function(){return p}});var r=n(3827),a=n(20996),i=n(32283),o=n(8792),l=n(64090),s=n(30298),u=n(77658),d=n(34417);let c=()=>{let t=(0,l.useRef)({}),e=(0,l.useContext)(d._);return t.current.state=e.state,t.current.dispatch=e.dispatch,{core:t.current}};var g=n(97573);let p=t=>{let{children:e,className:n=""}=t;return(0,r.jsx)("div",{className:["typo-title",n].join(" "),children:e})},f=t=>{let{children:e,className:n=""}=t;return(0,r.jsx)("div",{className:["typo-hero",n].join(" "),children:e})},m=t=>{let{children:e,className:n=""}=t;return(0,r.jsx)("div",{className:["heading2",n].join(" "),children:e})},h=t=>{let{children:e,className:n="",color:a="text-typo-150"}=t;return(0,r.jsx)("div",{className:["heading8",a,n].join(" "),children:e})},v=t=>{let{children:e,className:n=""}=t;return(0,r.jsx)("div",{className:["typo-body-medium",n].join(" "),children:e})},w=t=>{let{children:e,href:n}=t;return(0,r.jsx)(o.default,{className:"text-left font-normal leading-[24px] underline",href:n,children:e})},x=t=>{let{className:e,variant:n,...a}=t;return(0,r.jsx)("button",{...a,className:["cursor-pointer rounded-full bg-bg-550 px-[8px] py-[4px] text-white hover:bg-bg-600 disabled:cursor-not-allowed disabled:bg-bg-600 disabled:text-typo-150","danger"===n?"[&]:text-danger":"",e].join(" ")})},b=t=>{let{className:e,variant:n,...a}=t;return(0,r.jsx)("button",{...a,className:["cursor-pointer rounded-full bg-transparent px-[8px] py-[4px] text-white disabled:cursor-not-allowed disabled:bg-bg-600 disabled:text-typo-150","danger"===n?"[&]:text-danger":"",e].join(" ")})},y=t=>{let{textToCopy:e}=t;return(0,r.jsx)("button",{className:"cursor-pointer",dangerouslySetInnerHTML:{__html:u.BR},onClick:()=>{navigator.clipboard.writeText(e),(0,s.Am)("Copied to clipboard",{type:"info"})}})},_=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:u._m}})}):i.children})},O=t=>{let{children:e,className:n,id:o,modalClass:s,offset:u,placement:d,Trigger:p}=t,[f,m]=(0,l.useState)(null),{core:h}=c(),v=h.state.popupOpenId===o;return(0,r.jsxs)("div",{className:[n].join(" "),children:[(0,r.jsx)("button",{onClick:t=>{t.stopPropagation(),h.dispatch((0,g.h)(o))},ref:m,children:(0,r.jsx)(p,{id:o})}),v&&(0,r.jsx)(a.d,{onClickAway:()=>{v&&h.dispatch((0,g.h)(null))},children:(0,r.jsx)(i.G,{anchor:f,className:[s].join(" "),offset:u,open:v,placement:d,withTransition:!0,children:e})})]})},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:u.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"})]})},97573:function(t,e,n){"use strict";n.d(e,{I:function(){return a},h:function(){return r}});let r=t=>({content:t,type:"SET_POPUP_OPEN_ID"}),a=(t,e)=>"SET_POPUP_OPEN_ID"===e.type?{...t,popupOpenId:e.content}:t},34417:function(t,e,n){"use strict";n.d(e,{W:function(){return a},_:function(){return i}});var r=n(64090);let a={popupOpenId:null},i=(0,r.createContext)({dispatch:()=>null,state:a})},88197:function(t,e,n){"use strict";n.d(e,{p4:function(){return N},wX:function(){return b},VZ:function(){return y},Dr:function(){return O},qp:function(){return C},_5:function(){return _},xu:function(){return A}});var r=n(22840),a=n(71694),i=n(66803);let o=null,l=async t=>o||(o=(await (0,a.C_)()).staking.validators(t).then(t=>(o=null,t))),s={},u=async t=>{let e=s[t];if(e)return e;let n=(await (0,a.C_)()).staking.validator(t).then(e=>(s[t]=void 0,e.validator));return s[t]=n,n},d=null,c=async()=>d||(d=(await (0,a.C_)()).staking.pool().then(t=>(d=null,t.pool))),g=async t=>{let e=await (0,a.N$)();return await e.getBalance(t,"uxion")},p=async t=>{let e=await (0,a.C_)();return await e.staking.delegatorDelegations(t)},f=async t=>{let e=await (0,a.C_)();return await e.staking.delegatorUnbondingDelegations(t)},m=async(t,e)=>{let n=await (0,a.C_)(),o=await n.distribution.delegationRewards(t,e);return(await Promise.all(o.rewards.map(async t=>{if(0==t.denom.indexOf("ibc/")){var e;let r=await n.ibc.transfer.denomTrace(t.denom.substring(4));t.denom=(null===(e=r.denomTrace)||void 0===e?void 0:e.baseDenom)||t.denom}return t}))).filter(t=>{var e;return(null===(e=t.denom)||void 0===e?void 0:e.toUpperCase())==="UXION"}).map(t=>({amount:new r.Z(t.amount).div(new r.Z(10).pow(18)).toString(),denom:t.denom})).map(t=>(0,i.bI)(t))},h=async()=>{let t=await (0,a.C_)(),e=await t.mint.params().catch(()=>null);return(null==e?void 0:e.inflationMax)||.2};var v=n(19807),w=n(62986),x=n(39730);let b=async t=>{try{t.dispatch((0,w.Kv)(!0));let[e,n,r,a,i]=await Promise.all([l("BOND_STATUS_BONDED"),l("BOND_STATUS_UNBONDED"),l("BOND_STATUS_UNBONDING"),h(),c()]);[[e,"bonded"],[n,"unbonded"],[r,"unbonding"]].forEach(e=>{var n,r;let[a,i]=e;t.dispatch((0,w.T2)({items:a.validators,nextKey:(null===(n=a.pagination)||void 0===n?void 0:n.nextKey)||null,total:(null===(r=a.pagination)||void 0===r?void 0:r.total)||null},!0,i))}),t.dispatch((0,w.DD)(i)),t.dispatch((0,w.Km)(a.toString())),t.dispatch((0,w.Kv)(!1))}catch(t){console.error("error fetching staking data:",t)}},y=async(t,e)=>{try{var n,r,a,o;e.dispatch((0,w.Kv)(!0));let[l,s,u]=await Promise.all([g(t),p(t).then(async e=>({items:await Promise.all(e.delegationResponses.map(async e=>({balance:e.balance,rewards:await m(t,e.delegation.validatorAddress).then(t=>(0,i.HJ)(t)),validatorAddress:e.delegation.validatorAddress}))),pagination:e.pagination})),f(t).then(t=>({items:t.unbondingResponses.reduce((t,e)=>(t.push(...e.entries.map(t=>({balance:{amount:t.balance,denom:"uxion"},completionTime:Number(t.completionTime.seconds),completionTimeNanos:t.completionTime.nanos,creationHeight:t.creationHeight,id:t.unbondingId.toString(),validator:e.validatorAddress}))),t),[]),pagination:t.pagination})).catch(()=>({items:[],pagination:null})).then(t=>({items:t.items,pagination:t.pagination}))]);e.dispatch((0,w.d0)(l)),e.dispatch((0,w.Qx)({items:s.items,nextKey:(null===(n=s.pagination)||void 0===n?void 0:n.nextKey)||null,total:(null===(r=s.pagination)||void 0===r?void 0:r.total)||null},!0)),e.dispatch((0,w.Kg)({items:u.items,nextKey:(null===(a=u.pagination)||void 0===a?void 0:a.nextKey)||null,total:(null===(o=u.pagination)||void 0===o?void 0:o.total)||null},!0)),e.dispatch((0,w.Kv)(!1))}catch(t){console.error("error fetching staking data:",t)}},_=async(t,e,n,r,a)=>(await (0,v.H0)(t,r,e,n),async()=>{await y(t.delegator,a)}),N=async(t,e,n,r)=>(await (0,v.mu)(t,e,n),async()=>{await y(t.delegator,r)}),A=async(t,e,n,r,a)=>(await (0,v.vZ)(t,r,e,n),async()=>{await y(t.delegator,a)}),C=async(t,e)=>{var n;if((null===(n=e.state.validatorDetails)||void 0===n?void 0:n.operatorAddress)===t)return e.state.validatorDetails;let r=(0,x.mM)(e.state)[t]||await u(t);return e.dispatch((0,w.gT)(r)),r},O=async(t,e)=>{let n=(0,x.mM)(e.state)[t];if(n)return n;let r=await u(t);return e.dispatch((0,w.N7)({[t]:r,...e.state.extraValidators})),r}},80469:function(t,e,n){"use strict";let r;n.d(e,{f:function(){return d},n:function(){return u}});var a=n(75615),i=n(64090),o=n(88197),l=n(62986),s=n(544);let u=()=>{let t=(0,i.useRef)({}),e=(0,i.useContext)(s.Y);t.current.state=e.state,t.current.dispatch=e.dispatch;let{data:n,isConnected:o}=(0,a.hT)(),l=null==n?void 0:n.bech32Address;return{account:n,address:l,client:o?r:void 0,isConnected:o,staking:t.current}},d=()=>{let{client:t}=(0,a.Hj)(),{address:e,isConnected:n,staking:s}=u();r=n?t:void 0,(0,i.useEffect)(()=>{(0,o.wX)(s)},[s]),(0,i.useEffect)(()=>{if(n&&e)return(0,o.VZ)(e,s),()=>{s.dispatch((0,l.kS)())}},[n,e,s])}},62986:function(t,e,n){"use strict";n.d(e,{DD:function(){return u},I6:function(){return v},Kg:function(){return l},Km:function(){return g},Kv:function(){return a},N7:function(){return p},Qx:function(){return o},T2:function(){return i},ZG:function(){return c},d0:function(){return r},gT:function(){return s},kS:function(){return d}});let r=t=>({content:t,type:"SET_TOKENS"}),a=t=>({content:t,type:"SET_IS_INFO_LOADING"}),i=(t,e,n)=>({content:t,reset:e,status:n,type:"ADD_VALIDATORS"}),o=(t,e)=>({content:t,reset:e,type:"ADD_DELEGATIONS"}),l=(t,e)=>({content:t,reset:e,type:"ADD_UNBONDINGS"}),s=t=>({content:t,type:"SET_VALIDATOR_DETAILS"}),u=t=>({content:t,type:"SET_POOL"}),d=()=>({content:null,type:"LOGOUT"}),c=t=>({content:t,type:"SET_MODAL"}),g=t=>({content:t,type:"SET_INFLATION"}),p=t=>({content:t,type:"SET_EXTRA_VALIDATORS"}),f=t=>{let e=new Set;return t.filter(t=>!e.has(t.operatorAddress)&&(e.add(t.operatorAddress),!0))},m=t=>{let e=new Set;return t.filter(t=>!e.has(t.validatorAddress)&&(e.add(t.validatorAddress),!0))},h=t=>{let e=new Set;return t.filter(t=>{let n=t.id;return!e.has(n)&&(e.add(n),!0)})},v=(t,e)=>{switch(e.type){case"SET_TOKENS":return{...t,tokens:e.content};case"ADD_VALIDATORS":{let n=!e.reset&&t.validators[e.status]||{items:[],nextKey:null,total:null};return n.total=e.content.total,n.nextKey=e.content.nextKey,n.items=f(n.items.concat(e.content.items)),{...t,validators:{...t.validators,[e.status]:n}}}case"ADD_DELEGATIONS":{let n=!e.reset&&t.delegations||{items:[],nextKey:null,total:null};return n.total=e.content.total,n.nextKey=e.content.nextKey,n.items=m(e.content.items.concat(n.items)),{...t,delegations:n}}case"ADD_UNBONDINGS":{let n=!e.reset&&t.unbondings||{items:[],nextKey:null,total:null};return n.total=e.content.total,n.nextKey=e.content.nextKey,n.items=h(e.content.items.concat(n.items)),{...t,unbondings:n}}case"SET_IS_INFO_LOADING":return{...t,isInfoLoading:e.content};case"SET_VALIDATOR_DETAILS":return{...t,validatorDetails:e.content};case"SET_POOL":return{...t,pool:e.content};case"SET_MODAL":return{...t,modal:e.content};case"LOGOUT":return{...t,delegations:null,unbondings:null};case"SET_EXTRA_VALIDATORS":return{...t,extraValidators:e.content};case"SET_INFLATION":return{...t,inflation:e.content};default:return t}}},39730:function(t,e,n){"use strict";n.d(e,{Cn:function(){return l},Sg:function(){return d},U2:function(){return i},ap:function(){return s},jc:function(){return g},jv:function(){return o},mM:function(){return c},zq:function(){return u}});var r=n(22840),a=n(66803);let i=(t,e)=>{let{delegations:n}=t;if(!(null==n?void 0:n.items.length))return null;let r=n.items.filter(t=>!e||t.validatorAddress===e).map(t=>t.balance);return(0,a.HJ)(r)},o=(t,e)=>{let{unbondings:n}=t;if(!(null==n?void 0:n.items.length))return null;let r=n.items.filter(t=>!e||t.validator===e).map(t=>t.balance);return(0,a.HJ)(r)},l=(t,e)=>{let{delegations:n}=e;if(!(null==n?void 0:n.items.length))return null;let r=n.items.filter(e=>!t||e.validatorAddress===t).map(t=>t.rewards);return(0,a.HJ)(r)},s=t=>{let{tokens:e}=t;return e?new r.Z((0,a.bI)(e).amount):null},u=(t,e)=>{var n;return!!(null===(n=e.delegations)||void 0===n?void 0:n.items.some(e=>e.validatorAddress===t))},d=(t,e)=>{let{pool:n}=e;return t&&"string"==typeof(null==n?void 0:n.bondedTokens)?new r.Z(t).div(new r.Z(n.bondedTokens)).toNumber():null},c=t=>Object.values(t.validators).map(t=>null==t?void 0:t.items).flat().reduce((t,e)=>e?{...t,[e.operatorAddress]:e}:t,t.extraValidators),g=t=>t.inflation?new r.Z(t.inflation):null},544:function(t,e,n){"use strict";n.d(e,{W:function(){return a},Y:function(){return i}});var r=n(64090);let a={delegations:null,extraValidators:{},inflation:null,isInfoLoading:!1,modal:null,pool:null,tokens:null,unbondings:null,validatorDetails:null,validators:{bonded:null,unbonded:null,unbonding:null}},i=(0,r.createContext)({dispatch:()=>null,state:a})},71694:function(t,e,n){"use strict";let r,a;n.d(e,{C_:function(){return u},N$:function(){return d},v4:function(){return c}});var i=n(18722),o=n(58015),l=n(43890),s=n(9016);let u=()=>(r||(r=(async()=>{let t=await l.Tendermint34Client.connect(s.Od);return o.QueryClient.withExtensions(t,o.setupStakingExtension,o.setupDistributionExtension,o.setupMintExtension,o.setupIbcExtension)})()),r),d=()=>(a||(a=(async()=>await o.StargateClient.connect(s.Od))()),a),c=async t=>{let e=localStorage.getItem("xion-authz-temp-account");if(!e)return;let n=await i.DirectSecp256k1HdWallet.deserialize(e,"abstraxion"),r=await n.getAccounts().then(t=>{var e;return null===(e=t[0])||void 0===e?void 0:e.address});return{client:await o.SigningStargateClient.connectWithSigner(s.Od,n,{registry:t}),granteeAddress:r}}},66803:function(t,e,n){"use strict";n.d(e,{HJ:function(){return d},IB:function(){return i},Jp:function(){return o},UO:function(){return l},bI:function(){return a},bP:function(){return u},kw:function(){return s}});var r=n(22840);let a=t=>{var e,n,a;return(null===(e=t.denom)||void 0===e?void 0:e.toUpperCase())==="UXION"?{amount:new r.Z(t.amount).div(new r.Z(10).pow(6)).toString(),denom:"XION"}:(null===(n=t.denom)||void 0===n?void 0:n.toUpperCase())==="XION"?{amount:t.amount,denom:"XION"}:{...t,denom:null===(a=t.denom)||void 0===a?void 0:a.toUpperCase()}},i=()=>({amount:"0",denom:"XION"}),o=t=>({amount:t.toString(),denom:"XION"}),l=t=>t&&new r.Z(t.amount).gt(0),s=t=>({amount:t.div(new r.Z(10).pow(6)).toString(),denom:"XION"}),u=t=>({amount:t.times(new r.Z(10).pow(6)).toString(),denom:"UXION"}),d=t=>t.reduce((t,e)=>({amount:new r.Z(t.amount).plus(a(e).amount).toString(),denom:t.denom}),i())},9016:function(t,e,n){"use strict";n.d(e,{Ex:function(){return l},Jg:function(){return r},Mx:function(){return u},Od:function(){return i},T$:function(){return a},_H:function(){return d},c1:function(){return s},sb:function(){return o}});let r=!0,a=void 0,i="https://rpc.xion-testnet.forbole.com",o="/xion-staking",l=10,s="".concat(o,"/default-avatar.svg"),u=r?3:21,d=1e-4},77658:function(t,e,n){"use strict";n.d(e,{BR:function(){return a},GI:function(){return s},Qn:function(){return d},Sf:function(){return r},_m:function(){return u},cx:function(){return l},gU:function(){return i},kC:function(){return o},yC:function(){return c}});let r='',a='',i='',o='',l='',s='',u='',d='',c=''},19807:function(t,e,n){"use strict";n.d(e,{mu:function(){return b},YY:function(){return w},sj:function(){return x},H0:function(){return h},vZ:function(){return v}});var r=n(22840),a=n(53856),i=n(62884),o=n(66803),l=n(9016),s=n(97481),u=n(71694);let d=async(t,e)=>{let{client:n,granteeAddress:r}=await (0,u.v4)()||{};if(!n||!r)return null;let a=[{typeUrl:"/cosmos.authz.v1beta1.MsgExec",value:s.MsgExec.fromPartial({grantee:r,msgs:t.map(t=>n.registry.encodeAsAny(t))})}];return await n.simulate(r,a,e).then(t=>Math.ceil(2*t).toString()).catch(t=>(console.log("debug: core/base.ts: Estimate error",t),null))},c=async t=>{let{address:e,amount:n=[{amount:"1000",denom:"uxion"}],gasLimit:r="400000",memo:a="",msgs:i}=t;return{amount:n,gas:await d(i,a).catch(()=>null)||r,granter:e}},g=t=>({amount:t.amount,denom:["UXION","XION"].includes(t.denom.toUpperCase())?t.denom.toLowerCase():t.denom}),p=t=>{if("UXION"===t.denom.toUpperCase())return g(t);if("XION"===t.denom.toUpperCase())return g((0,o.bP)(new r.Z(t.amount)));throw Error("Invalid coin denom")},f=t=>e=>{if(console.log("debug: base.ts: result",e),!e.events.find(e=>e.type===t))throw console.error(e),Error("Out of gas");return e},m=t=>{throw console.error(t),t},h=async(t,e,n,r)=>{let a=p(n),o={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:i.MsgDelegate.fromPartial({amount:a,delegatorAddress:t.delegator,validatorAddress:t.validator})},l=await c({address:t.delegator,memo:r,msgs:[o]});return await e.signAndBroadcast(t.delegator,[o],l,r).then(f("delegate")).catch(m)},v=async(t,e,n,r)=>{let a=p(n),o={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:i.MsgUndelegate.fromPartial({amount:a,delegatorAddress:t.delegator,validatorAddress:t.validator})},l=await c({address:t.delegator,memo:r,msgs:[o]});return await e.signAndBroadcast(t.delegator,[o],l,r).then(f("unbond")).catch(m)},w=async(t,e)=>{let n=[{typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:a.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:t.delegator,validatorAddress:t.validator})}],r=await c({address:t.delegator,msgs:n});return await e.signAndBroadcast(t.delegator,n,r).then(f("withdraw_rewards")).catch(m)},x=t=>{let e=(0,o.bI)(t);return new r.Z(e.amount).gte(l._H)},b=async(t,e,n)=>{n.registry.register(i.MsgCancelUnbondingDelegation.typeUrl,i.MsgCancelUnbondingDelegation);let r=[{typeUrl:"/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation",value:i.MsgCancelUnbondingDelegation.fromPartial({amount:e.balance,creationHeight:e.creationHeight,delegatorAddress:t.delegator,validatorAddress:t.validator})}],a=await c({address:t.delegator,msgs:r});return await n.signAndBroadcast(t.delegator,r,a,"").then(f("cancel_unbonding_delegation")).catch(m)}}}]); \ No newline at end of file diff --git a/_next/static/chunks/app/layout-6d3018734569504b.js b/_next/static/chunks/app/layout-c5d40c49c0a85fbf.js similarity index 100% rename from _next/static/chunks/app/layout-6d3018734569504b.js rename to _next/static/chunks/app/layout-c5d40c49c0a85fbf.js diff --git a/_next/static/chunks/app/page-1fd3883c94d911df.js b/_next/static/chunks/app/page-1fd3883c94d911df.js deleted file mode 100644 index ce1c6c2..0000000 --- a/_next/static/chunks/app/page-1fd3883c94d911df.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 L}});var i=t(3827),n=t(64090),a=t(82012),l=t(80469),r=t(62948),c=t(37275),d=t(75615),o=t(62986),x=t(39730),m=t(66803),j=t(9016),h=t(19807),u=t(67497),p=t(42498);let g="absolute bottom-[24px] right-[10px] top-[24px]",v="relative flex h-full flex-col items-start gap-3 p-[24px]";var f=(0,n.memo)(()=>{let{isConnected:e}=(0,d.hT)(),{staking:s}=(0,l.n)(),[,t]=(0,d.dd)();if(!e)return(0,i.jsxs)("div",{className:"flex min-h-[212px] flex-col items-center justify-center gap-[32px] uppercase",style:{backgroundImage:"url(".concat(j.sb,"/overview-bg.png)"),borderRadius:24},children:[(0,i.jsx)(a.ls,{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,x.U2)(s.state,null)||(0,m.IB)(),r=(0,x.Cn)(null,s.state)||(0,m.IB)(),c=(0,x.jc)(s.state),f=s.state.tokens||(0,m.IB)();return(0,i.jsxs)("div",{className:"grid min-h-[144px] flex-col items-center justify-center gap-[32px]",style:{backgroundImage:"url(".concat(j.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"}),(0,i.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,i.jsx)(a.XJ,{children:(0,u.H_)(r)}),(0,h.sj)(r)&&(0,i.jsx)(a.hp,{onClick:()=>{var e;s.dispatch((0,o.ZG)({content:{delegations:(null===(e=s.state.delegations)||void 0===e?void 0:e.items)||[]},type:"rewards"}))},children:"Claim"})]}),(0,i.jsx)(a.jr,{children:(0,u.Em)(r)}),(0,i.jsx)("div",{className:g,children:(0,i.jsx)(p.i,{})})]}),(0,i.jsxs)("div",{className:v,children:[(0,i.jsx)(a.Bz,{children:"APR"}),(0,i.jsx)(a.XJ,{children:(0,u.PV)(c)}),(0,i.jsx)("div",{className:g,children:(0,i.jsx)(p.i,{})})]}),(0,i.jsxs)("div",{className:v,children:[(0,i.jsx)(a.Bz,{children:"Delegated Amount"}),(0,i.jsx)(a.XJ,{children:(0,u.H_)(n)}),(0,i.jsx)(a.jr,{children:(0,u.Em)(n)}),(0,i.jsx)("div",{className:g,children:(0,i.jsx)(p.i,{})})]}),(0,i.jsxs)("div",{className:v,children:[(0,i.jsx)(a.Bz,{children:"Available For Delegation"}),(0,i.jsx)(a.XJ,{children:(0,u.H_)(f)}),(0,i.jsx)(a.jr,{children:(0,u.Em)(f)})]})]})}),N=t(22840),w=t(20534),b=t(143),k=t(80148),S=t(89056),y=t(77658),B=t(26605),C=t(48074);let _={gap:"16px",gridTemplateColumns:"60px 1.5fr repeat(3, 1fr) 80px 80px"},D=e=>{let{disabled:s,onStake:t,staking:n,validator:l}=e,{identity:r}=l.description,c=(0,S.P)(r),d=(0,x.Sg)(null==l?void 0:l.tokens,n.state),o=(0,u.gg)(d);return(0,i.jsxs)("div",{className:"flex w-full flex-col items-center justify-between gap-2",children:[(0,i.jsxs)("div",{className:"grid w-full items-center justify-between gap-2 p-4",style:_,children:[(0,i.jsx)("div",{className:"flex items-center justify-start",children:(0,i.jsx)("img",{alt:"Validator logo",className:"block w-[50px] rounded-full",src:c,style:{height:50,width:50}})}),(0,i.jsxs)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:[(0,i.jsxs)("div",{className:"flex flex-col justify-start gap-2 text-left",children:[(0,i.jsx)("div",{className:"text-[14px] font-bold leading-[20px]",children:l.description.moniker}),(0,i.jsx)(B.Z,{address:l.operatorAddress})]}),(0,i.jsx)("div",{className:"flex min-w-max flex-col items-center justify-center",children:(0,x.zq)(l.operatorAddress,n.state)&&(0,i.jsx)("div",{className:"rounded-[2px] bg-successBg p-[2px] text-[11px] font-medium leading-[16px] tracking-normal text-success",children:"You staked"})})]}),(0,i.jsx)("div",{className:"text-right",children:(0,i.jsx)(C.Z,{text:(0,u.Em)((0,m.kw)(new N.Z(l.tokens)),!0)})}),(0,i.jsx)("div",{className:"text-right",children:(0,u.i)(l.commission.commissionRates.rate,2)}),d&&(0,i.jsx)("div",{className:"text-right",children:o}),(0,i.jsx)("div",{className:"text-right",children:(0,i.jsx)(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)"}})]})},A=b.N;var I=(0,n.memo)(()=>{var e,s,t;let{isConnected:r,staking:c}=(0,l.n)(),[d,m]=(0,n.useState)("none"),[j,h]=(0,n.useState)("active"),[u,p]=(0,n.useState)(""),{validators:g}=c.state,v=(null===(e=g.bonded)||void 0===e?void 0:e.items)||[],f=((null===(s=g.unbonded)||void 0===s?void 0:s.items)||[]).concat((null===(t=g.unbonding)||void 0===t?void 0:t.items)||[]),b=!c.state.validators.bonded||!c.state.validators.unbonding||!c.state.validators.bonded,S=("active"===j?v:f).filter("active"===j?e=>e.status===w.BondStatus.BOND_STATUS_BONDED:e=>e.status===(w.BondStatus.BOND_STATUS_UNBONDED||w.BondStatus.BOND_STATUS_UNBONDING)).slice().sort((e,s)=>{if("none"===d)return 0;if(["voting-power-asc","voting-power-desc"].includes(d)){let t=(0,x.Sg)(e.tokens,c.state),i=(0,x.Sg)(s.tokens,c.state);return(0,k.B)(t,i,"voting-power-asc"===d)}if(["commission-asc","commission-desc"].includes(d)){let t=parseFloat(e.commission.commissionRates.rate),i=parseFloat(s.commission.commissionRates.rate);return(0,k.B)(t,i,"commission-asc"===d)}if(["name-asc","name-desc"].includes(d)){let t=e.description.moniker.toLowerCase(),i=s.description.moniker.toLowerCase();return(0,k.B)(t,i,"name-asc"===d)}if(["staked-asc","staked-desc"].includes(d)){let t=new N.Z(e.tokens),i=new N.Z(s.tokens);return(0,k.B)(t,i,"staked-asc"===d)}return 0}).filter(e=>{if(!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:"grid grid-cols-3",children:[(0,i.jsxs)("div",{className:"flex w-full flex-row justify-start gap-[16px]",children:[(0,i.jsx)(a.Dx,{children:"Validators"}),(0,i.jsx)(a.Mj,{onChange:e=>p(e.target.value),value:u})]}),(0,i.jsxs)("div",{className:"flex flex-row items-center justify-center gap-[40px]",children:[(0,i.jsxs)("button",{onClick:()=>{h("active")},children:["Active (",v.length,")"]}),(0,i.jsxs)("button",{onClick:()=>{h("inactive")},children:["Inactive (",f.length,")"]})]})]}),(0,i.jsxs)("div",{className:"min-h-[100px] overflow-hidden rounded-[24px] bg-bg-600 pb-4 text-typo-100",children:[(0,i.jsxs)("div",{className:"grid w-full items-center justify-between gap-2 bg-bg-500 p-4 uppercase",style:_,children:[(0,i.jsx)("div",{}),(0,i.jsx)(A,{onSort:m,sort:d,sorting:["name-asc","name-desc"],children:"Validator"}),(0,i.jsx)(A,{onSort:m,sort:d,sorting:["staked-asc","staked-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,i.jsx)(A,{onSort:m,sort:d,sorting:["commission-asc","commission-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Commission"})}),(0,i.jsx)(A,{onSort:m,sort:d,sorting:["voting-power-asc","voting-power-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Voting Power"})})]}),b&&(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center gap-[28px]",children:[(0,i.jsxs)("div",{className:"mt-[80px] text-typo-100 opacity-50",children:["Loading the data..."," "]}),(0,i.jsx)("div",{className:"mb-[80px] flex w-[80px] items-center justify-center",children:(0,i.jsx)("span",{className:"animate-spin",dangerouslySetInnerHTML:{__html:y.Qn}})})]}),S.map(e=>(0,i.jsx)(D,{disabled:!r,onStake:"active"===j?()=>{c.dispatch((0,o.ZG)({content:{validator:e},type:"delegate"}))}:null,staking:c,validator:e},e.operatorAddress))]})]})}),L=(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-[24px] pb-[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)(I,{})]}),(0,i.jsx)(c.Z,{})]})})}},function(e){e.O(0,[350,218,147,228,933,4,245,567,495,971,69,744],function(){return e(e.s=67617)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/page-e5bdeb2c1d5206a3.js b/_next/static/chunks/app/page-e5bdeb2c1d5206a3.js new file mode 100644 index 0000000..68f0884 --- /dev/null +++ b/_next/static/chunks/app/page-e5bdeb2c1d5206a3.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{67617:function(e,s,t){Promise.resolve().then(t.bind(t,64350))},64350:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return L}});var i=t(3827),a=t(64090),n=t(82012),l=t(80469),r=t(62948),c=t(37275),d=t(75615),o=t(62986),x=t(39730),m=t(66803),p=t(9016),h=t(19807),j=t(67497),u=t(42498);let g="absolute bottom-[24px] right-[10px] top-[24px]",v="relative flex h-full flex-col items-start gap-3 p-[24px]";var f=(0,a.memo)(()=>{let{isConnected:e}=(0,d.hT)(),{staking:s}=(0,l.n)(),[,t]=(0,d.dd)();if(!e)return(0,i.jsxs)("div",{className:"flex min-h-[212px] flex-col items-center justify-center gap-[32px] px-[12px] uppercase",style:{backgroundImage:"url(".concat(p.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,x.U2)(s.state,null)||(0,m.IB)(),r=(0,x.Cn)(null,s.state)||(0,m.IB)(),c=(0,x.jc)(s.state),f=s.state.tokens||(0,m.IB)();return(0,i.jsxs)("div",{className:"grid min-h-[144px] flex-col items-center justify-center gap-[32px] overflow-auto",style:{backgroundImage:"url(".concat(p.sb,"/overview-bg.png)"),borderRadius:24,gridTemplateColumns:"1fr 1fr 1fr 1fr"},children:[(0,i.jsxs)("div",{className:v,children:[(0,i.jsx)(n.Bz,{children:"Claimable Rewards"}),(0,i.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,i.jsx)(n.XJ,{children:(0,j.H_)(r)}),(0,h.sj)(r)&&(0,i.jsx)(n.hp,{onClick:()=>{var e;s.dispatch((0,o.ZG)({content:{delegations:(null===(e=s.state.delegations)||void 0===e?void 0:e.items)||[]},type:"rewards"}))},children:"Claim"})]}),(0,i.jsx)(n.jr,{children:(0,j.Em)(r)}),(0,i.jsx)("div",{className:g,children:(0,i.jsx)(u.i,{})})]}),(0,i.jsxs)("div",{className:v,children:[(0,i.jsx)(n.Bz,{children:"APR"}),(0,i.jsx)(n.XJ,{children:(0,j.PV)(c)}),(0,i.jsx)("div",{className:g,children:(0,i.jsx)(u.i,{})})]}),(0,i.jsxs)("div",{className:v,children:[(0,i.jsx)(n.Bz,{children:"Delegated Amount"}),(0,i.jsx)(n.XJ,{children:(0,j.H_)(a)}),(0,i.jsx)(n.jr,{children:(0,j.Em)(a)}),(0,i.jsx)("div",{className:g,children:(0,i.jsx)(u.i,{})})]}),(0,i.jsxs)("div",{className:v,children:[(0,i.jsx)(n.Bz,{children:"Available For Delegation"}),(0,i.jsx)(n.XJ,{children:(0,j.H_)(f)}),(0,i.jsx)(n.jr,{children:(0,j.Em)(f)})]})]})}),N=t(22840),w=t(20534),b=t(143),k=t(80148),y=t(89056),S=t(77658),B=t(26605),C=t(48074);let _={gap:"16px",gridTemplateColumns:"60px 1.5fr repeat(3, 1fr) 80px 80px",minWidth:800},D=e=>{let{disabled:s,onStake:t,staking:a,validator:l}=e,{identity:r}=l.description,c=(0,y.P)(r),d=(0,x.Sg)(null==l?void 0:l.tokens,a.state),o=(0,j.gg)(d);return(0,i.jsxs)("div",{className:"flex w-full flex-col items-center justify-between gap-2",style:{minWidth:800},children:[(0,i.jsxs)("div",{className:"grid w-full items-center justify-between gap-2 p-4",style:_,children:[(0,i.jsx)("div",{className:"flex items-center justify-start",children:(0,i.jsx)("img",{alt:"Validator logo",className:"block w-[50px] rounded-full",src:c,style:{height:50,width:50}})}),(0,i.jsxs)("div",{className:"flex flex-1 flex-row justify-start gap-4",children:[(0,i.jsxs)("div",{className:"flex flex-col justify-start gap-2 text-left",children:[(0,i.jsx)("div",{className:"text-[14px] font-bold leading-[20px]",children:l.description.moniker}),(0,i.jsx)(B.Z,{address:l.operatorAddress})]}),(0,i.jsx)("div",{className:"flex min-w-max flex-col items-center justify-center",children:(0,x.zq)(l.operatorAddress,a.state)&&(0,i.jsx)("div",{className:"rounded-[2px] bg-successBg p-[2px] text-[11px] font-medium leading-[16px] tracking-normal text-success",children:"You staked"})})]}),(0,i.jsx)("div",{className:"text-right",children:(0,i.jsx)(C.Z,{text:(0,j.Em)((0,m.kw)(new N.Z(l.tokens)),!0)})}),(0,i.jsx)("div",{className:"text-right",children:(0,j.i)(l.commission.commissionRates.rate,2)}),d&&(0,i.jsx)("div",{className:"text-right",children:o}),(0,i.jsx)("div",{className:"text-right",children:(0,i.jsx)(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)"}})]})},A=b.N;var I=(0,a.memo)(()=>{var e,s,t;let{isConnected:r,staking:c}=(0,l.n)(),[d,m]=(0,a.useState)("none"),[p,h]=(0,a.useState)("active"),[j,u]=(0,a.useState)(""),{validators:g}=c.state,v=(null===(e=g.bonded)||void 0===e?void 0:e.items)||[],f=((null===(s=g.unbonded)||void 0===s?void 0:s.items)||[]).concat((null===(t=g.unbonding)||void 0===t?void 0:t.items)||[]),b=!c.state.validators.bonded||!c.state.validators.unbonding||!c.state.validators.bonded,y=("active"===p?v:f).filter("active"===p?e=>e.status===w.BondStatus.BOND_STATUS_BONDED:e=>e.status===(w.BondStatus.BOND_STATUS_UNBONDED||w.BondStatus.BOND_STATUS_UNBONDING)).slice().sort((e,s)=>{if("none"===d)return 0;if(["voting-power-asc","voting-power-desc"].includes(d)){let t=(0,x.Sg)(e.tokens,c.state),i=(0,x.Sg)(s.tokens,c.state);return(0,k.B)(t,i,"voting-power-asc"===d)}if(["commission-asc","commission-desc"].includes(d)){let t=parseFloat(e.commission.commissionRates.rate),i=parseFloat(s.commission.commissionRates.rate);return(0,k.B)(t,i,"commission-asc"===d)}if(["name-asc","name-desc"].includes(d)){let t=e.description.moniker.toLowerCase(),i=s.description.moniker.toLowerCase();return(0,k.B)(t,i,"name-asc"===d)}if(["staked-asc","staked-desc"].includes(d)){let t=new N.Z(e.tokens),i=new N.Z(s.tokens);return(0,k.B)(t,i,"staked-asc"===d)}return 0}).filter(e=>{if(!j)return!0;let s=e.description.moniker.toLowerCase(),t=e.operatorAddress.toLowerCase();return s.includes(j.toLowerCase())||t.includes(j.toLowerCase())});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"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=>u(e.target.value),value:j})]}),(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"===p,onClick:()=>{h("active")},children:["Active (",v.length,")"]}),(0,i.jsxs)(n.Y6,{active:"inactive"===p,onClick:()=>{h("inactive")},children:["Inactive (",f.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:_,children:[(0,i.jsx)("div",{}),(0,i.jsx)(A,{onSort:m,sort:d,sorting:["name-asc","name-desc"],children:"Validator"}),(0,i.jsx)(A,{onSort:m,sort:d,sorting:["staked-asc","staked-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Staked Amount"})}),(0,i.jsx)(A,{onSort:m,sort:d,sorting:["commission-asc","commission-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Commission"})}),(0,i.jsx)(A,{onSort:m,sort:d,sorting:["voting-power-asc","voting-power-desc"],children:(0,i.jsx)("div",{className:"text-right",children:"Voting Power"})})]}),b&&(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center gap-[28px]",children:[(0,i.jsxs)("div",{className:"mt-[80px] text-typo-100 opacity-50",children:["Loading the data..."," "]}),(0,i.jsx)("div",{className:"mb-[80px] flex w-[80px] items-center justify-center",children:(0,i.jsx)("span",{className:"animate-spin",dangerouslySetInnerHTML:{__html:S.Qn}})})]}),y.map(e=>(0,i.jsx)(D,{disabled:!r,onStake:"active"===p?()=>{c.dispatch((0,o.ZG)({content:{validator:e},type:"delegate"}))}:null,staking:c,validator:e},e.operatorAddress))]})]})}),L=(0,a.memo)(function(){let{staking:e}=(0,l.n)(),[s,t]=(0,a.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)(n.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)(I,{})]}),(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-bd0b3b0c36f2e5d3.js b/_next/static/chunks/app/validator/page-bd0b3b0c36f2e5d3.js new file mode 100644 index 0000000..d4900aa --- /dev/null +++ b/_next/static/chunks/app/validator/page-bd0b3b0c36f2e5d3.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 z}});var t=i(3827),l=i(59115),a=i(22840),n=i(20534),d=i(8792),c=i(15313),r=i(64090),x=i(82012),o=i(88197),h=i(80469),m=i(62986),p=i(39730),j=i(89056),v=i(66803),u=i(9016),g=i(67497),N=i(42498),b=i(37275),f=i(75615),w=i(62948);function k(){let e=(0,c.useSearchParams)().get("address"),s=(0,h.n)(),[,i]=(0,f.dd)(),[l,n]=(0,r.useState)(!1),{isConnected:d,staking:j}=s,[u,b]=(0,r.useState)(null);if((0,r.useEffect)(()=>{(async()=>{e&&b(await (0,o.qp)(e,j))})()},[e,j]),!u)return(0,t.jsx)("div",{children:"Loading ..."});let k=(0,p.ap)(j.state),z=(0,p.U2)(j.state,null),B=(0,p.jv)(j.state,null),S=(0,p.Cn)(u.operatorAddress,j.state),C=(0,w.S6)(j.state),y=d?(0,t.jsxs)("div",{className:"grid grid-cols-4 rounded-[24px] bg-bg-600 p-[24px]",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(x.Bz,{children:"Claimable Rewards"}),(0,t.jsxs)("div",{className:"mb-[8px] mt-[12px] flex flex-row items-center gap-[8px]",children:[(0,t.jsx)(x.XJ,{children:(0,g.H_)(S)}),S&&(null==S?void 0:S.amount)!=="0"&&(0,t.jsx)(x.hp,{onClick:()=>{var e;j.dispatch((0,m.ZG)({content:{delegations:(null===(e=j.state.delegations)||void 0===e?void 0:e.items)||[]},type:"rewards"}))},children:"Claim"})]}),(0,t.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,t.jsx)(N.i,{})})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(x.Bz,{children:"My Delegation (XION)"}),(0,t.jsx)("div",{className:"mb-[8px] mt-[12px]",children:z&&(0,t.jsx)(x.XJ,{children:(0,g.HS)(new a.Z(z.amount))})}),(0,t.jsx)(x.Bz,{children:(0,g.H_)(z)}),(0,t.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,t.jsx)(N.i,{})})]}),(0,t.jsx)("div",{className:"flex flex-row gap-[16px]",children:(0,t.jsxs)("div",{className:"relative w-full",children:[(0,t.jsx)(x.Bz,{children:"Available For Delegation (XION)"}),(0,t.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,t.jsx)(x.XJ,{children:k?(0,g.HS)(k):"-"})}),(0,t.jsx)(x.Bz,{children:k?(0,g.H_)((0,v.Jp)(k)):"-"}),(0,t.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,t.jsx)(N.i,{})})]})}),(0,t.jsx)("div",{className:"flex flex-row gap-[16px]",children:(0,t.jsxs)("div",{children:[(0,t.jsx)(x.Bz,{children:"Unstakings (XION)"}),(0,t.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,t.jsx)(x.XJ,{children:B?(0,g.HS)(new a.Z(B.amount)):"-"})}),(0,t.jsx)(x.Bz,{children:B?(0,g.H_)(B):"-"})]})})]}):(0,t.jsxs)("div",{className:"flex h-[220px] flex-col items-center justify-center gap-[32px] rounded-[24px] bg-bg-600 uppercase",children:[(0,t.jsx)(x.ls,{children:"Please log in to view"}),(0,t.jsx)("div",{children:(0,t.jsx)(x.zx,{className:"[&]:min-w-[150px]",onClick:()=>{i(!0)},children:"Log in"})})]});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-[24px] mt-[32px] flex flex-row items-center justify-between",children:[(0,t.jsx)(x.Dx,{children:"My Delegations"}),C&&(0,t.jsx)(w.sv,{isShowingDetails:l,setIsShowingDetails:n})]}),y,C&&l&&(0,t.jsx)(w.ZP,{})]})}function z(){let e=(0,c.useSearchParams)().get("address"),s=(0,h.n)(),[i,f]=(0,r.useState)(null),w=(0,j.P)(null==i?void 0:i.description.identity);if((0,r.useEffect)(()=>{(async()=>{e&&f(await (0,o.qp)(e,s.staking))})()},[e,s]),!i)return(0,t.jsx)("div",{children:"Loading the data..."});let z=(0,p.Sg)(i.tokens,s.staking.state),B=(0,g.gg)(z),S=new a.Z(i.tokens).div(new a.Z(10).pow(6)),C=(0,p.U2)(s.staking.state,i.operatorAddress),y=(0,p.zq)(i.operatorAddress,s.staking.state);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"page-container flex w-full flex-col gap-[16px] px-[16px] pb-[32px]",children:[(0,t.jsxs)("div",{className:"mb-[32px] mt-[40px]",children:[(0,t.jsx)(x.OL,{href:"/",children:"STAKING"})," ","> ",(0,t.jsx)("span",{children:i.description.moniker})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-[24px] p-[24px]",style:{backgroundImage:"url(".concat(u.sb,"/overview-bg.png)"),backgroundSize:"cover",borderRadius:16},children:[(0,t.jsxs)("div",{className:"flex flex-row items-center gap-[16px]",children:[(0,t.jsx)("img",{alt:"Validator logo",className:"block w-[80px] rounded-full",src:w||u.c1}),(0,t.jsxs)("div",{className:"flex flex-1 items-center gap-[16px]",children:[(0,t.jsx)("div",{className:"text-[32px] font-bold leading-[36px] text-white",children:i.description.moniker||""}),y&&(0,t.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,t.jsx)("div",{children:(0,t.jsx)(l.z,{disabled:!s.isConnected,onClick:()=>{s.staking.dispatch((0,m.ZG)({content:{validator:i},type:"delegate"}))},children:"DELEGATE NOW"})})]}),(0,t.jsx)(N.I,{}),(0,t.jsxs)("div",{className:"grid grid-cols-4",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(x.Bz,{children:"Total Stake (XION)"}),(0,t.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,t.jsx)(x.XJ,{children:(0,g.HS)(S)})}),(0,t.jsx)(x.Bz,{children:(0,g.H_)((0,v.Jp)(S))}),(0,t.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,t.jsx)(N.i,{})})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(x.Bz,{children:"Commission Rate"}),(0,t.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,t.jsx)(x.XJ,{children:(0,g.i)(i.commission.commissionRates.rate,2)})}),(0,t.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,t.jsx)(N.i,{})})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(x.Bz,{children:"Voting Power"}),(0,t.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,t.jsx)(x.XJ,{children:B})}),(0,t.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,t.jsx)(N.i,{})})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(x.Bz,{children:"My Delegation (XION)"}),(0,t.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,t.jsx)(x.XJ,{children:C?(0,g.HS)(new a.Z((0,v.bI)(C).amount)):"-"})}),(0,t.jsx)(x.Bz,{children:(0,g.H_)(C)})]})]}),(0,t.jsx)(N.I,{}),(0,t.jsxs)("div",{className:"grid grid-cols-4",children:[(0,t.jsxs)("div",{className:"col-span-2",children:[(0,t.jsx)(x.Bz,{color:"text-white",children:"XION Address"}),(0,t.jsxs)("div",{className:"inline-flex flex-row gap-2 break-all",children:[i.operatorAddress," ",(0,t.jsx)(x.M5,{textToCopy:i.operatorAddress})]})]}),i.description.website&&(0,t.jsxs)("div",{children:[(0,t.jsx)(x.Bz,{color:"text-white",children:"Website"}),(0,t.jsx)(d.default,{href:i.description.website,target:"_blank",children:i.description.website})]}),i.description.securityContact&&(0,t.jsxs)("div",{children:[(0,t.jsx)(x.Bz,{color:"text-white",children:"Security Contact"}),(0,t.jsx)(d.default,{href:"mailto:".concat(i.description.securityContact),children:i.description.securityContact})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(x.Bz,{color:"text-white",children:"Details"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{children:i.description.details}),(0,t.jsxs)("div",{children:["Max Commission Rate:"," ",(0,g.i)(i.commission.commissionRates.maxRate,0)]}),(0,t.jsxs)("div",{children:["Max commission Change Rate:"," ",(0,g.i)(i.commission.commissionRates.maxChangeRate,0)]})]})]})]}),(0,t.jsx)(k,{})]}),(0,t.jsx)(b.Z,{})]})}}},function(e){e.O(0,[350,218,147,228,933,4,245,567,495,971,69,744],function(){return e(e.s=90858)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/validator/page-c64697378586801f.js b/_next/static/chunks/app/validator/page-c64697378586801f.js deleted file mode 100644 index 0a819ce..0000000 --- a/_next/static/chunks/app/validator/page-c64697378586801f.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 z}});var l=i(3827),t=i(59115),a=i(22840),n=i(20534),d=i(8792),c=i(15313),r=i(64090),x=i(82012),o=i(88197),h=i(80469),m=i(62986),p=i(39730),j=i(89056),v=i(66803),u=i(9016),g=i(67497),N=i(42498),b=i(37275),f=i(75615),w=i(62948);function k(){let e=(0,c.useSearchParams)().get("address"),s=(0,h.n)(),[,i]=(0,f.dd)(),[t,n]=(0,r.useState)(!1),{isConnected:d,staking:j}=s,[u,b]=(0,r.useState)(null);if((0,r.useEffect)(()=>{(async()=>{e&&b(await (0,o.qp)(e,j))})()},[e,j]),!u)return(0,l.jsx)("div",{children:"Loading ..."});let k=(0,p.ap)(j.state),z=(0,p.U2)(j.state,null),B=(0,p.jv)(j.state,null),S=(0,p.Cn)(u.operatorAddress,j.state),y=(0,w.S6)(j.state),C=d?(0,l.jsxs)("div",{className:"grid grid-cols-4 rounded-[24px] bg-bg-600 p-[24px]",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(x.Bz,{children:"Claimable Rewards"}),(0,l.jsxs)("div",{className:"mb-[8px] mt-[12px] flex flex-row items-center gap-[8px]",children:[(0,l.jsx)(x.XJ,{children:(0,g.H_)(S)}),S&&(null==S?void 0:S.amount)!=="0"&&(0,l.jsx)(x.hp,{onClick:()=>{var e;j.dispatch((0,m.ZG)({content:{delegations:(null===(e=j.state.delegations)||void 0===e?void 0:e.items)||[]},type:"rewards"}))},children:"Claim"})]}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N.i,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(x.Bz,{children:"My Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:z&&(0,l.jsx)(x.XJ,{children:(0,g.HS)(new a.Z(z.amount))})}),(0,l.jsx)(x.Bz,{children:(0,g.H_)(z)}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N.i,{})})]}),(0,l.jsx)("div",{className:"flex flex-row gap-[16px]",children:(0,l.jsxs)("div",{className:"relative w-full",children:[(0,l.jsx)(x.Bz,{children:"Available For Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(x.XJ,{children:k?(0,g.HS)(k):"-"})}),(0,l.jsx)(x.Bz,{children:k?(0,g.H_)((0,v.Jp)(k)):"-"}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N.i,{})})]})}),(0,l.jsx)("div",{className:"flex flex-row gap-[16px]",children:(0,l.jsxs)("div",{children:[(0,l.jsx)(x.Bz,{children:"Unstakings (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(x.XJ,{children:B?(0,g.HS)(new a.Z(B.amount)):"-"})}),(0,l.jsx)(x.Bz,{children:B?(0,g.H_)(B):"-"})]})})]}):(0,l.jsxs)("div",{className:"flex h-[220px] flex-col items-center justify-center gap-[32px] rounded-[24px] bg-bg-600 uppercase",children:[(0,l.jsx)(x.ls,{children:"Please log in to view"}),(0,l.jsx)("div",{children:(0,l.jsx)(x.zx,{className:"[&]:min-w-[150px]",onClick:()=>{i(!0)},children:"Log in"})})]});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"mb-[24px] mt-[32px] flex flex-row items-center justify-between",children:[(0,l.jsx)(x.Dx,{children:"My Delegations"}),y&&(0,l.jsx)(w.sv,{isShowingDetails:t,setIsShowingDetails:n})]}),C,y&&t&&(0,l.jsx)(w.ZP,{})]})}function z(){let e=(0,c.useSearchParams)().get("address"),s=(0,h.n)(),[i,f]=(0,r.useState)(null),w=(0,j.P)(null==i?void 0:i.description.identity);if((0,r.useEffect)(()=>{(async()=>{e&&f(await (0,o.qp)(e,s.staking))})()},[e,s]),!i)return(0,l.jsx)("div",{children:"Loading the data..."});let z=(0,p.Sg)(i.tokens,s.staking.state),B=(0,g.gg)(z),S=new a.Z(i.tokens).div(new a.Z(10).pow(6)),y=(0,p.U2)(s.staking.state,i.operatorAddress),C=(0,p.zq)(i.operatorAddress,s.staking.state);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"page-container flex w-full flex-col gap-[16px] px-[16px] pb-[32px]",children:[(0,l.jsxs)("div",{className:"mb-[32px] mt-[40px]",children:[(0,l.jsx)(x.OL,{href:"/",children:"STAKING"})," ","> ",(0,l.jsx)("span",{children:i.description.moniker})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-[24px] p-[24px]",style:{backgroundImage:"url(".concat(u.sb,"/overview-bg.png)"),backgroundSize:"cover",borderRadius:16},children:[(0,l.jsxs)("div",{className:"flex flex-row items-center gap-[16px]",children:[(0,l.jsx)("img",{alt:"Validator logo",className:"block w-[80px] rounded-full",src:w||u.c1}),(0,l.jsxs)("div",{className:"flex flex-1 items-center gap-[16px]",children:[(0,l.jsx)("div",{className:"typo-validator-name",children:i.description.moniker||""}),C&&(0,l.jsx)("div",{className:"rounded-[4px] bg-successBg px-[8px] py-[4px] text-[11px] text-success",children:"You staked"})]}),i.status===n.BondStatus.BOND_STATUS_BONDED&&(0,l.jsx)("div",{children:(0,l.jsx)(t.z,{disabled:!s.isConnected,onClick:()=>{s.staking.dispatch((0,m.ZG)({content:{validator:i},type:"delegate"}))},children:"DELEGATE NOW"})})]}),(0,l.jsx)(N.I,{}),(0,l.jsxs)("div",{className:"grid grid-cols-4",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(x.Bz,{children:"Total Stake (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(x.XJ,{children:(0,g.HS)(S)})}),(0,l.jsx)(x.Bz,{children:(0,g.H_)((0,v.Jp)(S))}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N.i,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(x.Bz,{children:"Commission Rate"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(x.XJ,{children:(0,g.i)(i.commission.commissionRates.rate,2)})}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N.i,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(x.Bz,{children:"Voting Power"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(x.XJ,{children:B})}),(0,l.jsx)("div",{className:"absolute bottom-0 right-[20px] top-0",children:(0,l.jsx)(N.i,{})})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(x.Bz,{children:"My Delegation (XION)"}),(0,l.jsx)("div",{className:"mb-[8px] mt-[12px]",children:(0,l.jsx)(x.XJ,{children:y?(0,g.HS)(new a.Z((0,v.bI)(y).amount)):"-"})}),(0,l.jsx)(x.Bz,{children:(0,g.H_)(y)})]})]}),(0,l.jsx)(N.I,{}),(0,l.jsxs)("div",{className:"grid grid-cols-4",children:[(0,l.jsxs)("div",{className:"col-span-2",children:[(0,l.jsx)(x.Bz,{color:"text-white",children:"XION Address"}),(0,l.jsxs)("div",{className:"inline-flex flex-row gap-2 break-all",children:[i.operatorAddress," ",(0,l.jsx)(x.M5,{textToCopy:i.operatorAddress})]})]}),i.description.website&&(0,l.jsxs)("div",{children:[(0,l.jsx)(x.Bz,{color:"text-white",children:"Website"}),(0,l.jsx)(d.default,{href:i.description.website,target:"_blank",children:i.description.website})]}),i.description.securityContact&&(0,l.jsxs)("div",{children:[(0,l.jsx)(x.Bz,{color:"text-white",children:"Security Contact"}),(0,l.jsx)(d.default,{href:"mailto:".concat(i.description.securityContact),children:i.description.securityContact})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(x.Bz,{color:"text-white",children:"Details"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{children:i.description.details}),(0,l.jsxs)("div",{children:["Max Commission Rate:"," ",(0,g.i)(i.commission.commissionRates.maxRate,0)]}),(0,l.jsxs)("div",{children:["Max commission Change Rate:"," ",(0,g.i)(i.commission.commissionRates.maxChangeRate,0)]})]})]})]}),(0,l.jsx)(k,{})]}),(0,l.jsx)(b.Z,{})]})}}},function(e){e.O(0,[350,218,147,228,933,4,245,567,495,971,69,744],function(){return e(e.s=90858)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/webpack-151cf5fcd9f37b6b.js b/_next/static/chunks/webpack-2de6c244b51b4bcd.js similarity index 98% rename from _next/static/chunks/webpack-151cf5fcd9f37b6b.js rename to _next/static/chunks/webpack-2de6c244b51b4bcd.js index e7dab42..d985c98 100644 --- a/_next/static/chunks/webpack-151cf5fcd9f37b6b.js +++ b/_next/static/chunks/webpack-2de6c244b51b4bcd.js @@ -1 +1 @@ -!function(){"use strict";var e,t,n,r,o,u,i,c,f,a={},d={};function l(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={id:e,loaded:!1,exports:{}},r=!0;try{a[e].call(n.exports,n,n.exports,l),r=!1}finally{r&&delete d[e]}return n.loaded=!0,n.exports}l.m=a,l.amdO={},e=[],l.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(l.O).every(function(e){return l.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 Staking Overview
Please Log In To View
Validators
Validator
Staked Amount
Commission
Voting Power
Loading the data...
\ No newline at end of file +XION Staking
Your Staking Overview
Please Log In To View
Validators
Validator
Staked Amount
Commission
Voting Power
Loading the data...
\ No newline at end of file diff --git a/index.txt b/index.txt index 37617a5..178abe7 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-a82c649a6d50a6e6.js","245","static/chunks/245-8266bc6575a22c44.js","567","static/chunks/567-bdc379a41ba90738.js","495","static/chunks/495-624d50152cedc15b.js","931","static/chunks/app/page-1fd3883c94d911df.js"],""] -3:I[56225,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-a82c649a6d50a6e6.js","567","static/chunks/567-bdc379a41ba90738.js","185","static/chunks/app/layout-6d3018734569504b.js"],""] +2:I[64350,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-8a573df626c1a230.js","245","static/chunks/245-8266bc6575a22c44.js","567","static/chunks/567-473fbb658e625348.js","495","static/chunks/495-c4dfbb13cae0bb21.js","931","static/chunks/app/page-e5bdeb2c1d5206a3.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-8a573df626c1a230.js","567","static/chunks/567-473fbb658e625348.js","185","static/chunks/app/layout-c5d40c49c0a85fbf.js"],""] 4:I[5613,[],""] 5:I[31778,[],""] -0:["Q_T0naol4gB99AzBt99zS",[[["",{"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/3767cbc38a2bd2fc.css","precedence":"next","crossOrigin":""}]],"$L6"]]]] +0:["gbnQcujrHZF4-kptybWHW",[[["",{"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/c1327db2fe285a41.css","precedence":"next","crossOrigin":""}]],"$L6"]]]] 6:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"XION Staking"}],["$","link","3",{"rel":"icon","href":"/xion-staking/favicon.ico","type":"image/x-icon","sizes":"16x16"}]] 1:null diff --git a/validator.html b/validator.html index 7f022e9..ae026ef 100644 --- a/validator.html +++ b/validator.html @@ -1 +1 @@ -XION Validator Details
\ No newline at end of file +XION Validator Details
\ No newline at end of file diff --git a/validator.txt b/validator.txt index 3d90818..53177e5 100644 --- a/validator.txt +++ b/validator.txt @@ -1,8 +1,8 @@ 2:"$Sreact.suspense" -3:I[66355,["350","static/chunks/68b159eb-f350a487f88c1bfb.js","218","static/chunks/aaea2bcf-4abc2b343ea41dae.js","147","static/chunks/6468630d-7fefcf7a3223f2f0.js","228","static/chunks/77693919-7b92b10f5ae0e31c.js","933","static/chunks/5ebe7343-e8d67ddb6cca8663.js","4","static/chunks/4-a82c649a6d50a6e6.js","245","static/chunks/245-8266bc6575a22c44.js","567","static/chunks/567-bdc379a41ba90738.js","495","static/chunks/495-624d50152cedc15b.js","276","static/chunks/app/validator/page-c64697378586801f.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-8a573df626c1a230.js","245","static/chunks/245-8266bc6575a22c44.js","567","static/chunks/567-473fbb658e625348.js","495","static/chunks/495-c4dfbb13cae0bb21.js","276","static/chunks/app/validator/page-bd0b3b0c36f2e5d3.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-a82c649a6d50a6e6.js","567","static/chunks/567-bdc379a41ba90738.js","185","static/chunks/app/layout-6d3018734569504b.js"],""] -0:["Q_T0naol4gB99AzBt99zS",[[["",{"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/3767cbc38a2bd2fc.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-8a573df626c1a230.js","567","static/chunks/567-473fbb658e625348.js","185","static/chunks/app/layout-c5d40c49c0a85fbf.js"],""] +0:["gbnQcujrHZF4-kptybWHW",[[["",{"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/c1327db2fe285a41.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