tx · Fo85Ej6YMbARw4FurpfExAaJcFzXa6YsdviesboDRP1N 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB: -0.01400000 Waves 2021.06.03 10:53 [1553909] smart account 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB > SELF 0.00000000 Waves
{ "type": 13, "id": "Fo85Ej6YMbARw4FurpfExAaJcFzXa6YsdviesboDRP1N", "fee": 1400000, "feeAssetId": null, "timestamp": 1622706891664, "version": 2, "chainId": 84, "sender": "3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB", "senderPublicKey": "CQ7vntBAYh2QZcKcqiiyEnQWWXsr98ysDptD23Wgxmvb", "proofs": [ "2hb28dcbf1p23M9zzGthYBmfT4J2pAJ4sBgjeXtVr3RLzB2XTaA1x21DLYcFEZ4oZ8z8k5BqUrSdCykEErdsW8Ez" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAACgEAAAAHbGlzdFN1bQAAAAEAAAADYXJyCgEAAAADc3VtAAAAAgAAAAFhAAAAAWIJAABkAAAAAgUAAAABYQUAAAABYgQAAAALJGxpc3QxNTYxNzcFAAAAA2FycgQAAAALJHNpemUxNTYxNzcJAAGQAAAAAQUAAAALJGxpc3QxNTYxNzcEAAAACyRhY2MwMTU2MTc3AAAAAAAAAAAAAwkAAAAAAAACBQAAAAskc2l6ZTE1NjE3NwAAAAAAAAAAAAUAAAALJGFjYzAxNTYxNzcEAAAACyRhY2MxMTU2MTc3CQEAAAADc3VtAAAAAgUAAAALJGFjYzAxNTYxNzcJAAGRAAAAAgUAAAALJGxpc3QxNTYxNzcAAAAAAAAAAAADCQAAAAAAAAIFAAAACyRzaXplMTU2MTc3AAAAAAAAAAABBQAAAAskYWNjMTE1NjE3NwQAAAALJGFjYzIxNTYxNzcJAQAAAANzdW0AAAACBQAAAAskYWNjMTE1NjE3NwkAAZEAAAACBQAAAAskbGlzdDE1NjE3NwAAAAAAAAAAAQMJAAAAAAAAAgUAAAALJHNpemUxNT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AAAAEJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAJc2NvcmUxOD0+CQABpAAAAAEJAAGRAAAAAgUAAAAGc2NvcmUxAAAAAAAAAAARAgAAABAvY291cnNlQWRkcmVzcz0+CQABkQAAAAIFAAAADHJvdW5kQ291cnNlMQAAAAAAAAAAAAQAAAASYXZlcmFnZVNjb3JlSGlzdHJ5AAAAAAAAAAAACQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAAAAAAAAAAAAAEFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5nB0xpg==", "height": 1553909, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HRZKjt5xsfsHaF4pC6JWsUdrLfgoTGHJLkgDoHvB1FTf Next: 72YobrsBUH12epXDuU1SPggqMJEJGrV8fGusBrj2LQrz Diff:
Old | New | Differences | |
---|---|---|---|
392 | 392 | let roundCourse2 = split(roundCourseString, "_&&_") | |
393 | 393 | let roundCourse3 = split(roundCourseString, "_&&_") | |
394 | 394 | if ((count == 1)) | |
395 | - | then throw(((("score18=>" + toString(score1[ | |
395 | + | then throw(((("score18=>" + toString(score1[17])) + "/courseAddress=>") + roundCourse1[0])) | |
396 | 396 | else { | |
397 | 397 | let averageScoreHistry = 0 | |
398 | 398 | [IntegerEntry("", 1)] |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func listSum (arr) = { | |
5 | 5 | func sum (a,b) = (a + b) | |
6 | 6 | ||
7 | 7 | let $list156177 = arr | |
8 | 8 | let $size156177 = size($list156177) | |
9 | 9 | let $acc0156177 = 0 | |
10 | 10 | if (($size156177 == 0)) | |
11 | 11 | then $acc0156177 | |
12 | 12 | else { | |
13 | 13 | let $acc1156177 = sum($acc0156177, $list156177[0]) | |
14 | 14 | if (($size156177 == 1)) | |
15 | 15 | then $acc1156177 | |
16 | 16 | else { | |
17 | 17 | let $acc2156177 = sum($acc1156177, $list156177[1]) | |
18 | 18 | if (($size156177 == 2)) | |
19 | 19 | then $acc2156177 | |
20 | 20 | else { | |
21 | 21 | let $acc3156177 = sum($acc2156177, $list156177[2]) | |
22 | 22 | if (($size156177 == 3)) | |
23 | 23 | then $acc3156177 | |
24 | 24 | else { | |
25 | 25 | let $acc4156177 = sum($acc3156177, $list156177[3]) | |
26 | 26 | if (($size156177 == 4)) | |
27 | 27 | then $acc4156177 | |
28 | 28 | else { | |
29 | 29 | let $acc5156177 = sum($acc4156177, $list156177[4]) | |
30 | 30 | if (($size156177 == 5)) | |
31 | 31 | then $acc5156177 | |
32 | 32 | else { | |
33 | 33 | let $acc6156177 = sum($acc5156177, $list156177[5]) | |
34 | 34 | if (($size156177 == 6)) | |
35 | 35 | then $acc6156177 | |
36 | 36 | else { | |
37 | 37 | let $acc7156177 = sum($acc6156177, $list156177[6]) | |
38 | 38 | if (($size156177 == 7)) | |
39 | 39 | then $acc7156177 | |
40 | 40 | else { | |
41 | 41 | let $acc8156177 = sum($acc7156177, $list156177[7]) | |
42 | 42 | if (($size156177 == 8)) | |
43 | 43 | then $acc8156177 | |
44 | 44 | else { | |
45 | 45 | let $acc9156177 = sum($acc8156177, $list156177[8]) | |
46 | 46 | if (($size156177 == 9)) | |
47 | 47 | then $acc9156177 | |
48 | 48 | else { | |
49 | 49 | let $acc10156177 = sum($acc9156177, $list156177[9]) | |
50 | 50 | if (($size156177 == 10)) | |
51 | 51 | then $acc10156177 | |
52 | 52 | else { | |
53 | 53 | let $acc11156177 = sum($acc10156177, $list156177[10]) | |
54 | 54 | if (($size156177 == 11)) | |
55 | 55 | then $acc11156177 | |
56 | 56 | else { | |
57 | 57 | let $acc12156177 = sum($acc11156177, $list156177[11]) | |
58 | 58 | if (($size156177 == 12)) | |
59 | 59 | then $acc12156177 | |
60 | 60 | else { | |
61 | 61 | let $acc13156177 = sum($acc12156177, $list156177[12]) | |
62 | 62 | if (($size156177 == 13)) | |
63 | 63 | then $acc13156177 | |
64 | 64 | else { | |
65 | 65 | let $acc14156177 = sum($acc13156177, $list156177[13]) | |
66 | 66 | if (($size156177 == 14)) | |
67 | 67 | then $acc14156177 | |
68 | 68 | else { | |
69 | 69 | let $acc15156177 = sum($acc14156177, $list156177[14]) | |
70 | 70 | if (($size156177 == 15)) | |
71 | 71 | then $acc15156177 | |
72 | 72 | else { | |
73 | 73 | let $acc16156177 = sum($acc15156177, $list156177[15]) | |
74 | 74 | if (($size156177 == 16)) | |
75 | 75 | then $acc16156177 | |
76 | 76 | else { | |
77 | 77 | let $acc17156177 = sum($acc16156177, $list156177[16]) | |
78 | 78 | if (($size156177 == 17)) | |
79 | 79 | then $acc17156177 | |
80 | 80 | else { | |
81 | 81 | let $acc18156177 = sum($acc17156177, $list156177[17]) | |
82 | 82 | if (($size156177 == 18)) | |
83 | 83 | then $acc18156177 | |
84 | 84 | else { | |
85 | 85 | let $acc19156177 = sum($acc18156177, $list156177[18]) | |
86 | 86 | throw("List size exceed 18") | |
87 | 87 | } | |
88 | 88 | } | |
89 | 89 | } | |
90 | 90 | } | |
91 | 91 | } | |
92 | 92 | } | |
93 | 93 | } | |
94 | 94 | } | |
95 | 95 | } | |
96 | 96 | } | |
97 | 97 | } | |
98 | 98 | } | |
99 | 99 | } | |
100 | 100 | } | |
101 | 101 | } | |
102 | 102 | } | |
103 | 103 | } | |
104 | 104 | } | |
105 | 105 | } | |
106 | 106 | } | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func parseIntList (list) = [parseIntValue(list[0]), parseIntValue(list[1]), parseIntValue(list[2]), parseIntValue(list[3]), parseIntValue(list[4]), parseIntValue(list[5]), parseIntValue(list[6]), parseIntValue(list[7]), parseIntValue(list[8]), parseIntValue(list[9]), parseIntValue(list[10]), parseIntValue(list[11]), parseIntValue(list[12]), parseIntValue(list[13]), parseIntValue(list[14]), parseIntValue(list[15]), parseIntValue(list[16]), parseIntValue(list[17])] | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func getRoundScore (roundCount,currentKey) = match getString(this, ((currentKey + "_round_score_") + toString(roundCount))) { | |
113 | 113 | case a: String => | |
114 | 114 | a | |
115 | 115 | case _ => | |
116 | 116 | "" | |
117 | 117 | } | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func getRoundCourse (roundCount,currentKey) = match getString(this, ((currentKey + "_round_course_") + toString(roundCount))) { | |
121 | 121 | case a: String => | |
122 | 122 | a | |
123 | 123 | case _ => | |
124 | 124 | "" | |
125 | 125 | } | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func holeStrokeReceiveFunc (handicapIndex,hdcp) = if ((handicapIndex >= hdcp)) | |
129 | 129 | then 1 | |
130 | 130 | else 0 | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func foldFuncHoldHandi (score,par,hdcpList,handicap) = { | |
134 | 134 | func foldFunc (acc,i) = { | |
135 | 135 | let holeStrokeReceive = holeStrokeReceiveFunc(handicap, hdcpList[i]) | |
136 | 136 | let netDoubleBogey = ((par[i] + 2) + holeStrokeReceive) | |
137 | 137 | if ((score[i] > netDoubleBogey)) | |
138 | 138 | then (acc :+ netDoubleBogey) | |
139 | 139 | else (acc :+ score[i]) | |
140 | 140 | } | |
141 | 141 | ||
142 | 142 | let $list18461875 = score | |
143 | 143 | let $size18461875 = size($list18461875) | |
144 | 144 | let $acc018461875 = nil | |
145 | 145 | if (($size18461875 == 0)) | |
146 | 146 | then $acc018461875 | |
147 | 147 | else { | |
148 | 148 | let $acc118461875 = foldFunc($acc018461875, $list18461875[0]) | |
149 | 149 | if (($size18461875 == 1)) | |
150 | 150 | then $acc118461875 | |
151 | 151 | else { | |
152 | 152 | let $acc218461875 = foldFunc($acc118461875, $list18461875[1]) | |
153 | 153 | if (($size18461875 == 2)) | |
154 | 154 | then $acc218461875 | |
155 | 155 | else { | |
156 | 156 | let $acc318461875 = foldFunc($acc218461875, $list18461875[2]) | |
157 | 157 | if (($size18461875 == 3)) | |
158 | 158 | then $acc318461875 | |
159 | 159 | else { | |
160 | 160 | let $acc418461875 = foldFunc($acc318461875, $list18461875[3]) | |
161 | 161 | if (($size18461875 == 4)) | |
162 | 162 | then $acc418461875 | |
163 | 163 | else { | |
164 | 164 | let $acc518461875 = foldFunc($acc418461875, $list18461875[4]) | |
165 | 165 | if (($size18461875 == 5)) | |
166 | 166 | then $acc518461875 | |
167 | 167 | else { | |
168 | 168 | let $acc618461875 = foldFunc($acc518461875, $list18461875[5]) | |
169 | 169 | if (($size18461875 == 6)) | |
170 | 170 | then $acc618461875 | |
171 | 171 | else { | |
172 | 172 | let $acc718461875 = foldFunc($acc618461875, $list18461875[6]) | |
173 | 173 | if (($size18461875 == 7)) | |
174 | 174 | then $acc718461875 | |
175 | 175 | else { | |
176 | 176 | let $acc818461875 = foldFunc($acc718461875, $list18461875[7]) | |
177 | 177 | if (($size18461875 == 8)) | |
178 | 178 | then $acc818461875 | |
179 | 179 | else { | |
180 | 180 | let $acc918461875 = foldFunc($acc818461875, $list18461875[8]) | |
181 | 181 | if (($size18461875 == 9)) | |
182 | 182 | then $acc918461875 | |
183 | 183 | else { | |
184 | 184 | let $acc1018461875 = foldFunc($acc918461875, $list18461875[9]) | |
185 | 185 | if (($size18461875 == 10)) | |
186 | 186 | then $acc1018461875 | |
187 | 187 | else { | |
188 | 188 | let $acc1118461875 = foldFunc($acc1018461875, $list18461875[10]) | |
189 | 189 | if (($size18461875 == 11)) | |
190 | 190 | then $acc1118461875 | |
191 | 191 | else { | |
192 | 192 | let $acc1218461875 = foldFunc($acc1118461875, $list18461875[11]) | |
193 | 193 | if (($size18461875 == 12)) | |
194 | 194 | then $acc1218461875 | |
195 | 195 | else { | |
196 | 196 | let $acc1318461875 = foldFunc($acc1218461875, $list18461875[12]) | |
197 | 197 | if (($size18461875 == 13)) | |
198 | 198 | then $acc1318461875 | |
199 | 199 | else { | |
200 | 200 | let $acc1418461875 = foldFunc($acc1318461875, $list18461875[13]) | |
201 | 201 | if (($size18461875 == 14)) | |
202 | 202 | then $acc1418461875 | |
203 | 203 | else { | |
204 | 204 | let $acc1518461875 = foldFunc($acc1418461875, $list18461875[14]) | |
205 | 205 | if (($size18461875 == 15)) | |
206 | 206 | then $acc1518461875 | |
207 | 207 | else { | |
208 | 208 | let $acc1618461875 = foldFunc($acc1518461875, $list18461875[15]) | |
209 | 209 | if (($size18461875 == 16)) | |
210 | 210 | then $acc1618461875 | |
211 | 211 | else { | |
212 | 212 | let $acc1718461875 = foldFunc($acc1618461875, $list18461875[16]) | |
213 | 213 | if (($size18461875 == 17)) | |
214 | 214 | then $acc1718461875 | |
215 | 215 | else { | |
216 | 216 | let $acc1818461875 = foldFunc($acc1718461875, $list18461875[17]) | |
217 | 217 | if (($size18461875 == 18)) | |
218 | 218 | then $acc1818461875 | |
219 | 219 | else { | |
220 | 220 | let $acc1918461875 = foldFunc($acc1818461875, $list18461875[18]) | |
221 | 221 | throw("List size exceed 18") | |
222 | 222 | } | |
223 | 223 | } | |
224 | 224 | } | |
225 | 225 | } | |
226 | 226 | } | |
227 | 227 | } | |
228 | 228 | } | |
229 | 229 | } | |
230 | 230 | } | |
231 | 231 | } | |
232 | 232 | } | |
233 | 233 | } | |
234 | 234 | } | |
235 | 235 | } | |
236 | 236 | } | |
237 | 237 | } | |
238 | 238 | } | |
239 | 239 | } | |
240 | 240 | } | |
241 | 241 | } | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | func foldFuncNoHandi (score,par) = { | |
245 | 245 | func foldFunc (acc,i) = if ((score[i] > (par[i] + 5))) | |
246 | 246 | then (acc :+ (par[i] + 5)) | |
247 | 247 | else (acc :+ score[i]) | |
248 | 248 | ||
249 | 249 | let $list20992128 = score | |
250 | 250 | let $size20992128 = size($list20992128) | |
251 | 251 | let $acc020992128 = nil | |
252 | 252 | if (($size20992128 == 0)) | |
253 | 253 | then $acc020992128 | |
254 | 254 | else { | |
255 | 255 | let $acc120992128 = foldFunc($acc020992128, $list20992128[0]) | |
256 | 256 | if (($size20992128 == 1)) | |
257 | 257 | then $acc120992128 | |
258 | 258 | else { | |
259 | 259 | let $acc220992128 = foldFunc($acc120992128, $list20992128[1]) | |
260 | 260 | if (($size20992128 == 2)) | |
261 | 261 | then $acc220992128 | |
262 | 262 | else { | |
263 | 263 | let $acc320992128 = foldFunc($acc220992128, $list20992128[2]) | |
264 | 264 | if (($size20992128 == 3)) | |
265 | 265 | then $acc320992128 | |
266 | 266 | else { | |
267 | 267 | let $acc420992128 = foldFunc($acc320992128, $list20992128[3]) | |
268 | 268 | if (($size20992128 == 4)) | |
269 | 269 | then $acc420992128 | |
270 | 270 | else { | |
271 | 271 | let $acc520992128 = foldFunc($acc420992128, $list20992128[4]) | |
272 | 272 | if (($size20992128 == 5)) | |
273 | 273 | then $acc520992128 | |
274 | 274 | else { | |
275 | 275 | let $acc620992128 = foldFunc($acc520992128, $list20992128[5]) | |
276 | 276 | if (($size20992128 == 6)) | |
277 | 277 | then $acc620992128 | |
278 | 278 | else { | |
279 | 279 | let $acc720992128 = foldFunc($acc620992128, $list20992128[6]) | |
280 | 280 | if (($size20992128 == 7)) | |
281 | 281 | then $acc720992128 | |
282 | 282 | else { | |
283 | 283 | let $acc820992128 = foldFunc($acc720992128, $list20992128[7]) | |
284 | 284 | if (($size20992128 == 8)) | |
285 | 285 | then $acc820992128 | |
286 | 286 | else { | |
287 | 287 | let $acc920992128 = foldFunc($acc820992128, $list20992128[8]) | |
288 | 288 | if (($size20992128 == 9)) | |
289 | 289 | then $acc920992128 | |
290 | 290 | else { | |
291 | 291 | let $acc1020992128 = foldFunc($acc920992128, $list20992128[9]) | |
292 | 292 | if (($size20992128 == 10)) | |
293 | 293 | then $acc1020992128 | |
294 | 294 | else { | |
295 | 295 | let $acc1120992128 = foldFunc($acc1020992128, $list20992128[10]) | |
296 | 296 | if (($size20992128 == 11)) | |
297 | 297 | then $acc1120992128 | |
298 | 298 | else { | |
299 | 299 | let $acc1220992128 = foldFunc($acc1120992128, $list20992128[11]) | |
300 | 300 | if (($size20992128 == 12)) | |
301 | 301 | then $acc1220992128 | |
302 | 302 | else { | |
303 | 303 | let $acc1320992128 = foldFunc($acc1220992128, $list20992128[12]) | |
304 | 304 | if (($size20992128 == 13)) | |
305 | 305 | then $acc1320992128 | |
306 | 306 | else { | |
307 | 307 | let $acc1420992128 = foldFunc($acc1320992128, $list20992128[13]) | |
308 | 308 | if (($size20992128 == 14)) | |
309 | 309 | then $acc1420992128 | |
310 | 310 | else { | |
311 | 311 | let $acc1520992128 = foldFunc($acc1420992128, $list20992128[14]) | |
312 | 312 | if (($size20992128 == 15)) | |
313 | 313 | then $acc1520992128 | |
314 | 314 | else { | |
315 | 315 | let $acc1620992128 = foldFunc($acc1520992128, $list20992128[15]) | |
316 | 316 | if (($size20992128 == 16)) | |
317 | 317 | then $acc1620992128 | |
318 | 318 | else { | |
319 | 319 | let $acc1720992128 = foldFunc($acc1620992128, $list20992128[16]) | |
320 | 320 | if (($size20992128 == 17)) | |
321 | 321 | then $acc1720992128 | |
322 | 322 | else { | |
323 | 323 | let $acc1820992128 = foldFunc($acc1720992128, $list20992128[17]) | |
324 | 324 | if (($size20992128 == 18)) | |
325 | 325 | then $acc1820992128 | |
326 | 326 | else { | |
327 | 327 | let $acc1920992128 = foldFunc($acc1820992128, $list20992128[18]) | |
328 | 328 | throw("List size exceed 18") | |
329 | 329 | } | |
330 | 330 | } | |
331 | 331 | } | |
332 | 332 | } | |
333 | 333 | } | |
334 | 334 | } | |
335 | 335 | } | |
336 | 336 | } | |
337 | 337 | } | |
338 | 338 | } | |
339 | 339 | } | |
340 | 340 | } | |
341 | 341 | } | |
342 | 342 | } | |
343 | 343 | } | |
344 | 344 | } | |
345 | 345 | } | |
346 | 346 | } | |
347 | 347 | } | |
348 | 348 | } | |
349 | 349 | ||
350 | 350 | ||
351 | 351 | func scoreAdjustmentCalc (score,par,hdcpList,handicap) = if ((handicap == -1)) | |
352 | 352 | then foldFuncNoHandi(score, par) | |
353 | 353 | else foldFuncHoldHandi(score, par, hdcpList, handicap) | |
354 | 354 | ||
355 | 355 | ||
356 | 356 | func scoreDifferential (scoreList,parList,hdcpList,courseRating,slopeRating,handicap) = { | |
357 | 357 | let scoreAdjustmentList = scoreAdjustmentCalc(scoreList, parList, hdcpList, handicap) | |
358 | 358 | let scoreAdjustedTotal = listSum(scoreAdjustmentList) | |
359 | 359 | let scoreSum = listSum(scoreList) | |
360 | 360 | let pcc = 0 | |
361 | 361 | let a = (113 / slopeRating) | |
362 | 362 | let b = ((scoreAdjustedTotal - courseRating) - pcc) | |
363 | 363 | let c = 1 | |
364 | 364 | let result = fraction(a, b, c, HALFUP) | |
365 | 365 | result | |
366 | 366 | } | |
367 | 367 | ||
368 | 368 | ||
369 | 369 | let count = 1 | |
370 | 370 | ||
371 | 371 | @Callable(i) | |
372 | 372 | func issueHandicapIndex () = { | |
373 | 373 | let currentKey = toBase58String(i.caller.bytes) | |
374 | 374 | let getHandicapIndex = match getInteger(this, (currentKey + "_handicapIndex")) { | |
375 | 375 | case a: Int => | |
376 | 376 | a | |
377 | 377 | case _ => | |
378 | 378 | -1 | |
379 | 379 | } | |
380 | 380 | let getRoundCount = match getInteger(this, (currentKey + "_round_count")) { | |
381 | 381 | case a: Int => | |
382 | 382 | a | |
383 | 383 | case _ => | |
384 | 384 | -1 | |
385 | 385 | } | |
386 | 386 | let scoreString = "4_&&_4_&&_4_&&_5_&&_5_&&_5_&&_5_&&_5_&&_5_&&_5_&&_3_&&_5_&&_4_&&_4_&&_5_&&_6_&&_6_&&_6" | |
387 | 387 | let roundCourseString = "3N8DnpwTffUEjDXXEsn6btFrbgWC8VZJhTZ_&&_course_1_&&_course_2_&&_green_1_&&_70_&&_110_&&_men_&&_1622640688000_&&_cloudy_&&_11" | |
388 | 388 | let score1 = parseIntList(split(scoreString, "_&&_")) | |
389 | 389 | let score2 = parseIntList(split(scoreString, "_&&_")) | |
390 | 390 | let score3 = parseIntList(split(scoreString, "_&&_")) | |
391 | 391 | let roundCourse1 = split(roundCourseString, "_&&_") | |
392 | 392 | let roundCourse2 = split(roundCourseString, "_&&_") | |
393 | 393 | let roundCourse3 = split(roundCourseString, "_&&_") | |
394 | 394 | if ((count == 1)) | |
395 | - | then throw(((("score18=>" + toString(score1[ | |
395 | + | then throw(((("score18=>" + toString(score1[17])) + "/courseAddress=>") + roundCourse1[0])) | |
396 | 396 | else { | |
397 | 397 | let averageScoreHistry = 0 | |
398 | 398 | [IntegerEntry("", 1)] | |
399 | 399 | } | |
400 | 400 | } | |
401 | 401 | ||
402 | 402 | ||
403 | 403 | @Verifier(tx) | |
404 | 404 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
405 | 405 |
github/deemru/w8io/026f985 61.00 ms ◑