this.responseCallbacks={},this.path=e,n=n||t("net"),this.connection=n.connect({path:this.path}),this.connection.on("error",function(t){console.error("IPC Connection error",t),i._timeout()}),this.connection.on("end",function(t){console.error("IPC Connection ended",t),i._timeout()}),this.connection.on("data",function(t){t=t.toString();try{t=JSON.parse(t)}catch(e){throwo.InvalidResponse(t)}varn;r.isArray(t)?t.forEach(function(t){i.responseCallbacks[t.id]&&(n=t.id)}):n=t.id,i.responseCallbacks[n]&&(i.responseCallbacks[n](null,t),deletei.responseCallbacks[n])})};a.prototype._getResponse=function(t,e){varn=t.id||t[0].id,r=t.method||t[0].method;this.responseCallbacks[n]=e,this.responseCallbacks[n].method=r},a.prototype._timeout=function(){for(keyinthis.responseCallbacks)this.responseCallback.hasOwnProperty(key)&&this.responseCallbacks[key](i.replace("__id__",key).replace("__method__",this.responseCallbacks[key].method))},a.prototype.isConnected=function(){returnthis.connection.writable||this.connection.connect({path:this.path}),!!this.connection.writable},a.prototype.send=function(t){if(this.connection.writeSync){this.connection.writable||this.connection.connect({path:this.path});vare=this.connection.writeSync(JSON.stringify(t));try{e=JSON.parse(e)}catch(n){throwo.InvalidResponse(e)}returne}thrownewError('You tried to send "'+t.method+'" synchronously. Synchronous requests are not supported by the IPC provider.')},a.prototype.sendAsync=function(t,e){this.connection.writable||this.connection.connect({path:this.path}),this.connection.write(JSON.stringify(t)),this._getResponse(t,e)},e.exports=a},{"../utils/utils":7,"./errors":14,net:33}],23:[function(t,e,n){varr=function(){returnarguments.callee._singletonInstance?arguments.callee._singletonInstance:(arguments.callee._singletonInstance=this,void(this.messageId=1))};r.getInstance=function(){vart=newr;returnt},r.prototype.toPayload=function(t,e){returnt||console.error("jsonrpc method should be specified!"),{jsonrpc:"2.0",method:t,params:e||[],id:this.messageId++}},r.prototype.isValidResponse=function(t){return!!t&&!t.error&&"2.0"===t.jsonrpc&&"number"==typeoft.id&&void0!==t.result},r.prototype.toBatchPayload=function(t){vare=this;returnt.map(function(t){returne.toPayload(t.method,t.params)})},e.exports=r},{}],24:[function(t,e,n){varr=t("./requestmanager"),o=t("../utils/utils"),i=t("./errors"),a=function(t){this.name=t.name,this.call=t.call,this.params=t.params||0,this.inputFormatter=t.inputFormatter,this.outputFormatter=t.outputFormatter};a.prototype.getCall=function(t){returno.isFunction(this.call)?this.call(t):this.call},a.prototype.extractCallback=function(t){returno.isFunction(t[t.length-1])?t.pop():void0},a.prototype.validateArgs=function(t){if(t.length!==this.params)throwi.InvalidNumberOfParams()},a.prototype.formatInput=function(t){returnthis.inputFormatter?this.inputFormatter.map(function(e,n){returne?e(t[n]):t[n]}):t},a.prototype.formatOutput=function(t){returnthis.outputFormatter&&null!==t?this.outputFormatter(t):t},a.prototype.attachToObject=function(t){vare=this.send.bind(this);e.request=this.request.bind(this),e.call=this.call;varn=this.name.split(".");n.length>1?(t[n[0]]=t[n[0]]||{},t[n[0]][n[1]]=e):t[n[0]]=e},a.prototype.toPayload=function(t){vare=this.getCall(t),n=this.extractCallback(t),r=this.formatInput(t);returnthis.validateArgs(r),{method:e,params:r,callback:n}},a.prototype.request=function(){vart=this.toPayload(Array.prototype.slice.call(arguments));returnt.format=this.formatOutput.bind(this),t},a.prototype.send=function(){vart=this.toPayload(Array.prototype.slice.call(arguments));if(t.callback){vare=this;returnr.getInstance().sendAsync(t,function(n,r){t.callback(n,e.formatOutput(r))})}returnthis.formatOutput(r.getInstance().send(t))},e.exports=a},{"../utils/utils":7,"./errors":14,"./requestmanager":29}],25:[function(t,e,n){varr=t("./contract"),o="0xc6d9d2cd449a754c494264e1809c50e34d64562b",i=[{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"name",outputs:[{name:"o_name",type:"bytes32"}],type:"function"},{con