mirror of
https://github.com/Permissionless-Software-Foundation/x402-base-facilitator.git
synced 2026-09-21 16:52:01 -07:00
47 lines
600 B
JavaScript
47 lines
600 B
JavaScript
/*
|
|
Mocks for the Adapter library.
|
|
*/
|
|
|
|
const ipfs = {
|
|
ipfsAdapter: {
|
|
ipfs: {}
|
|
},
|
|
ipfsCoordAdapter: {
|
|
ipfsCoord: {}
|
|
}
|
|
}
|
|
|
|
const localdb = {
|
|
Users: class Users {
|
|
static findById () {}
|
|
static find () {}
|
|
static findOne () {
|
|
return {
|
|
validatePassword: localdb.validatePassword
|
|
}
|
|
}
|
|
|
|
async save () {
|
|
return {}
|
|
}
|
|
|
|
generateToken () {
|
|
return '123'
|
|
}
|
|
|
|
toJSON () {
|
|
return {}
|
|
}
|
|
|
|
async remove () {
|
|
return true
|
|
}
|
|
},
|
|
|
|
validatePassword: () => {
|
|
return true
|
|
}
|
|
}
|
|
|
|
module.exports = { ipfs, localdb }
|