staking-12c290155dcf6fd0be38.js.下载 10 KB

1
  1. _N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[39],{53:function(t,e,s){s("u+rH"),t.exports=s("WOfG")},GSm1:function(t,e,s){},LFMV:function(t,e,s){"use strict";var a=s("q1tI"),i=s.n(a),n=(s("WzLk"),i.a.createElement);e.a=function(t){var e=t.title,s=t.subtitle,a=t.useSmallerSubTitle,i=void 0!==a&&a,r=t.extra,o=t.bannerSrc;return n("section",{className:"common-banner"},n("div",{className:"banner-inner"},n("div",null,n("h2",{className:"title"},e),n("p",{className:"subtitle ".concat(i?"subtitle-smaller":"")},s),r),n("img",{className:"home-banner",src:o,alt:""})))}},WOfG:function(t,e,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/staking",function(){return s("jHuq")}])},WzLk:function(t,e,s){},jHuq:function(t,e,s){"use strict";s.r(e);var a=s("HaE+"),i=s("1OyB"),n=s("vuIU"),r=s("md7G"),o=s("foSv"),l=s("Ji7U"),c=s("rePB"),u=s("8Kt/"),m=s.n(u),p=s("q1tI"),g=s("LFMV"),b=s("yIgx"),d=s("wzFB"),k=s("0zJ3"),v=s("QIvD"),f=s("J05j"),w=s("ozjc"),h=(s("eznW"),p.createElement);function y(){var t,e,s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",i=s.toStringTag||"@@toStringTag";function n(s,a,i,n){var l=a&&a.prototype instanceof o?a:o,c=Object.create(l.prototype);return j(c,"_invoke",function(s,a,i){var n,o,l,c=0,u=i||[],m=!1,p={p:0,n:0,v:t,a:g,f:g.bind(t,4),d:function(e,s){return n=e,o=0,l=t,p.n=s,r}};function g(s,a){for(o=s,l=a,e=0;!m&&c&&!i&&e<u.length;e++){var i,n=u[e],g=p.p,b=n[2];s>3?(i=b===a)&&(l=n[(o=n[4])?5:(o=3,3)],n[4]=n[5]=t):n[0]<=g&&((i=s<2&&g<n[1])?(o=0,p.v=a,p.n=n[1]):g<b&&(i=s<3||n[0]>a||a>b)&&(n[4]=s,n[5]=a,p.n=b,o=0))}if(i||s>1)return r;throw m=!0,a}return function(i,u,b){if(c>1)throw TypeError("Generator is already running");for(m&&1===u&&g(u,b),o=u,l=b;(e=o<2?t:l)||!m;){n||(o?o<3?(o>1&&(p.n=-1),g(o,l)):p.n=l:p.v=l);try{if(c=2,n){if(o||(i="next"),e=n[i]){if(!(e=e.call(n,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,o<2&&(o=0)}else 1===o&&(e=n.return)&&e.call(n),o<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),o=1);n=t}else if((e=(m=p.n<0)?l:s.call(a,p))!==r)break}catch(e){n=t,o=1,l=e}finally{c=1}}return{value:e,done:m}}}(s,i,n),!0),c}var r={};function o(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][a]?e(e([][a]())):(j(e={},a,(function(){return this})),e),m=c.prototype=o.prototype=Object.create(u);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,j(t,i,"GeneratorFunction")),t.prototype=Object.create(m),t}return l.prototype=c,j(m,"constructor",c),j(c,"constructor",l),l.displayName="GeneratorFunction",j(c,i,"GeneratorFunction"),j(m),j(m,i,"Generator"),j(m,a,(function(){return this})),j(m,"toString",(function(){return"[object Generator]"})),(y=function(){return{w:n,m:p}})()}function j(t,e,s,a){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(j=function(t,e,s,a){if(e)i?i(t,e,{value:s,enumerable:!a,configurable:!a,writable:!a}):t[e]=s;else{var n=function(e,s){j(t,e,(function(t){return this._invoke(e,s,t)}))};n("next",0),n("throw",1),n("return",2)}})(t,e,s,a)}function _(t,e,s){return e=Object(o.a)(e),Object(r.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,s||[],Object(o.a)(t).constructor):e.apply(t,s))}var N=function(t){function e(t){var s;return Object(i.a)(this,e),s=_(this,e,[t]),Object(c.a)(s,"onKeyDown",(function(t){return 8===t.keyCode||(-1!==(t.target.value||"").indexOf(".")&&"."===t.key?(t.preventDefault(),!1):/[\d|.]/.test(t.key)?void 0:(t.preventDefault(),!1))})),Object(c.a)(s,"onKeyUp",(function(t){var e=s.props.cosmosState.validator_yield,a=Number(t.target.value.trim()),i="";i=a!==a||0===a?"":(Number(a)*(.01*e)/365).toFixed(4),s.setState({income:i})})),Object(c.a)(s,"linkI18n",(function(t){return function(t){var e=[{text:t,type:"text",link:""}];return[{keyword:"USDT",link:"https://tether.to/"},{keyword:"ETH",link:"https://www.ethereum.org/"},{keyword:"DAI",link:"https://makerdao.com/"},{keyword:"imKey",link:"https://imkey.im/"},{keyword:"Tokenlon",link:"https://tokenlon.im/"},{keyword:"Tether (USDT)",link:"https://tether.to/"}].forEach((function(t){for(var s=[],a=0;a<e.length;a++){var i=e[a];if("text"===i.type){var n=i.text.split(t.keyword);2===n.length?(s.push({text:n[0],type:"text",link:""}),s.push({text:t.keyword,type:"keyword",link:t.link}),s.push({text:n[1],type:"text",link:""})):s.push({text:n[0],type:"text",link:""})}else s.push(i)}e=s})),e}(t).map((function(t,e){return"text"===t.type?h("span",{key:e},t.text):h("a",{key:e,href:t.link},t.text)}))})),s.state={income:(.01*t.cosmosState.validator_yield*1e3/365).toFixed(4),input:1e3},s}return Object(l.a)(e,t),Object(n.a)(e,[{key:"render",value:function(){var t=this.props,e=t.userAgent,s=t.locale,a=this.state,i=(a.input,a.income,this.props.cosmosState),n=(i.delegated_atom,i.active_address,i.validator_yield,/Mobile/i.test(e));/zh/i.test(s),"".concat(Object(w.d)(s),"/sections/360004052613");return h("div",{className:"staking-page"},h(m.a,null,h("title",null,Object(w.b)("staking_page_title")),h("meta",{name:"description",content:Object(w.b)("staking_page_desc")}),h("meta",{name:"keywords",content:Object(w.b)("keywords")}),h("meta",{name:"generator",content:Object(w.b)("generator")}),h("script",{src:"/scripts/swiper.min.js"}),h("script",{src:"/scripts/staking-swiper.js"})),h(k.a,{userAgent:this.props.userAgent,locale:this.props.locale}),h("div",null,h(g.a,{title:Object(w.b)("staking"),subtitle:Object(w.b)("staking_slogan"),useSmallerSubTitle:/^(ja|en)/i.test(s),extra:null,bannerSrc:"/images/staking/banner.png"}),h(v.a,{title:Object(w.b)("support_projects"),subtitle:"",className:"support-projects"},h("div",{className:"projects"},h("div",{className:"swiper-container carousel wrapper"},h("div",{className:"swiper-wrapper",style:n?{}:{display:"flex",flexFlow:"row wrap",alignItems:"center",justifyContent:"center"}},h("div",{className:"project swiper-slide"},h("img",{alt:"ethereum",className:"logo",src:"/images/staking/ethereum-logo.svg"}),h("img",{alt:"ethereum",src:"/images/staking/ethereum-text-logo.svg"}),h("p",null,Object(w.b)("ethereum_slogan"))),h("div",{className:"project swiper-slide"},h("img",{alt:"cosmos",className:"logo",src:"/images/staking/cosmos-logo.svg"}),h("img",{alt:"cosmos",src:"/images/staking/cosmos-text-logo.svg"}),h("p",null,Object(w.b)("cosmos_slogan"))),h("div",{className:"project swiper-slide"},h("img",{alt:"polkadot",className:"logo",src:"/images/staking/polkadot-logo.svg"}),h("img",{alt:"polkadot",src:"/images/staking/polkadot-text-logo.svg"}),h("p",null,Object(w.b)("polkadot_slogan"))),h("div",{className:"project swiper-slide"},h("img",{alt:"kusama",className:"logo",src:"/images/staking/kusama-logo.svg"}),h("img",{alt:"kusama",src:"/images/staking/kusama-text-logo.svg"}),h("p",null,Object(w.b)("kusama_slogan"))),h("div",{className:"project swiper-slide"},h("img",{alt:"tezos",className:"logo",src:"/images/staking/tezos-logo.svg"}),h("img",{alt:"tezos",src:"/images/staking/tezos-text-logo.svg"}),h("p",null,Object(w.b)("tezos_slogan"))),h("div",{className:"project swiper-slide"},h("img",{alt:"more",className:"logo",src:"/images/staking/more-logo.svg"}),h("img",{alt:"more",src:"/images/staking/stay-text-logo.svg",style:{height:30}}),h("p",null,Object(w.b)("stay_tuned")))),h("div",{className:"swiper-pagination"})))),h(v.a,{title:Object(w.b)("cosmos_staking_data"),subtitle:"",className:"cosmos-staking-data"},h("div",{className:"staking-data"},h("div",{className:"wrapper"},h("div",{className:"block left-block",style:{paddingRight:50}},h("div",{className:"data-wrapper"},h("p",{className:"title"},Object(w.b)("atoms_delegated_title")),h("img",{alt:"atoms",src:"/images/staking/atoms-delegated.svg"}))),h("div",{className:"divider-vertical"}),h("div",{className:"block right-block",style:{paddingLeft:50}},h("div",{className:"data-wrapper"},h("p",{className:"title"},Object(w.b)("wallets_active_title")),h("img",{alt:"wallets",src:"/images/staking/wallets-activated.svg"})))))),h(v.a,{title:Object(w.b)("how_it_works"),className:"how-it-works"},n?h("p",{className:"subtitle"},h("span",null,"".concat(Object(w.b)("how_it_works_title1")))):h("div",null,h("span",{className:"subtitle"},Object(w.b)("how_it_works_title1"))),h("div",{className:"steps"},h("div",{className:"steps-wrapper wrapper"},h("div",null,h("img",{alt:"How it works",src:"/images/staking/step1.svg"}),h("p",null,h("span",{className:"step-title"},Object(w.b)("how_it_works_step1")))),h("div",null,h("img",{alt:"How it works",src:"/images/staking/step2.svg"}),h("p",null,h("span",{className:"step-title"},Object(w.b)("how_it_works_step2")))),h("div",null,h("img",{alt:"How it works",src:"/images/staking/step3.svg"}),h("p",null,h("span",{className:"step-title"},Object(w.b)("how_it_works_step3"))))))),h(b.a,{title:Object(w.b)("stake_with_imtoken"),subtitle:"",sectionClass:"stake-with-imtoken",items:[{title:Object(w.b)("simple"),subtitles:[this.linkI18n(Object(w.b)("simple_desc"))],imgSrc:"/images/staking/Simple.svg"},{title:Object(w.b)("secure"),subtitles:[this.linkI18n(Object(w.b)("secure_desc"))],imgSrc:"/images/staking/Secure.svg"},{title:Object(w.b)("pos"),subtitles:[this.linkI18n(Object(w.b)("pos_desc"))],imgSrc:"/images/staking/PoS.svg"}]}),h(v.a,{title:Object(w.b)("staking_partners"),className:"partners"},h("div",{className:"list"},h("div",{className:"wrapper"},h("a",{className:"partner-logo",href:"https://infstones.com/",target:"_blank"},h("img",{alt:"Infstone",src:"/images/staking/infstones.svg"})),h("a",{className:"partner-logo",href:"https://www.hashquark.io/",target:"_blank"},h("img",{alt:"hashquark",src:"/images/staking/hashquark.svg"})))))),h(d.a,{locale:s,userAgent:this.props.userAgent}))}}],[{key:"getInitialProps",value:function(){var t=Object(a.a)(y().m((function t(e){return y().w((function(t){for(;;)switch(t.n){case 0:return t.a(2,{cosmosState:e.query.cosmosState})}}),t)})));return function(e){return t.apply(this,arguments)}}()}])}(p.Component);e.default=Object(f.a)(N)},yIgx:function(t,e,s){"use strict";var a=s("q1tI"),i=s.n(a),n=s("QIvD"),r=(s("GSm1"),i.a.createElement);e.a=function(t){var e=t.sectionClass,s=t.title,a=t.subtitle,i=t.items,o=t.subtitleExtra,l=void 0===o?null:o,c=t.children,u=void 0===c?null:c;return r(n.a,{title:s,subtitle:a,className:e||"",subtitleExtra:l},r("div",{className:"flex-row feature-row"},i.map((function(t,e){return r("div",{className:"flex-column",key:t.title||e},r("div",null,r("img",{src:t.imgSrc,alt:"Wallet"}),r("div",null,r("p",{className:"title"},t.title),(t.subtitles||[]).map((function(t){return r("p",{className:"subtitle",key:t},t)})))),t.extra)}))),u)}}},[[53,1,2,4,5,0,3,6,7,9,8]]]);