-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontract.json
More file actions
254 lines (254 loc) · 10.2 KB
/
contract.json
File metadata and controls
254 lines (254 loc) · 10.2 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
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
{
"contract_name": "Poll",
"abi": [
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256"
}
],
"name": "proposals",
"outputs": [
{
"name": "name",
"type": "string"
},
{
"name": "truc",
"type": "bool"
}
],
"payable": false,
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "proposalsCount",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "name",
"type": "string"
}
],
"name": "addProposal",
"outputs": [],
"payable": false,
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "bytes32"
}
],
"name": "voters",
"outputs": [
{
"name": "voted",
"type": "bool"
},
{
"name": "proposalVoted",
"type": "uint256"
},
{
"name": "voterIndex",
"type": "uint256"
}
],
"payable": false,
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "question",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "kill",
"outputs": [],
"payable": false,
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "votersHashCount",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256"
}
],
"name": "votersHash",
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "voter",
"type": "bytes32"
},
{
"name": "proposal",
"type": "uint256"
}
],
"name": "vote",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "proposal",
"type": "uint256"
}
],
"name": "numberOfVoteForProposal",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "numberOfVote",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "numberOfVotePerProposal",
"outputs": [
{
"name": "",
"type": "uint256[]"
}
],
"payable": false,
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"type": "function"
},
{
"inputs": [
{
"name": "_question",
"type": "string"
}
],
"payable": false,
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "voter",
"type": "bytes32"
},
{
"indexed": false,
"name": "proposalName",
"type": "string"
}
],
"name": "NewVote",
"type": "event"
}
],
"unlinked_binary": "0x60606040523461000057604051610b7b380380610b7b833981016040528051015b5b60008054600160a060020a03191633600160a060020a03161790555b8060019080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061008957805160ff19168380011785556100b6565b828001600101855582156100b6579182015b828111156100b657825182559160200191906001019061009b565b5b506100d79291505b808211156100d357600081556001016100bf565b5090565b50505b505b610a90806100eb6000396000f300606060405236156100b45763ffffffff60e060020a600035041663013cf08b81146100b95780630a9f46ad1461015a5780632fdae3c51461017957806337f91f23146101ce5780633fad9ae0146101fe57806341c0e1b51461028b57806384f2d4031461029a5780638da5cb5b146102b957806397f16073146102e25780639ef1204c14610304578063affa6f191461032b578063b44518aa1461034d578063da83bfdd1461036c578063f2fde38b146103d4575b610000565b34610000576100c96004356103ef565b60408051821515602082015281815283546002600019610100600184161502019091160491810182905290819060608201908590801561014a5780601f1061011f5761010080835404028352916020019161014a565b820191906000526020600020905b81548152906001019060200180831161012d57829003601f168201915b5050935050505060405180910390f35b346100005761016761041b565b60408051918252519081900360200190f35b34610000576101cc600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284375094965061042295505050505050565b005b34610000576101de6004356105e2565b604080519315158452602084019290925282820152519081900360600190f35b346100005761020b610608565b604080516020808252835181830152835191928392908301918501908083838215610251575b80518252602083111561025157601f199092019160209182019101610231565b505050905090810190601f16801561027d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34610000576101cc610695565b005b34610000576101676106be565b60408051918252519081900360200190f35b34610000576102c66106c5565b60408051600160a060020a039092168252519081900360200190f35b34610000576101676004356106d4565b60408051918252519081900360200190f35b34610000576103176004356024356106f5565b604080519115158252519081900360200190f35b346100005761016760043561087d565b60408051918252519081900360200190f35b34610000576101676108fb565b60408051918252519081900360200190f35b346100005761037961090b565b60408051602080825283518183015283519192839290830191858101910280838382156103c1575b8051825260208311156103c157601f1990920191602091820191016103a1565b5050509050019250505060405180910390f35b34610000576101cc600160a060020a0360043516610a0f565b005b600481815481101561000057906000526020600020906002020160005b50600181015490915060ff1682565b6004545b90565b60005433600160a060020a03908116911614156105dd57600480548060010182818154818355818115116104eb576002028160020283600052602060002091820191016104eb91905b808211156104cc57600060008201805460018160011615610100020316600290046000825580601f1061049e57506104d0565b601f0160209004906000526020600020908101906104d091905b808211156104cc57600081556001016104b8565b5090565b5b505060018101805460ff1916905560020161046b565b5090565b5b505050916000526020600020906002020160005b6040604051908101604052808581526020016001151581525090919091506000820151816000019080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061057057805160ff191683800117855561059d565b8280016001018555821561059d579182015b8281111561059d578251825591602001919060010190610582565b5b506105be9291505b808211156104cc57600081556001016104b8565b5090565b5050602091909101516001909101805460ff1916911515919091179055505b5b5b50565b600260208190526000918252604090912080546001820154919092015460ff9092169183565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561068d5780601f106106625761010080835404028352916020019161068d565b820191906000526020600020905b81548152906001019060200180831161067057829003601f168201915b505050505081565b60005433600160a060020a03908116911614156106ba57600054600160a060020a0316ff5b5b5b565b6003545b90565b600054600160a060020a031681565b600381815481101561000057906000526020600020900160005b5054905081565b60008054819033600160a060020a039081169116141561087457506000838152600260205260409020805460ff16151560011461078d576003805460028301819055600181018083558281838015829011610775576000838152602090206107759181019083015b808211156104cc57600081556001016104b8565b5090565b5b505050916000526020600020900160005b50859055505b6001808201849055815460ff1916178155600480547f2e01fc1487154731683e21315c1f62e559e694840e977be0e1f8d8aa9869ff77918691869081101561000057906000526020600020906002020160005b50604080518381526020810182815283546002610100600183161502600019019091160492820183905290916060830190849080156108605780601f1061083557610100808354040283529160200191610860565b820191906000526020600020905b81548152906001019060200180831161084357829003601f168201915b5050935050505060405180910390a1600191505b5b5b5092915050565b6000808080805b6003548310156108ee57600383815481101561000057906000526020600020900160005b5054600081815260026020526040902060018101549193509150861480156108d65750805460ff1615156001145b156108e2576001909301925b5b600190920191610884565b8394505b50505050919050565b60006109056106be565b90505b90565b602060405190810160405280600081525060206040519081016040528060008152506000600060006004805490506040518059106109465750595b908082528060200260200182016040525b509350600092505b835183101561098b5760008484815181101561000057602090810290910101525b60019092019161095f565b600092505b600354831015610a0457600383815481101561000057906000526020600020900160005b505460008181526002602052604090208054919350915060ff161515600114156109f857838160010154815181101561000057602090810290910101805160010190525b5b600190920191610990565b8394505b5050505090565b60005433600160a060020a03908116911614156105dd57600160a060020a038116156105dd576000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b5b5b505600a165627a7a7230582013ad0a1930961ee6e81424fadba37272df2008a1ea7e25174075b623937fd0af0029",
"networks": {},
"schema_version": "0.0.5",
"updated_at": 1487494347636
}