forked from cerc-io/cosmos-explorer
1 line
137 KiB
JavaScript
1 line
137 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["h5"],{"0343":function(t,e,a){var i=a("e4de");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("7c68c960",i,!0,{sourceMap:!1,shadowMode:!1})},"03cd":function(t,e,a){var i=a("0766");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("50cf9668",i,!0,{sourceMap:!1,shadowMode:!1})},"0555":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".governance-title-panel[data-v-19eea813]{padding:20px 20px 0 20px}.governance-id-title[data-v-19eea813]{color:rgba(0,0,0,.85);font-weight:700;font-size:24px;line-height:32px}.governance-tab[data-v-19eea813]{width:100px;text-align:center;-ms-flex-item-align:end;align-self:flex-end}.governance-tab-active[data-v-19eea813]{border-bottom:2px solid #232323}.governance-id-sub[data-v-19eea813]{padding-left:40px;text-align:right}.governance-id-subtitle[data-v-19eea813]{margin-bottom:4px;color:rgba(0,0,0,.45);font-size:14px}.governance-id-subvalue[data-v-19eea813]{color:rgba(0,0,0,.85);font-size:24px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.governance-id-name[data-v-19eea813]{color:rgba(0,0,0,.85);font-weight:400;font-size:14px;width:100px;display:inline-block;line-height:1.5715;white-space:nowrap;margin-right:10px}.address-area .governance-id-name[data-v-19eea813]{display:block}.governance-id-val[data-v-19eea813]{color:rgba(0,0,0,.65);font-size:14px;line-height:1.5715}",""]),t.exports=e},"0702":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-header",{staticStyle:{background:"#343a40",height:"48px",padding:"0 15px"}},[a("H5TopBar",{attrs:{back:!0}})],1),a("keep-alive",[a("router-view",{staticStyle:{"overflow-x":"hidden"}})],1)],1)},s=[],n=a("c524"),r={components:{H5TopBar:n["a"]},data:function(){return{active:"/validator"}},created:function(){this.active=this.$route.path}},o=r,l=a("2877"),c=Object(l["a"])(o,i,s,!1,null,null,null);e["default"]=c.exports},"0766":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".area-item[data-v-4a6de995]{text-align:center;padding:10px 0;background:#fff;border:1px solid #eee}.area-item[data-v-4a6de995]:hover{-webkit-box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.1);box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.1);border:1px solid #343a40}.area-item-text[data-v-4a6de995]{margin:0;font-weight:500;color:#343a40;font-size:18px}.area-item-title[data-v-4a6de995]{font-size:14px;color:#98a6ad}.area-title[data-v-4a6de995]{font-size:14px;color:#333;margin-bottom:10px}",""]),t.exports=e},"07b6":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.filterShow.node?a("ParamItem",{attrs:{title:t.$t("message.parameter_VersionParameters"),content:t.nodeInfo}}):t._e(),t.filterShow.node?a("ParamItem",{attrs:{title:t.$t("message.parameter_NodeParameters"),content:t.nodeParameters}}):t._e(),t.filterShow.governance?a("div",[a("p",{staticClass:"area-title"},[t._v(t._s(t.$t("message.parameter_GovernanceParameters")))]),a("el-row",{attrs:{gutter:20}},[a("el-col",{staticClass:"parameter-item",attrs:{xs:24,sm:12,md:12,lg:8,xl:8}},[a("div",{staticClass:"parameter-item-content"},[a("div",{staticClass:"parameter-item-title"},[t._v(t._s(t.$t("message.parameter_Deposit")))]),a("div",{staticClass:"parameter-item-value"},[t._v(t._s(t.min_deposit))]),a("div",{staticClass:"parameter-item-subtitle"},[t._v(" "+t._s(t.$t("message.parameter_MaxDepositPeriod"))+" "),a("span",{staticClass:"parameter-item-subvalue"},[t._v(" "+t._s(t.max_deposit_period)+" ")])])])]),a("el-col",{staticClass:"parameter-item",attrs:{xs:24,sm:12,md:12,lg:8,xl:8}},[a("div",{staticClass:"parameter-item-content"},[a("div",{staticClass:"parameter-item-title"},[t._v(t._s(t.$t("message.parameter_Voting")))]),a("div",{staticClass:"parameter-item-value"},[t._v(t._s(t.voting_period))]),a("div",{staticClass:"parameter-item-subtitle",staticStyle:{"text-align":"center"}},[t._v(t._s(t.$t("message.parameter_VotingPeriod")))])])]),a("el-col",{staticClass:"parameter-item",attrs:{xs:24,sm:12,md:12,lg:8,xl:8}},[a("div",{staticClass:"parameter-item-content"},[a("div",{staticClass:"parameter-item-title",staticStyle:{"margin-bottom":"0px"}},[t._v(t._s(t.$t("message.parameter_Tallying")))]),a("div",{staticClass:"parameter-item-subvalue2"},[t._v(" "+t._s(t.$t("message.parameter_Quorum"))+" "),a("span",[t._v(t._s(t.quorum))])]),a("div",{staticClass:"parameter-item-subvalue2"},[t._v(" "+t._s(t.$t("message.parameter_Threshold"))+" "),a("span",[t._v(t._s(t.threshold))])]),a("div",{staticClass:"parameter-item-subvalue2"},[t._v(" "+t._s(t.$t("message.parameter_Veto"))+" "),a("span",[t._v(t._s(t.veto))])])])])],1)],1):t._e(),t.filterShow.staking?a("ParamItem",{attrs:{title:t.$t("message.parameter_StakingParameters"),content:t.stakingParameters}}):t._e(),a("ParamItem",{attrs:{title:t.$t("message.parameter_SlashingParameters"),nums:4,content:t.slashingParameters}}),t.filterShow.distribution?a("ParamItem",{attrs:{title:t.$t("message.parameter_DistributionParameters"),content:t.distributionParameters}}):t._e(),t.filterShow.mint?a("ParamItem",{attrs:{title:t.$t("message.parameter_MintParameters"),nums:3,content:t.mintParameters}}):t._e(),t.filterShow.cdp?a("ParamItem",{attrs:{title:t.$t("message.parameter_cdp"),content:t.cdp}}):t._e(),t.filterShow.cdp?a("ParamItem",{attrs:{title:"Auction",content:t.auction}}):t._e(),t.filterShow.cdp?a("ParamItem",{attrs:{title:"Bep3",content:t.bep3}}):t._e(),t.filterShow.cdp?a("ParamItem",{attrs:{title:"Incentive",content:t.incentive}}):t._e()],1)},s=[],n=(a("b680"),a("47f5")),r=a("5530"),o=a("1da1"),l=(a("96cf"),{created:function(){this.initData()},computed:{current:function(){return window.chain},earningRate:function(){if(!this.inflation_val||!this.bondedRate.val)return{percent:"--",value:null};var t=this.inflation_val/this.bondedRate.val,e=(100*t).toFixed(2)+"%";return{percent:e,value:t}},inflation_val:function(){return this.data.inflation_val},bondedRate:function(){if(!this.tokenTotal||!this.tokens.bonded_tokens_val)return{percent:"--"};var t=this.tokenTotal,e=this.tokens.bonded_tokens_val;return{percent:(e/t*100).toFixed(2)+"%",val:e/t}}},data:function(){return{tokenTotal:"",tokenTotal_str:"",tokens:{bonded_tokens:"--",bonded_tokens_val:null},blockHeight:"--",data:{}}},methods:{getSupplyTotal:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getSupplyTotal");case 2:a=e.sent,t.tokenTotal=a.amount,t.tokenTotal_str=a.amount_str;case 5:case"end":return e.stop()}}),e)})))()},getStakingPool:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getStakingPool");case 2:a=e.sent,t.tokens=a;case 4:case"end":return e.stop()}}),e)})))()},initValidator:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.initBlockHeight();case 1:case"end":return e.stop()}}),e)})))()},initBlockHeight:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getRpcBlockchain",{minHeight:0,maxHeight:0});case 2:a=e.sent,t.blockHeight=a.last_height;case 4:case"end":return e.stop()}}),e)})))()},initData:function(){var t=this;this.initValidator(),this.getSupplyTotal(),this.getStakingPool();var e=["getNodeInfoRes","getStakingParameters","getGovParametersDeposit","getGovParametersVoting","getGovParametersTallying","getSlashingParameters","getDistributionParameters","getMintingParameters","getMintingInflation","getMintingAnnualProvisionsn"];"e-money"===this.current.chainId&&(e=["getStakingParameters","getSlashingParameters","getDistributionParameters"]),"kava-2"===this.current.chainId&&(e.push("getKavaCdpParameters"),e.push("getKavaPricefeed"),e.push("getKavaIncentive"),e.push("getKavaBep3"),e.push("getKavaAuction"));for(var a=0,i=e;a<i.length;a++){var s=i[a];this.$api.fetch(s).then((function(e){var a=JSON.parse(JSON.stringify(t.data));t.data=Object(r["a"])(Object(r["a"])({},a),e)}))}}}}),c={mixins:[l],components:{ParamItem:n["a"]},computed:{incentive:function(){var t=this.data.rewards,e=t&&t[0]&&t[0].available_rewards&&t[0].available_rewards.amount&&(t[0].available_rewards.amount/6).toFixed(2);return[{title:"rewards denom",value:t&&t[0]&&t[0].denom||"--"},{title:"rewards available",value:e||"--"},{title:"rewards duration",value:t&&t[0]&&t[0].duration||"--"},{title:"rewards time_lock",value:t&&t[0]&&t[0].time_lock||"--"},{title:"rewards claim_duration",value:t&&t[0]&&t[0].claim_duration||"--"}]},bep3:function(){var t=this.data,e=t.bnb_deputy_address,a=t.bnb_deputy_fixed_fee,i=t.min_amount,s=t.max_amount,n=t.min_block_lock,r=t.max_block_lock;return[{title:"bnb_deputy_address",value:e||"--"},{title:"bnb_deputy_fixed_fee",value:a&&parseFloat((a/8).toFixed(2))||"--"},{title:"min_amount",value:i||"--"},{title:"max_amount",value:s&&parseFloat((s/8).toFixed(2))||"--"},{title:"min_block_lock",value:n||"--"},{title:"max_block_lock",value:r||"--"}]},auction:function(){var t=this.data,e=t.max_auction_duration,a=t.bid_duration,i=t.increment_surplus,s=t.increment_debt,n=t.increment_collateral;return[{title:"max_auction_duration",value:e||"--"},{title:"bid_duration",value:a||"--"},{title:"increment_surplus",value:i||"--"},{title:"increment_debt",value:s||"--"},{title:"increment_collateral",value:n||"--"}]},cdp:function(){var t=this.data,e=t.circuit_breaker,a=t.debt_auction_lot,i=t.debt_auction_threshold,s=t.global_debt_limit,n=t.savings_distribution_frequency,r=t.surplus_auction_lot,o=t.surplus_auction_threshold,l=(t.collateral_params,t.debt_param);return[{title:"circuit_breaker",value:e?"Active":"Inactive"},{title:"debt_auction_lot",value:a||"--"},{title:"debt_auction_threshold",value:i||"--"},{title:"global_debt_limit",value:s&&parseFloat((s.amount/6).toFixed(2))||"--"},{title:"savings_distribution_frequency",value:n||"--"},{title:"surplus_auction_lot",value:r||"--"},{title:"surplus_auction_threshold",value:o||"--"},{title:"debt_param conversion_factor",value:l&&l.conversion_factor||"--"},{title:"debt_param debt_floor",value:l&&parseFloat((l.debt_floor/6).toFixed(2))||"--"},{title:"debt_param reference_asset",value:l&&l.reference_asset||"--"},{title:"debt_param savings_rate",value:l&&l.savings_rate||"--"},{title:"debt_param denom",value:l&&l.denom||"--"}]},nodeInfo:function(){var t=this.data,e=t.node_info,a=t.application_version;return[{title:this.$t("message.validator_network"),value:e&&e.network||"--"},{title:this.$t("message.validator_version"),value:e&&e.version||"--"},{title:this.$t("message.validator_go"),value:a&&a.go||"--"},{title:this.$t("message.validator_application_version"),value:a&&a.version||"--"}]},nodeParameters:function(){var t=this.data,e=(t.unbonding_time,t.max_validators);t.max_entries,t.bond_denom;return[{title:this.$t("message.validator_BlockHeight"),value:this.blockHeight||"--"},{title:this.$t("message.validator_Validators"),value:e||"--"},{title:this.$t("message.validator_BondedTokens"),value:this.tokens.bonded_tokens+"/"+this.tokenTotal_str||"--"},{title:this.$t("message.validator_EarningRate"),value:this.earningRate.percent||"--"}]},filterShow:function(){var t={governance:!0,staking:!0,slashing:!0,distribution:!0,mint:!0,node:!0,cdp:!1},e=window.chain.chainId;switch(e){case"e-money":case"irishub":t.governance=!1,t.mint=!1,t.node=!1;break;case"kava-2":t.cdp=!0;break}return t},stakingParameters:function(){var t=this.data,e=t.unbonding_time,a=t.max_validators,i=t.max_entries,s=t.bond_denom;return[{title:this.$t("message.parameter_UnbondingTime"),value:e||"--"},{title:this.$t("message.parameter_MaxValidators"),value:a||"--"},{title:this.$t("message.parameter_MaxEntries"),value:i||"--"},{title:this.$t("message.parameter_BondDenom"),value:s||"--"}]},slashingParameters:function(){var t=this.data,e=t.max_evidence_age,a=t.signed_blocks_window,i=t.min_signed_per_window,s=t.downtime_jail_duration,n=t.slash_fraction_double_sign,r=t.slash_fraction_downtime;return[{title:this.$t("message.parameter_MaxEvidenceAge"),value:e||"--"},{title:this.$t("message.parameter_SignedBlocksWindow"),value:a||"--"},{title:this.$t("message.parameter_MinSignedPerWindow"),value:i||"--"},{title:this.$t("message.parameter_DowntimeJailDuration"),value:s||"--"},{title:this.$t("message.parameter_DoubleSignSlash"),value:n||"--"},{title:this.$t("message.parameter_DowntimeSlash"),value:r||"--"}]},distributionParameters:function(){var t=this.data,e=t.community_tax,a=t.base_proposer_reward,i=t.bonus_proposer_reward,s=t.withdraw_addr_enabled;return[{title:this.$t("message.parameter_CommunityTax"),value:e||"--"},{title:this.$t("message.parameter_BaseProposerReward"),value:a||"--"},{title:this.$t("message.parameter_BonusProposerReward"),value:i||"--"},{title:this.$t("message.parameter_WithdrawAddrEnabled"),value:s||"--"}]},mintParameters:function(){var t=this.data,e=t.goal_bonded,a=t.inflation,i=t.inflation_max,s=t.inflation_min,n=t.inflation_rate_change,r=t.blocks_per_year,o=t.annual_provisions,l=t.mint_denom;return[{title:this.$t("message.parameter_GoalBonded"),value:e||"--"},{title:this.$t("message.parameter_Inflation"),value:a||"--"},{title:this.$t("message.parameter_InflationMax"),value:i||"--"},{title:this.$t("message.parameter_InflationMin"),value:s||"--"},{title:this.$t("message.parameter_InflationChange"),value:n||"--"},{title:this.$t("message.parameter_BlocksPerYear"),value:r||"--"},{title:this.$t("message.parameter_AnnualProvisions"),value:o||"--"},{title:this.$t("message.parameter_MintDenom"),value:l||"--"}]},min_deposit:function(){return this.data.min_deposit||"--"},max_deposit_period:function(){return this.data.max_deposit_period||"--"},voting_period:function(){return this.data.voting_period||"--"},quorum:function(){return this.data.quorum||"--"},threshold:function(){return this.data.threshold||"--"},veto:function(){return this.data.veto||"--"}}},d=c,p=(a("5e73"),a("2877")),u=Object(p["a"])(d,i,s,!1,null,"5ecdb0d7",null);e["default"]=u.exports},"0dd4":function(t,e,a){"use strict";a("de9f")},"0e6a":function(t,e,a){"use strict";var i=a("6a70"),s=a("93eb");location.hostname;e["a"]={computed:{current:function(){return window.chain}},data:function(){return{chains:s["a"],loading:!1}},methods:{initChain:function(){this.chains=s["a"]},goAddChain:function(){this.$router.push("/chain-add")},switchChain:function(t){Object(i["a"])(t)}}}},"0f67":function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));var i=a("1da1"),s=(a("96cf"),a("bc3a")),n=a.n(s);function r(){return o.apply(this,arguments)}function o(){return o=Object(i["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.a.get("/look/chain/type");case 2:return e=t.sent,t.abrupt("return",e.data);case 4:case"end":return t.stop()}}),t)}))),o.apply(this,arguments)}},"125c":function(t,e,a){"use strict";a("33f5")},"14c0":function(t,e,a){"use strict";a("ea6d")},"152c":function(t,e,a){"use strict";a("3042")},1566:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'.validators-table-wrap[data-v-109b3578]{padding:15px;background:#fff}.validators-table-title[data-v-109b3578]{font-size:16px;font-weight:700}.validators-1[data-v-109b3578]{border:1px solid #6658dd;background:#d8d5f7}.validators-1-icon[data-v-109b3578]{color:#6658dd;font-size:40px}.validators-2[data-v-109b3578]{border:1px solid #1abc9c;background:#c5eee6}.validators-2-icon[data-v-109b3578]{color:#1abc9c;font-size:18px}.validators-3[data-v-109b3578]{border:1px solid #4fc6e1;background:#d3f1f8}.validators-3-icon[data-v-109b3578]{color:#4fc6e1;font-size:18px}.validators-4[data-v-109b3578]{border:1px solid #f7b84b;background:#fdedd2}.validators-4-icon[data-v-109b3578]{color:#f7b84b;font-size:16px}.validators-columns-name[data-v-109b3578]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:16px}.pagevalidators-item[data-v-109b3578]{background:#fff;padding:10px 20px;margin-bottom:5px}.pagevalidators-text[data-v-109b3578]{text-align:right}.pagevalidators-number[data-v-109b3578]{color:#323a46;font-weight:500;margin:10px 0;font-family:-apple-system,Cerebri Sans,"sans-serif";font-size:24px}.pagevalidators-subtitle[data-v-109b3578]{color:#98a6ad;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pagevalidators-iconwrap[data-v-109b3578]{width:70px;height:70px;border-radius:100%}',""]),t.exports=e},"1a2af":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("div",{staticClass:"bg-white",staticStyle:{padding:"10px 15px","margin-bottom":"10px"}},[a("div",{staticClass:"list-title"},[t._v("Committee")]),a("div",[a("div",[a("span",{staticStyle:{display:"inline-block",width:"140px"}},[t._v("id")]),a("span",[t._v(t._s(t.item.id))])]),a("div",[a("span",{staticStyle:{display:"inline-block",width:"140px"}},[t._v("description")]),a("span",[t._v(t._s(t.item.description))])]),a("div",[a("span",{staticStyle:{display:"inline-block",width:"140px"}},[t._v("vote_threshold")]),a("span",[t._v(t._s(t.item.vote_threshold))])]),a("div",[a("span",{staticStyle:{display:"inline-block",width:"140px"}},[t._v("proposal_duration")]),a("span",[t._v(t._s(t.item.proposal_duration))])])])]),a("div",{staticClass:"bg-white",staticStyle:{padding:"10px 15px","margin-bottom":"10px"}},[a("div",{staticClass:"list-title"},[t._v("Members")]),t._l(t.item.members,(function(e,i){return a("div",{key:i,staticStyle:{"margin-bottom":"5px"}},[a("el-tag",[t._v(t._s(e))])],1)}))],2),a("div",[a("div",{staticClass:"list-title"},[t._v("Permissions")]),a("div",t._l(t.item.permissions,(function(e,i){return a("div",{key:i,staticClass:"bg-white",staticStyle:{padding:"10px 15px","margin-bottom":"10px"}},[a("div",{staticClass:"list-title",staticStyle:{"border-bottom":"1px solid #eee","padding-bottom":"10px"}},[t._v(t._s(e.type))]),t._l(e.value,(function(e,i){return a("div",{key:i},[a("div",{staticStyle:{"font-size":"16px","margin-bottom":"10px","border-left":"3px solid #2e3338","padding-left":"5px"}},[t._v(t._s(i))]),a("div",t._l(e,(function(e,i){return a("div",{key:i},t._l(e,(function(e,i){return a("el-tag",{key:i,staticStyle:{"margin-right":"10px","margin-bottom":"10px"},attrs:{type:"primary"}},[t._v(t._s(i)+" : "+t._s(e))])})),1)})),0)])}))],2)})),0)])])},s=[],n=a("1da1"),r=(a("96cf"),{activated:function(){this.init()},data:function(){return{loading:!1,item:{}}},created:function(){this.init()},methods:{init:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,a=t.$route.params.id,e.next=4,t.$axios.get("/committee/committees/".concat(a),{headers:{server:window.chain.lcd}});case 4:i=e.sent,t.loading=!1,t.item=i.result;case 7:case"end":return e.stop()}}),e)})))()}}}),o=r,l=(a("f02a"),a("2877")),c=Object(l["a"])(o,i,s,!1,null,"22b5500b",null);e["default"]=c.exports},"1e4b":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".list-title[data-v-22b5500b]{font-size:18px;font-weight:400;margin-bottom:10px}",""]),t.exports=e},"1fc6":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".governance-item[data-v-4a6adce2]{border-bottom:1px solid #eee;border-top:1px solid #eee;padding:15px}.governance-item[data-v-4a6adce2]:hover{-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.governance-title[data-v-4a6adce2]{cursor:pointer;margin-bottom:12px;color:rgba(0,0,0,.85);font-size:16px;line-height:24px}.governance-title[data-v-4a6adce2]:hover{color:#1890ff}.governance-foot[data-v-4a6adce2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-top:16px;color:rgba(0,0,0,.45)}.governance-time[data-v-4a6adce2]{color:rgba(0,0,0,.25);font-style:normal}",""]),t.exports=e},"1fda":function(t,e,a){var i=a("7bbf");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("651c6612",i,!0,{sourceMap:!1,shadowMode:!1})},"2e0c":function(t,e,a){var i=a("d4b0");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("cd8a608e",i,!0,{sourceMap:!1,shadowMode:!1})},3024:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("page",{staticStyle:{padding:"15px"}})],1)},s=[],n=a("07b6"),r={components:{page:n["default"]}},o=r,l=a("2877"),c=Object(l["a"])(o,i,s,!1,null,null,null);e["default"]=c.exports},3037:function(t,e,a){"use strict";a("cf47")},3042:function(t,e,a){var i=a("e5ce");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("9be7dc82",i,!0,{sourceMap:!1,shadowMode:!1})},"33d9":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("page",{staticStyle:{padding:"15px 0"}})],1)},s=[],n=a("c88a"),r={components:{page:n["default"]}},o=r,l=a("2877"),c=Object(l["a"])(o,i,s,!1,null,null,null);e["default"]=c.exports},"33f5":function(t,e,a){var i=a("72eb");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("5963b424",i,!0,{sourceMap:!1,shadowMode:!1})},3603:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"area-title area-title-main"},[t._v(t._s(t.$t("message.txhash_Information")))]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"bg-white",staticStyle:{padding:"20px"}},[a("div",{staticClass:"tx-item"},[a("div",{staticClass:"tx-item-title"},[t._v(t._s(t.$t("message.txhash_TxHash")))]),a("div",{staticClass:"tx-item-val"},[t._v(t._s(t.hash))])]),a("div",{staticClass:"tx-item"},[a("div",{staticClass:"tx-item-title"},[t._v(t._s(t.$t("message.txhash_Status")))]),a("div",{staticClass:"tx-item-val"},[a("el-tag",{attrs:{type:t.tx.success?"success":"danger"}},[t._v(t._s(t.tx.success?"Success":"Fail"))]),t.tx.success?t._e():a("span",{staticStyle:{"margin-left":"10px"}},[t._v(t._s(t.tx.log&&t.tx.log.message||t.tx.log))])],1)]),a("div",{staticClass:"tx-item"},[a("div",{staticClass:"tx-item-title"},[t._v(t._s(t.$t("message.txhash_Height")))]),a("div",{staticClass:"tx-item-val"},[t._v(t._s(t.tx.height))])]),a("div",{staticClass:"tx-item"},[a("div",{staticClass:"tx-item-title"},[t._v(t._s(t.$t("message.txhash_Fee")))]),a("div",{staticClass:"tx-item-val"},[t._v(t._s(t.tx.fee))])]),a("div",{staticClass:"tx-item"},[a("div",{staticClass:"tx-item-title"},[t._v(t._s(t.$t("message.txhash_Gas")))]),a("div",{staticClass:"tx-item-val"},[t._v(t._s(t.tx.gas_used)+" / "+t._s(t.tx.gas_wanted))])]),a("div",{staticClass:"tx-item"},[a("div",{staticClass:"tx-item-title"},[t._v(t._s(t.$t("message.txhash_Time")))]),a("div",{staticClass:"tx-item-val"},[t._v(t._s(t.tx.time))])])]),a("div",{staticClass:"area-title area-title-main"},[t._v(t._s(t.$t("message.txhash_Msgs")))]),!t.tx.msgs||t.tx.msgs&&0===t.tx.msgs.length?a("dingyi-empty",{attrs:{loading:t.loading}}):t._e(),t._l(t.tx.msgs,(function(e,i){return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],key:i,staticClass:"bg-white",staticStyle:{padding:"20px","margin-top":"20px","padding-bottom":"10px"}},[a("div",{staticClass:"area-title"},[t._v(t._s(e.type))]),t._l(e.value,(function(e,i){return a("div",{key:i,staticClass:"tx-item"},[a("div",{staticClass:"tx-item-title"},[t._v(t._s(i))]),a("div",{staticClass:"tx-item-val"},[t._v(t._s(e))])])}))],2)}))],2)},s=[],n=a("b85c"),r=a("1da1"),o=(a("96cf"),a("ac1f"),a("1276"),a("5319"),a("6be8")),l={mixins:[],data:function(){return{tx:{},loading:!1,hash:""}},created:function(){this.init()},methods:{init:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a,i,s,r,l,c,d,p,u,m,v,g,f,h,b,_,x,k;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.hash=t.$route.params.hash,t.loading=!0,e.next=4,t.$api.fetch("getTxsHash",{hash:t.hash});case 4:if(a=e.sent,a){e.next=8;break}return t.loading=!1,e.abrupt("return");case 8:a.success=!!a.logs,!a.success&&a.logs&&(a.log=a.logs[0]&&a.logs[0].log&&JSON.parse(a.logs[0].log)||a.raw_log),"irishub"===t.chainId&&(a.success=0===a.result.Code,a.log=a.success?"":a.result.Log,a.gas_used=a.result.GasUsed,a.gas_wanted=a.result.GasWanted),a.fee=a.tx.value.fee.amount&&(a.tx.value.fee.amount.amount&&a.tx.value.fee.amount.amount+" "+a.tx.value.fee.amount.denom||a.tx.value.fee.amount[0]&&a.tx.value.fee.amount[0].amount+" "+a.tx.value.fee.amount[0].denom)||"0",a.time=Object(o["c"])(a.timestamp),i=a.tx.value.msg,s=[],r=Object(n["a"])(i);try{for(r.s();!(l=r.n()).done;){for(u in c=l.value,d=c.value,p={},d){m=u.split("_"),v="",g=Object(n["a"])(m);try{for(g.s();!(f=g.n()).done;)h=f.value,b=h.replace(h[0],h[0].toUpperCase()),v+=v?" "+b:b}catch(w){g.e(w)}finally{g.f()}_="",("amount"===u||"value"===u)&&d[u]&&d[u].amount?_=d[u].amount+" "+d[u].denom:"amount"===u&&d[u]&&!d[u].amount?_=d[u][0].amount+" "+d[u][0].denom:"description"===u?(x=d[u],_=x.details||"--",p[t.$t("message.txhash_moniker")]=x.moniker,p[t.$t("message.txhash_identity")]=x.identity,p[t.$t("message.txhash_website")]=x.website):"commission"===u?(k=d[u],_=null,p[t.$t("message.txhash_CommissionRate")]=Object(o["b"])(k.rate),p[t.$t("message.txhash_CommissionMaxRate")]=Object(o["b"])(k.max_rate),p[t.$t("message.txhash_CommissionMaxChangeRate")]=Object(o["b"])(k.max_change_rate)):_="delegation"===u?d[u].amount+" "+d[u].denom:d[u],_&&(p[v]=_)}s.push({type:c.type,value:p})}}catch(w){r.e(w)}finally{r.f()}a.msgs=s,t.tx=a,t.loading=!1;case 20:case"end":return e.stop()}}),e)})))()}}},c=l,d=(a("ba6f"),a("2877")),p=Object(d["a"])(c,i,s,!1,null,null,null);e["default"]=p.exports},"377e":function(t,e,a){var i=a("1fc6");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("e1502258",i,!0,{sourceMap:!1,shadowMode:!1})},3901:function(t,e,a){"use strict";var i=a("1da1");a("96cf");e["a"]={created:function(){this.init()},data:function(){return{address:"",loading:!1}},methods:{init:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,t.$route.query.address&&(t.address=t.$route.query.address),e.next=4,t.$api.fetch("getCommitteeCommittees");case 4:a=e.sent,t.loading=!1,t.list=a||[];case 7:case"end":return e.stop()}}),e)})))()},fetchTotalBondedTokens:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getStakingPool");case 2:a=e.sent,t.$store.commit("bondedTokensSet",a.bonded_tokens_val),t.init();case 5:case"end":return e.stop()}}),e)})))()}}}},3931:function(t,e,a){var i=a("e95d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("eeb34ea8",i,!0,{sourceMap:!1,shadowMode:!1})},3949:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",["kava-2"===t.current.chainId?a("div",{staticStyle:{"margin-bottom":"10px","text-align":"center","margin-top":"10px"}},[a("el-radio-group",{attrs:{size:"mini"},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[a("el-radio-button",{attrs:{label:"governance"}},[t._v(t._s(t.$t("message.governance")))]),a("el-radio-button",{attrs:{label:"kava"}},[t._v(t._s(t.$t("message.committee")))])],1)],1):t._e(),a("div",{directives:[{name:"show",rawName:"v-show",value:"governance"===t.tab,expression:"tab === 'governance'"}]},t._l(t.list,(function(e,i){return a("div",{key:i,staticClass:"bg-white governance-item mb-10"},[a("div",{staticClass:"flex-1"},[a("div",{staticClass:"mb-10"},[a("el-link",{attrs:{href:"#/governance/"+e.id,disabled:"--"===e.id}},["--"!==e.id?a("i",{staticClass:"el-icon-reading mr-10"}):t._e(),t._v(" "+t._s(e.title)+" ")])],1),a("div",{staticClass:"mb-10"},[a("el-tag",{staticClass:"mr-10",attrs:{type:"info",size:"mini"}},[t._v(" "+t._s("id: "+e.id)+" ")]),a("el-tag",{staticClass:"mr-10",attrs:{type:"info",size:"mini"}},[t._v(" "+t._s(e.proposal_status)+" ")])],1),"--"!==e.id&&"VotingPeriod"!==e.proposal_status&&"DepositPeriod"!==e.proposal_status?a("div",{staticStyle:{background:"#f5f5f5",padding:"10px 0"}},[a("RateBar",{attrs:{baseHeight:40,barWidth:"70px",id:i,data:[{type:"Yes",value:e.yes,bg:"#52c41a",label:e.yes_percent},{type:"Abstain",value:e.abstain,label:e.abstain_percent,bg:"#faad14"},{type:"No",value:e.no,label:e.no_percent,bg:"#e66"},{type:"No Veto",value:e.no_with_veto,label:e.no_with_veto_percent,bg:"#ddd"},{type:"Join",value:e.join,label:e.join_percent,bg:"#91d5ff"}]}})],1):t._e(),a("div",{staticClass:"governance-foot"},["--"!==e.id?a("el-link",{staticClass:"mr-10",attrs:{href:"#/governance/"+e.id}},[t._v(" "+t._s(t.$t("message.block_detail"))+" "),a("i",{staticClass:"el-icon-arrow-right"})]):t._e(),a("span",{staticClass:"governance-time"},[t._v(t._s(e.submit_time))])],1)])])})),0),a("KavaGovernance",{directives:[{name:"show",rawName:"v-show",value:"kava-2"===t.current.chainId&&"kava"===t.tab,expression:"current.chainId === 'kava-2' && tab === 'kava'"}]})],1)},s=[],n=a("61b3"),r=a("d75d"),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"box-dark"},t._l(t.list,(function(e,i){return a("div",{key:i,staticClass:"bg-white governance-item"},[a("div",{staticClass:"flex-1"},[a("div",{staticClass:"mb-10"},[a("el-link",{attrs:{href:"#/committee/"+e.id,disabled:"--"===e.id}},["--"!==e.id?a("i",{staticClass:"el-icon-reading mr-10"}):t._e(),t._v(" "+t._s(e.description)+" ")])],1),a("div",{staticClass:"mb-10"},[a("el-tag",{staticClass:"mr-10 mb-10",attrs:{type:"info",size:"mini"}},[t._v(" "+t._s("id: "+e.id)+" ")]),a("el-tag",{staticClass:"mr-10 mb-10",attrs:{type:"info",size:"mini"}},[t._v(" "+t._s(e.vote_threshold_str)+" ")]),a("el-tag",{staticClass:"mr-10 mb-10",attrs:{type:"info",size:"mini"}},[t._v(" "+t._s(e.proposal_duration_str)+" ")]),a("el-tag",{staticClass:"mr-10 mb-10",attrs:{type:"info",size:"mini"}},[t._v("members: "+t._s(e.members&&e.members.length))]),a("el-tag",{staticClass:"mr-10 mb-10",attrs:{type:"info",size:"mini"}},[t._v("permissions: "+t._s(e.permissions&&e.permissions.length))])],1)])])})),0)},l=[],c=a("3901"),d=a("4f4f"),p={components:{RateBar:d["a"]},mixins:[c["a"]],data:function(){for(var t=[],e=0;e<5;e+=1)t.push({id:"--",title:"--",description_sub:"--",proposal_status:"--",time:"---"});return{list:t}}},u=p,m=(a("4f99"),a("2877")),v=Object(m["a"])(u,o,l,!1,null,"eb299322",null),g=v.exports,f={components:{KavaGovernance:g,RateBar:r["a"]},computed:{current:function(){return window.chain}},mixins:[n["a"]],data:function(){for(var t=[],e=0;e<5;e+=1)t.push({id:"--",title:"--",description_sub:"--",proposal_status:"--",time:"---"});return{list:t,tab:"governance"}}},h=f,b=(a("658e"),Object(m["a"])(h,i,s,!1,null,"4a6adce2",null));e["default"]=b.exports},"3a1d":function(t,e,a){var i=a("1566");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("02e25b5c",i,!0,{sourceMap:!1,shadowMode:!1})},"3bb4":function(t,e,a){var i=a("c5de");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("3efa5346",i,!0,{sourceMap:!1,shadowMode:!1})},"3d0a":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("page",{staticStyle:{padding:"15px 0"}})],1)},s=[],n=a("5c2f"),r={components:{page:n["default"]}},o=r,l=a("2877"),c=Object(l["a"])(o,i,s,!1,null,null,null);e["default"]=c.exports},"3e6f":function(t,e,a){"use strict";a("3bb4")},4351:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=this,a=e.$createElement,i=e._self._c||a;return i("div",[i("div",{staticStyle:{display:"flex","align-items":"center"}},[i("div",{staticClass:"list-title",staticStyle:{"margin-right":"10px"}},[e._v("CDP")]),i("el-popover",{attrs:{placement:"top-start",trigger:"hover",width:"300"}},[i("div",[i("img",{staticStyle:{width:"100%"},attrs:{src:"/static/cdp/risk.png",alt:""}})]),i("i",{staticClass:"el-icon-info",staticStyle:{color:"#aaa","margin-right":"10px"},attrs:{slot:"reference"},slot:"reference"})]),i("div",{staticClass:"pointer",staticStyle:{color:"#aaa"},on:{click:function(){t.showStatus=!t.showStatus}}},[e._v(e._s(e.showStatus?"hide":"show"))]),i("div",{staticClass:"flex-1"}),i("el-radio-group",{attrs:{size:"mini"},on:{change:e.switchTab},model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},e._l(e.collateral_params,(function(t,a){return i("el-radio-button",{key:a,attrs:{label:t.denom}},[e._v(e._s(t.denom))])})),1)],1),i("div",[i("ParamItem",{directives:[{name:"show",rawName:"v-show",value:e.showStatus,expression:"showStatus"}],attrs:{title:"",nums:4,content:e.cdp}}),e.show?[0===e.dataPage.length?i("dingyi-empty",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]}):e._e(),e._l(e.dataPage,(function(t,a){return i("div",{key:a,staticStyle:{"margin-top":"10px"}},[i("van-cell-group",[i("van-cell",{attrs:{bottom:"",title:t.owner}},[i("el-popover",{attrs:{trigger:"click",placement:"bottom-end",width:"300"}},[i("div",[i("img",{staticStyle:{width:"100%"},attrs:{src:"/static/cdp/risk.png",alt:""}})]),i("div",{class:[t.riskType],staticStyle:{"font-size":"16px"},attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.riskStr))])])],1),i("div",{staticStyle:{padding:"0 15px 10px 15px"}},[i("div",{staticClass:"cell-item"},[i("div",[e._v("Collateral Deposited")]),i("div",{staticStyle:{"text-align":"right"}},[i("div",[e._v(e._s(t.collateral))]),i("div",{staticStyle:{"font-size":"10px"}},[e._v(e._s(t.collateral2))])])]),i("div",{staticClass:"cell-item"},[i("div",[e._v("Principal Drawn")]),i("div",[e._v(e._s(t.principal))])]),i("div",{staticClass:"cell-item",staticStyle:{"margin-top":"5px"}},[i("div",[e._v("Ratio")]),i("div",[e._v(e._s(t.ratio))])]),i("div",{staticClass:"cell-item",staticStyle:{"margin-top":"5px"}},[i("div",[e._v("Accumulated Fees")]),i("div",[e._v(e._s(t.accumulated_fees))])]),i("div",{staticClass:"cell-item",staticStyle:{"margin-top":"5px"}},[i("div",[e._v("Fees Updated")]),i("div",[e._v(e._s(t.time))])])])],1)],1)}))]:i("dingyi-data-table",{ref:"dt",attrs:{noLocalPaging:!0,toolbar:!1,btns:{noFresh:!0,index:!0},datas:e.dataPage,columns:e.columns,loading:e.loading}}),i("div",{staticStyle:{"text-align":"center","margin-top":"20px"}},[i("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:e.datas.length},on:{"current-change":e.pageChange}})],1)],2)])},s=[],n=a("5530"),r=a("b85c"),o=a("1da1"),l=(a("96cf"),a("b680"),a("a9e3"),a("fb6a"),a("6be8")),c=a("d9bc"),d=a("47f5"),p={props:{show:{default:!1}},components:{ParamItem:d["a"]},computed:{cdp:function(){var t=this.data,e=t.circuit_breaker,a=(t.debt_auction_lot,t.debt_auction_threshold,t.global_debt_limit,t.savings_distribution_frequency,t.surplus_auction_lot,t.surplus_auction_threshold,t.collateral_params,t.debt_param),i=(t.auction_size,t.conversion_factor,t.liquidation_market_id,t.liquidation_penalty),s=t.liquidation_ratio;t.prefix,t.spot_market_id,t.stability_fee,t.debt_limit;return[{title:"liquidation ratio",value:s&&Number(s).toFixed(2)||"--"},{title:"liquidation penalty",value:i&&Number(i).toFixed(4)||"--"},{title:"debt param",value:a&&a.denom||"--"},{title:"reference asset",value:a&&a.reference_asset||"--"},{title:"circuit breaker",value:e||!1}]}},data:function(){this.$createElement;return{showStatus:!this.show,tab:"",tabObj:{},data:{},collateral_params:[],collateral_paramsObj:{},datas:[],dataPage:[],dataPageNum:1,columns:[{label:"Owner",width:130,render:function(t,e){var a=e.props.scope.row,i=a||{},s=i.owner;return t("div",{class:"validators-columns-name font-14"},[s])}},{label:"Collateral Deposited",render:function(t,e){var a=e.props.scope.row,i=a||{},s=i.collateral,n=i.collateral2;return t("div",[t("div",{class:"validators-columns-name font-14"},[s]),t("div",{class:"validators-columns-name font-14"},[n])])}},{label:"Principal Drawn",render:function(t,e){var a=e.props.scope.row,i=a||{},s=i.principal;return t("div",{class:"validators-columns-name font-14"},[s])}},{label:"Accumulated Fees",render:function(t,e){var a=e.props.scope.row,i=a||{},s=i.accumulated_fees,n=i.time;return t("div",[t("div",{class:"validators-columns-name font-14"},[s]),t("div",{class:"validators-columns-name font-14"},[n])])}},{label:"Ratio",width:80,sortable:!0,"sort-method":function(t,e){var a=t.ratio,i=e.ratio;return Number(a)-Number(i)},render:function(t,e){var a=e.props.scope.row,i=a||{},s=i.ratio;return t("div",{class:"validators-columns-name font-14"},[s])}},{label:"Risk Score",width:120,cdprisk:!0,sortable:!0,"sort-method":function(t,e){var a=t.risk,i=e.risk;return Number(a)-Number(i)},render:function(t,e){var a=e.props.scope.row,i=a||{},s=i.risk;return t("el-popover",{attrs:{trigger:"click",placement:"top-start",width:"300"}},[t("div",[t("img",{style:"width: 100%;",attrs:{src:"/static/cdp/risk.png",alt:!0}})]),t("div",{slot:"reference",class:"validators-columns-name font-14"},[t("el-tag",{attrs:{size:"mini",type:Number(s)<50?"success":Number(s)>80?"danger":"warning"},class:"pointer",style:"font-size: 16px"},[s])])])}}],loading:!1}},created:function(){this.init()},methods:{pageChange:function(t){this.dataPageNum=t||1,this.dataPage=this.datas.slice(10*(this.dataPageNum-1),10*this.dataPageNum)},getCdpDenom:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,e.$axios.get("/cdp/cdps/denom/".concat(t),{headers:{server:window.chain.lcd}});case 2:i=a.sent,e.formatDatas(i.result),e.pageChange(),e.loading=!1;case 6:case"end":return a.stop()}}),a)})))()},formatDatas:function(t){var e,a=Object(r["a"])(t);try{for(a.s();!(e=a.n()).done;){var i=e.value,s=i.cdp,n=s.owner,o=s.collateral;i.owner=n&&n.substr(0,4)+"..."+n.substr(-8),i.collateral=o&&Object(l["d"])(o.amount,!1,!0,o.denom,8);var c=i.collateral_value;i.collateral2=c&&Object(l["d"])(c.amount,!1,!0,c.denom),i.principal=s&&s.principal&&Object(l["d"])(s.principal.amount,!1,!1,s.principal.denom),i.accumulated_fees=s&&s.accumulated_fees&&Object(l["d"])(s.accumulated_fees.amount,!1,!1,s.accumulated_fees.denom),i.time=s&&s.fees_updated&&Object(l["c"])(s.fees_updated),i.ratio=Number(i.collateralization_ratio).toFixed(4);var d=c.amount,p=s.principal.amount;i.risk=Object(l["a"])(100*(1-(d-p)/d)),i.riskType=Number(i.risk)<50?"type-success":Number(i.risk)>80?"type-danger":"type-warning",i.riskStr=(Number(i.risk)<50?"Low Risk ":Number(i.risk)>80?"High Risk ":"Middle Risk ")+i.risk}}catch(u){a.e(u)}finally{a.f()}this.datas=t},switchTab:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.tabObj=t.collateral_paramsObj[t.tab],e.next=3,t.getCdpDenom(t.tab);case 3:t.data=Object(n["a"])(Object(n["a"])({},t.data),t.tabObj);case 4:case"end":return e.stop()}}),e)})))()},init:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,i,s,n,o,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,t.$axios.get("/cdp/parameters",{headers:{server:window.chain.lcd}});case 3:a=e.sent,i=a.result,i.debt_auction_lot=Object(l["e"])(i.debt_auction_lot),i.surplus_auction_lot=Object(l["e"])(i.surplus_auction_lot),i.debt_auction_threshold=Object(l["e"])(i.debt_auction_threshold),i.surplus_auction_threshold=Object(l["e"])(i.surplus_auction_threshold),i.savings_distribution_frequency=Object(l["e"])(i.savings_distribution_frequency),i.debt_param.savings_rate=Object(c["c"])(i.debt_param.savings_rate),t.data=i,t.collateral_params=a.result.collateral_params,s={},n=Object(r["a"])(t.collateral_params);try{for(n.s();!(o=n.n()).done;)d=o.value,s[d.denom]=d}catch(p){n.e(p)}finally{n.f()}t.collateral_paramsObj=s,t.tab=t.collateral_params[0].denom,t.switchTab();case 19:case"end":return e.stop()}}),e)})))()}}},u=p,m=(a("4548"),a("2877")),v=Object(m["a"])(u,i,s,!1,null,"a28a7660",null);e["default"]=v.exports},4548:function(t,e,a){"use strict";a("6d26")},4625:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bg-white",staticStyle:{padding:"10px 15px"}},[a("div",{staticClass:"list-title"},[t._v("Auction")]),a("dingyi-data-table",{ref:"dt",attrs:{noLocalPaging:!0,toolbar:!1,btns:{noFresh:!0,index:!0},datas:t.datas,columns:t.columns,loading:t.loading}})],1)},s=[],n=a("1da1"),r=(a("96cf"),{data:function(){return{datas:[],columns:[{label:"initiator",prop:"initiator"},{label:"bidder",prop:"bidder"},{label:"has_received_bids",prop:"has_received_bids"},{label:"type",prop:"type"},{label:"phase",prop:"phase"}],loading:!1}},created:function(){this.init()},methods:{init:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,t.$axios.get("/auction/auctions",{headers:{server:window.chain.lcd}});case 3:a=e.sent,t.loading=!1,t.datas=a.result;case 6:case"end":return e.stop()}}),e)})))()}}}),o=r,l=(a("642a"),a("2877")),c=Object(l["a"])(o,i,s,!1,null,"e2911a26",null);e["default"]=c.exports},"469d":function(t,e,a){var i=a("9878");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("37dffbec",i,!0,{sourceMap:!1,shadowMode:!1})},"47f5":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("p",{staticClass:"area-title"},[t._v(t._s(t.title))]),a("el-row",{attrs:{gutter:20}},t._l(t.content,(function(e,i){return a("el-col",{key:i,staticStyle:{"margin-bottom":"15px"},attrs:{xs:24,sm:12,md:t.nums,lg:t.nums,xl:t.nums}},[a("div",{staticClass:"area-item"},[a("h3",{staticClass:"area-item-text"},[t._v(" "+t._s(e.value)+" ")]),a("p",{staticClass:"area-item-title"},[t._v(t._s(e.title))])])])})),1)],1)},s=[],n={props:{nums:{default:6},title:"",content:{default:function(){return{}}}}},r=n,o=(a("8fbe"),a("2877")),l=Object(o["a"])(r,i,s,!1,null,"4a6de995",null);e["a"]=l.exports},4939:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".less33{background:#f8dbdb!important;border-top-color:#fff!important}.less33,.less33 td,.less68{border-bottom-color:#fff!important}.less68{background:#faeed9!important;border-top-color:#fff!important}.less68 td{border-bottom-color:#fff!important}",""]),t.exports=e},"49fa":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("page",{staticStyle:{padding:"15px"}})],1)},s=[],n=a("9e94"),r={components:{page:n["default"]}},o=r,l=a("2877"),c=Object(l["a"])(o,i,s,!1,null,null,null);e["default"]=c.exports},"4ae0":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"box-dark p-20",staticStyle:{background:"#fff"}},[a("div",[a("div",{staticClass:"flex-center",staticStyle:{"justify-content":"center"}},[a("el-radio-group",{staticClass:"box-base",attrs:{size:"mini"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[a("el-radio-button",{attrs:{label:"bonded"}},[t._v(t._s(t.$t("message.validator_Active")))]),a("el-radio-button",{attrs:{label:"unbonded"}},[t._v(t._s(t.$t("message.validator_Inactive")))])],1)],1),a("div",{staticClass:"flex-center",staticStyle:{"justify-content":"center","margin-top":"20px"}},[a("el-button",{staticClass:"box-base",staticStyle:{"font-size":"16px","margin-right":"10px","margin-left":"10px"},attrs:{disabled:t.loading||t.blockHeightMin<=1,icon:"el-icon-arrow-left",size:"mini",circle:""},on:{click:t.nextPage}}),a("el-form",{nativeOn:{submit:function(e){return e.preventDefault(),t.switchHeight(e)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.switchHeight(e))}}},[a("el-input",{staticClass:"box-base",staticStyle:{"min-width":"100px","max-width":"200px"},attrs:{disabled:t.loading,type:"number"},on:{blur:t.switchHeight},model:{value:t.blockHeightMin,callback:function(e){t.blockHeightMin=e},expression:"blockHeightMin"}})],1),a("span",{staticStyle:{margin:"0 10px"}},[t._v("-")]),a("el-input",{staticClass:"box-base",staticStyle:{"min-width":"100px","max-width":"200px"},attrs:{disabled:"",type:"number"},model:{value:t.blockHeightMax,callback:function(e){t.blockHeightMax=e},expression:"blockHeightMax"}}),a("el-button",{staticClass:"box-base",staticStyle:{"font-size":"14px","margin-left":"10px","margin-right":"10px"},attrs:{disabled:t.loading||t.blockHeightMax>=t.blockHeight-1,size:"mini",icon:"el-icon-arrow-right",circle:""},on:{click:t.prevPage}})],1)]),a("div",{staticStyle:{"margin-top":"20px","margin-bottom":"30px"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:"bonded"===t.type,expression:"type === 'bonded'"}],staticClass:"uptime-content"},t._l(t.validators,(function(e,i){return a("div",{key:i},[a("div",{staticStyle:{"margin-bottom":"6px"}},[a("a",{staticClass:"uptime-username",attrs:{href:"#/validator/"+e.operator_address,title:e.moniker,underline:!1}},[t._v(" "+t._s(e.moniker)+" "),a("i",{staticClass:"el-icon-arrow-right"})])]),a("div",{staticClass:"flex-center mb-10"},t._l(t.heightArr,(function(t,i){return a("a",{key:i,staticClass:"uptime-block-item",class:{"uptime-block-item-active":t.precommits&&t.precommits[e.hexAddress]},attrs:{href:"#/block/"+t.height,title:t.height}})})),0)])})),0),a("div",{directives:[{name:"show",rawName:"v-show",value:"unbonded"===t.type,expression:"type === 'unbonded'"}],staticClass:"uptime-content"},t._l(t.validatorsUnbonded,(function(e,i){return a("div",{key:i},[a("div",{staticStyle:{"margin-bottom":"6px"}},[a("a",{staticClass:"uptime-username",attrs:{href:"#/validator/"+e.operator_address,title:e.moniker,underline:!1}},[t._v(" "+t._s(e.moniker)+" "),a("i",{staticClass:"el-icon-arrow-right"})])]),a("div",{staticClass:"flex-center mb-10"},t._l(t.heightArr,(function(t,i){return a("a",{key:i,staticClass:"uptime-block-item",class:{"uptime-block-item-active":t.precommits&&t.precommits[e.hexAddress]},attrs:{href:"#/block/"+t.height,title:t.height}})})),0)])})),0),0===t.validators.length?a("dingyi-empty",{attrs:{loading:t.loading}}):t._e()],1)])},s=[],n=a("1da1"),r=(a("a9e3"),a("96cf"),{props:{len:{default:50}},data:function(){return{type:"bonded",loading:!1,validators:[],validatorsUnbonded:[],heightArr:[],initHeight:null,blockHeight:null,blockHeightMax:null,blockHeightMin:null,precommitObj:[]}},created:function(){this.initData()},methods:{initData:function(){this.getStakingValidators(),this.getUnbondedValidators()},getUnbondedValidators:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getStakingValidators",{status:"V4"===window.chain.api?"BOND_STATUS_UNBONDED":"unbonded"});case 2:if(a=e.sent,a){e.next=5;break}return e.abrupt("return");case 5:t.validatorsUnbonded=a.result;case 6:case"end":return e.stop()}}),e)})))()},getStakingValidators:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,t.$api.fetch("getStakingValidators",{});case 3:return a=e.sent,t.validators=a.result,e.next=7,t.initBlockHeight();case 7:case"end":return e.stop()}}),e)})))()},initBlockHeight:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("V2"!==window.chain.api){e.next=7;break}return e.next=3,t.$api.fetch("getValidatorsetsLatest");case 3:a=e.sent,t.blockHeight=a.block_height,e.next=11;break;case 7:return e.next=9,t.$api.fetch("getRpcBlockchain",{minHeight:0,maxHeight:0});case 9:i=e.sent,t.blockHeight=i.last_height;case 11:t.initHeight=Number(t.blockHeight),t.blockHeightMax=t.blockHeight,t.switchHeight(),t.loading=!1;case 15:case"end":return e.stop()}}),e)})))()},switchHeight:function(){Number(this.blockHeightMax)>=Number(this.blockHeight)&&(this.blockHeightMax=Number(this.blockHeight)-1),Number(this.blockHeightMax)<this.len&&(this.blockHeightMax=this.len),this.blockHeightMin=this.blockHeightMax-this.len+1,this.fetchPage()},fetchPage:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a,i,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(a=[],i=function(e){var i=e,s={height:i,precommits:{}};a.push(s),t.$api.fetch("getRpcCommitHeight",{height:i}).then((function(t){s.precommits=t}))},s=t.blockHeightMax;s>=t.blockHeightMin;s-=1)i(s);t.heightArr=a.reverse(),t.loading=!1;case 5:case"end":return e.stop()}}),e)})))()},nextPage:function(){this.blockHeightMax=Number(this.blockHeightMax)-Number(this.len)-1,Number(this.blockHeightMax)<this.len&&(this.blockHeightMax=this.len),this.blockHeightMin=this.blockHeightMax-this.len,this.fetchPage()},prevPage:function(){this.blockHeightMax=Number(this.blockHeightMax)+Number(this.len)+1,Number(this.blockHeightMax)>=Number(this.blockHeight)&&(this.blockHeightMax=this.blockHeight-1),this.blockHeightMin=this.blockHeightMax-this.len,this.fetchPage()}}}),o={mixins:[r]},l=o,c=(a("935a"),a("2877")),d=Object(c["a"])(l,i,s,!1,null,"98160f48",null);e["default"]=d.exports},"4c55":function(t,e,a){"use strict";a("8d53")},"4f4f":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex-center",staticStyle:{"align-items":"flex-end","align-self":"flex-end","justify-content":"center"}},t._l(t.data,(function(e,i){return a("div",{key:i,staticClass:"ratebar-item",style:{width:t.barWidth}},[a("div",[t._v(t._s(e.label||e.value))]),a("div",{staticClass:"rateline-line",style:{height:e.value*t.baseHeight+"px",background:e.bg,width:t.lineWidth}}),e.line?a("div",{staticClass:"ratebar-scale",style:{top:"-"+e.line*t.baseHeight+"px"}}):t._e(),a("div",{staticClass:"ratebar-text"},[t._v(t._s("Yes"===e.type?t.$t("message.governance_Yes"):"Abstain"===e.type?t.$t("message.governance_Abstain"):"No"===e.type?t.$t("message.governance_No"):"No Veto"===e.type?t.$t("message.governance_NoVeto"):"Join"===e.type?t.$t("message.governance_Join"):""))])])})),0)},s=[],n={props:{barWidth:{default:"50px"},lineWidth:{default:"20px"},baseHeight:{default:100},data:{default:function(){return[{type:"Yes",value:1,bg:"#52c41a",line:.5},{type:"No",value:.3,bg:"#faad14",line:.334},{type:"Abstain",value:.3,bg:"#e66",line:null},{type:"No Veto",value:.2,bg:"#ddd",line:null}]}}}},r=n,o=(a("125c"),a("2877")),l=Object(o["a"])(r,i,s,!1,null,"c3025474",null);e["a"]=l.exports},"4f99":function(t,e,a){"use strict";a("bc1e")},5025:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("page",{staticStyle:{padding:"15px 0"},attrs:{len:16}})],1)},s=[],n=a("4ae0"),r={components:{page:n["default"]}},o=r,l=a("2877"),c=Object(l["a"])(o,i,s,!1,null,null,null);e["default"]=c.exports},"5c2f":function(t,e,a){"use strict";a.r(e);var i,s=function(){var t=this,e=this,a=e.$createElement,i=e._self._c||a;return i("div",[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"bg-white box-dark governance-title-panel"},[i("div",{staticClass:"flex-center mb-10",staticStyle:{"align-items":"flex-start"}},[e.item.avatar?i("el-avatar",{staticStyle:{"margin-right":"20px"},attrs:{src:e.item.avatar,shape:"square",size:60}}):e._e(),i("div",{staticClass:"governance-id-title"},[i("div",[e._v(e._s(e.item.moniker))]),i("div",[e.item.identity?i("el-tag",{staticStyle:{"align-self":"flex-end","margin-right":"10px"},attrs:{type:"info",size:"mini"}},[e._v(e._s(e.item.identity))]):e._e(),e.item.website?i("el-tag",{staticStyle:{"align-self":"flex-end"},attrs:{type:"info",size:"mini"}},[e._v(e._s(e.item.website))]):e._e()],1)]),i("div",{staticClass:"governance-id-sub"},[i("div",{staticClass:"governance-id-subvalue",staticStyle:{color:"#ffa607"}},[e._v(e._s(e.earningRate.rewards))]),i("div",{staticClass:"governance-id-subtitle"},[e._v(e._s(e.$t("message.validatoraddress_EarningRate")))])]),i("div",{staticClass:"flex-1"})],1),i("div",{staticClass:"mb-20",staticStyle:{color:"#999"}},[e._v(e._s(e.item.details))]),i("el-divider"),i("el-row",[i("el-col",{staticClass:"mb-20",attrs:{sm:10,xs:24}},[i("div",{staticClass:"mb-10"},[i("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.validatoraddress_VotingPower"))+":")]),i("span",{staticClass:"governance-id-val",staticStyle:{"font-size":"16px"}},[e._v(" "+e._s(e.item.voting_power)+" "),i("span",{staticStyle:{"font-size":"14px"}},[e._v("("+e._s(e.voting_power_percent)+")")])])]),i("div",{staticClass:"mb-10"},[i("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.validatoraddress_SelfDelegation"))+":")]),i("span",{staticClass:"governance-id-val",staticStyle:{"font-size":"16px"}},[e._v(" "+e._s(e.selfShare.shares_str)+" "),i("span",{staticStyle:{"font-size":"14px"}},[e._v("("+e._s(e.selfShare.shares_percent||"--")+")")])])]),i("div",{staticClass:"mb-10"},[i("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.validatoraddress_Uptime"))+":")]),i("span",{staticClass:"governance-id-val",staticStyle:{"font-size":"16px"}},[e._v(" "+e._s(e.uptime.percent)+" "),i("span",{staticStyle:{"font-size":"14px"}},[e._v("("+e._s(e.uptime.missed_blocks_counter)+")")])])]),i("div",{staticClass:"mb-10"},[e._v(e._s(e.$t("message.validatoraddress_Commission"))+":")]),i("div",{staticClass:"flex-center",staticStyle:{"justify-content":"flex-start","align-items":"flex-start"}},[i("div",{staticClass:"governance-id-sub",staticStyle:{"text-align":"left","padding-left":"0"}},[i("div",{staticClass:"governance-id-subtitle"},[e._v(e._s(e.$t("message.validatoraddress_Rate")))]),i("div",{staticClass:"governance-id-subvalue"},[e._v(e._s(e.item.commission_rate_percent))])]),i("div",{staticClass:"governance-id-sub",staticStyle:{"text-align":"left","padding-left":"30px"}},[i("div",{staticClass:"governance-id-subtitle"},[e._v(e._s(e.$t("message.validatoraddress_Max")))]),i("div",{staticClass:"governance-id-subvalue"},[e._v(e._s(e.item.commission_rate_max_percent))])]),i("div",{staticClass:"governance-id-sub",staticStyle:{"text-align":"left","padding-left":"30px"}},[i("div",{staticClass:"governance-id-subtitle"},[e._v(e._s(e.$t("message.validatoraddress_Change")))]),i("div",{staticClass:"governance-id-subvalue"},[e._v(e._s(e.item.commission_rate_max_change_percent))])])])]),i("el-col",{staticClass:"mb-20 address-area",attrs:{sm:14,xs:24}},[i("div",{staticClass:"mb-10"},[i("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.validatoraddress_Address"))+":")]),i("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.userAddress))])]),i("div",{staticClass:"mb-10"},[i("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.validatoraddress_ValidatorAddress"))+":")]),i("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.operator_address))])]),i("div",{staticClass:"mb-10"},[i("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.validatoraddress_Publickey"))+":")]),i("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.consensus_pubkey))])]),i("div",{staticClass:"mb-10"},[i("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.validatoraddress_HEXAddress"))+":")]),i("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.hexAddress))])])])],1),i("div",{staticClass:"flex-center"},[i("div",{staticClass:"governance-tab",class:{"governance-tab-active":"Votes"===e.tab},on:{click:function(){t.tab="Votes"}}},[i("el-button",{staticStyle:{"font-size":"14px"},attrs:{type:"text"}},[e._v(e._s(e.$t("message.validatoraddress_Info")))])],1),i("div",{staticClass:"flex-1"})])],1),i("div",{directives:[{name:"show",rawName:"v-show",value:"Votes"===e.tab,expression:"tab === 'Votes'"}]},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{md:24,sm:24}},[i("div",{staticClass:"bg-white box-dark mt-20"},[i("div",{staticStyle:{padding:"10px 15px","border-bottom":"1px solid #eee"}},[e._v(e._s(e.$t("message.validatoraddress_Delegations")))]),i("div",{staticStyle:{padding:"0 10px"}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.delegationList}},[i("el-table-column",{attrs:{prop:"delegator_address",label:e.$t("message.validatoraddress_Delegator")},scopedSlots:e._u([{key:"default",fn:function(t){return[e.addressObj[t.row.delegator_address]?i("a",{attrs:{href:"#/validator/"+e.addressObj[t.row.delegator_address].operator_address}},[e._v(e._s(e.addressObj[t.row.delegator_address].moniker))]):i("span",[e._v(e._s(t.row.delegator_address))])]}}])}),i("el-table-column",{attrs:{prop:"shares_str",label:e.$t("message.validatoraddress_Amount"),width:"200px"}}),i("el-table-column",{attrs:{prop:"shares_percent",label:e.$t("message.validatoraddress_Share"),width:"100px"}}),i("dingyi-empty",{attrs:{slot:"empty",loading:e.loadingDelegations},slot:"empty"})],1)],1)])])],1)],1)])},n=[],r=a("ade3"),o=a("b85c"),l=a("1da1"),c=(a("96cf"),a("d9bc")),d=a("251c"),p=a("0d5e"),u=function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(e){var a,i,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.identity,t.next=3,p["a"].get("/_/api/1.0/user/lookup.json",{params:{key_suffix:a,fields:"pictures"},headers:{server:"https://keybase.io"}});case 3:return i=t.sent,s="",i.them&&i.them.length>0&&(s=i.them[0].pictures.primary.url),t.abrupt("return",{avatar:s});case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),m=u,v=(a("b680"),{computed:{earningRate:function(){if(!this.inflation_val||!this.tokens.bonded_tokens_val||!this.totalTokens.amount||!this.item.commission_rate)return{percent:"--",rewards:"--"};var t=this.inflation_val/(this.tokens.bonded_tokens_val/this.totalTokens.amount),e=(100*t).toFixed(2)+"%",a=(t*(1-this.item.commission_rate)*100).toFixed(2)+"%";return{rewards:a,percent:e,value:t}}},data:function(){return{totalTokens:{amount:null},tokens:{bonded_tokens:"--",bonded_tokens_val:null},inflation_val:null}},methods:{initEarningRate:function(){this.getSupplyTotal(),this.getStakingPool(),this.getMintingInflation()},getSupplyTotal:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getSupplyTotal");case 2:a=e.sent,t.totalTokens=a;case 4:case"end":return e.stop()}}),e)})))()},getStakingPool:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getStakingPool");case 2:a=e.sent,t.tokens=a;case 4:case"end":return e.stop()}}),e)})))()},getMintingInflation:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getMintingInflation");case 2:a=e.sent,t.inflation_val=a.inflation_val;case 4:case"end":return e.stop()}}),e)})))()}}}),g=(a("a9e3"),{computed:{uptime:function(){var t=this.parameters.signed_blocks_window,e=this.signInfo.missed_blocks_counter;if(!t||!e)return{percent:"--",missed_blocks_counter:"--"};var a=Object(c["c"])((t-Number(e))/t);return{percent:a,missed_blocks_counter:e}}},data:function(){return{signInfo:{missed_blocks_counter:null},parameters:{signed_blocks_window:null}}},methods:{initUptime:function(){this.getSlashingValidatorsSigningInfo(),this.getSlashingParameters()},getSlashingValidatorsSigningInfo:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getSlashingValidatorsSigningInfo",{validatorAddress:t.item.consensus_pubkey}).catch((function(t){}));case 2:if(a=e.sent,a){e.next=5;break}return e.abrupt("return");case 5:t.signInfo=a;case 6:case"end":return e.stop()}}),e)})))()},getSlashingParameters:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getSlashingParameters");case 2:a=e.sent,t.parameters=a;case 4:case"end":return e.stop()}}),e)})))()}}}),f=a("636f"),h=(i={mixins:[v,g,f["a"]],computed:{total_deposit:function(){return"--"}},data:function(){return{loading:!1,loadingDelegations:!1,address:"",item:{},delegationList:[],selfShare:{}}}},Object(r["a"])(i,"computed",{voting_power_percent:function(){return this.item.tokens&&this.totalTokens.amount?Object(c["c"])(this.item.tokens/this.totalTokens.amount):"--"}}),Object(r["a"])(i,"created",(function(){this.initData()})),Object(r["a"])(i,"activated",(function(){this.initData()})),Object(r["a"])(i,"methods",{back:function(){this.$router.back()},initData:function(){var t=this.$route.params.address;this.address=t,this.item={},this.getValidatorsAddress(t),this.getStakingValidatorsDelegations(t),this.initEarningRate()},getValidatorsAddress:function(t){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function a(){var i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.loading=!0,a.next=3,e.$api.fetch("getStakingValidatorsValidatorAddress",{validatorAddress:t}).catch((function(t){console.log(t)}));case 3:if(i=a.sent,e.loading=!1,i){a.next=7;break}return a.abrupt("return");case 7:e.item=i,e.initUptime(),e.getKeyBase(i.identity);case 10:case"end":return a.stop()}}),a)})))()},getStakingValidatorsDelegations:function(t){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function a(){var i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.loadingDelegations=!0,a.next=3,e.$api.fetch("getStakingValidatorsDelegations",{validatorAddress:t});case 3:if(i=a.sent,e.loadingDelegations=!1,i){a.next=7;break}return a.abrupt("return");case 7:e.delegationList=i,e.selfDelegations(i);case 9:case"end":return a.stop()}}),a)})))()},selfDelegations:function(t){var e,a=Object(d["d"])(this.address),i=Object(o["a"])(t);try{for(i.s();!(e=i.n()).done;){var s=e.value;a===s.delegator_address&&(this.selfShare=s)}}catch(n){i.e(n)}finally{i.f()}},getKeyBase:function(t){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function a(){var i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,m({identity:t});case 2:i=a.sent,e.item.avatar=i.avatar;case 4:case"end":return a.stop()}}),a)})))()}}),i),b=a("d75d"),_={components:{RateBar:b["a"]},mixins:[h],data:function(){return{tab:"Votes"}}},x=_,k=(a("0dd4"),a("2877")),w=Object(k["a"])(x,s,n,!1,null,"19eea813",null);e["default"]=w.exports},"5e73":function(t,e,a){"use strict";a("db0f")},"61b3":function(t,e,a){"use strict";var i=a("1da1");a("96cf");e["a"]={created:function(){this.fetchTotalBondedTokens()},data:function(){return{address:"",loading:!1}},methods:{init:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,t.$route.query.address&&(t.address=t.$route.query.address),e.next=4,t.$api.fetch("getGovProposals");case 4:a=e.sent,t.loading=!1,t.list=a||[];case 7:case"end":return e.stop()}}),e)})))()},fetchTotalBondedTokens:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getStakingPool");case 2:a=e.sent,t.$store.commit("bondedTokensSet",a.bonded_tokens_val),t.init();case 5:case"end":return e.stop()}}),e)})))()}}}},"623c":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bg-white",staticStyle:{padding:"10px 15px"}},[a("div",{staticClass:"list-title"},[t._v("Pricefeed")]),a("dingyi-data-table",{ref:"dt",attrs:{noLocalPaging:!0,toolbar:!1,btns:{noFresh:!0,index:!0},datas:t.datas,columns:t.columns,loading:t.loading}})],1)},s=[],n=a("1da1"),r=a("b85c"),o=(a("96cf"),{data:function(){this.$createElement;return{datas:[],columns:[{label:"oracles",prop:"oracles",render:function(t,e){var a,i=e.props.scope.row,s=i||{},n=s.oracles,o=[],l=Object(r["a"])(n);try{for(l.s();!(a=l.n()).done;){var c=a.value;o.push(t("div",{style:"margin-bottom: 5px;"},[t("el-tag",{attrs:{type:"info"}},[c])]))}}catch(d){l.e(d)}finally{l.f()}return t("el-popover",{attrs:{placement:"right-start",trigger:"click"}},[t("div",[o]),t("el-button",{attrs:{type:"text"},slot:"reference",style:"color: #409EFF"},["Show"])])}},{label:"market_id",prop:"market_id"},{label:"base_asset",prop:"base_asset"},{label:"quote_asset",prop:"quote_asset"},{label:"active",prop:"active"}],loading:!1}},created:function(){this.init()},methods:{init:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,t.$axios.get("/pricefeed/markets",{headers:{server:window.chain.lcd}});case 3:a=e.sent,t.loading=!1,t.datas=a.result;case 6:case"end":return e.stop()}}),e)})))()}}}),l=o,c=(a("9758"),a("2877")),d=Object(c["a"])(l,i,s,!1,null,"65c15444",null);e["default"]=d.exports},"636f":function(t,e,a){"use strict";var i=a("1da1");a("96cf");e["a"]={activated:function(){this.getStakingValidatorsObj()},created:function(){this.getStakingValidatorsObj()},data:function(){return{hexObj:{},addressObj:{},validatorObj:{}}},methods:{getStakingValidatorsObj:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getStakingValidatorsObj",{});case 2:a=e.sent,t.hexObj=a.hexObj,t.addressObj=a.addressObj,t.validatorObj=a.validatorObj;case 6:case"end":return e.stop()}}),e)})))()}}}},6406:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bg-white",staticStyle:{padding:"10px 15px"}},[a("div",{staticClass:"list-title"},[t._v("BEP3")]),a("dingyi-data-table",{ref:"dt",attrs:{noLocalPaging:!0,toolbar:!1,btns:{noFresh:!0,index:!0},datas:t.datas,columns:t.columns,loading:t.loading}})],1)},s=[],n=a("1da1"),r=(a("96cf"),{data:function(){this.$createElement;return{datas:[],columns:[{label:"amount",prop:"amount",render:function(t,e){var a=e.props.scope.row,i=a||{},s=i.amount,n=s&&s[0]||{amount:"",denom:"--"};return t("div",[n.amount+n.denom])}},{label:"random_number_hash",prop:"random_number_hash"},{label:"expire_height",prop:"expire_height"},{label:"timestamp",prop:"timestamp"},{label:"sender",prop:"sender"},{label:"recipient",prop:"recipient"},{label:"sender_other_chain",prop:"sender_other_chain"},{label:"recipient_other_chain",prop:"recipient_other_chain"},{label:"closed_block",prop:"closed_block"},{label:"status",prop:"status"},{label:"cross_chain",prop:"cross_chain"},{label:"direction",prop:"direction"}],loading:!1}},created:function(){this.init()},methods:{init:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,t.$axios.get("/bep3/swaps",{headers:{server:window.chain.lcd}});case 3:a=e.sent,t.loading=!1,t.datas=a.result;case 6:case"end":return e.stop()}}),e)})))()}}}),o=r,l=(a("14c0"),a("2877")),c=Object(l["a"])(o,i,s,!1,null,"07c3a3c2",null);e["default"]=c.exports},"642a":function(t,e,a){"use strict";a("469d")},"658e":function(t,e,a){"use strict";a("377e")},"677e":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"area-title txitem-header"},[t._v(t._s(t.$t("message.blockheight_header")))]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"bg-white",staticStyle:{padding:"20px","min-height":"140px"}},t._l(t.header,(function(e,i){return a("el-row",{key:i},[a("el-col",{staticClass:"tx-item-title",attrs:{xs:24,sm:24,md:8}},[t._v(t._s(i))]),"Hash"===i.substr(-4)||"Proposer"===i.substr(-8)||"提议人"===i&&!t.operator_address?a("el-col",{staticClass:"block-val",attrs:{xs:24,sm:24,md:16}},[a("div",{staticClass:"text-overflow"},[t._v(t._s(e))])]):"Proposer"!==i.substr(-8)&&"提议人"!==i||!t.operator_address?a("el-col",{staticClass:"block-val",attrs:{xs:24,sm:24,md:16}},[t._v(t._s(e))]):a("el-col",{staticClass:"block-val",attrs:{xs:24,sm:24,md:16}},[a("a",{attrs:{href:"#/validator/"+t.operator_address}},[t._v(t._s(e))])])],1)})),1),a("div",{staticClass:"area-title block-more-title"},[t._v(t._s(t.$t("message.blockheight_more")))]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"bg-white block-more-wrap"},t._l(t.block,(function(e,i){return a("el-row",{key:i},[a("el-col",{staticClass:"tx-item-title",attrs:{xs:24,sm:24,md:8}},[t._v(t._s(i))]),"Chain Id"===i?a("el-col",{staticClass:"block-val",attrs:{xs:24,sm:24,md:16}},[a("el-tag",{attrs:{type:"primary"}},[t._v(t._s(e))])],1):"Hash"===i.substr(-4)?a("el-col",{staticClass:"block-val",attrs:{xs:24,sm:24,md:16}},[a("div",{staticClass:"text-overflow"},[t._v(t._s(e))])]):a("el-col",{staticClass:"block-val",attrs:{xs:24,sm:24,md:16}},[t._v(t._s(e))])],1)})),1),a("div",{staticClass:"area-title block-more-title"},[t._v(t._s(t.$t("message.validators")))]),a("dingyi-data-table",{ref:"dtPrecommits",attrs:{noLocalPaging:!0,toolbar:!1,btns:{noFresh:!0,index:!0},datas:t.precommits,columns:t.precommitsColumns,loading:t.precommitsLoading}})],1)},s=[],n=a("ade3"),r=a("1da1"),o=(a("96cf"),{mixins:[],data:function(){var t=this;this.$createElement;return{operator_address:"",loading:!1,header:{},block:{},height:"",precommits:[],precommitsLoading:!1,precommitsColumns:[{label:this.$t("message.blockheight_Address"),prop:"address",width:400,render:function(e,a){var i=a.props.scope.row,s=i.address,n=t.validatorsObjHex&&t.validatorsObjHex[s]&&t.validatorsObjHex[s],r=n&&n.moniker||s,o=n?e("a",{attrs:{to:{path:"/validator/".concat(n.operator_address)}}},[r]):e("div",[r]);return o}},{label:this.$t("message.blockheight_VotingPower"),prop:"voting_power"},{label:this.$t("message.blockheight_ProposerPriority"),prop:"proposer_priority"}]}},created:function(){this.init()},methods:{init:function(){this.height=this.$route.params.height,this.fetchBlockItem(),this.showPrecommits()},showPrecommits:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.precommits=[],t.precommitsLoading=!0,e.next=4,t.$api.fetch("getRpcValidators",{height:t.height});case 4:if(a=e.sent,t.precommitsLoading=!1,a){e.next=8;break}return e.abrupt("return");case 8:t.precommits=a.validators;case 9:case"end":return e.stop()}}),e)})))()},fetchBlockItem:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a,i,s,r,o,l,c,d,p,u,m,v,g,f,h,b,_,x,k,w,y,C,$,S,j,O,M;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,t.$api.fetch("getBlocksHeight",{height:t.height});case 3:if(s=e.sent,t.loading=!1,s){e.next=7;break}return e.abrupt("return");case 7:r=s.block.evidence.evidence,o=s.block_meta||s,l=o.block_id,c=l.hash,d=l.parts,p=o.block&&o.block.header||o.header,u=p.height,m=p.app_hash,v=p.chain_id,g=p.consensus_hash,f=p.evidence_hash,h=p.data_hash,b=p.last_block_id,_=p.last_commit_hash,x=p.last_results_hash,k=p.next_validators_hash,w=p.num_txs,y=p.proposer_address,C=p.time,$=p.total_txs,S=p.validators_hash,j=p.version,O=b.hash||"",M=y,t.header=(a={},Object(n["a"])(a,t.$t("message.blockheight_Height"),u),Object(n["a"])(a,t.$t("message.blockheight_Proposer"),M),Object(n["a"])(a,t.$t("message.blockheight_BlockHash"),c),Object(n["a"])(a,t.$t("message.blockheight_LastBlockHash"),O),Object(n["a"])(a,t.$t("message.blockheight_BlockTime"),C),Object(n["a"])(a,t.$t("message.blockheight_NumberofTransactions"),w),Object(n["a"])(a,t.$t("message.blockheight_TotalofTransactions"),$),a),t.block=(i={},Object(n["a"])(i,t.$t("message.blockheight_ChainId"),v),Object(n["a"])(i,t.$t("message.blockheight_BlockApp"),j.app),Object(n["a"])(i,t.$t("message.blockheight_BlockVersion"),j.block),Object(n["a"])(i,t.$t("message.blockheight_Evidence"),r||"--"),Object(n["a"])(i,t.$t("message.blockheight_EvidenceHash"),f||"--"),Object(n["a"])(i,t.$t("message.blockheight_AppHash"),m),Object(n["a"])(i,t.$t("message.blockheight_ValidatorsHash"),S),Object(n["a"])(i,t.$t("message.blockheight_NextValidatorsHash"),k),Object(n["a"])(i,t.$t("message.blockheight_ConsensusHash"),g),Object(n["a"])(i,t.$t("message.blockheight_PartsHash"),d.hash),Object(n["a"])(i,t.$t("message.blockheight_DataHash"),h),Object(n["a"])(i,t.$t("message.blockheight_LastCommitHash"),_),Object(n["a"])(i,t.$t("message.blockheight_LastResultsHash"),x||"--"),i);case 15:case"end":return e.stop()}}),e)})))()}}}),l=o,c=(a("eb9d"),a("2877")),d=Object(c["a"])(l,i,s,!1,null,"dee4b840",null);e["default"]=d.exports},"6d26":function(t,e,a){var i=a("c24e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("fc3f20ac",i,!0,{sourceMap:!1,shadowMode:!1})},"6e17":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".ratebar-item[data-v-2803c5ec]{color:#343a40;width:50px;text-align:center}.rateline-line[data-v-2803c5ec]{width:20px;margin:0 auto}.ratebar-text[data-v-2803c5ec]{font-size:10px}.ratebar-scale[data-v-2803c5ec]{width:30px;margin:0 auto;position:relative;border-top:1px dashed #e66}",""]),t.exports=e},"72eb":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".ratebar-item[data-v-c3025474]{color:#343a40;width:50px;text-align:center}.rateline-line[data-v-c3025474]{width:20px;margin:0 auto}.ratebar-text[data-v-c3025474]{font-size:10px}.ratebar-scale[data-v-c3025474]{width:30px;margin:0 auto;position:relative;border-top:1px dashed #e66}",""]),t.exports=e},"73ab":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".area-title[data-v-5ecdb0d7]{font-size:14px;color:#333;margin-bottom:10px}.parameter-item[data-v-5ecdb0d7]{margin-bottom:15px}.parameter-item-content[data-v-5ecdb0d7]{background:#fff;padding:10px 20px;border:1px solid #eee}.parameter-item-content[data-v-5ecdb0d7]:hover{-webkit-box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);border:1px solid #343a40}.parameter-item-title[data-v-5ecdb0d7]{font-size:16px;font-weight:700}.parameter-item-value[data-v-5ecdb0d7]{color:#343a40;font-size:18px;text-align:center;padding:8px 0;font-weight:500}.parameter-item-subtitle[data-v-5ecdb0d7]{color:#98a6ad}.parameter-item-subvalue[data-v-5ecdb0d7]{float:right;color:#333}.parameter-item-subvalue2[data-v-5ecdb0d7]{font-size:14px;color:#98a6ad}.parameter-item-subvalue2 span[data-v-5ecdb0d7]{float:right;color:#333}",""]),t.exports=e},"73ba":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-row",{staticStyle:{"margin-bottom":"5px"},attrs:{gutter:10}},[a("el-col",{attrs:{xs:24,sm:12,md:12,lg:6,xl:6}},[a("div",{staticClass:"flex-center flex-sb pagevalidators-item border-eee"},[a("div",{staticClass:"pagevalidators-iconwrap flex-center flex-justifycenter validators-1"},[a("i",{staticClass:"iconfont icon-block pagevalidators-icon validators-1-icon"})]),a("div",{staticClass:"pagevalidators-text"},[a("div",{staticClass:"pagevalidators-number",attrs:{"element-loading-spinner":"el-icon-loading"}},[t._v(t._s(t.blockHeight))]),a("div",{staticClass:"pagevalidators-subtitle"},[t._v(t._s(t.$t("message.validator_BlockHeight")))])])])]),a("el-col",{attrs:{xs:24,sm:12,md:12,lg:6,xl:6}},[a("div",{staticClass:"flex-center flex-sb pagevalidators-item border-eee"},[a("div",{staticClass:"pagevalidators-iconwrap flex-center flex-justifycenter validators-2"},[a("i",{staticClass:"iconfont icon-validators pagevalidators-icon validators-2-icon"})]),a("div",{staticClass:"pagevalidators-text"},[a("div",{staticClass:"pagevalidators-number",attrs:{"element-loading-spinner":"el-icon-loading"}},[t._v(t._s(t.validatorsLength))]),a("div",{staticClass:"pagevalidators-subtitle"},[t._v(t._s(t.$t("message.validator_Validators")))])])])]),a("el-col",{attrs:{xs:24,sm:12,md:12,lg:6,xl:6}},[a("div",{staticClass:"flex-center flex-sb pagevalidators-item border-eee"},[a("div",{staticClass:"pagevalidators-iconwrap flex-center flex-justifycenter validators-3"},[a("i",{staticClass:"iconfont icon-BondedTokens pagevalidators-icon validators-3-icon"})]),a("div",{staticClass:"pagevalidators-text"},[a("div",{staticClass:"pagevalidators-number",attrs:{"element-loading-spinner":"el-icon-loading"}},[t._v(t._s(t.tokens.bonded_tokens))]),a("div",{staticClass:"pagevalidators-subtitle"},[t._v(t._s(t.bondedRate.percent)+" / "+t._s(t.tokenTotal_str)+" "+t._s(t.$t("message.validator_Bonded")))])])])]),a("el-col",{attrs:{xs:24,sm:12,md:12,lg:6,xl:6}},[a("div",{staticClass:"flex-center flex-sb pagevalidators-item border-eee"},[a("div",{staticClass:"pagevalidators-iconwrap flex-center flex-justifycenter validators-4"},[a("i",{staticClass:"iconfont icon-BlockTime pagevalidators-icon validators-4-icon"})]),a("div",{staticClass:"pagevalidators-text"},[a("div",{staticClass:"pagevalidators-number",attrs:{"element-loading-spinner":"el-icon-loading"}},[t._v(t._s(t.earningRate.percent))]),a("div",{staticClass:"pagevalidators-subtitle"},[t._v(t._s(t.$t("message.validator_EarningRate")))])])])])],1),a("div",{staticClass:"validators-table-wrap border-eee"},[a("div",{staticClass:"flex-center mb-10"},[a("span",{staticClass:"validators-table-title"},[t._v(t._s(t.$t("message.validator_Validators")))]),a("div",{staticStyle:{flex:"1"}}),a("div",[a("el-radio-group",{staticClass:"box-base",attrs:{size:"mini"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[a("el-radio-button",{attrs:{label:"bonded"}},[t._v(t._s(t.$t("message.validator_Active")))]),a("el-radio-button",{attrs:{label:"unbonded"}},[t._v(t._s(t.$t("message.validator_Inactive")))])],1)],1)]),a("dingyi-data-table",{directives:[{name:"show",rawName:"v-show",value:"bonded"===t.type,expression:"type === 'bonded'"}],ref:"dt",attrs:{tableRowClassName:t.tableRowClassName,noLocalPaging:!0,toolbar:!1,defaultSort:{prop:"voting_power",order:"descending"},btns:{noFresh:!0,index:!0},datas:t.validators,columns:t.columns,loading:t.loading}}),a("dingyi-data-table",{directives:[{name:"show",rawName:"v-show",value:"unbonded"===t.type,expression:"type === 'unbonded'"}],attrs:{noLocalPaging:!0,toolbar:!1,btns:{noFresh:!0,index:!0},datas:t.validatorsUnbonded,columns:t.columnsUnbonded,loading:t.loading}}),a("div",{staticClass:"flex-center",staticStyle:{"margin-top":"20px"}},[a("p",{staticStyle:{"margin-right":"20px"}},[t._v(t._s(t.$t("message.validator_Legend")))]),a("div",{staticStyle:{width:"20px",height:"20px",background:"#f8dbdb","margin-right":"5px"}}),a("p",{staticStyle:{"margin-right":"20px"}},[t._v(" 33.3% "),a("span",[t._v(t._s(t.$t("message.validator_ofbondedtokens")))])]),a("div",{staticStyle:{width:"20px",height:"20px",background:"#faeed9","margin-right":"5px"}}),a("p",[t._v("66.7% "+t._s(t.$t("message.validator_ofbondedtokens")))])])],1)],1)},s=[],n=(a("a9e3"),a("99af"),a("3835")),r=a("1da1"),o=a("b85c"),l=(a("96cf"),a("b680"),a("d3b7"),a("3ca3"),a("ddb0"),{created:function(){this.initData()},computed:{validatorsLength:function(){if(this.earningRate&&this.earningRate.value){var t,e=Object(o["a"])(this.validators);try{for(e.s();!(t=e.n()).done;){var a=t.value;a.rewards=(this.earningRate.value*(1-a.commission_rate)*100).toFixed(2)+"%"}}catch(i){e.e(i)}finally{e.f()}}return this.validators.length||"--"},earningRate:function(){if(!this.inflation_val||!this.bondedRate.val)return{percent:"--",value:null};var t,e=this.inflation_val/this.bondedRate.val,a=(100*e).toFixed(2)+"%",i=Object(o["a"])(this.validators);try{for(i.s();!(t=i.n()).done;){var s=t.value;s.rewards=(e*(1-s.commission_rate)*100).toFixed(2)+"%"}}catch(n){i.e(n)}finally{i.f()}return{percent:a,value:e}},bondedRate:function(){if(!this.tokenTotal||!this.tokens.bonded_tokens_val)return{percent:"--"};var t=this.tokenTotal,e=this.tokens.bonded_tokens_val;return{percent:(e/t*100).toFixed(2)+"%",val:e/t}}},data:function(){return{validators:[],validatorsUnbonded:[],blockHeight:"--",tokenTotal:null,tokenTotal_str:"--",tokens:{bonded_tokens:"--",bonded_tokens_val:null},inflation_val:null,type:"bonded"}},methods:{initData:function(){this.initValidator(),this.getSupplyTotal(),this.getStakingPool(),this.getMintingInflation(),this.getUnbondedValidators()},getUnbondedValidators:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getStakingValidators",{status:"V4"===window.chain.api?"BOND_STATUS_BONDED":"bonded"});case 2:if(a=e.sent,a){e.next=5;break}return e.abrupt("return");case 5:t.validatorsUnbonded=a.result;case 6:case"end":return e.stop()}}),e)})))()},initValidator:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,t.initBlockHeight(),e.next=4,t.$api.fetch("getStakingValidators",{status:"V4"===window.chain.api?"BOND_STATUS_BONDED":"bonded"});case 4:if(a=e.sent,a){e.next=7;break}return e.abrupt("return");case 7:t.validators=a.result,t.loading=!1;case 9:case"end":return e.stop()}}),e)})))()},initBlockHeight:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("V2"!==window.chain.api){e.next=7;break}return e.next=3,t.$api.fetch("getValidatorsetsLatest");case 3:a=e.sent,t.blockHeight=a.block_height,e.next=11;break;case 7:return e.next=9,t.$api.fetch("getRpcBlockchain",{minHeight:0,maxHeight:0});case 9:i=e.sent,t.blockHeight=i.last_height;case 11:return e.next=13,t.getValidatorsetsHeight();case 13:case"end":return e.stop()}}),e)})))()},getStakingPool:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getStakingPool");case 2:a=e.sent,t.tokens=a;case 4:case"end":return e.stop()}}),e)})))()},getSupplyTotal:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getSupplyTotal");case 2:if(a=e.sent,a){e.next=5;break}return e.abrupt("return");case 5:t.tokenTotal=a.amount,t.tokenTotal_str=a.amount_str;case 7:case"end":return e.stop()}}),e)})))()},getMintingInflation:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getMintingInflation");case 2:a=e.sent,t.inflation_val=a&&a.inflation_val;case 4:case"end":return e.stop()}}),e)})))()},getValidatorsetsHeight:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a,i,s,r,l,c,d,p,u,m,v,g,f,h,b,_;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.blockHeight-12500,a<=0&&(a=1),e.next=4,Promise.all([t.$api.fetch("getValidatorsetsHeight",{height:t.blockHeight}),t.$api.fetch("getValidatorsetsHeight",{height:a})]);case 4:if(i=e.sent,s=Object(n["a"])(i,2),r=s[0],l=s[1],c={},d={},l){p=Object(o["a"])(l);try{for(p.s();!(u=p.n()).done;)m=u.value,c[m.pub_key]=Number(m.voting_power)}catch(x){p.e(x)}finally{p.f()}v=Object(o["a"])(r);try{for(v.s();!(g=v.n()).done;)f=g.value,d[f.pub_key]=Number(f.voting_power)}catch(x){v.e(x)}finally{v.f()}h=Object(o["a"])(t.validators);try{for(h.s();!(b=h.n()).done;)_=b.value,_.dailyChange=d[_.consensus_pubkey]-(c[_.consensus_pubkey]||0)}catch(x){h.e(x)}finally{h.f()}}case 11:case"end":return e.stop()}}),e)})))()}}}),c={data:function(){this.$createElement;var t=[{label:this.$t("message.validator_Validator"),width:window.innerWidth<800?160:null,sortable:!0,"sort-method":function(t,e){},render:function(t,e){var a=e.props.scope.row,i=a||{description:{}},s=i.moniker,n=i.operator_address;return t("a",{attrs:{href:"#/validator/".concat(n)},class:"flex-center",style:"color: #333;font-size: 14px;"},[t("div",{class:"validators-columns-name font-14"},[s])])}}],e=[{label:this.$t("message.validator_CommissionMax"),prop:"commission",width:(window.innerWidth,180),align:"right",sortable:!0,"sort-method":function(t,e){var a=function(t){var e=t||{commission:{}},a=e.commission_rate;return a};return Number(a(t))-Number(a(e))},render:function(t,e){var a=e.props.scope.row,i=a||{commission:{}},s=i.commission_rate_percent,n=i.commission_rate_max_percent;return t("div",{class:"font-14 text-right"},[s+"/"+n])}},{label:this.$t("message.validator_Rewards"),prop:"commission",align:"right",sortable:!0,width:(window.innerWidth,120),"sort-method":function(t,e){var a=function(t){var e=t||{commission:{}},a=e.rewards;return a};return a(t)-a(e)},render:function(t,e){var a=e.props.scope.row,i=a.rewards;return t("div",{class:"font-14 text-right"},[i||"--"])}}],a=[{label:this.$t("message.validator_BondedTokens"),prop:"tokens",align:"right",width:(window.innerWidth,180),sortable:!0,"sort-method":function(t,e){return Number(t.tokens)-Number(e.tokens)},render:function(t,e){var a=e.props.scope.row,i=a||{tokens:""},s=i.voting_power;return t("div",{class:"font-14 text-right"},[s||"--"])}},{label:this.$t("message.validator_DailyChanges"),prop:"difference",width:(window.innerWidth,150),align:"right",sortable:!0,"sort-method":function(t,e){return t.dailyChange-e.dailyChange},render:function(t,e){var a=e.props.scope.row,i=a||{dailyChange:"--"},s=i.dailyChange;return t("div",{class:"font-14 text-right",style:{color:s>0?"#1abc9c":"#e66"}},[s>0?"+"+s:s<0?s:"--"])}}],i=[{label:this.$t("message.validator_BondedTokens"),prop:"tokens",width:(window.innerWidth,160),align:"right",sortable:!0,"sort-method":function(t,e){return Number(t.tokens)-Number(e.tokens)},render:function(t,e){var a=e.props.scope.row,i=a.voting_power_str;return t("div",{class:"font-14 text-right"},[i||"--"])}},{label:this.$t("message.validator_UnbondingHeight"),prop:"unbonding_height",align:"right",width:(window.innerWidth,180)},{label:this.$t("message.validator_UnbondingTime"),prop:"unbonding_time",width:(window.innerWidth,180),render:function(t,e){var a=e.props.scope.row,i=a||{},s=i.unbonding_time;return t("div",[s])}}];return{columns:[].concat(t,a,e),columnsUnbonded:[].concat(t,i)}}},d={mixins:[c,l],data:function(){return{blockHeight:"--",loading:!1,type:"bonded",tokenObj:{}}},methods:{tableRowClassName:function(t){var e=t.row,a=t.rowIndex;if("unbonded"!==this.type){var i=Number(e.tokens),s=this.tokenObj[a-1];a>0&&(i+=s),this.tokenObj[a]=i;var n=i/this.tokens.bonded_tokens_val,r=s/this.tokens.bonded_tokens_val;if(n<=.33||r<=.33&&n>.33)return"less33";if(n<=.67&&n>.33||r<=.67&&r>.33&&n>.67)return"less68"}return""}}},p=d,u=(a("978c"),a("fa32"),a("2877")),m=Object(u["a"])(p,i,s,!1,null,"109b3578",null);e["default"]=m.exports},7577:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=this,a=e.$createElement,i=e._self._c||a;return i("div",[i("el-header",{staticStyle:{background:"#343a40",height:"48px",padding:"0 15px"}},[i("H5TopBar")],1),i("keep-alive",[i("router-view",{staticStyle:{"overflow-x":"hidden"}})],1),i("div",{staticStyle:{height:"50px"}}),i("van-action-sheet",{attrs:{"cancel-text":"cancel",round:!1,"close-on-click-action":"",actions:e.actions},on:{select:e.switchAction},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}}),i("van-tabbar",{directives:[{name:"show",rawName:"v-show",value:"/dashboard"!==e.path,expression:"path !== '/dashboard'"}],staticStyle:{"border-top":"1px solid #eee"},attrs:{"active-color":"#333","inactive-color":"#999"},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[i("van-tabbar-item",{attrs:{icon:"friends-o",name:"/validator",to:"/validator"}},[e._v(e._s(e.$t("message.validators")))]),i("van-tabbar-item",{attrs:{icon:"apps-o",name:"/block",to:"/block"}},[e._v(e._s(e.$t("message.blocks")))]),"kava-2"===e.current.chainId?i("van-tabbar-item",{attrs:{icon:"add-o"},on:{click:function(){t.show=!t.show}}},[e._v(" "+e._s(e.$t("message.kava_more"))+" ")]):e._e(),"e-money"!==e.current.chainId&&"kava-2"!==e.current.chainId?i("van-tabbar-item",{attrs:{icon:"points",to:"/uptime",name:"/uptime"}},[e._v(e._s(e.$t("message.uptime")))]):e._e(),"e-money"!==e.current.chainId?i("van-tabbar-item",{attrs:{icon:"comment-o",to:"/governance",name:"/governance"}},[e._v(e._s(e.$t("message.governance")))]):e._e(),i("van-tabbar-item",{attrs:{icon:"discount",to:"/parameter",name:"”/parameter“"}},[e._v(e._s(e.$t("message.parameters")))])],1)],1)},s=[],n=a("c524"),r={components:{H5TopBar:n["a"]},computed:{current:function(){return window.chain},path:function(){return this.$route.path}},data:function(){return{active:"/validator",show:!1,actions:[{name:this.$t("message.uptime"),path:"/uptime"},{name:"CDP",path:"/cdp"},{name:"Auction",path:"/auction"},{name:"BEP3",path:"/bep3"},{name:"Pricefeed",path:"/pricefeed"}]}},created:function(){this.active=this.$route.path},methods:{switchAction:function(t,e){this.show=!1,this.$router.push(t.path)}}},o=r,l=a("2877"),c=Object(l["a"])(o,i,s,!1,null,null,null);e["default"]=c.exports},7672:function(t,e,a){var i=a("f424");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("f594d832",i,!0,{sourceMap:!1,shadowMode:!1})},7821:function(t,e,a){var i=a("1e4b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("0da25b2c",i,!0,{sourceMap:!1,shadowMode:!1})},7958:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".governance-title-panel[data-v-c03c89b8]{padding:20px 20px 0 20px}.governance-id-title[data-v-c03c89b8]{padding-right:12px;color:rgba(0,0,0,.85);font-weight:600;font-size:20px;line-height:32px}.governance-tab[data-v-c03c89b8]{width:100px;text-align:center}.governance-tab-active[data-v-c03c89b8]{border-bottom:2px solid #232323}.governance-id-sub[data-v-c03c89b8]{padding-left:40px;text-align:right}.governance-id-subtitle[data-v-c03c89b8]{margin-bottom:4px;color:rgba(0,0,0,.45);font-size:14px}.governance-id-subvalue[data-v-c03c89b8]{color:rgba(0,0,0,.85);font-size:24px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.governance-id-name[data-v-c03c89b8]{color:rgba(0,0,0,.85);font-weight:400;font-size:14px;line-height:1.5715;white-space:nowrap;margin-right:10px}.governance-id-val[data-v-c03c89b8]{color:rgba(0,0,0,.65);font-size:14px;line-height:1.5715}",""]),t.exports=e},"7b5a":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dropdown",{on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link flex-center",staticStyle:{color:"#fff",cursor:"pointer"}},[a("i",{staticClass:"iconfont icon-yuyanqiehuan",staticStyle:{"margin-right":"5px"}}),t._v(" "+t._s(t.$t("message.lang"))+" "),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"en"}},[t._v("English")]),a("el-dropdown-item",{attrs:{command:"cn",divided:""}},[t._v("中文")]),a("el-dropdown-item",{attrs:{command:"it",divided:""}},[t._v("Italiano")]),a("el-dropdown-item",{attrs:{command:"fr",divided:""}},[t._v("Français")]),a("el-dropdown-item",{attrs:{command:"ru",divided:""}},[t._v("Русский")]),a("el-dropdown-item",{attrs:{command:"es",divided:""}},[t._v("Español")])],1)],1)},s=[],n={methods:{handleCommand:function(t){this.$i18n.locale=t,window.localStorage.setItem("lang",t)}}},r=n,o=a("2877"),l=Object(o["a"])(r,i,s,!1,null,null,null);e["a"]=l.exports},"7bbf":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".topnav .el-menu--horizontal>.el-menu-item{height:46px;line-height:46px;padding:0 10px;background:#343a40}.topnav .el-menu--horizontal>.el-menu-item.is-active,.topnav .el-menu--horizontal>.el-menu-item:hover{color:#fff;background:#343a40}",""]),t.exports=e},"7cbc":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".governance-item[data-v-eb299322]{border-bottom:1px solid #eee;padding:15px}.governance-item[data-v-eb299322]:hover{-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.governance-title[data-v-eb299322]{cursor:pointer;margin-bottom:12px;color:rgba(0,0,0,.85);font-size:16px;line-height:24px}.governance-title[data-v-eb299322]:hover{color:#1890ff}.governance-foot[data-v-eb299322]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-top:16px;color:rgba(0,0,0,.45)}.governance-time[data-v-eb299322]{color:rgba(0,0,0,.25);font-style:normal}",""]),t.exports=e},"7cf0":function(t,e,a){"use strict";a("c1a0")},"7e8c":function(t,e,a){"use strict";a("0343")},"84ad":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'.M-Flipper{display:inline-block;position:relative;width:60px;height:100px;line-height:100px;border:1px solid #000;border-radius:10px;background:#fff;font-size:66px;color:#fff;-webkit-box-shadow:0 0 6px rgba(0,0,0,.5);box-shadow:0 0 6px rgba(0,0,0,.5);text-align:center;font-family:Helvetica Neue}.M-Flipper .digital:after,.M-Flipper .digital:before{content:"";position:absolute;left:0;right:0;background:#000;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.M-Flipper .digital:before{top:0;bottom:50%;border-radius:10px 10px 0 0;border-bottom:1px solid #666}.M-Flipper .digital:after{top:50%;bottom:0;border-radius:0 0 10px 10px;line-height:0}.M-Flipper.down .front:before{z-index:3}.M-Flipper.down .back:after{z-index:2;-webkit-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform:perspective(160px) rotateX(180deg);transform:perspective(160px) rotateX(180deg)}.M-Flipper.down .back:before,.M-Flipper.down .front:after{z-index:1}.M-Flipper.down.go .front:before{-webkit-transform-origin:50% 100%;transform-origin:50% 100%;-webkit-animation:frontFlipDown .6s ease-in-out both;animation:frontFlipDown .6s ease-in-out both;-webkit-box-shadow:0 -2px 6px hsla(0,0%,100%,.3);box-shadow:0 -2px 6px hsla(0,0%,100%,.3);-webkit-backface-visibility:hidden;backface-visibility:hidden}.M-Flipper.down.go .back:after{-webkit-animation:backFlipDown .6s ease-in-out both;animation:backFlipDown .6s ease-in-out both}.M-Flipper.up .front:after{z-index:3}.M-Flipper.up .back:before{z-index:2;-webkit-transform-origin:50% 100%;transform-origin:50% 100%;-webkit-transform:perspective(160px) rotateX(-180deg);transform:perspective(160px) rotateX(-180deg)}.M-Flipper.up .back:after,.M-Flipper.up .front:before{z-index:1}.M-Flipper.up.go .front:after{-webkit-transform-origin:50% 0;transform-origin:50% 0;-webkit-animation:frontFlipUp .6s ease-in-out both;animation:frontFlipUp .6s ease-in-out both;-webkit-box-shadow:0 2px 6px hsla(0,0%,100%,.3);box-shadow:0 2px 6px hsla(0,0%,100%,.3);-webkit-backface-visibility:hidden;backface-visibility:hidden}.M-Flipper.up.go .back:before{-webkit-animation:backFlipUp .6s ease-in-out both;animation:backFlipUp .6s ease-in-out both}@-webkit-keyframes frontFlipDown{0%{-webkit-transform:perspective(160px) rotateX(0deg);transform:perspective(160px) rotateX(0deg)}to{-webkit-transform:perspective(160px) rotateX(-180deg);transform:perspective(160px) rotateX(-180deg)}}@keyframes frontFlipDown{0%{-webkit-transform:perspective(160px) rotateX(0deg);transform:perspective(160px) rotateX(0deg)}to{-webkit-transform:perspective(160px) rotateX(-180deg);transform:perspective(160px) rotateX(-180deg)}}@-webkit-keyframes backFlipDown{0%{-webkit-transform:perspective(160px) rotateX(180deg);transform:perspective(160px) rotateX(180deg)}to{-webkit-transform:perspective(160px) rotateX(0deg);transform:perspective(160px) rotateX(0deg)}}@keyframes backFlipDown{0%{-webkit-transform:perspective(160px) rotateX(180deg);transform:perspective(160px) rotateX(180deg)}to{-webkit-transform:perspective(160px) rotateX(0deg);transform:perspective(160px) rotateX(0deg)}}@-webkit-keyframes frontFlipUp{0%{-webkit-transform:perspective(160px) rotateX(0deg);transform:perspective(160px) rotateX(0deg)}to{-webkit-transform:perspective(160px) rotateX(180deg);transform:perspective(160px) rotateX(180deg)}}@keyframes frontFlipUp{0%{-webkit-transform:perspective(160px) rotateX(0deg);transform:perspective(160px) rotateX(0deg)}to{-webkit-transform:perspective(160px) rotateX(180deg);transform:perspective(160px) rotateX(180deg)}}@-webkit-keyframes backFlipUp{0%{-webkit-transform:perspective(160px) rotateX(-180deg);transform:perspective(160px) rotateX(-180deg)}to{-webkit-transform:perspective(160px) rotateX(0deg);transform:perspective(160px) rotateX(0deg)}}@keyframes backFlipUp{0%{-webkit-transform:perspective(160px) rotateX(-180deg);transform:perspective(160px) rotateX(-180deg)}to{-webkit-transform:perspective(160px) rotateX(0deg);transform:perspective(160px) rotateX(0deg)}}.M-Flipper .number0:after,.M-Flipper .number0:before{content:"0"}.M-Flipper .number1:after,.M-Flipper .number1:before{content:"1"}.M-Flipper .number2:after,.M-Flipper .number2:before{content:"2"}.M-Flipper .number3:after,.M-Flipper .number3:before{content:"3"}.M-Flipper .number4:after,.M-Flipper .number4:before{content:"4"}.M-Flipper .number5:after,.M-Flipper .number5:before{content:"5"}.M-Flipper .number6:after,.M-Flipper .number6:before{content:"6"}.M-Flipper .number7:after,.M-Flipper .number7:before{content:"7"}.M-Flipper .number8:after,.M-Flipper .number8:before{content:"8"}.M-Flipper .number9:after,.M-Flipper .number9:before{content:"9"}',""]),t.exports=e},"8d53":function(t,e,a){var i=a("84ad");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("19cab654",i,!0,{sourceMap:!1,shadowMode:!1})},"8fbe":function(t,e,a){"use strict";a("03cd")},"935a":function(t,e,a){"use strict";a("3931")},9758:function(t,e,a){"use strict";a("f917")},"978c":function(t,e,a){"use strict";a("cd3f")},9878:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".list-title[data-v-e2911a26]{font-size:18px;font-weight:400;margin-bottom:10px}",""]),t.exports=e},"9a8c":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("page",{staticStyle:{padding:"15px 0"},attrs:{barWidth:"70px"}})],1)},s=[],n=a("f6f6"),r={components:{page:n["default"]}},o=r,l=a("2877"),c=Object(l["a"])(o,i,s,!1,null,null,null);e["default"]=c.exports},"9e94":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bg-white p-20"},[a("div",{staticStyle:{"margin-bottom":"10px","font-size":"18px","border-bottom":"1px solid #eee","padding-bottom":"10px"}},[t._v(t._s(t.$t("message.createNewChain")))]),a("el-form",{ref:"ruleForm",attrs:{model:t.form,"label-position":"top",rules:t.rules}},[a("el-form-item",{attrs:{label:t.$t("message.chaindadd_name"),prop:"name"}},[a("el-input",{attrs:{placeholder:"Cosmos Hub"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_chainId"),prop:"chainId"}},[a("el-input",{attrs:{placeholder:"cosmoshub-3"},model:{value:t.form.chainId,callback:function(e){t.$set(t.form,"chainId",e)},expression:"form.chainId"}})],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_logo")}},[a("el-input",{attrs:{placeholder:"/static/chains/cosmoshub.svg"},model:{value:t.form.logo,callback:function(e){t.$set(t.form,"logo",e)},expression:"form.logo"}})],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_lcd"),prop:"lcd"}},[a("el-input",{attrs:{placeholder:"https://lcd.nylira.net (Please add the protocol completely, default http)"},model:{value:t.form.lcd,callback:function(e){t.$set(t.form,"lcd",e)},expression:"form.lcd"}})],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_rpc"),prop:"rpc"}},[a("el-input",{attrs:{placeholder:"https://rpc.nylira.net (Please add the protocol completely, default http)"},model:{value:t.form.rpc,callback:function(e){t.$set(t.form,"rpc",e)},expression:"form.rpc"}})],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_prefix"),prop:"prefix"}},[a("el-input",{attrs:{placeholder:"cosmos"},model:{value:t.form.prefix,callback:function(e){t.$set(t.form,"prefix",e)},expression:"form.prefix"}})],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_unit"),prop:"unit"}},[a("el-input",{attrs:{placeholder:"ATOM"},model:{value:t.form.unit,callback:function(e){t.$set(t.form,"unit",e)},expression:"form.unit"}})],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_version")}},[a("el-input",{attrs:{placeholder:"0.32.7"},model:{value:t.form.version,callback:function(e){t.$set(t.form,"version",e)},expression:"form.version"}})],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_api"),prop:"api"}},[a("el-radio-group",{model:{value:t.form.api,callback:function(e){t.$set(t.form,"api",e)},expression:"form.api"}},[a("el-radio",{attrs:{label:"V1"}},[t._v(t._s(t.$t("message.chaindadd_apiV1")))]),a("el-radio",{attrs:{label:"V2"}},[t._v(t._s(t.$t("message.chaindadd_apiV2")))])],1)],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_type"),prop:"type"}},[a("el-radio-group",{attrs:{prop:"type"},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}},[a("el-radio",{attrs:{label:"Mainnet"}},[t._v(t._s(t.$t("message.chaindadd_mainnet")))]),a("el-radio",{attrs:{label:"Testnet"}},[t._v(t._s(t.$t("message.chaindadd_testnet")))]),a("el-radio",{attrs:{label:"GoZ"}},[t._v(t._s(t.$t("message.chaindadd_gos")))])],1)],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_desc")}},[a("el-input",{attrs:{type:"textarea"},model:{value:t.form.desc,callback:function(e){t.$set(t.form,"desc",e)},expression:"form.desc"}})],1),a("el-form-item",[a("el-button",{attrs:{icon:"el-icon-check",type:"primary"},on:{click:function(e){return t.submitForm("ruleForm")}}},[t._v(t._s(t.$t("message.chaindadd_save")))])],1)],1)],1)},s=[],n=a("1da1"),r=(a("96cf"),a("bc3a")),o=a.n(r);function l(t){return c.apply(this,arguments)}function c(){return c=Object(n["a"])(regeneratorRuntime.mark((function t(e){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.a.post("/look/chain/create",e);case 2:return a=t.sent,t.abrupt("return",a.data);case 4:case"end":return t.stop()}}),t)}))),c.apply(this,arguments)}var d={activated:function(){this.initForm()},created:function(){this.initForm()},data:function(){return{form:{name:"",chainId:"",logo:"",lcd:"",rpc:"",version:"0.32.7",unit:"ATOM",prefix:"cosmos",api:"V1",type:"GoZ",desc:""}}},methods:{initForm:function(){this.form={name:"",chainId:"",logo:"/static/chains/cosmoshub.svg",lcd:"",rpc:"",version:"0.32.7",unit:"ATOM",prefix:"cosmos",api:"V1",type:"GoZ",desc:""}},submitChain:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l(t.form);case 2:a=e.sent,1===a.code&&(t.$message.success(t.$t("message.chaindadd_success")),t.$router.push("/dashboard"));case 4:case"end":return e.stop()}}),e)})))()},goAddChain:function(){this.$router.push("/chain-add")}}},p={mixins:[d],data:function(){return{rules:{name:[{required:!0,message:this.$t("message.chaindadd_tip"),trigger:"blur"}],chainId:[{required:!0,message:this.$t("message.chaindadd_tip"),trigger:"blur"}],api:[{required:!0,message:this.$t("message.chaindadd_tip"),trigger:"blur"}],type:[{required:!0,message:this.$t("message.chaindadd_tip"),trigger:"blur"}],lcd:[{required:!0,message:this.$t("message.chaindadd_tip"),trigger:"blur"}],rpc:[{required:!0,message:this.$t("message.chaindadd_tip"),trigger:"blur"}],prefix:[{required:!0,message:this.$t("message.chaindadd_tip"),trigger:"blur"}],unit:[{required:!0,message:this.$t("message.chaindadd_tip"),trigger:"blur"}]}}},methods:{submitForm:function(t){var e=this;"http://"===this.form.lcd.substr(0,7)||"https://"===this.form.lcd.substr(0,8)||"http://"===this.form.rpc.substr(0,7)||"https://"===this.form.rpc.substr(0,8)?this.$refs[t].validate((function(t){if(!t)return!1;e.submitChain()})):this.$message.error(this.$t("message.chaindadd_http"))},resetForm:function(t){this.$refs[t].resetFields()}}},u=p,m=a("2877"),v=Object(m["a"])(u,i,s,!1,null,null,null);e["default"]=v.exports},"9fd8":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("page",{staticStyle:{padding:"15px"},attrs:{show:!0}})],1)},s=[],n=a("4351"),r={components:{page:n["default"]}},o=r,l=a("2877"),c=Object(l["a"])(o,i,s,!1,null,null,null);e["default"]=c.exports},a2d4:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("page",{staticStyle:{padding:"15px 0"}})],1)},s=[],n=a("677e"),r={components:{page:n["default"]}},o=r,l=a("2877"),c=Object(l["a"])(o,i,s,!1,null,null,null);e["default"]=c.exports},ae30:function(t,e,a){var i=a("e249");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("006203a3",i,!0,{sourceMap:!1,shadowMode:!1})},b789:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("validator",{staticStyle:{padding:"15px 0"}})],1)},s=[],n=a("73ba"),r={components:{validator:n["default"]}},o=r,l=a("2877"),c=Object(l["a"])(o,i,s,!1,null,null,null);e["default"]=c.exports},ba6f:function(t,e,a){"use strict";a("ae30")},bb81:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".list-title[data-v-07c3a3c2]{font-size:18px;font-weight:400;margin-bottom:10px}",""]),t.exports=e},bc1e:function(t,e,a){var i=a("7cbc");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("1983101e",i,!0,{sourceMap:!1,shadowMode:!1})},c168:function(t,e,a){"use strict";a("d528")},c1a0:function(t,e,a){var i=a("7958");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("ac3d5764",i,!0,{sourceMap:!1,shadowMode:!1})},c24e:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".list-title[data-v-a28a7660]{font-size:18px;font-weight:400;margin-bottom:10px}.info-table[data-v-a28a7660]{table-layout:auto;width:100%;border-collapse:collapse}.info-item[data-v-a28a7660]{text-align:center}.cell-item[data-v-a28a7660]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;color:#999;margin-top:2px}.type-warning[data-v-a28a7660]{color:#faad14}.type-danger[data-v-a28a7660]{color:#ff4d4f}.type-success[data-v-a28a7660]{color:#52c41a}",""]),t.exports=e},c2d5:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".FlipClock{text-align:center}.FlipClock .M-Flipper{margin:0 3px}.FlipClock em{display:inline-block;line-height:102px;font-size:66px;font-style:normal;vertical-align:top}",""]),t.exports=e},c524:function(t,e,a){"use strict";var i=function(){var t=this,e=this,a=e.$createElement,i=e._self._c||a;return i("div",{staticClass:"topbar topnav max-width"},[e.back?i("div",{staticClass:"logo",on:{click:function(){t.$router.back()}}},[i("i",{staticClass:"el-icon-arrow-left"})]):i("div",{staticClass:"logo"},[e._v("LOOK")]),e.back?e._e():i("LangSwitch"),i("span",{staticStyle:{flex:"1"}}),i("el-button",{staticStyle:{background:"#343a40",color:"#fff"},attrs:{round:"",size:"mini"},on:{click:function(){t.$router.push("/dashboard")}}},[i("span",{staticClass:"box-base",staticStyle:{display:"inline-block",width:"8px","margin-right":"5px",height:"8px","border-radius":"10px",background:"#52c41a"}}),e._v(" "+e._s(e.current.name)+" "),i("i",{staticClass:"el-icon-refresh",staticStyle:{"margin-left":"5px"}})])],1)},s=[],n=a("2909"),r=(a("99af"),a("0f67")),o=a("6a70"),l=a("e585"),c=a("7b5a"),d={props:{back:{default:!1}},data:function(){return{drawer:!1,current:window.chain,chains:[],activeIndex:""}},components:{dashboard:l["default"],LangSwitch:c["a"]},created:function(){this.activeIndex=this.$route.path,this.getChains()},methods:{getChains:function(){var t=Object(r["a"])();this.chains=[].concat(Object(n["a"])(t.Mainnet),Object(n["a"])(t.Testnet))},switchChain:function(t){Object(o["a"])(t)}}},p=d,u=(a("e299"),a("7e8c"),a("e6c8"),a("2877")),m=Object(u["a"])(p,i,s,!1,null,"73f33ab2",null);e["a"]=m.exports},c5de:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".block-height[data-v-4b32698d]{font-size:24px}.block-bg[data-v-4b32698d]{margin-top:20px}.block-area[data-v-4b32698d]{border:1px solid #eee;background:#fff;padding:10px}.block-title-bg[data-v-4b32698d]{background:#343a40;color:#fff;display:block;padding:5px 10px;cursor:pointer}.link-line[data-v-4b32698d]{height:1px;width:60px;background:#ddd;position:absolute;top:40px}.text-item-title[data-v-4b32698d]{font-size:14px;color:#343a40}.text-item-content[data-v-4b32698d]{padding:5px 0;color:#98a6ad}.styicky-operation[data-v-4b32698d]{position:fixed;top:70px;left:20px;right:20px;background:#f5f6f8;z-index:20;padding:10px 0}.chain-input-h5 .el-input__inner[data-v-4b32698d]{padding:0 5px}",""]),t.exports=e},c88a:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",[a("div",{staticClass:"flex-center",staticStyle:{"justify-content":"center"}},[a("el-button",{staticStyle:{"font-size":"14px","margin-right":"10px","margin-left":"10px"},attrs:{disabled:t.loading||t.minHeight<=1,icon:"el-icon-arrow-left",circle:""},on:{click:t.nextPage}}),a("el-form",[a("el-input",{staticClass:"chain-input",staticStyle:{"min-width":"100px"},attrs:{disabled:t.loading,type:"number"},on:{blur:t.switchHeight},model:{value:t.minHeight,callback:function(e){t.minHeight=e},expression:"minHeight"}})],1),a("span",{staticStyle:{margin:"0 10px"}},[t._v("-")]),a("el-input",{style:{width:"200px"},attrs:{disabled:!0,type:"number"},model:{value:t.maxHeight,callback:function(e){t.maxHeight=e},expression:"maxHeight"}}),a("el-button",{staticStyle:{"font-size":"14px","margin-left":"10px","margin-right":"10px"},attrs:{disabled:t.loading||t.maxHeight>=t.last_height-1,icon:"el-icon-arrow-right",circle:""},on:{click:t.prevPage}})],1)]),a("div",{staticClass:"block-bg"},[a("el-row",{staticClass:"block-wrap",attrs:{gutter:10}},t._l(t.blocks,(function(e,i){return a("el-col",{key:i,staticClass:"mb-20",attrs:{xs:24,sm:8,md:8,lg:4,xl:4}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"block-area",attrs:{"element-loading-text":"Loading..."}},[a("a",{staticClass:"block-title-bg",attrs:{href:"#/block/"+e.height}},[a("div",{staticClass:"block-height"},[t._v("# "+t._s(e.height))])]),a("div",{staticStyle:{"margin-top":"10px"}},[a("div",{staticClass:"mb-5 flex-center"},[a("div",{staticClass:"flex-1"},[a("div",{staticClass:"text-item-title"},[t._v(t._s(t.$t("message.block_lastBlockHash")))]),a("div",{staticClass:"text-item-content",style:{fontSize:"14px"}},[t._v(t._s(t._f("miniHash")(e.last_block_hash)))])]),a("div",{staticStyle:{"text-align":"right"}},[a("div",{staticClass:"text-item-title"},[t._v(t._s(t.$t("message.block_hash")))]),a("div",{staticClass:"text-item-content",style:{fontSize:"14px"}},[t._v(t._s(t._f("miniHash")(e.block_hash)))])])]),a("div",{staticClass:"mb-5"},[a("div",{staticClass:"text-item-title"},[t._v(t._s(t.$t("message.block_proposer")))]),a("div",{staticClass:"text-item-content"},[t.hexObj[e.proposer_address]?a("a",{attrs:{href:"#/validator/"+t.hexObj[e.proposer_address].operator_address}},[t._v(t._s(t.hexObj[e.proposer_address].moniker))]):a("span",[t._v(t._s(t._f("shortHash")(e.proposer_address)))])])]),a("div",{staticClass:"mb-5"},[a("div",{staticClass:"text-item-title"},[t._v(t._s(t.$t("message.block_time")))]),a("div",{staticClass:"text-item-content"},[a("span",{attrs:{title:e.time}},[t._v(t._s(e.time))])])]),a("div",[a("div",{staticClass:"text-item-title"},[t._v(t._s(t.$t("message.block_transactions")))]),a("div",{staticClass:"text-item-content flex-center"},[a("span",{attrs:{title:e.num_txs}},[t._v(t._s(e.total_txs)+"("+t._s("+"+(e.num_txs||0))+")")])]),a("div",t._l(t.blockTxObj[e.height],(function(e,i){return a("a",{key:i,staticStyle:{color:"#98a6ad","font-size":"12px",padding:"10px",border:"1px solid #eee","margin-top":"5px",display:"block"},attrs:{href:"#/tx/"+e.hash}},[a("div",{staticClass:"flex-center"},[a("div",{staticStyle:{width:"6px",height:"6px","border-radius":"10px","margin-right":"5px"},style:{background:e.success?"#52c41a":"#e66"}}),t._v(" "+t._s(t.$t("message.block_txhash"))+": ")]),a("div",{staticClass:"text-overflow"},[t._v(t._s(e.hash))]),a("div",[t._v(t._s(t.$t("message.block_sentby"))+":")]),a("div",[t._v(t._s(t._f("shortHash")(e.sender)))]),e.memo?a("div",{staticClass:"text-overflow"},[t._v(t._s(t.$t("message.block_memo"))+": "+t._s(e.memo))]):t._e(),a("div",{staticStyle:{"margin-top":"5px"}},[a("el-button",{staticClass:"text-overflow",staticStyle:{width:"100%"},attrs:{round:"",type:"primary",size:"mini"}},[t._v(t._s(e.action||"Failed"))])],1)])})),0)])])])])})),1)],1)])},s=[],n=a("5530"),r=a("b85c"),o=a("1da1"),l=(a("96cf"),a("636f")),c={mixins:[l["a"]],created:function(){this.getBlocksLatest()},data:function(){return{loading:!1,page:1,size:6,block_metas:[],blocks:[{},{},{},{},{},{}],blockTxObj:{},last_height:null,maxHeight:null,minHeight:null}},methods:{getBlocksLatest:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,t.getRpcBlockchain(0,0);case 3:a=e.sent,t.loading=!1,t.last_height=a.last_height,i=a.block_metas,t.block_metas=i,t.blocks=t.splitblock_metas(),t.getTxs();case 10:case"end":return e.stop()}}),e)})))()},splitblock_metas:function(){var t=(this.page-1)*this.size,e=t+(this.size-1);if(e>this.block_metas.length-1)return[];for(var a=[],i=t;i<=e;i+=1)a.push(this.block_metas[i]);return this.maxHeight=this.last_height-(this.page-1)*this.size,this.minHeight=this.maxHeight-this.size+1,a.reverse()},prevPage:function(){this.maxHeight+=this.size,this.maxHeight>this.last_height-1&&(this.maxHeight=this.last_height-1),this.switchHeight()},nextPage:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.page+1,!(a<=parseInt(t.block_metas.length/t.size))){e.next=6;break}return t.page=a,t.blocks=t.splitblock_metas(),t.getTxs(),e.abrupt("return");case 6:return t.maxHeight=t.maxHeight-t.size,e.next=9,t.switchHeight();case 9:case"end":return e.stop()}}),e)})))()},getRpcBlockchain:function(t,e){var a=this;return Object(o["a"])(regeneratorRuntime.mark((function i(){var s;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a.loading=!0,i.next=3,a.$api.fetch("getRpcBlockchain",{minHeight:t,maxHeight:e});case 3:return s=i.sent,a.loading=!1,i.abrupt("return",s);case 6:case"end":return i.stop()}}),i)})))()},switchHeight:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.page=5,t.maxHeight>t.last_height&&(t.maxHeight=t.last_height),t.maxHeight<t.size&&(t.maxHeight=t.size),t.minHeight=t.maxHeight-t.size+1,e.next=6,t.getRpcBlockchain(t.minHeight,t.maxHeight);case 6:a=e.sent,t.blocks=a.block_metas.reverse(),t.getTxs();case 9:case"end":return e.stop()}}),e)})))()},getTxs:function(){var t,e=this,a={},i=Object(r["a"])(this.blocks);try{var s=function(){var i=t.value;i.num_txs>0&&e.$api.fetch("getTxs",{height:i.height}).then((function(t){if(t){var s,o=[],l=t.txs||t||[],c=Object(r["a"])(l);try{for(c.s();!(s=c.n()).done;){var d,p=s.value,u=!!p.logs,m=p.tags||p.events||p.logs&&p.logs[0]&&p.logs[0].events||[],v=p.txhash,g={},f=Object(r["a"])(m);try{for(f.s();!(d=f.n()).done;){var h=d.value;if(h.key){var b=h.key,_=h.value;"action"===b&&(g=Object(n["a"])(Object(n["a"])({},g),{},{height:p.height,success:u,hash:v,action:_,timestamp:p.timestamp})),"sender"===b&&(g.sender=_)}if(h.attributes){var x,k=Object(r["a"])(h.attributes);try{for(k.s();!(x=k.n()).done;){var w=x.value;"action"===w.key&&(g=Object(n["a"])(Object(n["a"])({},g),{},{height:p.height,success:u,hash:v,action:w.value,timestamp:p.timestamp})),"sender"===w.key&&(g.sender=w.value)}}catch(y){k.e(y)}finally{k.f()}}}}catch(y){f.e(y)}finally{f.f()}g.hash=p.txhash,g.memo=p.tx.value.memo,o.push(g)}}catch(y){c.e(y)}finally{c.f()}a[i.height]=o,e.blockTxObj=JSON.parse(JSON.stringify(a))}}))};for(i.s();!(t=i.n()).done;)s()}catch(o){i.e(o)}finally{i.f()}}}},d={mixins:[c]},p=d,u=(a("3e6f"),a("2877")),m=Object(u["a"])(p,i,s,!1,null,"4b32698d",null);e["default"]=m.exports},cd3f:function(t,e,a){var i=a("4939");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("5fa47975",i,!0,{sourceMap:!1,shadowMode:!1})},cf47:function(t,e,a){var i=a("6e17");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("9dc68026",i,!0,{sourceMap:!1,shadowMode:!1})},d07f:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"border-eee"},[t._l(t.list,(function(e,i){return a("div",{key:i,staticClass:"bg-white governance-item"},[a("div",{staticClass:"flex-1"},[a("div",{staticClass:"mb-10"},[a("el-link",{attrs:{href:"#/committee/"+e.id+(t.address?"?address="+t.address:""),disabled:"--"===e.id}},["--"!==e.id?a("i",{staticClass:"el-icon-reading mr-10"}):t._e(),t._v(" "+t._s(e.description)+" ")])],1),a("div",{staticClass:"mb-10"},[a("el-tag",{staticClass:"mr-10",attrs:{type:"info",size:"mini"}},[t._v(" "+t._s("id: "+e.id)+" ")]),a("el-tag",{staticClass:"mr-10",attrs:{type:"info",size:"mini"}},[t._v(" "+t._s(e.vote_threshold_str)+" ")]),a("el-tag",{staticClass:"mr-10",attrs:{type:"info",size:"mini"}},[t._v(" "+t._s(e.proposal_duration_str)+" ")]),a("el-tag",{staticClass:"mr-10",attrs:{type:"info",size:"mini"}},[t._v("members: "+t._s(e.members&&e.members.length))]),a("el-tag",{staticClass:"mr-10",attrs:{type:"info",size:"mini"}},[t._v("permissions: "+t._s(e.permissions&&e.permissions.length))])],1),a("div",{staticClass:"governance-text"},[t._v(t._s(e.description))])]),"VotingPeriod"===e.proposal_status?a("div"):t._e()])})),0===t.list.length?a("div",{staticClass:"bg-white p-20"},[a("dingyi-empty")],1):t._e()],2)},s=[],n=a("3901"),r=a("4f4f"),o=a("edf7"),l={components:{FlipClock:o["a"],RateBar:r["a"]},mixins:[n["a"]],data:function(){for(var t=[],e=0;e<5;e+=1)t.push({id:"--",title:"--",description_sub:"--",proposal_status:"--",time:"---"});return{list:t}}},c=l,d=(a("152c"),a("2877")),p=Object(d["a"])(c,i,s,!1,null,"5b3e6a1f",null);e["default"]=p.exports},d4b0:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".drawer-class{margin-top:48px;-webkit-box-shadow:none;box-shadow:none;border-bottom:1px solid #eee}",""]),t.exports=e},d528:function(t,e,a){var i=a("c2d5");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("52cdbcb8",i,!0,{sourceMap:!1,shadowMode:!1})},d75d:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex-center",staticStyle:{"align-items":"flex-end","align-self":"flex-end","justify-content":"center"}},t._l(t.data,(function(e,i){return a("div",{key:i,staticClass:"ratebar-item",style:{width:t.barWidth}},[a("div",[t._v(t._s(e.label||e.value))]),a("div",{staticClass:"rateline-line",style:{height:e.value*t.baseHeight+"px",background:e.bg,width:t.lineWidth}}),e.line?a("div",{staticClass:"ratebar-scale",style:{top:"-"+e.line*t.baseHeight+"px"}}):t._e(),a("div",{staticClass:"ratebar-text"},[t._v(t._s("Yes"===e.type?t.$t("message.governance_Yes"):"Abstain"===e.type?t.$t("message.governance_Abstain"):"No"===e.type?t.$t("message.governance_No"):"No Veto"===e.type?t.$t("message.governance_NoVeto"):"Join"===e.type?t.$t("message.governance_Join"):""))])])})),0)},s=[],n={props:{barWidth:{default:"50px"},lineWidth:{default:"20px"},baseHeight:{default:100},data:{default:function(){return[{type:"Yes",value:1,bg:"#52c41a",line:.5},{type:"No",value:.3,bg:"#faad14",line:.334},{type:"Abstain",value:.3,bg:"#e66",line:null},{type:"No Veto",value:.2,bg:"#ddd",line:null}]}}}},r=n,o=(a("3037"),a("2877")),l=Object(o["a"])(r,i,s,!1,null,"2803c5ec",null);e["a"]=l.exports},db0f:function(t,e,a){var i=a("73ab");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("7ec3f762",i,!0,{sourceMap:!1,shadowMode:!1})},dbd0:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("page",{staticStyle:{padding:"15px 0"}})],1)},s=[],n=a("3603"),r={components:{page:n["default"]}},o=r,l=a("2877"),c=Object(l["a"])(o,i,s,!1,null,null,null);e["default"]=c.exports},de9f:function(t,e,a){var i=a("0555");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("dd7d20a4",i,!0,{sourceMap:!1,shadowMode:!1})},e249:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".tx-item{margin-bottom:10px}.tx-item-title{font-weight:500;font-size:15px;color:#343a40}.tx-item-val{color:#98a6ad;overflow-wrap:break-word}.datatable-empty{text-align:center;padding:80px 0}.datatable-empty-icon{font-size:64px}.area-title-main{margin-top:20px;border-left:4px solid #343a40;padding:5px 10px}",""]),t.exports=e},e299:function(t,e,a){"use strict";a("2e0c")},e4de:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".logo[data-v-73f33ab2]{font-size:24px;font-weight:500;margin-right:20px;color:#eee}.topbar[data-v-73f33ab2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:50px;font-size:14px}.topbar a[data-v-73f33ab2]{color:#999;cursor:pointer;padding:0 15px}.topbar .topbar-active[data-v-73f33ab2],.topbar a[data-v-73f33ab2]:hover{color:#333}",""]),t.exports=e},e585:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",t._l(t.chains,(function(e,i){return a("van-cell-group",{key:i,attrs:{title:"Mainnet"===i?t.$t("message.mainnet"):"Testnet"===i?t.$t("message.testnet"):i}},[t._l(e,(function(e,i){return a("van-cell",{key:i,attrs:{center:"",title:e.name,"is-link":""},on:{click:function(a){return t.switchChain(e)}}},[a("div",{attrs:{slot:"icon"},slot:"icon"},[a("img",{staticStyle:{width:"30px",height:"30px","margin-right":"10px"},attrs:{src:e.logo,alt:""}})])])})),0===e.length?a("div",{staticStyle:{padding:"20px 15px"}},[a("van-button",{attrs:{round:"",block:"",color:"#343a40",icon:"plus"}},[t._v("New Chain")])],1):t._e()],2)})),1)},s=[],n=a("0e6a"),r={mixins:[n["a"]]},o=r,l=a("2877"),c=Object(l["a"])(o,i,s,!1,null,null,null);e["default"]=c.exports},e5ce:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".governance-item[data-v-5b3e6a1f]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-bottom:1px solid #eee;padding:20px 20px}.governance-item[data-v-5b3e6a1f]:hover{-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.governance-title[data-v-5b3e6a1f]{cursor:pointer;margin-bottom:12px;color:rgba(0,0,0,.85);font-size:16px;line-height:24px}.governance-title[data-v-5b3e6a1f]:hover{color:#1890ff}.governance-text[data-v-5b3e6a1f]{max-width:900px;line-height:22px;color:rgba(0,0,0,.65)}.governance-foot[data-v-5b3e6a1f]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-top:16px;color:rgba(0,0,0,.45)}.governance-time[data-v-5b3e6a1f]{color:rgba(0,0,0,.25);font-style:normal}",""]),t.exports=e},e6c8:function(t,e,a){"use strict";a("1fda")},e95d:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".uptime-content[data-v-98160f48]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.uptime-block-item[data-v-98160f48]{display:inline-block;width:15px;height:15px;border:1px solid #67c23a;margin-right:2px}.uptime-block-item-active[data-v-98160f48]{background:#c2e7b0}.uptime-username[data-v-98160f48]{color:#343a40}.uptime-username[data-v-98160f48]:hover{color:#1890ff}.styicky-operation[data-v-98160f48]{position:fixed;top:70px;left:20px;right:20px;background:#f5f6f8;z-index:20;padding:10px 10px!important}.h5-p10[data-v-98160f48]{padding:0 10px}",""]),t.exports=e},ea6d:function(t,e,a){var i=a("bb81");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("0cb9f639",i,!0,{sourceMap:!1,shadowMode:!1})},eb9d:function(t,e,a){"use strict";a("7672")},edf7:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"FlipClock"},[a("Flipper",{ref:"flipperDay1",attrs:{frontText:"9"}}),a("Flipper",{ref:"flipperDay2"}),a("Flipper",{ref:"flipperDay3"}),a("em",[t._v("-")]),a("Flipper",{ref:"flipperHour1"}),a("Flipper",{ref:"flipperHour2"}),a("em",[t._v(":")]),a("Flipper",{ref:"flipperMinute1"}),a("Flipper",{ref:"flipperMinute2"}),a("em",[t._v(":")]),a("Flipper",{ref:"flipperSecond1"}),a("Flipper",{ref:"flipperSecond2"})],1)},s=[],n=a("5a0c"),r=a.n(n),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"M-Flipper",class:[t.flipType,{go:t.isFlipping}]},[a("div",{staticClass:"digital front",class:t._textClass(t.frontTextFromData)}),a("div",{staticClass:"digital back",class:t._textClass(t.backTextFromData)})])},l=[],c=(a("a9e3"),{name:"FlipClock",data:function(){return{isFlipping:!1,flipType:"down",frontTextFromData:0,backTextFromData:1}},props:{frontText:{type:[Number,String],default:0},backText:{type:[Number,String],default:1},duration:{type:Number,default:600}},methods:{_textClass:function(t){return"number"+t},_flip:function(t,e,a){var i=this;if(this.isFlipping)return!1;this.frontTextFromData=e,this.backTextFromData=a,this.flipType=t,this.isFlipping=!0,setTimeout((function(){i.isFlipping=!1,i.frontTextFromData=a}),this.duration)},flipDown:function(t,e){this._flip("down",t,e)},flipUp:function(t,e){this._flip("up",t,e)},setFront:function(t){this.frontTextFromData=t},setBack:function(t){this.backTextFromData=t}},created:function(){this.frontTextFromData=this.frontText,this.backTextFromData=this.backText}}),d=c,p=(a("4c55"),a("2877")),u=Object(p["a"])(d,o,l,!1,null,null,null),m=u.exports,v={name:"FlipClock",data:function(){return{target:"2020-05-01 10:30:30",timer:null,flipObjs:[]}},components:{Flipper:m},methods:{padLeftZero:function(t){return("00"+t).substr(t.length)},calRange:function(){var t=r()(),e=r()(this.target).diff(t,"s");console.log(e);var a=86400,i=parseInt(e/a),s=e-i*a,n=parseInt(s/60/60),o=s-60*n*60,l=parseInt(o/60),c=o-60*l;console.log(i,n,l,c)},testTimer:function(){var t=this,e=9,a=setInterval((function(){t.$refs.flipperDay1.flipDown(e,e-1),e-=1,0===e&&clearInterval(a)}),1e3)}},mounted:function(){this.calRange(),this.$nextTick((function(){}))}},g=v,f=(a("c168"),Object(p["a"])(g,i,s,!1,null,null,null));e["a"]=f.exports},f02a:function(t,e,a){"use strict";a("7821")},f424:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".block-more-title[data-v-dee4b840]{margin-top:20px;border-left:4px solid #343a40;padding:5px 10px}.block-more-wrap[data-v-dee4b840]{padding:20px;margin-top:20px;min-height:300px}.block-text[data-v-dee4b840]{font-size:20px;font-weight:500}.txitem-header[data-v-dee4b840]{border-left:4px solid #343a40;padding:5px 10px}.block-val[data-v-dee4b840]{margin-bottom:10px}",""]),t.exports=e},f6f6:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=this,a=e.$createElement,i=e._self._c||a;return i("div",[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"bg-white box-dark governance-title-panel"},[i("div",{staticClass:"flex-center mb-20"},[i("div",{staticClass:"governance-id-title"},[e._v(e._s(e.item.title))]),i("div",{staticClass:"flex-1"}),e.address?i("el-button",{staticClass:"box-base",staticStyle:{width:"80px"},attrs:{type:"primary",round:""},on:{click:function(){t.$router.push("/wallet-vote?address="+e.address)}}},[e._v(e._s(e.$t("message.governanceid_vote")))]):e._e()],1),i("el-row",[i("el-col",{staticClass:"mb-20",attrs:{span:9,sm:9,xs:24}},[i("div",{staticClass:"mb-10"},[i("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.governanceid_proposalId"))+":")]),i("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.id))])]),i("div",{staticClass:"mb-10"},[i("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.governanceid_submit_time"))+":")]),i("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.submit_time))])]),i("div",{staticClass:"mb-10"},[i("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.governanceid_voting_start_time"))+":")]),i("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.voting_start_time))])])]),i("el-col",{staticClass:"mb-20",attrs:{span:9,sm:9,xs:24}},[i("div",{staticClass:"mb-10"},[i("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.governanceid_proposalType"))+":")]),i("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.type))])]),i("div",{staticClass:"mb-10"},[i("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.governanceid_deposit_end_time"))+":")]),i("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.deposit_end_time))])]),i("div",{staticClass:"mb-10"},[i("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.governanceid_voting_end_time"))+":")]),i("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.voting_end_time))])])]),i("el-col",{staticClass:"mb-20 hidden-xs-only",attrs:{span:6,sm:6,xs:24}},[i("div",{staticClass:"flex-center",staticStyle:{"justify-content":"flex-end","align-items":"flex-start"}},[i("div",{staticClass:"governance-id-sub"},[i("div",{staticClass:"governance-id-subtitle"},[e._v(e._s(e.$t("message.governanceid_total_deposit")))]),i("div",{staticClass:"governance-id-subvalue"},[e._v(e._s(e.total_deposit))])]),i("div",{staticClass:"governance-id-sub"},[i("div",{staticClass:"governance-id-subtitle"},[e._v(e._s(e.$t("message.governanceid_status")))]),i("div",{staticClass:"governance-id-subvalue"},[e._v(e._s(e.item.proposal_status))])])])]),i("el-col",{staticClass:"mb-20 hidden-sm-and-up",attrs:{span:6,sm:6,xs:24}},[i("div",{staticClass:"flex-center",staticStyle:{"justify-content":"flex-start","align-items":"flex-start","flex-wrap":"wrap"}},[i("div",{staticClass:"governance-id-sub",staticStyle:{"text-align":"left","padding-right":"40px","padding-left":"0"}},[i("div",{staticClass:"governance-id-subtitle"},[e._v(e._s(e.$t("message.governanceid_total_deposit")))]),i("div",{staticClass:"governance-id-subvalue"},[e._v(e._s(e.total_deposit))])]),i("div",{staticClass:"governance-id-sub",staticStyle:{"text-align":"left","padding-left":"0px"}},[i("div",{staticClass:"governance-id-subtitle"},[e._v(e._s(e.$t("message.governanceid_status")))]),i("div",{staticClass:"governance-id-subvalue"},[e._v(e._s(e.item.proposal_status))])])])])],1),i("div",{staticClass:"flex-center",staticStyle:{"flex-wrap":"wrap"}},[i("div",{staticClass:"governance-tab",class:{"governance-tab-active":"Votes"===e.tab},on:{click:function(){t.tab="Votes"}}},[i("el-button",{staticStyle:{"font-size":"14px"},attrs:{type:"text"}},[e._v(" "+e._s(e.$t("message.governanceid_votes"))+" ")])],1),i("div",{staticClass:"governance-tab",class:{"governance-tab-active":"Description"===e.tab},on:{click:function(){t.tab="Description"}}},[i("el-button",{staticStyle:{"font-size":"14px"},attrs:{type:"text"}},[e._v(" "+e._s(e.$t("message.governanceid_description"))+" ")])],1)])],1),i("div",{directives:[{name:"show",rawName:"v-show",value:"Description"===e.tab,expression:"tab === 'Description'"}],staticClass:"bg-white box-dark p-20 mt-20",staticStyle:{"white-space":"pre-wrap",color:"#333"}},[e._v(e._s(e.item.description))]),i("div",{directives:[{name:"show",rawName:"v-show",value:"Votes"===e.tab,expression:"tab === 'Votes'"}]},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{md:12,sm:24}},[i("div",{staticClass:"bg-white box-dark mt-20"},[i("div",{staticStyle:{padding:"10px 15px","border-bottom":"1px solid #eee"}},[e._v(e._s(e.$t("message.governanceid_tallyingProcedure")))]),i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"tc",staticStyle:{display:"flex","justify-content":"center"}},["--"!==e.item.id?i("RateBar",{staticStyle:{height:"260px","margin-bottom":"20px"},attrs:{id:e.item.id,baseHeight:200,lineWidth:"40px",barWidth:e.barWidth,data:[{type:"Yes",value:e.item.yes,bg:"#8be4c1",label:e.item.yes_percent,line:.5},{type:"Abstain",value:e.item.abstain,label:e.item.abstain_percent,bg:"#8cb0fb"},{type:"No",value:e.item.no,label:e.item.no_percent,bg:"#eb7f65",line:.334},{type:"No Veto",value:e.item.no_with_veto,label:e.item.no_with_veto_percent,bg:"#7585a2"},{type:"Join",value:e.item.join,label:e.item.join_percent,bg:"#91d5ff"}]}}):e._e()],1)])]),i("el-col",{attrs:{md:12,sm:24}},[i("div",{staticClass:"bg-white box-dark mt-20"},[i("div",{staticStyle:{padding:"10px 15px","border-bottom":"1px solid #eee"}},[e._v(e._s(e.$t("message.governanceid_DEPOSITS")))]),i("div",{staticStyle:{padding:"0 10px"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingDeposits,expression:"loadingDeposits"}],staticStyle:{width:"100%"},attrs:{data:e.depositList,height:"280"}},[i("el-table-column",{attrs:{prop:"depositor",label:e.$t("message.governanceid_Depositor")}}),i("el-table-column",{attrs:{prop:"amountCoin_str",label:e.$t("message.governanceid_Amount"),width:"140px"}}),i("dingyi-empty",{attrs:{slot:"empty",loading:e.loadingDeposits},slot:"empty"})],1)],1)])])],1),i("div",{staticClass:"bg-white box-dark mt-20"},[i("div",{staticStyle:{padding:"10px 20px","border-bottom":"1px solid #eee"}},[e._v(e._s(e.$t("message.governanceid_votes")))]),i("div",{staticStyle:{padding:"0 10px"}},[i("el-table",{staticStyle:{width:"100%","min-height":"200px"},attrs:{data:e.voteList}},[i("el-table-column",{attrs:{prop:"voter",label:e.$t("message.governanceid_Voter")},scopedSlots:e._u([{key:"default",fn:function(t){return[e.addressObj[t.row.voter]?i("a",{attrs:{href:"#/validator/"+e.addressObj[t.row.voter].operator_address}},[e._v(e._s(e.addressObj[t.row.voter].moniker))]):i("span",[e._v(" "+e._s(t.row.voter)+" ")])]}}])}),i("el-table-column",{attrs:{prop:"option",label:e.$t("message.governanceid_Option")}}),i("dingyi-empty",{attrs:{slot:"empty",loading:e.loadingVotes},slot:"empty"})],1)],1)])],1)])},s=[],n=a("1da1"),r=(a("96cf"),a("636f")),o={mixins:[r["a"]],computed:{total_deposit:function(){if(!this.item.total_deposit_str)return"--";var t=this.item.total_deposit_str.amount+" "+this.item.total_deposit_str.denom;return t}},data:function(){return{loading:!1,loadingDeposits:!1,loadingVotes:!1,item:{},address:"",depositList:[],voteList:[]}},created:function(){this.fetchTotalBondedTokens()},activated:function(){this.initData()},methods:{back:function(){this.$router.back()},fetchTotalBondedTokens:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getStakingPool");case 2:a=e.sent,t.$store.commit("bondedTokensSet",a.bonded_tokens_val),t.initData();case 5:case"end":return e.stop()}}),e)})))()},initData:function(){var t=this.$route.params.id;this.$route.query.address&&(this.address=this.$route.query.address),this.item={},this.init(t),this.getGovProposalsDeposits(t),this.getGovProposalsVotes(t)},getGovProposalsDeposits:function(t){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function a(){var i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.loadingDeposits=!0,a.next=3,e.$api.fetch("getGovProposalsDeposits",{proposalId:t});case 3:i=a.sent,e.loadingDeposits=!1,e.depositList=i;case 6:case"end":return a.stop()}}),a)})))()},getGovProposalsVotes:function(t){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function a(){var i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.loadingVotes=!0,a.next=3,e.$api.fetch("getGovProposalsVotes",{proposalId:t});case 3:i=a.sent,e.loadingVotes=!1,e.voteList=i;case 6:case"end":return a.stop()}}),a)})))()},init:function(t){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function a(){var i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.loading=!0,a.next=3,e.$api.fetch("getGovProposalsId",{id:t});case 3:i=a.sent,e.loading=!1,e.item=i;case 6:case"end":return a.stop()}}),a)})))()}}},l=a("d75d"),c={props:{barWidth:{default:"90px"}},components:{RateBar:l["a"]},mixins:[o],data:function(){return{tab:"Votes"}}},d=c,p=(a("7cf0"),a("2877")),u=Object(p["a"])(d,i,s,!1,null,"c03c89b8",null);e["default"]=u.exports},f74f:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".list-title[data-v-65c15444]{font-size:18px;font-weight:400;margin-bottom:10px}",""]),t.exports=e},f917:function(t,e,a){var i=a("f74f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("23ff27a1",i,!0,{sourceMap:!1,shadowMode:!1})},fa32:function(t,e,a){"use strict";a("3a1d")}}]); |