tx · CAuCxAcy2ff7Kj9PzHGe3APYjy3PerNBNsWZuqQMx8Kj 3Mq6KL6Qy7hHXhW6LDjfkZ5Sw9DH6gdDfQp: -0.01000000 Waves 2024.06.20 18:44 [3159266] smart account 3Mq6KL6Qy7hHXhW6LDjfkZ5Sw9DH6gdDfQp > SELF 0.00000000 Waves
{ "type": 13, "id": "CAuCxAcy2ff7Kj9PzHGe3APYjy3PerNBNsWZuqQMx8Kj", "fee": 1000000, "feeAssetId": null, "timestamp": 1718898334624, "version": 2, "chainId": 84, "sender": "3Mq6KL6Qy7hHXhW6LDjfkZ5Sw9DH6gdDfQp", "senderPublicKey": "ASeX5tfrbMqQLdJh21b7R1EwFQqF9ShvfKd1razmL24y", "proofs": [ "3iC2mew8VpVkLXPqK5m1hfHbbpCxQ1M19NCryYDxctJVHKd7vx9x5p8ZnYscRGarmjNSZiYYapa47i5LW7oE5uGd" ], "script": "base64:CAISCAISBgoECBgICBIECgIICBIAEAAUcHJlZGljdGlvbk1heENvdW50ZXIArAIACm1heENvdW50ZXIAFAANZGVmYXVsdFJhdGluZwBkAA5yYXRlQWRqdXN0bWVudAAUAAd0b2tlbklkASBt93onpps//ItTlanjngVbHCIvW03oUTBbAaEGqQDGGAAMcGF5b3V0QW1vdW50AIDh6xcADHJhdGluZ0N1dG9mZgA8AAVyX21heAD0AwAFc2NhbGUAZAERc2VhcmNoRm9yQ291bnRlcnMCBml0ZW1JZAdjb3VudGVyBBFzZWFyY2hGb3JDb3VudGVycwQHJG1hdGNoMAkAoggBCQCsAgIJAKwCAgUGaXRlbUlkAgFfCQCkAwEFB2NvdW50ZXIDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAFzBQckbWF0Y2gwBQFzAgdObyBVc2VyBRFzZWFyY2hGb3JDb3VudGVycwEPc2VhcmNoRm9yUmF0aW5nAQdhZGRyZXNzBAZyYXRpbmcEByRtYXRjaDAJAJ8IAQkArAICBQdhZGRyZXNzAgdfcmF0aW5nAwkAAQIFByRtYXRjaD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cmluZ0VudHJ5AgkArAICAgh1cGRhdGVkXwUGaXRlbUlkBQZpdGVtSWQFA25pbAFpAQxyZWdpc3RlclVzZXIABAxjbGllbnRBZHJlc3MJAKUIAQgFAWkGY2FsbGVyBA1zZWFyY2hGb3JVc2VyBAckbWF0Y2gwCQCfCAEJAKwCAgUMY2xpZW50QWRyZXNzAgdfcmF0aW5nAwkAAQIFByRtYXRjaDACA0ludAQBcwUHJG1hdGNoMAUBcwD///////////8BAwkBAiE9AgUNc2VhcmNoRm9yVXNlcgD///////////8BCQACAQITVXNlciBhbHJlYWR5IGV4aXN0cwkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQxjbGllbnRBZHJlc3MCB19yYXRpbmcFDWRlZmF1bHRSYXRpbmcFA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkh553U", "height": 3159266, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 92prLSCSo3FpKHrPZBpKaSzFa4LEkYnSFgzBNurasFps Next: none Diff:
Old | New | Differences | |
---|---|---|---|
290 | 290 | } | |
291 | 291 | if ((ao == "Item not Found")) | |
292 | 292 | then throw("Item not found") | |
293 | - | else [StringEntry(((k + "_") + toString(1)), af), StringEntry(((k + "_") + af), w), IntegerEntry((k + "_counter"), 1), IntegerEntry(((k + "_prediction_") + w), | |
293 | + | else [StringEntry(((k + "_") + toString(1)), af), StringEntry(((k + "_") + af), w), IntegerEntry((k + "_counter"), 1), IntegerEntry(((k + "_prediction_") + w), aj), DeleteEntry(("new_" + k)), StringEntry(("updated_" + k), k)] | |
294 | 294 | } | |
295 | 295 | } | |
296 | 296 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 8 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 300 | |
5 | 5 | ||
6 | 6 | let b = 20 | |
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 = 50000000 | |
15 | 15 | ||
16 | 16 | let g = 60 | |
17 | 17 | ||
18 | 18 | let h = 500 | |
19 | 19 | ||
20 | 20 | let i = 100 | |
21 | 21 | ||
22 | 22 | func j (k,l) = { | |
23 | 23 | let j = { | |
24 | 24 | let m = getString(((k + "_") + toString(l))) | |
25 | 25 | if ($isInstanceOf(m, "String")) | |
26 | 26 | then { | |
27 | 27 | let n = m | |
28 | 28 | n | |
29 | 29 | } | |
30 | 30 | else "No User" | |
31 | 31 | } | |
32 | 32 | j | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func o (p) = { | |
37 | 37 | let q = { | |
38 | 38 | let m = getInteger((p + "_rating")) | |
39 | 39 | if ($isInstanceOf(m, "Int")) | |
40 | 40 | then { | |
41 | 41 | let r = m | |
42 | 42 | r | |
43 | 43 | } | |
44 | 44 | else c | |
45 | 45 | } | |
46 | 46 | q | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func s (k,t) = { | |
51 | 51 | let u = { | |
52 | 52 | let m = getString(((k + "_") + t)) | |
53 | 53 | if ($isInstanceOf(m, "String")) | |
54 | 54 | then { | |
55 | 55 | let n = m | |
56 | 56 | n | |
57 | 57 | } | |
58 | 58 | else "Not Found" | |
59 | 59 | } | |
60 | 60 | u | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func v (k,w) = { | |
65 | 65 | let u = { | |
66 | 66 | let m = getInteger(((k + "_prediction_") + w)) | |
67 | 67 | if ($isInstanceOf(m, "Int")) | |
68 | 68 | then { | |
69 | 69 | let n = m | |
70 | 70 | n | |
71 | 71 | } | |
72 | 72 | else "Not Found" | |
73 | 73 | } | |
74 | 74 | u | |
75 | 75 | } | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func x (k,l) = { | |
79 | 79 | let y = if ((l >= 5)) | |
80 | 80 | then { | |
81 | 81 | let z = j(k, 1) | |
82 | 82 | let A = j(k, 2) | |
83 | 83 | let B = j(k, 3) | |
84 | 84 | let C = j(k, 4) | |
85 | 85 | let D = j(k, 5) | |
86 | 86 | (((((nil :+ z) :+ A) :+ B) :+ C) :+ D) | |
87 | 87 | } | |
88 | 88 | else if ((l >= 4)) | |
89 | 89 | then { | |
90 | 90 | let z = j(k, 1) | |
91 | 91 | let A = j(k, 2) | |
92 | 92 | let B = j(k, 3) | |
93 | 93 | let C = j(k, 4) | |
94 | 94 | ((((nil :+ z) :+ A) :+ B) :+ C) | |
95 | 95 | } | |
96 | 96 | else if ((l >= 3)) | |
97 | 97 | then { | |
98 | 98 | let z = j(k, 1) | |
99 | 99 | let A = j(k, 2) | |
100 | 100 | let B = j(k, 3) | |
101 | 101 | (((nil :+ z) :+ A) :+ B) | |
102 | 102 | } | |
103 | 103 | else if ((l >= 2)) | |
104 | 104 | then { | |
105 | 105 | let z = j(k, 1) | |
106 | 106 | let A = j(k, 2) | |
107 | 107 | ((nil :+ z) :+ A) | |
108 | 108 | } | |
109 | 109 | else { | |
110 | 110 | let z = j(k, 1) | |
111 | 111 | (nil :+ z) | |
112 | 112 | } | |
113 | 113 | y | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func E (F,h) = { | |
118 | 118 | let G = ((F * 100) / h) | |
119 | 119 | let H = ((f * G) / 100) | |
120 | 120 | if ((0 >= H)) | |
121 | 121 | then 1 | |
122 | 122 | else H | |
123 | 123 | } | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func I (F,h,J,K) = { | |
127 | 127 | let L = ((F * i) / h) | |
128 | 128 | if ((K == 1)) | |
129 | 129 | then { | |
130 | 130 | let M = ((J * (100 - L)) / i) | |
131 | 131 | (F + M) | |
132 | 132 | } | |
133 | 133 | else { | |
134 | 134 | let M = ((-(J) * (20 + L)) / i) | |
135 | 135 | (F + M) | |
136 | 136 | } | |
137 | 137 | } | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | @Callable(N) | |
141 | 141 | func adjustRatingsAndPayoutParticipants (k,O,P,Q) = { | |
142 | 142 | let R = toString(N.caller) | |
143 | 143 | if ((R != toString(this))) | |
144 | 144 | then throw("You are not allowed to call this function") | |
145 | 145 | else { | |
146 | 146 | func S (T,p) = { | |
147 | 147 | let q = o(p) | |
148 | 148 | let w = s(k, p) | |
149 | 149 | let K = if ((w == Q)) | |
150 | 150 | then 1 | |
151 | 151 | else 0 | |
152 | 152 | let U = I(q, h, d, K) | |
153 | 153 | let H = if ((w == Q)) | |
154 | 154 | then true | |
155 | 155 | else false | |
156 | 156 | let V = (T :+ IntegerEntry((p + "_rating"), U)) | |
157 | 157 | let W = E(U, h) | |
158 | 158 | if (H) | |
159 | 159 | then (V :+ ScriptTransfer(Address(fromBase58String(p)), W, e)) | |
160 | 160 | else V | |
161 | 161 | } | |
162 | 162 | ||
163 | 163 | let X = { | |
164 | 164 | let Y = O | |
165 | 165 | let Z = size(Y) | |
166 | 166 | let aa = nil | |
167 | 167 | func ab (ac,ad) = if ((ad >= Z)) | |
168 | 168 | then ac | |
169 | 169 | else S(ac, Y[ad]) | |
170 | 170 | ||
171 | 171 | func ae (ac,ad) = if ((ad >= Z)) | |
172 | 172 | then ac | |
173 | 173 | else throw("List size exceeds 5") | |
174 | 174 | ||
175 | 175 | ae(ab(ab(ab(ab(ab(aa, 0), 1), 2), 3), 4), 5) | |
176 | 176 | } | |
177 | 177 | (X :+ BooleanEntry((k + "_adjusted"), true)) | |
178 | 178 | } | |
179 | 179 | } | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | ||
183 | 183 | @Callable(N) | |
184 | 184 | func savePrediction (k,w) = { | |
185 | 185 | let af = toString(N.caller) | |
186 | 186 | let ag = { | |
187 | 187 | let m = getInteger((af + "_rating")) | |
188 | 188 | if ($isInstanceOf(m, "Int")) | |
189 | 189 | then { | |
190 | 190 | let n = m | |
191 | 191 | n | |
192 | 192 | } | |
193 | 193 | else "User does not exist" | |
194 | 194 | } | |
195 | 195 | if ((ag == "User does not exist")) | |
196 | 196 | then throw("User does not exist") | |
197 | 197 | else { | |
198 | 198 | let ah = { | |
199 | 199 | let m = getBoolean((k + "_final")) | |
200 | 200 | if ($isInstanceOf(m, "Boolean")) | |
201 | 201 | then { | |
202 | 202 | let n = m | |
203 | 203 | n | |
204 | 204 | } | |
205 | 205 | else false | |
206 | 206 | } | |
207 | 207 | if (ah) | |
208 | 208 | then throw("Final prediction already made") | |
209 | 209 | else { | |
210 | 210 | let ai = { | |
211 | 211 | let m = getBoolean((k + "_cancelled")) | |
212 | 212 | if ($isInstanceOf(m, "Boolean")) | |
213 | 213 | then { | |
214 | 214 | let n = m | |
215 | 215 | n | |
216 | 216 | } | |
217 | 217 | else false | |
218 | 218 | } | |
219 | 219 | if (ai) | |
220 | 220 | then throw("Final prediction already made") | |
221 | 221 | else { | |
222 | 222 | let aj = o(af) | |
223 | 223 | if ((g >= aj)) | |
224 | 224 | then throw("You are not allowed to participate anymore") | |
225 | 225 | else { | |
226 | 226 | let ak = { | |
227 | 227 | let m = getInteger((k + "_counter")) | |
228 | 228 | if ($isInstanceOf(m, "Int")) | |
229 | 229 | then { | |
230 | 230 | let n = m | |
231 | 231 | n | |
232 | 232 | } | |
233 | 233 | else -1 | |
234 | 234 | } | |
235 | 235 | if ((ak >= 1)) | |
236 | 236 | then { | |
237 | 237 | let y = x(k, ak) | |
238 | 238 | if (containsElement(y, af)) | |
239 | 239 | then throw("This User already gave a Prediction") | |
240 | 240 | else { | |
241 | 241 | let al = { | |
242 | 242 | let m = getInteger(((k + "_prediction_") + w)) | |
243 | 243 | if ($isInstanceOf(m, "Int")) | |
244 | 244 | then { | |
245 | 245 | let n = m | |
246 | 246 | n | |
247 | 247 | } | |
248 | 248 | else 404 | |
249 | 249 | } | |
250 | 250 | let am = (ak + 1) | |
251 | 251 | if ((al != 404)) | |
252 | 252 | then if (((al + aj) >= a)) | |
253 | 253 | then { | |
254 | 254 | let U = I(aj, h, d, 1) | |
255 | 255 | let W = E(U, h) | |
256 | 256 | let an = invoke(this, "adjustRatingsAndPayoutParticipants", [k, y, af, w], nil) | |
257 | 257 | if ((an != an)) | |
258 | 258 | then throw("Strict value is not equal to itself.") | |
259 | 259 | else [StringEntry(((k + "_") + toString(am)), af), StringEntry(((k + "_") + af), w), IntegerEntry(((k + "_prediction_") + w), (al + aj)), IntegerEntry((k + "_counter"), am), BooleanEntry((k + "_final"), true), BooleanEntry((k + "_cancelled"), false), DeleteEntry(("updated_" + k)), StringEntry(("final_" + k), k), ScriptTransfer(Address(fromBase58String(af)), W, e), IntegerEntry((af + "_rating"), U), StringEntry((k + "_final_prediction"), w)] | |
260 | 260 | } | |
261 | 261 | else if ((am >= b)) | |
262 | 262 | then { | |
263 | 263 | let U = I(aj, h, d, 1) | |
264 | 264 | let an = invoke(this, "adjustRatingsAndPayoutParticipants", [k, y, af, "None"], nil) | |
265 | 265 | if ((an != an)) | |
266 | 266 | then throw("Strict value is not equal to itself.") | |
267 | 267 | else [StringEntry(((k + "_") + toString(am)), af), StringEntry(((k + "_") + af), w), IntegerEntry(((k + "_prediction_") + w), (al + aj)), IntegerEntry((k + "_counter"), am), BooleanEntry((k + "_cancelled"), true), BooleanEntry((k + "_final"), false), DeleteEntry(("updated_" + k)), StringEntry(("final_" + k), k), IntegerEntry((af + "_rating"), U)] | |
268 | 268 | } | |
269 | 269 | else [StringEntry(((k + "_") + toString(am)), af), StringEntry(((k + "_") + af), w), IntegerEntry(((k + "_prediction_") + w), (al + aj)), IntegerEntry((k + "_counter"), am), BooleanEntry((k + "_final"), false), BooleanEntry((k + "_cancelled"), false)] | |
270 | 270 | else if ((am >= b)) | |
271 | 271 | then { | |
272 | 272 | let U = I(aj, h, d, 1) | |
273 | 273 | let an = invoke(this, "adjustRatingsAndPayoutParticipants", [k, y, af, "None"], nil) | |
274 | 274 | if ((an != an)) | |
275 | 275 | then throw("Strict value is not equal to itself.") | |
276 | 276 | else [StringEntry(((k + "_") + toString(am)), af), StringEntry(((k + "_") + af), w), IntegerEntry(((k + "_prediction_") + w), aj), IntegerEntry((k + "_counter"), am), BooleanEntry((k + "_cancelled"), true), BooleanEntry((k + "_final"), false), DeleteEntry(("updated_" + k)), StringEntry(("final_" + k), k), IntegerEntry((af + "_rating"), U)] | |
277 | 277 | } | |
278 | 278 | else [StringEntry(((k + "_") + toString(am)), af), StringEntry(((k + "_") + af), w), IntegerEntry(((k + "_prediction_") + w), aj), IntegerEntry((k + "_counter"), am), BooleanEntry((k + "_cancelled"), false), BooleanEntry((k + "_final"), false)] | |
279 | 279 | } | |
280 | 280 | } | |
281 | 281 | else { | |
282 | 282 | let ao = { | |
283 | 283 | let m = getString(("new_" + k)) | |
284 | 284 | if ($isInstanceOf(m, "String")) | |
285 | 285 | then { | |
286 | 286 | let n = m | |
287 | 287 | n | |
288 | 288 | } | |
289 | 289 | else "Item not Found" | |
290 | 290 | } | |
291 | 291 | if ((ao == "Item not Found")) | |
292 | 292 | then throw("Item not found") | |
293 | - | else [StringEntry(((k + "_") + toString(1)), af), StringEntry(((k + "_") + af), w), IntegerEntry((k + "_counter"), 1), IntegerEntry(((k + "_prediction_") + w), | |
293 | + | else [StringEntry(((k + "_") + toString(1)), af), StringEntry(((k + "_") + af), w), IntegerEntry((k + "_counter"), 1), IntegerEntry(((k + "_prediction_") + w), aj), DeleteEntry(("new_" + k)), StringEntry(("updated_" + k), k)] | |
294 | 294 | } | |
295 | 295 | } | |
296 | 296 | } | |
297 | 297 | } | |
298 | 298 | } | |
299 | 299 | } | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | ||
303 | 303 | @Callable(N) | |
304 | 304 | func registerUser () = { | |
305 | 305 | let af = toString(N.caller) | |
306 | 306 | let ag = { | |
307 | 307 | let m = getInteger((af + "_rating")) | |
308 | 308 | if ($isInstanceOf(m, "Int")) | |
309 | 309 | then { | |
310 | 310 | let n = m | |
311 | 311 | n | |
312 | 312 | } | |
313 | 313 | else -1 | |
314 | 314 | } | |
315 | 315 | if ((ag != -1)) | |
316 | 316 | then throw("User already exists") | |
317 | 317 | else [IntegerEntry((af + "_rating"), c)] | |
318 | 318 | } | |
319 | 319 | ||
320 | 320 | ||
321 | 321 | @Verifier(ap) | |
322 | 322 | func aq () = sigVerify(ap.bodyBytes, ap.proofs[0], ap.senderPublicKey) | |
323 | 323 |
github/deemru/w8io/026f985 44.57 ms ◑