From ca59c7a6c5dc171ecf146f7e4efeb9e773351db1 Mon Sep 17 00:00:00 2001 From: Neal Conner Date: Sat, 2 Mar 2019 08:44:47 -0500 Subject: [PATCH] Add Dash to BitGo wallet, remove Quadriga (#251) * Add Dash to BitGo, remove Quadriga * Update bitgo.js * Update bitgo.json --- lib/admin/config.js | 4 +--- lib/plugins/wallet/bitgo/bitgo.js | 2 +- schemas/bitgo.json | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/lib/admin/config.js b/lib/admin/config.js index fd189dce..45127b8a 100644 --- a/lib/admin/config.js +++ b/lib/admin/config.js @@ -180,7 +180,6 @@ function fetchData () { {code: 'bitstamp', display: 'Bitstamp', class: 'ticker', cryptos: ['BTC', 'ETH', 'LTC', 'BCH']}, {code: 'coinbase', display: 'Coinbase', class: 'ticker', cryptos: ['BTC', 'ETH', 'LTC', 'BCH']}, {code: 'itbit', display: 'itBit', class: 'ticker', cryptos: ['BTC']}, - {code: 'quadrigacx', display: 'QuadrigaCX', class: 'ticker', cryptos: ['BTC', 'ETH', 'LTC', 'BCH']}, {code: 'mock-ticker', display: 'Mock (Caution!)', class: 'ticker', cryptos: ALL_CRYPTOS}, {code: 'bitcoind', display: 'bitcoind', class: 'wallet', cryptos: ['BTC']}, {code: 'no-layer2', display: 'No Layer 2', class: 'layer2', cryptos: ALL_CRYPTOS}, @@ -190,11 +189,10 @@ function fetchData () { {code: 'litecoind', display: 'litecoind', class: 'wallet', cryptos: ['LTC']}, {code: 'dashd', display: 'dashd', class: 'wallet', cryptos: ['DASH']}, {code: 'bitcoincashd', display: 'bitcoincashd', class: 'wallet', cryptos: ['BCH']}, - {code: 'bitgo', display: 'BitGo', class: 'wallet', cryptos: ['BTC', 'ZEC', 'LTC', 'BCH']}, + {code: 'bitgo', display: 'BitGo', class: 'wallet', cryptos: ['BTC', 'ZEC', 'LTC', 'BCH', 'DASH']}, {code: 'bitstamp', display: 'Bitstamp', class: 'exchange', cryptos: ['BTC', 'ETH', 'LTC', 'BCH']}, {code: 'itbit', display: 'itBit', class: 'exchange', cryptos: ['BTC']}, {code: 'kraken', display: 'Kraken', class: 'exchange', cryptos: ['BTC', 'ETH', 'LTC', 'DASH', 'ZEC', 'BCH']}, - {code: 'quadrigacx', display: 'QuadrigaCX', class: 'exchange', cryptos: ['BTC', 'ETH', 'LTC', 'BCH']}, {code: 'mock-wallet', display: 'Mock (Caution!)', class: 'wallet', cryptos: ALL_CRYPTOS}, {code: 'no-exchange', display: 'No exchange', class: 'exchange', cryptos: ALL_CRYPTOS}, {code: 'mock-exchange', display: 'Mock exchange', class: 'exchange', cryptos: ALL_CRYPTOS}, diff --git a/lib/plugins/wallet/bitgo/bitgo.js b/lib/plugins/wallet/bitgo/bitgo.js index 74f383af..e41489b4 100644 --- a/lib/plugins/wallet/bitgo/bitgo.js +++ b/lib/plugins/wallet/bitgo/bitgo.js @@ -9,7 +9,7 @@ const pjson = require('../../../../package.json') const userAgent = 'Lamassu-Server/' + pjson.version const NAME = 'BitGo' -const SUPPORTED_COINS = ['BTC', 'ZEC', 'LTC', 'BCH'] +const SUPPORTED_COINS = ['BTC', 'ZEC', 'LTC', 'BCH', 'DASH'] function buildBitgo (account) { const env = account.environment === 'test' ? 'test' : 'prod' diff --git a/schemas/bitgo.json b/schemas/bitgo.json index eca20d26..4e0fa00f 100644 --- a/schemas/bitgo.json +++ b/schemas/bitgo.json @@ -74,6 +74,22 @@ "required": true, "value": "" }, + { + "code": "DASHWalletId", + "display": "DASH Wallet ID", + "fieldType": "string", + "secret": false, + "required": true, + "value": "" + }, + { + "code": "DASHWalletPassphrase", + "display": "DASH Wallet passphrase", + "fieldType": "password", + "secret": true, + "required": true, + "value": "" + }, { "code": "environment", "display": "Environment (prod or test)",