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');
|
|
|
|
web3.abi = require('./lib/solidity/abi');
|
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
|
|
|
|