fix: revert old admin code changes
This commit is contained in:
parent
688ec0bcbc
commit
76774a7d4f
2 changed files with 15 additions and 39 deletions
|
|
@ -13,6 +13,7 @@ const settingsLoader = require('./settings-loader')
|
||||||
const configValidate = require('./config-validate')
|
const configValidate = require('./config-validate')
|
||||||
const jsonSchema = require('./lamassu-schema.json')
|
const jsonSchema = require('./lamassu-schema.json')
|
||||||
|
|
||||||
|
|
||||||
function fetchSchema () {
|
function fetchSchema () {
|
||||||
return _.cloneDeep(jsonSchema)
|
return _.cloneDeep(jsonSchema)
|
||||||
}
|
}
|
||||||
|
|
@ -153,7 +154,7 @@ const mapLanguage = lang => {
|
||||||
|
|
||||||
const supportedLanguages = languageRec.supported
|
const supportedLanguages = languageRec.supported
|
||||||
const languages = supportedLanguages.map(mapLanguage).filter(r => r)
|
const languages = supportedLanguages.map(mapLanguage).filter(r => r)
|
||||||
const ALL_CRYPTOS = ['BTC', 'ETH', 'LTC', 'DASH', 'ZEC', 'BCH', 'LN']
|
const ALL_CRYPTOS = ['BTC', 'ETH', 'LTC', 'DASH', 'ZEC', 'BCH']
|
||||||
|
|
||||||
const filterAccounts = (data, isDevMode) => {
|
const filterAccounts = (data, isDevMode) => {
|
||||||
const notAllowed = ['mock-ticker', 'mock-wallet', 'mock-exchange', 'mock-sms', 'mock-id-verify', 'mock-zero-conf']
|
const notAllowed = ['mock-ticker', 'mock-wallet', 'mock-exchange', 'mock-sms', 'mock-id-verify', 'mock-zero-conf']
|
||||||
|
|
@ -171,17 +172,16 @@ function fetchData () {
|
||||||
{ crypto: 'LTC', display: 'Litecoin' },
|
{ crypto: 'LTC', display: 'Litecoin' },
|
||||||
{ crypto: 'DASH', display: 'Dash' },
|
{ crypto: 'DASH', display: 'Dash' },
|
||||||
{ crypto: 'ZEC', display: 'Zcash' },
|
{ crypto: 'ZEC', display: 'Zcash' },
|
||||||
{ crypto: 'BCH', display: 'Bitcoin Cash' },
|
{ crypto: 'BCH', display: 'Bitcoin Cash' }
|
||||||
{ crypto: 'LN', display: 'Lightning Network' }
|
|
||||||
],
|
],
|
||||||
languages: languages,
|
languages: languages,
|
||||||
countries,
|
countries,
|
||||||
accounts: [
|
accounts: [
|
||||||
{ code: 'bitpay', display: 'Bitpay', class: 'ticker', cryptos: ['BTC', 'BCH', 'LN'] },
|
{ code: 'bitpay', display: 'Bitpay', class: 'ticker', cryptos: ['BTC', 'BCH'] },
|
||||||
{ code: 'kraken', display: 'Kraken', class: 'ticker', cryptos: ['BTC', 'ETH', 'LTC', 'DASH', 'ZEC', 'BCH', 'LN'] },
|
{ code: 'kraken', display: 'Kraken', class: 'ticker', cryptos: ['BTC', 'ETH', 'LTC', 'DASH', 'ZEC', 'BCH'] },
|
||||||
{ code: 'bitstamp', display: 'Bitstamp', class: 'ticker', cryptos: ['BTC', 'ETH', 'LTC', 'BCH', 'LN'] },
|
{ code: 'bitstamp', display: 'Bitstamp', class: 'ticker', cryptos: ['BTC', 'ETH', 'LTC', 'BCH'] },
|
||||||
{ code: 'coinbase', display: 'Coinbase', class: 'ticker', cryptos: ['BTC', 'ETH', 'LTC', 'BCH', 'ZEC', 'DASH', 'LN'] },
|
{ code: 'coinbase', display: 'Coinbase', class: 'ticker', cryptos: ['BTC', 'ETH', 'LTC', 'BCH', 'ZEC', 'DASH'] },
|
||||||
{ code: 'itbit', display: 'itBit', class: 'ticker', cryptos: ['BTC', 'ETH', 'LN'] },
|
{ code: 'itbit', display: 'itBit', class: 'ticker', cryptos: ['BTC', 'ETH'] },
|
||||||
{ code: 'mock-ticker', display: 'Mock (Caution!)', class: 'ticker', cryptos: ALL_CRYPTOS },
|
{ code: 'mock-ticker', display: 'Mock (Caution!)', class: 'ticker', cryptos: ALL_CRYPTOS },
|
||||||
{ code: 'bitcoind', display: 'bitcoind', class: 'wallet', cryptos: ['BTC'] },
|
{ code: 'bitcoind', display: 'bitcoind', class: 'wallet', cryptos: ['BTC'] },
|
||||||
{ code: 'no-layer2', display: 'No Layer 2', class: 'layer2', cryptos: ALL_CRYPTOS },
|
{ code: 'no-layer2', display: 'No Layer 2', class: 'layer2', cryptos: ALL_CRYPTOS },
|
||||||
|
|
@ -192,10 +192,9 @@ function fetchData () {
|
||||||
{ code: 'dashd', display: 'dashd', class: 'wallet', cryptos: ['DASH'] },
|
{ code: 'dashd', display: 'dashd', class: 'wallet', cryptos: ['DASH'] },
|
||||||
{ code: 'bitcoincashd', display: 'bitcoincashd', class: 'wallet', cryptos: ['BCH'] },
|
{ code: 'bitcoincashd', display: 'bitcoincashd', class: 'wallet', cryptos: ['BCH'] },
|
||||||
{ code: 'bitgo', display: 'BitGo', class: 'wallet', cryptos: ['BTC', 'ZEC', 'LTC', 'BCH', 'DASH'] },
|
{ code: 'bitgo', display: 'BitGo', class: 'wallet', cryptos: ['BTC', 'ZEC', 'LTC', 'BCH', 'DASH'] },
|
||||||
{ code: 'galoy', display: 'Galoy', class: 'wallet', cryptos: ['LN'] },
|
{ code: 'bitstamp', display: 'Bitstamp', class: 'exchange', cryptos: ['BTC', 'ETH', 'LTC', 'BCH'] },
|
||||||
{ code: 'bitstamp', display: 'Bitstamp', class: 'exchange', cryptos: ['BTC', 'ETH', 'LTC', 'BCH', 'LN'] },
|
{ code: 'itbit', display: 'itBit', class: 'exchange', cryptos: ['BTC', 'ETH'] },
|
||||||
{ code: 'itbit', display: 'itBit', class: 'exchange', cryptos: ['BTC', 'ETH', 'LN'] },
|
{ code: 'kraken', display: 'Kraken', class: 'exchange', cryptos: ['BTC', 'ETH', 'LTC', 'DASH', 'ZEC', 'BCH'] },
|
||||||
{ code: 'kraken', display: 'Kraken', class: 'exchange', cryptos: ['BTC', 'ETH', 'LTC', 'DASH', 'ZEC', 'BCH', 'LN'] },
|
|
||||||
{ code: 'mock-wallet', display: 'Mock (Caution!)', class: 'wallet', cryptos: ALL_CRYPTOS },
|
{ code: 'mock-wallet', display: 'Mock (Caution!)', class: 'wallet', cryptos: ALL_CRYPTOS },
|
||||||
{ code: 'no-exchange', display: 'No exchange', class: 'exchange', 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 },
|
{ code: 'mock-exchange', display: 'Mock exchange', class: 'exchange', cryptos: ALL_CRYPTOS },
|
||||||
|
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
{
|
|
||||||
"code": "galoy",
|
|
||||||
"display": "Galoy",
|
|
||||||
"fields": [
|
|
||||||
{
|
|
||||||
"code": "apiKey",
|
|
||||||
"display": "API Key",
|
|
||||||
"fieldType": "string",
|
|
||||||
"secret": true,
|
|
||||||
"required": true,
|
|
||||||
"value": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": "walletId",
|
|
||||||
"display": "Wallet ID",
|
|
||||||
"fieldType": "password",
|
|
||||||
"secret": true,
|
|
||||||
"required": true,
|
|
||||||
"value": ""
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue