add blockcypher [WIP]
This commit is contained in:
parent
b28c99aabb
commit
23458b6b56
10 changed files with 133 additions and 17 deletions
11
lib/plugins/zero-conf/mock-zero-conf/mock-zero-conf.js
Normal file
11
lib/plugins/zero-conf/mock-zero-conf/mock-zero-conf.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
module.exports = {authorize}
|
||||
|
||||
function authorize (account, toAddress, cryptoAtoms, cryptoCode) {
|
||||
return Promise.resolve()
|
||||
.then(() => {
|
||||
if (cryptoCode !== 'BTC') throw new Error('Unsupported crypto: ' + cryptoCode)
|
||||
|
||||
const authorizedValue = 1e5 * 10
|
||||
return cryptoAtoms.lte(authorizedValue)
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue