web3.js/index.js

15 lines
487 B
JavaScript
Raw Normal View History

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.eth.namereg = require('./lib/web3/namereg');
2015-05-23 13:59:19 +00:00
web3.eth.sendIBANTransaction = require('./lib/web3/transfer');
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
module.exports = web3;
2015-04-09 22:16:20 +00:00