Migrate plugins to lib directory
This commit is contained in:
parent
09b29bba56
commit
e7ab8223c2
27 changed files with 869 additions and 858 deletions
|
|
@ -6,6 +6,7 @@ const configManager = require('./config-manager')
|
|||
const pify = require('pify')
|
||||
const fs = pify(require('fs'))
|
||||
const options = require('./options')
|
||||
const ph = require('./plugin-helper')
|
||||
|
||||
const FETCH_INTERVAL = 5000
|
||||
const INSUFFICIENT_FUNDS_CODE = 570
|
||||
|
|
@ -29,8 +30,8 @@ function fetchWallet (settings, cryptoCode) {
|
|||
.then(hex => {
|
||||
const masterSeed = Buffer.from(hex.trim(), 'hex')
|
||||
const plugin = configManager.cryptoScoped(cryptoCode, settings.config).wallet
|
||||
const wallet = ph.load(ph.WALLET, plugin)
|
||||
const account = settings.accounts[plugin]
|
||||
const wallet = require('lamassu-' + plugin)
|
||||
|
||||
return {wallet, account: _.set('seed', computeSeed(masterSeed), account)}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue