This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
config.js
112 lines (107 loc) · 3.41 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
import { PARSE_SERVER_URL, RWALLET_API_KEY, RWALLET_ENV } from 'react-native-dotenv';
import { isEmpty } from 'lodash';
import fontFamily from './src/assets/styles/font.family';
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,
rwalletEnv: RWALLET_ENV,
},
defaultSettings: {
username: undefined,
language: 'en',
currency: 'USD',
fingerprint: false,
},
consts: {
supportedTokens: ['BTC', 'RBTC', 'RIF', 'DOC', 'RIFP', 'RDOC', 'BITP', 'TTE', 'BRZ'],
locales: [
{ name: 'English', id: 'en' },
{ name: 'Spanish', id: 'es' },
{ name: 'Portuguese', id: 'pt' },
{ name: 'Chinese', id: 'zh' },
{ name: 'Brazilian Portuguese', id: 'pt-BR' },
{ name: 'Japanese', id: 'ja' },
{ name: 'Russian', id: 'ru' },
{ name: 'Korean', id: 'ko' },
],
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: 6,
},
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',
},
},
addressUrls: {
RBTC: {
Mainnet: 'https://explorer.rsk.co/address',
Testnet: 'https://explorer.testnet.rsk.co/address',
},
},
defaultFontFamily: fontFamily.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: {
en: 'https://www.rsk.co/terms-conditions',
zh: 'https://www.rsk.co/zh-Hans/terms-conditions',
es: 'https://www.rsk.co/es/terms-conditions',
pt: 'https://www.rsk.co/pt-pt/terms-conditions',
'pt-BR': 'https://www.rsk.co/pt-pt/terms-conditions',
ru: 'https://www.rsk.co/ru/terms-conditions',
ko: 'https://www.rsk.co/ko/terms-conditions',
ja: 'https://www.rsk.co/ja/terms-conditions',
},
accountBasedRskAddressUrl: 'https://developers.rsk.co/rsk/architecture/account-based/',
rnsDomain: 'wallet.rsk',
storageVersion: 3,
defaultDappIcon: 'https://storage.googleapis.com/storage-rwallet/rwallet.png',
};
export default config;