tx · 38Z2tFWLwtSQUbsMMagNj2K9duBg2CEzDwGG4x5m54aj 3Mp5JgVSHA9iziujC9Kmnf2rCN5SYFE97yC: -0.01400000 Waves 2021.11.17 18:43 [1795231] smart account 3Mp5JgVSHA9iziujC9Kmnf2rCN5SYFE97yC > SELF 0.00000000 Waves
{ "type": 13, "id": "38Z2tFWLwtSQUbsMMagNj2K9duBg2CEzDwGG4x5m54aj", "fee": 1400000, "feeAssetId": null, "timestamp": 1637163804531, "version": 2, "chainId": 84, "sender": "3Mp5JgVSHA9iziujC9Kmnf2rCN5SYFE97yC", "senderPublicKey": "CSx1y2ADZAi6KvFZT2LoqQmX5qBxDVVGGZ6heDAGngHM", "proofs": [ "W7MN4Jk6uH8V6kNfXfV4Fk8rs4WB3vBguWoEntgp6PWotvwTzpabKDzZuQoDiWdqS19JcAkTCYsQmDmd1cxKDMq", "5vqMW9i45CNb7pKaLNtw3hb3rhcmKxEMAK3pimeoBVsocaRtCw74T5jA2sM1Lew2fndYkK46y8c9RL66VFN5JWns" ], "script": "base64:AAIFAAAAAAAAABwIAhIHCgUBERgRGBIAEgMKAQgSBAoCAQgSABIAAAAAHgAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAADGtleUVuZEhlaWdodAIAAAAKZW5kX2hlaWdodAAAAAAPa2V5UHJpemVzUHJpY2VzAgAAAA1wcml6ZXNfcHJpY2VzAAAAAAxrZXlQcml6ZXNJZHMCAAAACnByaXplc19pZHMAAAAAEGtleVByaXplc0Ftb3VudHMCAAAADXByaXplc19hbW91bnQAAAAADmtleUxldmVsUHJpY2VzAgAAAAxsZXZlbF9wcmljZXMAAAAAC2tleUxldmVsSWRzAgAAAAlsZXZlbF9pZHMAAAAACWtleVNXT1BpZAIAAAAHU1dPUF9pZAAAAAAOa2V5VG90YWxCdXJuZWQCAAAADHRvdGFsX2J1cm5lZAAAAAANa2V5VmVyaWZ5SGFzaAIAAAALdmVyaWZ5X2hhc2gAAAAAEWtleUZpbmFsaXplS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ationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7oCh7fHPcS1P3JKrXndGXbZ34u99ZEosar2WUSbkzb3n Next: 6qppARN7VdAA7SPQUtayCpV3EARPY6oh3nN6zn7YY5sG Diff:
Old | New | Differences | |
---|---|---|---|
151 | 151 | let U = valueOrElse(getInteger(this, b), 0) | |
152 | 152 | if (!(C)) | |
153 | 153 | then throw("DApp is inactive at this moment") | |
154 | - | else if (if (( | |
154 | + | else if (if ((height > U)) | |
155 | 155 | then true | |
156 | 156 | else (U == 0)) | |
157 | 157 | then throw("Swop burning are ended or not started yet") |
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_ids" | |
11 | 11 | ||
12 | 12 | let e = "prizes_amount" | |
13 | 13 | ||
14 | 14 | let f = "level_prices" | |
15 | 15 | ||
16 | 16 | let g = "level_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'3Miw1JaBRaVjCJTepBrMt6PcL8YVmDpnKUa') | |
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 | let D = valueOrElse(getInteger(this, i), 0) | |
67 | 67 | ||
68 | 68 | func E (F,G) = if ((F == "")) | |
69 | 69 | then (F + toString(G)) | |
70 | 70 | else ((F + ",") + toString(G)) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func H (F,G) = (F :+ parseIntValue(G)) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func I (F,G) = (F :+ (D / G)) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func J (K) = { | |
80 | 80 | let L = { | |
81 | 81 | let M = split(getStringValue(this, f), ",") | |
82 | 82 | let N = size(M) | |
83 | 83 | let O = nil | |
84 | 84 | func P (Q,R) = if ((R >= N)) | |
85 | 85 | then Q | |
86 | 86 | else H(Q, M[R]) | |
87 | 87 | ||
88 | 88 | func S (Q,R) = if ((R >= N)) | |
89 | 89 | then Q | |
90 | 90 | else throw("List size exceeds 5") | |
91 | 91 | ||
92 | 92 | S(P(P(P(P(P(O, 0), 1), 2), 3), 4), 5) | |
93 | 93 | } | |
94 | 94 | if ((L[3] >= K)) | |
95 | 95 | then 4 | |
96 | 96 | else if ((L[2] >= K)) | |
97 | 97 | then 3 | |
98 | 98 | else if ((L[1] >= K)) | |
99 | 99 | then 2 | |
100 | 100 | else if ((L[0] >= K)) | |
101 | 101 | then 1 | |
102 | 102 | else 0 | |
103 | 103 | } | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | @Callable(T) | |
107 | 107 | func init (U,V,W,L,X) = if (isDefined(getInteger(this, b))) | |
108 | 108 | then throw("DApp is already inited") | |
109 | 109 | else { | |
110 | 110 | let Y = { | |
111 | 111 | let M = V | |
112 | 112 | let N = size(M) | |
113 | 113 | let O = "" | |
114 | 114 | func P (Q,R) = if ((R >= N)) | |
115 | 115 | then Q | |
116 | 116 | else E(Q, M[R]) | |
117 | 117 | ||
118 | 118 | func S (Q,R) = if ((R >= N)) | |
119 | 119 | then Q | |
120 | 120 | else throw("List size exceeds 5") | |
121 | 121 | ||
122 | 122 | S(P(P(P(P(P(O, 0), 1), 2), 3), 4), 5) | |
123 | 123 | } | |
124 | 124 | let Z = makeString(W, ",") | |
125 | 125 | let aa = { | |
126 | 126 | let M = L | |
127 | 127 | let N = size(M) | |
128 | 128 | let O = "" | |
129 | 129 | func P (Q,R) = if ((R >= N)) | |
130 | 130 | then Q | |
131 | 131 | else E(Q, M[R]) | |
132 | 132 | ||
133 | 133 | func S (Q,R) = if ((R >= N)) | |
134 | 134 | then Q | |
135 | 135 | else throw("List size exceeds 5") | |
136 | 136 | ||
137 | 137 | S(P(P(P(P(P(O, 0), 1), 2), 3), 4), 5) | |
138 | 138 | } | |
139 | 139 | let ab = makeString(X, ",") | |
140 | 140 | let ac = "0,0,0,0,0" | |
141 | 141 | [IntegerEntry(b, U), StringEntry(c, Y), StringEntry(d, Z), StringEntry(f, aa), StringEntry(g, ab), StringEntry(e, ac)] | |
142 | 142 | } | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | ||
146 | 146 | @Callable(T) | |
147 | 147 | func add () = { | |
148 | 148 | let ad = $Tuple2(T.payments[0].amount, T.payments[0].assetId) | |
149 | 149 | let ae = ad._1 | |
150 | 150 | let af = ad._2 | |
151 | 151 | let U = valueOrElse(getInteger(this, b), 0) | |
152 | 152 | if (!(C)) | |
153 | 153 | then throw("DApp is inactive at this moment") | |
154 | - | else if (if (( | |
154 | + | else if (if ((height > U)) | |
155 | 155 | then true | |
156 | 156 | else (U == 0)) | |
157 | 157 | then throw("Swop burning are ended or not started yet") | |
158 | 158 | else if ((af != B)) | |
159 | 159 | then throw("You can add only SWOP token") | |
160 | 160 | else { | |
161 | 161 | let ag = valueOrElse(getInteger(this, (toString(this) + l)), 0) | |
162 | 162 | let ah = { | |
163 | 163 | let M = split(getStringValue(this, e), ",") | |
164 | 164 | let N = size(M) | |
165 | 165 | let O = nil | |
166 | 166 | func P (Q,R) = if ((R >= N)) | |
167 | 167 | then Q | |
168 | 168 | else H(Q, M[R]) | |
169 | 169 | ||
170 | 170 | func S (Q,R) = if ((R >= N)) | |
171 | 171 | then Q | |
172 | 172 | else throw("List size exceeds 5") | |
173 | 173 | ||
174 | 174 | S(P(P(P(P(P(O, 0), 1), 2), 3), 4), 5) | |
175 | 175 | } | |
176 | 176 | let ai = { | |
177 | 177 | let M = split(getStringValue(this, c), ",") | |
178 | 178 | let N = size(M) | |
179 | 179 | let O = nil | |
180 | 180 | func P (Q,R) = if ((R >= N)) | |
181 | 181 | then Q | |
182 | 182 | else H(Q, M[R]) | |
183 | 183 | ||
184 | 184 | func S (Q,R) = if ((R >= N)) | |
185 | 185 | then Q | |
186 | 186 | else throw("List size exceeds 5") | |
187 | 187 | ||
188 | 188 | S(P(P(P(P(P(O, 0), 1), 2), 3), 4), 5) | |
189 | 189 | } | |
190 | 190 | let aj = split(getStringValue(this, d), ",") | |
191 | 191 | let X = split(getStringValue(this, g), ",") | |
192 | 192 | let ak = { | |
193 | 193 | let M = ai | |
194 | 194 | let N = size(M) | |
195 | 195 | let O = nil | |
196 | 196 | func P (Q,R) = if ((R >= N)) | |
197 | 197 | then Q | |
198 | 198 | else I(Q, M[R]) | |
199 | 199 | ||
200 | 200 | func S (Q,R) = if ((R >= N)) | |
201 | 201 | then Q | |
202 | 202 | else throw("List size exceeds 5") | |
203 | 203 | ||
204 | 204 | S(P(P(P(P(P(O, 0), 1), 2), 3), 4), 5) | |
205 | 205 | } | |
206 | 206 | let al = { | |
207 | 207 | let M = ak | |
208 | 208 | let N = size(M) | |
209 | 209 | let O = "" | |
210 | 210 | func P (Q,R) = if ((R >= N)) | |
211 | 211 | then Q | |
212 | 212 | else E(Q, M[R]) | |
213 | 213 | ||
214 | 214 | func S (Q,R) = if ((R >= N)) | |
215 | 215 | then Q | |
216 | 216 | else throw("List size exceeds 5") | |
217 | 217 | ||
218 | 218 | S(P(P(P(P(P(O, 0), 1), 2), 3), 4), 5) | |
219 | 219 | } | |
220 | 220 | let am = if ((ak[0] != ah[0])) | |
221 | 221 | then { | |
222 | 222 | let an = (ak[0] - ah[0]) | |
223 | 223 | invoke(o, "add", [aj[0], an], nil) | |
224 | 224 | } | |
225 | 225 | else 0 | |
226 | 226 | if ((am == am)) | |
227 | 227 | then { | |
228 | 228 | let ao = if ((ak[1] != ah[1])) | |
229 | 229 | then { | |
230 | 230 | let an = (ak[1] - ah[1]) | |
231 | 231 | invoke(o, "add", [aj[1], an], nil) | |
232 | 232 | } | |
233 | 233 | else 0 | |
234 | 234 | if ((ao == ao)) | |
235 | 235 | then { | |
236 | 236 | let ap = if ((ak[2] != ah[2])) | |
237 | 237 | then { | |
238 | 238 | let an = (ak[2] - ah[2]) | |
239 | 239 | invoke(o, "add", [aj[2], an], nil) | |
240 | 240 | } | |
241 | 241 | else 0 | |
242 | 242 | if ((ap == ap)) | |
243 | 243 | then { | |
244 | 244 | let aq = if ((ak[3] != ah[3])) | |
245 | 245 | then { | |
246 | 246 | let an = (ak[3] - ah[3]) | |
247 | 247 | invoke(o, "add", [aj[3], an], nil) | |
248 | 248 | } | |
249 | 249 | else 0 | |
250 | 250 | if ((aq == aq)) | |
251 | 251 | then { | |
252 | 252 | let ar = if ((ak[4] != ah[4])) | |
253 | 253 | then { | |
254 | 254 | let an = (ak[4] - ah[4]) | |
255 | 255 | invoke(o, "add", [aj[4], an], nil) | |
256 | 256 | } | |
257 | 257 | else 0 | |
258 | 258 | if ((ar == ar)) | |
259 | 259 | then { | |
260 | 260 | let as = J(ag) | |
261 | 261 | let at = J((ag + ae)) | |
262 | 262 | let au = if ((as != at)) | |
263 | 263 | then invoke(o, "add", [X[(at - 1)], 1], nil) | |
264 | 264 | else 0 | |
265 | 265 | [IntegerEntry(i, (D + ae)), IntegerEntry((toString(this) + l), (ag + ae)), StringEntry(e, al)] | |
266 | 266 | } | |
267 | 267 | else throw("Strict value is not equal to itself.") | |
268 | 268 | } | |
269 | 269 | else throw("Strict value is not equal to itself.") | |
270 | 270 | } | |
271 | 271 | else throw("Strict value is not equal to itself.") | |
272 | 272 | } | |
273 | 273 | else throw("Strict value is not equal to itself.") | |
274 | 274 | } | |
275 | 275 | else throw("Strict value is not equal to itself.") | |
276 | 276 | } | |
277 | 277 | } | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | ||
281 | 281 | @Callable(T) | |
282 | 282 | func hashingRandom (av) = if (!(C)) | |
283 | 283 | then throw("DApp is inactive at this moment") | |
284 | 284 | else if (!(containsElement([x, y, z], T.callerPublicKey))) | |
285 | 285 | then throw("Only admin can call this function") | |
286 | 286 | else [StringEntry(j, av)] | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | ||
290 | 290 | @Callable(T) | |
291 | 291 | func finalize (aw,ax) = { | |
292 | 292 | let ay = getStringValue(this, j) | |
293 | 293 | let az = toBase58String(sha256((toBytes(aw) + toBytes(ax)))) | |
294 | 294 | if (!(C)) | |
295 | 295 | then throw("DApp is inactive at this moment") | |
296 | 296 | else if (!(containsElement([x, y, z], T.callerPublicKey))) | |
297 | 297 | then throw("Only admin can call this function") | |
298 | 298 | else if ((az != ay)) | |
299 | 299 | then throw("vrf Height hash not matching") | |
300 | 300 | else { | |
301 | 301 | let aA = getIntegerValue(this, i) | |
302 | 302 | [Burn(B, aA), IntegerEntry(k, height)] | |
303 | 303 | } | |
304 | 304 | } | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | ||
308 | 308 | @Callable(T) | |
309 | 309 | func shutdown () = if (!(C)) | |
310 | 310 | then throw("DApp already inactive") | |
311 | 311 | else if (!(containsElement([x, y, z], T.callerPublicKey))) | |
312 | 312 | then throw("Only admin can call this function") | |
313 | 313 | else [BooleanEntry(a, false)] | |
314 | 314 | ||
315 | 315 | ||
316 | 316 | ||
317 | 317 | @Callable(T) | |
318 | 318 | func activate () = if (C) | |
319 | 319 | then throw("DApp already active") | |
320 | 320 | else if (!(containsElement([x, y, z], T.callerPublicKey))) | |
321 | 321 | then throw("Only admin can call this function") | |
322 | 322 | else [BooleanEntry(a, true)] | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | @Verifier(aB) | |
326 | 326 | func aC () = { | |
327 | 327 | let aD = { | |
328 | 328 | let aE = if (sigVerify(aB.bodyBytes, aB.proofs[0], x)) | |
329 | 329 | then 1 | |
330 | 330 | else 0 | |
331 | 331 | let aF = if (sigVerify(aB.bodyBytes, aB.proofs[1], y)) | |
332 | 332 | then 1 | |
333 | 333 | else 0 | |
334 | 334 | let aG = if (sigVerify(aB.bodyBytes, aB.proofs[2], z)) | |
335 | 335 | then 1 | |
336 | 336 | else 0 | |
337 | 337 | (((aE + aF) + aG) >= 2) | |
338 | 338 | } | |
339 | 339 | let aH = if (if (if (sigVerify(aB.bodyBytes, aB.proofs[0], x)) | |
340 | 340 | then true | |
341 | 341 | else sigVerify(aB.bodyBytes, aB.proofs[0], y)) | |
342 | 342 | then true | |
343 | 343 | else sigVerify(aB.bodyBytes, aB.proofs[0], z)) | |
344 | 344 | then true | |
345 | 345 | else sigVerify(aB.bodyBytes, aB.proofs[0], A) | |
346 | 346 | let u = aB | |
347 | 347 | aD | |
348 | 348 | } | |
349 | 349 |
github/deemru/w8io/169f3d6 41.81 ms ◑