tx · AuWQBNTbpHNsfeXZ7JdsNzTq2TmW9ZgJqbocuevNvLpc

3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos:  -0.01400000 Waves

2024.05.28 10:46 [3125548] smart account 3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos > SELF 0.00000000 Waves

{ "type": 13, "id": "AuWQBNTbpHNsfeXZ7JdsNzTq2TmW9ZgJqbocuevNvLpc", "fee": 1400000, "feeAssetId": null, "timestamp": 1716882376737, "version": 2, "chainId": 84, "sender": "3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos", "senderPublicKey": "F7SLwr7RYVQpyocmVScFC6ooaAwewaGq6wNRDYvyiPj1", "proofs": [ "5Qa91vc28UN95MkvFZE54T6BW4uLMxKXSmswBFaDgTutnUC6GpES9Ad2oTCjeCUySJwFycfNCM68rhKzgQLyiZ9h" ], "script": "base64:AAIFAAAAAAAAABIIAhIGCgQIGAgIEgQKAggIEgAAAAALAAAAABRwcmVkaWN0aW9uTWF4Q291bnRlcgAAAAAAAAAAAwAAAAAKbWF4Q291bnRlcgAAAAAAAAAABgAAAAANZGVmYXVsdFJhdGluZwAAAAAAAAAAZAAAAAAOcmF0ZUFkanVzdG1lbnQAAAAAAAAAABQAAAAAB3Rva2VuSWQBAAAAIG33eiemmz/8i1OVqeOeBVscIi9bTehRMFsBoQapAMYYAAAAAAxwYXlvdXRBbW91bnQAAAAAAAX14QAAAAAADHJhdGluZ0N1dG9mZgAAAAAAAAAAMgEAAAARc2VhcmNoRm9yQ291bnRlcnMAAAACAAAABml0ZW1JZAAAAAdjb3VudGVyBAAAABFzZWFyY2hGb3JDb3VudGVycwQAAAAHJG1hdGNoMAkABCIAAAABCQABLAAAAAIJAAEsAAAAAgUAAAAGaXRlbUlkAgAAAAFfCQABpAAAAAEFAAAAB2NvdW50ZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABcwUAAAAHJG1hdGNoMAUAAAABcwIAAAAHTm8gV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AACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleXjNLqc=", "height": 3125548, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BxBhUpX6MWk8mG8PzJh79gzuHYgpVyYbrAuQbsAPZ3Xb Next: 2w1WzjfYvBQKPaA4aiVcPiXmmzSLJXxVBGJzZ73R7gMX Diff:
OldNewDifferences
1313
1414 let f = 100000000
1515
16-func g (h,i) = {
17- let g = {
18- let j = getString(((h + "_") + toString(i)))
19- if ($isInstanceOf(j, "String"))
16+let g = 50
17+
18+func h (i,j) = {
19+ let h = {
20+ let k = getString(((i + "_") + toString(j)))
21+ if ($isInstanceOf(k, "String"))
2022 then {
21- let k = j
22- k
23+ let l = k
24+ l
2325 }
2426 else "No User"
2527 }
26- g
28+ h
2729 }
2830
2931
30-func l (h,m) = {
31- let n = {
32- let j = getString(((h + "_") + m))
33- if ($isInstanceOf(j, "String"))
32+func m (n) = {
33+ let o = {
34+ let k = getInteger(n)
35+ if ($isInstanceOf(k, "Int"))
3436 then {
35- let k = j
36- k
37+ let p = k
38+ p
39+ }
40+ else c
41+ }
42+ o
43+ }
44+
45+
46+func q (i,r) = {
47+ let s = {
48+ let k = getString(((i + "_") + r))
49+ if ($isInstanceOf(k, "String"))
50+ then {
51+ let l = k
52+ l
3753 }
3854 else "Not Found"
3955 }
40- n
56+ s
4157 }
4258
4359
44-func o (h,i) = {
45- let p = if ((i >= 5))
60+func t (i,j) = {
61+ let u = if ((j >= 5))
4662 then {
47- let q = g(h, 1)
48- let r = g(h, 2)
49- let s = g(h, 3)
50- let t = g(h, 4)
51- let u = g(h, 5)
52- (((((nil :+ q) :+ r) :+ s) :+ t) :+ u)
63+ let v = h(i, 1)
64+ let w = h(i, 2)
65+ let x = h(i, 3)
66+ let y = h(i, 4)
67+ let z = h(i, 5)
68+ (((((nil :+ v) :+ w) :+ x) :+ y) :+ z)
5369 }
54- else if ((i >= 4))
70+ else if ((j >= 4))
5571 then {
56- let q = g(h, 1)
57- let r = g(h, 2)
58- let s = g(h, 3)
59- let t = g(h, 4)
60- ((((nil :+ q) :+ r) :+ s) :+ t)
72+ let v = h(i, 1)
73+ let w = h(i, 2)
74+ let x = h(i, 3)
75+ let y = h(i, 4)
76+ ((((nil :+ v) :+ w) :+ x) :+ y)
6177 }
62- else if ((i >= 3))
78+ else if ((j >= 3))
6379 then {
64- let q = g(h, 1)
65- let r = g(h, 2)
66- let s = g(h, 3)
67- (((nil :+ q) :+ r) :+ s)
80+ let v = h(i, 1)
81+ let w = h(i, 2)
82+ let x = h(i, 3)
83+ (((nil :+ v) :+ w) :+ x)
6884 }
69- else if ((i >= 2))
85+ else if ((j >= 2))
7086 then {
71- let q = g(h, 1)
72- let r = g(h, 2)
73- ((nil :+ q) :+ r)
87+ let v = h(i, 1)
88+ let w = h(i, 2)
89+ ((nil :+ v) :+ w)
7490 }
7591 else {
76- let q = g(h, 1)
77- (nil :+ q)
92+ let v = h(i, 1)
93+ (nil :+ v)
7894 }
79- p
95+ u
8096 }
8197
8298
83-@Callable(v)
84-func adjustRatingsAndPayoutParticipants (h,w,x,y) = {
85- func z (A,B) = {
86- let C = {
87- let j = getInteger(B)
88- if ($isInstanceOf(j, "Int"))
89- then {
90- let D = j
91- D
92- }
93- else c
94- }
95- let E = l(h, B)
96- let F = if ((E == y))
97- then (C + d)
98- else (C - d)
99- let G = if ((E == y))
99+@Callable(A)
100+func adjustRatingsAndPayoutParticipants (i,B,C,D) = {
101+ func E (F,n) = {
102+ let o = m(n)
103+ let G = q(i, n)
104+ let H = if ((G == D))
105+ then (o + d)
106+ else (o - d)
107+ let I = if ((G == D))
100108 then f
101109 else 0
102- let H = (A :+ IntegerEntry(B, F))
103- if ((G > 0))
104- then (H :+ ScriptTransfer(Address(fromBase58String(B)), G, e))
105- else H
110+ let J = (F :+ IntegerEntry(n, H))
111+ if ((I > 0))
112+ then (J :+ ScriptTransfer(Address(fromBase58String(n)), I, e))
113+ else J
106114 }
107115
108- let I = {
109- let J = w
110- let K = size(J)
111- let L = nil
112- func M (N,O) = if ((O >= K))
113- then N
114- else z(N, J[O])
116+ let K = {
117+ let L = B
118+ let M = size(L)
119+ let N = nil
120+ func O (P,Q) = if ((Q >= M))
121+ then P
122+ else E(P, L[Q])
115123
116- func P (N,O) = if ((O >= K))
117- then N
124+ func R (P,Q) = if ((Q >= M))
125+ then P
118126 else throw("List size exceeds 5")
119127
120- P(M(M(M(M(M(L, 0), 1), 2), 3), 4), 5)
128+ R(O(O(O(O(O(N, 0), 1), 2), 3), 4), 5)
121129 }
122- (I :+ BooleanEntry((h + "_adjusted"), true))
130+ (K :+ BooleanEntry((i + "_adjusted"), true))
123131 }
124132
125133
126134
127-@Callable(v)
128-func savePrediction (h,E) = {
129- let Q = toString(v.caller)
130- let R = {
131- let j = getInteger(Q)
132- if ($isInstanceOf(j, "Int"))
135+@Callable(A)
136+func savePrediction (i,G) = {
137+ let S = toString(A.caller)
138+ let T = {
139+ let k = getInteger(S)
140+ if ($isInstanceOf(k, "Int"))
133141 then {
134- let k = j
135- k
142+ let l = k
143+ l
136144 }
137145 else "no User exists"
138146 }
139- if ((R == "no User exists"))
140- then throw("User does not exist")
141- else {
142- let S = {
143- let j = getInteger((h + "_counter"))
144- if ($isInstanceOf(j, "Int"))
147+ let U = m(S)
148+ if ((g >= U))
149+ then throw("You are not allowed to participate anymore")
150+ else if ((T == "no User exists"))
151+ then throw("User does not exist")
152+ else {
153+ let V = {
154+ let k = getInteger((i + "_counter"))
155+ if ($isInstanceOf(k, "Int"))
156+ then {
157+ let l = k
158+ l
159+ }
160+ else -1
161+ }
162+ if ((V >= 1))
145163 then {
146- let k = j
147- k
164+ let u = t(i, V)
165+ if (containsElement(u, S))
166+ then throw("This User already gave a Prediction")
167+ else {
168+ let W = {
169+ let k = getInteger((i + "_predictionCounter"))
170+ if ($isInstanceOf(k, "Int"))
171+ then {
172+ let l = k
173+ l
174+ }
175+ else -1
176+ }
177+ let X = u[(size(u) - 1)]
178+ let Y = {
179+ let k = getString(((i + "_") + X))
180+ if ($isInstanceOf(k, "String"))
181+ then {
182+ let l = k
183+ l
184+ }
185+ else "no Prediction Found"
186+ }
187+ let Z = (V + 1)
188+ if ((Y == G))
189+ then if (((W + 1) == a))
190+ then {
191+ let aa = invoke(this, "adjustRatingsAndPayoutParticipants", [i, u, S, G], nil)
192+ if ((aa != aa))
193+ then throw("Strict value is not equal to itself.")
194+ else [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), (W + 1)), BooleanEntry((i + "_final"), true), BooleanEntry((i + "_cancelled"), false), ScriptTransfer(Address(fromBase58String(S)), f, e), IntegerEntry(S, (U + 20))]
195+ }
196+ else [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), (W + 1)), BooleanEntry((i + "_final"), false), BooleanEntry((i + "_cancelled"), false)]
197+ else if ((Z >= b))
198+ then [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), (W - 1)), BooleanEntry((i + "_cancelled"), true), BooleanEntry((i + "_final"), false)]
199+ else if (((W - 1) == -1))
200+ then [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), 1), BooleanEntry((i + "_cancelled"), false), BooleanEntry((i + "_final"), false), StringEntry("test", Y), IntegerEntry("test2", size(u))]
201+ else [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), (W - 1)), BooleanEntry((i + "_cancelled"), false), BooleanEntry((i + "_final"), false), StringEntry("test", Y), IntegerEntry("test2", size(u))]
202+ }
148203 }
149- else -1
204+ else {
205+ let ab = {
206+ let k = getString(("new_" + i))
207+ if ($isInstanceOf(k, "String"))
208+ then {
209+ let l = k
210+ l
211+ }
212+ else "not Found"
213+ }
214+ if ((ab != i))
215+ then throw("Item not Found")
216+ else [StringEntry(((i + "_") + toString(1)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), 1), IntegerEntry((i + "_predictionCounter"), 1), DeleteEntry(("new_" + i)), StringEntry(("updated_" + i), i)]
217+ }
150218 }
151- if ((S >= 1))
152- then {
153- let p = o(h, S)
154- if (containsElement(p, Q))
155- then throw("This User already gave a Prediction")
156- else {
157- let T = {
158- let j = getInteger((h + "_predictionCounter"))
159- if ($isInstanceOf(j, "Int"))
160- then {
161- let k = j
162- k
163- }
164- else -1
165- }
166- let U = p[(size(p) - 1)]
167- let V = {
168- let j = getString(((h + "_") + U))
169- if ($isInstanceOf(j, "String"))
170- then {
171- let k = j
172- k
173- }
174- else "no Prediction Found"
175- }
176- let W = (S + 1)
177- if ((V == E))
178- then if (((T + 1) == a))
179- then {
180- let X = invoke(this, "adjustRatingsAndPayoutParticipants", [h, p, Q, E], nil)
181- if ((X != X))
182- then throw("Strict value is not equal to itself.")
183- else [StringEntry(((h + "_") + toString(W)), Q), StringEntry(((h + "_") + Q), E), IntegerEntry((h + "_counter"), W), IntegerEntry((h + "_predictionCounter"), (T + 1)), BooleanEntry((h + "_final"), true), BooleanEntry((h + "_cancelled"), false)]
184- }
185- else [StringEntry(((h + "_") + toString(W)), Q), StringEntry(((h + "_") + Q), E), IntegerEntry((h + "_counter"), W), IntegerEntry((h + "_predictionCounter"), (T + 1)), BooleanEntry((h + "_final"), false), BooleanEntry((h + "_cancelled"), false)]
186- else if ((W >= b))
187- then [StringEntry(((h + "_") + toString(W)), Q), StringEntry(((h + "_") + Q), E), IntegerEntry((h + "_counter"), W), IntegerEntry((h + "_predictionCounter"), (T - 1)), BooleanEntry((h + "_cancelled"), true), BooleanEntry((h + "_final"), false)]
188- else if (((T - 1) == -1))
189- then [StringEntry(((h + "_") + toString(W)), Q), StringEntry(((h + "_") + Q), E), IntegerEntry((h + "_counter"), W), IntegerEntry((h + "_predictionCounter"), 1), BooleanEntry((h + "_cancelled"), false), BooleanEntry((h + "_final"), false), StringEntry("test", V), IntegerEntry("test2", size(p))]
190- else [StringEntry(((h + "_") + toString(W)), Q), StringEntry(((h + "_") + Q), E), IntegerEntry((h + "_counter"), W), IntegerEntry((h + "_predictionCounter"), (T - 1)), BooleanEntry((h + "_cancelled"), false), BooleanEntry((h + "_final"), false), StringEntry("test", V), IntegerEntry("test2", size(p))]
191- }
192- }
193- else {
194- let Y = {
195- let j = getString(("new_" + h))
196- if ($isInstanceOf(j, "String"))
197- then {
198- let k = j
199- k
200- }
201- else "not Found"
202- }
203- if ((Y != h))
204- then throw("Item not Found")
205- else [StringEntry(((h + "_") + toString(1)), Q), StringEntry(((h + "_") + Q), E), IntegerEntry((h + "_counter"), 1), IntegerEntry((h + "_predictionCounter"), 1), DeleteEntry(("new_" + h)), StringEntry(("updated_" + h), h)]
206- }
207- }
208219 }
209220
210221
211222
212-@Callable(v)
223+@Callable(A)
213224 func registerUser () = {
214- let Q = toString(v.caller)
215- let R = {
216- let j = getInteger(Q)
217- if ($isInstanceOf(j, "Int"))
225+ let S = toString(A.caller)
226+ let T = {
227+ let k = getInteger(S)
228+ if ($isInstanceOf(k, "Int"))
218229 then {
219- let k = j
220- k
230+ let l = k
231+ l
221232 }
222233 else -1
223234 }
224- if ((R != -1))
235+ if ((T != -1))
225236 then throw("User already exists")
226- else [IntegerEntry(Q, c)]
237+ else [IntegerEntry(S, c)]
227238 }
228239
229240
230-@Verifier(Z)
231-func aa () = sigVerify(Z.bodyBytes, Z.proofs[0], Z.senderPublicKey)
241+@Verifier(ac)
242+func ad () = sigVerify(ac.bodyBytes, ac.proofs[0], ac.senderPublicKey)
232243
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 3
55
66 let b = 6
77
88 let c = 100
99
1010 let d = 20
1111
1212 let e = base58'8QGJvsXqJ43q5ksFymoPKF1NWWhwUfr2F7h52oeWgVhH'
1313
1414 let f = 100000000
1515
16-func g (h,i) = {
17- let g = {
18- let j = getString(((h + "_") + toString(i)))
19- if ($isInstanceOf(j, "String"))
16+let g = 50
17+
18+func h (i,j) = {
19+ let h = {
20+ let k = getString(((i + "_") + toString(j)))
21+ if ($isInstanceOf(k, "String"))
2022 then {
21- let k = j
22- k
23+ let l = k
24+ l
2325 }
2426 else "No User"
2527 }
26- g
28+ h
2729 }
2830
2931
30-func l (h,m) = {
31- let n = {
32- let j = getString(((h + "_") + m))
33- if ($isInstanceOf(j, "String"))
32+func m (n) = {
33+ let o = {
34+ let k = getInteger(n)
35+ if ($isInstanceOf(k, "Int"))
3436 then {
35- let k = j
36- k
37+ let p = k
38+ p
39+ }
40+ else c
41+ }
42+ o
43+ }
44+
45+
46+func q (i,r) = {
47+ let s = {
48+ let k = getString(((i + "_") + r))
49+ if ($isInstanceOf(k, "String"))
50+ then {
51+ let l = k
52+ l
3753 }
3854 else "Not Found"
3955 }
40- n
56+ s
4157 }
4258
4359
44-func o (h,i) = {
45- let p = if ((i >= 5))
60+func t (i,j) = {
61+ let u = if ((j >= 5))
4662 then {
47- let q = g(h, 1)
48- let r = g(h, 2)
49- let s = g(h, 3)
50- let t = g(h, 4)
51- let u = g(h, 5)
52- (((((nil :+ q) :+ r) :+ s) :+ t) :+ u)
63+ let v = h(i, 1)
64+ let w = h(i, 2)
65+ let x = h(i, 3)
66+ let y = h(i, 4)
67+ let z = h(i, 5)
68+ (((((nil :+ v) :+ w) :+ x) :+ y) :+ z)
5369 }
54- else if ((i >= 4))
70+ else if ((j >= 4))
5571 then {
56- let q = g(h, 1)
57- let r = g(h, 2)
58- let s = g(h, 3)
59- let t = g(h, 4)
60- ((((nil :+ q) :+ r) :+ s) :+ t)
72+ let v = h(i, 1)
73+ let w = h(i, 2)
74+ let x = h(i, 3)
75+ let y = h(i, 4)
76+ ((((nil :+ v) :+ w) :+ x) :+ y)
6177 }
62- else if ((i >= 3))
78+ else if ((j >= 3))
6379 then {
64- let q = g(h, 1)
65- let r = g(h, 2)
66- let s = g(h, 3)
67- (((nil :+ q) :+ r) :+ s)
80+ let v = h(i, 1)
81+ let w = h(i, 2)
82+ let x = h(i, 3)
83+ (((nil :+ v) :+ w) :+ x)
6884 }
69- else if ((i >= 2))
85+ else if ((j >= 2))
7086 then {
71- let q = g(h, 1)
72- let r = g(h, 2)
73- ((nil :+ q) :+ r)
87+ let v = h(i, 1)
88+ let w = h(i, 2)
89+ ((nil :+ v) :+ w)
7490 }
7591 else {
76- let q = g(h, 1)
77- (nil :+ q)
92+ let v = h(i, 1)
93+ (nil :+ v)
7894 }
79- p
95+ u
8096 }
8197
8298
83-@Callable(v)
84-func adjustRatingsAndPayoutParticipants (h,w,x,y) = {
85- func z (A,B) = {
86- let C = {
87- let j = getInteger(B)
88- if ($isInstanceOf(j, "Int"))
89- then {
90- let D = j
91- D
92- }
93- else c
94- }
95- let E = l(h, B)
96- let F = if ((E == y))
97- then (C + d)
98- else (C - d)
99- let G = if ((E == y))
99+@Callable(A)
100+func adjustRatingsAndPayoutParticipants (i,B,C,D) = {
101+ func E (F,n) = {
102+ let o = m(n)
103+ let G = q(i, n)
104+ let H = if ((G == D))
105+ then (o + d)
106+ else (o - d)
107+ let I = if ((G == D))
100108 then f
101109 else 0
102- let H = (A :+ IntegerEntry(B, F))
103- if ((G > 0))
104- then (H :+ ScriptTransfer(Address(fromBase58String(B)), G, e))
105- else H
110+ let J = (F :+ IntegerEntry(n, H))
111+ if ((I > 0))
112+ then (J :+ ScriptTransfer(Address(fromBase58String(n)), I, e))
113+ else J
106114 }
107115
108- let I = {
109- let J = w
110- let K = size(J)
111- let L = nil
112- func M (N,O) = if ((O >= K))
113- then N
114- else z(N, J[O])
116+ let K = {
117+ let L = B
118+ let M = size(L)
119+ let N = nil
120+ func O (P,Q) = if ((Q >= M))
121+ then P
122+ else E(P, L[Q])
115123
116- func P (N,O) = if ((O >= K))
117- then N
124+ func R (P,Q) = if ((Q >= M))
125+ then P
118126 else throw("List size exceeds 5")
119127
120- P(M(M(M(M(M(L, 0), 1), 2), 3), 4), 5)
128+ R(O(O(O(O(O(N, 0), 1), 2), 3), 4), 5)
121129 }
122- (I :+ BooleanEntry((h + "_adjusted"), true))
130+ (K :+ BooleanEntry((i + "_adjusted"), true))
123131 }
124132
125133
126134
127-@Callable(v)
128-func savePrediction (h,E) = {
129- let Q = toString(v.caller)
130- let R = {
131- let j = getInteger(Q)
132- if ($isInstanceOf(j, "Int"))
135+@Callable(A)
136+func savePrediction (i,G) = {
137+ let S = toString(A.caller)
138+ let T = {
139+ let k = getInteger(S)
140+ if ($isInstanceOf(k, "Int"))
133141 then {
134- let k = j
135- k
142+ let l = k
143+ l
136144 }
137145 else "no User exists"
138146 }
139- if ((R == "no User exists"))
140- then throw("User does not exist")
141- else {
142- let S = {
143- let j = getInteger((h + "_counter"))
144- if ($isInstanceOf(j, "Int"))
147+ let U = m(S)
148+ if ((g >= U))
149+ then throw("You are not allowed to participate anymore")
150+ else if ((T == "no User exists"))
151+ then throw("User does not exist")
152+ else {
153+ let V = {
154+ let k = getInteger((i + "_counter"))
155+ if ($isInstanceOf(k, "Int"))
156+ then {
157+ let l = k
158+ l
159+ }
160+ else -1
161+ }
162+ if ((V >= 1))
145163 then {
146- let k = j
147- k
164+ let u = t(i, V)
165+ if (containsElement(u, S))
166+ then throw("This User already gave a Prediction")
167+ else {
168+ let W = {
169+ let k = getInteger((i + "_predictionCounter"))
170+ if ($isInstanceOf(k, "Int"))
171+ then {
172+ let l = k
173+ l
174+ }
175+ else -1
176+ }
177+ let X = u[(size(u) - 1)]
178+ let Y = {
179+ let k = getString(((i + "_") + X))
180+ if ($isInstanceOf(k, "String"))
181+ then {
182+ let l = k
183+ l
184+ }
185+ else "no Prediction Found"
186+ }
187+ let Z = (V + 1)
188+ if ((Y == G))
189+ then if (((W + 1) == a))
190+ then {
191+ let aa = invoke(this, "adjustRatingsAndPayoutParticipants", [i, u, S, G], nil)
192+ if ((aa != aa))
193+ then throw("Strict value is not equal to itself.")
194+ else [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), (W + 1)), BooleanEntry((i + "_final"), true), BooleanEntry((i + "_cancelled"), false), ScriptTransfer(Address(fromBase58String(S)), f, e), IntegerEntry(S, (U + 20))]
195+ }
196+ else [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), (W + 1)), BooleanEntry((i + "_final"), false), BooleanEntry((i + "_cancelled"), false)]
197+ else if ((Z >= b))
198+ then [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), (W - 1)), BooleanEntry((i + "_cancelled"), true), BooleanEntry((i + "_final"), false)]
199+ else if (((W - 1) == -1))
200+ then [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), 1), BooleanEntry((i + "_cancelled"), false), BooleanEntry((i + "_final"), false), StringEntry("test", Y), IntegerEntry("test2", size(u))]
201+ else [StringEntry(((i + "_") + toString(Z)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), Z), IntegerEntry((i + "_predictionCounter"), (W - 1)), BooleanEntry((i + "_cancelled"), false), BooleanEntry((i + "_final"), false), StringEntry("test", Y), IntegerEntry("test2", size(u))]
202+ }
148203 }
149- else -1
204+ else {
205+ let ab = {
206+ let k = getString(("new_" + i))
207+ if ($isInstanceOf(k, "String"))
208+ then {
209+ let l = k
210+ l
211+ }
212+ else "not Found"
213+ }
214+ if ((ab != i))
215+ then throw("Item not Found")
216+ else [StringEntry(((i + "_") + toString(1)), S), StringEntry(((i + "_") + S), G), IntegerEntry((i + "_counter"), 1), IntegerEntry((i + "_predictionCounter"), 1), DeleteEntry(("new_" + i)), StringEntry(("updated_" + i), i)]
217+ }
150218 }
151- if ((S >= 1))
152- then {
153- let p = o(h, S)
154- if (containsElement(p, Q))
155- then throw("This User already gave a Prediction")
156- else {
157- let T = {
158- let j = getInteger((h + "_predictionCounter"))
159- if ($isInstanceOf(j, "Int"))
160- then {
161- let k = j
162- k
163- }
164- else -1
165- }
166- let U = p[(size(p) - 1)]
167- let V = {
168- let j = getString(((h + "_") + U))
169- if ($isInstanceOf(j, "String"))
170- then {
171- let k = j
172- k
173- }
174- else "no Prediction Found"
175- }
176- let W = (S + 1)
177- if ((V == E))
178- then if (((T + 1) == a))
179- then {
180- let X = invoke(this, "adjustRatingsAndPayoutParticipants", [h, p, Q, E], nil)
181- if ((X != X))
182- then throw("Strict value is not equal to itself.")
183- else [StringEntry(((h + "_") + toString(W)), Q), StringEntry(((h + "_") + Q), E), IntegerEntry((h + "_counter"), W), IntegerEntry((h + "_predictionCounter"), (T + 1)), BooleanEntry((h + "_final"), true), BooleanEntry((h + "_cancelled"), false)]
184- }
185- else [StringEntry(((h + "_") + toString(W)), Q), StringEntry(((h + "_") + Q), E), IntegerEntry((h + "_counter"), W), IntegerEntry((h + "_predictionCounter"), (T + 1)), BooleanEntry((h + "_final"), false), BooleanEntry((h + "_cancelled"), false)]
186- else if ((W >= b))
187- then [StringEntry(((h + "_") + toString(W)), Q), StringEntry(((h + "_") + Q), E), IntegerEntry((h + "_counter"), W), IntegerEntry((h + "_predictionCounter"), (T - 1)), BooleanEntry((h + "_cancelled"), true), BooleanEntry((h + "_final"), false)]
188- else if (((T - 1) == -1))
189- then [StringEntry(((h + "_") + toString(W)), Q), StringEntry(((h + "_") + Q), E), IntegerEntry((h + "_counter"), W), IntegerEntry((h + "_predictionCounter"), 1), BooleanEntry((h + "_cancelled"), false), BooleanEntry((h + "_final"), false), StringEntry("test", V), IntegerEntry("test2", size(p))]
190- else [StringEntry(((h + "_") + toString(W)), Q), StringEntry(((h + "_") + Q), E), IntegerEntry((h + "_counter"), W), IntegerEntry((h + "_predictionCounter"), (T - 1)), BooleanEntry((h + "_cancelled"), false), BooleanEntry((h + "_final"), false), StringEntry("test", V), IntegerEntry("test2", size(p))]
191- }
192- }
193- else {
194- let Y = {
195- let j = getString(("new_" + h))
196- if ($isInstanceOf(j, "String"))
197- then {
198- let k = j
199- k
200- }
201- else "not Found"
202- }
203- if ((Y != h))
204- then throw("Item not Found")
205- else [StringEntry(((h + "_") + toString(1)), Q), StringEntry(((h + "_") + Q), E), IntegerEntry((h + "_counter"), 1), IntegerEntry((h + "_predictionCounter"), 1), DeleteEntry(("new_" + h)), StringEntry(("updated_" + h), h)]
206- }
207- }
208219 }
209220
210221
211222
212-@Callable(v)
223+@Callable(A)
213224 func registerUser () = {
214- let Q = toString(v.caller)
215- let R = {
216- let j = getInteger(Q)
217- if ($isInstanceOf(j, "Int"))
225+ let S = toString(A.caller)
226+ let T = {
227+ let k = getInteger(S)
228+ if ($isInstanceOf(k, "Int"))
218229 then {
219- let k = j
220- k
230+ let l = k
231+ l
221232 }
222233 else -1
223234 }
224- if ((R != -1))
235+ if ((T != -1))
225236 then throw("User already exists")
226- else [IntegerEntry(Q, c)]
237+ else [IntegerEntry(S, c)]
227238 }
228239
229240
230-@Verifier(Z)
231-func aa () = sigVerify(Z.bodyBytes, Z.proofs[0], Z.senderPublicKey)
241+@Verifier(ac)
242+func ad () = sigVerify(ac.bodyBytes, ac.proofs[0], ac.senderPublicKey)
232243

github/deemru/w8io/169f3d6 
57.01 ms