tx · DJYJCFSWpvC42au3Sc6w4UyxziCFAtj732zWjbx1co62

3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB:  -0.01400000 Waves

2021.06.03 09:48 [1553845] smart account 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB > SELF 0.00000000 Waves

{ "type": 13, "id": "DJYJCFSWpvC42au3Sc6w4UyxziCFAtj732zWjbx1co62", "fee": 1400000, "feeAssetId": null, "timestamp": 1622702944754, "version": 2, "chainId": 84, "sender": "3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB", "senderPublicKey": "CQ7vntBAYh2QZcKcqiiyEnQWWXsr98ysDptD23Wgxmvb", "proofs": [ "KFiFBPtUyFLdaj4EsPotidenxnTzCNG8zc3HAkozP7FMJ1E5vcYCfJGHM2vhGMhgi5drXs6YWpguLVkddAdLs63" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAACgEAAAAHbGlzdFN1bQAAAAEAAAADYXJyCgEAAAADc3VtAAAAAgAAAAFhAAAAAWIJAABkAAAAAgUAAAABYQUAAAABYgQAAAALJGxpc3QxNTYxNzYFAAAAA2FycgQAAAALJHNpemUxNTYxNzYJAAGQAAAAAQUAAAALJGxpc3QxNTYxNzYEAAAACyRhY2MwMTU2MTc2AAAAAAAAAAAAAwkAAAAAAAACBQAAAAskc2l6ZTE1NjE3NgAAAAAAAAAAAAUAAAALJGFjYzAxNTYxNzYEAAAACyRhY2MxMTU2MTc2CQEAAAADc3VtAAAAAgUAAAALJGFjYzAxNTYxNzYJAAGRAAAAAgUAAAALJGxpc3QxNTYxNzYAAAAAAAAAAAADCQAAAAAAAAIFAAAACyRzaXplMTU2MTc2AAAAAAAAAAABBQAAAAskYWNjMTE1NjE3NgQAAAALJGFjYzIxNTYxNzYJAQAAAANzdW0AAAACBQAAAAskYWNjMTE1NjE3NgkAAZEAAAACBQAAAAskbGlzdDE1NjE3NgAAAAAAAAAAAQMJAAAAAAAAAgUAAAALJHNpemUxNTYxNzYAA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AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleXlEAgc=", "height": 1553845, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ES9FvYdsHrZewz11gKBzx7LkEYT4dcsoXMAYvJt5nVPv Next: 5CmP5dJegCVvHm5Pcmk4ncPFU1N88siuZNUsqt3mL89j Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 4 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-func parseIntList (stringList) = {
5- let listInt = nil
6- if ((listInt == listInt))
7- then {
8- func intList (list,a) = {
9- func intListFunc () = (listInt :+ parseInt(a))
4+func listSum (arr) = {
5+ func sum (a,b) = (a + b)
106
11- let c = intListFunc()
12- if ((c == c))
13- then (list :+ a)
14- else throw("Strict value is not equal to itself.")
15- }
16-
17- let b = {
18- let $list324356 = stringList
19- let $size324356 = size($list324356)
20- let $acc0324356 = nil
21- if (($size324356 == 0))
22- then $acc0324356
23- else {
24- let $acc1324356 = intList($acc0324356, $list324356[0])
25- if (($size324356 == 1))
26- then $acc1324356
27- else {
28- let $acc2324356 = intList($acc1324356, $list324356[1])
29- if (($size324356 == 2))
30- then $acc2324356
31- else {
32- let $acc3324356 = intList($acc2324356, $list324356[2])
33- if (($size324356 == 3))
34- then $acc3324356
35- else {
36- let $acc4324356 = intList($acc3324356, $list324356[3])
37- if (($size324356 == 4))
38- then $acc4324356
39- else {
40- let $acc5324356 = intList($acc4324356, $list324356[4])
41- if (($size324356 == 5))
42- then $acc5324356
43- else {
44- let $acc6324356 = intList($acc5324356, $list324356[5])
45- throw("List size exceed 5")
46- }
47- }
48- }
49- }
50- }
51- }
52- }
53- if ((b == b))
54- then listInt
55- else throw("Strict value is not equal to itself.")
7+ let $list156176 = arr
8+ let $size156176 = size($list156176)
9+ let $acc0156176 = 0
10+ if (($size156176 == 0))
11+ then $acc0156176
12+ else {
13+ let $acc1156176 = sum($acc0156176, $list156176[0])
14+ if (($size156176 == 1))
15+ then $acc1156176
16+ else {
17+ let $acc2156176 = sum($acc1156176, $list156176[1])
18+ if (($size156176 == 2))
19+ then $acc2156176
20+ else {
21+ let $acc3156176 = sum($acc2156176, $list156176[2])
22+ if (($size156176 == 3))
23+ then $acc3156176
24+ else {
25+ let $acc4156176 = sum($acc3156176, $list156176[3])
26+ if (($size156176 == 4))
27+ then $acc4156176
28+ else {
29+ let $acc5156176 = sum($acc4156176, $list156176[4])
30+ if (($size156176 == 5))
31+ then $acc5156176
32+ else {
33+ let $acc6156176 = sum($acc5156176, $list156176[5])
34+ throw("List size exceed 5")
35+ }
36+ }
37+ }
38+ }
39+ }
5640 }
57- else throw("Strict value is not equal to itself.")
5841 }
5942
6043
44+func parseIntList (s) = [parseInt(s[0]), parseInt(s[1]), parseInt(s[2]), parseInt(s[3]), parseInt(s[4]), parseInt(s[5]), parseInt(s[6]), parseInt(s[7]), parseInt(s[8]), parseInt(s[9]), parseInt(s[10]), parseInt(s[11]), parseInt(s[12]), parseInt(s[13]), parseInt(s[14]), parseInt(s[15]), parseInt(s[16]), parseInt(s[17])]
45+
46+
47+func getRoundScore (roundCount,currentKey) = match getString(this, ((currentKey + "_round_score_") + toString(roundCount))) {
48+ case a: String =>
49+ a
50+ case _ =>
51+ ""
52+}
53+
54+
55+func getRoundCourse (roundCount,currentKey) = match getString(this, ((currentKey + "_round_course_") + toString(roundCount))) {
56+ case a: String =>
57+ a
58+ case _ =>
59+ ""
60+}
61+
62+
63+func holeStrokeReceiveFunc (handicapIndex,hdcp) = if ((handicapIndex >= hdcp))
64+ then 1
65+ else 0
66+
67+
68+func foldFuncHoldHandi (score,par,hdcpList,handicap) = {
69+ func foldFunc (acc,i) = {
70+ let holeStrokeReceive = holeStrokeReceiveFunc(handicap, hdcpList[i])
71+ let netDoubleBogey = ((par[i] + 2) + holeStrokeReceive)
72+ if ((score[i] > netDoubleBogey))
73+ then (acc :+ netDoubleBogey)
74+ else (acc :+ score[i])
75+ }
76+
77+ let $list14761505 = score
78+ let $size14761505 = size($list14761505)
79+ let $acc014761505 = nil
80+ if (($size14761505 == 0))
81+ then $acc014761505
82+ else {
83+ let $acc114761505 = foldFunc($acc014761505, $list14761505[0])
84+ if (($size14761505 == 1))
85+ then $acc114761505
86+ else {
87+ let $acc214761505 = foldFunc($acc114761505, $list14761505[1])
88+ if (($size14761505 == 2))
89+ then $acc214761505
90+ else {
91+ let $acc314761505 = foldFunc($acc214761505, $list14761505[2])
92+ if (($size14761505 == 3))
93+ then $acc314761505
94+ else {
95+ let $acc414761505 = foldFunc($acc314761505, $list14761505[3])
96+ if (($size14761505 == 4))
97+ then $acc414761505
98+ else {
99+ let $acc514761505 = foldFunc($acc414761505, $list14761505[4])
100+ if (($size14761505 == 5))
101+ then $acc514761505
102+ else {
103+ let $acc614761505 = foldFunc($acc514761505, $list14761505[5])
104+ if (($size14761505 == 6))
105+ then $acc614761505
106+ else {
107+ let $acc714761505 = foldFunc($acc614761505, $list14761505[6])
108+ if (($size14761505 == 7))
109+ then $acc714761505
110+ else {
111+ let $acc814761505 = foldFunc($acc714761505, $list14761505[7])
112+ if (($size14761505 == 8))
113+ then $acc814761505
114+ else {
115+ let $acc914761505 = foldFunc($acc814761505, $list14761505[8])
116+ if (($size14761505 == 9))
117+ then $acc914761505
118+ else {
119+ let $acc1014761505 = foldFunc($acc914761505, $list14761505[9])
120+ if (($size14761505 == 10))
121+ then $acc1014761505
122+ else {
123+ let $acc1114761505 = foldFunc($acc1014761505, $list14761505[10])
124+ if (($size14761505 == 11))
125+ then $acc1114761505
126+ else {
127+ let $acc1214761505 = foldFunc($acc1114761505, $list14761505[11])
128+ if (($size14761505 == 12))
129+ then $acc1214761505
130+ else {
131+ let $acc1314761505 = foldFunc($acc1214761505, $list14761505[12])
132+ if (($size14761505 == 13))
133+ then $acc1314761505
134+ else {
135+ let $acc1414761505 = foldFunc($acc1314761505, $list14761505[13])
136+ if (($size14761505 == 14))
137+ then $acc1414761505
138+ else {
139+ let $acc1514761505 = foldFunc($acc1414761505, $list14761505[14])
140+ if (($size14761505 == 15))
141+ then $acc1514761505
142+ else {
143+ let $acc1614761505 = foldFunc($acc1514761505, $list14761505[15])
144+ if (($size14761505 == 16))
145+ then $acc1614761505
146+ else {
147+ let $acc1714761505 = foldFunc($acc1614761505, $list14761505[16])
148+ if (($size14761505 == 17))
149+ then $acc1714761505
150+ else {
151+ let $acc1814761505 = foldFunc($acc1714761505, $list14761505[17])
152+ if (($size14761505 == 18))
153+ then $acc1814761505
154+ else {
155+ let $acc1914761505 = foldFunc($acc1814761505, $list14761505[18])
156+ throw("List size exceed 18")
157+ }
158+ }
159+ }
160+ }
161+ }
162+ }
163+ }
164+ }
165+ }
166+ }
167+ }
168+ }
169+ }
170+ }
171+ }
172+ }
173+ }
174+ }
175+ }
176+ }
177+
178+
179+func foldFuncNoHandi (score,par) = {
180+ func foldFunc (acc,i) = if ((score[i] > (par[i] + 5)))
181+ then (acc :+ (par[i] + 5))
182+ else (acc :+ score[i])
183+
184+ let $list17291758 = score
185+ let $size17291758 = size($list17291758)
186+ let $acc017291758 = nil
187+ if (($size17291758 == 0))
188+ then $acc017291758
189+ else {
190+ let $acc117291758 = foldFunc($acc017291758, $list17291758[0])
191+ if (($size17291758 == 1))
192+ then $acc117291758
193+ else {
194+ let $acc217291758 = foldFunc($acc117291758, $list17291758[1])
195+ if (($size17291758 == 2))
196+ then $acc217291758
197+ else {
198+ let $acc317291758 = foldFunc($acc217291758, $list17291758[2])
199+ if (($size17291758 == 3))
200+ then $acc317291758
201+ else {
202+ let $acc417291758 = foldFunc($acc317291758, $list17291758[3])
203+ if (($size17291758 == 4))
204+ then $acc417291758
205+ else {
206+ let $acc517291758 = foldFunc($acc417291758, $list17291758[4])
207+ if (($size17291758 == 5))
208+ then $acc517291758
209+ else {
210+ let $acc617291758 = foldFunc($acc517291758, $list17291758[5])
211+ if (($size17291758 == 6))
212+ then $acc617291758
213+ else {
214+ let $acc717291758 = foldFunc($acc617291758, $list17291758[6])
215+ if (($size17291758 == 7))
216+ then $acc717291758
217+ else {
218+ let $acc817291758 = foldFunc($acc717291758, $list17291758[7])
219+ if (($size17291758 == 8))
220+ then $acc817291758
221+ else {
222+ let $acc917291758 = foldFunc($acc817291758, $list17291758[8])
223+ if (($size17291758 == 9))
224+ then $acc917291758
225+ else {
226+ let $acc1017291758 = foldFunc($acc917291758, $list17291758[9])
227+ if (($size17291758 == 10))
228+ then $acc1017291758
229+ else {
230+ let $acc1117291758 = foldFunc($acc1017291758, $list17291758[10])
231+ if (($size17291758 == 11))
232+ then $acc1117291758
233+ else {
234+ let $acc1217291758 = foldFunc($acc1117291758, $list17291758[11])
235+ if (($size17291758 == 12))
236+ then $acc1217291758
237+ else {
238+ let $acc1317291758 = foldFunc($acc1217291758, $list17291758[12])
239+ if (($size17291758 == 13))
240+ then $acc1317291758
241+ else {
242+ let $acc1417291758 = foldFunc($acc1317291758, $list17291758[13])
243+ if (($size17291758 == 14))
244+ then $acc1417291758
245+ else {
246+ let $acc1517291758 = foldFunc($acc1417291758, $list17291758[14])
247+ if (($size17291758 == 15))
248+ then $acc1517291758
249+ else {
250+ let $acc1617291758 = foldFunc($acc1517291758, $list17291758[15])
251+ if (($size17291758 == 16))
252+ then $acc1617291758
253+ else {
254+ let $acc1717291758 = foldFunc($acc1617291758, $list17291758[16])
255+ if (($size17291758 == 17))
256+ then $acc1717291758
257+ else {
258+ let $acc1817291758 = foldFunc($acc1717291758, $list17291758[17])
259+ if (($size17291758 == 18))
260+ then $acc1817291758
261+ else {
262+ let $acc1917291758 = foldFunc($acc1817291758, $list17291758[18])
263+ throw("List size exceed 18")
264+ }
265+ }
266+ }
267+ }
268+ }
269+ }
270+ }
271+ }
272+ }
273+ }
274+ }
275+ }
276+ }
277+ }
278+ }
279+ }
280+ }
281+ }
282+ }
283+ }
284+
285+
286+func scoreAdjustmentCalc (score,par,hdcpList,handicap) = if ((handicap == -1))
287+ then foldFuncNoHandi(score, par)
288+ else foldFuncHoldHandi(score, par, hdcpList, handicap)
289+
290+
291+func scoreDifferential (scoreList,parList,hdcpList,courseRating,slopeRating,handicap) = {
292+ let scoreAdjustmentList = scoreAdjustmentCalc(scoreList, parList, hdcpList, handicap)
293+ let scoreAdjustedTotal = listSum(scoreAdjustmentList)
294+ let scoreSum = listSum(scoreList)
295+ let pcc = 0
296+ let a = (113 / slopeRating)
297+ let b = ((scoreAdjustedTotal - courseRating) - pcc)
298+ let c = 1
299+ let result = fraction(a, b, c, HALFUP)
300+ result
301+ }
302+
303+
304+let count = 1
305+
61306 @Callable(i)
62-func call () = {
63- let count = 1
64- let asset = Issue("Asset", "", 1, 0, true, unit, 0)
65- let list = parseIntList(["11", "12", "13", "14", "15"])
66- if ((count == 1))
67- then throw(("/list[0]==>" + list[0]))
68- else [asset]
69- }
307+func issueHandicapIndex () = if ((count == 1))
308+ then throw(toString(listSum([1, 1, 1, 1, 1])))
309+ else {
310+ let currentKey = toBase58String(i.caller.bytes)
311+ let getHandicapIndex = match getInteger(this, (currentKey + "_handicapIndex")) {
312+ case a: Int =>
313+ a
314+ case _ =>
315+ -1
316+ }
317+ let getRoundCount = match getInteger(this, (currentKey + "_round_count")) {
318+ case a: Int =>
319+ a
320+ case _ =>
321+ 0
322+ }
323+ if ((3 > getRoundCount))
324+ then throw("A score of 54 holes is required to obtain a handicap")
325+ else {
326+ let score1 = split(getRoundScore(getRoundCount, currentKey), "_&&_")
327+ let score2 = parseIntList(split(getRoundScore((getRoundCount - 1), currentKey), "_&&_"))
328+ let score3 = parseIntList(split(getRoundScore((getRoundCount - 2), currentKey), "_&&_"))
329+ let roundCourse1 = split(getRoundCourse(getRoundCount, currentKey), "_&&_")
330+ let roundCourse2 = split(getRoundCourse((getRoundCount - 1), currentKey), "_&&_")
331+ let roundCourse3 = split(getRoundCourse((getRoundCount - 2), currentKey), "_&&_")
332+ let averageScoreHistry = 0
333+[IntegerEntry("", 1)]
334+ }
335+ }
70336
71337
72338 @Verifier(tx)
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 4 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-func parseIntList (stringList) = {
5- let listInt = nil
6- if ((listInt == listInt))
7- then {
8- func intList (list,a) = {
9- func intListFunc () = (listInt :+ parseInt(a))
4+func listSum (arr) = {
5+ func sum (a,b) = (a + b)
106
11- let c = intListFunc()
12- if ((c == c))
13- then (list :+ a)
14- else throw("Strict value is not equal to itself.")
15- }
16-
17- let b = {
18- let $list324356 = stringList
19- let $size324356 = size($list324356)
20- let $acc0324356 = nil
21- if (($size324356 == 0))
22- then $acc0324356
23- else {
24- let $acc1324356 = intList($acc0324356, $list324356[0])
25- if (($size324356 == 1))
26- then $acc1324356
27- else {
28- let $acc2324356 = intList($acc1324356, $list324356[1])
29- if (($size324356 == 2))
30- then $acc2324356
31- else {
32- let $acc3324356 = intList($acc2324356, $list324356[2])
33- if (($size324356 == 3))
34- then $acc3324356
35- else {
36- let $acc4324356 = intList($acc3324356, $list324356[3])
37- if (($size324356 == 4))
38- then $acc4324356
39- else {
40- let $acc5324356 = intList($acc4324356, $list324356[4])
41- if (($size324356 == 5))
42- then $acc5324356
43- else {
44- let $acc6324356 = intList($acc5324356, $list324356[5])
45- throw("List size exceed 5")
46- }
47- }
48- }
49- }
50- }
51- }
52- }
53- if ((b == b))
54- then listInt
55- else throw("Strict value is not equal to itself.")
7+ let $list156176 = arr
8+ let $size156176 = size($list156176)
9+ let $acc0156176 = 0
10+ if (($size156176 == 0))
11+ then $acc0156176
12+ else {
13+ let $acc1156176 = sum($acc0156176, $list156176[0])
14+ if (($size156176 == 1))
15+ then $acc1156176
16+ else {
17+ let $acc2156176 = sum($acc1156176, $list156176[1])
18+ if (($size156176 == 2))
19+ then $acc2156176
20+ else {
21+ let $acc3156176 = sum($acc2156176, $list156176[2])
22+ if (($size156176 == 3))
23+ then $acc3156176
24+ else {
25+ let $acc4156176 = sum($acc3156176, $list156176[3])
26+ if (($size156176 == 4))
27+ then $acc4156176
28+ else {
29+ let $acc5156176 = sum($acc4156176, $list156176[4])
30+ if (($size156176 == 5))
31+ then $acc5156176
32+ else {
33+ let $acc6156176 = sum($acc5156176, $list156176[5])
34+ throw("List size exceed 5")
35+ }
36+ }
37+ }
38+ }
39+ }
5640 }
57- else throw("Strict value is not equal to itself.")
5841 }
5942
6043
44+func parseIntList (s) = [parseInt(s[0]), parseInt(s[1]), parseInt(s[2]), parseInt(s[3]), parseInt(s[4]), parseInt(s[5]), parseInt(s[6]), parseInt(s[7]), parseInt(s[8]), parseInt(s[9]), parseInt(s[10]), parseInt(s[11]), parseInt(s[12]), parseInt(s[13]), parseInt(s[14]), parseInt(s[15]), parseInt(s[16]), parseInt(s[17])]
45+
46+
47+func getRoundScore (roundCount,currentKey) = match getString(this, ((currentKey + "_round_score_") + toString(roundCount))) {
48+ case a: String =>
49+ a
50+ case _ =>
51+ ""
52+}
53+
54+
55+func getRoundCourse (roundCount,currentKey) = match getString(this, ((currentKey + "_round_course_") + toString(roundCount))) {
56+ case a: String =>
57+ a
58+ case _ =>
59+ ""
60+}
61+
62+
63+func holeStrokeReceiveFunc (handicapIndex,hdcp) = if ((handicapIndex >= hdcp))
64+ then 1
65+ else 0
66+
67+
68+func foldFuncHoldHandi (score,par,hdcpList,handicap) = {
69+ func foldFunc (acc,i) = {
70+ let holeStrokeReceive = holeStrokeReceiveFunc(handicap, hdcpList[i])
71+ let netDoubleBogey = ((par[i] + 2) + holeStrokeReceive)
72+ if ((score[i] > netDoubleBogey))
73+ then (acc :+ netDoubleBogey)
74+ else (acc :+ score[i])
75+ }
76+
77+ let $list14761505 = score
78+ let $size14761505 = size($list14761505)
79+ let $acc014761505 = nil
80+ if (($size14761505 == 0))
81+ then $acc014761505
82+ else {
83+ let $acc114761505 = foldFunc($acc014761505, $list14761505[0])
84+ if (($size14761505 == 1))
85+ then $acc114761505
86+ else {
87+ let $acc214761505 = foldFunc($acc114761505, $list14761505[1])
88+ if (($size14761505 == 2))
89+ then $acc214761505
90+ else {
91+ let $acc314761505 = foldFunc($acc214761505, $list14761505[2])
92+ if (($size14761505 == 3))
93+ then $acc314761505
94+ else {
95+ let $acc414761505 = foldFunc($acc314761505, $list14761505[3])
96+ if (($size14761505 == 4))
97+ then $acc414761505
98+ else {
99+ let $acc514761505 = foldFunc($acc414761505, $list14761505[4])
100+ if (($size14761505 == 5))
101+ then $acc514761505
102+ else {
103+ let $acc614761505 = foldFunc($acc514761505, $list14761505[5])
104+ if (($size14761505 == 6))
105+ then $acc614761505
106+ else {
107+ let $acc714761505 = foldFunc($acc614761505, $list14761505[6])
108+ if (($size14761505 == 7))
109+ then $acc714761505
110+ else {
111+ let $acc814761505 = foldFunc($acc714761505, $list14761505[7])
112+ if (($size14761505 == 8))
113+ then $acc814761505
114+ else {
115+ let $acc914761505 = foldFunc($acc814761505, $list14761505[8])
116+ if (($size14761505 == 9))
117+ then $acc914761505
118+ else {
119+ let $acc1014761505 = foldFunc($acc914761505, $list14761505[9])
120+ if (($size14761505 == 10))
121+ then $acc1014761505
122+ else {
123+ let $acc1114761505 = foldFunc($acc1014761505, $list14761505[10])
124+ if (($size14761505 == 11))
125+ then $acc1114761505
126+ else {
127+ let $acc1214761505 = foldFunc($acc1114761505, $list14761505[11])
128+ if (($size14761505 == 12))
129+ then $acc1214761505
130+ else {
131+ let $acc1314761505 = foldFunc($acc1214761505, $list14761505[12])
132+ if (($size14761505 == 13))
133+ then $acc1314761505
134+ else {
135+ let $acc1414761505 = foldFunc($acc1314761505, $list14761505[13])
136+ if (($size14761505 == 14))
137+ then $acc1414761505
138+ else {
139+ let $acc1514761505 = foldFunc($acc1414761505, $list14761505[14])
140+ if (($size14761505 == 15))
141+ then $acc1514761505
142+ else {
143+ let $acc1614761505 = foldFunc($acc1514761505, $list14761505[15])
144+ if (($size14761505 == 16))
145+ then $acc1614761505
146+ else {
147+ let $acc1714761505 = foldFunc($acc1614761505, $list14761505[16])
148+ if (($size14761505 == 17))
149+ then $acc1714761505
150+ else {
151+ let $acc1814761505 = foldFunc($acc1714761505, $list14761505[17])
152+ if (($size14761505 == 18))
153+ then $acc1814761505
154+ else {
155+ let $acc1914761505 = foldFunc($acc1814761505, $list14761505[18])
156+ throw("List size exceed 18")
157+ }
158+ }
159+ }
160+ }
161+ }
162+ }
163+ }
164+ }
165+ }
166+ }
167+ }
168+ }
169+ }
170+ }
171+ }
172+ }
173+ }
174+ }
175+ }
176+ }
177+
178+
179+func foldFuncNoHandi (score,par) = {
180+ func foldFunc (acc,i) = if ((score[i] > (par[i] + 5)))
181+ then (acc :+ (par[i] + 5))
182+ else (acc :+ score[i])
183+
184+ let $list17291758 = score
185+ let $size17291758 = size($list17291758)
186+ let $acc017291758 = nil
187+ if (($size17291758 == 0))
188+ then $acc017291758
189+ else {
190+ let $acc117291758 = foldFunc($acc017291758, $list17291758[0])
191+ if (($size17291758 == 1))
192+ then $acc117291758
193+ else {
194+ let $acc217291758 = foldFunc($acc117291758, $list17291758[1])
195+ if (($size17291758 == 2))
196+ then $acc217291758
197+ else {
198+ let $acc317291758 = foldFunc($acc217291758, $list17291758[2])
199+ if (($size17291758 == 3))
200+ then $acc317291758
201+ else {
202+ let $acc417291758 = foldFunc($acc317291758, $list17291758[3])
203+ if (($size17291758 == 4))
204+ then $acc417291758
205+ else {
206+ let $acc517291758 = foldFunc($acc417291758, $list17291758[4])
207+ if (($size17291758 == 5))
208+ then $acc517291758
209+ else {
210+ let $acc617291758 = foldFunc($acc517291758, $list17291758[5])
211+ if (($size17291758 == 6))
212+ then $acc617291758
213+ else {
214+ let $acc717291758 = foldFunc($acc617291758, $list17291758[6])
215+ if (($size17291758 == 7))
216+ then $acc717291758
217+ else {
218+ let $acc817291758 = foldFunc($acc717291758, $list17291758[7])
219+ if (($size17291758 == 8))
220+ then $acc817291758
221+ else {
222+ let $acc917291758 = foldFunc($acc817291758, $list17291758[8])
223+ if (($size17291758 == 9))
224+ then $acc917291758
225+ else {
226+ let $acc1017291758 = foldFunc($acc917291758, $list17291758[9])
227+ if (($size17291758 == 10))
228+ then $acc1017291758
229+ else {
230+ let $acc1117291758 = foldFunc($acc1017291758, $list17291758[10])
231+ if (($size17291758 == 11))
232+ then $acc1117291758
233+ else {
234+ let $acc1217291758 = foldFunc($acc1117291758, $list17291758[11])
235+ if (($size17291758 == 12))
236+ then $acc1217291758
237+ else {
238+ let $acc1317291758 = foldFunc($acc1217291758, $list17291758[12])
239+ if (($size17291758 == 13))
240+ then $acc1317291758
241+ else {
242+ let $acc1417291758 = foldFunc($acc1317291758, $list17291758[13])
243+ if (($size17291758 == 14))
244+ then $acc1417291758
245+ else {
246+ let $acc1517291758 = foldFunc($acc1417291758, $list17291758[14])
247+ if (($size17291758 == 15))
248+ then $acc1517291758
249+ else {
250+ let $acc1617291758 = foldFunc($acc1517291758, $list17291758[15])
251+ if (($size17291758 == 16))
252+ then $acc1617291758
253+ else {
254+ let $acc1717291758 = foldFunc($acc1617291758, $list17291758[16])
255+ if (($size17291758 == 17))
256+ then $acc1717291758
257+ else {
258+ let $acc1817291758 = foldFunc($acc1717291758, $list17291758[17])
259+ if (($size17291758 == 18))
260+ then $acc1817291758
261+ else {
262+ let $acc1917291758 = foldFunc($acc1817291758, $list17291758[18])
263+ throw("List size exceed 18")
264+ }
265+ }
266+ }
267+ }
268+ }
269+ }
270+ }
271+ }
272+ }
273+ }
274+ }
275+ }
276+ }
277+ }
278+ }
279+ }
280+ }
281+ }
282+ }
283+ }
284+
285+
286+func scoreAdjustmentCalc (score,par,hdcpList,handicap) = if ((handicap == -1))
287+ then foldFuncNoHandi(score, par)
288+ else foldFuncHoldHandi(score, par, hdcpList, handicap)
289+
290+
291+func scoreDifferential (scoreList,parList,hdcpList,courseRating,slopeRating,handicap) = {
292+ let scoreAdjustmentList = scoreAdjustmentCalc(scoreList, parList, hdcpList, handicap)
293+ let scoreAdjustedTotal = listSum(scoreAdjustmentList)
294+ let scoreSum = listSum(scoreList)
295+ let pcc = 0
296+ let a = (113 / slopeRating)
297+ let b = ((scoreAdjustedTotal - courseRating) - pcc)
298+ let c = 1
299+ let result = fraction(a, b, c, HALFUP)
300+ result
301+ }
302+
303+
304+let count = 1
305+
61306 @Callable(i)
62-func call () = {
63- let count = 1
64- let asset = Issue("Asset", "", 1, 0, true, unit, 0)
65- let list = parseIntList(["11", "12", "13", "14", "15"])
66- if ((count == 1))
67- then throw(("/list[0]==>" + list[0]))
68- else [asset]
69- }
307+func issueHandicapIndex () = if ((count == 1))
308+ then throw(toString(listSum([1, 1, 1, 1, 1])))
309+ else {
310+ let currentKey = toBase58String(i.caller.bytes)
311+ let getHandicapIndex = match getInteger(this, (currentKey + "_handicapIndex")) {
312+ case a: Int =>
313+ a
314+ case _ =>
315+ -1
316+ }
317+ let getRoundCount = match getInteger(this, (currentKey + "_round_count")) {
318+ case a: Int =>
319+ a
320+ case _ =>
321+ 0
322+ }
323+ if ((3 > getRoundCount))
324+ then throw("A score of 54 holes is required to obtain a handicap")
325+ else {
326+ let score1 = split(getRoundScore(getRoundCount, currentKey), "_&&_")
327+ let score2 = parseIntList(split(getRoundScore((getRoundCount - 1), currentKey), "_&&_"))
328+ let score3 = parseIntList(split(getRoundScore((getRoundCount - 2), currentKey), "_&&_"))
329+ let roundCourse1 = split(getRoundCourse(getRoundCount, currentKey), "_&&_")
330+ let roundCourse2 = split(getRoundCourse((getRoundCount - 1), currentKey), "_&&_")
331+ let roundCourse3 = split(getRoundCourse((getRoundCount - 2), currentKey), "_&&_")
332+ let averageScoreHistry = 0
333+[IntegerEntry("", 1)]
334+ }
335+ }
70336
71337
72338 @Verifier(tx)
73339 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
74340

github/deemru/w8io/026f985 
42.49 ms