tx · Ca54uLDM9RY2i7g3QrdYDWAomvZQEQaZjoMJoBvyRCzR 3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7: -0.01400000 Waves 2021.08.02 03:50 [1640014] smart account 3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7 > SELF 0.00000000 Waves
{ "type": 13, "id": "Ca54uLDM9RY2i7g3QrdYDWAomvZQEQaZjoMJoBvyRCzR", "fee": 1400000, "feeAssetId": null, "timestamp": 1627865437467, "version": 2, "chainId": 84, "sender": "3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7", "senderPublicKey": "3tp5fNYyPi4jMnkf6s1k4kBqvJ7nm57SxzvLyi8RkxT2", "proofs": [ "5RxQnmfXRXP4CXuojwQkjcrLns38zpvXmc2HdwP1CcZnK6SYfAukAxaLFSrmhujr6wY3d8b9Xd3KFkMcsXEARSTh" ], "script": "base64:AAIEAAAAAAAAADoIAhIDCgEIEgYKBAgBCAESBwoFCAgBCAESAwoBCBIDCgEIEgMKAQgSBAoCCAgSBAoCCAgSBQoDCAgIAAAANQAAAAAETk9ORQIAAAAETk9ORQAAAAAGVk9URVJTAAAAAAAAAAADAAAAAAZRVU9SVU0AAAAAAAAAAAIAAAAACEZFQVRVUkVEAgAAAAhmZWF0dXJlZAAAAAAIREVMSVNURUQCAAAACGRlbGlzdGVkAAAAAAZWT1RJTkcCAAAABnZvdGluZwAAAAAGUkVWRUFMAgAAAAZyZXZlYWwAAAAACEFQUFJPVkFMAgAAAAhhcHByb3ZhbAAAAAAIUkVKRUNURUQCAAAACHJlamVjdGVkAAAAAAhBQ0NFUFRFRAIAAAAIYWNjZXB0ZWQBAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUBAAAAD2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AAAACW5ld1N0YXR1cwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAQSXNzdWVUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5B3NOhaE=", "height": 1640014, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: KCF2fX7EBAzrGinNGMZuUe5SWH8xZKfZSJVnW3dPzEE Next: 5n9u3MMwMgLhRkpGoPjB2Hh9W8WnqnxTCDiPSPx3STwc Diff:
Old | New | Differences | |
---|---|---|---|
229 | 229 | ||
230 | 230 | ||
231 | 231 | @Callable(ao) | |
232 | - | func purchase (x | |
232 | + | func purchase (x) = { | |
233 | 233 | let at = ao.payments[0] | |
234 | 234 | if (isDefined(at.assetId)) | |
235 | 235 | then throw("You can buy tokens only with Waves tokens") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "NONE" | |
5 | 5 | ||
6 | 6 | let b = 3 | |
7 | 7 | ||
8 | 8 | let c = 2 | |
9 | 9 | ||
10 | 10 | let d = "featured" | |
11 | 11 | ||
12 | 12 | let e = "delisted" | |
13 | 13 | ||
14 | 14 | let f = "voting" | |
15 | 15 | ||
16 | 16 | let g = "reveal" | |
17 | 17 | ||
18 | 18 | let h = "approval" | |
19 | 19 | ||
20 | 20 | let i = "rejected" | |
21 | 21 | ||
22 | 22 | let j = "accepted" | |
23 | 23 | ||
24 | 24 | func k (l) = { | |
25 | 25 | let m = getString(this, l) | |
26 | 26 | if ($isInstanceOf(m, "String")) | |
27 | 27 | then { | |
28 | 28 | let n = m | |
29 | 29 | n | |
30 | 30 | } | |
31 | 31 | else a | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func o (l) = { | |
36 | 36 | let m = getInteger(this, l) | |
37 | 37 | if ($isInstanceOf(m, "Int")) | |
38 | 38 | then { | |
39 | 39 | let n = m | |
40 | 40 | n | |
41 | 41 | } | |
42 | 42 | else 0 | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func p (q) = (q + "_account") | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func r (q) = k(p(q)) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func s (t,u) = { | |
53 | 53 | let v = (t + u) | |
54 | 54 | ("item_" + toBase58String(sha256(toBytes(v)))) | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func w (x) = (x + "_owner") | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func y (x) = (x + "_title") | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func z (x) = (x + "_price") | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func A (x) = (x + "_data") | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func B (x) = (x + "_expiredate") | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func C (x) = (x + "_sold") | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func D (x,E) = (((x + "_") + E) + "_commit") | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func F (x) = (x + "_cmtcnt") | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func G (x,E) = (((x + "_") + E) + "_reveal") | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func H (x) = (x + "_status") | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func I (x,J) = ((x + "_res:") + J) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func K (t) = (t + "_balance") | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func L (t,x,E) = ("purchase_" + toBase58String(sha256(toBytes(((((t + "_") + x) + "_") + E))))) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func M (N) = (N + "_status") | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func O (N) = (N + "_item") | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func P (N) = (N + "_supplier") | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func Q (N) = (N + "_user") | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func R (N) = (N + "_amount") | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func S (N) = (N + "_timestamp") | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func T (U) = ("coupon_" + U) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func V (W) = (W + "_item") | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func X (t) = o(K(t)) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func Y (N) = k(M(N)) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func Z (N) = getStringValue(this, O(N)) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func aa (N) = getStringValue(this, P(N)) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func ab (N) = getStringValue(this, Q(N)) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func ac (N) = getIntegerValue(this, R(N)) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func ad (N) = o(S(N)) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func ae (x) = getIntegerValue(this, z(x)) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func af (x) = k(w(x)) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func ag (x) = o(B(x)) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func ah (x) = k(y(x)) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func ai (x) = o(C(x)) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func aj (x,E) = k(D(x, E)) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func ak (x) = o(F(x)) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func al (x,E) = k(G(x, E)) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func am (x) = k(H(x)) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func an (x,J) = o(I(x, J)) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | @Callable(ao) | |
173 | 173 | func registerSupplier (ap) = { | |
174 | 174 | let t = toBase58String(ao.caller.bytes) | |
175 | 175 | let q = r(t) | |
176 | 176 | if ((q != a)) | |
177 | 177 | then throw("This address has already registred as supplier") | |
178 | 178 | else [StringEntry(p(t), ap)] | |
179 | 179 | } | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | ||
183 | 183 | @Callable(ao) | |
184 | 184 | func addItem (u,aq,ap,ar) = { | |
185 | 185 | let t = toBase58String(ao.caller.bytes) | |
186 | 186 | let q = r(t) | |
187 | 187 | let x = s(t, u) | |
188 | 188 | if ((q == a)) | |
189 | 189 | then throw("You should register as supplier to add an item") | |
190 | 190 | else if ((0 >= aq)) | |
191 | 191 | then throw("Purchase amount cannot be less than item price") | |
192 | 192 | else if ((af(x) != a)) | |
193 | 193 | then throw("An item already exists") | |
194 | 194 | else [StringEntry(w(x), t), StringEntry(y(x), u), IntegerEntry(z(x), aq), StringEntry(A(x), ap), IntegerEntry(B(x), ar)] | |
195 | 195 | } | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | ||
199 | 199 | @Callable(ao) | |
200 | 200 | func updateItem (x,u,aq,ap,ar) = { | |
201 | 201 | let t = toBase58String(ao.caller.bytes) | |
202 | 202 | let q = r(t) | |
203 | 203 | let as = af(x) | |
204 | 204 | if ((q == a)) | |
205 | 205 | then throw("You should register as supplier to remove an item") | |
206 | 206 | else if (if ((x == a)) | |
207 | 207 | then true | |
208 | 208 | else (t != as)) | |
209 | 209 | then throw(("You don't owned item " + x)) | |
210 | 210 | else [StringEntry(y(x), u), IntegerEntry(z(x), aq), StringEntry(A(x), ap), IntegerEntry(B(x), ar)] | |
211 | 211 | } | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | ||
215 | 215 | @Callable(ao) | |
216 | 216 | func removeItem (x) = { | |
217 | 217 | let t = toBase58String(ao.caller.bytes) | |
218 | 218 | let q = r(t) | |
219 | 219 | let as = af(x) | |
220 | 220 | if ((q == a)) | |
221 | 221 | then throw("You should register as supplier to remove an item") | |
222 | 222 | else if (if ((x == a)) | |
223 | 223 | then true | |
224 | 224 | else (t != as)) | |
225 | 225 | then throw(("You don't owned item " + x)) | |
226 | 226 | else [DeleteEntry(w(x)), DeleteEntry(y(x)), DeleteEntry(z(x)), DeleteEntry(A(x)), DeleteEntry(B(x))] | |
227 | 227 | } | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | ||
231 | 231 | @Callable(ao) | |
232 | - | func purchase (x | |
232 | + | func purchase (x) = { | |
233 | 233 | let at = ao.payments[0] | |
234 | 234 | if (isDefined(at.assetId)) | |
235 | 235 | then throw("You can buy tokens only with Waves tokens") | |
236 | 236 | else { | |
237 | 237 | let E = toBase58String(ao.caller.bytes) | |
238 | 238 | let aq = ae(x) | |
239 | 239 | let t = af(x) | |
240 | 240 | let ar = ag(x) | |
241 | 241 | if (if ((ar > 0)) | |
242 | 242 | then (lastBlock.timestamp >= ar) | |
243 | 243 | else false) | |
244 | 244 | then throw("Coupon expired") | |
245 | 245 | else if ((aq > at.amount)) | |
246 | 246 | then throw("Purchase amount cannot be less than item price") | |
247 | 247 | else if ((at.amount > aq)) | |
248 | 248 | then throw("Purchase amount cannot be higher than item price") | |
249 | 249 | else if ((t == a)) | |
250 | 250 | then throw("Supplier does not exists") | |
251 | 251 | else { | |
252 | 252 | let N = L(t, x, E) | |
253 | 253 | let au = M(N) | |
254 | 254 | let av = O(N) | |
255 | 255 | let aw = P(N) | |
256 | 256 | let ax = Q(N) | |
257 | 257 | let ay = R(N) | |
258 | 258 | let az = S(N) | |
259 | 259 | [StringEntry(au, h), StringEntry(av, x), StringEntry(aw, t), StringEntry(ax, E), IntegerEntry(ay, at.amount), IntegerEntry(az, lastBlock.timestamp)] | |
260 | 260 | } | |
261 | 261 | } | |
262 | 262 | } | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | ||
266 | 266 | @Callable(ao) | |
267 | 267 | func rejectPurchase (N) = { | |
268 | 268 | let aA = toBase58String(ao.caller.bytes) | |
269 | 269 | let aB = Y(N) | |
270 | 270 | let t = aa(N) | |
271 | 271 | let x = Z(N) | |
272 | 272 | if (if ((t == a)) | |
273 | 273 | then true | |
274 | 274 | else (aA != t)) | |
275 | 275 | then throw("Your are not the owner of this item") | |
276 | 276 | else if ((aB != h)) | |
277 | 277 | then throw("You cannot reject this purchased") | |
278 | 278 | else { | |
279 | 279 | let au = M(N) | |
280 | 280 | let ay = R(N) | |
281 | 281 | let aC = K(t) | |
282 | 282 | let aD = C(x) | |
283 | 283 | let E = ab(N) | |
284 | 284 | let aE = ac(N) | |
285 | 285 | let aF = (X(t) - aE) | |
286 | 286 | let aG = (ai(x) - 1) | |
287 | 287 | let aH = addressFromStringValue(E) | |
288 | 288 | [StringEntry(au, i), IntegerEntry(ay, 0), ScriptTransfer(aH, aE, unit)] | |
289 | 289 | } | |
290 | 290 | } | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | ||
294 | 294 | @Callable(ao) | |
295 | 295 | func acceptPurchase (N,aI) = { | |
296 | 296 | let aA = toBase58String(ao.caller.bytes) | |
297 | 297 | let aB = Y(N) | |
298 | 298 | let t = aa(N) | |
299 | 299 | let x = Z(N) | |
300 | 300 | let ar = ag(x) | |
301 | 301 | if (if ((t == a)) | |
302 | 302 | then true | |
303 | 303 | else (aA != t)) | |
304 | 304 | then throw("Your are not the owner of this item") | |
305 | 305 | else if ((aB != h)) | |
306 | 306 | then throw("You cannot reject this purchased") | |
307 | 307 | else if (if ((ar > 0)) | |
308 | 308 | then (lastBlock.timestamp >= ar) | |
309 | 309 | else false) | |
310 | 310 | then throw("Coupon expired") | |
311 | 311 | else { | |
312 | 312 | let au = M(N) | |
313 | 313 | let aC = K(t) | |
314 | 314 | let aD = C(x) | |
315 | 315 | let aE = ac(N) | |
316 | 316 | let aF = (X(t) + aE) | |
317 | 317 | let aG = (ai(x) + 1) | |
318 | 318 | let E = ab(N) | |
319 | 319 | let aH = addressFromStringValue(E) | |
320 | 320 | [IntegerEntry(aC, aF), IntegerEntry(aD, aG), ScriptTransfer(aH, 1, fromBase58String(aI))] | |
321 | 321 | } | |
322 | 322 | } | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | ||
326 | 326 | @Callable(ao) | |
327 | 327 | func voteCommit (x,aJ) = { | |
328 | 328 | let E = toBase58String(ao.caller.bytes) | |
329 | 329 | let aK = ak(x) | |
330 | 330 | let aB = am(x) | |
331 | 331 | if ((aK >= b)) | |
332 | 332 | then throw("Reached max number of voters") | |
333 | 333 | else if ((aj(x, E) != a)) | |
334 | 334 | then throw("You voted already") | |
335 | 335 | else if ((w(x) == a)) | |
336 | 336 | then throw("Item does not exists") | |
337 | 337 | else if (if ((aB != a)) | |
338 | 338 | then (aB != f) | |
339 | 339 | else false) | |
340 | 340 | then throw("Voting is not active for this item now") | |
341 | 341 | else { | |
342 | 342 | let aL = if ((aK == b)) | |
343 | 343 | then g | |
344 | 344 | else f | |
345 | 345 | [StringEntry(D(x, E), aJ), IntegerEntry(F(x), (aK + 1)), StringEntry(H(x), aL)] | |
346 | 346 | } | |
347 | 347 | } | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | ||
351 | 351 | @Callable(ao) | |
352 | 352 | func voteReveal (x,J,aM) = { | |
353 | 353 | let E = toBase58String(ao.caller.bytes) | |
354 | 354 | let aB = am(x) | |
355 | 355 | let aN = (an(x, J) + 1) | |
356 | 356 | let aO = toBase58String(sha256(toBytes(((x + J) + aM)))) | |
357 | 357 | if ((aO != aj(x, E))) | |
358 | 358 | then throw("Reveal data is not valid") | |
359 | 359 | else if ((b > ak(x))) | |
360 | 360 | then throw("Max number of voters not reached") | |
361 | 361 | else if ((al(x, E) != a)) | |
362 | 362 | then throw("You voted already") | |
363 | 363 | else if (if ((aB != f)) | |
364 | 364 | then (aB != g) | |
365 | 365 | else false) | |
366 | 366 | then throw("Voting is not active for this item now") | |
367 | 367 | else if (if ((J != d)) | |
368 | 368 | then (J != e) | |
369 | 369 | else false) | |
370 | 370 | then throw("Provided voting option is incorrect") | |
371 | 371 | else { | |
372 | 372 | let aL = if ((aN >= c)) | |
373 | 373 | then J | |
374 | 374 | else g | |
375 | 375 | [StringEntry(G(x, E), J), IntegerEntry(I(x, E), aN), StringEntry(H(x), aL)] | |
376 | 376 | } | |
377 | 377 | } | |
378 | 378 | ||
379 | 379 | ||
380 | 380 | @Verifier(aP) | |
381 | 381 | func aQ () = { | |
382 | 382 | let m = aP | |
383 | 383 | if ($isInstanceOf(m, "SetScriptTransaction")) | |
384 | 384 | then { | |
385 | 385 | let aR = m | |
386 | 386 | sigVerify(aP.bodyBytes, aP.proofs[0], aP.senderPublicKey) | |
387 | 387 | } | |
388 | 388 | else if ($isInstanceOf(m, "IssueTransaction")) | |
389 | 389 | then { | |
390 | 390 | let aR = m | |
391 | 391 | sigVerify(aP.bodyBytes, aP.proofs[0], aP.senderPublicKey) | |
392 | 392 | } | |
393 | 393 | else if ($isInstanceOf(m, "TransferTransaction")) | |
394 | 394 | then { | |
395 | 395 | let aR = m | |
396 | 396 | sigVerify(aP.bodyBytes, aP.proofs[0], aP.senderPublicKey) | |
397 | 397 | } | |
398 | 398 | else false | |
399 | 399 | } | |
400 | 400 |
github/deemru/w8io/026f985 47.28 ms ◑