require=functiont(e,n,r){functioni(a,u){if(!n[a]){if(!e[a]){varf="function"==typeofrequire&&require;if(!u&&f)returnf(a,!0);if(o)returno(a,!0);vars=newError("Cannot find module '"+a+"'");throws.code="MODULE_NOT_FOUND",s}varc=n[a]={exports:{}};e[a][0].call(c.exports,function(t){varn=e[a][1][t];returni(n?n:t)},c,c.exports,t,e,n,r)}returnn[a].exports}for(varo="function"==typeofrequire&&require,a=0;a<r.length;a++)i(r[a]);returni}({1:[function(t,e){varn=t("./web3"),r=(t("./utils"),t("./types")),i=t("./formatters");BigNumber.config({ROUNDING_MODE:BigNumber.ROUND_DOWN});varo=32,a=4,u=function(t){returnt.filter(function(t){return"function"===t.type})},f=function(t){returnt.filter(function(t){return"event"===t.type})},s=function(t){return"[]"===t.slice(-2)},c=function(t,e){returns(t)||"string"===t?i.formatInputInt(e.length):""},l=r.inputTypes(),p=function(t,e){varn="";returnt.inputs.forEach(function(t,r){n+=c(t.type,e[r])}),t.inputs.forEach(function(r,i){for(varo=!1,a=0;a<l.length&&!o;a++)o=l[a].type(t.inputs[i].type,e[i]);o||console.error("input parser does not support type: "+t.inputs[i].type);varu=l[a-1].format,f="";f=s(t.inputs[i].type)?e[i].reduce(function(t,e){returnt+u(e)},""):u(e[i]),n+=f}),n},h=function(t){returns(t)||"string"===t?2*o:0},m=r.outputTypes(),d=function(t,e){e=e.slice(2);varn=[],a=2*o,u=t.outputs.reduce(function(t,e){returnt+h(e.type)},0),f=e.slice(0,u);returne=e.slice(u),t.outputs.forEach(function(o,u){for(varc=!1,l=0;l<m.length&&!c;l++)c=m[l].type(t.outputs[u].type);c||console.error("output parser does not support type: "+t.outputs[u].type);varp=m[l-1].format;if(s(t.outputs[u].type)){varh=i.formatOutputUInt(f.slice(0,a));f=f.slice(a);for(vard=[],g=0;h>g;g++)d.push(p(e.slice(0,a))),e=e.slice(a);n.push(d)}elser.prefixedType("string")(t.outputs[u].type)?(f=f.slice(a),n.push(p(e.slice(0,a))),e=e.slice(a)):(n.push(p(e.slice(0,a))),e=e.slice(a))}),n},g=function(t){vare=t.indexOf("(");return-1!==e?t.substr(0,e):t},v=function(t){vare=t.indexOf("(");return-1!==e?t.substr(e+1,t.length-1-(e+1)):""},y=function(t){vare={};returnt.forEach(function(t){varn=g(t.name),r=v(t.name),i=function(){vare=Array.prototype.slice.call(arguments);returnp(t,e)};void0===e[n]&&(e[n]=i),e[n][r]=i}),e},b=function(t){vare={};returnt.forEach(function(t){varn=g(t.name),r=v(t.name),i=function(e){returnd(t,e)};void0===e[n]&&(e[n]=i),e[n][r]=i}),e},_=function(t){returnn.sha3(n.fromAscii(t)).slice(0,2+2*a)};e.exports={inputParser:y,outputParser:b,methodSignature:_,methodDisplayName:g,methodTypeName:v,filterFunctions:u,filterEvents:f}},{"./formatters":5,"./types":9,"./utils":10,"./web3":11}],2:[function(t,e){varn=t("./web3"),r=t("./abi"),i=t("./event"),o=function(t){t.call=function(e){returnt._isTransact=!1,t._options=e,t},t.transact=function(e){returnt._isTransact=!0,t._options=e,t},t._options={},["gas","gasPrice","value","from"].forEach(function(e){t[e]=function(n){returnt._options[e]=n,t}})},a=function(t,e,i){varo=r.inputParser(e),a=r.outputParser(e);r.filterFunctions(e).forEach(function(u){varf=r.methodDisplayName(u.name),s=r.methodTypeName(u.name),c=function(){varc=Array.prototype.slice.call(arguments),l=r.methodSignature(u.name),p=o[f][s].apply(null,c),h=t._options||{};h.to=i,h.data=l+p;varm=t._isTransact===!0||t._isTransact!==!1&&!u.constant,d=h.collapse!==!1;if(t._options={},t._isTransact=null,m)returnn._currentContractAbi=e,n._currentContractAddress=i,n._currentContractMethodName=u.name,n._currentContractMethodParams=c,voidn.eth.transact(h);varg=n.eth.call(h),v=a[f][s](g);returnd&&(1===v.length?v=v[0]:0===v.length&&(v=null)),v};void0===t[f]&&(t[f]=c),t[f][s]=c})},u=function(t,e,n){t.address=n,Object.defineProperty(t,"topic",{get:function(){returnr.filterEvents(e).map(function(t){returnr.methodSignature(t.name)})}})},f=function(t,e,o){r.filterEvents(e).forEach(function(e){vara=function(){vart=Array.prototype.slice.call(arguments),a=r.methodSignature(e.name),u=i(o,a,e),f=u.apply(null,t);returnn.eth.watch(f)};a._isEvent=!0,a.address=o,Object.defineProperty(a,"topic",{get:func