web3.js/index.js

17 lines
491 B
JavaScript
Raw Normal View History

2015-04-09 22:16:20 +00:00
var web3 = require('./lib/web3');
2015-06-24 12:56:32 +00:00
2015-03-08 17:18:52 +00:00
web3.providers.HttpProvider = require('./lib/web3/httpprovider');
2015-06-24 12:56:32 +00:00
web3.providers.IpcProvider = require('./lib/web3/ipcprovider');
2015-03-08 17:18:52 +00:00
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