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