Chore: refactor generic wallet and wallet plugins

This commit is contained in:
csrapr 2021-03-16 18:41:44 +00:00 committed by Josh Harvey
parent d2b7224c73
commit b6d91f94bf
11 changed files with 110 additions and 87 deletions

View file

@ -259,7 +259,7 @@ function plugins (settings, deviceId) {
}
function sendCoins (tx) {
return wallet.sendCoins(settings, tx.toAddress, tx.cryptoAtoms, tx.cryptoCode)
return wallet.sendCoins(settings, tx)
}
function recordPing (deviceTime, version, model) {
@ -279,7 +279,7 @@ function plugins (settings, deviceId) {
}
function isHd (tx) {
return wallet.isHd(settings, tx.cryptoCode)
return wallet.isHd(settings, tx)
}
function getStatus (tx) {
@ -295,7 +295,7 @@ function plugins (settings, deviceId) {
cryptoAtoms: tx.cryptoAtoms,
isLightning: tx.isLightning
}
return wallet.newAddress(settings, info)
return wallet.newAddress(settings, info, tx)
}
function dispenseAck (tx) {