tx · ErLZKPsS2yFuuFFBBLKyibzhrzBoPbCigYLrABfrnhr9

3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7:  -0.01400000 Waves

2021.08.02 17:14 [1640821] smart account 3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7 > SELF 0.00000000 Waves

{ "type": 13, "id": "ErLZKPsS2yFuuFFBBLKyibzhrzBoPbCigYLrABfrnhr9", "fee": 1400000, "feeAssetId": null, "timestamp": 1627913695700, "version": 2, "chainId": 84, "sender": "3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7", "senderPublicKey": "3tp5fNYyPi4jMnkf6s1k4kBqvJ7nm57SxzvLyi8RkxT2", "proofs": [ "4ZcUEm8zTLWr6GL8BieBUdVb4QdHdTV9iP27vVzE7WJDCFEHLtwLxB8UBaHmLe8eX87oEQLyKar7Yobjug24apKR" ], "script": "base64:AAIEAAAAAAAAADkIAhIDCgEIEgYKBAgBCAESBwoFCAgBCAESAwoBCBIDCgEIEgMKAQgSAwoBCBIECgIICBIFCgMICAgAAAA3AAAAAAROT05FAgAAAAROT05FAAAAAAZWT1RFUlMAAAAAAAAAAAMAAAAABlFVT1JVTQAAAAAAAAAAAgAAAAAIRkVBVFVSRUQCAAAACGZlYXR1cmVkAAAAAAhERUxJU1RFRAIAAAAIZGVsaXN0ZWQAAAAABlZPVElORwIAAAAGdm90aW5nAAAAAAZSRVZFQUwCAAAABnJldmVhbAAAAAAIQVBQUk9WQUwCAAAACGFwcHJvdmFsAAAAAAhSRUpFQ1RFRAIAAAAIcmVqZWN0ZWQAAAAACEFDQ0VQVEVEAgAAAAhhY2NlcHRlZAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQUAAAAETk9ORQEAAAAPZ2V0SW50Z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AAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5B4A1V84=", "height": 1640821, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7D7FdnNhqE7tLfxXZX3ZJHoMrVt7UdHCeTRTBSn7aTWb Next: 4gToKbsJEKEGMMreUjCt2doApnvAthjzUwF6aT8tw6YC Diff:
OldNewDifferences
300300
301301
302302 @Callable(ar)
303-func acceptPurchase (P,aN) = {
303+func acceptPurchase (P) = {
304304 let aF = toBase58String(ar.caller.bytes)
305305 let aG = ab(P)
306306 let t = ad(P)
325325 let aL = (al(x) + 1)
326326 let E = ae(P)
327327 let aM = addressFromStringValue(E)
328-[IntegerEntry(aH, aK), IntegerEntry(aI, aL), ScriptTransfer(aM, 1, fromBase58String(aN))]
328+[IntegerEntry(aH, aK), IntegerEntry(aI, aL)]
329329 }
330330 }
331331
332332
333333
334334 @Callable(ar)
335-func voteCommit (x,aO) = {
335+func voteCommit (x,aN) = {
336336 let E = toBase58String(ar.caller.bytes)
337- let aP = an(x)
337+ let aO = an(x)
338338 let aG = ap(x)
339- if ((aP >= b))
339+ if ((aO >= b))
340340 then throw("Reached max number of voters")
341341 else if ((am(x, E) != a))
342342 then throw("You voted already")
347347 else false)
348348 then throw("Voting is not active for this item now")
349349 else {
350- let aQ = if ((aP == b))
350+ let aP = if ((aO == b))
351351 then g
352352 else f
353-[StringEntry(D(x, E), aO), IntegerEntry(F(x), (aP + 1)), StringEntry(H(x), aQ)]
353+[StringEntry(D(x, E), aN), IntegerEntry(F(x), (aO + 1)), StringEntry(H(x), aP)]
354354 }
355355 }
356356
357357
358358
359359 @Callable(ar)
360-func voteReveal (x,J,aR) = {
360+func voteReveal (x,J,aQ) = {
361361 let E = toBase58String(ar.caller.bytes)
362362 let aG = ap(x)
363- let aS = (aq(x, J) + 1)
364- let aT = toBase58String(sha256(toBytes(((x + J) + aR))))
365- if ((aT != am(x, E)))
363+ let aR = (aq(x, J) + 1)
364+ let aS = toBase58String(sha256(toBytes(((x + J) + aQ))))
365+ if ((aS != am(x, E)))
366366 then throw("Reveal data is not valid")
367367 else if ((b > an(x)))
368368 then throw("Max number of voters not reached")
377377 else false)
378378 then throw("Provided voting option is incorrect")
379379 else {
380- let aQ = if ((aS >= c))
380+ let aP = if ((aR >= c))
381381 then J
382382 else g
383-[StringEntry(G(x, E), J), IntegerEntry(I(x, E), aS), StringEntry(H(x), aQ)]
383+[StringEntry(G(x, E), J), IntegerEntry(I(x, E), aR), StringEntry(H(x), aP)]
384384 }
385385 }
386386
387387
388-@Verifier(aU)
389-func aV () = {
390- let m = aU
388+@Verifier(aT)
389+func aU () = {
390+ let m = aT
391391 if ($isInstanceOf(m, "SetScriptTransaction"))
392392 then {
393- let aW = m
394- sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey)
393+ let aV = m
394+ sigVerify(aT.bodyBytes, aT.proofs[0], aT.senderPublicKey)
395395 }
396396 else if ($isInstanceOf(m, "IssueTransaction"))
397397 then {
398- let aW = m
399- sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey)
398+ let aV = m
399+ sigVerify(aT.bodyBytes, aT.proofs[0], aT.senderPublicKey)
400400 }
401401 else if ($isInstanceOf(m, "TransferTransaction"))
402402 then {
403- let aW = m
404- sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey)
403+ let aV = m
404+ sigVerify(aT.bodyBytes, aT.proofs[0], aT.senderPublicKey)
405405 }
406406 else false
407407 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "NONE"
55
66 let b = 3
77
88 let c = 2
99
1010 let d = "featured"
1111
1212 let e = "delisted"
1313
1414 let f = "voting"
1515
1616 let g = "reveal"
1717
1818 let h = "approval"
1919
2020 let i = "rejected"
2121
2222 let j = "accepted"
2323
2424 func k (l) = {
2525 let m = getString(this, l)
2626 if ($isInstanceOf(m, "String"))
2727 then {
2828 let n = m
2929 n
3030 }
3131 else a
3232 }
3333
3434
3535 func o (l) = {
3636 let m = getInteger(this, l)
3737 if ($isInstanceOf(m, "Int"))
3838 then {
3939 let n = m
4040 n
4141 }
4242 else 0
4343 }
4444
4545
4646 func p (q) = (q + "_account")
4747
4848
4949 func r (q) = k(p(q))
5050
5151
5252 func s (t,u) = {
5353 let v = (t + u)
5454 ("item_" + toBase58String(sha256(toBytes(v))))
5555 }
5656
5757
5858 func w (x) = (x + "_owner")
5959
6060
6161 func y (x) = (x + "_title")
6262
6363
6464 func z (x) = (x + "_price")
6565
6666
6767 func A (x) = (x + "_data")
6868
6969
7070 func B (x) = (x + "_expiredate")
7171
7272
7373 func C (x) = (x + "_sold")
7474
7575
7676 func D (x,E) = (((x + "_") + E) + "_commit")
7777
7878
7979 func F (x) = (x + "_cmtcnt")
8080
8181
8282 func G (x,E) = (((x + "_") + E) + "_reveal")
8383
8484
8585 func H (x) = (x + "_status")
8686
8787
8888 func I (x,J) = ((x + "_res:") + J)
8989
9090
9191 func K (t) = (t + "_balance")
9292
9393
9494 func L (E,x) = (((E + "_") + x) + "_counter")
9595
9696
9797 func M (t,x,E,N) = ("purchase_" + toBase58String(sha256(toBytes(((((((t + "_") + x) + "_") + E) + "_") + toString(N))))))
9898
9999
100100 func O (P) = (P + "_status")
101101
102102
103103 func Q (P) = (P + "_item")
104104
105105
106106 func R (P) = (P + "_supplier")
107107
108108
109109 func S (P) = (P + "_user")
110110
111111
112112 func T (P) = (P + "_amount")
113113
114114
115115 func U (P) = (P + "_timestamp")
116116
117117
118118 func V (W) = ("coupon_" + W)
119119
120120
121121 func X (Y) = (Y + "_item")
122122
123123
124124 func Z (t) = o(K(t))
125125
126126
127127 func aa (E,x) = o(L(E, x))
128128
129129
130130 func ab (P) = k(O(P))
131131
132132
133133 func ac (P) = getStringValue(this, Q(P))
134134
135135
136136 func ad (P) = getStringValue(this, R(P))
137137
138138
139139 func ae (P) = getStringValue(this, S(P))
140140
141141
142142 func af (P) = getIntegerValue(this, T(P))
143143
144144
145145 func ag (P) = o(U(P))
146146
147147
148148 func ah (x) = getIntegerValue(this, z(x))
149149
150150
151151 func ai (x) = k(w(x))
152152
153153
154154 func aj (x) = o(B(x))
155155
156156
157157 func ak (x) = k(y(x))
158158
159159
160160 func al (x) = o(C(x))
161161
162162
163163 func am (x,E) = k(D(x, E))
164164
165165
166166 func an (x) = o(F(x))
167167
168168
169169 func ao (x,E) = k(G(x, E))
170170
171171
172172 func ap (x) = k(H(x))
173173
174174
175175 func aq (x,J) = o(I(x, J))
176176
177177
178178 @Callable(ar)
179179 func registerSupplier (as) = {
180180 let t = toBase58String(ar.caller.bytes)
181181 let q = r(t)
182182 if ((q != a))
183183 then throw("This address has already registred as supplier")
184184 else [StringEntry(p(t), as)]
185185 }
186186
187187
188188
189189 @Callable(ar)
190190 func addItem (u,at,as,au) = {
191191 let t = toBase58String(ar.caller.bytes)
192192 let q = r(t)
193193 let x = s(t, u)
194194 if ((q == a))
195195 then throw("You should register as supplier to add an item")
196196 else if ((0 >= at))
197197 then throw("Purchase amount cannot be less than item price")
198198 else if ((ai(x) != a))
199199 then throw("An item already exists")
200200 else [StringEntry(w(x), t), StringEntry(y(x), u), IntegerEntry(z(x), at), StringEntry(A(x), as), IntegerEntry(B(x), au)]
201201 }
202202
203203
204204
205205 @Callable(ar)
206206 func updateItem (x,u,at,as,au) = {
207207 let t = toBase58String(ar.caller.bytes)
208208 let q = r(t)
209209 let av = ai(x)
210210 if ((q == a))
211211 then throw("You should register as supplier to remove an item")
212212 else if (if ((x == a))
213213 then true
214214 else (t != av))
215215 then throw(("You don't owned item " + x))
216216 else [StringEntry(y(x), u), IntegerEntry(z(x), at), StringEntry(A(x), as), IntegerEntry(B(x), au)]
217217 }
218218
219219
220220
221221 @Callable(ar)
222222 func removeItem (x) = {
223223 let t = toBase58String(ar.caller.bytes)
224224 let q = r(t)
225225 let av = ai(x)
226226 if ((q == a))
227227 then throw("You should register as supplier to remove an item")
228228 else if (if ((x == a))
229229 then true
230230 else (t != av))
231231 then throw(("You don't owned item " + x))
232232 else [DeleteEntry(w(x)), DeleteEntry(y(x)), DeleteEntry(z(x)), DeleteEntry(A(x)), DeleteEntry(B(x))]
233233 }
234234
235235
236236
237237 @Callable(ar)
238238 func purchase (x) = {
239239 let aw = ar.payments[0]
240240 if (isDefined(aw.assetId))
241241 then throw("You can buy tokens only with Waves tokens")
242242 else {
243243 let E = toBase58String(ar.caller.bytes)
244244 let at = ah(x)
245245 let t = ai(x)
246246 let au = aj(x)
247247 if (if ((au > 0))
248248 then (lastBlock.timestamp >= au)
249249 else false)
250250 then throw("Coupon expired")
251251 else if ((at > aw.amount))
252252 then throw("Purchase amount cannot be less than item price")
253253 else if ((aw.amount > at))
254254 then throw("Purchase amount cannot be higher than item price")
255255 else if ((t == a))
256256 then throw("Supplier does not exists")
257257 else {
258258 let ax = L(E, x)
259259 let ay = (aa(E, x) + 1)
260260 let P = M(t, x, E, ay)
261261 let az = O(P)
262262 let aA = Q(P)
263263 let aB = R(P)
264264 let aC = S(P)
265265 let aD = T(P)
266266 let aE = U(P)
267267 [IntegerEntry(ax, ay), StringEntry(az, h), StringEntry(aA, x), StringEntry(aB, t), StringEntry(aC, E), IntegerEntry(aD, aw.amount), IntegerEntry(aE, lastBlock.timestamp)]
268268 }
269269 }
270270 }
271271
272272
273273
274274 @Callable(ar)
275275 func rejectPurchase (P) = {
276276 let aF = toBase58String(ar.caller.bytes)
277277 let aG = ab(P)
278278 let t = ad(P)
279279 let x = ac(P)
280280 if (if ((t == a))
281281 then true
282282 else (aF != t))
283283 then throw("Your are not the owner of this item")
284284 else if ((aG != h))
285285 then throw("You cannot reject this purchased")
286286 else {
287287 let az = O(P)
288288 let aD = T(P)
289289 let aH = K(t)
290290 let aI = C(x)
291291 let E = ae(P)
292292 let aJ = af(P)
293293 let aK = (Z(t) - aJ)
294294 let aL = (al(x) - 1)
295295 let aM = addressFromStringValue(E)
296296 [StringEntry(az, i), IntegerEntry(aD, 0), ScriptTransfer(aM, aJ, unit)]
297297 }
298298 }
299299
300300
301301
302302 @Callable(ar)
303-func acceptPurchase (P,aN) = {
303+func acceptPurchase (P) = {
304304 let aF = toBase58String(ar.caller.bytes)
305305 let aG = ab(P)
306306 let t = ad(P)
307307 let x = ac(P)
308308 let au = aj(x)
309309 if (if ((t == a))
310310 then true
311311 else (aF != t))
312312 then throw("Your are not the owner of this item")
313313 else if ((aG != h))
314314 then throw("You cannot reject this purchased")
315315 else if (if ((au > 0))
316316 then (lastBlock.timestamp >= au)
317317 else false)
318318 then throw("Coupon expired")
319319 else {
320320 let az = O(P)
321321 let aH = K(t)
322322 let aI = C(x)
323323 let aJ = af(P)
324324 let aK = (Z(t) + aJ)
325325 let aL = (al(x) + 1)
326326 let E = ae(P)
327327 let aM = addressFromStringValue(E)
328-[IntegerEntry(aH, aK), IntegerEntry(aI, aL), ScriptTransfer(aM, 1, fromBase58String(aN))]
328+[IntegerEntry(aH, aK), IntegerEntry(aI, aL)]
329329 }
330330 }
331331
332332
333333
334334 @Callable(ar)
335-func voteCommit (x,aO) = {
335+func voteCommit (x,aN) = {
336336 let E = toBase58String(ar.caller.bytes)
337- let aP = an(x)
337+ let aO = an(x)
338338 let aG = ap(x)
339- if ((aP >= b))
339+ if ((aO >= b))
340340 then throw("Reached max number of voters")
341341 else if ((am(x, E) != a))
342342 then throw("You voted already")
343343 else if ((w(x) == a))
344344 then throw("Item does not exists")
345345 else if (if ((aG != a))
346346 then (aG != f)
347347 else false)
348348 then throw("Voting is not active for this item now")
349349 else {
350- let aQ = if ((aP == b))
350+ let aP = if ((aO == b))
351351 then g
352352 else f
353-[StringEntry(D(x, E), aO), IntegerEntry(F(x), (aP + 1)), StringEntry(H(x), aQ)]
353+[StringEntry(D(x, E), aN), IntegerEntry(F(x), (aO + 1)), StringEntry(H(x), aP)]
354354 }
355355 }
356356
357357
358358
359359 @Callable(ar)
360-func voteReveal (x,J,aR) = {
360+func voteReveal (x,J,aQ) = {
361361 let E = toBase58String(ar.caller.bytes)
362362 let aG = ap(x)
363- let aS = (aq(x, J) + 1)
364- let aT = toBase58String(sha256(toBytes(((x + J) + aR))))
365- if ((aT != am(x, E)))
363+ let aR = (aq(x, J) + 1)
364+ let aS = toBase58String(sha256(toBytes(((x + J) + aQ))))
365+ if ((aS != am(x, E)))
366366 then throw("Reveal data is not valid")
367367 else if ((b > an(x)))
368368 then throw("Max number of voters not reached")
369369 else if ((ao(x, E) != a))
370370 then throw("You voted already")
371371 else if (if ((aG != f))
372372 then (aG != g)
373373 else false)
374374 then throw("Voting is not active for this item now")
375375 else if (if ((J != d))
376376 then (J != e)
377377 else false)
378378 then throw("Provided voting option is incorrect")
379379 else {
380- let aQ = if ((aS >= c))
380+ let aP = if ((aR >= c))
381381 then J
382382 else g
383-[StringEntry(G(x, E), J), IntegerEntry(I(x, E), aS), StringEntry(H(x), aQ)]
383+[StringEntry(G(x, E), J), IntegerEntry(I(x, E), aR), StringEntry(H(x), aP)]
384384 }
385385 }
386386
387387
388-@Verifier(aU)
389-func aV () = {
390- let m = aU
388+@Verifier(aT)
389+func aU () = {
390+ let m = aT
391391 if ($isInstanceOf(m, "SetScriptTransaction"))
392392 then {
393- let aW = m
394- sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey)
393+ let aV = m
394+ sigVerify(aT.bodyBytes, aT.proofs[0], aT.senderPublicKey)
395395 }
396396 else if ($isInstanceOf(m, "IssueTransaction"))
397397 then {
398- let aW = m
399- sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey)
398+ let aV = m
399+ sigVerify(aT.bodyBytes, aT.proofs[0], aT.senderPublicKey)
400400 }
401401 else if ($isInstanceOf(m, "TransferTransaction"))
402402 then {
403- let aW = m
404- sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey)
403+ let aV = m
404+ sigVerify(aT.bodyBytes, aT.proofs[0], aT.senderPublicKey)
405405 }
406406 else false
407407 }
408408

github/deemru/w8io/169f3d6 
55.25 ms