An enterprise-grade Java-based, Apache 2.0 licensed Ethereum client https://wiki.hyperledger.org/display/besu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
besu/quickstart/block-explorer-light/dist/js/app.769a0f91.js

2 lines
42 KiB

(function(t){function e(e){for(var s,c,o=e[0],r=e[1],l=e[2],v=0,d=[];v<o.length;v++)c=o[v],n[c]&&d.push(n[c][0]),n[c]=0;for(s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s]);u&&u(e);while(d.length)d.shift()();return i.push.apply(i,l||[]),a()}function a(){for(var t,e=0;e<i.length;e++){for(var a=i[e],s=!0,o=1;o<a.length;o++){var r=a[o];0!==n[r]&&(s=!1)}s&&(i.splice(e--,1),t=c(c.s=a[0]))}return t}var s={},n={app:0},i=[];function c(e){if(s[e])return s[e].exports;var a=s[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,c),a.l=!0,a.exports}c.m=t,c.c=s,c.d=function(t,e,a){c.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},c.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},c.t=function(t,e){if(1&e&&(t=c(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(c.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)c.d(a,s,function(e){return t[e]}.bind(null,s));return a},c.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return c.d(e,"a",e),e},c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},c.p="/";var o=window["webpackJsonp"]=window["webpackJsonp"]||[],r=o.push.bind(o);o.push=e,o=o.slice();for(var l=0;l<o.length;l++)e(o[l]);var u=r;i.push([0,"chunk-vendors"]),a()})({0:function(t,e,a){t.exports=a("56d7")},"034f":function(t,e,a){"use strict";var s=a("c21b"),n=a.n(s);n.a},"0f2a":function(t,e,a){"use strict";var s=a("9833"),n=a.n(s);n.a},"18d9":function(t,e,a){},"1d86":function(t,e,a){"use strict";var s=a("b745"),n=a.n(s);n.a},"1f5e":function(t,e,a){"use strict";var s=a("f73e"),n=a.n(s);n.a},2537:function(t,e,a){"use strict";var s=a("ec08"),n=a.n(s);n.a},3091:function(t,e,a){"use strict";var s=a("c958"),n=a.n(s);n.a},"37c8":function(t,e,a){},"440a":function(t,e,a){"use strict";var s=a("b495"),n=a.n(s);n.a},"44dd":function(t,e,a){},"56d7":function(t,e,a){"use strict";a.r(e);a("f559"),a("a481"),a("cadf"),a("551c"),a("097d");var s=a("2b0e"),n=a("8a03"),i=a.n(n),c=a("c437"),o=a.n(c),r=a("e37d"),l=a("8682"),u=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"is-fullheight",attrs:{id:"app"}},[a("router-view")],1)},v=[],d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wrapper"},[null==t.value||t.isLink?t._e():a("div",{staticClass:"block_number"},[t._v("\n # "+t._s(t.value)+"\n")]),null!=t.value&&t.isLink?a("router-link",{staticClass:"block_number",attrs:{to:{name:"block",params:{blocknumber:t.value}}}},[t._v("\n # "+t._s(t.value)+"\n")]):t._e()],1)},h=[],f=(a("c5f6"),{name:"Hash",props:{value:Number,isLink:Boolean},components:{},filters:{}}),m=f,p=(a("0f2a"),a("2877")),b=Object(p["a"])(m,d,h,!1,null,"c3617e66",null);b.options.__file="BlockNumber.vue";var _=b.exports,C=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,viewBox:t.viewBox,"aria-labelledby":t.iconName,role:"presentation"}},[a("g",[t._t("default")],2)])},g=[],x={props:{iconName:{type:String,default:"box"},width:{type:[Number,String],default:18},height:{type:[Number,String],default:18},iconColor:{type:String,default:"currentColor"},viewBox:{type:String,default:"0 0 18 18"}}},k=x,B=Object(p["a"])(k,C,g,!1,null,null,null);B.options.__file="IconBase.vue";var w=B.exports,T=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("path",{attrs:{d:"M14.3319496,15.7461631 C13.2547883,16.5354812 11.9285699,17 10.5,17 C6.91,17 4,14.09 4,10.5 C4,6.91 6.91,4 10.5,4 C14.09,4 17,6.91 17,10.5 C17,11.9285699 16.5354812,13.2547883 15.7461631,14.3319496 L19.363961,17.9497475 L17.9497475,19.363961 L14.3319496,15.7461631 Z M10.5,15 C12.99,15 15,12.99 15,10.5 C15,8.01 12.99,6 10.5,6 C8.01,6 6,8.01 6,10.5 C6,12.99 8.01,15 10.5,15 Z",id:"Combined-Shape"}})},$=[],H={},S=Object(p["a"])(H,T,$,!1,null,null,null);S.options.__file="IconSearch.vue";var y=S.exports,A={components:{BlockNumber:_,IconBase:w,IconSearch:y},mounted:function(){this.lib_monitorLastBlock()},computed:{lastBlock:function(){return this.$store.state.lastBlock}}},E=A,L=(a("034f"),Object(p["a"])(E,u,v,!1,null,null,null));L.options.__file="App.vue";var N=L.exports,O=a("8c4f"),I=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"columns min100",attrs:{id:"account"}},[a("div",{staticClass:"column is-5 flex-box min100"},[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:"account-avatar-container"},[a("div",{staticClass:"account-avatar"},[a("div",{staticClass:"identicon-container"},[t.currentAddress?a("HashAvatar",{attrs:{hash:t.currentAddress}}):t._e()],1)])]),a("div",{staticClass:"account-content"},[a("div",{staticClass:"flex-box"},[a("div",{staticClass:"pair"},[a("div",{staticClass:"label minW140"},[t._v("Address")]),a("AccountHash",{attrs:{value:t.currentAddress}})],1),a("div",{staticClass:"pair"},[a("div",{staticClass:"label"},[t._v("Type")]),t.account.isContract?a("div",{staticClass:"value"},[t._v("Contract account")]):t._e(),!1===t.account.isContract?a("div",{staticClass:"value"},[t._v("External Account")]):t._e()])]),a("div",{staticClass:"flex-box"},[a("div",{staticClass:"pair"},[a("div",{staticClass:"label minW140"},[t._v("Balance")]),t.account.balance_eth||0===t.account.balance_eth?a("div",{staticClass:"value"},[t._v(t._s(this.numberWithCommas(t.account.balance_eth.toFixed(4)))+" ETH")]):t._e()])]),a("div",{staticClass:"flex-box"},[t.account.isContract?a("div",{staticClass:"label minW140"},[t._v("Account Code")]):t._e(),t.account.isContract?a("div",{staticClass:"account-code"},[t._v(t._s(t.account.code))]):t._e()])])])])},j=[],P=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("img",{attrs:{src:t._f("dataurl")(t.hash)}})},W=[],F=(a("6b54"),a("36f3")),M=a.n(F),R={name:"HashAvatar",props:{hash:String},filters:{dataurl:function(t){var e={foreground:[53,124,255,255],background:[255,255,255,255],margin:.1,size:74,format:"svg"},a=new M.a(t.replace("0x",""),e).toString();return"data:image/svg+xml;base64,"+a}}},U=R,z=Object(p["a"])(U,P,W,!1,null,null,null);z.options.__file="HashAvatar.vue";var D=z.exports,V=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("router-link",{staticClass:"tooltip-target",attrs:{to:{name:"account",params:{address:t.value}}}},[t._v(t._s(t._f("cleanHash")(t.value))+"\n ")])],1):t._e()])},G=[],Z={name:"AccountHash",props:{value:String,number:Number},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))}}},X=Z,Q=(a("6a47"),Object(p["a"])(X,V,G,!1,null,"478a83f5",null));Q.options.__file="AccountHash.vue";var J=Q.exports,Y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("path",{attrs:{d:"M34,46 C27.372583,46 22,40.627417 22,34 C22,27.372583 27.372583,22 34,22 C40.627417,22 46,27.372583 46,34 C46,40.627417 40.627417,46 34,46 Z M41.1780218,37.649851 C41.4876649,36.484143 40.769164,35.2845198 39.5873566,34.9518566 C38.709299,34.7009231 38.1299358,34.3762753 37.8664381,33.8852115 L36.1745528,30.5989705 C35.9015666,30.104772 35.8977699,29.3871907 36.1130756,28.54391 C36.4426138,27.3724885 35.7271616,26.1419108 34.5334062,25.8296978 C33.3605736,25.4997949 32.1299958,26.2152471 31.8177829,27.4090025 C31.4878799,28.5818351 32.2033321,29.8124129 33.3970876,30.1246258 L33.4766317,30.1327611 C34.2741044,30.3706144 34.8481061,30.6961153 35.1130794,31.1899292 L36.8219354,34.4612011 C37.094238,34.9540814 37.0980348,35.6716628 36.8827291,36.5149435 C36.5531908,37.6863649 37.268643,38.9169427 38.4623985,39.2291557 C39.635231,39.5590586 40.8658088,38.8436064 41.1780218,37.649851 Z M32.072702,32.6469802 C32.2583581,32.1316201 31.6203965,31.7507418 31.3164163,32.2000869 L30.1292401,33.8751438 C29.8240101,34.3824523 29.2227504,34.7249882 28.3899576,34.9687324 C27.2186748,35.2981412 26.5242963,36.4909043 26.8167317,37.6789231 C27.1489599,38.8606759 28.341723,39.5550544 29.5297418,39.262619 C30.7114946,38.9303908 31.4058731,37.7376277 31.1134377,36.5496089 C30.8915341,35.7172906 30.8915341,34.9816349 31.1684764,34.50328 L32.072702,32.6469802 Z",id:"aleth_icon"}})},q=[],K={},tt=Object(p["a"])(K,Y,q,!1,null,null,null);tt.options.__file="IconAlethio.vue";var et=tt.exports;a("28a5");function at(t){if(t){var e=t.toString().split(".");return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),e.join(".")}return t}var st={methods:{numberWithCommas:at}},nt={name:"account",components:{HashAvatar:D,AccountHash:J,IconBase:w,IconSearch:y,IconAlethio:et},mixins:[st],data:function(){return{currentAddress:"",account:{}}},mounted:function(){this.currentAddress=this.$route.params.address},watch:{$route:function(t,e){this.currentAddress=this.$route.params.address},currentAddress:function(t,e){this.account={};var a=this;this.lib_getAccount(this.currentAddress,function(t,e){a.account=e})}}},it=nt,ct=(a("ba34"),Object(p["a"])(it,I,j,!1,null,"19b8ac45",null));ct.options.__file="Account.vue";var ot=ct.exports,rt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"columns is-fullheight is-mobile flex-box",attrs:{id:"block"}},[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:"column is-3 sidebar blockSidebar"},[a("BlockSidebarNav",{attrs:{currentBlock:t.currentBlock},on:{block_selected:function(e){t.lib_goToBlock(e)}}})],1),a("div",{staticClass:"column is-9 content"},[a("BlockContent",{attrs:{currentBlock:t.currentBlock}})],1)])},lt=[],ut=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{overflow:"visible"}},[t._m(0),a("HorizontalBarList",{attrs:{elements:t.blocks,maximumValue:t.maximum},on:{item_clicked:function(e){t.lib_goToBlock(e)}}})],1)},vt=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"block-logo-container"},[a("div",{staticClass:"block-logo"},[a("div",{staticClass:"block-logo-bg"},[a("div",{staticClass:"block-logo-text"},[t._v("Bk")])])])])}],dt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"blocks-list"},t._l(t.elements,function(e){return a("div",{key:e.id,staticStyle:{overflow:"visible"}},[a("HorizontalBar",{class:{item:!0,selected:e.selected,hidden:-1===e.value},attrs:{label:"# "+e.id,value:e.value,percent:e.value/t.maximumValue*100},on:{item_clicked:function(a){t.$emit("item_clicked",e.id)}}})],1)}))},ht=[],ft=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"elem",style:{width:t.percent+"%",height:"8px"},on:{click:function(e){t.$emit("item_clicked")}}},[a("div",{staticClass:"tooltip-container"},[a("div",{staticClass:"tooltip"},[a("div",{staticClass:"arrow"}),a("div",{staticClass:"flex-box"},[a("div",{staticClass:"block-number"},[t._v(t._s(t.label))]),a("div",{staticClass:"tx-number"},[t._v(t._s(t.value)+" TXs")])])])])])},mt=[],pt={name:"HorizontalBar",props:{percent:Number,label:String,value:Number}},bt=pt,_t=(a("f90f"),Object(p["a"])(bt,ft,mt,!1,null,"9422fdfc",null));_t.options.__file="HorizontalBar.vue";var Ct=_t.exports,gt={name:"HorizontalBarList",props:{elements:Array,maximumValue:Number},components:{HorizontalBar:Ct}},xt=gt,kt=(a("7068"),Object(p["a"])(xt,dt,ht,!1,null,"365efdf9",null));kt.options.__file="HorizontalBarList.vue";var Bt=kt.exports,wt={name:"BlockSidebarNav",props:{currentBlock:Number},components:{HorizontalBarList:Bt},data:function(){return{range:parseInt((window.innerHeight-280)/32,10),blocks:[],maximum:-1/0}},computed:{lastBlock:function(){return this.$store.state.lastBlock}},watch:{lastBlock:function(){this.lastBlock<this.currentBlock+this.range&&this.fillSidebebar()},currentBlock:function(){this.fillSidebebar()}},methods:{fillSidebebar:function(){var t=this;-1!==this.currentBlock&&function(){t.$emit("block_selected",t.currentBlock);for(var e=[],a=-t.range;a<=t.range;a++){var n=t.$store.state.blocks[t.currentBlock+a];null!=n?(t.maximum<n.transactions.length&&(t.maximum=n.transactions.length),e.push({id:t.currentBlock+a,value:n.transactions.length,selected:0===a})):e.push({id:t.currentBlock+a,value:-1,selected:0===a})}t.blocks=e.reverse();for(var i=t,c=0;c<t.blocks.length;c++)t.lib_getBlock(t.blocks[c].id,function(t,e){if(null!=e){var a=i.currentBlock-e.number+i.range;i.blocks[a].id===e.number&&(s["default"].set(i.blocks[a],"value",e.transactions.length),i.maximum<e.transactions.length&&(i.maximum=e.transactions.length))}})}()}}},Tt=wt,$t=(a("1d86"),Object(p["a"])(Tt,ut,vt,!1,null,"78da2070",null));$t.options.__file="BlockSidebarNav.vue";var Ht=$t.exports,St=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"block-content"},[a("div",{staticClass:"flex-box"},[a("div",{staticClass:"pair"},[a("div",{staticClass:"label minW140"},[t._v("Block")]),a("BlockNumber",{attrs:{value:t.block.number}})],1),a("div",{staticClass:"pair"},[a("div",{staticClass:"label"},[t._v("Time")]),a("TimeStamp",{attrs:{value:t.block.timestamp}})],1)]),a("div",{staticClass:"flex-box"},[a("div",{staticClass:"pair"},[a("div",{staticClass:"label minW140"},[t._v("Hash")]),a("Hash",{attrs:{value:t.block.hash}})],1),a("div",{staticClass:"pair"},[a("div",{staticClass:"label"},[t._v("Parent")]),a("BlockHash",{attrs:{number:t.block.number-1,value:t.block.parentHash}})],1)]),a("div",{staticClass:"flex-box"},[a("div",{staticClass:"pair"},[a("div",{staticClass:"label minW140"},[t._v("Nonce")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.block.nonce)+"\n ")])]),a("div",{staticClass:"pair"},[a("div",{staticClass:"label"},[t._v("Size")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(this.numberWithCommas(t.block.size))+" bytes\n ")])])]),a("div",{staticClass:"flex-box"},[a("div",{staticClass:"pair"},[a("div",{staticClass:"label minW140"},[t._v("Transactions")]),a("div",{staticClass:"counter-container"},[a("div",{staticClass:"tx-counter"},[t._v("\n "+t._s(null==t.block.transactions?0:this.numberWithCommas(t.block.transactions.length))+"\n ")])])]),a("div",{staticClass:"pair"},[a("div",{staticClass:"label"},[t._v("ERC20 Transfers")]),a("ERC20Transfers",{attrs:{block:t.block}})],1)])]),a("div",{staticClass:"columns txs-table-container"},[a("div",{staticClass:"column is-12"},[a("b-table",{attrs:{data:t.transactions,"default-sort":"transactionIndex","default-sort-direction":"asc","per-page":20,paginated:!0,"pagination-simple":!0},scopedSlots:t._u([{key:"default",fn:function(e){return[a("b-table-column",{staticClass:"first-column",attrs:{field:"transactionIndex",label:"ID",sortable:"",numeric:""}},[t._v("\n "+t._s(e.row.transactionIndex)+"\n ")]),a("b-table-column",{staticClass:"normal-column",attrs:{field:"hash",label:"HASH",sortable:""}},[a("TransactionLink",{attrs:{transaction:e.row.hash}})],1),a("b-table-column",{staticClass:"normal-column",attrs:{field:"from",label:"FROM",sortable:""}},[a("AddressLink",{attrs:{address:e.row.from}})],1),a("b-table-column",{staticClass:"normal-column",attrs:{field:"to",label:"TO",sortable:""}},[a("AddressLink",{attrs:{address:null!==e.row.to?e.row.to:e.row.receipt.contractAddress}})],1),a("b-table-column",{staticClass:"last-column",attrs:{field:"value_eth",label:"VALUE (ETH)",sortable:""}},[t._v("\n "+t._s(e.row.value_eth.toFixed(4))+"\n ")])]}}])},[a("template",{slot:"empty"},[a("section",{staticClass:"section no-txs"},[a("div",{staticClass:"content has-text-grey has-text-centered"},[a("div",{staticClass:"value"},[t._v("Don't have data to show.")])])])])],2)],1)])])},yt=[],At=(a("96cf"),a("3040")),Et=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()])},Lt=[],Nt={name:"Hash",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-10,s=Math.ceil(a/2),n=a-s;return"".concat(t.substring(0,e-s)," ... ").concat(t.substring(e+n))}}},Ot=Nt,It=(a("c225"),Object(p["a"])(Ot,Et,Lt,!1,null,"e03dfd94",null));It.options.__file="Hash.vue";var jt=It.exports,Pt=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("a",{staticClass:"tooltip-target",on:{click:function(e){t.lib_goToBlock(t.number)}}},[t._v(t._s(t._f("cleanHash")(t.value)))])]):t._e()])},Wt=[],Ft={name:"BlockHash",props:{value:String,number:Number},components:{},filters:{cleanHash:function(t){if(null==t)return"";t=t.toLowerCase();var e=Math.ceil(t.length/2),a=t.length-10,s=Math.ceil(a/2),n=a-s;return"".concat(t.substring(0,e-s)," ... ").concat(t.substring(e+n))}}},Mt=Ft,Rt=(a("1f5e"),Object(p["a"])(Mt,Pt,Wt,!1,null,"5c4f5167",null));Rt.options.__file="BlockHash.vue";var Ut=Rt.exports,zt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("router-link",{attrs:{to:{name:"account",params:{address:t.address}}}},[t._v("\n "+t._s(t._f("cleanHash")(t.address))+"\n")])},Dt=[],Vt={name:"AddressLink",props:{address:String},components:{},filters:{cleanHash:function(t){if(null==t)return"";t=t.toLowerCase();var e=Math.ceil(t.length/2),a=t.length-10,s=Math.ceil(a/2),n=a-s;return"".concat(t.substring(0,e-s)," ... ").concat(t.substring(e+n))}}},Gt=Vt,Zt=(a("2537"),Object(p["a"])(Gt,zt,Dt,!1,null,"3c036809",null));Zt.options.__file="AddressLink.vue";var Xt=Zt.exports,Qt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("router-link",{attrs:{to:{name:"tx",params:{hash:t.transaction}}}},[t._v("\n "+t._s(t._f("cleanHash")(t.transaction))+"\n")])},Jt=[],Yt={name:"TransactionLink",props:{transaction:String},components:{},filters:{cleanHash:function(t){t=t.toLowerCase();var e=Math.ceil(t.length/2),a=t.length-10,s=Math.ceil(a/2),n=a-s;return"".concat(t.substring(0,e-s)," ... ").concat(t.substring(e+n))}}},qt=Yt,Kt=(a("bf67"),Object(p["a"])(qt,Qt,Jt,!1,null,"eac59406",null));Kt.options.__file="TransactionLink.vue";var te=Kt.exports,ee=function(){var t=this,e=t.$createElement,a=t._self._c||e;return null!=t.value?a("div",{staticClass:"value"},[a("div",{staticClass:"top-tooltip-container"},[a("div",{staticClass:"arrow"}),a("div",{staticClass:"top-tooltip"},[t._v("\n "+t._s(t.value)+"\n ")])]),a("div",{staticClass:"tooltip-target cursor",on:{click:function(e){t.showTimeAgo=!t.showTimeAgo}}},[t.showTimeAgo?a("Timeago",{attrs:{datetime:1e3*t.value}}):t._e(),t.showTimeAgo?t._e():a("span",[t._v(t._s(t._f("timestampToText")(t.value)))])],1)]):t._e()},ae=[],se={name:"TimeStamp",props:{value:Number},components:{},data:function(){return{showTimeAgo:!0}},filters:{timestampToText:function(t){var e=new Date(1e3*t);return e.toLocaleString()}}},ne=se,ie=(a("d10f"),Object(p["a"])(ne,ee,ae,!1,null,"48d109c1",null));ie.options.__file="TimeStamp.vue";var ce=ie.exports,oe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"erc-counter"},[t._v("\n "+t._s(this.numberWithCommas(t.transfers))+"\n")])},re=[],le={name:"ERC20Transfers",data:function(){return{transfers:0,transfers_uid:""}},mixins:[st],props:{block:Object},watch:{block:function(){var t=this;t.transfers=0,t.transfers_uid=this.lib_UID();for(var e=t.transfers_uid,a=0;a<t.block.transactions.length;a++)t.lib_getTransaction(t.block.transactions[a],!0,function(a,s){if(null!=s.receipt&&null!=s.receipt.logs)for(var n=0;n<s.receipt.logs.length;n++)e===t.transfers_uid&&"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"===s.receipt.logs[n].topics[0]&&(t.transfers+=1)})}}},ue=le,ve=(a("3091"),Object(p["a"])(ue,oe,re,!1,null,"157fdaa6",null));ve.options.__file="ERC20Transfers.vue";var de=ve.exports,he={name:"BlockContent",props:{currentBlock:Number},components:{AddressLink:Xt,TransactionLink:te,Hash:jt,BlockHash:Ut,BlockNumber:_,TimeStamp:ce,ERC20Transfers:de},mixins:[st],data:function(){return{block:{},transactions:[],transactions_uid:""}},watch:{currentBlock:function(){var t=Object(At["a"])(regeneratorRuntime.mark(function t(){var e,a;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:-1!==this.currentBlock&&(e=this,e.transactions_uid=this.lib_UID(),a=e.transactions_uid,e.lib_getBlock(e.currentBlock,function(t,s){e.block=s;e.currentBlock;e.transactions=[];for(var n=0;n<e.block.transactions.length;n++)e.lib_getTransaction(e.block.transactions[n],!0,function(t,s){null!=s&&a===e.transactions_uid&&e.transactions.push(s)})}));case 1:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()}},fe=he,me=(a("7622"),Object(p["a"])(fe,St,yt,!1,null,"ca0ae2ea",null));me.options.__file="BlockContent.vue";var pe=me.exports,be={name:"block",components:{BlockSidebarNav:Ht,BlockContent:pe,IconBase:w,IconSearch:y,IconAlethio:et},data:function(){return{currentBlock:-1}},mounted:function(){this.currentBlock=parseInt(this.$route.params.blocknumber),this.checkIfExist()},watch:{$route:function(t,e){this.currentBlock=parseInt(this.$route.params.blocknumber),this.checkIfExist()}},methods:{checkIfExist:function(){if(-1!=this.currentBlock){var t=this;this.lib_getBlock(this.currentBlock,function(e,a){(e||null==a)&&t.$router.push({path:"/404"})})}}}},_e=be,Ce=Object(p["a"])(_e,rt,lt,!1,null,null,null);Ce.options.__file="Block.vue";var ge=Ce.exports,xe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"home is-fullheight"},[a("div",{staticClass:"centered-absolute"},[a("div",{staticClass:"flex-box",staticStyle:{"align-items":"center"}},[t.nodeType?a("div",{staticClass:"label"},[t._v("Type")]):t._e(),t.nodeType?a("div",{staticClass:"value white-bg-value"},[t._v(t._s(t.nodeType.split("/")[0]))]):t._e(),t.peers?a("div",{staticClass:"label"},[t._v("Peers")]):t._e(),t.peers?a("div",{staticClass:"value white-bg-value"},[t._v(t._s(t.peers))]):t._e(),a("div",{staticClass:"label"},[t._v("Best block")]),a("BlockNumber",{attrs:{value:t.lastBlock,isLink:!0}}),t.lastBlockFull?a("div",{staticClass:"label"},[t._v("Transactions")]):t._e(),t.lastBlockFull?a("div",{staticClass:"tx-counter"},[t._v(t._s(t.lastBlockFull.transactions.length))]):t._e(),t.lastBlockFull?a("div",{staticClass:"label"},[t._v("Uncles")]):t._e(),t.lastBlockFull?a("div",{staticClass:"uncle-counter"},[t._v(t._s(t.lastBlockFull.uncles.length))]):t._e()],1),a("div",{staticClass:"home-search-container"},[a("div",{staticClass:"flex-box"},[a("div",{staticClass:"searchbar-alethio-logo"},[a("icon-base",{attrs:{"icon-name":"alethio",width:"24",height:"24",viewBox:"22 22 24 24"}},[a("icon-alethio")],1)],1),a("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],attrs:{placeholder:"Enter a block number, transaction hash or address."},domProps:{value:t.search},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.lib_processSearch(t.search)},input:function(e){e.target.composing||(t.search=e.target.value)}}})]),a("div",{staticClass:"submit-container",on:{click:function(e){t.lib_processSearch(t.search)}}},[a("div",{staticClass:"searchbar-search-icon"},[a("icon-base",{attrs:{"icon-name":"search",width:"16",height:"16",viewBox:"4 4 16 16"}},[a("icon-search")],1)],1),a("span",{staticClass:"search-text"},[t._v("Search")])])])])])},ke=[],Be={name:"home",components:{BlockNumber:_,IconBase:w,IconSearch:y,IconAlethio:et},data:function(){return{search:""}},mounted:function(){},watch:{},computed:{lastBlock:function(){return this.$store.state.lastBlock},lastBlockFull:function(){return this.$store.state.lastBlockFull},peers:function(){return this.$store.state.peers},nodeType:function(){return this.$store.state.nodeType}}},we=Be,Te=Object(p["a"])(we,xe,ke,!1,null,null,null);Te.options.__file="Home.vue";var $e=Te.exports,He=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"columns is-fullheight is-mobile flex-box",attrs:{id:"block"}},[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:"column is-3 sidebar blockSidebar tx-sideBar"},[a("TxSidebarNav",{attrs:{currentHash:t.currentTx}})],1),a("div",{staticClass:"column is-9 content"},[a("TxContent",{attrs:{currentHash:t.currentTx}})],1)])},Se=[],ye=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._m(0),a("GridView",{attrs:{elements:t.transactions,maximum:t.maximum},on:{item_clicked:function(e){t.lib_goToTx(e)}}})],1)},Ae=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tx-logo-container"},[a("div",{staticClass:"tx-logo"},[a("div",{staticClass:"tx-logo-bg"},[t._v("Tx")])])])}],Ee=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello txList",staticStyle:{height:"100%",width:"100%"}},t._l(t.elements,function(e){return a("div",[a("div",{staticClass:"item_container",on:{click:function(a){t.$emit("item_clicked",e.id)}}},[a("div",{class:{item:!0,selected:e.selected},style:t._f("computeSize")({},e.value,t.maximum)}),a("div",{staticClass:"tooltip-container"},[a("div",{staticClass:"tooltip"},[a("div",{staticClass:"arrow"}),a("div",{staticClass:"flex-box"},[a("div",{staticClass:"tx-number"},[t._v(t._s(e.id.substr(0,6)+"..."+e.id.substr(-6)))])])])])])])}))},Le=[],Ne={name:"GridList",props:{elements:Array,maximum:Number},watch:{metric:function(t,e){console.log(t,e)}},filters:{computeSize:function(t,e,a){return{width:"".concat(e/a*100,"%"),height:"".concat(e/a*100,"%")}}}},Oe=Ne,Ie=(a("440a"),Object(p["a"])(Oe,Ee,Le,!1,null,"1245496a",null));Ie.options.__file="GridView.vue";var je=Ie.exports,Pe={name:"TxSidebarNav",props:{currentHash:String},components:{GridView:je},data:function(){return{tx:{},blockNumber:-1,transactions:[],maximum:-1/0}},watch:{currentHash:function(){var t=Object(At["a"])(regeneratorRuntime.mark(function t(){var e,a;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:""!=this.currentHash&&(e=this,e.transactions=[],e.tx_uid=this.lib_UID(),a=e.tx_uid,e.lib_getTransaction(e.currentHash,!0,function(t,n){e.tx=n,e.blockNumber=n.blockNumber,e.maximum=-1/0,e.lib_getBlock(e.blockNumber,function(t,n){for(var i=0;i<n.transactions.length;i++)e.transactions.push({id:n.transactions[i],value:0,selected:n.transactions[i]==e.currentHash});for(i=0;i<n.transactions.length;i++)e.lib_getTransaction(n.transactions[i],!0,function(t,n){a==e.tx_uid&&(n.value_eth>e.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<e&&(t.lastBlock=e)},setLastBlockFull:function(t,e){t.lastBlockFull?t.lastBlockFull.number<e.number&&(t.lastBlockFull=e):t.lastBlockFull=e},setPeers:function(t,e){t.peers!==e&&(t.peers=e)},setNodeType:function(t,e){t.nodeType!==e&&(t.nodeType=e)}},actions:{},getters:{}});s["default"].config.productionTip=!1,s["default"].use(i.a),s["default"].use(r["a"]),s["default"].use(l["a"],{name:"Timeago",locale:"en"}),s["default"].mixin({methods:{lib_goHome:function(){this.$router.push({path:"/"})},lib_goToBlock:function(t){this.$router.push({path:"/block/".concat(t)})},lib_goToAccount:function(t){this.$router.push({path:"/account/".concat(t)})},lib_goToTx:function(t){this.$router.push({path:"/tx/".concat(t)})},lib_getBlock:function(t,e){if(t<0)e(null,null);else if(null==this.$store.state.blocks[t]){this.$store.commit("setPending",t);var a=this;this.$store.state.w3.eth.getBlock("".concat(t),!0,function(s,n){if(null!=n){a.$store.commit("setLastBlock",n.number);for(var i=0;i<n.transactions.length;i++)a.$store.commit("storeTransaction",a.lib_processTX(n.transactions[i])),n.transactions[i]=n.transactions[i].hash;a.$store.commit("storeBlock",n)}a.$store.commit("removePending",t),e(null,n)})}else this.$store.state.pendingQueries[t]?setTimeout(function(){a.lib_getBlock(t,e)},500):e(null,this.$store.state.blocks[t])},lib_getTransaction:function(t,e,a){e=e||!1;var s=this;if(null==s.$store.state.transactions[t])s.$store.commit("setPending",t),s.$store.state.w3.eth.getTransaction(t,function(n,i){n||null==i?(a(!0,null),s.$store.commit("removePending",t)):e?s.$store.state.w3.eth.getTransactionReceipt(t,function(e,n){i.receipt=n,s.$store.commit("storeTransaction",s.lib_processTX(i)),s.$store.commit("removePending",t),a(null,i)}):(s.$store.commit("storeTransaction",s.lib_processTX(i)),s.$store.commit("removePending",t),a(null,i))});else if(this.$store.state.pendingQueries[t])setTimeout(function(){s.lib_getTransaction(t,e,a)},500);else{var n=this.$store.state.transactions[t];null==n.receipt&&e?(this.$store.commit("setPending",t),this.$store.state.w3.eth.getTransactionReceipt(t,function(e,i){n.receipt=i,s.$store.commit("storeTransaction",s.lib_processTX(n)),s.$store.commit("removePending",t),a(null,n)})):a(null,n)}},lib_getAccount:function(t,e){var a=this;this.$store.state.w3.eth.getBalance(t,function(s,n){s?e(s,null):a.$store.state.w3.eth.getCode(t,function(t,s){t?e(t,null):e(null,{balance:n,balance_eth:parseFloat(a.$store.state.w3.fromWei(n)),code:s,isContract:"0x"!=s})})})},lib_processTX:function(t){return t.value_eth=parseFloat(this.$store.state.w3.fromWei(t.value)),null!=t.receipt&&(t.gas_used_percent=t.receipt.gasUsed/t.gas*100),t},lib_UID:function(){return o()()},lib_monitorLastBlock:function(){var t=this,e=this;this.$store.state.w3.eth.getBlockNumber(function(a,s){a||(e.$store.commit("setLastBlock",s),t.$store.state.w3.eth.getBlock(s,!1,function(t,a){t||e.$store.commit("setLastBlockFull",a)})),t.$store.state.w3.net.getPeerCount(function(t,a){t||e.$store.commit("setPeers",a)}),t.$store.state.w3.version.getNode(function(t,a){t||e.$store.commit("setNodeType",a)}),setTimeout(e.lib_monitorLastBlock,6e3)})},lib_guessInputType:function(t){if(null==t)return{type:"none",value:t};if(t=t.replace(/0[xX][^A-Z0-9]+/gi,""),t=t.toLowerCase(),""+parseInt(t)===t&&!t.startsWith("0x"))return{type:"block",value:parseInt(t)};t.startsWith("0x")||(t="0x"+t);var e=/[0-9A-Fa-f]/g;return e.test(t)?42===t.length?{type:"account",value:t}:66===t.length?{type:"bkOrTx",value:t}:{type:"none",value:t}:{type:"none",value:t}},lib_processSearch:function(t){var e=this,a=this.lib_guessInputType(t);"bkOrTx"===a.type?this.$store.state.w3.eth.getBlock(a.value,!1,function(t,s){t||(s&&s.number?e.lib_goToBlock(s.number):e.lib_goToTx(a.value))}):"block"===a.type?this.lib_goToBlock(a.value):"account"===a.type?this.lib_goToAccount(a.value):this.$router.push({path:"/404"})},lib_openSearch:function(){var t=this;this.$dialog.prompt({message:"Enter a block number, transaction hash or address.",inputAttrs:{placeholder:"e.g. 0x45434...",maxlength:100},confirmText:"Search",onConfirm:function(e){return t.lib_processSearch(e)}})}}}),new s["default"]({router:fa,store:Ta,render:function(t){return t(N)}}).$mount("#app")},"5cc4":function(t,e,a){"use strict";var s=a("6de2"),n=a.n(s);n.a},"5e49":function(t,e,a){},"6a47":function(t,e,a){"use strict";var s=a("7140"),n=a.n(s);n.a},"6bc8":function(t,e,a){},"6de2":function(t,e,a){},7068:function(t,e,a){"use strict";var s=a("37c8"),n=a.n(s);n.a},7140:function(t,e,a){},7622:function(t,e,a){"use strict";var s=a("44dd"),n=a.n(s);n.a},8635:function(t,e,a){},9833:function(t,e,a){},a44f:function(t,e,a){},b495:function(t,e,a){},b745:function(t,e,a){},ba34:function(t,e,a){"use strict";var s=a("18d9"),n=a.n(s);n.a},bdc6:function(t,e,a){},bf67:function(t,e,a){"use strict";var s=a("5e49"),n=a.n(s);n.a},c21b:function(t,e,a){},c225:function(t,e,a){"use strict";var s=a("ea01"),n=a.n(s);n.a},c958:function(t,e,a){},d10f:function(t,e,a){"use strict";var s=a("bdc6"),n=a.n(s);n.a},d5ba:function(t,e,a){"use strict";var s=a("8635"),n=a.n(s);n.a},e3d0:function(t,e,a){"use strict";var s=a("a44f"),n=a.n(s);n.a},ea01:function(t,e,a){},ec08:function(t,e,a){},f73e:function(t,e,a){},f90f:function(t,e,a){"use strict";var s=a("6bc8"),n=a.n(s);n.a}});
//# sourceMappingURL=app.769a0f91.js.map