2015-04-09 22:16:20 +00:00
|
|
|
var web3 = require('./lib/web3');
|
2015-03-08 17:18:52 +00:00
|
|
|
web3.providers.HttpProvider = require('./lib/web3/httpprovider');
|
|
|
|
web3.providers.QtSyncProvider = require('./lib/web3/qtsync');
|
|
|
|
web3.eth.contract = require('./lib/web3/contract');
|
2015-05-18 09:22:24 +00:00
|
|
|
web3.eth.namereg = require('./lib/web3/namereg');
|
2015-05-23 13:59:19 +00:00
|
|
|
web3.eth.sendIBANTransaction = require('./lib/web3/transfer');
|
2014-11-05 17:46:01 +00:00
|
|
|
|
2015-04-09 22:16:20 +00:00
|
|
|
// dont override global variable
|
|
|
|
if (typeof window !== 'undefined' && typeof window.web3 === 'undefined') {
|
|
|
|
window.web3 = web3;
|
|
|
|
}
|
2015-04-07 02:39:47 +00:00
|
|
|
|
2014-11-11 14:47:58 +00:00
|
|
|
module.exports = web3;
|
2015-04-09 22:16:20 +00:00
|
|
|
|