require=functiont(e,n,r){functiono(a,u){if(!n[a]){if(!e[a]){varf="function"==typeofrequire&&require;if(!u&&f)returnf(a,!0);if(i)returni(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];returno(n?n:t)},c,c.exports,t,e,n,r)}returnn[a].exports}for(vari="function"==typeofrequire&&require,a=0;a<r.length;a++)o(r[a]);returno}({1:[function(t,e){varn=t("./web3"),r=t("./formatters");BigNumber.config({ROUNDING_MODE:BigNumber.ROUND_DOWN});varo=32,i=4,a=function(t,e){for(varn=!1,r=0;r<t.length&&!n;r++)n=e(t[r]);returnn?r-1:-1},u=function(t,e){returna(t,function(t){returnt.name===e})},f=function(t,e){varn=u(t,e);return-1===n?voidconsole.error("method "+e+" not found in the abi"):t[n]},s=function(t){returnt.filter(function(t){return"function"===t.type})},c=function(t){returnt.filter(function(t){return"event"===t.type})},l=function(t){returnfunction(e){return0===e.indexOf(t)}},p=function(t){returnfunction(e){returnt===e}},h=function(t){return"[]"===t.slice(-2)},m=function(t,e){returnh(t)||"string"===t?r.formatInputInt(e.length):""},d=function(){return[{type:l("uint"),format:r.formatInputInt},{type:l("int"),format:r.formatInputInt},{type:l("hash"),format:r.formatInputInt},{type:l("string"),format:r.formatInputString},{type:l("real"),format:r.formatInputReal},{type:l("ureal"),format:r.formatInputReal},{type:p("address"),format:r.formatInputInt},{type:p("bool"),format:r.formatInputBool}]},g=d(),v=function(t,e,n){varr="",o=f(t,e);returno.inputs.forEach(function(t,e){r+=m(t.type,n[e])}),o.inputs.forEach(function(t,e){for(vari=!1,a=0;a<g.length&&!i;a++)i=g[a].type(o.inputs[e].type,n[e]);i||console.error("input parser does not support type: "+o.inputs[e].type);varu=g[a-1].format,f="";f=h(o.inputs[e].type)?n[e].reduce(function(t,e){returnt+u(e)},""):u(n[e]),r+=f}),r},b=function(t){returnh(t)||"string"===t?2*o:0},y=function(){return[{type:l("uint"),format:r.formatOutputUInt},{type:l("int"),format:r.formatOutputInt},{type:l("hash"),format:r.formatOutputHash},{type:l("string"),format:r.formatOutputString},{type:l("real"),format:r.formatOutputReal},{type:l("ureal"),format:r.formatOutputUReal},{type:p("address"),format:r.formatOutputAddress},{type:p("bool"),format:r.formatOutputBool}]},_=y(),w=function(t,e,n){n=n.slice(2);vari=[],a=f(t,e),u=2*o,s=a.outputs.reduce(function(t,e){returnt+b(e.type)},0),c=n.slice(0,s);returnn=n.slice(s),a.outputs.forEach(function(t,e){for(varo=!1,f=0;f<_.length&&!o;f++)o=_[f].type(a.outputs[e].type);o||console.error("output parser does not support type: "+a.outputs[e].type);vars=_[f-1].format;if(h(a.outputs[e].type)){varp=r.formatOutputUInt(c.slice(0,u));c=c.slice(u);for(varm=[],d=0;p>d;d++)m.push(s(n.slice(0,u))),n=n.slice(u);i.push(m)}elsel("string")(a.outputs[e].type)?(c=c.slice(u),i.push(s(n.slice(0,u))),n=n.slice(u)):(i.push(s(n.slice(0,u))),n=n.slice(u))}),i},N=function(t){vare=t.indexOf("(");return-1!==e?t.substr(0,e):t},O=function(t){vare=t.indexOf("(");return-1!==e?t.substr(e+1,t.length-1-(e+1)):""},x=function(t){vare={};returns(t).forEach(function(n){varr=N(n.name),o=O(n.name),i=function(){vare=Array.prototype.slice.call(arguments);returnv(t,n.name,e)};void0===e[r]&&(e[r]=i),e[r][o]=i}),e},B=function(t){vare={};returns(t).forEach(function(n){varr=N(n.name),o=O(n.name),i=function(e){returnw(t,n.name,e)};void0===e[r]&&(e[r]=i),e[r][o]=i}),e},I=function(t){returnn.sha3(n.fromAscii(t)).slice(0,2+2*i)};e.exports={inputParser:x,outputParser:B,methodSignature:I,methodDisplayName:N,methodTypeName:O,getMethodWithName:f,filterFunctions:s,filterEvents:c}},{"./formatters":5,"./web3":9}],2:[function(t,e){varn=t("./web3"),r=t("./abi"),o=t("./event"),i=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,o){vari=r.inputParser(e),a=r.outputParser(e);r.fi