tx · FsJSMEA8njEumeQMn9cuRNK7dKX9fBrC8ZHdGH1Scaud 3Mp5JgVSHA9iziujC9Kmnf2rCN5SYFE97yC: -0.01400000 Waves 2021.11.30 18:55 [1813982] smart account 3Mp5JgVSHA9iziujC9Kmnf2rCN5SYFE97yC > SELF 0.00000000 Waves
{ "type": 13, "id": "FsJSMEA8njEumeQMn9cuRNK7dKX9fBrC8ZHdGH1Scaud", "fee": 1400000, "feeAssetId": null, "timestamp": 1638287749819, "version": 2, "chainId": 84, "sender": "3Mp5JgVSHA9iziujC9Kmnf2rCN5SYFE97yC", "senderPublicKey": "CSx1y2ADZAi6KvFZT2LoqQmX5qBxDVVGGZ6heDAGngHM", "proofs": [ "3CAVrE1MnNZRBGwRxs3zpMdo1YdNTxhYGahXTfXVzhpErvWNFwwbqK2cmTVwEX4y9in6QUdEzGdb6cQDZipVxEWc", "5p2t8wwSkGz7GVpGmN88CewGH6vuudr8JsVpeDXLy9ZuFT4tG7vryUna7dp1g1MsGJiW9akc22UzFb3yHqcCe5ve" ], "script": "base64:AAIFAAAAAAAAABwIAhIHCgUBERgRGBIAEgMKAQgSBAoCAQgSABIAAAAAHQAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAADGtleUVuZEhlaWdodAIAAAAKZW5kX2hlaWdodAAAAAAPa2V5UHJpemVzUHJpY2VzAgAAAA1wcml6ZXNfcHJpY2VzAAAAAA1rZXlQcml6ZXNBSWRzAgAAABdwcml6ZXNfYWNoaWV2ZW1lbnRzX2lkcwAAAAAQa2V5UHJpemVzQW1vdW50cwIAAAANcHJpemVzX2Ftb3VudAAAAAAOa2V5TGV2ZWxQcmljZXMCAAAADGxldmVsX3ByaWNlcwAAAAAWa2V5TGV2ZWxBY2hpZXZlbW50c0lkcwIAAAAWbGV2ZWxfYWNoaWV2ZW1lbnRzX2lkcwAAAAAJa2V5U1dPUGlkAgAAAAdTV09QX2lkAAAAAA5rZXlUb3RhbEJ1cm5lZAIAAAAMdG90YWxfYnV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5QWRtaW4DAwMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAxhZG1pblB1YktleTEGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkyBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADGFkbWluUHViS2V5MwYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAABJhZG1pblB1YktleVN0YWtpbmcEAAAAByRtYXRjaDAFAAAAAnR4BQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5z5F+qGA==", "height": 1813982, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7ma6AvG2FZvWeCpEhTvT4aAKZ2q1x8cwiN8xZErNE9i Next: FDAMNwPMzBuVvi3QhTRwJWztDnCeuhCVPTjNB1zUL31k Diff:
Old | New | Differences | |
---|---|---|---|
94 | 94 | ||
95 | 95 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
96 | 96 | } | |
97 | - | if ((N[3] | |
97 | + | if ((M >= N[3])) | |
98 | 98 | then 4 | |
99 | - | else if ((N[2] | |
99 | + | else if ((M >= N[2])) | |
100 | 100 | then 3 | |
101 | - | else if ((N[1] | |
101 | + | else if ((M >= N[1])) | |
102 | 102 | then 2 | |
103 | - | else if ((N[0] | |
103 | + | else if ((M >= N[0])) | |
104 | 104 | then 1 | |
105 | 105 | else 0 | |
106 | 106 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "active" | |
5 | 5 | ||
6 | 6 | let b = "end_height" | |
7 | 7 | ||
8 | 8 | let c = "prizes_prices" | |
9 | 9 | ||
10 | 10 | let d = "prizes_achievements_ids" | |
11 | 11 | ||
12 | 12 | let e = "prizes_amount" | |
13 | 13 | ||
14 | 14 | let f = "level_prices" | |
15 | 15 | ||
16 | 16 | let g = "level_achievements_ids" | |
17 | 17 | ||
18 | 18 | let h = "SWOP_id" | |
19 | 19 | ||
20 | 20 | let i = "total_burned" | |
21 | 21 | ||
22 | 22 | let j = "verify_hash" | |
23 | 23 | ||
24 | 24 | let k = "finalize_height" | |
25 | 25 | ||
26 | 26 | let l = "_total_burned" | |
27 | 27 | ||
28 | 28 | let m = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
29 | 29 | ||
30 | 30 | let n = Address(base58'3MsxHxruYWoddB4HRiPBYAWtMXMtCF1V9XT') | |
31 | 31 | ||
32 | 32 | let o = Address(base58'3N3HtdnBkqSSc16DaydiwtrMBUv3DfqKjSW') | |
33 | 33 | ||
34 | 34 | let p = "admin_pub_1" | |
35 | 35 | ||
36 | 36 | let q = "admin_pub_2" | |
37 | 37 | ||
38 | 38 | let r = "admin_pub_3" | |
39 | 39 | ||
40 | 40 | func s (t) = { | |
41 | 41 | let u = getString(m, t) | |
42 | 42 | if ($isInstanceOf(u, "String")) | |
43 | 43 | then { | |
44 | 44 | let v = u | |
45 | 45 | fromBase58String(v) | |
46 | 46 | } | |
47 | 47 | else { | |
48 | 48 | let w = u | |
49 | 49 | throw("Admin public key is empty") | |
50 | 50 | } | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | let x = s(p) | |
55 | 55 | ||
56 | 56 | let y = s(q) | |
57 | 57 | ||
58 | 58 | let z = s(r) | |
59 | 59 | ||
60 | 60 | let A = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
61 | 61 | ||
62 | 62 | let B = fromBase58String(getStringValue(n, h)) | |
63 | 63 | ||
64 | 64 | let C = valueOrElse(getBoolean(this, a), true) | |
65 | 65 | ||
66 | 66 | func D (E,F) = if ((E == "")) | |
67 | 67 | then (E + toString(F)) | |
68 | 68 | else ((E + ",") + toString(F)) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func G (E,F) = (E :+ parseIntValue(F)) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func H (E,F) = { | |
75 | 75 | let I = E | |
76 | 76 | let J = I._1 | |
77 | 77 | let K = I._2 | |
78 | 78 | $Tuple2(J, (K :+ (J / F))) | |
79 | 79 | } | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func L (M) = { | |
83 | 83 | let N = { | |
84 | 84 | let O = split(getStringValue(this, f), ",") | |
85 | 85 | let P = size(O) | |
86 | 86 | let Q = nil | |
87 | 87 | func R (S,T) = if ((T >= P)) | |
88 | 88 | then S | |
89 | 89 | else G(S, O[T]) | |
90 | 90 | ||
91 | 91 | func U (S,T) = if ((T >= P)) | |
92 | 92 | then S | |
93 | 93 | else throw("List size exceeds 5") | |
94 | 94 | ||
95 | 95 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
96 | 96 | } | |
97 | - | if ((N[3] | |
97 | + | if ((M >= N[3])) | |
98 | 98 | then 4 | |
99 | - | else if ((N[2] | |
99 | + | else if ((M >= N[2])) | |
100 | 100 | then 3 | |
101 | - | else if ((N[1] | |
101 | + | else if ((M >= N[1])) | |
102 | 102 | then 2 | |
103 | - | else if ((N[0] | |
103 | + | else if ((M >= N[0])) | |
104 | 104 | then 1 | |
105 | 105 | else 0 | |
106 | 106 | } | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | @Callable(V) | |
110 | 110 | func init (W,X,Y,N,Z) = if (!(containsElement([x, y, z], V.callerPublicKey))) | |
111 | 111 | then throw("Only admin can call this function") | |
112 | 112 | else if (isDefined(getInteger(this, b))) | |
113 | 113 | then throw("DApp is already inited") | |
114 | 114 | else if ((height > W)) | |
115 | 115 | then throw("Burning ending must be greater than current height") | |
116 | 116 | else if (if ((size(X) != 5)) | |
117 | 117 | then true | |
118 | 118 | else (size(Y) != 5)) | |
119 | 119 | then throw("Amount of prizes achievemts lists must equal to 5") | |
120 | 120 | else if (if ((size(N) != 4)) | |
121 | 121 | then true | |
122 | 122 | else (size(Z) != 4)) | |
123 | 123 | then throw("Amount of levels lists must equal to 4") | |
124 | 124 | else { | |
125 | 125 | let aa = { | |
126 | 126 | let O = X | |
127 | 127 | let P = size(O) | |
128 | 128 | let Q = "" | |
129 | 129 | func R (S,T) = if ((T >= P)) | |
130 | 130 | then S | |
131 | 131 | else D(S, O[T]) | |
132 | 132 | ||
133 | 133 | func U (S,T) = if ((T >= P)) | |
134 | 134 | then S | |
135 | 135 | else throw("List size exceeds 5") | |
136 | 136 | ||
137 | 137 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
138 | 138 | } | |
139 | 139 | let ab = makeString(Y, ",") | |
140 | 140 | let ac = { | |
141 | 141 | let O = N | |
142 | 142 | let P = size(O) | |
143 | 143 | let Q = "" | |
144 | 144 | func R (S,T) = if ((T >= P)) | |
145 | 145 | then S | |
146 | 146 | else D(S, O[T]) | |
147 | 147 | ||
148 | 148 | func U (S,T) = if ((T >= P)) | |
149 | 149 | then S | |
150 | 150 | else throw("List size exceeds 5") | |
151 | 151 | ||
152 | 152 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
153 | 153 | } | |
154 | 154 | let ad = makeString(Z, ",") | |
155 | 155 | let ae = "0,0,0,0,0" | |
156 | 156 | [IntegerEntry(b, W), StringEntry(c, aa), StringEntry(d, ab), StringEntry(f, ac), StringEntry(g, ad), StringEntry(e, ae)] | |
157 | 157 | } | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | ||
161 | 161 | @Callable(V) | |
162 | 162 | func add () = { | |
163 | 163 | let af = $Tuple2(V.payments[0].amount, V.payments[0].assetId) | |
164 | 164 | let ag = af._1 | |
165 | 165 | let ah = af._2 | |
166 | 166 | let W = valueOrElse(getInteger(this, b), 0) | |
167 | 167 | if (!(C)) | |
168 | 168 | then throw("DApp is inactive at this moment") | |
169 | 169 | else if (if ((height > W)) | |
170 | 170 | then true | |
171 | 171 | else (W == 0)) | |
172 | 172 | then throw("Swop burning are ended or not started yet") | |
173 | 173 | else if ((ah != B)) | |
174 | 174 | then throw("You can add only SWOP token") | |
175 | 175 | else { | |
176 | 176 | let ai = (valueOrElse(getInteger(this, i), 0) + ag) | |
177 | 177 | let aj = valueOrElse(getInteger(this, (toString(V.caller) + l)), 0) | |
178 | 178 | let ak = { | |
179 | 179 | let O = split(getStringValue(this, e), ",") | |
180 | 180 | let P = size(O) | |
181 | 181 | let Q = nil | |
182 | 182 | func R (S,T) = if ((T >= P)) | |
183 | 183 | then S | |
184 | 184 | else G(S, O[T]) | |
185 | 185 | ||
186 | 186 | func U (S,T) = if ((T >= P)) | |
187 | 187 | then S | |
188 | 188 | else throw("List size exceeds 5") | |
189 | 189 | ||
190 | 190 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
191 | 191 | } | |
192 | 192 | let al = { | |
193 | 193 | let O = split(getStringValue(this, c), ",") | |
194 | 194 | let P = size(O) | |
195 | 195 | let Q = nil | |
196 | 196 | func R (S,T) = if ((T >= P)) | |
197 | 197 | then S | |
198 | 198 | else G(S, O[T]) | |
199 | 199 | ||
200 | 200 | func U (S,T) = if ((T >= P)) | |
201 | 201 | then S | |
202 | 202 | else throw("List size exceeds 5") | |
203 | 203 | ||
204 | 204 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
205 | 205 | } | |
206 | 206 | let am = split(getStringValue(this, d), ",") | |
207 | 207 | let an = split(getStringValue(this, g), ",") | |
208 | 208 | let ao = { | |
209 | 209 | let O = al | |
210 | 210 | let P = size(O) | |
211 | 211 | let Q = $Tuple2(ai, nil) | |
212 | 212 | func R (S,T) = if ((T >= P)) | |
213 | 213 | then S | |
214 | 214 | else H(S, O[T]) | |
215 | 215 | ||
216 | 216 | func U (S,T) = if ((T >= P)) | |
217 | 217 | then S | |
218 | 218 | else throw("List size exceeds 5") | |
219 | 219 | ||
220 | 220 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
221 | 221 | } | |
222 | 222 | let ap = ao._2 | |
223 | 223 | let aq = { | |
224 | 224 | let O = ap | |
225 | 225 | let P = size(O) | |
226 | 226 | let Q = "" | |
227 | 227 | func R (S,T) = if ((T >= P)) | |
228 | 228 | then S | |
229 | 229 | else D(S, O[T]) | |
230 | 230 | ||
231 | 231 | func U (S,T) = if ((T >= P)) | |
232 | 232 | then S | |
233 | 233 | else throw("List size exceeds 5") | |
234 | 234 | ||
235 | 235 | U(R(R(R(R(R(Q, 0), 1), 2), 3), 4), 5) | |
236 | 236 | } | |
237 | 237 | let ar = if ((ap[0] != ak[0])) | |
238 | 238 | then { | |
239 | 239 | let as = (ap[0] - ak[0]) | |
240 | 240 | invoke(o, "add", [am[0], as], nil) | |
241 | 241 | } | |
242 | 242 | else 0 | |
243 | 243 | if ((ar == ar)) | |
244 | 244 | then { | |
245 | 245 | let at = if ((ap[1] != ak[1])) | |
246 | 246 | then { | |
247 | 247 | let as = (ap[1] - ak[1]) | |
248 | 248 | invoke(o, "add", [am[1], as], nil) | |
249 | 249 | } | |
250 | 250 | else 0 | |
251 | 251 | if ((at == at)) | |
252 | 252 | then { | |
253 | 253 | let au = if ((ap[2] != ak[2])) | |
254 | 254 | then { | |
255 | 255 | let as = (ap[2] - ak[2]) | |
256 | 256 | invoke(o, "add", [am[2], as], nil) | |
257 | 257 | } | |
258 | 258 | else 0 | |
259 | 259 | if ((au == au)) | |
260 | 260 | then { | |
261 | 261 | let av = if ((ap[3] != ak[3])) | |
262 | 262 | then { | |
263 | 263 | let as = (ap[3] - ak[3]) | |
264 | 264 | invoke(o, "add", [am[3], as], nil) | |
265 | 265 | } | |
266 | 266 | else 0 | |
267 | 267 | if ((av == av)) | |
268 | 268 | then { | |
269 | 269 | let aw = if ((ap[4] != ak[4])) | |
270 | 270 | then { | |
271 | 271 | let as = (ap[4] - ak[4]) | |
272 | 272 | invoke(o, "add", [am[4], as], nil) | |
273 | 273 | } | |
274 | 274 | else 0 | |
275 | 275 | if ((aw == aw)) | |
276 | 276 | then { | |
277 | 277 | let ax = [IntegerEntry(i, ai), IntegerEntry((toString(V.caller) + l), (aj + ag)), StringEntry(e, aq)] | |
278 | 278 | let ay = L(aj) | |
279 | 279 | let az = L(ai) | |
280 | 280 | let aA = (az - ay) | |
281 | 281 | if ((aA > 0)) | |
282 | 282 | then { | |
283 | 283 | let aB = if ((aA == 1)) | |
284 | 284 | then invoke(o, "add", [an[(az - 1)], 1], nil) | |
285 | 285 | else 0 | |
286 | 286 | if ((aB == aB)) | |
287 | 287 | then { | |
288 | 288 | let aC = if ((aA >= 2)) | |
289 | 289 | then invoke(o, "add", [an[(az - 2)], 1], nil) | |
290 | 290 | else 0 | |
291 | 291 | if ((aC == aC)) | |
292 | 292 | then { | |
293 | 293 | let aD = if ((aA >= 3)) | |
294 | 294 | then invoke(o, "add", [an[(az - 3)], 1], nil) | |
295 | 295 | else 0 | |
296 | 296 | if ((aD == aD)) | |
297 | 297 | then { | |
298 | 298 | let aE = if ((aA == 4)) | |
299 | 299 | then invoke(o, "add", [an[(az - 4)], 1], nil) | |
300 | 300 | else 0 | |
301 | 301 | if ((aE == aE)) | |
302 | 302 | then ax | |
303 | 303 | else throw("Strict value is not equal to itself.") | |
304 | 304 | } | |
305 | 305 | else throw("Strict value is not equal to itself.") | |
306 | 306 | } | |
307 | 307 | else throw("Strict value is not equal to itself.") | |
308 | 308 | } | |
309 | 309 | else throw("Strict value is not equal to itself.") | |
310 | 310 | } | |
311 | 311 | else ax | |
312 | 312 | } | |
313 | 313 | else throw("Strict value is not equal to itself.") | |
314 | 314 | } | |
315 | 315 | else throw("Strict value is not equal to itself.") | |
316 | 316 | } | |
317 | 317 | else throw("Strict value is not equal to itself.") | |
318 | 318 | } | |
319 | 319 | else throw("Strict value is not equal to itself.") | |
320 | 320 | } | |
321 | 321 | else throw("Strict value is not equal to itself.") | |
322 | 322 | } | |
323 | 323 | } | |
324 | 324 | ||
325 | 325 | ||
326 | 326 | ||
327 | 327 | @Callable(V) | |
328 | 328 | func hashingRandom (aF) = if (!(C)) | |
329 | 329 | then throw("DApp is inactive at this moment") | |
330 | 330 | else if (!(containsElement([x, y, z], V.callerPublicKey))) | |
331 | 331 | then throw("Only admin can call this function") | |
332 | 332 | else [StringEntry(j, aF)] | |
333 | 333 | ||
334 | 334 | ||
335 | 335 | ||
336 | 336 | @Callable(V) | |
337 | 337 | func finalize (aG,aH) = { | |
338 | 338 | let aI = getStringValue(this, j) | |
339 | 339 | let aJ = toBase58String(sha256((toBytes(aG) + toBytes(aH)))) | |
340 | 340 | if (!(C)) | |
341 | 341 | then throw("DApp is inactive at this moment") | |
342 | 342 | else if (!(containsElement([x, y, z], V.callerPublicKey))) | |
343 | 343 | then throw("Only admin can call this function") | |
344 | 344 | else if ((aJ != aI)) | |
345 | 345 | then throw("vrf Height hash not matching") | |
346 | 346 | else { | |
347 | 347 | let aK = getIntegerValue(this, i) | |
348 | 348 | [Burn(B, aK), IntegerEntry(k, height)] | |
349 | 349 | } | |
350 | 350 | } | |
351 | 351 | ||
352 | 352 | ||
353 | 353 | ||
354 | 354 | @Callable(V) | |
355 | 355 | func shutdown () = if (!(C)) | |
356 | 356 | then throw("DApp already inactive") | |
357 | 357 | else if (!(containsElement([x, y, z], V.callerPublicKey))) | |
358 | 358 | then throw("Only admin can call this function") | |
359 | 359 | else [BooleanEntry(a, false)] | |
360 | 360 | ||
361 | 361 | ||
362 | 362 | ||
363 | 363 | @Callable(V) | |
364 | 364 | func activate () = if (C) | |
365 | 365 | then throw("DApp already active") | |
366 | 366 | else if (!(containsElement([x, y, z], V.callerPublicKey))) | |
367 | 367 | then throw("Only admin can call this function") | |
368 | 368 | else [BooleanEntry(a, true)] | |
369 | 369 | ||
370 | 370 | ||
371 | 371 | @Verifier(aL) | |
372 | 372 | func aM () = { | |
373 | 373 | let aN = { | |
374 | 374 | let aO = if (sigVerify(aL.bodyBytes, aL.proofs[0], x)) | |
375 | 375 | then 1 | |
376 | 376 | else 0 | |
377 | 377 | let aP = if (sigVerify(aL.bodyBytes, aL.proofs[1], y)) | |
378 | 378 | then 1 | |
379 | 379 | else 0 | |
380 | 380 | let aQ = if (sigVerify(aL.bodyBytes, aL.proofs[2], z)) | |
381 | 381 | then 1 | |
382 | 382 | else 0 | |
383 | 383 | (((aO + aP) + aQ) >= 2) | |
384 | 384 | } | |
385 | 385 | let aR = if (if (if (sigVerify(aL.bodyBytes, aL.proofs[0], x)) | |
386 | 386 | then true | |
387 | 387 | else sigVerify(aL.bodyBytes, aL.proofs[0], y)) | |
388 | 388 | then true | |
389 | 389 | else sigVerify(aL.bodyBytes, aL.proofs[0], z)) | |
390 | 390 | then true | |
391 | 391 | else sigVerify(aL.bodyBytes, aL.proofs[0], A) | |
392 | 392 | let u = aL | |
393 | 393 | aN | |
394 | 394 | } | |
395 | 395 |
github/deemru/w8io/169f3d6 54.62 ms ◑