forked from cerc-io/cosmos-explorer
8 lines
215 KiB
JavaScript
8 lines
215 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pc"],{"0471":function(t,e,a){var n=a("a1a8");e=n(!1),e.push([t.i,".list-title[data-v-22b5500b]{font-size:18px;font-weight:400;margin-bottom:10px}",""]),t.exports=e},"07b6":function(t,e,a){"use strict";a.r(e);var n=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)},r=[],i=(a("c19d"),a("47f5")),s=a("d211"),o=(a("6a61"),a("2e91")),c={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((functio
|
||
|
/*!
|
||
|
localForage -- Offline Storage, Improved
|
||
|
Version 1.9.0
|
||
|
https://localforage.github.io/localForage
|
||
|
(c) 2013-2017 Mozilla, Apache License 2.0
|
||
|
*/
|
||
|
(function(e){t.exports=e()})((function(){return function t(e,n,r){function i(o,c){if(!n[o]){if(!e[o]){var l="function"==typeof a&&a;if(!c&&l)return a(o,!0);if(s)return s(o,!0);var d=new Error("Cannot find module '"+o+"'");throw d.code="MODULE_NOT_FOUND",d}var u=n[o]={exports:{}};e[o][0].call(u.exports,(function(t){var a=e[o][1][t];return i(a||t)}),u,u.exports,t,e,n,r)}return n[o].exports}for(var s="function"==typeof a&&a,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(t,a,n){(function(t){"use strict";var e,n,r=t.MutationObserver||t.WebKitMutationObserver;if(r){var i=0,s=new r(d),o=t.document.createTextNode("");s.observe(o,{characterData:!0}),e=function(){o.data=i=++i%2}}else if(t.setImmediate||"undefined"===typeof t.MessageChannel)e="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){d(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(d,0)};else{var c=new t.MessageChannel;c.port1.onmessage=d,e=function(){c.port2.postMessage(0)}}var l=[];function d(){var t,e;n=!0;var a=l.length;while(a){e=l,l=[],t=-1;while(++t<a)e[t]();a=l.length}n=!1}function u(t){1!==l.push(t)||n||e()}a.exports=u}).call(this,"undefined"!==typeof e?e:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],2:[function(t,e,a){"use strict";var n=t(1);function r(){}var i={},s=["REJECTED"],o=["FULFILLED"],c=["PENDING"];function l(t){if("function"!==typeof t)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,t!==r&&m(this,t)}function d(t,e,a){this.promise=t,"function"===typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"===typeof a&&(this.onRejected=a,this.callRejected=this.otherCallRejected)}function u(t,e,a){n((function(){var n;try{n=e(a)}catch(r){return i.reject(t,r)}n===t?i.reject(t,new TypeError("Cannot resolve promise with itself")):i.resolve(t,n)}))}function p(t){var e=t&&t.then;if(t&&("object"===typeof t||"function"===typeof t)&&"function"===typeof e)return function(){e.apply(t,arguments)}}function m(t,e){var a=!1;function n(e){a||(a=!0,i.reject(t,e))}function r(e){a||(a=!0,i.resolve(t,e))}function s(){e(r,n)}var o=f(s);"error"===o.status&&n(o.value)}function f(t,e){var a={};try{a.value=t(e),a.status="success"}catch(n){a.status="error",a.value=n}return a}function v(t){return t instanceof this?t:i.resolve(new this(r),t)}function g(t){var e=new this(r);return i.reject(e,t)}function h(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var a=t.length,n=!1;if(!a)return this.resolve([]);var s=new Array(a),o=0,c=-1,l=new this(r);while(++c<a)d(t[c],c);return l;function d(t,r){function c(t){s[r]=t,++o!==a||n||(n=!0,i.resolve(l,s))}e.resolve(t).then(c,(function(t){n||(n=!0,i.reject(l,t))}))}}function b(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var a=t.length,n=!1;if(!a)return this.resolve([]);var s=-1,o=new this(r);while(++s<a)c(t[s]);return o;function c(t){e.resolve(t).then((function(t){n||(n=!0,i.resolve(o,t))}),(function(t){n||(n=!0,i.reject(o,t))}))}}e.exports=l,l.prototype["catch"]=function(t){return this.then(null,t)},l.prototype.then=function(t,e){if("function"!==typeof t&&this.state===o||"function"!==typeof e&&this.state===s)return this;var a=new this.constructor(r);if(this.state!==c){var n=this.state===o?t:e;u(a,n,this.outcome)}else this.queue.push(new d(a,t,e));return a},d.prototype.callFulfilled=function(t){i.resolve(this.promise,t)},d.prototype.otherCallFulfilled=function(t){u(this.promise,this.onFulfilled,t)},d.prototype.callRejected=function(t){i.reject(this.promise,t)},d.prototype.otherCallRejected=function(t){u(this.promise,this.onRejected,t)},i.resolve=function(t,e){var a=f(p,e);if("error"===a.status)return i.reject(t,a.value);var n=a.value;if(n)m(t,n);else{t.state=o,t.outcome=e;var r=-1,s=t.queue.length;while(+
|