This repository has been archived by the owner on Sep 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 494
/
config-example.js
125 lines (99 loc) · 3.32 KB
/
config-example.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
113
114
115
116
117
118
119
120
121
122
123
124
125
/**
* Ripple Client Configuration
*
* Copy this file to config.js and edit to suit your preferences.
*/
var Options = {
// Local domain
//
// Which domain should ripple-client consider native?
domain: 'local.ripple.com',
// Rippled to connect
server: {
trace: true,
trusted: true,
local_signing: true,
servers: [
{ host: 's-west.ripple.com', port: 443, secure: true },
{ host: 's-east.ripple.com', port: 443, secure: true }
],
connection_offset: 0,
allow_partial_history: false
},
// DEPRECATED: Blobvault server (old blob protocol)
//
// The blobvault URL for the new login protocol is set via authinfo. You can
// still use this setting for the fallback feature.
blobvault: 'https://blobvault.ripple.com',
// If set, login will persist across sessions (page reload). This is mostly
// intended for developers, be careful about using this in a real setting.
persistent_auth: false,
historyApi: 'https://history.ripple.com:7443/v1',
// Number of transactions each page has in balance tab notifications
transactions_per_page: 50,
// Configure bridges
bridge: {
// Outbound bridges
out: {
// Bitcoin outbound bridge
// bitcoin: 'snapswap.us'
'bitcoin': 'btc2ripple.com'
}
},
mixpanel: {
'token': '',
// Don't track events by default
'track': false
},
// production
// activate_link: 'http://rippletrade.com/#/register/activate',
// staging
activate_link: 'http://staging.ripple.com/client/#/register/activate',
b2rAddress: 'rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q',
snapswapApi: 'https://snapswap.us/api/v1',
// Number of ledgers ahead of the current ledger index where a tx is valid
tx_last_ledger: 3,
// Set max transaction fee for network in drops of XRP
max_tx_network_fee: 200000,
// Set max number of rows for orderbook
orderbook_max_rows: 20,
// Show transaction confirmation page
confirmation: {
send: true,
exchange: true,
trade: true
},
// Show advanced parameters in the trust/gateway page
advanced_feature_switch: false,
// Default gateway max trust amount under 'simplfied' view ie when advanced_feature_switch is false in trust/gateway page
gateway_max_limit: 1000000000,
// Default threshold in XRPs for fee on RT to show higher load status
low_load_threshold: 0.012,
// Ripple trade backend URL
backend_url: 'https://backend.rippletrade.com',
ids_url: 'https://id.ripple.com'
};
// Load client-side overrides
if (store.enabled) {
var settings = JSON.parse(store.get('ripple_settings') || '{}');
if (settings.server && settings.server.servers) {
Options.server.servers = settings.server.servers;
}
if (settings.bridge) {
Options.bridge.out.bitcoin = settings.bridge.out.bitcoin.replace('https://www.bitstamp.net/ripple/bridge/out/bitcoin/', 'snapswap.us');
}
if (settings.blobvault) {
// TODO: test if url defined and valid
Options.blobvault = settings.blobvault.replace('payward.com', 'ripple.com');
}
if (settings.mixpanel) {
Options.mixpanel = settings.mixpanel;
}
if (settings.max_tx_network_fee) {
Options.max_tx_network_fee = settings.max_tx_network_fee;
}
Options.server.servers = Options.server.servers.map(function (server) {
server.host = server.host.replace(/s_(west|east)/, 's-$1');
return server;
});
}