/
ProposalCategoryAdder.sol
153 lines (145 loc) · 4.5 KB
/
ProposalCategoryAdder.sol
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
/* Copyright (C) 2017 GovBlocks.io
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/ */
pragma solidity 0.4.24;
import "./ProposalCategory.sol";
contract ProposalCategoryAdder {
/// @dev ads the default govBlocks sub categories to dApps
function addSubC(address _to) public { //solhint-disable-line
ProposalCategory proposalCategory = ProposalCategory(_to);
uint[] memory stakeInecntive = new uint[](3);
uint8[] memory rewardPerc = new uint8[](3);
rewardPerc[0] = 30;
rewardPerc[1] = 30;
rewardPerc[2] = 40;
stakeInecntive[0] = 10 ** 5;
stakeInecntive[1] = 604800;
stakeInecntive[2] = 10 ** 5;
proposalCategory.addInitialSubC(
"Configure parameters",
"QmW9zZAfeaErTNPVcNhiDNEEo4xp4avqnVbS9zez9GV3Ar",
3,
address(0),
"GD",
stakeInecntive,
rewardPerc
);
proposalCategory.addInitialSubC(
"Transfer Ether",
"QmRUmxw4xmqTN6L2bSZEJfmRcU1yvVWoiMqehKtqCMAaTa",
4,
address(0),
"PL",
stakeInecntive,
rewardPerc
);
proposalCategory.addInitialSubC(
"Transfer Token",
"QmbvmcW3zcAnng3FWgP5bHL4ba9kMMwV9G8Y8SASqrvHHB",
4,
address(0),
"PL",
stakeInecntive,
rewardPerc
);
stakeInecntive[2] = 0;
proposalCategory.addInitialSubC(
"Add new version",
"QmeMBNn9fs5xYVFVsN8HgupMTfgXdyz4vkLPXakWd2BY3w",
5,
address(0),
"MS",
stakeInecntive,
rewardPerc
);
proposalCategory.addInitialSubC(
"Add new contract",
"QmWP3P58YcmveHeXqgsBCRmDewTYV1QqeQqBmRkDujrDLR",
5,
address(0),
"MS",
stakeInecntive,
rewardPerc
);
proposalCategory.addInitialSubC(
"Add new voting type",
"QmeWbgsSkeHUL9PWwugnvbnuvSr711CDpmkksB5dEyMFWj",
5,
address(0),
"SV",
stakeInecntive,
rewardPerc
);
proposalCategory.addInitialSubC(
"Add new authorized address",
"QmRczxM2yN11th3MB8159rm1qAnk4VSrYYmFQCEXXRUf9Z",
5,
address(0),
"SV",
stakeInecntive,
rewardPerc
);
proposalCategory.addInitialSubC(
"Upgrade a contract",
"QmYQXdESKMXNnWDquvH88CckH6AepjtGSUxnkyJ8D7YKpq",
5,
address(0),
"MS",
stakeInecntive,
rewardPerc
);
proposalCategory.addInitialSubC(
"Resume Proposal",
"QmSDojLprBLDrPqF7HAaDCdi2Hy129LBwzfRMKhkt2begC",
5,
address(0),
"GD",
stakeInecntive,
rewardPerc
);
proposalCategory.addInitialSubC(
"Pause Proposal",
"QmPh5j3aAPhC6VZ8snjwLWPtR7Ps3os8zdYERTtp5W6RAp",
6,
address(0),
"GD",
stakeInecntive,
rewardPerc
);
proposalCategory.addInitialSubC(
"Change dApp Token Proxy",
"QmWqSFWYbmQYS9wqs7cvHXdDDGXJ8wtUv9h2w3nxbjDKUb",
3,
address(0),
"MS",
stakeInecntive,
rewardPerc
);
proposalCategory.addInitialSubC(
"dApp Token locking support",
"QmWfqjytQ4Qx3p4BJMbAUUMC6yQHcMqc4eMj5RaY4MbJQe",
3,
address(0),
"GD",
stakeInecntive,
rewardPerc
);
proposalCategory.addInitialSubC(
"Others, not specified",
"",
7,
address(0),
"EX",
stakeInecntive,
rewardPerc
);
}
}