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/8i1OVqeOeBVscIi9bTehRMFsBoQapAMYYAAAAAAxwYXlvdXRBbW91bnQAAAAAAAX14QAAAAAADHJhdGluZ0N1dG9mZgAAAAAAAAAAMgEAAAARc2VhcmNoRm9yQ291bnRlcnMAAAACAAAABml0ZW1JZAAAAAdjb3VudGVyBAAAABFzZWFyY2hGb3JDb3VudGVycwQAAAAHJG1hdGNoMAkABCIAAAABCQABLAAAAAIJAAEsAAAAAgUAAAAGaXRlbUlkAgAAAAFfCQABpAAAAAEFAAAAB2NvdW50ZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABcwUAAAAHJG1hdGNoMAUAAAABcwIAAAAHTm8gVX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ACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleXjNLqc=", "height": 3125548, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BxBhUpX6MWk8mG8PzJh79gzuHYgpVyYbrAuQbsAPZ3Xb Next: 2w1WzjfYvBQKPaA4aiVcPiXmmzSLJXxVBGJzZ73R7gMX Diff:
Old | New | Differences | |
---|---|---|---|
13 | 13 | ||
14 | 14 | let f = 100000000 | |
15 | 15 | ||
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")) | |
20 | 22 | then { | |
21 | - | let | |
22 | - | | |
23 | + | let l = k | |
24 | + | l | |
23 | 25 | } | |
24 | 26 | else "No User" | |
25 | 27 | } | |
26 | - | | |
28 | + | h | |
27 | 29 | } | |
28 | 30 | ||
29 | 31 | ||
30 | - | func | |
31 | - | let | |
32 | - | let | |
33 | - | if ($isInstanceOf( | |
32 | + | func m (n) = { | |
33 | + | let o = { | |
34 | + | let k = getInteger(n) | |
35 | + | if ($isInstanceOf(k, "Int")) | |
34 | 36 | 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 | |
37 | 53 | } | |
38 | 54 | else "Not Found" | |
39 | 55 | } | |
40 | - | | |
56 | + | s | |
41 | 57 | } | |
42 | 58 | ||
43 | 59 | ||
44 | - | func | |
45 | - | let | |
60 | + | func t (i,j) = { | |
61 | + | let u = if ((j >= 5)) | |
46 | 62 | then { | |
47 | - | let | |
48 | - | let | |
49 | - | let | |
50 | - | let | |
51 | - | let | |
52 | - | (((((nil :+ | |
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) | |
53 | 69 | } | |
54 | - | else if (( | |
70 | + | else if ((j >= 4)) | |
55 | 71 | then { | |
56 | - | let | |
57 | - | let | |
58 | - | let | |
59 | - | let | |
60 | - | ((((nil :+ | |
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) | |
61 | 77 | } | |
62 | - | else if (( | |
78 | + | else if ((j >= 3)) | |
63 | 79 | then { | |
64 | - | let | |
65 | - | let | |
66 | - | let | |
67 | - | (((nil :+ | |
80 | + | let v = h(i, 1) | |
81 | + | let w = h(i, 2) | |
82 | + | let x = h(i, 3) | |
83 | + | (((nil :+ v) :+ w) :+ x) | |
68 | 84 | } | |
69 | - | else if (( | |
85 | + | else if ((j >= 2)) | |
70 | 86 | then { | |
71 | - | let | |
72 | - | let | |
73 | - | ((nil :+ | |
87 | + | let v = h(i, 1) | |
88 | + | let w = h(i, 2) | |
89 | + | ((nil :+ v) :+ w) | |
74 | 90 | } | |
75 | 91 | else { | |
76 | - | let | |
77 | - | (nil :+ | |
92 | + | let v = h(i, 1) | |
93 | + | (nil :+ v) | |
78 | 94 | } | |
79 | - | | |
95 | + | u | |
80 | 96 | } | |
81 | 97 | ||
82 | 98 | ||
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)) | |
100 | 108 | then f | |
101 | 109 | else 0 | |
102 | - | let | |
103 | - | if (( | |
104 | - | then ( | |
105 | - | else | |
110 | + | let J = (F :+ IntegerEntry(n, H)) | |
111 | + | if ((I > 0)) | |
112 | + | then (J :+ ScriptTransfer(Address(fromBase58String(n)), I, e)) | |
113 | + | else J | |
106 | 114 | } | |
107 | 115 | ||
108 | - | let | |
109 | - | let | |
110 | - | let | |
111 | - | let | |
112 | - | func | |
113 | - | then | |
114 | - | else | |
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]) | |
115 | 123 | ||
116 | - | func | |
117 | - | then | |
124 | + | func R (P,Q) = if ((Q >= M)) | |
125 | + | then P | |
118 | 126 | else throw("List size exceeds 5") | |
119 | 127 | ||
120 | - | | |
128 | + | R(O(O(O(O(O(N, 0), 1), 2), 3), 4), 5) | |
121 | 129 | } | |
122 | - | ( | |
130 | + | (K :+ BooleanEntry((i + "_adjusted"), true)) | |
123 | 131 | } | |
124 | 132 | ||
125 | 133 | ||
126 | 134 | ||
127 | - | @Callable( | |
128 | - | func savePrediction ( | |
129 | - | let | |
130 | - | let | |
131 | - | let | |
132 | - | if ($isInstanceOf( | |
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")) | |
133 | 141 | then { | |
134 | - | let | |
135 | - | | |
142 | + | let l = k | |
143 | + | l | |
136 | 144 | } | |
137 | 145 | else "no User exists" | |
138 | 146 | } | |
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)) | |
145 | 163 | 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 | + | } | |
148 | 203 | } | |
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 | + | } | |
150 | 218 | } | |
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 | - | } | |
208 | 219 | } | |
209 | 220 | ||
210 | 221 | ||
211 | 222 | ||
212 | - | @Callable( | |
223 | + | @Callable(A) | |
213 | 224 | func registerUser () = { | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | if ($isInstanceOf( | |
225 | + | let S = toString(A.caller) | |
226 | + | let T = { | |
227 | + | let k = getInteger(S) | |
228 | + | if ($isInstanceOf(k, "Int")) | |
218 | 229 | then { | |
219 | - | let | |
220 | - | | |
230 | + | let l = k | |
231 | + | l | |
221 | 232 | } | |
222 | 233 | else -1 | |
223 | 234 | } | |
224 | - | if (( | |
235 | + | if ((T != -1)) | |
225 | 236 | then throw("User already exists") | |
226 | - | else [IntegerEntry( | |
237 | + | else [IntegerEntry(S, c)] | |
227 | 238 | } | |
228 | 239 | ||
229 | 240 | ||
230 | - | @Verifier( | |
231 | - | func | |
241 | + | @Verifier(ac) | |
242 | + | func ad () = sigVerify(ac.bodyBytes, ac.proofs[0], ac.senderPublicKey) | |
232 | 243 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 3 | |
5 | 5 | ||
6 | 6 | let b = 6 | |
7 | 7 | ||
8 | 8 | let c = 100 | |
9 | 9 | ||
10 | 10 | let d = 20 | |
11 | 11 | ||
12 | 12 | let e = base58'8QGJvsXqJ43q5ksFymoPKF1NWWhwUfr2F7h52oeWgVhH' | |
13 | 13 | ||
14 | 14 | let f = 100000000 | |
15 | 15 | ||
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")) | |
20 | 22 | then { | |
21 | - | let | |
22 | - | | |
23 | + | let l = k | |
24 | + | l | |
23 | 25 | } | |
24 | 26 | else "No User" | |
25 | 27 | } | |
26 | - | | |
28 | + | h | |
27 | 29 | } | |
28 | 30 | ||
29 | 31 | ||
30 | - | func | |
31 | - | let | |
32 | - | let | |
33 | - | if ($isInstanceOf( | |
32 | + | func m (n) = { | |
33 | + | let o = { | |
34 | + | let k = getInteger(n) | |
35 | + | if ($isInstanceOf(k, "Int")) | |
34 | 36 | 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 | |
37 | 53 | } | |
38 | 54 | else "Not Found" | |
39 | 55 | } | |
40 | - | | |
56 | + | s | |
41 | 57 | } | |
42 | 58 | ||
43 | 59 | ||
44 | - | func | |
45 | - | let | |
60 | + | func t (i,j) = { | |
61 | + | let u = if ((j >= 5)) | |
46 | 62 | then { | |
47 | - | let | |
48 | - | let | |
49 | - | let | |
50 | - | let | |
51 | - | let | |
52 | - | (((((nil :+ | |
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) | |
53 | 69 | } | |
54 | - | else if (( | |
70 | + | else if ((j >= 4)) | |
55 | 71 | then { | |
56 | - | let | |
57 | - | let | |
58 | - | let | |
59 | - | let | |
60 | - | ((((nil :+ | |
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) | |
61 | 77 | } | |
62 | - | else if (( | |
78 | + | else if ((j >= 3)) | |
63 | 79 | then { | |
64 | - | let | |
65 | - | let | |
66 | - | let | |
67 | - | (((nil :+ | |
80 | + | let v = h(i, 1) | |
81 | + | let w = h(i, 2) | |
82 | + | let x = h(i, 3) | |
83 | + | (((nil :+ v) :+ w) :+ x) | |
68 | 84 | } | |
69 | - | else if (( | |
85 | + | else if ((j >= 2)) | |
70 | 86 | then { | |
71 | - | let | |
72 | - | let | |
73 | - | ((nil :+ | |
87 | + | let v = h(i, 1) | |
88 | + | let w = h(i, 2) | |
89 | + | ((nil :+ v) :+ w) | |
74 | 90 | } | |
75 | 91 | else { | |
76 | - | let | |
77 | - | (nil :+ | |
92 | + | let v = h(i, 1) | |
93 | + | (nil :+ v) | |
78 | 94 | } | |
79 | - | | |
95 | + | u | |
80 | 96 | } | |
81 | 97 | ||
82 | 98 | ||
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)) | |
100 | 108 | then f | |
101 | 109 | else 0 | |
102 | - | let | |
103 | - | if (( | |
104 | - | then ( | |
105 | - | else | |
110 | + | let J = (F :+ IntegerEntry(n, H)) | |
111 | + | if ((I > 0)) | |
112 | + | then (J :+ ScriptTransfer(Address(fromBase58String(n)), I, e)) | |
113 | + | else J | |
106 | 114 | } | |
107 | 115 | ||
108 | - | let | |
109 | - | let | |
110 | - | let | |
111 | - | let | |
112 | - | func | |
113 | - | then | |
114 | - | else | |
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]) | |
115 | 123 | ||
116 | - | func | |
117 | - | then | |
124 | + | func R (P,Q) = if ((Q >= M)) | |
125 | + | then P | |
118 | 126 | else throw("List size exceeds 5") | |
119 | 127 | ||
120 | - | | |
128 | + | R(O(O(O(O(O(N, 0), 1), 2), 3), 4), 5) | |
121 | 129 | } | |
122 | - | ( | |
130 | + | (K :+ BooleanEntry((i + "_adjusted"), true)) | |
123 | 131 | } | |
124 | 132 | ||
125 | 133 | ||
126 | 134 | ||
127 | - | @Callable( | |
128 | - | func savePrediction ( | |
129 | - | let | |
130 | - | let | |
131 | - | let | |
132 | - | if ($isInstanceOf( | |
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")) | |
133 | 141 | then { | |
134 | - | let | |
135 | - | | |
142 | + | let l = k | |
143 | + | l | |
136 | 144 | } | |
137 | 145 | else "no User exists" | |
138 | 146 | } | |
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)) | |
145 | 163 | 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 | + | } | |
148 | 203 | } | |
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 | + | } | |
150 | 218 | } | |
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 | - | } | |
208 | 219 | } | |
209 | 220 | ||
210 | 221 | ||
211 | 222 | ||
212 | - | @Callable( | |
223 | + | @Callable(A) | |
213 | 224 | func registerUser () = { | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | if ($isInstanceOf( | |
225 | + | let S = toString(A.caller) | |
226 | + | let T = { | |
227 | + | let k = getInteger(S) | |
228 | + | if ($isInstanceOf(k, "Int")) | |
218 | 229 | then { | |
219 | - | let | |
220 | - | | |
230 | + | let l = k | |
231 | + | l | |
221 | 232 | } | |
222 | 233 | else -1 | |
223 | 234 | } | |
224 | - | if (( | |
235 | + | if ((T != -1)) | |
225 | 236 | then throw("User already exists") | |
226 | - | else [IntegerEntry( | |
237 | + | else [IntegerEntry(S, c)] | |
227 | 238 | } | |
228 | 239 | ||
229 | 240 | ||
230 | - | @Verifier( | |
231 | - | func | |
241 | + | @Verifier(ac) | |
242 | + | func ad () = sigVerify(ac.bodyBytes, ac.proofs[0], ac.senderPublicKey) | |
232 | 243 |
github/deemru/w8io/169f3d6 57.01 ms ◑