forked from EdgeApp/edge-react-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcorePlugins.js
More file actions
98 lines (90 loc) · 2.13 KB
/
corePlugins.js
File metadata and controls
98 lines (90 loc) · 2.13 KB
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
// @flow
import ENV from '../../env.json'
// Shim old-format env.json files:
if (ENV.ETHEREUM_INIT == null && (ENV.ETHERSCAN_API_KEY || ENV.INFURA_PROJECT_ID)) {
ENV.ETHEREUM_INIT = {
// blockcypherApiKey: '...',
etherscanApiKey: ENV.ETHERSCAN_API_KEY,
infuraProjectId: ENV.INFURA_PROJECT_ID
}
}
if (ENV.SHAPESHIFT_INIT == null && ENV.SHAPESHIFT_API_KEY && ENV.SHAPESHIFT_CLIENT_ID && ENV.SHAPESHIFT_SECRET) {
ENV.SHAPESHIFT_INIT = {
apiKey: ENV.SHAPESHIFT_API_KEY,
clientId: ENV.SHAPESHIFT_CLIENT_ID,
secret: ENV.SHAPESHIFT_SECRET
}
}
if (ENV.CHANGE_NOW_INIT == null && ENV.CHANGE_NOW_API_KEY) {
ENV.CHANGE_NOW_INIT = {
apiKey: ENV.CHANGE_NOW_API_KEY
}
}
export const currencyPlugins = {
// edge-currency-accountbased:
binance: true,
eos: true,
telos: true,
ethereum: ENV.ETHEREUM_INIT,
ethereumclassic: true,
fio: ENV.FIO_INIT || true,
ripple: true,
rsk: true,
stellar: true,
tezos: true,
// edge-currency-bitcoin:
bitcoin: true,
bitcoincash: true,
bitcoincashtestnet: false,
bitcoingold: true,
bitcoingoldtestnet: false,
bitcoinsv: true,
bitcointestnet: true,
dash: true,
digibyte: true,
dogecoin: true,
eboost: true,
feathercoin: true,
groestlcoin: true,
litecoin: true,
qtum: true,
ravencoin: true,
smartcash: true,
ufo: true,
vertcoin: true,
zcoin: true,
// edge-currency-monero:
monero: ENV.MONERO_INIT
}
export const ratePlugins = {
bitmax: true,
'shapeshift-rate': false,
compound: true,
coinbase: true,
coincap: true,
coinmonitor: true,
coingecko: true,
constantRate: true,
coincapLegacy: false,
nomics: ENV.NOMICS_INIT,
currencyconverterapi: ENV.CURRENCYCONVERTERAPI_INIT,
wazirx: true
}
export const swapPlugins = {
changelly: ENV.CHANGELLY_INIT,
changenow: ENV.CHANGE_NOW_INIT,
coinswitch: ENV.COINSWITCH_INIT,
faast: ENV.FAAST_INIT,
foxExchange: ENV.FOX_INIT,
godex: ENV.GODEX_INIT,
// shapeshift: ENV.SHAPESHIFT_INIT,
sideshift: ENV.SIDESHIFT_INIT,
switchain: ENV.SWITCHAIN_INIT,
totle: ENV.TOTLE_INIT,
transfer: true
}
export const allPlugins = {
...currencyPlugins,
...ratePlugins,
...swapPlugins
}