-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathconfig.js
69 lines (66 loc) · 2.24 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
import { rpcHost } from './env.json';
const config = {
ICOs: process.env.NODE_ENV === 'test' ? require('./config.test').default.ICOs : {},
rpcHost,
defaultDecimal: 18,
matrix: {
q1: { question: 'Is ICO/STO controlled by a smart contract?', critical: true, notApplicable: false },
q2: { question: 'Is smart contract source code available?', critical: true, notApplicable: false },
q3: { question: 'Is smart contract source code provided in etherscan?', critical: false, notApplicable: false },
q4: {
question: 'Is instruction provided how to reproduce deployed bytecode?',
critical: false,
notApplicable: false,
},
q5: {
question: 'Does smart contract provide all tracking data via events?',
critical: false,
notApplicable: false,
},
q6: {
question: 'Is information on token price in ETH provided? (via event or in transaction?)',
critical: true,
notApplicable: false,
},
q7: { question: 'Does smart contract handle ETH in a trustless way?', critical: false, notApplicable: true },
q8: {
question: 'If ICO/STO is using other currencies is information on token price provided?',
critical: true,
notApplicable: true,
},
q9: {
question: 'Does smart contract handle other currencies in a trustless way? Does some smart contract store balance of those currencies?',
critical: false,
notApplicable: true,
},
q10: {
question: 'Was smart contract code easy to read and properly commented?',
critical: false,
notApplicable: false,
},
q11: {
question: 'Are token holder rights protected in trustless way?',
critical: true,
notApplicable: false,
},
q12: {
question: 'Is price of the token controlled by smart contract?',
critical: false,
notApplicable: false,
},
q13: {
question: 'Is ICO/STO start condition controlled by smart contract?',
critical: false,
notApplicable: false,
},
q14: {
question: 'Is ICO/STO end condition controlled by smart contract?',
critical: false,
notApplicable: false,
},
},
};
export const appendICO = (address, ico) => {
if (ico) { config.ICOs[address] = ico; }
};
export default config;