Skip to content

Commit

Permalink
chore(cleanup): remove old sfox/coinify configs
Browse files Browse the repository at this point in the history
  • Loading branch information
schnogz committed Feb 22, 2021
1 parent bb077cd commit 36489af
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 62 deletions.
50 changes: 1 addition & 49 deletions config/mocks/wallet-options-v4.json
Original file line number Diff line number Diff line change
Expand Up @@ -343,62 +343,15 @@
"txListAppRoute": "/wdgld/transactions"
}
},
"sfox": {
"countries": ["US"],
"states": [
"AK",
"AZ",
"CA",
"CO",
"DE",
"ID",
"IL",
"IN",
"KY",
"LA",
"MA",
"MD",
"ME",
"MI",
"MO",
"MT",
"NE",
"NH",
"NJ",
"NV",
"OK",
"OH",
"PA",
"RI",
"TN",
"TX",
"UT",
"VA",
"WI",
"WV",
"WY"
],
"config": {
"production": false,
"apiKey": "6CD61A0E965D48A7B1883A860490DC9E",
"plaid": "0b041cd9e9fbf1e7d93a0d5a39f5b9",
"plaidEnv": "sandbox",
"siftScience": "a19cc360a1"
}
},
"sift": {
"apiKey": "0ecd212038",
"paymentKey": "4a0510ff14"
}
},
"ios": {},
"android": {}
}
},
"domains": {
"api": "https://api.blockchain.info",
"bitpay": "https://bitpay.com",
"coinify": "https://app-api.coinify.com",
"coinifyPaymentDomain": "https://pay.coinify.com",
"comRoot": "https://www.blockchain.com",
"comWalletApp": "https://login.blockchain.com",
"everypay": "https://igw-demo.every-pay.com",
Expand All @@ -407,7 +360,6 @@
"ledger": "https://manager.api.live.ledger.com",
"ledgerSocket": "wss://api.ledgerwallet.com",
"root": "https://blockchain.info",
"thePit": "https://pit.blockchain.com",
"veriff": "https://magic.veriff.me",
"walletHelper": "https://wallet-helper.blockchain.com",
"webSocket": "wss://ws.blockchain.info"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,8 @@ const buildDevServerConfig = (
envConfig.WALLET_HELPER_DOMAIN,
envConfig.WEB_SOCKET_URL,
'https://friendbot.stellar.org',
'https://api.sfox.com',
'https://quotes.sfox.com',
'https://testnet5.blockchain.info',
'https://api.testnet.blockchain.info',
'https://shapeshift.io',
'https://bitpay.com',
'https://static.zdassets.com',
'https://ekr.zdassets.com'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
import { BUYSELL } from '../config'
import { kvStorePath } from '../../paths'
import { path, pathOr } from 'ramda'
import { path } from 'ramda'

export const getMetadata = path([kvStorePath, BUYSELL])

export const getSfoxTrades = state =>
getMetadata(state).map(pathOr([], ['value', 'sfox', 'trades']))

export const getCoinifyUser = state =>
getMetadata(state).map(path(['value', 'coinify', 'user']))

export const getCoinifyToken = state =>
getMetadata(state).map(path(['value', 'coinify', 'offline_token']))

export const getCoinifyTrades = state =>
getMetadata(state).map(pathOr([], ['value', 'coinify', 'trades']))

0 comments on commit 36489af

Please sign in to comment.