diff --git a/lib/new-admin/config/accounts.js b/lib/new-admin/config/accounts.js index 080967f0..fdabccbd 100644 --- a/lib/new-admin/config/accounts.js +++ b/lib/new-admin/config/accounts.js @@ -31,7 +31,7 @@ const ALL_ACCOUNTS = [ { code: 'mock-ticker', display: 'Mock (Caution!)', class: TICKER, cryptos: ALL_CRYPTOS, dev: true }, { code: 'bitcoind', display: 'bitcoind', class: WALLET, cryptos: [BTC] }, { code: 'no-layer2', display: 'No Layer 2', class: LAYER_2, cryptos: ALL_CRYPTOS }, - { code: 'infura', display: 'Infura', class: WALLET, cryptos: [ETH, USDT] }, + { code: 'infura', display: 'Infura/Alchemy', class: WALLET, cryptos: [ETH, USDT] }, { code: 'trongrid', display: 'Trongrid', class: WALLET, cryptos: [TRX, USDT_TRON] }, { code: 'geth', display: 'geth (deprecated)', class: WALLET, cryptos: [ETH, USDT] }, { code: 'zcashd', display: 'zcashd', class: WALLET, cryptos: [ZEC] }, diff --git a/lib/new-settings-loader.js b/lib/new-settings-loader.js index 302c35df..f97a794a 100644 --- a/lib/new-settings-loader.js +++ b/lib/new-settings-loader.js @@ -17,7 +17,6 @@ const SECRET_FIELDS = [ 'bitgo.BCHWalletPassphrase', 'bitgo.DASHWalletPassphrase', 'bitstamp.secret', - 'infura.apiSecret', 'itbit.clientSecret', 'kraken.privateKey', 'binanceus.privateKey', diff --git a/new-lamassu-admin/src/pages/Services/schemas/infura.js b/new-lamassu-admin/src/pages/Services/schemas/infura.js index aa026782..3a4e27c3 100644 --- a/new-lamassu-admin/src/pages/Services/schemas/infura.js +++ b/new-lamassu-admin/src/pages/Services/schemas/infura.js @@ -1,27 +1,12 @@ import * as Yup from 'yup' -import SecretInputFormik from 'src/components/inputs/formik/SecretInput' import TextInputFormik from 'src/components/inputs/formik/TextInput' -import { secretTest } from './helper' - export default { code: 'infura', - name: 'Infura', - title: 'Infura (Wallet)', + name: 'Infura/Alchemy', + title: 'Infura/Alchemy (Wallet)', elements: [ - { - code: 'apiKey', - display: 'Project ID', - component: TextInputFormik, - face: true, - long: true - }, - { - code: 'apiSecret', - display: 'Project Secret', - component: SecretInputFormik - }, { code: 'endpoint', display: 'Endpoint', @@ -29,14 +14,8 @@ export default { face: true } ], - getValidationSchema: account => { + getValidationSchema: () => { return Yup.object().shape({ - apiKey: Yup.string('The project ID must be a string') - .max(100, 'The project ID is too long') - .required('The project ID is required'), - apiSecret: Yup.string('The project secret must be a string') - .max(100, 'The project secret is too long') - .test(secretTest(account?.apiSecret, 'project secret')), endpoint: Yup.string('The endpoint must be a string') .max(100, 'The endpoint is too long') .required('The endpoint is required')