2015-06-30 13:01:30 +02:00
require = function t ( e , n , r ) { function i ( a , s ) { if ( ! n [ a ] ) { if ( ! e [ a ] ) { var u = "function" == typeof require && require ; if ( ! s && u ) return u ( a , ! 0 ) ; if ( o ) return o ( a , ! 0 ) ; var c = new Error ( "Cannot find module '" + a + "'" ) ; throw c . code = "MODULE_NOT_FOUND" , c } var l = n [ a ] = { exports : { } } ; e [ a ] [ 0 ] . call ( l . exports , function ( t ) { var n = e [ a ] [ 1 ] [ t ] ; return i ( n ? n : t ) } , l , l . exports , t , e , n , r ) } return n [ a ] . exports } for ( var o = "function" == typeof require && require , a = 0 ; a < r . length ; a ++ ) i ( r [ a ] ) ; return i } ( { 1 : [ function ( t , e , n ) { var r = t ( "bignumber.js" ) , i = t ( "../utils/utils" ) , o = t ( "./formatters" ) , a = t ( "./param" ) , s = function ( t ) { return "[]" === t . slice ( - 2 ) } , u = function ( t ) { this . _name = t . name , this . _match = t . match , this . _mode = t . mode , this . _inputFormatter = t . inputFormatter , this . _outputFormatter = t . outputFormatter } ; u . prototype . isType = function ( t ) { return "strict" === this . _match ? this . _name === t || 0 === t . indexOf ( this . _name ) && "[]" === t . slice ( this . _name . length ) : "prefix" === this . _match ? 0 === t . indexOf ( this . _name ) : void 0 } , u . prototype . formatInput = function ( t , e ) { if ( i . isArray ( t ) && e ) { var n = this ; return t . map ( function ( t ) { return n . _inputFormatter ( t ) } ) . reduce ( function ( t , e ) { return t . combine ( e ) } , o . formatInputInt ( t . length ) ) . withOffset ( 32 ) } return this . _inputFormatter ( t ) } , u . prototype . formatOutput = function ( t , e ) { if ( e ) { for ( var n = [ ] , i = new r ( t . dynamicPart ( ) . slice ( 0 , 64 ) , 16 ) , o = 0 ; 64 * i > o ; o += 64 ) n . push ( this . _outputFormatter ( new a ( t . dynamicPart ( ) . substr ( o + 64 , 64 ) ) ) ) ; return n } return this . _outputFormatter ( t ) } , u . prototype . sliceParam = function ( t , e , n ) { return "bytes" === this . _mode ? a . decodeBytes ( t , e ) : s ( n ) ? a . decodeArray ( t , e ) : a . decodeParam ( t , e ) } ; var c = function ( t ) { this . _types = t } ; c . prototype . _requireType = function ( t ) { var e = this . _types . filter ( function ( e ) { return e . isType ( t ) } ) [ 0 ] ; if ( ! e ) throw Error ( "invalid solidity type!: " + t ) ; return e } , c . prototype . _formatInput = function ( t , e ) { return this . _requireType ( t ) . formatInput ( e , s ( t ) ) } , c . prototype . encodeParam = function ( t , e ) { return this . _formatInput ( t , e ) . encode ( ) } , c . prototype . encodeParams = function ( t , e ) { var n = this , r = t . map ( function ( t , r ) { return n . _formatInput ( t , e [ r ] ) } ) ; return a . encodeList ( r ) } , c . prototype . decodeParam = function ( t , e ) { return this . decodeParams ( [ t ] , e ) [ 0 ] } , c . prototype . decodeParams = function ( t , e ) { var n = this ; return t . map ( function ( t , r ) { var i = n . _requireType ( t ) , o = i . sliceParam ( e , r , t ) ; return i . formatOutput ( o , s ( t ) ) } ) } ; var l = new c ( [ new u ( { name : "address" , match : "strict" , mode : "value" , inputFormatter : o . formatInputInt , outputFormatter : o . formatOutputAddress } ) , new u ( { name : "bool" , match : "strict" , mode : "value" , inputFormatter : o . formatInputBool , outputFormatter : o . formatOutputBool } ) , new u ( { name : "int" , match : "prefix" , mode : "value" , inputFormatter : o . formatInputInt , outputFormatter : o . formatOutputInt } ) , new u ( { name : "uint" , match : "prefix" , mode : "value" , inputFormatter : o . formatInputInt , outputFormatter : o . formatOutputUInt } ) , new u ( { name : "bytes" , match : "strict" , mode : "bytes" , inputFormatter : o . formatInputDynamicBytes , outputFormatter : o . formatOutputDynamicBytes } ) , new u ( { name : "bytes" , match : "prefix" , mode : "value" , inputFormatter : o . formatInputBytes , outputFormatter : o . formatOutputBytes } ) , new u ( { name : "string" , match : "strict" , mode : "bytes" , inputFormatter : o . formatInputString , outputFormatter : o . formatOutputString } ) , new u ( { name : "real" , match : "prefix" , mode : "value" , inputFormatter : o . formatInputReal , outputFormatter : o . formatOutputReal } ) , new u ( { name : "ureal" , match : "prefix" , mode : "value" , inputFormatter : o . formatInputReal , outputFormatter : o . formatOutputUReal } ) ] ) ; e . exports = l } , { "../utils/utils" : 7 , "./formatters" : 2 , "./param" : 3 , "bignumber.js" : "bignumber.js" } ] , 2 : [ function ( t , e , n ) { var r = t ( "bignumber.js" ) , i = t ( "../utils/utils" ) , o = t ( "../utils/config" ) , a = t ( "./param" ) , s = function ( t ) { var e = 2 * o . ETH _PADDING ; r . config ( o . ETH _BIGNUMBER _ROUNDING _MODE ) ; var n = i . padLeft ( i . toTwosComplement ( t ) . round ( ) . toString ( 16 ) , e ) ; return new a ( n ) } , u = function ( t ) { var e = i . padRight ( i . toHex ( t ) . substr ( 2 ) , 64 ) ; return new a ( e ) } , c = function ( t ) { t = i . toHex ( t ) . substr ( 2 ) ; var e = Math . floor ( ( t . length + 63 ) / 64 ) , n = i . padRight ( t , 64 * e ) , r = Math . floor ( t . length / 2 ) ; return new a ( s ( r ) . value + n , 32 ) } , l = function ( t ) { var e = i . fromAscii ( t ) . substr ( 2 ) , n = Math . floor ( ( e . length + 63 ) / 64 ) ; return e = i . padRight ( e , 64 * n ) , new a ( s ( t . length ) . value + e , 32 ) } , f = function ( t ) { var e = " 00000000000000000000000000000
method : t , params : e || [ ] , id : this . messageId ++ } } , r . prototype . isValidResponse = function ( t ) { return ! ! t && ! t . error && "2.0" === t . jsonrpc && "number" == typeof t . id && void 0 !== t . result } , r . prototype . toBatchPayload = function ( t ) { var e = this ; return t . map ( function ( t ) { return e . toPayload ( t . method , t . params ) } ) } , e . exports = r } , { } ] , 23 : [ function ( t , e , n ) { var r = t ( "./requestmanager" ) , i = t ( "../utils/utils" ) , o = t ( "./errors" ) , a = function ( t ) { this . name = t . name , this . call = t . call , this . params = t . params || 0 , this . inputFormatter = t . inputFormatter , this . outputFormatter = t . outputFormatter } ; a . prototype . getCall = function ( t ) { return i . isFunction ( this . call ) ? this . call ( t ) : this . call } , a . prototype . extractCallback = function ( t ) { return i . isFunction ( t [ t . length - 1 ] ) ? t . pop ( ) : void 0 } , a . prototype . validateArgs = function ( t ) { if ( t . length !== this . params ) throw o . InvalidNumberOfParams ( ) } , a . prototype . formatInput = function ( t ) { return this . inputFormatter ? this . inputFormatter . map ( function ( e , n ) { return e ? e ( t [ n ] ) : t [ n ] } ) : t } , a . prototype . formatOutput = function ( t ) { return this . outputFormatter && null !== t ? this . outputFormatter ( t ) : t } , a . prototype . attachToObject = function ( t ) { var e = this . send . bind ( this ) ; e . request = this . request . bind ( this ) , e . call = this . call ; var n = this . name . split ( "." ) ; n . length > 1 ? ( t [ n [ 0 ] ] = t [ n [ 0 ] ] || { } , t [ n [ 0 ] ] [ n [ 1 ] ] = e ) : t [ n [ 0 ] ] = e } , a . prototype . toPayload = function ( t ) { var e = this . getCall ( t ) , n = this . extractCallback ( t ) , r = this . formatInput ( t ) ; return this . validateArgs ( r ) , { method : e , params : r , callback : n } } , a . prototype . request = function ( ) { var t = this . toPayload ( Array . prototype . slice . call ( arguments ) ) ; return t . format = this . formatOutput . bind ( this ) , t } , a . prototype . send = function ( ) { var t = this . toPayload ( Array . prototype . slice . call ( arguments ) ) ; if ( t . callback ) { var e = this ; return r . getInstance ( ) . sendAsync ( t , function ( n , r ) { t . callback ( n , e . formatOutput ( r ) ) } ) } return this . formatOutput ( r . getInstance ( ) . send ( t ) ) } , e . exports = a } , { "../utils/utils" : 7 , "./errors" : 14 , "./requestmanager" : 28 } ] , 24 : [ function ( t , e , n ) { var r = t ( "./contract" ) , i = "0xc6d9d2cd449a754c494264e1809c50e34d64562b" , o = [ { constant : ! 0 , inputs : [ { name : "_owner" , type : "address" } ] , name : "name" , outputs : [ { name : "o_name" , type : "bytes32" } ] , type : "function" } , { constant : ! 0 , inputs : [ { name : "_name" , type : "bytes32" } ] , name : "owner" , outputs : [ { name : "" , type : "address" } ] , type : "function" } , { constant : ! 0 , inputs : [ { name : "_name" , type : "bytes32" } ] , name : "content" , outputs : [ { name : "" , type : "bytes32" } ] , type : "function" } , { constant : ! 0 , inputs : [ { name : "_name" , type : "bytes32" } ] , name : "addr" , outputs : [ { name : "" , type : "address" } ] , type : "function" } , { constant : ! 1 , inputs : [ { name : "_name" , type : "bytes32" } ] , name : "reserve" , outputs : [ ] , type : "function" } , { constant : ! 0 , inputs : [ { name : "_name" , type : "bytes32" } ] , name : "subRegistrar" , outputs : [ { name : "o_subRegistrar" , type : "address" } ] , type : "function" } , { constant : ! 1 , inputs : [ { name : "_name" , type : "bytes32" } , { name : "_newOwner" , type : "address" } ] , name : "transfer" , outputs : [ ] , type : "function" } , { constant : ! 1 , inputs : [ { name : "_name" , type : "bytes32" } , { name : "_registrar" , type : "address" } ] , name : "setSubRegistrar" , outputs : [ ] , type : "function" } , { constant : ! 1 , inputs : [ ] , name : "Registrar" , outputs : [ ] , type : "function" } , { constant : ! 1 , inputs : [ { name : "_name" , type : "bytes32" } , { name : "_a" , type : "address" } , { name : "_primary" , type : "bool" } ] , name : "setAddress" , outputs : [ ] , type : "function" } , { constant : ! 1 , inputs : [ { name : "_name" , type : "bytes32" } , { name : "_content" , type : "bytes32" } ] , name : "setContent" , outputs : [ ] , type : "function" } , { constant : ! 1 , inputs : [ { name : "_name" , type : "bytes32" } ] , name : "disown" , outputs : [ ] , type : "function" } , { constant : ! 0 , inputs : [ { name : "_name" , type : "bytes32" } ] , name : "register" , outputs : [ { name : "" , type : "address" } ] , type : "function" } , { anonymous : ! 1 , inputs : [ { indexed : ! 0 , name : "name" , type : "bytes32" } ] , name : "Changed" , type : "event" } , { anonymous : ! 1 , inputs : [ { indexed : ! 0 , name : "name" , type : "bytes32" } , { indexed : ! 0 , name : "addr" , type : "address" } ] , name : "PrimaryChanged" , type : "event" } ] ; e . exports = r ( o ) . at ( i ) } , { "./contract" : 12 } ] , 25 : [ function ( t , e , n ) { var r = t ( "../utils/utils" ) , i = t ( "./property" ) , o = [ ] , a = [ new i ( { name : "listening" , getter : "net_listening" } ) , new i ( { name : "peerCount" , getter : "net_peerCount" , outputFormatter : r . toDecimal } ) ] ; e . exports = { methods : o , properties : a } } , { "../utils/utils" : 7 , "./property" : 26 } ] , 26 : [ function ( t , e , n ) { var r = t ( "./requestmanager" ) , i
if ( n = i && ! i [ 0 ] , r = o && ! o [ 0 ] , n || r ) return n ? r ? 0 : - s : a ; if ( a != s ) return a ; if ( n = 0 > a , r = u == c , ! i || ! o ) return r ? 0 : ! i ^ n ? 1 : - 1 ; if ( ! r ) return u > c ^ n ? 1 : - 1 ; for ( s = ( u = i . length ) < ( c = o . length ) ? u : c , a = 0 ; s > a ; a ++ ) if ( i [ a ] != o [ a ] ) return i [ a ] > o [ a ] ^ n ? 1 : - 1 ; return u == c ? 0 : u > c ^ n ? 1 : - 1 } function s ( t , e , n ) { return ( t = p ( t ) ) >= e && n >= t } function u ( t ) { return "[object Array]" == Object . prototype . toString . call ( t ) } function c ( t , e , n ) { for ( var r , i , o = [ 0 ] , a = 0 , s = t . length ; s > a ; ) { for ( i = o . length ; i -- ; o [ i ] *= e ) ; for ( o [ r = 0 ] += x . indexOf ( t . charAt ( a ++ ) ) ; r < o . length ; r ++ ) o [ r ] > n - 1 && ( null == o [ r + 1 ] && ( o [ r + 1 ] = 0 ) , o [ r + 1 ] += o [ r ] / n | 0 , o [ r ] %= n ) } return o . reverse ( ) } function l ( t , e ) { return ( t . length > 1 ? t . charAt ( 0 ) + "." + t . slice ( 1 ) : t ) + ( 0 > e ? "e" : "e+" ) + e } function f ( t , e ) { var n , r ; if ( 0 > e ) { for ( r = "0." ; ++ e ; r += "0" ) ; t = r + t } else if ( n = t . length , ++ e > n ) { for ( r = "0" , e -= n ; -- e ; r += "0" ) ; t += r } else n > e && ( t = t . slice ( 0 , e ) + "." + t . slice ( e ) ) ; return t } function p ( t ) { return t = parseFloat ( t ) , 0 > t ? y ( t ) : v ( t ) } var h , m , d , g = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i , y = Math . ceil , v = Math . floor , w = " not a boolean or binary digit" , b = "rounding mode" , _ = "number type has more than 15 significant digits" , x = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_" , F = 1e14 , I = 14 , B = 9007199254740991 , N = [ 1 , 10 , 100 , 1e3 , 1e4 , 1e5 , 1e6 , 1e7 , 1e8 , 1e9 , 1e10 , 1e11 , 1e12 , 1e13 ] , O = 1e7 , k = 1e9 ; if ( h = r ( ) , "function" == typeof define && define . amd ) define ( function ( ) { return h } ) ; else if ( "undefined" != typeof e && e . exports ) { if ( e . exports = h , ! m ) try { m = t ( "crypto" ) } catch ( A ) { } } else n . BigNumber = h } ( this ) } , { crypto : 32 } ] , web3 : [ function ( t , e , n ) { var r = t ( "./lib/web3" ) ; r . providers . HttpProvider = t ( "./lib/web3/httpprovider" ) , r . providers . QtSyncProvider = t ( "./lib/web3/qtsync" ) , r . eth . contract = t ( "./lib/web3/contract" ) , r . eth . namereg = t ( "./lib/web3/namereg" ) , r . eth . sendIBANTransaction = t ( "./lib/web3/transfer" ) , "undefined" != typeof window && "undefined" == typeof window . web3 && ( window . web3 = r ) , e . exports = r } , { "./lib/web3" : 9 , "./lib/web3/contract" : 12 , "./lib/web3/httpprovider" : 20 , "./lib/web3/namereg" : 24 , "./lib/web3/qtsync" : 27 , "./lib/web3/transfer" : 30 } ] } , { } , [ "web3" ] ) ;