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("./utils"),o=t("./types"),i=t("./formatters");BigNumber.config({ROUNDING_MODE:BigNumber.ROUND_DOWN});vara=32,u=4,f=function(t,e){returnr.findIndex(t,function(t){returnt.name===e})},s=function(t,e){varn=f(t,e);return-1===n?voidconsole.error("method "+e+" not found in the abi"):t[n]},c=function(t){returnt.filter(function(t){return"function"===t.type})},l=function(t){returnt.filter(function(t){return"event"===t.type})},p=function(t){return"[]"===t.slice(-2)},h=function(t,e){returnp(t)||"string"===t?i.formatInputInt(e.length):""},m=o.inputTypes(),d=function(t,e,n){varr="",o=s(t,e);returno.inputs.forEach(function(t,e){r+=h(t.type,n[e])}),o.inputs.forEach(function(t,e){for(vari=!1,a=0;a<m.length&&!i;a++)i=m[a].type(o.inputs[e].type,n[e]);i||console.error("input parser does not support type: "+o.inputs[e].type);varu=m[a-1].format,f="";f=p(o.inputs[e].type)?n[e].reduce(function(t,e){returnt+u(e)},""):u(n[e]),r+=f}),r},g=function(t){returnp(t)||"string"===t?2*a:0},v=o.outputTypes(),y=function(t,e,n){n=n.slice(2);varr=[],u=s(t,e),f=2*a,c=u.outputs.reduce(function(t,e){returnt+g(e.type)},0),l=n.slice(0,c);returnn=n.slice(c),u.outputs.forEach(function(t,e){for(vara=!1,s=0;s<v.length&&!a;s++)a=v[s].type(u.outputs[e].type);a||console.error("output parser does not support type: "+u.outputs[e].type);varc=v[s-1].format;if(p(u.outputs[e].type)){varh=i.formatOutputUInt(l.slice(0,f));l=l.slice(f);for(varm=[],d=0;h>d;d++)m.push(c(n.slice(0,f))),n=n.slice(f);r.push(m)}elseo.prefixedType("string")(u.outputs[e].type)?(l=l.slice(f),r.push(c(n.slice(0,f))),n=n.slice(f)):(r.push(c(n.slice(0,f))),n=n.slice(f))}),r},b=function(t){vare=t.indexOf("(");return-1!==e?t.substr(0,e):t},_=function(t){vare=t.indexOf("(");return-1!==e?t.substr(e+1,t.length-1-(e+1)):""},w=function(t){vare={};returnt.forEach(function(n){varr=b(n.name),o=_(n.name),i=function(){vare=Array.prototype.slice.call(arguments);returnd(t,n.name,e)};void0===e[r]&&(e[r]=i),e[r][o]=i}),e},N=function(t){vare={};returnt.forEach(function(n){varr=b(n.name),o=_(n.name),i=function(e){returny(t,n.name,e)};void0===e[r]&&(e[r]=i),e[r][o]=i}),e},O=function(t){returnn.sha3(n.fromAscii(t)).slice(0,2+2*u)};e.exports={inputParser:w,outputParser:N,methodSignature:O,methodDisplayName:b,methodTypeName:_,getMethodWithName:s,filterFunctions:c,filterEvents:l}},{"./formatters":5,"./types":9,"./utils":10,"./web3":11}],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.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=i[f][s].apply(null,c),h=t._options||{};h.to=o,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=o,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,i){r.filterEvents(e