commit
4272c85a66
@ -46,6 +46,13 @@ var fullTx = function(tx) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
t.valueOut = (valueOut.toFixed(8) / util.COIN);
|
t.valueOut = (valueOut.toFixed(8) / util.COIN);
|
||||||
|
try {
|
||||||
|
t.vout = tx.vout.map(function(o) {
|
||||||
|
var r = {};
|
||||||
|
r[o.scriptPubKey.addresses] = o.valueSat;
|
||||||
|
return r;
|
||||||
|
});
|
||||||
|
} catch (e) {};
|
||||||
return t;
|
return t;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
48
package.json
48
package.json
@ -7,32 +7,25 @@
|
|||||||
"email": "ryan@bitpay.com"
|
"email": "ryan@bitpay.com"
|
||||||
},
|
},
|
||||||
"repository": "git://github.com/bitpay/insight-api.git",
|
"repository": "git://github.com/bitpay/insight-api.git",
|
||||||
"contributors": [
|
"contributors": [{
|
||||||
{
|
"name": "Matias Alejo Garcia",
|
||||||
"name": "Matias Alejo Garcia",
|
"email": "ematiu@gmail.com"
|
||||||
"email": "ematiu@gmail.com"
|
}, {
|
||||||
},
|
"name": "Manuel Araoz",
|
||||||
{
|
"email": "manuelaraoz@gmail.com"
|
||||||
"name": "Manuel Araoz",
|
}, {
|
||||||
"email": "manuelaraoz@gmail.com"
|
"name": "Mario Colque",
|
||||||
},
|
"email": "colquemario@gmail.com"
|
||||||
{
|
}, {
|
||||||
"name": "Mario Colque",
|
"name": "Gustavo Cortez",
|
||||||
"email": "colquemario@gmail.com"
|
"email": "cmgustavo83@gmail.com"
|
||||||
},
|
}, {
|
||||||
{
|
"name": "Juan Ignacio Sosa Lopez",
|
||||||
"name": "Gustavo Cortez",
|
"email": "bechilandia@gmail.com"
|
||||||
"email": "cmgustavo83@gmail.com"
|
}, {
|
||||||
},
|
"name": "Ivan Socolsky",
|
||||||
{
|
"email": "jungans@gmail.com"
|
||||||
"name": "Juan Ignacio Sosa Lopez",
|
}],
|
||||||
"email": "bechilandia@gmail.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Ivan Socolsky",
|
|
||||||
"email": "jungans@gmail.com"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/bitpay/insight-api/issues"
|
"url": "https://github.com/bitpay/insight-api/issues"
|
||||||
},
|
},
|
||||||
@ -80,7 +73,8 @@
|
|||||||
"socket.io-client": "1.0.6",
|
"socket.io-client": "1.0.6",
|
||||||
"soop": "=0.1.5",
|
"soop": "=0.1.5",
|
||||||
"winston": "*",
|
"winston": "*",
|
||||||
"xmlhttprequest": "~1.6.0"
|
"xmlhttprequest": "~1.6.0",
|
||||||
|
"nodemailer-smtp-transport": "*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chai": "*",
|
"chai": "*",
|
||||||
|
|||||||
@ -1,9 +1,14 @@
|
|||||||
module.exports = {
|
var smtpTransport = require('nodemailer-smtp-transport');
|
||||||
email: {
|
|
||||||
service: 'Gmail',
|
// you can use Gmail or any other nodemailer transport
|
||||||
auth: {
|
var auth = {
|
||||||
user: '',
|
host: 'localhost',
|
||||||
pass: ''
|
port: 25,
|
||||||
}
|
ignoreTLS: true,
|
||||||
}
|
};
|
||||||
|
//
|
||||||
|
//
|
||||||
|
module.exports = {
|
||||||
|
confirmEmailHost: 'https://insight.bitpay.com',
|
||||||
|
email: smtpTransport(auth),
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user