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