add blockcypher [WIP]

This commit is contained in:
Josh Harvey 2017-05-20 18:08:09 +03:00
parent b28c99aabb
commit 23458b6b56
10 changed files with 133 additions and 17 deletions

View file

@ -231,7 +231,7 @@ function plugins (settings, deviceId) {
}
function getStatus (tx) {
return wallet.getStatus(settings, tx.toAddress, tx.cryptoAtoms, tx.cryptoCode)
return wallet.getStatus(settings, tx.toAddress, tx.cryptoAtoms, tx.cryptoCode, tx.fiat, deviceId)
}
function newAddress (tx) {
@ -471,6 +471,8 @@ function plugins (settings, deviceId) {
const config = configManager.machineScoped(_deviceId, settings.config)
const cryptoCodes = config.cryptoCurrencies
const fiatCode = config.fiatCurrency
console.log('DEBUG103: %j', cryptoCodes)
const fiatBalancePromises = cryptoCodes.map(c => fiatBalance(fiatCode, c))
return Promise.all(fiatBalancePromises)