require=functiont(e,n,r){functiono(i,u){if(!n[i]){if(!e[i]){vars="function"==typeofrequire&&require;if(!u&&s)returns(i,!0);if(a)returna(i,!0);varc=newError("Cannot find module '"+i+"'");throwc.code="MODULE_NOT_FOUND",c}varf=n[i]={exports:{}};e[i][0].call(f.exports,function(t){varn=e[i][1][t];returno(n?n:t)},f,f.exports,t,e,n,r)}returnn[i].exports}for(vara="function"==typeofrequire&&require,i=0;i<r.length;i++)o(r[i]);returno}({1:[function(t,e){varn=t("./web3"),r=t("./utils"),o=t("./types"),a=t("./const"),i=t("./formatters"),u=function(t){console.error("parser does not support type: "+t)},s=function(t){return"[]"===t.slice(-2)},c=function(t,e){returns(t)||"string"===t?i.formatInputInt(e.length):""},f=o.inputTypes(),l=function(t,e){varn="",r="",o="";returnt.forEach(function(t,r){n+=c(t.type,e[r])}),t.forEach(function(n,a){for(vari=!1,c=0;c<f.length&&!i;c++)i=f[c].type(t[a].type,e[a]);i||u(t[a].type);varl=f[c-1].format;s(t[a].type)?o+=e[a].reduce(function(t,e){returnt+l(e)},""):r+=l(e[a])}),n+=r+o},p=function(t){returns(t)||"string"===t?2*a.ETH_PADDING:0},m=o.outputTypes(),d=function(t,e){e=e.slice(2);varn=[],r=2*a.ETH_PADDING,c=t.reduce(function(t,e){returnt+p(e.type)},0),f=e.slice(0,c);returne=e.slice(c),t.forEach(function(a,c){for(varl=!1,p=0;p<m.length&&!l;p++)l=m[p].type(t[c].type);l||u(t[c].type);vard=m[p-1].format;if(s(t[c].type)){varh=i.formatOutputUInt(f.slice(0,r));f=f.slice(r);for(varg=[],y=0;h>y;y++)g.push(d(e.slice(0,r))),e=e.slice(r);n.push(g)}elseo.prefixedType("string")(t[c].type)?(f=f.slice(r),n.push(d(e.slice(0,r))),e=e.slice(r)):(n.push(d(e.slice(0,r))),e=e.slice(r))}),n},h=function(t){vare={};returnt.forEach(function(t){varn=r.extractDisplayName(t.name),o=r.extractTypeName(t.name),a=function(){vare=Array.prototype.slice.call(arguments);returnl(t.inputs,e)};void0===e[n]&&(e[n]=a),e[n][o]=a}),e},g=function(t){vare={};returnt.forEach(function(t){varn=r.extractDisplayName(t.name),o=r.extractTypeName(t.name),a=function(e){returnd(t.outputs,e)};void0===e[n]&&(e[n]=a),e[n][o]=a}),e},y=function(t){returnn.sha3(n.fromAscii(t)).slice(0,2+2*a.ETH_SIGNATURE_LENGTH)},v=function(t){returnn.sha3(n.fromAscii(t))};e.exports={inputParser:h,outputParser:g,formatInput:l,formatOutput:d,signatureFromAscii:y,eventSignatureFromAscii:v}},{"./const":2,"./formatters":8,"./types":14,"./utils":15,"./web3":17}],2:[function(t,e){varn=["wei","Kwei","Mwei","Gwei","szabo","finney","ether","grand","Mether","Gether","Tether","Pether","Eether","Zether","Yether","Nether","Dether","Vether","Uether"];e.exports={ETH_PADDING:32,ETH_SIGNATURE_LENGTH:4,ETH_UNITS:n,ETH_BIGNUMBER_ROUNDING_MODE:{ROUNDING_MODE:BigNumber.ROUND_DOWN},ETH_POLLING_TIMEOUT:1e3}},{}],3:[function(t,e){functionn(t,e){t.forEach(function(t){if(-1===t.name.indexOf("(")){vare=t.name,n=t.inputs.map(function(t){returnt.type}).join();t.name=e+"("+n+")"}});varn={};returns(n),c(n,t,e),f(n,t,e),l(n,t,e),n}varr=t("./web3"),o=t("./abi"),a=t("./utils"),i=t("./event"),u=function(t){r._currentContractAbi=t.abi,r._currentContractAddress=t.address,r._currentContractMethodName=t.method,r._currentContractMethodParams=t.params},s=function(t){t.call=function(e){returnt._isTransaction=!1,t._options=e,t},t.sendTransaction=function(e){returnt._isTransaction=!0,t._options=e,t},t.transact=function(e){returnconsole.warn("myContract.transact() is deprecated please use myContract.sendTransaction() instead."),t.sendTransaction(e)},t._options={},["gas","gasPrice","value","from"].forEach(function(e){t[e]=function(n){returnt._options[e]=n,t}})},c=function(t,e,n){vari=o.inputParser(e),s=o.outputParser(e);a.filterFunctions(e).forEach(function(c){varf=a.extractDisplayName(c.name),l=a.extractTypeName(c.name),p=function(){vara=Array.prototype.slice.call(arguments),p=o.signatureFromAscii(c.name),m=i[f][l].apply(null,a),d=t._options||{};d.to=n,d.data=p+m;varh=t._isTransaction===!0||t._isTransaction!==!1&&!c.constant,g=d.collapse!==!1;if(t._options={},t._isTransaction=null,h)returnu({abi:e,address:n,method:c.name,params:a}),voidr.eth.sendTransaction(d);va