feat: add mock wallet scoring

This commit is contained in:
Sérgio Salgado 2021-09-01 20:03:05 +01:00
parent b0fa62a9f3
commit 584492cb55
6 changed files with 76 additions and 6 deletions

View file

@ -0,0 +1,15 @@
const NAME = 'FakeScoring'
function rateWallet (account, address) {
return new Promise((resolve, _) => {
setTimeout(() => {
console.log('[WALLET-SCORING] DEBUG: Mock scoring rating wallet address %s', address)
return resolve({ address, rating: 5 })
}, 100)
})
}
module.exports = {
NAME,
rateWallet
}