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"),i=t("./types"),o=t("./const"),a=t("./formatters"),u=function(t){console.error("parser does not support type: "+t)},f=function(t){return"[]"===t.slice(-2)},s=function(t,e){returnf(t)||"string"===t?a.formatInputInt(e.length):""},c=i.inputTypes(),l=function(t,e){{varn="";2*o.ETH_PADDING}returnt.forEach(function(t,r){n+=s(t.type,e[r])}),t.forEach(function(r,i){for(varo=!1,a=0;a<c.length&&!o;a++)o=c[a].type(t[i].type,e[i]);o||u(t[i].type);vars=c[a-1].format,l="";l=f(t[i].type)?e[i].reduce(function(t,e){returnt+s(e)},""):s(e[i]),n+=l}),n},p=function(t){returnf(t)||"string"===t?2*o.ETH_PADDING:0},h=i.outputTypes(),m=function(t,e){e=e.slice(2);varn=[],r=2*o.ETH_PADDING,s=t.reduce(function(t,e){returnt+p(e.type)},0),c=e.slice(0,s);returne=e.slice(s),t.forEach(function(o,s){for(varl=!1,p=0;p<h.length&&!l;p++)l=h[p].type(t[s].type);l||u(t[s].type);varm=h[p-1].format;if(f(t[s].type)){vard=a.formatOutputUInt(c.slice(0,r));c=c.slice(r);for(varg=[],v=0;d>v;v++)g.push(m(e.slice(0,r))),e=e.slice(r);n.push(g)}elsei.prefixedType("string")(t[s].type)?(c=c.slice(r),n.push(m(e.slice(0,r))),e=e.slice(r)):(n.push(m(e.slice(0,r))),e=e.slice(r))}),n},d=function(t){vare={};returnt.forEach(function(t){varn=r.extractDisplayName(t.name),i=r.extractTypeName(t.name),o=function(){vare=Array.prototype.slice.call(arguments);returnl(t.inputs,e)};void0===e[n]&&(e[n]=o),e[n][i]=o}),e},g=function(t){vare={};returnt.forEach(function(t){varn=r.extractDisplayName(t.name),i=r.extractTypeName(t.name),o=function(e){returnm(t.outputs,e)};void0===e[n]&&(e[n]=o),e[n][i]=o}),e},v=function(t){returnn.sha3(n.fromAscii(t)).slice(0,2+2*o.ETH_SIGNATURE_LENGTH)},y=function(t){returnn.sha3(n.fromAscii(t))};e.exports={inputParser:d,outputParser:g,formatInput:l,formatOutput:m,signatureFromAscii:v,eventSignatureFromAscii:y}},{"./const":2,"./formatters":6,"./types":10,"./utils":11,"./web3":12}],2:[function(t,e){e.exports={ETH_PADDING:32,ETH_SIGNATURE_LENGTH:4,ETH_BIGNUMBER_ROUNDING_MODE:{ROUNDING_MODE:BigNumber.ROUND_DOWN}}},{}],3:[function(t,e){varn=t("./web3"),r=t("./abi"),i=t("./utils"),o=t("./event"),a=function(t){n._currentContractAbi=t.abi,n._currentContractAddress=t.address,n._currentContractMethodName=t.method,n._currentContractMethodParams=t.params},u=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}})},f=function(t,e,o){varu=r.inputParser(e),f=r.outputParser(e);i.filterFunctions(e).forEach(function(s){varc=i.extractDisplayName(s.name),l=i.extractTypeName(s.name),p=function(){vari=Array.prototype.slice.call(arguments),p=r.signatureFromAscii(s.name),h=u[c][l].apply(null,i),m=t._options||{};m.to=o,m.data=p+h;vard=t._isTransact===!0||t._isTransact!==!1&&!s.constant,g=m.collapse!==!1;if(t._options={},t._isTransact=null,d)returna({abi:e,address:o,method:s.name,params:i}),voidn.eth.transact(m);varv=n.eth.call(m),y=f[c][l](v);returng&&(1===y.length?y=y[0]:0===y.length&&(y=null)),y};void0===t[c]&&(t[c]=p),t[c][l]=p})},s=function(t,e,n){t.address=n,Object.defineProperty(t,"topic",{get:function(){returni.filterEvents(e).map(function(t){returnr.eventSignatureFromAscii(t.name)})}})},c=function(t,e,a){i.filterEvents(e).forEach(function(e){varu=function(){vart=Array.prototype.slice.call(arguments),i=r.eventSignatureFromAscii(e.name),u=o(a,i,e),f=u.apply(null,t);returnn.eth.watch(f)};u._isEvent=!0;varf=i.extractDisplayName(e.name),s=i.extractTypeName(e.name);void