-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.configs.js
More file actions
84 lines (59 loc) · 1.46 KB
/
Copy pathexample.configs.js
File metadata and controls
84 lines (59 loc) · 1.46 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
'use strict'
let os = require('os');
let pathDB = null;
let pathServer = null;
let testnet = true;
let port = 5050;
let token = 'addresstoken';
let redETH = null;
let redTokensETH = null;
let logB = false;
let idProjectInfura = 'IDPROJECT';
let apiEtherScan = 'APIETHERSCAN';
let networkEtherScan = 'networkEtherScan';
let timeoutScan = '3000';
let tokenDecimals = '18';
if (os.platform().indexOf('win32') >= 0 || os.platform().indexOf('win64') >= 0) {
pathDB = 'C:/apps/node-erc20-wallet/db/wallet';
pathServer = 'C:/apps/node-erc20-wallet/';
} else {
pathDB = '/home/<Mi-CARPETA-DEL-REPO>/db/wallet';
pathServer = '/home/<Mi-CARPETA-DEL-REPO>/';
}
if (testnet == true) {
redETH = 'https://ropsten.infura.io/v3/' + idProjectInfura;
redTokensETH = 'api-ropsten.etherscan.io';
logB = true;
} else {
redETH = 'https://mainnet.infura.io/v3/' + idProjectInfura;
redTokensETH = 'api-ropsten.etherscan.io';
logB = false;
}
let oneSignal = {
appID: 'appIDoneSignak',
secret: 'secretoneSignal',
};
let imgPush = 'iconPushNotifications';
let titleToken = 'nameToken';
let symbolToken = 'symbolToken';
let pathAdmin = 'admin';
let passAdmin = 'admin';
module.exports = {
pathServer,
redETH,
redTokensETH,
port,
logB,
token,
apiEtherScan,
networkEtherScan,
tokenDecimals,
timeoutScan,
oneSignal,
titleToken,
symbolToken,
imgPush,
pathAdmin,
passAdmin,
pathDB
};