publish: initial commit

generated from commit 8cc1ca4c36
This commit is contained in:
Joshua Seigler 2020-01-30 18:10:12 -05:00
parent a8932536b1
commit 034f3df71e
4 changed files with 4 additions and 4 deletions

View file

@ -104,4 +104,4 @@ var e=require("./url"),r=require("socket.io-parser"),o=require("./manager"),t=re
},{"./url":"ECAZ","socket.io-parser":"EDhw","./manager":"Di21","debug":"jcLW","./socket":"wT76"}],"Focm":[function(require,module,exports) {
window.addEventListener("load",function(){var t,e=document.querySelectorAll("div[data-dash-address-watch]"),n=[],a={};0!==e.length?(t=require("socket.io-client").connect("https://insight.dash.org:443/"),e.forEach(function(t){var e=t.getAttribute("data-dash-address-watch"),s=document.createElement("div");s.className="dash-address-watch-status",s.textContent="Loading...";var o=document.createElement("div");o.className="dash-address-watch-label",o.textContent=e;var c=document.createElement("div");c.className="dash-address-watch-log",t.appendChild(o),t.appendChild(s),t.appendChild(c),n.push(e),a[e]={container:t,label:o,status:s,log:c}}),t.on("connect",function(){Object.values(a).forEach(function(t){t.status.textContent="Watching..."}),t.emit("subscribe","inv")}),t.on("disconnect",function(){Object.values(a).forEach(function(t){t.status.textContent="Reconnecting..."})}),t.on("tx",function(t){n.forEach(function(e){var n=t.vout.reduce(function(t,n){return t+(Object.keys(n)[0]===e?Object.values(n)[0]:0)},0);if(n>0){var s=document.createElement("a");s.setAttribute("href","https://insight.dash.org/insight/tx/"+t.txid),s.textContent="Received "+n/1e8+" DASH",a[e].log.insertBefore(s,a[e].log.firstChild)}})})):console.log("No addresses to monitor.")});
},{"socket.io-client":"gT2G"}]},{},["Focm"], null)
//# sourceMappingURL=/index.js.map
//# sourceMappingURL=replacethiswithadot/index.js.map