└── Contest.abi.json /Contest.abi.json: -------------------------------------------------------------------------------- 1 | { 2 | "ABI version": 2, 3 | "header": ["pubkey", "time"], 4 | "functions": [ 5 | { 6 | "name": "votingEndsIn", 7 | "inputs": [ 8 | ], 9 | "outputs": [ 10 | {"name":"daysLeft","type":"uint64"} 11 | ] 12 | }, 13 | { 14 | "name": "contestStartCountdown", 15 | "inputs": [ 16 | ], 17 | "outputs": [ 18 | {"name":"secondsLeft","type":"int64"} 19 | ] 20 | }, 21 | { 22 | "name": "contestCountdown", 23 | "inputs": [ 24 | ], 25 | "outputs": [ 26 | {"name":"secondsLeft","type":"int64"} 27 | ] 28 | }, 29 | { 30 | "name": "votingCountdown", 31 | "inputs": [ 32 | ], 33 | "outputs": [ 34 | {"name":"secondsLeft","type":"int64"} 35 | ] 36 | }, 37 | { 38 | "name": "getId", 39 | "inputs": [ 40 | {"name":"addr","type":"address"} 41 | ], 42 | "outputs": [ 43 | {"name":"value0","type":"uint16"} 44 | ] 45 | }, 46 | { 47 | "name": "listContenders", 48 | "inputs": [ 49 | ], 50 | "outputs": [ 51 | {"name":"ids","type":"uint16[]"}, 52 | {"name":"addresses","type":"address[]"} 53 | ] 54 | }, 55 | { 56 | "name": "getStatsFor", 57 | "inputs": [ 58 | {"name":"id","type":"uint16"} 59 | ], 60 | "outputs": [ 61 | {"name":"totalPoints","type":"uint64"}, 62 | {"name":"avgHi","type":"uint32"}, 63 | {"name":"avgLo","type":"uint32"}, 64 | {"name":"jurorsVoted","type":"uint16"}, 65 | {"name":"accepted","type":"uint16"}, 66 | {"name":"abstained","type":"uint16"}, 67 | {"name":"rejected","type":"uint16"} 68 | ] 69 | }, 70 | { 71 | "name": "getVotesPerJuror", 72 | "inputs": [ 73 | {"name":"id","type":"uint16"} 74 | ], 75 | "outputs": [ 76 | {"name":"jurorsFor","type":"address[]"}, 77 | {"name":"marks","type":"uint32[]"}, 78 | {"name":"commentsFor","type":"bytes[]"}, 79 | {"name":"jurorsAbstained","type":"address[]"}, 80 | {"name":"commentsAbstained","type":"bytes[]"}, 81 | {"name":"jurorsAgainst","type":"address[]"}, 82 | {"name":"commentsAgainst","type":"bytes[]"} 83 | ] 84 | }, 85 | { 86 | "name": "getContestStats", 87 | "inputs": [ 88 | ], 89 | "outputs": [ 90 | {"name":"totalScore","type":"uint64"}, 91 | {"name":"avgHi","type":"uint32"}, 92 | {"name":"avgLo","type":"uint32"}, 93 | {"name":"jurorsVoted","type":"uint16"}, 94 | {"name":"entries","type":"uint16"} 95 | ] 96 | }, 97 | { 98 | "name": "getContestInfo", 99 | "inputs": [ 100 | ], 101 | "outputs": [ 102 | {"name":"title","type":"bytes"}, 103 | {"name":"link","type":"bytes"}, 104 | {"name":"hash","type":"uint256"}, 105 | {"name":"juryAddr","type":"address"}, 106 | {"name":"juryKeys","type":"uint256[]"}, 107 | {"name":"juryAddresses","type":"address[]"}, 108 | {"name":"maxVotingAttempts","type":"uint8"} 109 | ] 110 | }, 111 | { 112 | "name": "getContestProgress", 113 | "inputs": [ 114 | ], 115 | "outputs": [ 116 | {"name":"votesCount","type":"uint64"}, 117 | {"name":"contendersCount","type":"uint16"}, 118 | {"name":"contestOpen","type":"bool"}, 119 | {"name":"votingOpen","type":"bool"}, 120 | {"name":"contestDeadline","type":"uint64"}, 121 | {"name":"votingDeadline","type":"uint64"}, 122 | {"name":"resultsFinalized","type":"bool"} 123 | ] 124 | }, 125 | { 126 | "name": "getInfoFor", 127 | "inputs": [ 128 | {"name":"id","type":"uint16"} 129 | ], 130 | "outputs": [ 131 | {"name":"addr","type":"address"}, 132 | {"name":"forumLink","type":"bytes"}, 133 | {"name":"fileLink","type":"bytes"}, 134 | {"name":"hash","type":"uint256"}, 135 | {"name":"appliedAt","type":"uint64"}, 136 | {"name":"contact","type":"address"} 137 | ] 138 | }, 139 | { 140 | "name": "getContendersInfo", 141 | "inputs": [ 142 | ], 143 | "outputs": [ 144 | {"name":"ids","type":"uint16[]"}, 145 | {"name":"addrs","type":"address[]"}, 146 | {"name":"forumLinks","type":"bytes[]"}, 147 | {"name":"fileLinks","type":"bytes[]"}, 148 | {"name":"hashes","type":"uint256[]"}, 149 | {"name":"appliedAts","type":"uint64[]"}, 150 | {"name":"contacts","type":"address[]"} 151 | ] 152 | }, 153 | { 154 | "name": "getVotes", 155 | "inputs": [ 156 | ], 157 | "outputs": [ 158 | {"name":"votes","type":"uint64"} 159 | ] 160 | }, 161 | { 162 | "name": "getVotesFor", 163 | "inputs": [ 164 | {"name":"id","type":"uint16"} 165 | ], 166 | "outputs": [ 167 | {"name":"votes","type":"uint16"} 168 | ] 169 | }, 170 | { 171 | "name": "getTotalRatingFor", 172 | "inputs": [ 173 | {"name":"id","type":"uint16"} 174 | ], 175 | "outputs": [ 176 | {"name":"rating","type":"uint64"} 177 | ] 178 | }, 179 | { 180 | "name": "resultsFinalized", 181 | "inputs": [ 182 | ], 183 | "outputs": [ 184 | {"name":"flag","type":"bool"} 185 | ] 186 | }, 187 | { 188 | "name": "getFinalStatusFor", 189 | "inputs": [ 190 | {"name":"id","type":"uint16"} 191 | ], 192 | "outputs": [ 193 | {"name":"status","type":"bool"} 194 | ] 195 | }, 196 | { 197 | "name": "getFinalStatus", 198 | "inputs": [ 199 | ], 200 | "outputs": [ 201 | {"name":"status","type":"bool[]"} 202 | ] 203 | }, 204 | { 205 | "name": "getFinalContestStats", 206 | "inputs": [ 207 | ], 208 | "outputs": [ 209 | {"name":"totalScore","type":"uint64"}, 210 | {"name":"avgHi","type":"uint32"}, 211 | {"name":"avgLo","type":"uint32"}, 212 | {"name":"jurorsVoted","type":"uint16"}, 213 | {"name":"entries","type":"uint16"}, 214 | {"name":"passed","type":"uint16"}, 215 | {"name":"rejected","type":"uint16"} 216 | ] 217 | }, 218 | { 219 | "name": "getFinalStatsFor", 220 | "inputs": [ 221 | {"name":"id","type":"uint16"} 222 | ], 223 | "outputs": [ 224 | {"name":"status","type":"bool"}, 225 | {"name":"totalPoints","type":"uint64"}, 226 | {"name":"avgHi","type":"uint32"}, 227 | {"name":"avgLo","type":"uint32"}, 228 | {"name":"jurorsVoted","type":"uint16"}, 229 | {"name":"accepted","type":"uint16"}, 230 | {"name":"abstained","type":"uint16"}, 231 | {"name":"rejected","type":"uint16"} 232 | ] 233 | }, 234 | { 235 | "name": "getFinalVotingData", 236 | "inputs": [ 237 | ], 238 | "outputs": [ 239 | {"name":"ids","type":"uint16[]"}, 240 | {"name":"juryAddresses","type":"address[]"}, 241 | {"name":"statuses","type":"bool[]"}, 242 | {"name":"totalRatings","type":"uint64[]"}, 243 | {"name":"jurorsVoted","type":"uint16[]"}, 244 | {"name":"votesFor","type":"uint16[]"}, 245 | {"name":"votesAbstained","type":"uint16[]"}, 246 | {"name":"votesAgainst","type":"uint16[]"} 247 | ] 248 | } 249 | ], 250 | "data": [ 251 | {"key":1,"name":"debugNonce","type":"uint256"} 252 | ], 253 | "events": [ 254 | ] 255 | } 256 | --------------------------------------------------------------------------------