-
Notifications
You must be signed in to change notification settings - Fork 570
/
apiConfig.js
320 lines (307 loc) · 9.79 KB
/
apiConfig.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
import {getFaucet, getTestFaucet} from "../branding";
export const ioxbankAPIs = {
BASE: "https://api.ioxbank.com/bitshares",
COINS_LIST: "/coins",
ACTIVE_WALLETS: "/active-wallets",
TRADING_PAIRS: "/trading-pairs",
NEW_DEPOSIT_ADDRESS: "/simple-api/initiate-trade"
};
export const blockTradesAPIs = {
BASE: "https://api.blocktrades.us/v2",
COINS_LIST: "/coins",
ACTIVE_WALLETS: "/active-wallets",
TRADING_PAIRS: "/trading-pairs",
DEPOSIT_LIMIT: "/deposit-limits",
ESTIMATE_OUTPUT: "/estimate-output-amount",
ESTIMATE_INPUT: "/estimate-input-amount"
};
export const openledgerAPIs = {
BASE: "https://ol-api1.openledger.info/api/v0/ol/support",
COINS_LIST: "/coins",
ACTIVE_WALLETS: "/active-wallets",
TRADING_PAIRS: "/trading-pairs",
DEPOSIT_LIMIT: "/deposit-limits",
ESTIMATE_OUTPUT: "/estimate-output-amount",
ESTIMATE_INPUT: "/estimate-input-amount",
RPC_URL: "https://openledger.info/api/"
};
export const rudexAPIs = {
BASE: "https://gateway.rudex.org/api/rudex",
COINS_LIST: "/coins",
NEW_DEPOSIT_ADDRESS: "/simple-api/initiate-trade"
};
export const bitsparkAPIs = {
BASE: "https://dex-api.bitspark.io/api/v1",
COINS_LIST: "/coins",
ACTIVE_WALLETS: "/active-wallets",
TRADING_PAIRS: "/trading-pairs",
DEPOSIT_LIMIT: "/deposit-limits",
ESTIMATE_OUTPUT: "/estimate-output-amount",
ESTIMATE_INPUT: "/estimate-input-amount"
};
export const cryptoBridgeAPIs = {
BASE: "https://api.crypto-bridge.org/api/v1",
COINS_LIST: "/coins",
ACTIVE_WALLETS: "/wallets",
MARKETS: "/markets",
TRADING_PAIRS: "/trading-pairs"
};
export const citadelAPIs = {
BASE: "https://citadel.li/trade",
COINS_LIST: "/coins",
ACTIVE_WALLETS: "/active-wallets",
TRADING_PAIRS: "/trading-pairs",
DEPOSIT_LIMIT: "/deposit-limits",
ESTIMATE_OUTPUT: "/estimate-output-amount",
ESTIMATE_INPUT: "/estimate-input-amount"
};
export const gdex2APIs = {
BASE: "https://openapi.52bts.net/adjust",
COINS_LIST: "/coins",
ACTIVE_WALLETS: "/active-wallets",
TRADING_PAIRS: "/trading-pairs"
};
// Legacy Deposit/Withdraw
export const gdexAPIs = {
BASE: "https://api.52bts.net",
ASSET_LIST: "/gateway/asset/assetList",
ASSET_DETAIL: "/gateway/asset/assetDetail",
GET_DEPOSIT_ADDRESS: "/gateway/address/getAddress",
CHECK_WITHDRAY_ADDRESS: "/gateway/address/checkAddress",
DEPOSIT_RECORD_LIST: "/gateway/deposit/recordList",
DEPOSIT_RECORD_DETAIL: "/gateway/deposit/recordDetail",
WITHDRAW_RECORD_LIST: "/gateway/withdraw/recordList",
WITHDRAW_RECORD_DETAIL: "/gateway/withdraw/recordDetail",
GET_USER_INFO: "/gateway/user/getUserInfo",
USER_AGREEMENT: "/gateway/user/isAgree",
WITHDRAW_RULE: "/gateway/withdraw/rule"
};
export const pirateCashAPIs = {
BASE: "https://pirate.cash/dexapi",
COINS_LIST: "/coins"
};
export const xbtsxAPIs = {
BASE: "https://apis.xbts.io/api/v2",
COINS_LIST: "/coin"
};
export const nodeRegions = [
// region of the node follows roughly https://en.wikipedia.org/wiki/Subregion#/media/File:United_Nations_geographical_subregions.png
"Northern Europe",
"Western Europe",
"Southern Europe",
"Eastern Europe",
"Northern Asia",
"Western Asia",
"Southern Asia",
"Eastern Asia",
"Central Asia",
"Southeastern Asia",
"Australia and New Zealand",
"Melanesia",
"Polynesia",
"Micronesia",
"Northern Africa",
"Western Africa",
"Middle Africa",
"Eastern Africa",
"Southern Africa",
"Northern America",
"Central America",
"Caribbean",
"South America"
];
export const settingsAPIs = {
// If you want a location to be translated, add the translation to settings in locale-xx.js
// and use an object {translate: key} in WS_NODE_LIST
DEFAULT_WS_NODE: "wss://fake.automatic-selection.com",
WS_NODE_LIST: [
{
url: "wss://fake.automatic-selection.com",
location: {translate: "settings.api_closest"}
},
{
url: "ws://127.0.0.1:8090",
location: "Locally hosted"
},
{
url: "wss://dex.iobanker.com/ws",
region: "Western Europe",
country: "Germany",
location: "Frankfurt",
operator: "Witness: iobanker-core",
contact: "email:[email protected]"
},
{
url: "wss://mainnet-node.btspp.io",
region: "Eastern Asia",
country: "China",
location: "Hangzhou",
operator: "Witness: btspp-witness",
contact: "telegram:btsplusplus"
},
{
url: "wss://api.bts.mobi/ws",
region: "Northern America",
country: "U.S.A.",
location: "Virginia",
operator: "Witness: in.abit",
contact: "telegram:abitmore"
},
{
url: "wss://btsws.roelandp.nl/ws",
region: "Northern Europe",
country: "Finland",
location: "Helsinki",
operator: "Witness: roelandp",
contact: "telegram:roelandp"
},
{
url: "wss://api.61bts.com",
region: "Eastern Asia",
country: "China",
location: "Shandong",
operator: "Witness: liuye",
contact: "email:[email protected]"
},
{
url: "wss://api-us.61bts.com",
region: "Northern America",
country: "USA",
location: "St. Louis",
operator: "Witness: liuye",
contact: "email:[email protected]"
},
{
url: "wss://api.dex.trading/",
region: "Western Europe",
country: "France",
location: "Paris",
operator: "Witness: zapata42-witness",
contact: "telegram:Zapata_42"
},
{
url: "wss://eu.nodes.bitshares.ws",
region: "Western Europe",
country: "Germany",
location: "Nuremberg",
operator: "Witness: blocksights",
contact: "telegram:blocksights"
},
{
url: "wss://public.xbts.io/ws",
region: "Western Europe",
country: "Germany",
location: "Nuremberg",
operator: "Witness: xbtsio-wallet",
contact: "telegram: xbtsio"
},
{
url: "wss://cloud.xbts.io/ws",
region: "Northern America",
country: "U.S.A.",
location: "VG, Ashburn",
operator: "Witness: xbtsio-wallet",
contact: "telegram: xbtsio"
},
{
url: "wss://node.xbts.io/ws",
region: "Western Europe",
country: "Germany",
location: "Falkenstein",
operator: "Witness: xbtsio-wallet",
contact: "telegram: xbtsio"
},
{
url: "wss://bts.mypi.win",
region: "Northern America",
country: "U.S.A.",
location: "Seattle, CA",
operator: "Witness: gbac-ety001",
contact: "email:[email protected]"
},
{
url: "wss://api.btslebin.com/ws",
region: "Eastern Asia",
country: "China",
location: "Hong Kong",
operator: "Witness: lebin-witness",
contact: "telegram: lebinbit"
},
{
url: "wss://bitsharesapi.loclx.io",
region: "North America",
country: "United States",
location: "Chicago",
operator: "bitshares.info",
contact: "telegram:brekyrself"
},
// Testnet
{
url: "wss://eu.nodes.testnet.bitshares.ws",
region: "TESTNET - Western Europe",
country: "Germany",
location: "Nuremberg",
operator: "Witness: blocksights",
contact: "telegram:blocksights"
},
{
url: "wss://testnet.dex.trading/",
region: "TESTNET - Western Europe",
country: "France",
location: "Paris",
operator: "Witness: zapata42-witness",
contact: "telegram:Zapata_42"
},
{
url: "wss://testnet.xbts.io/ws",
region: "TESTNET - Europe",
country: "Germany",
location: "Nuremberg",
operator: "Witness: xbtsio-wallet",
contact: "telegram: xbtsio"
},
{
url: "wss://api-testnet.61bts.com/ws",
region: "Eastern Asia",
country: "China",
location: "Shandong",
operator: "Witness: liuye",
contact: "email:[email protected]"
},
{
url: "wss://api-us-testnet.61bts.com/ws",
region: "Northern America",
country: "USA",
location: "St. Louis",
operator: "Witness: liuye",
contact: "email:[email protected]"
},
{
url: "wss://btstestnet.cybertron.ninja/ws",
region: "Northern America",
country: "USA",
location: "Utah",
operator: "Witness: cn-faucet-test",
contact: "email:[email protected]"
},
{
url: "wss://bitsharestestnet.loclx.io",
region: "Northern America",
country: "USA",
location: "Chicago",
operator: "bitshares.info",
contact: "telegram:brekyrself"
},
],
ES_WRAPPER_LIST: [
{
url: "https://api.bitshares.ws/openexplorer",
region: "Western Europe",
country: "Germany",
operator: "blocksights.info",
contact: "telegram:blocksights"
}
],
DEFAULT_FAUCET: getFaucet().url,
TESTNET_FAUCET: getTestFaucet().url
};