UNPKG

167 kBJSONView Raw
1{
2 "contractName": "MostBondedByDateContest",
3 "abi": [
4 {
5 "constant": true,
6 "inputs": [],
7 "name": "coordinator",
8 "outputs": [
9 {
10 "name": "",
11 "type": "address"
12 }
13 ],
14 "payable": false,
15 "stateMutability": "view",
16 "type": "function"
17 },
18 {
19 "constant": true,
20 "inputs": [],
21 "name": "endtime",
22 "outputs": [
23 {
24 "name": "",
25 "type": "uint256"
26 }
27 ],
28 "payable": false,
29 "stateMutability": "view",
30 "type": "function"
31 },
32 {
33 "constant": true,
34 "inputs": [],
35 "name": "owner",
36 "outputs": [
37 {
38 "name": "",
39 "type": "address"
40 }
41 ],
42 "payable": false,
43 "stateMutability": "view",
44 "type": "function"
45 },
46 {
47 "constant": false,
48 "inputs": [
49 {
50 "name": "id",
51 "type": "uint256"
52 },
53 {
54 "name": "response",
55 "type": "int256[]"
56 }
57 ],
58 "name": "callback",
59 "outputs": [],
60 "payable": false,
61 "stateMutability": "nonpayable",
62 "type": "function"
63 },
64 {
65 "constant": true,
66 "inputs": [],
67 "name": "contest",
68 "outputs": [
69 {
70 "name": "",
71 "type": "address"
72 }
73 ],
74 "payable": false,
75 "stateMutability": "view",
76 "type": "function"
77 },
78 {
79 "constant": true,
80 "inputs": [],
81 "name": "query_id",
82 "outputs": [
83 {
84 "name": "",
85 "type": "uint256"
86 }
87 ],
88 "payable": false,
89 "stateMutability": "view",
90 "type": "function"
91 },
92 {
93 "constant": false,
94 "inputs": [
95 {
96 "name": "newOwner",
97 "type": "address"
98 }
99 ],
100 "name": "transferOwnership",
101 "outputs": [],
102 "payable": false,
103 "stateMutability": "nonpayable",
104 "type": "function"
105 },
106 {
107 "inputs": [
108 {
109 "name": "_cord",
110 "type": "address"
111 },
112 {
113 "name": "_contest",
114 "type": "address"
115 },
116 {
117 "name": "_endtime",
118 "type": "uint256"
119 }
120 ],
121 "payable": false,
122 "stateMutability": "nonpayable",
123 "type": "constructor"
124 },
125 {
126 "anonymous": false,
127 "inputs": [
128 {
129 "indexed": true,
130 "name": "previousOwner",
131 "type": "address"
132 },
133 {
134 "indexed": true,
135 "name": "newOwner",
136 "type": "address"
137 }
138 ],
139 "name": "OwnershipTransferred",
140 "type": "event"
141 },
142 {
143 "constant": false,
144 "inputs": [],
145 "name": "settle",
146 "outputs": [],
147 "payable": false,
148 "stateMutability": "nonpayable",
149 "type": "function"
150 },
151 {
152 "constant": false,
153 "inputs": [],
154 "name": "getEndTime",
155 "outputs": [
156 {
157 "name": "",
158 "type": "uint256"
159 }
160 ],
161 "payable": false,
162 "stateMutability": "nonpayable",
163 "type": "function"
164 }
165 ],
166 "bytecode": "0x",
167 "deployedBytecode": "0x",
168 "sourceMap": "",
169 "deployedSourceMap": "",
170 "source": "pragma solidity ^0.4.25;\nimport \"./SampleContest.sol\";\nimport \"../ownership/ZapCoordinatorInterface.sol\";\nimport \"../../platform/dispatch/DispatchInterface.sol\";\nimport \"../token/FactoryTokenInterface.sol\";\nimport \"../../platform/bondage/currentCost/CurrentCostInterface.sol\";\nimport \"./Client.sol\";\n\n\ncontract MostBondedByDateContest is Ownable, ClientIntArray {\n SampleContest public contest;\n ZapCoordinatorInterface public coordinator;\n uint256 public query_id;\n uint256 public endtime;\n\n constructor(\n address _cord,\n address _contest,\n uint256 _endtime\n ){\n contest = SampleContest(_contest);\n coordinator = ZapCoordinatorInterface(_cord);\n endtime = _endtime;\n }\n\n function settle() {\n require(contest.getStatus()==1,\"Contest is in initialized state\"); \n require(now > endtime, \"Contest is still active\");\n address bondageAddress = coordinator.getContract(\"BONDAGE\");\n BondageInterface bondage = BondageInterface(bondageAddress);\n bytes32[] memory endpoints = contest.getEndpoints();\n bytes32 winner;\n uint256 max = 0;\n uint256 bound;\n for (uint256 i = 0; i < endpoints.length; i++) {\n bound = bondage.getZapBound(address(contest), endpoints[i]); \n if (bound > max) {\n max = bound;\n winner = endpoints[i];\n }\n }\n contest.judge(winner);\n }\n\n function getEndTime() returns(uint256) {\n return endtime;\n }\n}\n",
171 "sourcePath": "/home/xv702/2zap/zap-ethereum-api/contracts/lib/platform/MostBondedByDateContest.sol",
172 "ast": {
173 "absolutePath": "/home/xv702/2zap/zap-ethereum-api/contracts/lib/platform/MostBondedByDateContest.sol",
174 "exportedSymbols": {
175 "MostBondedByDateContest": [
176 1809
177 ]
178 },
179 "id": 1810,
180 "nodeType": "SourceUnit",
181 "nodes": [
182 {
183 "id": 1659,
184 "literals": [
185 "solidity",
186 "^",
187 "0.4",
188 ".25"
189 ],
190 "nodeType": "PragmaDirective",
191 "src": "0:24:12"
192 },
193 {
194 "absolutePath": "/home/xv702/2zap/zap-ethereum-api/contracts/lib/platform/SampleContest.sol",
195 "file": "./SampleContest.sol",
196 "id": 1660,
197 "nodeType": "ImportDirective",
198 "scope": 1810,
199 "sourceUnit": 3255,
200 "src": "25:29:12",
201 "symbolAliases": [],
202 "unitAlias": ""
203 },
204 {
205 "absolutePath": "/home/xv702/2zap/zap-ethereum-api/contracts/lib/ownership/ZapCoordinatorInterface.sol",
206 "file": "../ownership/ZapCoordinatorInterface.sol",
207 "id": 1661,
208 "nodeType": "ImportDirective",
209 "scope": 1810,
210 "sourceUnit": 494,
211 "src": "55:50:12",
212 "symbolAliases": [],
213 "unitAlias": ""
214 },
215 {
216 "absolutePath": "/home/xv702/2zap/zap-ethereum-api/contracts/platform/dispatch/DispatchInterface.sol",
217 "file": "../../platform/dispatch/DispatchInterface.sol",
218 "id": 1662,
219 "nodeType": "ImportDirective",
220 "scope": 1810,
221 "sourceUnit": 10148,
222 "src": "106:55:12",
223 "symbolAliases": [],
224 "unitAlias": ""
225 },
226 {
227 "absolutePath": "/home/xv702/2zap/zap-ethereum-api/contracts/lib/token/FactoryTokenInterface.sol",
228 "file": "../token/FactoryTokenInterface.sol",
229 "id": 1663,
230 "nodeType": "ImportDirective",
231 "scope": 1810,
232 "sourceUnit": 5199,
233 "src": "162:44:12",
234 "symbolAliases": [],
235 "unitAlias": ""
236 },
237 {
238 "absolutePath": "/home/xv702/2zap/zap-ethereum-api/contracts/platform/bondage/currentCost/CurrentCostInterface.sol",
239 "file": "../../platform/bondage/currentCost/CurrentCostInterface.sol",
240 "id": 1664,
241 "nodeType": "ImportDirective",
242 "scope": 1810,
243 "sourceUnit": 8127,
244 "src": "207:69:12",
245 "symbolAliases": [],
246 "unitAlias": ""
247 },
248 {
249 "absolutePath": "/home/xv702/2zap/zap-ethereum-api/contracts/lib/platform/Client.sol",
250 "file": "./Client.sol",
251 "id": 1665,
252 "nodeType": "ImportDirective",
253 "scope": 1810,
254 "sourceUnit": 870,
255 "src": "277:22:12",
256 "symbolAliases": [],
257 "unitAlias": ""
258 },
259 {
260 "baseContracts": [
261 {
262 "arguments": null,
263 "baseName": {
264 "contractScope": null,
265 "id": 1666,
266 "name": "Ownable",
267 "nodeType": "UserDefinedTypeName",
268 "referencedDeclaration": 203,
269 "src": "338:7:12",
270 "typeDescriptions": {
271 "typeIdentifier": "t_contract$_Ownable_$203",
272 "typeString": "contract Ownable"
273 }
274 },
275 "id": 1667,
276 "nodeType": "InheritanceSpecifier",
277 "src": "338:7:12"
278 },
279 {
280 "arguments": null,
281 "baseName": {
282 "contractScope": null,
283 "id": 1668,
284 "name": "ClientIntArray",
285 "nodeType": "UserDefinedTypeName",
286 "referencedDeclaration": 869,
287 "src": "347:14:12",
288 "typeDescriptions": {
289 "typeIdentifier": "t_contract$_ClientIntArray_$869",
290 "typeString": "contract ClientIntArray"
291 }
292 },
293 "id": 1669,
294 "nodeType": "InheritanceSpecifier",
295 "src": "347:14:12"
296 }
297 ],
298 "contractDependencies": [
299 203,
300 869
301 ],
302 "contractKind": "contract",
303 "documentation": null,
304 "fullyImplemented": false,
305 "id": 1809,
306 "linearizedBaseContracts": [
307 1809,
308 869,
309 203
310 ],
311 "name": "MostBondedByDateContest",
312 "nodeType": "ContractDefinition",
313 "nodes": [
314 {
315 "constant": false,
316 "id": 1671,
317 "name": "contest",
318 "nodeType": "VariableDeclaration",
319 "scope": 1809,
320 "src": "366:28:12",
321 "stateVariable": true,
322 "storageLocation": "default",
323 "typeDescriptions": {
324 "typeIdentifier": "t_contract$_SampleContest_$3254",
325 "typeString": "contract SampleContest"
326 },
327 "typeName": {
328 "contractScope": null,
329 "id": 1670,
330 "name": "SampleContest",
331 "nodeType": "UserDefinedTypeName",
332 "referencedDeclaration": 3254,
333 "src": "366:13:12",
334 "typeDescriptions": {
335 "typeIdentifier": "t_contract$_SampleContest_$3254",
336 "typeString": "contract SampleContest"
337 }
338 },
339 "value": null,
340 "visibility": "public"
341 },
342 {
343 "constant": false,
344 "id": 1673,
345 "name": "coordinator",
346 "nodeType": "VariableDeclaration",
347 "scope": 1809,
348 "src": "398:42:12",
349 "stateVariable": true,
350 "storageLocation": "default",
351 "typeDescriptions": {
352 "typeIdentifier": "t_contract$_ZapCoordinatorInterface_$493",
353 "typeString": "contract ZapCoordinatorInterface"
354 },
355 "typeName": {
356 "contractScope": null,
357 "id": 1672,
358 "name": "ZapCoordinatorInterface",
359 "nodeType": "UserDefinedTypeName",
360 "referencedDeclaration": 493,
361 "src": "398:23:12",
362 "typeDescriptions": {
363 "typeIdentifier": "t_contract$_ZapCoordinatorInterface_$493",
364 "typeString": "contract ZapCoordinatorInterface"
365 }
366 },
367 "value": null,
368 "visibility": "public"
369 },
370 {
371 "constant": false,
372 "id": 1675,
373 "name": "query_id",
374 "nodeType": "VariableDeclaration",
375 "scope": 1809,
376 "src": "444:23:12",
377 "stateVariable": true,
378 "storageLocation": "default",
379 "typeDescriptions": {
380 "typeIdentifier": "t_uint256",
381 "typeString": "uint256"
382 },
383 "typeName": {
384 "id": 1674,
385 "name": "uint256",
386 "nodeType": "ElementaryTypeName",
387 "src": "444:7:12",
388 "typeDescriptions": {
389 "typeIdentifier": "t_uint256",
390 "typeString": "uint256"
391 }
392 },
393 "value": null,
394 "visibility": "public"
395 },
396 {
397 "constant": false,
398 "id": 1677,
399 "name": "endtime",
400 "nodeType": "VariableDeclaration",
401 "scope": 1809,
402 "src": "471:22:12",
403 "stateVariable": true,
404 "storageLocation": "default",
405 "typeDescriptions": {
406 "typeIdentifier": "t_uint256",
407 "typeString": "uint256"
408 },
409 "typeName": {
410 "id": 1676,
411 "name": "uint256",
412 "nodeType": "ElementaryTypeName",
413 "src": "471:7:12",
414 "typeDescriptions": {
415 "typeIdentifier": "t_uint256",
416 "typeString": "uint256"
417 }
418 },
419 "value": null,
420 "visibility": "public"
421 },
422 {
423 "body": {
424 "id": 1702,
425 "nodeType": "Block",
426 "src": "576:118:12",
427 "statements": [
428 {
429 "expression": {
430 "argumentTypes": null,
431 "id": 1690,
432 "isConstant": false,
433 "isLValue": false,
434 "isPure": false,
435 "lValueRequested": false,
436 "leftHandSide": {
437 "argumentTypes": null,
438 "id": 1686,
439 "name": "contest",
440 "nodeType": "Identifier",
441 "overloadedDeclarations": [],
442 "referencedDeclaration": 1671,
443 "src": "582:7:12",
444 "typeDescriptions": {
445 "typeIdentifier": "t_contract$_SampleContest_$3254",
446 "typeString": "contract SampleContest"
447 }
448 },
449 "nodeType": "Assignment",
450 "operator": "=",
451 "rightHandSide": {
452 "argumentTypes": null,
453 "arguments": [
454 {
455 "argumentTypes": null,
456 "id": 1688,
457 "name": "_contest",
458 "nodeType": "Identifier",
459 "overloadedDeclarations": [],
460 "referencedDeclaration": 1681,
461 "src": "606:8:12",
462 "typeDescriptions": {
463 "typeIdentifier": "t_address",
464 "typeString": "address"
465 }
466 }
467 ],
468 "expression": {
469 "argumentTypes": [
470 {
471 "typeIdentifier": "t_address",
472 "typeString": "address"
473 }
474 ],
475 "id": 1687,
476 "name": "SampleContest",
477 "nodeType": "Identifier",
478 "overloadedDeclarations": [],
479 "referencedDeclaration": 3254,
480 "src": "592:13:12",
481 "typeDescriptions": {
482 "typeIdentifier": "t_type$_t_contract$_SampleContest_$3254_$",
483 "typeString": "type(contract SampleContest)"
484 }
485 },
486 "id": 1689,
487 "isConstant": false,
488 "isLValue": false,
489 "isPure": false,
490 "kind": "typeConversion",
491 "lValueRequested": false,
492 "names": [],
493 "nodeType": "FunctionCall",
494 "src": "592:23:12",
495 "typeDescriptions": {
496 "typeIdentifier": "t_contract$_SampleContest_$3254",
497 "typeString": "contract SampleContest"
498 }
499 },
500 "src": "582:33:12",
501 "typeDescriptions": {
502 "typeIdentifier": "t_contract$_SampleContest_$3254",
503 "typeString": "contract SampleContest"
504 }
505 },
506 "id": 1691,
507 "nodeType": "ExpressionStatement",
508 "src": "582:33:12"
509 },
510 {
511 "expression": {
512 "argumentTypes": null,
513 "id": 1696,
514 "isConstant": false,
515 "isLValue": false,
516 "isPure": false,
517 "lValueRequested": false,
518 "leftHandSide": {
519 "argumentTypes": null,
520 "id": 1692,
521 "name": "coordinator",
522 "nodeType": "Identifier",
523 "overloadedDeclarations": [],
524 "referencedDeclaration": 1673,
525 "src": "621:11:12",
526 "typeDescriptions": {
527 "typeIdentifier": "t_contract$_ZapCoordinatorInterface_$493",
528 "typeString": "contract ZapCoordinatorInterface"
529 }
530 },
531 "nodeType": "Assignment",
532 "operator": "=",
533 "rightHandSide": {
534 "argumentTypes": null,
535 "arguments": [
536 {
537 "argumentTypes": null,
538 "id": 1694,
539 "name": "_cord",
540 "nodeType": "Identifier",
541 "overloadedDeclarations": [],
542 "referencedDeclaration": 1679,
543 "src": "659:5:12",
544 "typeDescriptions": {
545 "typeIdentifier": "t_address",
546 "typeString": "address"
547 }
548 }
549 ],
550 "expression": {
551 "argumentTypes": [
552 {
553 "typeIdentifier": "t_address",
554 "typeString": "address"
555 }
556 ],
557 "id": 1693,
558 "name": "ZapCoordinatorInterface",
559 "nodeType": "Identifier",
560 "overloadedDeclarations": [],
561 "referencedDeclaration": 493,
562 "src": "635:23:12",
563 "typeDescriptions": {
564 "typeIdentifier": "t_type$_t_contract$_ZapCoordinatorInterface_$493_$",
565 "typeString": "type(contract ZapCoordinatorInterface)"
566 }
567 },
568 "id": 1695,
569 "isConstant": false,
570 "isLValue": false,
571 "isPure": false,
572 "kind": "typeConversion",
573 "lValueRequested": false,
574 "names": [],
575 "nodeType": "FunctionCall",
576 "src": "635:30:12",
577 "typeDescriptions": {
578 "typeIdentifier": "t_contract$_ZapCoordinatorInterface_$493",
579 "typeString": "contract ZapCoordinatorInterface"
580 }
581 },
582 "src": "621:44:12",
583 "typeDescriptions": {
584 "typeIdentifier": "t_contract$_ZapCoordinatorInterface_$493",
585 "typeString": "contract ZapCoordinatorInterface"
586 }
587 },
588 "id": 1697,
589 "nodeType": "ExpressionStatement",
590 "src": "621:44:12"
591 },
592 {
593 "expression": {
594 "argumentTypes": null,
595 "id": 1700,
596 "isConstant": false,
597 "isLValue": false,
598 "isPure": false,
599 "lValueRequested": false,
600 "leftHandSide": {
601 "argumentTypes": null,
602 "id": 1698,
603 "name": "endtime",
604 "nodeType": "Identifier",
605 "overloadedDeclarations": [],
606 "referencedDeclaration": 1677,
607 "src": "671:7:12",
608 "typeDescriptions": {
609 "typeIdentifier": "t_uint256",
610 "typeString": "uint256"
611 }
612 },
613 "nodeType": "Assignment",
614 "operator": "=",
615 "rightHandSide": {
616 "argumentTypes": null,
617 "id": 1699,
618 "name": "_endtime",
619 "nodeType": "Identifier",
620 "overloadedDeclarations": [],
621 "referencedDeclaration": 1683,
622 "src": "681:8:12",
623 "typeDescriptions": {
624 "typeIdentifier": "t_uint256",
625 "typeString": "uint256"
626 }
627 },
628 "src": "671:18:12",
629 "typeDescriptions": {
630 "typeIdentifier": "t_uint256",
631 "typeString": "uint256"
632 }
633 },
634 "id": 1701,
635 "nodeType": "ExpressionStatement",
636 "src": "671:18:12"
637 }
638 ]
639 },
640 "documentation": null,
641 "id": 1703,
642 "implemented": true,
643 "isConstructor": true,
644 "isDeclaredConst": false,
645 "modifiers": [],
646 "name": "",
647 "nodeType": "FunctionDefinition",
648 "parameters": {
649 "id": 1684,
650 "nodeType": "ParameterList",
651 "parameters": [
652 {
653 "constant": false,
654 "id": 1679,
655 "name": "_cord",
656 "nodeType": "VariableDeclaration",
657 "scope": 1703,
658 "src": "515:13:12",
659 "stateVariable": false,
660 "storageLocation": "default",
661 "typeDescriptions": {
662 "typeIdentifier": "t_address",
663 "typeString": "address"
664 },
665 "typeName": {
666 "id": 1678,
667 "name": "address",
668 "nodeType": "ElementaryTypeName",
669 "src": "515:7:12",
670 "typeDescriptions": {
671 "typeIdentifier": "t_address",
672 "typeString": "address"
673 }
674 },
675 "value": null,
676 "visibility": "internal"
677 },
678 {
679 "constant": false,
680 "id": 1681,
681 "name": "_contest",
682 "nodeType": "VariableDeclaration",
683 "scope": 1703,
684 "src": "534:16:12",
685 "stateVariable": false,
686 "storageLocation": "default",
687 "typeDescriptions": {
688 "typeIdentifier": "t_address",
689 "typeString": "address"
690 },
691 "typeName": {
692 "id": 1680,
693 "name": "address",
694 "nodeType": "ElementaryTypeName",
695 "src": "534:7:12",
696 "typeDescriptions": {
697 "typeIdentifier": "t_address",
698 "typeString": "address"
699 }
700 },
701 "value": null,
702 "visibility": "internal"
703 },
704 {
705 "constant": false,
706 "id": 1683,
707 "name": "_endtime",
708 "nodeType": "VariableDeclaration",
709 "scope": 1703,
710 "src": "556:16:12",
711 "stateVariable": false,
712 "storageLocation": "default",
713 "typeDescriptions": {
714 "typeIdentifier": "t_uint256",
715 "typeString": "uint256"
716 },
717 "typeName": {
718 "id": 1682,
719 "name": "uint256",
720 "nodeType": "ElementaryTypeName",
721 "src": "556:7:12",
722 "typeDescriptions": {
723 "typeIdentifier": "t_uint256",
724 "typeString": "uint256"
725 }
726 },
727 "value": null,
728 "visibility": "internal"
729 }
730 ],
731 "src": "509:67:12"
732 },
733 "payable": false,
734 "returnParameters": {
735 "id": 1685,
736 "nodeType": "ParameterList",
737 "parameters": [],
738 "src": "576:0:12"
739 },
740 "scope": 1809,
741 "src": "498:196:12",
742 "stateMutability": "nonpayable",
743 "superFunction": null,
744 "visibility": "public"
745 },
746 {
747 "body": {
748 "id": 1799,
749 "nodeType": "Block",
750 "src": "716:632:12",
751 "statements": [
752 {
753 "expression": {
754 "argumentTypes": null,
755 "arguments": [
756 {
757 "argumentTypes": null,
758 "commonType": {
759 "typeIdentifier": "t_uint256",
760 "typeString": "uint256"
761 },
762 "id": 1711,
763 "isConstant": false,
764 "isLValue": false,
765 "isPure": false,
766 "lValueRequested": false,
767 "leftExpression": {
768 "argumentTypes": null,
769 "arguments": [],
770 "expression": {
771 "argumentTypes": [],
772 "expression": {
773 "argumentTypes": null,
774 "id": 1707,
775 "name": "contest",
776 "nodeType": "Identifier",
777 "overloadedDeclarations": [],
778 "referencedDeclaration": 1671,
779 "src": "730:7:12",
780 "typeDescriptions": {
781 "typeIdentifier": "t_contract$_SampleContest_$3254",
782 "typeString": "contract SampleContest"
783 }
784 },
785 "id": 1708,
786 "isConstant": false,
787 "isLValue": false,
788 "isPure": false,
789 "lValueRequested": false,
790 "memberName": "getStatus",
791 "nodeType": "MemberAccess",
792 "referencedDeclaration": 3083,
793 "src": "730:17:12",
794 "typeDescriptions": {
795 "typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$",
796 "typeString": "function () view external returns (uint256)"
797 }
798 },
799 "id": 1709,
800 "isConstant": false,
801 "isLValue": false,
802 "isPure": false,
803 "kind": "functionCall",
804 "lValueRequested": false,
805 "names": [],
806 "nodeType": "FunctionCall",
807 "src": "730:19:12",
808 "typeDescriptions": {
809 "typeIdentifier": "t_uint256",
810 "typeString": "uint256"
811 }
812 },
813 "nodeType": "BinaryOperation",
814 "operator": "==",
815 "rightExpression": {
816 "argumentTypes": null,
817 "hexValue": "31",
818 "id": 1710,
819 "isConstant": false,
820 "isLValue": false,
821 "isPure": true,
822 "kind": "number",
823 "lValueRequested": false,
824 "nodeType": "Literal",
825 "src": "751:1:12",
826 "subdenomination": null,
827 "typeDescriptions": {
828 "typeIdentifier": "t_rational_1_by_1",
829 "typeString": "int_const 1"
830 },
831 "value": "1"
832 },
833 "src": "730:22:12",
834 "typeDescriptions": {
835 "typeIdentifier": "t_bool",
836 "typeString": "bool"
837 }
838 },
839 {
840 "argumentTypes": null,
841 "hexValue": "436f6e7465737420697320696e20696e697469616c697a6564207374617465",
842 "id": 1712,
843 "isConstant": false,
844 "isLValue": false,
845 "isPure": true,
846 "kind": "string",
847 "lValueRequested": false,
848 "nodeType": "Literal",
849 "src": "753:33:12",
850 "subdenomination": null,
851 "typeDescriptions": {
852 "typeIdentifier": "t_stringliteral_b37e1741f39eb8d548b183b8229541059f58abf7c79c8c4bd1179cd959567856",
853 "typeString": "literal_string \"Contest is in initialized state\""
854 },
855 "value": "Contest is in initialized state"
856 }
857 ],
858 "expression": {
859 "argumentTypes": [
860 {
861 "typeIdentifier": "t_bool",
862 "typeString": "bool"
863 },
864 {
865 "typeIdentifier": "t_stringliteral_b37e1741f39eb8d548b183b8229541059f58abf7c79c8c4bd1179cd959567856",
866 "typeString": "literal_string \"Contest is in initialized state\""
867 }
868 ],
869 "id": 1706,
870 "name": "require",
871 "nodeType": "Identifier",
872 "overloadedDeclarations": [
873 12095,
874 12096
875 ],
876 "referencedDeclaration": 12096,
877 "src": "722:7:12",
878 "typeDescriptions": {
879 "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
880 "typeString": "function (bool,string memory) pure"
881 }
882 },
883 "id": 1713,
884 "isConstant": false,
885 "isLValue": false,
886 "isPure": false,
887 "kind": "functionCall",
888 "lValueRequested": false,
889 "names": [],
890 "nodeType": "FunctionCall",
891 "src": "722:65:12",
892 "typeDescriptions": {
893 "typeIdentifier": "t_tuple$__$",
894 "typeString": "tuple()"
895 }
896 },
897 "id": 1714,
898 "nodeType": "ExpressionStatement",
899 "src": "722:65:12"
900 },
901 {
902 "expression": {
903 "argumentTypes": null,
904 "arguments": [
905 {
906 "argumentTypes": null,
907 "commonType": {
908 "typeIdentifier": "t_uint256",
909 "typeString": "uint256"
910 },
911 "id": 1718,
912 "isConstant": false,
913 "isLValue": false,
914 "isPure": false,
915 "lValueRequested": false,
916 "leftExpression": {
917 "argumentTypes": null,
918 "id": 1716,
919 "name": "now",
920 "nodeType": "Identifier",
921 "overloadedDeclarations": [],
922 "referencedDeclaration": 12094,
923 "src": "802:3:12",
924 "typeDescriptions": {
925 "typeIdentifier": "t_uint256",
926 "typeString": "uint256"
927 }
928 },
929 "nodeType": "BinaryOperation",
930 "operator": ">",
931 "rightExpression": {
932 "argumentTypes": null,
933 "id": 1717,
934 "name": "endtime",
935 "nodeType": "Identifier",
936 "overloadedDeclarations": [],
937 "referencedDeclaration": 1677,
938 "src": "808:7:12",
939 "typeDescriptions": {
940 "typeIdentifier": "t_uint256",
941 "typeString": "uint256"
942 }
943 },
944 "src": "802:13:12",
945 "typeDescriptions": {
946 "typeIdentifier": "t_bool",
947 "typeString": "bool"
948 }
949 },
950 {
951 "argumentTypes": null,
952 "hexValue": "436f6e74657374206973207374696c6c20616374697665",
953 "id": 1719,
954 "isConstant": false,
955 "isLValue": false,
956 "isPure": true,
957 "kind": "string",
958 "lValueRequested": false,
959 "nodeType": "Literal",
960 "src": "817:25:12",
961 "subdenomination": null,
962 "typeDescriptions": {
963 "typeIdentifier": "t_stringliteral_94d89a62047dd2cc92dc30fbdf11b30d3a90271efe59acc92e1176796a6a1950",
964 "typeString": "literal_string \"Contest is still active\""
965 },
966 "value": "Contest is still active"
967 }
968 ],
969 "expression": {
970 "argumentTypes": [
971 {
972 "typeIdentifier": "t_bool",
973 "typeString": "bool"
974 },
975 {
976 "typeIdentifier": "t_stringliteral_94d89a62047dd2cc92dc30fbdf11b30d3a90271efe59acc92e1176796a6a1950",
977 "typeString": "literal_string \"Contest is still active\""
978 }
979 ],
980 "id": 1715,
981 "name": "require",
982 "nodeType": "Identifier",
983 "overloadedDeclarations": [
984 12095,
985 12096
986 ],
987 "referencedDeclaration": 12096,
988 "src": "794:7:12",
989 "typeDescriptions": {
990 "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
991 "typeString": "function (bool,string memory) pure"
992 }
993 },
994 "id": 1720,
995 "isConstant": false,
996 "isLValue": false,
997 "isPure": false,
998 "kind": "functionCall",
999 "lValueRequested": false,
1000 "names": [],
1001 "nodeType": "FunctionCall",
1002 "src": "794:49:12",
1003 "typeDescriptions": {
1004 "typeIdentifier": "t_tuple$__$",
1005 "typeString": "tuple()"
1006 }
1007 },
1008 "id": 1721,
1009 "nodeType": "ExpressionStatement",
1010 "src": "794:49:12"
1011 },
1012 {
1013 "assignments": [
1014 1723
1015 ],
1016 "declarations": [
1017 {
1018 "constant": false,
1019 "id": 1723,
1020 "name": "bondageAddress",
1021 "nodeType": "VariableDeclaration",
1022 "scope": 1800,
1023 "src": "849:22:12",
1024 "stateVariable": false,
1025 "storageLocation": "default",
1026 "typeDescriptions": {
1027 "typeIdentifier": "t_address",
1028 "typeString": "address"
1029 },
1030 "typeName": {
1031 "id": 1722,
1032 "name": "address",
1033 "nodeType": "ElementaryTypeName",
1034 "src": "849:7:12",
1035 "typeDescriptions": {
1036 "typeIdentifier": "t_address",
1037 "typeString": "address"
1038 }
1039 },
1040 "value": null,
1041 "visibility": "internal"
1042 }
1043 ],
1044 "id": 1728,
1045 "initialValue": {
1046 "argumentTypes": null,
1047 "arguments": [
1048 {
1049 "argumentTypes": null,
1050 "hexValue": "424f4e44414745",
1051 "id": 1726,
1052 "isConstant": false,
1053 "isLValue": false,
1054 "isPure": true,
1055 "kind": "string",
1056 "lValueRequested": false,
1057 "nodeType": "Literal",
1058 "src": "898:9:12",
1059 "subdenomination": null,
1060 "typeDescriptions": {
1061 "typeIdentifier": "t_stringliteral_8db6e752c473cf27fd950e9b9ac06384370d511fb552ce5f96812082c602436b",
1062 "typeString": "literal_string \"BONDAGE\""
1063 },
1064 "value": "BONDAGE"
1065 }
1066 ],
1067 "expression": {
1068 "argumentTypes": [
1069 {
1070 "typeIdentifier": "t_stringliteral_8db6e752c473cf27fd950e9b9ac06384370d511fb552ce5f96812082c602436b",
1071 "typeString": "literal_string \"BONDAGE\""
1072 }
1073 ],
1074 "expression": {
1075 "argumentTypes": null,
1076 "id": 1724,
1077 "name": "coordinator",
1078 "nodeType": "Identifier",
1079 "overloadedDeclarations": [],
1080 "referencedDeclaration": 1673,
1081 "src": "874:11:12",
1082 "typeDescriptions": {
1083 "typeIdentifier": "t_contract$_ZapCoordinatorInterface_$493",
1084 "typeString": "contract ZapCoordinatorInterface"
1085 }
1086 },
1087 "id": 1725,
1088 "isConstant": false,
1089 "isLValue": false,
1090 "isPure": false,
1091 "lValueRequested": false,
1092 "memberName": "getContract",
1093 "nodeType": "MemberAccess",
1094 "referencedDeclaration": 489,
1095 "src": "874:23:12",
1096 "typeDescriptions": {
1097 "typeIdentifier": "t_function_external_view$_t_string_memory_ptr_$returns$_t_address_$",
1098 "typeString": "function (string memory) view external returns (address)"
1099 }
1100 },
1101 "id": 1727,
1102 "isConstant": false,
1103 "isLValue": false,
1104 "isPure": false,
1105 "kind": "functionCall",
1106 "lValueRequested": false,
1107 "names": [],
1108 "nodeType": "FunctionCall",
1109 "src": "874:34:12",
1110 "typeDescriptions": {
1111 "typeIdentifier": "t_address",
1112 "typeString": "address"
1113 }
1114 },
1115 "nodeType": "VariableDeclarationStatement",
1116 "src": "849:59:12"
1117 },
1118 {
1119 "assignments": [
1120 1730
1121 ],
1122 "declarations": [
1123 {
1124 "constant": false,
1125 "id": 1730,
1126 "name": "bondage",
1127 "nodeType": "VariableDeclaration",
1128 "scope": 1800,
1129 "src": "914:24:12",
1130 "stateVariable": false,
1131 "storageLocation": "default",
1132 "typeDescriptions": {
1133 "typeIdentifier": "t_contract$_BondageInterface_$7926",
1134 "typeString": "contract BondageInterface"
1135 },
1136 "typeName": {
1137 "contractScope": null,
1138 "id": 1729,
1139 "name": "BondageInterface",
1140 "nodeType": "UserDefinedTypeName",
1141 "referencedDeclaration": 7926,
1142 "src": "914:16:12",
1143 "typeDescriptions": {
1144 "typeIdentifier": "t_contract$_BondageInterface_$7926",
1145 "typeString": "contract BondageInterface"
1146 }
1147 },
1148 "value": null,
1149 "visibility": "internal"
1150 }
1151 ],
1152 "id": 1734,
1153 "initialValue": {
1154 "argumentTypes": null,
1155 "arguments": [
1156 {
1157 "argumentTypes": null,
1158 "id": 1732,
1159 "name": "bondageAddress",
1160 "nodeType": "Identifier",
1161 "overloadedDeclarations": [],
1162 "referencedDeclaration": 1723,
1163 "src": "958:14:12",
1164 "typeDescriptions": {
1165 "typeIdentifier": "t_address",
1166 "typeString": "address"
1167 }
1168 }
1169 ],
1170 "expression": {
1171 "argumentTypes": [
1172 {
1173 "typeIdentifier": "t_address",
1174 "typeString": "address"
1175 }
1176 ],
1177 "id": 1731,
1178 "name": "BondageInterface",
1179 "nodeType": "Identifier",
1180 "overloadedDeclarations": [],
1181 "referencedDeclaration": 7926,
1182 "src": "941:16:12",
1183 "typeDescriptions": {
1184 "typeIdentifier": "t_type$_t_contract$_BondageInterface_$7926_$",
1185 "typeString": "type(contract BondageInterface)"
1186 }
1187 },
1188 "id": 1733,
1189 "isConstant": false,
1190 "isLValue": false,
1191 "isPure": false,
1192 "kind": "typeConversion",
1193 "lValueRequested": false,
1194 "names": [],
1195 "nodeType": "FunctionCall",
1196 "src": "941:32:12",
1197 "typeDescriptions": {
1198 "typeIdentifier": "t_contract$_BondageInterface_$7926",
1199 "typeString": "contract BondageInterface"
1200 }
1201 },
1202 "nodeType": "VariableDeclarationStatement",
1203 "src": "914:59:12"
1204 },
1205 {
1206 "assignments": [
1207 1738
1208 ],
1209 "declarations": [
1210 {
1211 "constant": false,
1212 "id": 1738,
1213 "name": "endpoints",
1214 "nodeType": "VariableDeclaration",
1215 "scope": 1800,
1216 "src": "979:26:12",
1217 "stateVariable": false,
1218 "storageLocation": "memory",
1219 "typeDescriptions": {
1220 "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
1221 "typeString": "bytes32[]"
1222 },
1223 "typeName": {
1224 "baseType": {
1225 "id": 1736,
1226 "name": "bytes32",
1227 "nodeType": "ElementaryTypeName",
1228 "src": "979:7:12",
1229 "typeDescriptions": {
1230 "typeIdentifier": "t_bytes32",
1231 "typeString": "bytes32"
1232 }
1233 },
1234 "id": 1737,
1235 "length": null,
1236 "nodeType": "ArrayTypeName",
1237 "src": "979:9:12",
1238 "typeDescriptions": {
1239 "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
1240 "typeString": "bytes32[]"
1241 }
1242 },
1243 "value": null,
1244 "visibility": "internal"
1245 }
1246 ],
1247 "id": 1742,
1248 "initialValue": {
1249 "argumentTypes": null,
1250 "arguments": [],
1251 "expression": {
1252 "argumentTypes": [],
1253 "expression": {
1254 "argumentTypes": null,
1255 "id": 1739,
1256 "name": "contest",
1257 "nodeType": "Identifier",
1258 "overloadedDeclarations": [],
1259 "referencedDeclaration": 1671,
1260 "src": "1008:7:12",
1261 "typeDescriptions": {
1262 "typeIdentifier": "t_contract$_SampleContest_$3254",
1263 "typeString": "contract SampleContest"
1264 }
1265 },
1266 "id": 1740,
1267 "isConstant": false,
1268 "isLValue": false,
1269 "isPure": false,
1270 "lValueRequested": false,
1271 "memberName": "getEndpoints",
1272 "nodeType": "MemberAccess",
1273 "referencedDeclaration": 3073,
1274 "src": "1008:20:12",
1275 "typeDescriptions": {
1276 "typeIdentifier": "t_function_external_view$__$returns$_t_array$_t_bytes32_$dyn_memory_ptr_$",
1277 "typeString": "function () view external returns (bytes32[] memory)"
1278 }
1279 },
1280 "id": 1741,
1281 "isConstant": false,
1282 "isLValue": false,
1283 "isPure": false,
1284 "kind": "functionCall",
1285 "lValueRequested": false,
1286 "names": [],
1287 "nodeType": "FunctionCall",
1288 "src": "1008:22:12",
1289 "typeDescriptions": {
1290 "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
1291 "typeString": "bytes32[] memory"
1292 }
1293 },
1294 "nodeType": "VariableDeclarationStatement",
1295 "src": "979:51:12"
1296 },
1297 {
1298 "assignments": [],
1299 "declarations": [
1300 {
1301 "constant": false,
1302 "id": 1744,
1303 "name": "winner",
1304 "nodeType": "VariableDeclaration",
1305 "scope": 1800,
1306 "src": "1036:14:12",
1307 "stateVariable": false,
1308 "storageLocation": "default",
1309 "typeDescriptions": {
1310 "typeIdentifier": "t_bytes32",
1311 "typeString": "bytes32"
1312 },
1313 "typeName": {
1314 "id": 1743,
1315 "name": "bytes32",
1316 "nodeType": "ElementaryTypeName",
1317 "src": "1036:7:12",
1318 "typeDescriptions": {
1319 "typeIdentifier": "t_bytes32",
1320 "typeString": "bytes32"
1321 }
1322 },
1323 "value": null,
1324 "visibility": "internal"
1325 }
1326 ],
1327 "id": 1745,
1328 "initialValue": null,
1329 "nodeType": "VariableDeclarationStatement",
1330 "src": "1036:14:12"
1331 },
1332 {
1333 "assignments": [
1334 1747
1335 ],
1336 "declarations": [
1337 {
1338 "constant": false,
1339 "id": 1747,
1340 "name": "max",
1341 "nodeType": "VariableDeclaration",
1342 "scope": 1800,
1343 "src": "1056:11:12",
1344 "stateVariable": false,
1345 "storageLocation": "default",
1346 "typeDescriptions": {
1347 "typeIdentifier": "t_uint256",
1348 "typeString": "uint256"
1349 },
1350 "typeName": {
1351 "id": 1746,
1352 "name": "uint256",
1353 "nodeType": "ElementaryTypeName",
1354 "src": "1056:7:12",
1355 "typeDescriptions": {
1356 "typeIdentifier": "t_uint256",
1357 "typeString": "uint256"
1358 }
1359 },
1360 "value": null,
1361 "visibility": "internal"
1362 }
1363 ],
1364 "id": 1749,
1365 "initialValue": {
1366 "argumentTypes": null,
1367 "hexValue": "30",
1368 "id": 1748,
1369 "isConstant": false,
1370 "isLValue": false,
1371 "isPure": true,
1372 "kind": "number",
1373 "lValueRequested": false,
1374 "nodeType": "Literal",
1375 "src": "1070:1:12",
1376 "subdenomination": null,
1377 "typeDescriptions": {
1378 "typeIdentifier": "t_rational_0_by_1",
1379 "typeString": "int_const 0"
1380 },
1381 "value": "0"
1382 },
1383 "nodeType": "VariableDeclarationStatement",
1384 "src": "1056:15:12"
1385 },
1386 {
1387 "assignments": [],
1388 "declarations": [
1389 {
1390 "constant": false,
1391 "id": 1751,
1392 "name": "bound",
1393 "nodeType": "VariableDeclaration",
1394 "scope": 1800,
1395 "src": "1077:13:12",
1396 "stateVariable": false,
1397 "storageLocation": "default",
1398 "typeDescriptions": {
1399 "typeIdentifier": "t_uint256",
1400 "typeString": "uint256"
1401 },
1402 "typeName": {
1403 "id": 1750,
1404 "name": "uint256",
1405 "nodeType": "ElementaryTypeName",
1406 "src": "1077:7:12",
1407 "typeDescriptions": {
1408 "typeIdentifier": "t_uint256",
1409 "typeString": "uint256"
1410 }
1411 },
1412 "value": null,
1413 "visibility": "internal"
1414 }
1415 ],
1416 "id": 1752,
1417 "initialValue": null,
1418 "nodeType": "VariableDeclarationStatement",
1419 "src": "1077:13:12"
1420 },
1421 {
1422 "body": {
1423 "id": 1791,
1424 "nodeType": "Block",
1425 "src": "1143:174:12",
1426 "statements": [
1427 {
1428 "expression": {
1429 "argumentTypes": null,
1430 "id": 1774,
1431 "isConstant": false,
1432 "isLValue": false,
1433 "isPure": false,
1434 "lValueRequested": false,
1435 "leftHandSide": {
1436 "argumentTypes": null,
1437 "id": 1764,
1438 "name": "bound",
1439 "nodeType": "Identifier",
1440 "overloadedDeclarations": [],
1441 "referencedDeclaration": 1751,
1442 "src": "1153:5:12",
1443 "typeDescriptions": {
1444 "typeIdentifier": "t_uint256",
1445 "typeString": "uint256"
1446 }
1447 },
1448 "nodeType": "Assignment",
1449 "operator": "=",
1450 "rightHandSide": {
1451 "argumentTypes": null,
1452 "arguments": [
1453 {
1454 "argumentTypes": null,
1455 "arguments": [
1456 {
1457 "argumentTypes": null,
1458 "id": 1768,
1459 "name": "contest",
1460 "nodeType": "Identifier",
1461 "overloadedDeclarations": [],
1462 "referencedDeclaration": 1671,
1463 "src": "1189:7:12",
1464 "typeDescriptions": {
1465 "typeIdentifier": "t_contract$_SampleContest_$3254",
1466 "typeString": "contract SampleContest"
1467 }
1468 }
1469 ],
1470 "expression": {
1471 "argumentTypes": [
1472 {
1473 "typeIdentifier": "t_contract$_SampleContest_$3254",
1474 "typeString": "contract SampleContest"
1475 }
1476 ],
1477 "id": 1767,
1478 "isConstant": false,
1479 "isLValue": false,
1480 "isPure": true,
1481 "lValueRequested": false,
1482 "nodeType": "ElementaryTypeNameExpression",
1483 "src": "1181:7:12",
1484 "typeDescriptions": {
1485 "typeIdentifier": "t_type$_t_address_$",
1486 "typeString": "type(address)"
1487 },
1488 "typeName": "address"
1489 },
1490 "id": 1769,
1491 "isConstant": false,
1492 "isLValue": false,
1493 "isPure": false,
1494 "kind": "typeConversion",
1495 "lValueRequested": false,
1496 "names": [],
1497 "nodeType": "FunctionCall",
1498 "src": "1181:16:12",
1499 "typeDescriptions": {
1500 "typeIdentifier": "t_address",
1501 "typeString": "address"
1502 }
1503 },
1504 {
1505 "argumentTypes": null,
1506 "baseExpression": {
1507 "argumentTypes": null,
1508 "id": 1770,
1509 "name": "endpoints",
1510 "nodeType": "Identifier",
1511 "overloadedDeclarations": [],
1512 "referencedDeclaration": 1738,
1513 "src": "1199:9:12",
1514 "typeDescriptions": {
1515 "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
1516 "typeString": "bytes32[] memory"
1517 }
1518 },
1519 "id": 1772,
1520 "indexExpression": {
1521 "argumentTypes": null,
1522 "id": 1771,
1523 "name": "i",
1524 "nodeType": "Identifier",
1525 "overloadedDeclarations": [],
1526 "referencedDeclaration": 1754,
1527 "src": "1209:1:12",
1528 "typeDescriptions": {
1529 "typeIdentifier": "t_uint256",
1530 "typeString": "uint256"
1531 }
1532 },
1533 "isConstant": false,
1534 "isLValue": true,
1535 "isPure": false,
1536 "lValueRequested": false,
1537 "nodeType": "IndexAccess",
1538 "src": "1199:12:12",
1539 "typeDescriptions": {
1540 "typeIdentifier": "t_bytes32",
1541 "typeString": "bytes32"
1542 }
1543 }
1544 ],
1545 "expression": {
1546 "argumentTypes": [
1547 {
1548 "typeIdentifier": "t_address",
1549 "typeString": "address"
1550 },
1551 {
1552 "typeIdentifier": "t_bytes32",
1553 "typeString": "bytes32"
1554 }
1555 ],
1556 "expression": {
1557 "argumentTypes": null,
1558 "id": 1765,
1559 "name": "bondage",
1560 "nodeType": "Identifier",
1561 "overloadedDeclarations": [],
1562 "referencedDeclaration": 1730,
1563 "src": "1161:7:12",
1564 "typeDescriptions": {
1565 "typeIdentifier": "t_contract$_BondageInterface_$7926",
1566 "typeString": "contract BondageInterface"
1567 }
1568 },
1569 "id": 1766,
1570 "isConstant": false,
1571 "isLValue": false,
1572 "isPure": false,
1573 "lValueRequested": false,
1574 "memberName": "getZapBound",
1575 "nodeType": "MemberAccess",
1576 "referencedDeclaration": 7916,
1577 "src": "1161:19:12",
1578 "typeDescriptions": {
1579 "typeIdentifier": "t_function_external_view$_t_address_$_t_bytes32_$returns$_t_uint256_$",
1580 "typeString": "function (address,bytes32) view external returns (uint256)"
1581 }
1582 },
1583 "id": 1773,
1584 "isConstant": false,
1585 "isLValue": false,
1586 "isPure": false,
1587 "kind": "functionCall",
1588 "lValueRequested": false,
1589 "names": [],
1590 "nodeType": "FunctionCall",
1591 "src": "1161:51:12",
1592 "typeDescriptions": {
1593 "typeIdentifier": "t_uint256",
1594 "typeString": "uint256"
1595 }
1596 },
1597 "src": "1153:59:12",
1598 "typeDescriptions": {
1599 "typeIdentifier": "t_uint256",
1600 "typeString": "uint256"
1601 }
1602 },
1603 "id": 1775,
1604 "nodeType": "ExpressionStatement",
1605 "src": "1153:59:12"
1606 },
1607 {
1608 "condition": {
1609 "argumentTypes": null,
1610 "commonType": {
1611 "typeIdentifier": "t_uint256",
1612 "typeString": "uint256"
1613 },
1614 "id": 1778,
1615 "isConstant": false,
1616 "isLValue": false,
1617 "isPure": false,
1618 "lValueRequested": false,
1619 "leftExpression": {
1620 "argumentTypes": null,
1621 "id": 1776,
1622 "name": "bound",
1623 "nodeType": "Identifier",
1624 "overloadedDeclarations": [],
1625 "referencedDeclaration": 1751,
1626 "src": "1227:5:12",
1627 "typeDescriptions": {
1628 "typeIdentifier": "t_uint256",
1629 "typeString": "uint256"
1630 }
1631 },
1632 "nodeType": "BinaryOperation",
1633 "operator": ">",
1634 "rightExpression": {
1635 "argumentTypes": null,
1636 "id": 1777,
1637 "name": "max",
1638 "nodeType": "Identifier",
1639 "overloadedDeclarations": [],
1640 "referencedDeclaration": 1747,
1641 "src": "1235:3:12",
1642 "typeDescriptions": {
1643 "typeIdentifier": "t_uint256",
1644 "typeString": "uint256"
1645 }
1646 },
1647 "src": "1227:11:12",
1648 "typeDescriptions": {
1649 "typeIdentifier": "t_bool",
1650 "typeString": "bool"
1651 }
1652 },
1653 "falseBody": null,
1654 "id": 1790,
1655 "nodeType": "IfStatement",
1656 "src": "1223:88:12",
1657 "trueBody": {
1658 "id": 1789,
1659 "nodeType": "Block",
1660 "src": "1240:71:12",
1661 "statements": [
1662 {
1663 "expression": {
1664 "argumentTypes": null,
1665 "id": 1781,
1666 "isConstant": false,
1667 "isLValue": false,
1668 "isPure": false,
1669 "lValueRequested": false,
1670 "leftHandSide": {
1671 "argumentTypes": null,
1672 "id": 1779,
1673 "name": "max",
1674 "nodeType": "Identifier",
1675 "overloadedDeclarations": [],
1676 "referencedDeclaration": 1747,
1677 "src": "1254:3:12",
1678 "typeDescriptions": {
1679 "typeIdentifier": "t_uint256",
1680 "typeString": "uint256"
1681 }
1682 },
1683 "nodeType": "Assignment",
1684 "operator": "=",
1685 "rightHandSide": {
1686 "argumentTypes": null,
1687 "id": 1780,
1688 "name": "bound",
1689 "nodeType": "Identifier",
1690 "overloadedDeclarations": [],
1691 "referencedDeclaration": 1751,
1692 "src": "1260:5:12",
1693 "typeDescriptions": {
1694 "typeIdentifier": "t_uint256",
1695 "typeString": "uint256"
1696 }
1697 },
1698 "src": "1254:11:12",
1699 "typeDescriptions": {
1700 "typeIdentifier": "t_uint256",
1701 "typeString": "uint256"
1702 }
1703 },
1704 "id": 1782,
1705 "nodeType": "ExpressionStatement",
1706 "src": "1254:11:12"
1707 },
1708 {
1709 "expression": {
1710 "argumentTypes": null,
1711 "id": 1787,
1712 "isConstant": false,
1713 "isLValue": false,
1714 "isPure": false,
1715 "lValueRequested": false,
1716 "leftHandSide": {
1717 "argumentTypes": null,
1718 "id": 1783,
1719 "name": "winner",
1720 "nodeType": "Identifier",
1721 "overloadedDeclarations": [],
1722 "referencedDeclaration": 1744,
1723 "src": "1279:6:12",
1724 "typeDescriptions": {
1725 "typeIdentifier": "t_bytes32",
1726 "typeString": "bytes32"
1727 }
1728 },
1729 "nodeType": "Assignment",
1730 "operator": "=",
1731 "rightHandSide": {
1732 "argumentTypes": null,
1733 "baseExpression": {
1734 "argumentTypes": null,
1735 "id": 1784,
1736 "name": "endpoints",
1737 "nodeType": "Identifier",
1738 "overloadedDeclarations": [],
1739 "referencedDeclaration": 1738,
1740 "src": "1288:9:12",
1741 "typeDescriptions": {
1742 "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
1743 "typeString": "bytes32[] memory"
1744 }
1745 },
1746 "id": 1786,
1747 "indexExpression": {
1748 "argumentTypes": null,
1749 "id": 1785,
1750 "name": "i",
1751 "nodeType": "Identifier",
1752 "overloadedDeclarations": [],
1753 "referencedDeclaration": 1754,
1754 "src": "1298:1:12",
1755 "typeDescriptions": {
1756 "typeIdentifier": "t_uint256",
1757 "typeString": "uint256"
1758 }
1759 },
1760 "isConstant": false,
1761 "isLValue": true,
1762 "isPure": false,
1763 "lValueRequested": false,
1764 "nodeType": "IndexAccess",
1765 "src": "1288:12:12",
1766 "typeDescriptions": {
1767 "typeIdentifier": "t_bytes32",
1768 "typeString": "bytes32"
1769 }
1770 },
1771 "src": "1279:21:12",
1772 "typeDescriptions": {
1773 "typeIdentifier": "t_bytes32",
1774 "typeString": "bytes32"
1775 }
1776 },
1777 "id": 1788,
1778 "nodeType": "ExpressionStatement",
1779 "src": "1279:21:12"
1780 }
1781 ]
1782 }
1783 }
1784 ]
1785 },
1786 "condition": {
1787 "argumentTypes": null,
1788 "commonType": {
1789 "typeIdentifier": "t_uint256",
1790 "typeString": "uint256"
1791 },
1792 "id": 1760,
1793 "isConstant": false,
1794 "isLValue": false,
1795 "isPure": false,
1796 "lValueRequested": false,
1797 "leftExpression": {
1798 "argumentTypes": null,
1799 "id": 1757,
1800 "name": "i",
1801 "nodeType": "Identifier",
1802 "overloadedDeclarations": [],
1803 "referencedDeclaration": 1754,
1804 "src": "1116:1:12",
1805 "typeDescriptions": {
1806 "typeIdentifier": "t_uint256",
1807 "typeString": "uint256"
1808 }
1809 },
1810 "nodeType": "BinaryOperation",
1811 "operator": "<",
1812 "rightExpression": {
1813 "argumentTypes": null,
1814 "expression": {
1815 "argumentTypes": null,
1816 "id": 1758,
1817 "name": "endpoints",
1818 "nodeType": "Identifier",
1819 "overloadedDeclarations": [],
1820 "referencedDeclaration": 1738,
1821 "src": "1120:9:12",
1822 "typeDescriptions": {
1823 "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
1824 "typeString": "bytes32[] memory"
1825 }
1826 },
1827 "id": 1759,
1828 "isConstant": false,
1829 "isLValue": false,
1830 "isPure": false,
1831 "lValueRequested": false,
1832 "memberName": "length",
1833 "nodeType": "MemberAccess",
1834 "referencedDeclaration": null,
1835 "src": "1120:16:12",
1836 "typeDescriptions": {
1837 "typeIdentifier": "t_uint256",
1838 "typeString": "uint256"
1839 }
1840 },
1841 "src": "1116:20:12",
1842 "typeDescriptions": {
1843 "typeIdentifier": "t_bool",
1844 "typeString": "bool"
1845 }
1846 },
1847 "id": 1792,
1848 "initializationExpression": {
1849 "assignments": [
1850 1754
1851 ],
1852 "declarations": [
1853 {
1854 "constant": false,
1855 "id": 1754,
1856 "name": "i",
1857 "nodeType": "VariableDeclaration",
1858 "scope": 1800,
1859 "src": "1101:9:12",
1860 "stateVariable": false,
1861 "storageLocation": "default",
1862 "typeDescriptions": {
1863 "typeIdentifier": "t_uint256",
1864 "typeString": "uint256"
1865 },
1866 "typeName": {
1867 "id": 1753,
1868 "name": "uint256",
1869 "nodeType": "ElementaryTypeName",
1870 "src": "1101:7:12",
1871 "typeDescriptions": {
1872 "typeIdentifier": "t_uint256",
1873 "typeString": "uint256"
1874 }
1875 },
1876 "value": null,
1877 "visibility": "internal"
1878 }
1879 ],
1880 "id": 1756,
1881 "initialValue": {
1882 "argumentTypes": null,
1883 "hexValue": "30",
1884 "id": 1755,
1885 "isConstant": false,
1886 "isLValue": false,
1887 "isPure": true,
1888 "kind": "number",
1889 "lValueRequested": false,
1890 "nodeType": "Literal",
1891 "src": "1113:1:12",
1892 "subdenomination": null,
1893 "typeDescriptions": {
1894 "typeIdentifier": "t_rational_0_by_1",
1895 "typeString": "int_const 0"
1896 },
1897 "value": "0"
1898 },
1899 "nodeType": "VariableDeclarationStatement",
1900 "src": "1101:13:12"
1901 },
1902 "loopExpression": {
1903 "expression": {
1904 "argumentTypes": null,
1905 "id": 1762,
1906 "isConstant": false,
1907 "isLValue": false,
1908 "isPure": false,
1909 "lValueRequested": false,
1910 "nodeType": "UnaryOperation",
1911 "operator": "++",
1912 "prefix": false,
1913 "src": "1138:3:12",
1914 "subExpression": {
1915 "argumentTypes": null,
1916 "id": 1761,
1917 "name": "i",
1918 "nodeType": "Identifier",
1919 "overloadedDeclarations": [],
1920 "referencedDeclaration": 1754,
1921 "src": "1138:1:12",
1922 "typeDescriptions": {
1923 "typeIdentifier": "t_uint256",
1924 "typeString": "uint256"
1925 }
1926 },
1927 "typeDescriptions": {
1928 "typeIdentifier": "t_uint256",
1929 "typeString": "uint256"
1930 }
1931 },
1932 "id": 1763,
1933 "nodeType": "ExpressionStatement",
1934 "src": "1138:3:12"
1935 },
1936 "nodeType": "ForStatement",
1937 "src": "1096:221:12"
1938 },
1939 {
1940 "expression": {
1941 "argumentTypes": null,
1942 "arguments": [
1943 {
1944 "argumentTypes": null,
1945 "id": 1796,
1946 "name": "winner",
1947 "nodeType": "Identifier",
1948 "overloadedDeclarations": [],
1949 "referencedDeclaration": 1744,
1950 "src": "1336:6:12",
1951 "typeDescriptions": {
1952 "typeIdentifier": "t_bytes32",
1953 "typeString": "bytes32"
1954 }
1955 }
1956 ],
1957 "expression": {
1958 "argumentTypes": [
1959 {
1960 "typeIdentifier": "t_bytes32",
1961 "typeString": "bytes32"
1962 }
1963 ],
1964 "expression": {
1965 "argumentTypes": null,
1966 "id": 1793,
1967 "name": "contest",
1968 "nodeType": "Identifier",
1969 "overloadedDeclarations": [],
1970 "referencedDeclaration": 1671,
1971 "src": "1322:7:12",
1972 "typeDescriptions": {
1973 "typeIdentifier": "t_contract$_SampleContest_$3254",
1974 "typeString": "contract SampleContest"
1975 }
1976 },
1977 "id": 1795,
1978 "isConstant": false,
1979 "isLValue": false,
1980 "isPure": false,
1981 "lValueRequested": false,
1982 "memberName": "judge",
1983 "nodeType": "MemberAccess",
1984 "referencedDeclaration": 2459,
1985 "src": "1322:13:12",
1986 "typeDescriptions": {
1987 "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$returns$__$",
1988 "typeString": "function (bytes32) external"
1989 }
1990 },
1991 "id": 1797,
1992 "isConstant": false,
1993 "isLValue": false,
1994 "isPure": false,
1995 "kind": "functionCall",
1996 "lValueRequested": false,
1997 "names": [],
1998 "nodeType": "FunctionCall",
1999 "src": "1322:21:12",
2000 "typeDescriptions": {
2001 "typeIdentifier": "t_tuple$__$",
2002 "typeString": "tuple()"
2003 }
2004 },
2005 "id": 1798,
2006 "nodeType": "ExpressionStatement",
2007 "src": "1322:21:12"
2008 }
2009 ]
2010 },
2011 "documentation": null,
2012 "id": 1800,
2013 "implemented": true,
2014 "isConstructor": false,
2015 "isDeclaredConst": false,
2016 "modifiers": [],
2017 "name": "settle",
2018 "nodeType": "FunctionDefinition",
2019 "parameters": {
2020 "id": 1704,
2021 "nodeType": "ParameterList",
2022 "parameters": [],
2023 "src": "713:2:12"
2024 },
2025 "payable": false,
2026 "returnParameters": {
2027 "id": 1705,
2028 "nodeType": "ParameterList",
2029 "parameters": [],
2030 "src": "716:0:12"
2031 },
2032 "scope": 1809,
2033 "src": "698:650:12",
2034 "stateMutability": "nonpayable",
2035 "superFunction": null,
2036 "visibility": "public"
2037 },
2038 {
2039 "body": {
2040 "id": 1807,
2041 "nodeType": "Block",
2042 "src": "1391:25:12",
2043 "statements": [
2044 {
2045 "expression": {
2046 "argumentTypes": null,
2047 "id": 1805,
2048 "name": "endtime",
2049 "nodeType": "Identifier",
2050 "overloadedDeclarations": [],
2051 "referencedDeclaration": 1677,
2052 "src": "1404:7:12",
2053 "typeDescriptions": {
2054 "typeIdentifier": "t_uint256",
2055 "typeString": "uint256"
2056 }
2057 },
2058 "functionReturnParameters": 1804,
2059 "id": 1806,
2060 "nodeType": "Return",
2061 "src": "1397:14:12"
2062 }
2063 ]
2064 },
2065 "documentation": null,
2066 "id": 1808,
2067 "implemented": true,
2068 "isConstructor": false,
2069 "isDeclaredConst": false,
2070 "modifiers": [],
2071 "name": "getEndTime",
2072 "nodeType": "FunctionDefinition",
2073 "parameters": {
2074 "id": 1801,
2075 "nodeType": "ParameterList",
2076 "parameters": [],
2077 "src": "1371:2:12"
2078 },
2079 "payable": false,
2080 "returnParameters": {
2081 "id": 1804,
2082 "nodeType": "ParameterList",
2083 "parameters": [
2084 {
2085 "constant": false,
2086 "id": 1803,
2087 "name": "",
2088 "nodeType": "VariableDeclaration",
2089 "scope": 1808,
2090 "src": "1382:7:12",
2091 "stateVariable": false,
2092 "storageLocation": "default",
2093 "typeDescriptions": {
2094 "typeIdentifier": "t_uint256",
2095 "typeString": "uint256"
2096 },
2097 "typeName": {
2098 "id": 1802,
2099 "name": "uint256",
2100 "nodeType": "ElementaryTypeName",
2101 "src": "1382:7:12",
2102 "typeDescriptions": {
2103 "typeIdentifier": "t_uint256",
2104 "typeString": "uint256"
2105 }
2106 },
2107 "value": null,
2108 "visibility": "internal"
2109 }
2110 ],
2111 "src": "1381:9:12"
2112 },
2113 "scope": 1809,
2114 "src": "1352:64:12",
2115 "stateMutability": "nonpayable",
2116 "superFunction": null,
2117 "visibility": "public"
2118 }
2119 ],
2120 "scope": 1810,
2121 "src": "302:1116:12"
2122 }
2123 ],
2124 "src": "0:1419:12"
2125 },
2126 "legacyAST": {
2127 "absolutePath": "/home/xv702/2zap/zap-ethereum-api/contracts/lib/platform/MostBondedByDateContest.sol",
2128 "exportedSymbols": {
2129 "MostBondedByDateContest": [
2130 1809
2131 ]
2132 },
2133 "id": 1810,
2134 "nodeType": "SourceUnit",
2135 "nodes": [
2136 {
2137 "id": 1659,
2138 "literals": [
2139 "solidity",
2140 "^",
2141 "0.4",
2142 ".25"
2143 ],
2144 "nodeType": "PragmaDirective",
2145 "src": "0:24:12"
2146 },
2147 {
2148 "absolutePath": "/home/xv702/2zap/zap-ethereum-api/contracts/lib/platform/SampleContest.sol",
2149 "file": "./SampleContest.sol",
2150 "id": 1660,
2151 "nodeType": "ImportDirective",
2152 "scope": 1810,
2153 "sourceUnit": 3255,
2154 "src": "25:29:12",
2155 "symbolAliases": [],
2156 "unitAlias": ""
2157 },
2158 {
2159 "absolutePath": "/home/xv702/2zap/zap-ethereum-api/contracts/lib/ownership/ZapCoordinatorInterface.sol",
2160 "file": "../ownership/ZapCoordinatorInterface.sol",
2161 "id": 1661,
2162 "nodeType": "ImportDirective",
2163 "scope": 1810,
2164 "sourceUnit": 494,
2165 "src": "55:50:12",
2166 "symbolAliases": [],
2167 "unitAlias": ""
2168 },
2169 {
2170 "absolutePath": "/home/xv702/2zap/zap-ethereum-api/contracts/platform/dispatch/DispatchInterface.sol",
2171 "file": "../../platform/dispatch/DispatchInterface.sol",
2172 "id": 1662,
2173 "nodeType": "ImportDirective",
2174 "scope": 1810,
2175 "sourceUnit": 10148,
2176 "src": "106:55:12",
2177 "symbolAliases": [],
2178 "unitAlias": ""
2179 },
2180 {
2181 "absolutePath": "/home/xv702/2zap/zap-ethereum-api/contracts/lib/token/FactoryTokenInterface.sol",
2182 "file": "../token/FactoryTokenInterface.sol",
2183 "id": 1663,
2184 "nodeType": "ImportDirective",
2185 "scope": 1810,
2186 "sourceUnit": 5199,
2187 "src": "162:44:12",
2188 "symbolAliases": [],
2189 "unitAlias": ""
2190 },
2191 {
2192 "absolutePath": "/home/xv702/2zap/zap-ethereum-api/contracts/platform/bondage/currentCost/CurrentCostInterface.sol",
2193 "file": "../../platform/bondage/currentCost/CurrentCostInterface.sol",
2194 "id": 1664,
2195 "nodeType": "ImportDirective",
2196 "scope": 1810,
2197 "sourceUnit": 8127,
2198 "src": "207:69:12",
2199 "symbolAliases": [],
2200 "unitAlias": ""
2201 },
2202 {
2203 "absolutePath": "/home/xv702/2zap/zap-ethereum-api/contracts/lib/platform/Client.sol",
2204 "file": "./Client.sol",
2205 "id": 1665,
2206 "nodeType": "ImportDirective",
2207 "scope": 1810,
2208 "sourceUnit": 870,
2209 "src": "277:22:12",
2210 "symbolAliases": [],
2211 "unitAlias": ""
2212 },
2213 {
2214 "baseContracts": [
2215 {
2216 "arguments": null,
2217 "baseName": {
2218 "contractScope": null,
2219 "id": 1666,
2220 "name": "Ownable",
2221 "nodeType": "UserDefinedTypeName",
2222 "referencedDeclaration": 203,
2223 "src": "338:7:12",
2224 "typeDescriptions": {
2225 "typeIdentifier": "t_contract$_Ownable_$203",
2226 "typeString": "contract Ownable"
2227 }
2228 },
2229 "id": 1667,
2230 "nodeType": "InheritanceSpecifier",
2231 "src": "338:7:12"
2232 },
2233 {
2234 "arguments": null,
2235 "baseName": {
2236 "contractScope": null,
2237 "id": 1668,
2238 "name": "ClientIntArray",
2239 "nodeType": "UserDefinedTypeName",
2240 "referencedDeclaration": 869,
2241 "src": "347:14:12",
2242 "typeDescriptions": {
2243 "typeIdentifier": "t_contract$_ClientIntArray_$869",
2244 "typeString": "contract ClientIntArray"
2245 }
2246 },
2247 "id": 1669,
2248 "nodeType": "InheritanceSpecifier",
2249 "src": "347:14:12"
2250 }
2251 ],
2252 "contractDependencies": [
2253 203,
2254 869
2255 ],
2256 "contractKind": "contract",
2257 "documentation": null,
2258 "fullyImplemented": false,
2259 "id": 1809,
2260 "linearizedBaseContracts": [
2261 1809,
2262 869,
2263 203
2264 ],
2265 "name": "MostBondedByDateContest",
2266 "nodeType": "ContractDefinition",
2267 "nodes": [
2268 {
2269 "constant": false,
2270 "id": 1671,
2271 "name": "contest",
2272 "nodeType": "VariableDeclaration",
2273 "scope": 1809,
2274 "src": "366:28:12",
2275 "stateVariable": true,
2276 "storageLocation": "default",
2277 "typeDescriptions": {
2278 "typeIdentifier": "t_contract$_SampleContest_$3254",
2279 "typeString": "contract SampleContest"
2280 },
2281 "typeName": {
2282 "contractScope": null,
2283 "id": 1670,
2284 "name": "SampleContest",
2285 "nodeType": "UserDefinedTypeName",
2286 "referencedDeclaration": 3254,
2287 "src": "366:13:12",
2288 "typeDescriptions": {
2289 "typeIdentifier": "t_contract$_SampleContest_$3254",
2290 "typeString": "contract SampleContest"
2291 }
2292 },
2293 "value": null,
2294 "visibility": "public"
2295 },
2296 {
2297 "constant": false,
2298 "id": 1673,
2299 "name": "coordinator",
2300 "nodeType": "VariableDeclaration",
2301 "scope": 1809,
2302 "src": "398:42:12",
2303 "stateVariable": true,
2304 "storageLocation": "default",
2305 "typeDescriptions": {
2306 "typeIdentifier": "t_contract$_ZapCoordinatorInterface_$493",
2307 "typeString": "contract ZapCoordinatorInterface"
2308 },
2309 "typeName": {
2310 "contractScope": null,
2311 "id": 1672,
2312 "name": "ZapCoordinatorInterface",
2313 "nodeType": "UserDefinedTypeName",
2314 "referencedDeclaration": 493,
2315 "src": "398:23:12",
2316 "typeDescriptions": {
2317 "typeIdentifier": "t_contract$_ZapCoordinatorInterface_$493",
2318 "typeString": "contract ZapCoordinatorInterface"
2319 }
2320 },
2321 "value": null,
2322 "visibility": "public"
2323 },
2324 {
2325 "constant": false,
2326 "id": 1675,
2327 "name": "query_id",
2328 "nodeType": "VariableDeclaration",
2329 "scope": 1809,
2330 "src": "444:23:12",
2331 "stateVariable": true,
2332 "storageLocation": "default",
2333 "typeDescriptions": {
2334 "typeIdentifier": "t_uint256",
2335 "typeString": "uint256"
2336 },
2337 "typeName": {
2338 "id": 1674,
2339 "name": "uint256",
2340 "nodeType": "ElementaryTypeName",
2341 "src": "444:7:12",
2342 "typeDescriptions": {
2343 "typeIdentifier": "t_uint256",
2344 "typeString": "uint256"
2345 }
2346 },
2347 "value": null,
2348 "visibility": "public"
2349 },
2350 {
2351 "constant": false,
2352 "id": 1677,
2353 "name": "endtime",
2354 "nodeType": "VariableDeclaration",
2355 "scope": 1809,
2356 "src": "471:22:12",
2357 "stateVariable": true,
2358 "storageLocation": "default",
2359 "typeDescriptions": {
2360 "typeIdentifier": "t_uint256",
2361 "typeString": "uint256"
2362 },
2363 "typeName": {
2364 "id": 1676,
2365 "name": "uint256",
2366 "nodeType": "ElementaryTypeName",
2367 "src": "471:7:12",
2368 "typeDescriptions": {
2369 "typeIdentifier": "t_uint256",
2370 "typeString": "uint256"
2371 }
2372 },
2373 "value": null,
2374 "visibility": "public"
2375 },
2376 {
2377 "body": {
2378 "id": 1702,
2379 "nodeType": "Block",
2380 "src": "576:118:12",
2381 "statements": [
2382 {
2383 "expression": {
2384 "argumentTypes": null,
2385 "id": 1690,
2386 "isConstant": false,
2387 "isLValue": false,
2388 "isPure": false,
2389 "lValueRequested": false,
2390 "leftHandSide": {
2391 "argumentTypes": null,
2392 "id": 1686,
2393 "name": "contest",
2394 "nodeType": "Identifier",
2395 "overloadedDeclarations": [],
2396 "referencedDeclaration": 1671,
2397 "src": "582:7:12",
2398 "typeDescriptions": {
2399 "typeIdentifier": "t_contract$_SampleContest_$3254",
2400 "typeString": "contract SampleContest"
2401 }
2402 },
2403 "nodeType": "Assignment",
2404 "operator": "=",
2405 "rightHandSide": {
2406 "argumentTypes": null,
2407 "arguments": [
2408 {
2409 "argumentTypes": null,
2410 "id": 1688,
2411 "name": "_contest",
2412 "nodeType": "Identifier",
2413 "overloadedDeclarations": [],
2414 "referencedDeclaration": 1681,
2415 "src": "606:8:12",
2416 "typeDescriptions": {
2417 "typeIdentifier": "t_address",
2418 "typeString": "address"
2419 }
2420 }
2421 ],
2422 "expression": {
2423 "argumentTypes": [
2424 {
2425 "typeIdentifier": "t_address",
2426 "typeString": "address"
2427 }
2428 ],
2429 "id": 1687,
2430 "name": "SampleContest",
2431 "nodeType": "Identifier",
2432 "overloadedDeclarations": [],
2433 "referencedDeclaration": 3254,
2434 "src": "592:13:12",
2435 "typeDescriptions": {
2436 "typeIdentifier": "t_type$_t_contract$_SampleContest_$3254_$",
2437 "typeString": "type(contract SampleContest)"
2438 }
2439 },
2440 "id": 1689,
2441 "isConstant": false,
2442 "isLValue": false,
2443 "isPure": false,
2444 "kind": "typeConversion",
2445 "lValueRequested": false,
2446 "names": [],
2447 "nodeType": "FunctionCall",
2448 "src": "592:23:12",
2449 "typeDescriptions": {
2450 "typeIdentifier": "t_contract$_SampleContest_$3254",
2451 "typeString": "contract SampleContest"
2452 }
2453 },
2454 "src": "582:33:12",
2455 "typeDescriptions": {
2456 "typeIdentifier": "t_contract$_SampleContest_$3254",
2457 "typeString": "contract SampleContest"
2458 }
2459 },
2460 "id": 1691,
2461 "nodeType": "ExpressionStatement",
2462 "src": "582:33:12"
2463 },
2464 {
2465 "expression": {
2466 "argumentTypes": null,
2467 "id": 1696,
2468 "isConstant": false,
2469 "isLValue": false,
2470 "isPure": false,
2471 "lValueRequested": false,
2472 "leftHandSide": {
2473 "argumentTypes": null,
2474 "id": 1692,
2475 "name": "coordinator",
2476 "nodeType": "Identifier",
2477 "overloadedDeclarations": [],
2478 "referencedDeclaration": 1673,
2479 "src": "621:11:12",
2480 "typeDescriptions": {
2481 "typeIdentifier": "t_contract$_ZapCoordinatorInterface_$493",
2482 "typeString": "contract ZapCoordinatorInterface"
2483 }
2484 },
2485 "nodeType": "Assignment",
2486 "operator": "=",
2487 "rightHandSide": {
2488 "argumentTypes": null,
2489 "arguments": [
2490 {
2491 "argumentTypes": null,
2492 "id": 1694,
2493 "name": "_cord",
2494 "nodeType": "Identifier",
2495 "overloadedDeclarations": [],
2496 "referencedDeclaration": 1679,
2497 "src": "659:5:12",
2498 "typeDescriptions": {
2499 "typeIdentifier": "t_address",
2500 "typeString": "address"
2501 }
2502 }
2503 ],
2504 "expression": {
2505 "argumentTypes": [
2506 {
2507 "typeIdentifier": "t_address",
2508 "typeString": "address"
2509 }
2510 ],
2511 "id": 1693,
2512 "name": "ZapCoordinatorInterface",
2513 "nodeType": "Identifier",
2514 "overloadedDeclarations": [],
2515 "referencedDeclaration": 493,
2516 "src": "635:23:12",
2517 "typeDescriptions": {
2518 "typeIdentifier": "t_type$_t_contract$_ZapCoordinatorInterface_$493_$",
2519 "typeString": "type(contract ZapCoordinatorInterface)"
2520 }
2521 },
2522 "id": 1695,
2523 "isConstant": false,
2524 "isLValue": false,
2525 "isPure": false,
2526 "kind": "typeConversion",
2527 "lValueRequested": false,
2528 "names": [],
2529 "nodeType": "FunctionCall",
2530 "src": "635:30:12",
2531 "typeDescriptions": {
2532 "typeIdentifier": "t_contract$_ZapCoordinatorInterface_$493",
2533 "typeString": "contract ZapCoordinatorInterface"
2534 }
2535 },
2536 "src": "621:44:12",
2537 "typeDescriptions": {
2538 "typeIdentifier": "t_contract$_ZapCoordinatorInterface_$493",
2539 "typeString": "contract ZapCoordinatorInterface"
2540 }
2541 },
2542 "id": 1697,
2543 "nodeType": "ExpressionStatement",
2544 "src": "621:44:12"
2545 },
2546 {
2547 "expression": {
2548 "argumentTypes": null,
2549 "id": 1700,
2550 "isConstant": false,
2551 "isLValue": false,
2552 "isPure": false,
2553 "lValueRequested": false,
2554 "leftHandSide": {
2555 "argumentTypes": null,
2556 "id": 1698,
2557 "name": "endtime",
2558 "nodeType": "Identifier",
2559 "overloadedDeclarations": [],
2560 "referencedDeclaration": 1677,
2561 "src": "671:7:12",
2562 "typeDescriptions": {
2563 "typeIdentifier": "t_uint256",
2564 "typeString": "uint256"
2565 }
2566 },
2567 "nodeType": "Assignment",
2568 "operator": "=",
2569 "rightHandSide": {
2570 "argumentTypes": null,
2571 "id": 1699,
2572 "name": "_endtime",
2573 "nodeType": "Identifier",
2574 "overloadedDeclarations": [],
2575 "referencedDeclaration": 1683,
2576 "src": "681:8:12",
2577 "typeDescriptions": {
2578 "typeIdentifier": "t_uint256",
2579 "typeString": "uint256"
2580 }
2581 },
2582 "src": "671:18:12",
2583 "typeDescriptions": {
2584 "typeIdentifier": "t_uint256",
2585 "typeString": "uint256"
2586 }
2587 },
2588 "id": 1701,
2589 "nodeType": "ExpressionStatement",
2590 "src": "671:18:12"
2591 }
2592 ]
2593 },
2594 "documentation": null,
2595 "id": 1703,
2596 "implemented": true,
2597 "isConstructor": true,
2598 "isDeclaredConst": false,
2599 "modifiers": [],
2600 "name": "",
2601 "nodeType": "FunctionDefinition",
2602 "parameters": {
2603 "id": 1684,
2604 "nodeType": "ParameterList",
2605 "parameters": [
2606 {
2607 "constant": false,
2608 "id": 1679,
2609 "name": "_cord",
2610 "nodeType": "VariableDeclaration",
2611 "scope": 1703,
2612 "src": "515:13:12",
2613 "stateVariable": false,
2614 "storageLocation": "default",
2615 "typeDescriptions": {
2616 "typeIdentifier": "t_address",
2617 "typeString": "address"
2618 },
2619 "typeName": {
2620 "id": 1678,
2621 "name": "address",
2622 "nodeType": "ElementaryTypeName",
2623 "src": "515:7:12",
2624 "typeDescriptions": {
2625 "typeIdentifier": "t_address",
2626 "typeString": "address"
2627 }
2628 },
2629 "value": null,
2630 "visibility": "internal"
2631 },
2632 {
2633 "constant": false,
2634 "id": 1681,
2635 "name": "_contest",
2636 "nodeType": "VariableDeclaration",
2637 "scope": 1703,
2638 "src": "534:16:12",
2639 "stateVariable": false,
2640 "storageLocation": "default",
2641 "typeDescriptions": {
2642 "typeIdentifier": "t_address",
2643 "typeString": "address"
2644 },
2645 "typeName": {
2646 "id": 1680,
2647 "name": "address",
2648 "nodeType": "ElementaryTypeName",
2649 "src": "534:7:12",
2650 "typeDescriptions": {
2651 "typeIdentifier": "t_address",
2652 "typeString": "address"
2653 }
2654 },
2655 "value": null,
2656 "visibility": "internal"
2657 },
2658 {
2659 "constant": false,
2660 "id": 1683,
2661 "name": "_endtime",
2662 "nodeType": "VariableDeclaration",
2663 "scope": 1703,
2664 "src": "556:16:12",
2665 "stateVariable": false,
2666 "storageLocation": "default",
2667 "typeDescriptions": {
2668 "typeIdentifier": "t_uint256",
2669 "typeString": "uint256"
2670 },
2671 "typeName": {
2672 "id": 1682,
2673 "name": "uint256",
2674 "nodeType": "ElementaryTypeName",
2675 "src": "556:7:12",
2676 "typeDescriptions": {
2677 "typeIdentifier": "t_uint256",
2678 "typeString": "uint256"
2679 }
2680 },
2681 "value": null,
2682 "visibility": "internal"
2683 }
2684 ],
2685 "src": "509:67:12"
2686 },
2687 "payable": false,
2688 "returnParameters": {
2689 "id": 1685,
2690 "nodeType": "ParameterList",
2691 "parameters": [],
2692 "src": "576:0:12"
2693 },
2694 "scope": 1809,
2695 "src": "498:196:12",
2696 "stateMutability": "nonpayable",
2697 "superFunction": null,
2698 "visibility": "public"
2699 },
2700 {
2701 "body": {
2702 "id": 1799,
2703 "nodeType": "Block",
2704 "src": "716:632:12",
2705 "statements": [
2706 {
2707 "expression": {
2708 "argumentTypes": null,
2709 "arguments": [
2710 {
2711 "argumentTypes": null,
2712 "commonType": {
2713 "typeIdentifier": "t_uint256",
2714 "typeString": "uint256"
2715 },
2716 "id": 1711,
2717 "isConstant": false,
2718 "isLValue": false,
2719 "isPure": false,
2720 "lValueRequested": false,
2721 "leftExpression": {
2722 "argumentTypes": null,
2723 "arguments": [],
2724 "expression": {
2725 "argumentTypes": [],
2726 "expression": {
2727 "argumentTypes": null,
2728 "id": 1707,
2729 "name": "contest",
2730 "nodeType": "Identifier",
2731 "overloadedDeclarations": [],
2732 "referencedDeclaration": 1671,
2733 "src": "730:7:12",
2734 "typeDescriptions": {
2735 "typeIdentifier": "t_contract$_SampleContest_$3254",
2736 "typeString": "contract SampleContest"
2737 }
2738 },
2739 "id": 1708,
2740 "isConstant": false,
2741 "isLValue": false,
2742 "isPure": false,
2743 "lValueRequested": false,
2744 "memberName": "getStatus",
2745 "nodeType": "MemberAccess",
2746 "referencedDeclaration": 3083,
2747 "src": "730:17:12",
2748 "typeDescriptions": {
2749 "typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$",
2750 "typeString": "function () view external returns (uint256)"
2751 }
2752 },
2753 "id": 1709,
2754 "isConstant": false,
2755 "isLValue": false,
2756 "isPure": false,
2757 "kind": "functionCall",
2758 "lValueRequested": false,
2759 "names": [],
2760 "nodeType": "FunctionCall",
2761 "src": "730:19:12",
2762 "typeDescriptions": {
2763 "typeIdentifier": "t_uint256",
2764 "typeString": "uint256"
2765 }
2766 },
2767 "nodeType": "BinaryOperation",
2768 "operator": "==",
2769 "rightExpression": {
2770 "argumentTypes": null,
2771 "hexValue": "31",
2772 "id": 1710,
2773 "isConstant": false,
2774 "isLValue": false,
2775 "isPure": true,
2776 "kind": "number",
2777 "lValueRequested": false,
2778 "nodeType": "Literal",
2779 "src": "751:1:12",
2780 "subdenomination": null,
2781 "typeDescriptions": {
2782 "typeIdentifier": "t_rational_1_by_1",
2783 "typeString": "int_const 1"
2784 },
2785 "value": "1"
2786 },
2787 "src": "730:22:12",
2788 "typeDescriptions": {
2789 "typeIdentifier": "t_bool",
2790 "typeString": "bool"
2791 }
2792 },
2793 {
2794 "argumentTypes": null,
2795 "hexValue": "436f6e7465737420697320696e20696e697469616c697a6564207374617465",
2796 "id": 1712,
2797 "isConstant": false,
2798 "isLValue": false,
2799 "isPure": true,
2800 "kind": "string",
2801 "lValueRequested": false,
2802 "nodeType": "Literal",
2803 "src": "753:33:12",
2804 "subdenomination": null,
2805 "typeDescriptions": {
2806 "typeIdentifier": "t_stringliteral_b37e1741f39eb8d548b183b8229541059f58abf7c79c8c4bd1179cd959567856",
2807 "typeString": "literal_string \"Contest is in initialized state\""
2808 },
2809 "value": "Contest is in initialized state"
2810 }
2811 ],
2812 "expression": {
2813 "argumentTypes": [
2814 {
2815 "typeIdentifier": "t_bool",
2816 "typeString": "bool"
2817 },
2818 {
2819 "typeIdentifier": "t_stringliteral_b37e1741f39eb8d548b183b8229541059f58abf7c79c8c4bd1179cd959567856",
2820 "typeString": "literal_string \"Contest is in initialized state\""
2821 }
2822 ],
2823 "id": 1706,
2824 "name": "require",
2825 "nodeType": "Identifier",
2826 "overloadedDeclarations": [
2827 12095,
2828 12096
2829 ],
2830 "referencedDeclaration": 12096,
2831 "src": "722:7:12",
2832 "typeDescriptions": {
2833 "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
2834 "typeString": "function (bool,string memory) pure"
2835 }
2836 },
2837 "id": 1713,
2838 "isConstant": false,
2839 "isLValue": false,
2840 "isPure": false,
2841 "kind": "functionCall",
2842 "lValueRequested": false,
2843 "names": [],
2844 "nodeType": "FunctionCall",
2845 "src": "722:65:12",
2846 "typeDescriptions": {
2847 "typeIdentifier": "t_tuple$__$",
2848 "typeString": "tuple()"
2849 }
2850 },
2851 "id": 1714,
2852 "nodeType": "ExpressionStatement",
2853 "src": "722:65:12"
2854 },
2855 {
2856 "expression": {
2857 "argumentTypes": null,
2858 "arguments": [
2859 {
2860 "argumentTypes": null,
2861 "commonType": {
2862 "typeIdentifier": "t_uint256",
2863 "typeString": "uint256"
2864 },
2865 "id": 1718,
2866 "isConstant": false,
2867 "isLValue": false,
2868 "isPure": false,
2869 "lValueRequested": false,
2870 "leftExpression": {
2871 "argumentTypes": null,
2872 "id": 1716,
2873 "name": "now",
2874 "nodeType": "Identifier",
2875 "overloadedDeclarations": [],
2876 "referencedDeclaration": 12094,
2877 "src": "802:3:12",
2878 "typeDescriptions": {
2879 "typeIdentifier": "t_uint256",
2880 "typeString": "uint256"
2881 }
2882 },
2883 "nodeType": "BinaryOperation",
2884 "operator": ">",
2885 "rightExpression": {
2886 "argumentTypes": null,
2887 "id": 1717,
2888 "name": "endtime",
2889 "nodeType": "Identifier",
2890 "overloadedDeclarations": [],
2891 "referencedDeclaration": 1677,
2892 "src": "808:7:12",
2893 "typeDescriptions": {
2894 "typeIdentifier": "t_uint256",
2895 "typeString": "uint256"
2896 }
2897 },
2898 "src": "802:13:12",
2899 "typeDescriptions": {
2900 "typeIdentifier": "t_bool",
2901 "typeString": "bool"
2902 }
2903 },
2904 {
2905 "argumentTypes": null,
2906 "hexValue": "436f6e74657374206973207374696c6c20616374697665",
2907 "id": 1719,
2908 "isConstant": false,
2909 "isLValue": false,
2910 "isPure": true,
2911 "kind": "string",
2912 "lValueRequested": false,
2913 "nodeType": "Literal",
2914 "src": "817:25:12",
2915 "subdenomination": null,
2916 "typeDescriptions": {
2917 "typeIdentifier": "t_stringliteral_94d89a62047dd2cc92dc30fbdf11b30d3a90271efe59acc92e1176796a6a1950",
2918 "typeString": "literal_string \"Contest is still active\""
2919 },
2920 "value": "Contest is still active"
2921 }
2922 ],
2923 "expression": {
2924 "argumentTypes": [
2925 {
2926 "typeIdentifier": "t_bool",
2927 "typeString": "bool"
2928 },
2929 {
2930 "typeIdentifier": "t_stringliteral_94d89a62047dd2cc92dc30fbdf11b30d3a90271efe59acc92e1176796a6a1950",
2931 "typeString": "literal_string \"Contest is still active\""
2932 }
2933 ],
2934 "id": 1715,
2935 "name": "require",
2936 "nodeType": "Identifier",
2937 "overloadedDeclarations": [
2938 12095,
2939 12096
2940 ],
2941 "referencedDeclaration": 12096,
2942 "src": "794:7:12",
2943 "typeDescriptions": {
2944 "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
2945 "typeString": "function (bool,string memory) pure"
2946 }
2947 },
2948 "id": 1720,
2949 "isConstant": false,
2950 "isLValue": false,
2951 "isPure": false,
2952 "kind": "functionCall",
2953 "lValueRequested": false,
2954 "names": [],
2955 "nodeType": "FunctionCall",
2956 "src": "794:49:12",
2957 "typeDescriptions": {
2958 "typeIdentifier": "t_tuple$__$",
2959 "typeString": "tuple()"
2960 }
2961 },
2962 "id": 1721,
2963 "nodeType": "ExpressionStatement",
2964 "src": "794:49:12"
2965 },
2966 {
2967 "assignments": [
2968 1723
2969 ],
2970 "declarations": [
2971 {
2972 "constant": false,
2973 "id": 1723,
2974 "name": "bondageAddress",
2975 "nodeType": "VariableDeclaration",
2976 "scope": 1800,
2977 "src": "849:22:12",
2978 "stateVariable": false,
2979 "storageLocation": "default",
2980 "typeDescriptions": {
2981 "typeIdentifier": "t_address",
2982 "typeString": "address"
2983 },
2984 "typeName": {
2985 "id": 1722,
2986 "name": "address",
2987 "nodeType": "ElementaryTypeName",
2988 "src": "849:7:12",
2989 "typeDescriptions": {
2990 "typeIdentifier": "t_address",
2991 "typeString": "address"
2992 }
2993 },
2994 "value": null,
2995 "visibility": "internal"
2996 }
2997 ],
2998 "id": 1728,
2999 "initialValue": {
3000 "argumentTypes": null,
3001 "arguments": [
3002 {
3003 "argumentTypes": null,
3004 "hexValue": "424f4e44414745",
3005 "id": 1726,
3006 "isConstant": false,
3007 "isLValue": false,
3008 "isPure": true,
3009 "kind": "string",
3010 "lValueRequested": false,
3011 "nodeType": "Literal",
3012 "src": "898:9:12",
3013 "subdenomination": null,
3014 "typeDescriptions": {
3015 "typeIdentifier": "t_stringliteral_8db6e752c473cf27fd950e9b9ac06384370d511fb552ce5f96812082c602436b",
3016 "typeString": "literal_string \"BONDAGE\""
3017 },
3018 "value": "BONDAGE"
3019 }
3020 ],
3021 "expression": {
3022 "argumentTypes": [
3023 {
3024 "typeIdentifier": "t_stringliteral_8db6e752c473cf27fd950e9b9ac06384370d511fb552ce5f96812082c602436b",
3025 "typeString": "literal_string \"BONDAGE\""
3026 }
3027 ],
3028 "expression": {
3029 "argumentTypes": null,
3030 "id": 1724,
3031 "name": "coordinator",
3032 "nodeType": "Identifier",
3033 "overloadedDeclarations": [],
3034 "referencedDeclaration": 1673,
3035 "src": "874:11:12",
3036 "typeDescriptions": {
3037 "typeIdentifier": "t_contract$_ZapCoordinatorInterface_$493",
3038 "typeString": "contract ZapCoordinatorInterface"
3039 }
3040 },
3041 "id": 1725,
3042 "isConstant": false,
3043 "isLValue": false,
3044 "isPure": false,
3045 "lValueRequested": false,
3046 "memberName": "getContract",
3047 "nodeType": "MemberAccess",
3048 "referencedDeclaration": 489,
3049 "src": "874:23:12",
3050 "typeDescriptions": {
3051 "typeIdentifier": "t_function_external_view$_t_string_memory_ptr_$returns$_t_address_$",
3052 "typeString": "function (string memory) view external returns (address)"
3053 }
3054 },
3055 "id": 1727,
3056 "isConstant": false,
3057 "isLValue": false,
3058 "isPure": false,
3059 "kind": "functionCall",
3060 "lValueRequested": false,
3061 "names": [],
3062 "nodeType": "FunctionCall",
3063 "src": "874:34:12",
3064 "typeDescriptions": {
3065 "typeIdentifier": "t_address",
3066 "typeString": "address"
3067 }
3068 },
3069 "nodeType": "VariableDeclarationStatement",
3070 "src": "849:59:12"
3071 },
3072 {
3073 "assignments": [
3074 1730
3075 ],
3076 "declarations": [
3077 {
3078 "constant": false,
3079 "id": 1730,
3080 "name": "bondage",
3081 "nodeType": "VariableDeclaration",
3082 "scope": 1800,
3083 "src": "914:24:12",
3084 "stateVariable": false,
3085 "storageLocation": "default",
3086 "typeDescriptions": {
3087 "typeIdentifier": "t_contract$_BondageInterface_$7926",
3088 "typeString": "contract BondageInterface"
3089 },
3090 "typeName": {
3091 "contractScope": null,
3092 "id": 1729,
3093 "name": "BondageInterface",
3094 "nodeType": "UserDefinedTypeName",
3095 "referencedDeclaration": 7926,
3096 "src": "914:16:12",
3097 "typeDescriptions": {
3098 "typeIdentifier": "t_contract$_BondageInterface_$7926",
3099 "typeString": "contract BondageInterface"
3100 }
3101 },
3102 "value": null,
3103 "visibility": "internal"
3104 }
3105 ],
3106 "id": 1734,
3107 "initialValue": {
3108 "argumentTypes": null,
3109 "arguments": [
3110 {
3111 "argumentTypes": null,
3112 "id": 1732,
3113 "name": "bondageAddress",
3114 "nodeType": "Identifier",
3115 "overloadedDeclarations": [],
3116 "referencedDeclaration": 1723,
3117 "src": "958:14:12",
3118 "typeDescriptions": {
3119 "typeIdentifier": "t_address",
3120 "typeString": "address"
3121 }
3122 }
3123 ],
3124 "expression": {
3125 "argumentTypes": [
3126 {
3127 "typeIdentifier": "t_address",
3128 "typeString": "address"
3129 }
3130 ],
3131 "id": 1731,
3132 "name": "BondageInterface",
3133 "nodeType": "Identifier",
3134 "overloadedDeclarations": [],
3135 "referencedDeclaration": 7926,
3136 "src": "941:16:12",
3137 "typeDescriptions": {
3138 "typeIdentifier": "t_type$_t_contract$_BondageInterface_$7926_$",
3139 "typeString": "type(contract BondageInterface)"
3140 }
3141 },
3142 "id": 1733,
3143 "isConstant": false,
3144 "isLValue": false,
3145 "isPure": false,
3146 "kind": "typeConversion",
3147 "lValueRequested": false,
3148 "names": [],
3149 "nodeType": "FunctionCall",
3150 "src": "941:32:12",
3151 "typeDescriptions": {
3152 "typeIdentifier": "t_contract$_BondageInterface_$7926",
3153 "typeString": "contract BondageInterface"
3154 }
3155 },
3156 "nodeType": "VariableDeclarationStatement",
3157 "src": "914:59:12"
3158 },
3159 {
3160 "assignments": [
3161 1738
3162 ],
3163 "declarations": [
3164 {
3165 "constant": false,
3166 "id": 1738,
3167 "name": "endpoints",
3168 "nodeType": "VariableDeclaration",
3169 "scope": 1800,
3170 "src": "979:26:12",
3171 "stateVariable": false,
3172 "storageLocation": "memory",
3173 "typeDescriptions": {
3174 "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
3175 "typeString": "bytes32[]"
3176 },
3177 "typeName": {
3178 "baseType": {
3179 "id": 1736,
3180 "name": "bytes32",
3181 "nodeType": "ElementaryTypeName",
3182 "src": "979:7:12",
3183 "typeDescriptions": {
3184 "typeIdentifier": "t_bytes32",
3185 "typeString": "bytes32"
3186 }
3187 },
3188 "id": 1737,
3189 "length": null,
3190 "nodeType": "ArrayTypeName",
3191 "src": "979:9:12",
3192 "typeDescriptions": {
3193 "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
3194 "typeString": "bytes32[]"
3195 }
3196 },
3197 "value": null,
3198 "visibility": "internal"
3199 }
3200 ],
3201 "id": 1742,
3202 "initialValue": {
3203 "argumentTypes": null,
3204 "arguments": [],
3205 "expression": {
3206 "argumentTypes": [],
3207 "expression": {
3208 "argumentTypes": null,
3209 "id": 1739,
3210 "name": "contest",
3211 "nodeType": "Identifier",
3212 "overloadedDeclarations": [],
3213 "referencedDeclaration": 1671,
3214 "src": "1008:7:12",
3215 "typeDescriptions": {
3216 "typeIdentifier": "t_contract$_SampleContest_$3254",
3217 "typeString": "contract SampleContest"
3218 }
3219 },
3220 "id": 1740,
3221 "isConstant": false,
3222 "isLValue": false,
3223 "isPure": false,
3224 "lValueRequested": false,
3225 "memberName": "getEndpoints",
3226 "nodeType": "MemberAccess",
3227 "referencedDeclaration": 3073,
3228 "src": "1008:20:12",
3229 "typeDescriptions": {
3230 "typeIdentifier": "t_function_external_view$__$returns$_t_array$_t_bytes32_$dyn_memory_ptr_$",
3231 "typeString": "function () view external returns (bytes32[] memory)"
3232 }
3233 },
3234 "id": 1741,
3235 "isConstant": false,
3236 "isLValue": false,
3237 "isPure": false,
3238 "kind": "functionCall",
3239 "lValueRequested": false,
3240 "names": [],
3241 "nodeType": "FunctionCall",
3242 "src": "1008:22:12",
3243 "typeDescriptions": {
3244 "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
3245 "typeString": "bytes32[] memory"
3246 }
3247 },
3248 "nodeType": "VariableDeclarationStatement",
3249 "src": "979:51:12"
3250 },
3251 {
3252 "assignments": [],
3253 "declarations": [
3254 {
3255 "constant": false,
3256 "id": 1744,
3257 "name": "winner",
3258 "nodeType": "VariableDeclaration",
3259 "scope": 1800,
3260 "src": "1036:14:12",
3261 "stateVariable": false,
3262 "storageLocation": "default",
3263 "typeDescriptions": {
3264 "typeIdentifier": "t_bytes32",
3265 "typeString": "bytes32"
3266 },
3267 "typeName": {
3268 "id": 1743,
3269 "name": "bytes32",
3270 "nodeType": "ElementaryTypeName",
3271 "src": "1036:7:12",
3272 "typeDescriptions": {
3273 "typeIdentifier": "t_bytes32",
3274 "typeString": "bytes32"
3275 }
3276 },
3277 "value": null,
3278 "visibility": "internal"
3279 }
3280 ],
3281 "id": 1745,
3282 "initialValue": null,
3283 "nodeType": "VariableDeclarationStatement",
3284 "src": "1036:14:12"
3285 },
3286 {
3287 "assignments": [
3288 1747
3289 ],
3290 "declarations": [
3291 {
3292 "constant": false,
3293 "id": 1747,
3294 "name": "max",
3295 "nodeType": "VariableDeclaration",
3296 "scope": 1800,
3297 "src": "1056:11:12",
3298 "stateVariable": false,
3299 "storageLocation": "default",
3300 "typeDescriptions": {
3301 "typeIdentifier": "t_uint256",
3302 "typeString": "uint256"
3303 },
3304 "typeName": {
3305 "id": 1746,
3306 "name": "uint256",
3307 "nodeType": "ElementaryTypeName",
3308 "src": "1056:7:12",
3309 "typeDescriptions": {
3310 "typeIdentifier": "t_uint256",
3311 "typeString": "uint256"
3312 }
3313 },
3314 "value": null,
3315 "visibility": "internal"
3316 }
3317 ],
3318 "id": 1749,
3319 "initialValue": {
3320 "argumentTypes": null,
3321 "hexValue": "30",
3322 "id": 1748,
3323 "isConstant": false,
3324 "isLValue": false,
3325 "isPure": true,
3326 "kind": "number",
3327 "lValueRequested": false,
3328 "nodeType": "Literal",
3329 "src": "1070:1:12",
3330 "subdenomination": null,
3331 "typeDescriptions": {
3332 "typeIdentifier": "t_rational_0_by_1",
3333 "typeString": "int_const 0"
3334 },
3335 "value": "0"
3336 },
3337 "nodeType": "VariableDeclarationStatement",
3338 "src": "1056:15:12"
3339 },
3340 {
3341 "assignments": [],
3342 "declarations": [
3343 {
3344 "constant": false,
3345 "id": 1751,
3346 "name": "bound",
3347 "nodeType": "VariableDeclaration",
3348 "scope": 1800,
3349 "src": "1077:13:12",
3350 "stateVariable": false,
3351 "storageLocation": "default",
3352 "typeDescriptions": {
3353 "typeIdentifier": "t_uint256",
3354 "typeString": "uint256"
3355 },
3356 "typeName": {
3357 "id": 1750,
3358 "name": "uint256",
3359 "nodeType": "ElementaryTypeName",
3360 "src": "1077:7:12",
3361 "typeDescriptions": {
3362 "typeIdentifier": "t_uint256",
3363 "typeString": "uint256"
3364 }
3365 },
3366 "value": null,
3367 "visibility": "internal"
3368 }
3369 ],
3370 "id": 1752,
3371 "initialValue": null,
3372 "nodeType": "VariableDeclarationStatement",
3373 "src": "1077:13:12"
3374 },
3375 {
3376 "body": {
3377 "id": 1791,
3378 "nodeType": "Block",
3379 "src": "1143:174:12",
3380 "statements": [
3381 {
3382 "expression": {
3383 "argumentTypes": null,
3384 "id": 1774,
3385 "isConstant": false,
3386 "isLValue": false,
3387 "isPure": false,
3388 "lValueRequested": false,
3389 "leftHandSide": {
3390 "argumentTypes": null,
3391 "id": 1764,
3392 "name": "bound",
3393 "nodeType": "Identifier",
3394 "overloadedDeclarations": [],
3395 "referencedDeclaration": 1751,
3396 "src": "1153:5:12",
3397 "typeDescriptions": {
3398 "typeIdentifier": "t_uint256",
3399 "typeString": "uint256"
3400 }
3401 },
3402 "nodeType": "Assignment",
3403 "operator": "=",
3404 "rightHandSide": {
3405 "argumentTypes": null,
3406 "arguments": [
3407 {
3408 "argumentTypes": null,
3409 "arguments": [
3410 {
3411 "argumentTypes": null,
3412 "id": 1768,
3413 "name": "contest",
3414 "nodeType": "Identifier",
3415 "overloadedDeclarations": [],
3416 "referencedDeclaration": 1671,
3417 "src": "1189:7:12",
3418 "typeDescriptions": {
3419 "typeIdentifier": "t_contract$_SampleContest_$3254",
3420 "typeString": "contract SampleContest"
3421 }
3422 }
3423 ],
3424 "expression": {
3425 "argumentTypes": [
3426 {
3427 "typeIdentifier": "t_contract$_SampleContest_$3254",
3428 "typeString": "contract SampleContest"
3429 }
3430 ],
3431 "id": 1767,
3432 "isConstant": false,
3433 "isLValue": false,
3434 "isPure": true,
3435 "lValueRequested": false,
3436 "nodeType": "ElementaryTypeNameExpression",
3437 "src": "1181:7:12",
3438 "typeDescriptions": {
3439 "typeIdentifier": "t_type$_t_address_$",
3440 "typeString": "type(address)"
3441 },
3442 "typeName": "address"
3443 },
3444 "id": 1769,
3445 "isConstant": false,
3446 "isLValue": false,
3447 "isPure": false,
3448 "kind": "typeConversion",
3449 "lValueRequested": false,
3450 "names": [],
3451 "nodeType": "FunctionCall",
3452 "src": "1181:16:12",
3453 "typeDescriptions": {
3454 "typeIdentifier": "t_address",
3455 "typeString": "address"
3456 }
3457 },
3458 {
3459 "argumentTypes": null,
3460 "baseExpression": {
3461 "argumentTypes": null,
3462 "id": 1770,
3463 "name": "endpoints",
3464 "nodeType": "Identifier",
3465 "overloadedDeclarations": [],
3466 "referencedDeclaration": 1738,
3467 "src": "1199:9:12",
3468 "typeDescriptions": {
3469 "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
3470 "typeString": "bytes32[] memory"
3471 }
3472 },
3473 "id": 1772,
3474 "indexExpression": {
3475 "argumentTypes": null,
3476 "id": 1771,
3477 "name": "i",
3478 "nodeType": "Identifier",
3479 "overloadedDeclarations": [],
3480 "referencedDeclaration": 1754,
3481 "src": "1209:1:12",
3482 "typeDescriptions": {
3483 "typeIdentifier": "t_uint256",
3484 "typeString": "uint256"
3485 }
3486 },
3487 "isConstant": false,
3488 "isLValue": true,
3489 "isPure": false,
3490 "lValueRequested": false,
3491 "nodeType": "IndexAccess",
3492 "src": "1199:12:12",
3493 "typeDescriptions": {
3494 "typeIdentifier": "t_bytes32",
3495 "typeString": "bytes32"
3496 }
3497 }
3498 ],
3499 "expression": {
3500 "argumentTypes": [
3501 {
3502 "typeIdentifier": "t_address",
3503 "typeString": "address"
3504 },
3505 {
3506 "typeIdentifier": "t_bytes32",
3507 "typeString": "bytes32"
3508 }
3509 ],
3510 "expression": {
3511 "argumentTypes": null,
3512 "id": 1765,
3513 "name": "bondage",
3514 "nodeType": "Identifier",
3515 "overloadedDeclarations": [],
3516 "referencedDeclaration": 1730,
3517 "src": "1161:7:12",
3518 "typeDescriptions": {
3519 "typeIdentifier": "t_contract$_BondageInterface_$7926",
3520 "typeString": "contract BondageInterface"
3521 }
3522 },
3523 "id": 1766,
3524 "isConstant": false,
3525 "isLValue": false,
3526 "isPure": false,
3527 "lValueRequested": false,
3528 "memberName": "getZapBound",
3529 "nodeType": "MemberAccess",
3530 "referencedDeclaration": 7916,
3531 "src": "1161:19:12",
3532 "typeDescriptions": {
3533 "typeIdentifier": "t_function_external_view$_t_address_$_t_bytes32_$returns$_t_uint256_$",
3534 "typeString": "function (address,bytes32) view external returns (uint256)"
3535 }
3536 },
3537 "id": 1773,
3538 "isConstant": false,
3539 "isLValue": false,
3540 "isPure": false,
3541 "kind": "functionCall",
3542 "lValueRequested": false,
3543 "names": [],
3544 "nodeType": "FunctionCall",
3545 "src": "1161:51:12",
3546 "typeDescriptions": {
3547 "typeIdentifier": "t_uint256",
3548 "typeString": "uint256"
3549 }
3550 },
3551 "src": "1153:59:12",
3552 "typeDescriptions": {
3553 "typeIdentifier": "t_uint256",
3554 "typeString": "uint256"
3555 }
3556 },
3557 "id": 1775,
3558 "nodeType": "ExpressionStatement",
3559 "src": "1153:59:12"
3560 },
3561 {
3562 "condition": {
3563 "argumentTypes": null,
3564 "commonType": {
3565 "typeIdentifier": "t_uint256",
3566 "typeString": "uint256"
3567 },
3568 "id": 1778,
3569 "isConstant": false,
3570 "isLValue": false,
3571 "isPure": false,
3572 "lValueRequested": false,
3573 "leftExpression": {
3574 "argumentTypes": null,
3575 "id": 1776,
3576 "name": "bound",
3577 "nodeType": "Identifier",
3578 "overloadedDeclarations": [],
3579 "referencedDeclaration": 1751,
3580 "src": "1227:5:12",
3581 "typeDescriptions": {
3582 "typeIdentifier": "t_uint256",
3583 "typeString": "uint256"
3584 }
3585 },
3586 "nodeType": "BinaryOperation",
3587 "operator": ">",
3588 "rightExpression": {
3589 "argumentTypes": null,
3590 "id": 1777,
3591 "name": "max",
3592 "nodeType": "Identifier",
3593 "overloadedDeclarations": [],
3594 "referencedDeclaration": 1747,
3595 "src": "1235:3:12",
3596 "typeDescriptions": {
3597 "typeIdentifier": "t_uint256",
3598 "typeString": "uint256"
3599 }
3600 },
3601 "src": "1227:11:12",
3602 "typeDescriptions": {
3603 "typeIdentifier": "t_bool",
3604 "typeString": "bool"
3605 }
3606 },
3607 "falseBody": null,
3608 "id": 1790,
3609 "nodeType": "IfStatement",
3610 "src": "1223:88:12",
3611 "trueBody": {
3612 "id": 1789,
3613 "nodeType": "Block",
3614 "src": "1240:71:12",
3615 "statements": [
3616 {
3617 "expression": {
3618 "argumentTypes": null,
3619 "id": 1781,
3620 "isConstant": false,
3621 "isLValue": false,
3622 "isPure": false,
3623 "lValueRequested": false,
3624 "leftHandSide": {
3625 "argumentTypes": null,
3626 "id": 1779,
3627 "name": "max",
3628 "nodeType": "Identifier",
3629 "overloadedDeclarations": [],
3630 "referencedDeclaration": 1747,
3631 "src": "1254:3:12",
3632 "typeDescriptions": {
3633 "typeIdentifier": "t_uint256",
3634 "typeString": "uint256"
3635 }
3636 },
3637 "nodeType": "Assignment",
3638 "operator": "=",
3639 "rightHandSide": {
3640 "argumentTypes": null,
3641 "id": 1780,
3642 "name": "bound",
3643 "nodeType": "Identifier",
3644 "overloadedDeclarations": [],
3645 "referencedDeclaration": 1751,
3646 "src": "1260:5:12",
3647 "typeDescriptions": {
3648 "typeIdentifier": "t_uint256",
3649 "typeString": "uint256"
3650 }
3651 },
3652 "src": "1254:11:12",
3653 "typeDescriptions": {
3654 "typeIdentifier": "t_uint256",
3655 "typeString": "uint256"
3656 }
3657 },
3658 "id": 1782,
3659 "nodeType": "ExpressionStatement",
3660 "src": "1254:11:12"
3661 },
3662 {
3663 "expression": {
3664 "argumentTypes": null,
3665 "id": 1787,
3666 "isConstant": false,
3667 "isLValue": false,
3668 "isPure": false,
3669 "lValueRequested": false,
3670 "leftHandSide": {
3671 "argumentTypes": null,
3672 "id": 1783,
3673 "name": "winner",
3674 "nodeType": "Identifier",
3675 "overloadedDeclarations": [],
3676 "referencedDeclaration": 1744,
3677 "src": "1279:6:12",
3678 "typeDescriptions": {
3679 "typeIdentifier": "t_bytes32",
3680 "typeString": "bytes32"
3681 }
3682 },
3683 "nodeType": "Assignment",
3684 "operator": "=",
3685 "rightHandSide": {
3686 "argumentTypes": null,
3687 "baseExpression": {
3688 "argumentTypes": null,
3689 "id": 1784,
3690 "name": "endpoints",
3691 "nodeType": "Identifier",
3692 "overloadedDeclarations": [],
3693 "referencedDeclaration": 1738,
3694 "src": "1288:9:12",
3695 "typeDescriptions": {
3696 "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
3697 "typeString": "bytes32[] memory"
3698 }
3699 },
3700 "id": 1786,
3701 "indexExpression": {
3702 "argumentTypes": null,
3703 "id": 1785,
3704 "name": "i",
3705 "nodeType": "Identifier",
3706 "overloadedDeclarations": [],
3707 "referencedDeclaration": 1754,
3708 "src": "1298:1:12",
3709 "typeDescriptions": {
3710 "typeIdentifier": "t_uint256",
3711 "typeString": "uint256"
3712 }
3713 },
3714 "isConstant": false,
3715 "isLValue": true,
3716 "isPure": false,
3717 "lValueRequested": false,
3718 "nodeType": "IndexAccess",
3719 "src": "1288:12:12",
3720 "typeDescriptions": {
3721 "typeIdentifier": "t_bytes32",
3722 "typeString": "bytes32"
3723 }
3724 },
3725 "src": "1279:21:12",
3726 "typeDescriptions": {
3727 "typeIdentifier": "t_bytes32",
3728 "typeString": "bytes32"
3729 }
3730 },
3731 "id": 1788,
3732 "nodeType": "ExpressionStatement",
3733 "src": "1279:21:12"
3734 }
3735 ]
3736 }
3737 }
3738 ]
3739 },
3740 "condition": {
3741 "argumentTypes": null,
3742 "commonType": {
3743 "typeIdentifier": "t_uint256",
3744 "typeString": "uint256"
3745 },
3746 "id": 1760,
3747 "isConstant": false,
3748 "isLValue": false,
3749 "isPure": false,
3750 "lValueRequested": false,
3751 "leftExpression": {
3752 "argumentTypes": null,
3753 "id": 1757,
3754 "name": "i",
3755 "nodeType": "Identifier",
3756 "overloadedDeclarations": [],
3757 "referencedDeclaration": 1754,
3758 "src": "1116:1:12",
3759 "typeDescriptions": {
3760 "typeIdentifier": "t_uint256",
3761 "typeString": "uint256"
3762 }
3763 },
3764 "nodeType": "BinaryOperation",
3765 "operator": "<",
3766 "rightExpression": {
3767 "argumentTypes": null,
3768 "expression": {
3769 "argumentTypes": null,
3770 "id": 1758,
3771 "name": "endpoints",
3772 "nodeType": "Identifier",
3773 "overloadedDeclarations": [],
3774 "referencedDeclaration": 1738,
3775 "src": "1120:9:12",
3776 "typeDescriptions": {
3777 "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
3778 "typeString": "bytes32[] memory"
3779 }
3780 },
3781 "id": 1759,
3782 "isConstant": false,
3783 "isLValue": false,
3784 "isPure": false,
3785 "lValueRequested": false,
3786 "memberName": "length",
3787 "nodeType": "MemberAccess",
3788 "referencedDeclaration": null,
3789 "src": "1120:16:12",
3790 "typeDescriptions": {
3791 "typeIdentifier": "t_uint256",
3792 "typeString": "uint256"
3793 }
3794 },
3795 "src": "1116:20:12",
3796 "typeDescriptions": {
3797 "typeIdentifier": "t_bool",
3798 "typeString": "bool"
3799 }
3800 },
3801 "id": 1792,
3802 "initializationExpression": {
3803 "assignments": [
3804 1754
3805 ],
3806 "declarations": [
3807 {
3808 "constant": false,
3809 "id": 1754,
3810 "name": "i",
3811 "nodeType": "VariableDeclaration",
3812 "scope": 1800,
3813 "src": "1101:9:12",
3814 "stateVariable": false,
3815 "storageLocation": "default",
3816 "typeDescriptions": {
3817 "typeIdentifier": "t_uint256",
3818 "typeString": "uint256"
3819 },
3820 "typeName": {
3821 "id": 1753,
3822 "name": "uint256",
3823 "nodeType": "ElementaryTypeName",
3824 "src": "1101:7:12",
3825 "typeDescriptions": {
3826 "typeIdentifier": "t_uint256",
3827 "typeString": "uint256"
3828 }
3829 },
3830 "value": null,
3831 "visibility": "internal"
3832 }
3833 ],
3834 "id": 1756,
3835 "initialValue": {
3836 "argumentTypes": null,
3837 "hexValue": "30",
3838 "id": 1755,
3839 "isConstant": false,
3840 "isLValue": false,
3841 "isPure": true,
3842 "kind": "number",
3843 "lValueRequested": false,
3844 "nodeType": "Literal",
3845 "src": "1113:1:12",
3846 "subdenomination": null,
3847 "typeDescriptions": {
3848 "typeIdentifier": "t_rational_0_by_1",
3849 "typeString": "int_const 0"
3850 },
3851 "value": "0"
3852 },
3853 "nodeType": "VariableDeclarationStatement",
3854 "src": "1101:13:12"
3855 },
3856 "loopExpression": {
3857 "expression": {
3858 "argumentTypes": null,
3859 "id": 1762,
3860 "isConstant": false,
3861 "isLValue": false,
3862 "isPure": false,
3863 "lValueRequested": false,
3864 "nodeType": "UnaryOperation",
3865 "operator": "++",
3866 "prefix": false,
3867 "src": "1138:3:12",
3868 "subExpression": {
3869 "argumentTypes": null,
3870 "id": 1761,
3871 "name": "i",
3872 "nodeType": "Identifier",
3873 "overloadedDeclarations": [],
3874 "referencedDeclaration": 1754,
3875 "src": "1138:1:12",
3876 "typeDescriptions": {
3877 "typeIdentifier": "t_uint256",
3878 "typeString": "uint256"
3879 }
3880 },
3881 "typeDescriptions": {
3882 "typeIdentifier": "t_uint256",
3883 "typeString": "uint256"
3884 }
3885 },
3886 "id": 1763,
3887 "nodeType": "ExpressionStatement",
3888 "src": "1138:3:12"
3889 },
3890 "nodeType": "ForStatement",
3891 "src": "1096:221:12"
3892 },
3893 {
3894 "expression": {
3895 "argumentTypes": null,
3896 "arguments": [
3897 {
3898 "argumentTypes": null,
3899 "id": 1796,
3900 "name": "winner",
3901 "nodeType": "Identifier",
3902 "overloadedDeclarations": [],
3903 "referencedDeclaration": 1744,
3904 "src": "1336:6:12",
3905 "typeDescriptions": {
3906 "typeIdentifier": "t_bytes32",
3907 "typeString": "bytes32"
3908 }
3909 }
3910 ],
3911 "expression": {
3912 "argumentTypes": [
3913 {
3914 "typeIdentifier": "t_bytes32",
3915 "typeString": "bytes32"
3916 }
3917 ],
3918 "expression": {
3919 "argumentTypes": null,
3920 "id": 1793,
3921 "name": "contest",
3922 "nodeType": "Identifier",
3923 "overloadedDeclarations": [],
3924 "referencedDeclaration": 1671,
3925 "src": "1322:7:12",
3926 "typeDescriptions": {
3927 "typeIdentifier": "t_contract$_SampleContest_$3254",
3928 "typeString": "contract SampleContest"
3929 }
3930 },
3931 "id": 1795,
3932 "isConstant": false,
3933 "isLValue": false,
3934 "isPure": false,
3935 "lValueRequested": false,
3936 "memberName": "judge",
3937 "nodeType": "MemberAccess",
3938 "referencedDeclaration": 2459,
3939 "src": "1322:13:12",
3940 "typeDescriptions": {
3941 "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$returns$__$",
3942 "typeString": "function (bytes32) external"
3943 }
3944 },
3945 "id": 1797,
3946 "isConstant": false,
3947 "isLValue": false,
3948 "isPure": false,
3949 "kind": "functionCall",
3950 "lValueRequested": false,
3951 "names": [],
3952 "nodeType": "FunctionCall",
3953 "src": "1322:21:12",
3954 "typeDescriptions": {
3955 "typeIdentifier": "t_tuple$__$",
3956 "typeString": "tuple()"
3957 }
3958 },
3959 "id": 1798,
3960 "nodeType": "ExpressionStatement",
3961 "src": "1322:21:12"
3962 }
3963 ]
3964 },
3965 "documentation": null,
3966 "id": 1800,
3967 "implemented": true,
3968 "isConstructor": false,
3969 "isDeclaredConst": false,
3970 "modifiers": [],
3971 "name": "settle",
3972 "nodeType": "FunctionDefinition",
3973 "parameters": {
3974 "id": 1704,
3975 "nodeType": "ParameterList",
3976 "parameters": [],
3977 "src": "713:2:12"
3978 },
3979 "payable": false,
3980 "returnParameters": {
3981 "id": 1705,
3982 "nodeType": "ParameterList",
3983 "parameters": [],
3984 "src": "716:0:12"
3985 },
3986 "scope": 1809,
3987 "src": "698:650:12",
3988 "stateMutability": "nonpayable",
3989 "superFunction": null,
3990 "visibility": "public"
3991 },
3992 {
3993 "body": {
3994 "id": 1807,
3995 "nodeType": "Block",
3996 "src": "1391:25:12",
3997 "statements": [
3998 {
3999 "expression": {
4000 "argumentTypes": null,
4001 "id": 1805,
4002 "name": "endtime",
4003 "nodeType": "Identifier",
4004 "overloadedDeclarations": [],
4005 "referencedDeclaration": 1677,
4006 "src": "1404:7:12",
4007 "typeDescriptions": {
4008 "typeIdentifier": "t_uint256",
4009 "typeString": "uint256"
4010 }
4011 },
4012 "functionReturnParameters": 1804,
4013 "id": 1806,
4014 "nodeType": "Return",
4015 "src": "1397:14:12"
4016 }
4017 ]
4018 },
4019 "documentation": null,
4020 "id": 1808,
4021 "implemented": true,
4022 "isConstructor": false,
4023 "isDeclaredConst": false,
4024 "modifiers": [],
4025 "name": "getEndTime",
4026 "nodeType": "FunctionDefinition",
4027 "parameters": {
4028 "id": 1801,
4029 "nodeType": "ParameterList",
4030 "parameters": [],
4031 "src": "1371:2:12"
4032 },
4033 "payable": false,
4034 "returnParameters": {
4035 "id": 1804,
4036 "nodeType": "ParameterList",
4037 "parameters": [
4038 {
4039 "constant": false,
4040 "id": 1803,
4041 "name": "",
4042 "nodeType": "VariableDeclaration",
4043 "scope": 1808,
4044 "src": "1382:7:12",
4045 "stateVariable": false,
4046 "storageLocation": "default",
4047 "typeDescriptions": {
4048 "typeIdentifier": "t_uint256",
4049 "typeString": "uint256"
4050 },
4051 "typeName": {
4052 "id": 1802,
4053 "name": "uint256",
4054 "nodeType": "ElementaryTypeName",
4055 "src": "1382:7:12",
4056 "typeDescriptions": {
4057 "typeIdentifier": "t_uint256",
4058 "typeString": "uint256"
4059 }
4060 },
4061 "value": null,
4062 "visibility": "internal"
4063 }
4064 ],
4065 "src": "1381:9:12"
4066 },
4067 "scope": 1809,
4068 "src": "1352:64:12",
4069 "stateMutability": "nonpayable",
4070 "superFunction": null,
4071 "visibility": "public"
4072 }
4073 ],
4074 "scope": 1810,
4075 "src": "302:1116:12"
4076 }
4077 ],
4078 "src": "0:1419:12"
4079 },
4080 "compiler": {
4081 "name": "solc",
4082 "version": "0.4.25+commit.59dbf8f1.Emscripten.clang"
4083 },
4084 "networks": {},
4085 "schemaVersion": "2.0.2",
4086 "updatedAt": "2019-06-25T21:15:14.157Z"
4087}
\No newline at end of file