Merge pull request #833 from chaotixkilla/feat-mock-scoring-api

Add mock wallet scoring
This commit is contained in:
Rafael Taranto 2021-11-11 18:27:35 +00:00 committed by GitHub
commit 6352649e1d
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
}