(function(t){function e(e){for(var s,c,o=e[0],r=e[1],l=e[2],v=0,d=[];ve.maximum&&(e.maximum=n.value_eth),s["default"].set(e.transactions[n.transactionIndex],"value",n.value_eth))})})}));case 1:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()}},We=Pe,Fe=(a("d5ba"),Object(p["a"])(We,ye,Ae,!1,null,"a87f401e",null));Fe.options.__file="TxSidebarNav.vue";var Me=Fe.exports,Re=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"block-content"},[a("div",{staticClass:"flex-box"},[a("div",{staticClass:"pair"},[a("div",{staticClass:"label minW140"},[t._v("Hash")]),a("TxHash",{attrs:{value:t.tx.hash}})],1),a("div",{staticClass:"pair"},[0===t.tx.value_eth?a("div",{staticClass:"tx-value-label value-grayed"},[t._v("Value")]):t._e(),0===t.tx.value_eth?a("div",{staticClass:"value gray"},[t._v("\n "+t._s(this.numberWithCommas(t.tx.value_eth))+" ETH\n ")]):t._e(),0!==t.tx.value_eth?a("div",{staticClass:"tx-value-label"},[t._v("Value")]):t._e(),0!==t.tx.value_eth&&t.tx.value_eth?a("div",{staticClass:"value"},[t._v("\n "+t._s(this.numberWithCommas(t.tx.value_eth.toFixed(4)))+" ETH\n ")]):t._e()])]),a("div",{staticClass:"flex-box"},[a("div",{staticClass:"pair"},[a("div",{staticClass:"label minW140"},[t._v("Block")]),a("BlockNumber",{attrs:{value:t.tx.blockNumber,isLink:!0}})],1)]),a("div",{staticClass:"flex-box"},[a("div",{staticClass:"pair"},[a("div",{staticClass:"label minW140"},[t._v("Position")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.tx.transactionIndex)+"\n ")])]),a("div",{staticClass:"pair"},[a("div",{staticClass:"label"},[t._v("Nonce")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(this.numberWithCommas(t.tx.nonce))+"\n ")])])]),a("div",{staticClass:"flex-box"},[a("div",{staticClass:"pair"},[a("div",{staticClass:"label minW140"},[t._v("From")]),a("AccountHash",{attrs:{value:t.tx.from}})],1),a("div",{staticClass:"pair"},[null!==t.tx.to?a("div",{staticClass:"label"},[t._v("To")]):t._e(),null!==t.tx.to?a("AccountHash",{attrs:{value:t.tx.to}}):t._e()],1),a("div",{staticClass:"pair"},[null!==t.tx.receipt.contractAddress?a("div",{staticClass:"label"},[t._v("Creates")]):t._e(),null!==t.tx.receipt.contractAddress?a("AccountHash",{attrs:{value:t.tx.receipt.contractAddress}}):t._e()],1)]),a("div",{staticClass:"flex-box separated"},[a("div",{staticClass:"pair"},[a("div",{staticClass:"label minW140"},[t._v("Gas limit")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(this.numberWithCommas(t.tx.gas))+"\n ")])]),a("div",{staticClass:"pair"},[a("div",{staticClass:"label"},[t._v("Gas price")]),a("div",{staticClass:"value"},[t._v("\n "+t._s((t.tx.gasPrice/Math.pow(10,18)).toFixed(9))+" ETH\n ")]),a("div",{staticClass:"value gray"},[t._v("\n "+t._s(t.tx.gasPrice/Math.pow(10,9))+" Gwei\n ")])])]),a("div",{staticClass:"flex-box"},[a("div",{staticClass:"pair"},[a("div",{staticClass:"label minW140"},[t._v("Gas used by tx")]),t.tx.receipt?a("div",{staticClass:"value"},[t._v("\n "+t._s(this.numberWithCommas(t.tx.receipt.gasUsed))+"\n "),a("span",{staticClass:"percentage"},[t._v(t._s((t.tx.receipt.gasUsed/t.tx.gas*100).toFixed(2))+"%")])]):t._e()]),a("div",{staticClass:"pair"},[a("div",{staticClass:"label"},[t._v("Tx fee")]),t.tx.receipt?a("div",{staticClass:"value"},[t._v("\n "+t._s((t.tx.receipt.gasUsed*t.tx.gasPrice/Math.pow(10,18)).toFixed(9))+" ETH\n ")]):t._e()])]),a("div",{staticClass:"flex-box"},[a("div",{staticClass:"pair"},[a("div",{staticClass:"label minW140"},[t._v("Cummulative gas used")]),t.tx.receipt?a("div",{staticClass:"value"},[t._v("\n "+t._s(this.numberWithCommas(t.tx.receipt.cumulativeGasUsed))+"\n ")]):t._e()])])])},Ue=[],ze=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wrapper"},[a("div",{staticClass:"top-tooltip-container"},[a("div",{staticClass:"arrow"}),a("div",{staticClass:"top-tooltip"},[t._v("\n "+t._s(t.value)+"\n ")])]),null!=t.value?a("div",{staticClass:"hash"},[a("div",{staticClass:"tooltip-target"},[t._v(t._s(t._f("cleanHash")(t.value)))])]):t._e()])},De=[],Ve={name:"TxHash",props:{value:String},components:{},filters:{cleanHash:function(t){if(null==t)return"";t=t.toLowerCase();var e=Math.ceil(t.length/2),a=t.length-12,s=Math.ceil(a/2),n=a-s;return"".concat(t.substring(0,e-s)," ... ").concat(t.substring(e+n))}}},Ge=Ve,Ze=(a("e3d0"),Object(p["a"])(Ge,ze,De,!1,null,"b46e56d0",null));Ze.options.__file="TxHash.vue";var Xe=Ze.exports,Qe={name:"TxContent",props:{currentHash:String},components:{AddressLink:Xt,TransactionLink:te,Hash:jt,TxHash:Xe,AccountHash:J,BlockNumber:_},mixins:[st],data:function(){return{tx:{},tx_uid:"",events:[]}},watch:{currentHash:function(){var t=Object(At["a"])(regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:""!=this.currentHash&&(e=this,e.tx_uid=this.lib_UID(),e.tx_uid,e.lib_getTransaction(e.currentHash,!0,function(t,a){console.log(a),e.tx=a}));case 1:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()}},Je=Qe,Ye=(a("5cc4"),Object(p["a"])(Je,Re,Ue,!1,null,"0e7a4464",null));Ye.options.__file="TxContent.vue";var qe=Ye.exports,Ke={name:"block",components:{TxSidebarNav:Me,TxContent:qe,IconBase:w,IconSearch:y,IconAlethio:et},data:function(){return{currentTx:""}},mounted:function(){this.currentTx=this.$route.params.hash,this.checkIfExist()},watch:{$route:function(t,e){this.currentTx=this.$route.params.hash,this.checkIfExist()}},methods:{checkIfExist:function(){if(null!=this.currentTx&&""!==this.currentTx){var t=this;this.lib_getTransaction(this.currentTx,!1,function(e,a){(e||null==a)&&t.$router.push({path:"/404"})})}}}},ta=Ke,ea=Object(p["a"])(ta,He,Se,!1,null,null,null);ea.options.__file="Tx.vue";var aa=ea.exports,sa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"home is-fullheight"},[a("div",{staticClass:"left-header"},[a("div",{staticClass:"iconAlethio",on:{click:function(e){t.lib_goHome()}}},[a("icon-base",{attrs:{"icon-name":"alethio",width:"32",height:"32",viewBox:"2 24 24 24"}},[a("icon-alethio")],1)],1),a("div",{staticClass:"search-icon-container"},[a("div",{staticClass:"iconSearch",on:{click:function(e){t.lib_openSearch()}}},[a("icon-base",{attrs:{"icon-name":"search",width:"36",height:"36",viewBox:"-4 0 24 24"}},[a("icon-search")],1)],1)])]),a("div",{staticClass:"error-container"},[a("icon-base",{attrs:{"icon-name":"error",width:"48",height:"48",viewBox:"2 2 20 20"}},[a("icon-error")],1),t._m(0)],1)])},na=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"error-text"},[a("div",[t._v("Looks like the resource you are looking for does not exist.")]),a("div",[t._v("Try searching for a different one.")])])}],ia=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("path",{attrs:{d:"M12,2 C6.48,2 2,6.48 2,12 C2,17.52 6.48,22 12,22 C17.52,22 22,17.52 22,12 C22,6.48 17.52,2 12,2 Z M13,17 L11,17 L11,15 L13,15 L13,17 Z M13,13 L11,13 L11,7 L13,7 L13,13 Z",id:"Shape",fill:"#F65555","fill-rule":"nonzero"}})},ca=[],oa={},ra=Object(p["a"])(oa,ia,ca,!1,null,null,null);ra.options.__file="IconError.vue";var la=ra.exports,ua={name:"NotFounf",components:{IconBase:w,IconError:la,IconAlethio:et,IconSearch:y},data:function(){return{}},mounted:function(){this.currentBlock=parseInt(this.$route.params.blocknumber)},watch:{},computed:{lastBlock:function(){return this.$store.state.lastBlock}}},va=ua,da=Object(p["a"])(va,sa,na,!1,null,null,null);da.options.__file="404.vue";var ha=da.exports;s["default"].use(O["a"]);var fa=new O["a"]({mode:"history",routes:[{path:"/",name:"home",component:$e},{path:"/account/:address",name:"account",component:ot},{path:"/block/:blocknumber",name:"block",component:ge},{path:"/tx/:hash",name:"tx",component:aa},{path:"/404",name:"NotFound",component:ha}]}),ma=a("2f62"),pa=a("bac7"),ba=a.n(pa),_a="json_rpc",Ca="ws",ga=null,xa=Object({NODE_ENV:"production",BASE_URL:"/"}).CONNECTION_TYPE||_a,ka=Object({NODE_ENV:"production",BASE_URL:"/"}).NODE_URL||"https://mainnet.infura.io/alethio";switch(xa){case _a:ga=new ba.a(new ba.a.providers.HttpProvider(ka));break;case Ca:ga=new ba.a(new ba.a.providers.WebsocketProvider(ka));break;default:break}var Ba=function(){return ga},wa=Ba;s["default"].use(ma["a"]);var Ta=new ma["a"].Store({state:{w3:wa(),blocks:{},transactions:{},pendingQueries:{},lastBlock:-1,totalBlocks:0,totalTransactions:0,countPending:0,lastBlockFull:null,peers:0,nodeType:null},mutations:{setPending:function(t,e){s["default"].set(t.pendingQueries,e,!0),t.countPending+=1},removePending:function(t,e){s["default"].delete(t.pendingQueries,e),t.countPending-=1},storeBlock:function(t,e){s["default"].set(t.blocks,e.number,e),t.totalBlocks+=1},storeTransaction:function(t,e){s["default"].set(t.transactions,e.hash,e),t.totalTransactions+=1},setLastBlock:function(t,e){t.lastBlock