2015-04-09 22:16:20 +00:00
|
|
|
var web3 = require('./lib/web3');
|
2015-08-05 12:18:42 +00:00
|
|
|
var namereg = require('./lib/web3/namereg');
|
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');
|
2015-08-05 12:18:42 +00:00
|
|
|
web3.eth.namereg = namereg.namereg;
|
|
|
|
web3.eth.ibanNamereg = namereg.ibanNamereg;
|
2015-05-23 13:59:19 +00:00
|
|
|
web3.eth.sendIBANTransaction = require('./lib/web3/transfer');
|
2015-08-06 15:11:15 +00:00
|
|
|
web3.eth.iban = require('./lib/web3/iban');
|
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
|
|
|
|