feat: ciphertrace cashout flow
This commit is contained in:
parent
8a4046ebbe
commit
ae8c86a6a7
7 changed files with 153 additions and 7 deletions
|
|
@ -28,7 +28,27 @@ function isValidWalletScore (settings, score) {
|
|||
})
|
||||
}
|
||||
|
||||
function getTransactionHash (settings, cryptoCode, receivingAddress) {
|
||||
return Promise.resolve()
|
||||
.then(() => {
|
||||
const { plugin, account } = loadWalletScoring(settings)
|
||||
|
||||
return plugin.getTransactionHash(account, cryptoCode, receivingAddress)
|
||||
})
|
||||
}
|
||||
|
||||
function getInputAddresses (settings, cryptoCode, txHashes) {
|
||||
return Promise.resolve()
|
||||
.then(() => {
|
||||
const { plugin, account } = loadWalletScoring(settings)
|
||||
|
||||
return plugin.getInputAddresses(account, cryptoCode, txHashes)
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
rateWallet,
|
||||
isValidWalletScore
|
||||
isValidWalletScore,
|
||||
getTransactionHash,
|
||||
getInputAddresses
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue