feat: add mock wallet scoring
This commit is contained in:
parent
b0fa62a9f3
commit
584492cb55
6 changed files with 76 additions and 6 deletions
15
lib/plugins/wallet-scoring/mock-scoring/mock-scoring.js
Normal file
15
lib/plugins/wallet-scoring/mock-scoring/mock-scoring.js
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue