forked from rsksmart/rwallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
85 lines (82 loc) · 2.37 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import { PARSE_SERVER_URL, RWALLET_API_KEY } from 'react-native-dotenv';
import { isEmpty } from 'lodash';
if (isEmpty(PARSE_SERVER_URL)) {
throw new Error('PARSE_SERVER_URL needs to be defined in .env under the root.');
}
const config = {
parse: {
appId: 'rwallet',
javascriptKey: '',
serverURL: PARSE_SERVER_URL,
rwalletApiKey: RWALLET_API_KEY,
},
defaultSettings: {
username: undefined,
language: 'en',
currency: 'USD',
fingerprint: false,
},
consts: {
supportedTokens: ['BTC', 'RBTC', 'RIF', 'DOC'],
locales: [
{ name: 'English', id: 'en' },
{ name: 'Spanish', id: 'es' },
{ name: 'Portuguese', id: 'pt' },
{ name: 'Chinese', id: 'zh' },
],
currencies: [
{ name: 'USD', symbol: '$' },
{ name: 'ARS', symbol: 'ARS$' },
{ name: 'JPY', symbol: '¥' },
{ name: 'KRW', symbol: '₩' },
{ name: 'CNY', symbol: '¥' },
{ name: 'GBP', symbol: '£' },
],
},
development: {
reduxLoggerEnabled: false,
},
symbolDecimalPlaces: {
BTC: 6,
RBTC: 6,
RIF: 3,
DOC: 3,
CustomToken: 3,
},
assetValueDecimalPlaces: 2,
transactionUrls: {
BTC: {
Mainnet: 'https://live.blockcypher.com/btc/tx',
Testnet: 'https://live.blockcypher.com/btc-testnet/tx',
},
RBTC: {
Mainnet: 'https://explorer.rsk.co/tx',
Testnet: 'https://explorer.testnet.rsk.co/tx',
},
RIF: {
Mainnet: 'https://explorer.rsk.co/tx',
Testnet: 'https://explorer.testnet.rsk.co/tx',
},
DOC: {
Mainnet: 'https://explorer.rsk.co/tx',
Testnet: 'https://explorer.testnet.rsk.co/tx',
},
},
defaultFontFamily: 'Roboto', // defaultFontFamily, for android
coinswitch: {
// Put the initPair here because
// 1. constrain the user to select the pair, which is only supported by coinswitch.
// 2. use it as a array, basically we need failback. Because always 2 precondition need to be fullfilled before useing going forward (1. coinswitch supporting 2. use has the specific coin)
// 3. Since based on the current logic, we will alwauys know one of them beforehand. So to take advantage of this, by using key-value
initPairs: {
BTC: ['RBTC', 'DOC'],
RBTC: ['BTC'],
DOC: ['BTC'],
},
},
appLock: {
timeout: 300000,
},
termsUrl: 'https://www.rsk.co/terms-conditions',
};
export default config;