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