tx · B1EpEemJ2uPWHsAihkrpgUGcruvJvphbio75UCZLPj3H

3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7:  -0.01400000 Waves

2021.08.03 04:37 [1641505] smart account 3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7 > SELF 0.00000000 Waves

{ "type": 13, "id": "B1EpEemJ2uPWHsAihkrpgUGcruvJvphbio75UCZLPj3H", "fee": 1400000, "feeAssetId": null, "timestamp": 1627954633900, "version": 2, "chainId": 84, "sender": "3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7", "senderPublicKey": "3tp5fNYyPi4jMnkf6s1k4kBqvJ7nm57SxzvLyi8RkxT2", "proofs": [ "KkXkBxbomCVfxMGD4qDz5dVA6r3Qd3Vm5xJ7QbXAvA567468oMEtpb5d8ZTQJkXUgbpxQBtaCk9zeEDbFRtaRBK" ], "script": "base64:AAIEAAAAAAAAADwIAhIDCgEIEgYKBAgBCAESBwoFCAgBCAESAwoBCBIDCgEIEgMKAQgSBAoCCAgSABIECgIICBIFCgMICAgAAAA8AAAAAAROT05FAgAAAAROT05FAAAAAAZWT1RFUlMAAAAAAAAAAAMAAAAABlFVT1JVTQAAAAAAAAAAAgAAAAAIRkVBVFVSRUQCAAAACGZlYXR1cmVkAAAAAAhERUxJU1RFRAIAAAAIZGVsaXN0ZWQAAAAABlZPVElORwIAAAAGdm90aW5nAAAAAAZSRVZFQUwCAAAABnJldmVhbAAAAAAIQVBQUk9WQUwCAAAACGFwcHJvdmFsAAAAAAhSRUpFQ1RFRAIAAAAIcmVqZWN0ZWQAAAAACEFDQ0VQVEVEAgAAAAhhY2NlcHRlZAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQUAAAAETk9ORQEAAAAPZ2V0SW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AAAgkBAAAAEGdldEtleVZvdGVzQ291bnQAAAACBQAAAARpdGVtBQAAAAR1c2VyBQAAAA1uZXdWb3Rlc0NvdW50CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAABBnZXRLZXlJdGVtU3RhdHVzAAAAAQUAAAAEaXRlbQUAAAAJbmV3U3RhdHVzBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABBJc3N1ZVRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkHK0JeEA==", "height": 1641505, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EVuzr7zjLCEckjE9DyT9dWqSYTfXLt7VfjeEENB7Q1CP Next: FPXzQ3tBxQwn7o7VenCya73YBcSJnYRjCZJvu7nE1mCQ Diff:
OldNewDifferences
9191 func K (t) = (t + "_balance")
9292
9393
94-func L (E,x) = (((E + "_") + x) + "_counter")
94+func L (t) = (t + "_available")
9595
9696
97-func M (t,x,E,N) = ("purchase_" + toBase58String(sha256(toBytes(((((((t + "_") + x) + "_") + E) + "_") + toString(N))))))
97+func M (E,x) = (((E + "_") + x) + "_counter")
9898
9999
100-func O (P) = (P + "_status")
100+func N (t,x,E,O) = ("purchase_" + toBase58String(sha256(toBytes(((((((t + "_") + x) + "_") + E) + "_") + toString(O))))))
101101
102102
103-func Q (P) = (P + "_item")
103+func P (Q) = (Q + "_status")
104104
105105
106-func R (P) = (P + "_supplier")
106+func R (Q) = (Q + "_item")
107107
108108
109-func S (P) = (P + "_user")
109+func S (Q) = (Q + "_supplier")
110110
111111
112-func T (P) = (P + "_amount")
112+func T (Q) = (Q + "_user")
113113
114114
115-func U (P) = (P + "_timestamp")
115+func U (Q) = (Q + "_amount")
116116
117117
118-func V (P) = (P + "_assetId")
118+func V (Q) = (Q + "_timestamp")
119119
120120
121-func W (X) = (("coupon_" + X) + "_purchase")
121+func W (Q) = (Q + "_assetId")
122122
123123
124-func Y (X) = (("coupon_" + X) + "_item")
124+func X (Y) = (("coupon_" + Y) + "_purchase")
125125
126126
127-func Z (t) = o(K(t))
127+func Z (Y) = (("coupon_" + Y) + "_item")
128128
129129
130-func aa (E,x) = o(L(E, x))
130+func aa (t) = o(K(t))
131131
132132
133-func ab (P) = k(O(P))
133+func ab (t) = o(L(t))
134134
135135
136-func ac (P) = getStringValue(this, Q(P))
136+func ac (E,x) = o(M(E, x))
137137
138138
139-func ad (P) = getStringValue(this, R(P))
139+func ad (Q) = k(P(Q))
140140
141141
142-func ae (P) = getStringValue(this, S(P))
142+func ae (Q) = getStringValue(this, R(Q))
143143
144144
145-func af (P) = getIntegerValue(this, T(P))
145+func af (Q) = getStringValue(this, S(Q))
146146
147147
148-func ag (P) = o(U(P))
148+func ag (Q) = getStringValue(this, T(Q))
149149
150150
151-func ah (P) = k(V(P))
151+func ah (Q) = getIntegerValue(this, U(Q))
152152
153153
154-func ai (x) = getIntegerValue(this, z(x))
154+func ai (Q) = o(V(Q))
155155
156156
157-func aj (x) = k(w(x))
157+func aj (Q) = k(W(Q))
158158
159159
160-func ak (x) = o(B(x))
160+func ak (x) = getIntegerValue(this, z(x))
161161
162162
163-func al (x) = k(y(x))
163+func al (x) = k(w(x))
164164
165165
166-func am (x) = o(C(x))
166+func am (x) = o(B(x))
167167
168168
169-func an (x,E) = k(D(x, E))
169+func an (x) = k(y(x))
170170
171171
172-func ao (x) = o(F(x))
172+func ao (x) = o(C(x))
173173
174174
175-func ap (x,E) = k(G(x, E))
175+func ap (Y) = k(X(Y))
176176
177177
178-func aq (x) = k(H(x))
178+func aq (x,E) = k(D(x, E))
179179
180180
181-func ar (x,J) = o(I(x, J))
181+func ar (x) = o(F(x))
182182
183183
184-@Callable(as)
185-func registerSupplier (at) = {
186- let t = toBase58String(as.caller.bytes)
184+func as (x,E) = k(G(x, E))
185+
186+
187+func at (x) = k(H(x))
188+
189+
190+func au (x,J) = o(I(x, J))
191+
192+
193+@Callable(av)
194+func registerSupplier (aw) = {
195+ let t = toBase58String(av.caller.bytes)
187196 let q = r(t)
188197 if ((q != a))
189198 then throw("This address has already registred as supplier")
190- else [StringEntry(p(t), at)]
199+ else [StringEntry(p(t), aw)]
191200 }
192201
193202
194203
195-@Callable(as)
196-func addItem (u,au,at,av) = {
197- let t = toBase58String(as.caller.bytes)
204+@Callable(av)
205+func addItem (u,ax,aw,ay) = {
206+ let t = toBase58String(av.caller.bytes)
198207 let q = r(t)
199208 let x = s(t, u)
200209 if ((q == a))
201210 then throw("You should register as supplier to add an item")
202- else if ((0 >= au))
211+ else if ((0 >= ax))
203212 then throw("Purchase amount cannot be less than item price")
204- else if ((aj(x) != a))
213+ else if ((al(x) != a))
205214 then throw("An item already exists")
206- else [StringEntry(w(x), t), StringEntry(y(x), u), IntegerEntry(z(x), au), StringEntry(A(x), at), IntegerEntry(B(x), av)]
215+ else [StringEntry(w(x), t), StringEntry(y(x), u), IntegerEntry(z(x), ax), StringEntry(A(x), aw), IntegerEntry(B(x), ay)]
207216 }
208217
209218
210219
211-@Callable(as)
212-func updateItem (x,u,au,at,av) = {
213- let t = toBase58String(as.caller.bytes)
220+@Callable(av)
221+func updateItem (x,u,ax,aw,ay) = {
222+ let t = toBase58String(av.caller.bytes)
214223 let q = r(t)
215- let aw = aj(x)
224+ let az = al(x)
216225 if ((q == a))
217226 then throw("You should register as supplier to remove an item")
218227 else if (if ((x == a))
219228 then true
220- else (t != aw))
229+ else (t != az))
221230 then throw(("You don't owned item " + x))
222- else [StringEntry(y(x), u), IntegerEntry(z(x), au), StringEntry(A(x), at), IntegerEntry(B(x), av)]
231+ else [StringEntry(y(x), u), IntegerEntry(z(x), ax), StringEntry(A(x), aw), IntegerEntry(B(x), ay)]
223232 }
224233
225234
226235
227-@Callable(as)
236+@Callable(av)
228237 func removeItem (x) = {
229- let t = toBase58String(as.caller.bytes)
238+ let t = toBase58String(av.caller.bytes)
230239 let q = r(t)
231- let aw = aj(x)
240+ let az = al(x)
232241 if ((q == a))
233242 then throw("You should register as supplier to remove an item")
234243 else if (if ((x == a))
235244 then true
236- else (t != aw))
245+ else (t != az))
237246 then throw(("You don't owned item " + x))
238247 else [DeleteEntry(w(x)), DeleteEntry(y(x)), DeleteEntry(z(x)), DeleteEntry(A(x)), DeleteEntry(B(x))]
239248 }
240249
241250
242251
243-@Callable(as)
252+@Callable(av)
244253 func purchase (x) = {
245- let ax = as.payments[0]
246- if (isDefined(ax.assetId))
254+ let aA = av.payments[0]
255+ if (isDefined(aA.assetId))
247256 then throw("You can buy tokens only with Waves tokens")
248257 else {
249- let E = toBase58String(as.caller.bytes)
250- let au = ai(x)
251- let t = aj(x)
252- let av = ak(x)
253- if (if ((av > 0))
254- then (lastBlock.timestamp >= av)
258+ let E = toBase58String(av.caller.bytes)
259+ let ax = ak(x)
260+ let t = al(x)
261+ let ay = am(x)
262+ if (if ((ay > 0))
263+ then (lastBlock.timestamp >= ay)
255264 else false)
256265 then throw("Coupon expired")
257- else if ((au > ax.amount))
266+ else if ((ax > aA.amount))
258267 then throw("Purchase amount cannot be less than item price")
259- else if ((ax.amount > au))
268+ else if ((aA.amount > ax))
260269 then throw("Purchase amount cannot be higher than item price")
261270 else if ((t == a))
262271 then throw("Supplier does not exists")
263272 else {
264- let ay = L(E, x)
265- let az = (aa(E, x) + 1)
266- let P = M(t, x, E, az)
267- let aA = O(P)
268- let aB = Q(P)
269- let aC = R(P)
270- let aD = S(P)
271- let aE = T(P)
272- let aF = U(P)
273-[IntegerEntry(ay, az), StringEntry(aA, h), StringEntry(aB, x), StringEntry(aC, t), StringEntry(aD, E), IntegerEntry(aE, ax.amount), IntegerEntry(aF, lastBlock.timestamp)]
273+ let aB = M(E, x)
274+ let aC = (ac(E, x) + 1)
275+ let Q = N(t, x, E, aC)
276+ let aD = P(Q)
277+ let aE = R(Q)
278+ let aF = S(Q)
279+ let aG = T(Q)
280+ let aH = U(Q)
281+ let aI = V(Q)
282+[IntegerEntry(aB, aC), StringEntry(aD, h), StringEntry(aE, x), StringEntry(aF, t), StringEntry(aG, E), IntegerEntry(aH, aA.amount), IntegerEntry(aI, lastBlock.timestamp)]
274283 }
275284 }
276285 }
277286
278287
279288
280-@Callable(as)
281-func rejectPurchase (P) = {
282- let aG = toBase58String(as.caller.bytes)
283- let aH = ab(P)
284- let t = ad(P)
285- let x = ac(P)
289+@Callable(av)
290+func rejectPurchase (Q) = {
291+ let aJ = toBase58String(av.caller.bytes)
292+ let aK = ad(Q)
293+ let t = af(Q)
294+ let x = ae(Q)
286295 if (if ((t == a))
287296 then true
288- else (aG != t))
297+ else (aJ != t))
289298 then throw("Your are not the owner of this item")
290- else if ((aH != h))
299+ else if ((aK != h))
291300 then throw("You cannot reject this purchased")
292301 else {
293- let aA = O(P)
294- let aE = T(P)
295- let aI = K(t)
296- let aJ = C(x)
297- let E = ae(P)
298- let aK = af(P)
299- let aL = (Z(t) - aK)
300- let aM = (am(x) - 1)
301- let aN = addressFromStringValue(E)
302-[StringEntry(aA, i), IntegerEntry(aE, 0), ScriptTransfer(aN, aK, unit)]
302+ let aD = P(Q)
303+ let aH = U(Q)
304+ let aL = K(t)
305+ let aM = C(x)
306+ let E = ag(Q)
307+ let aN = ah(Q)
308+ let aO = (aa(t) - aN)
309+ let aP = (ao(x) - 1)
310+ let aQ = addressFromStringValue(E)
311+[StringEntry(aD, i), IntegerEntry(aH, 0), ScriptTransfer(aQ, aN, unit)]
303312 }
304313 }
305314
306315
307316
308-@Callable(as)
309-func acceptPurchase (P,aO) = {
310- let aG = toBase58String(as.caller.bytes)
311- let aH = ab(P)
312- let t = ad(P)
313- let x = ac(P)
314- let av = ak(x)
317+@Callable(av)
318+func acceptPurchase (Q,aR) = {
319+ let aJ = toBase58String(av.caller.bytes)
320+ let aK = ad(Q)
321+ let t = af(Q)
322+ let x = ae(Q)
323+ let ay = am(x)
315324 if (if ((t == a))
316325 then true
317- else (aG != t))
326+ else (aJ != t))
318327 then throw("Your are not the owner of this item")
319- else if ((aH != h))
328+ else if ((aK != h))
320329 then throw("You cannot reject this purchased")
321330 else if ((x == a))
322331 then throw("Unexpected error [ tem not found ]")
323- else if (if ((av > 0))
324- then (lastBlock.timestamp >= av)
332+ else if (if ((ay > 0))
333+ then (lastBlock.timestamp >= ay)
325334 else false)
326335 then throw("Coupon expired")
327336 else {
328- let aA = O(P)
329- let aP = V(P)
330- let aI = K(t)
331- let aJ = C(x)
332- let aQ = W(aO)
333- let aR = Y(aO)
334- let aK = af(P)
335- let aL = (Z(t) + aK)
336- let aM = (am(x) + 1)
337- let E = ae(P)
338- let aN = addressFromStringValue(E)
339-[StringEntry(aA, j), StringEntry(aQ, P), StringEntry(aR, x), StringEntry(aP, aO), IntegerEntry(aI, aL), IntegerEntry(aJ, aM)]
337+ let aD = P(Q)
338+ let aS = W(Q)
339+ let aL = K(t)
340+ let aM = C(x)
341+ let aT = X(aR)
342+ let aU = Z(aR)
343+ let aN = ah(Q)
344+ let aO = (aa(t) + aN)
345+ let aP = (ao(x) + 1)
346+ let E = ag(Q)
347+ let aQ = addressFromStringValue(E)
348+[StringEntry(aD, j), StringEntry(aT, Q), StringEntry(aU, x), StringEntry(aS, aR), IntegerEntry(aL, aO), IntegerEntry(aM, aP)]
340349 }
341350 }
342351
343352
344353
345-@Callable(as)
346-func voteCommit (x,aS) = {
347- let E = toBase58String(as.caller.bytes)
348- let aT = ao(x)
349- let aH = aq(x)
350- if ((aT >= b))
354+@Callable(av)
355+func burn () = {
356+ let aJ = toBase58String(av.caller.bytes)
357+ let aA = av.payments[0]
358+ if ((isDefined(aA.assetId) == false))
359+ then throw("Need a coupon to burn")
360+ else {
361+ let Y = {
362+ let m = aA.assetId
363+ if ($isInstanceOf(m, "ByteVector"))
364+ then {
365+ let aV = m
366+ aV
367+ }
368+ else throw("Need a coupon to burn")
369+ }
370+ let aW = toBase58String(Y)
371+ let Q = ap(aW)
372+ let t = af(Q)
373+ if ((aJ != t))
374+ then throw("Your are not the supplier for this coupon")
375+ else {
376+ let aN = ah(Q)
377+ let aX = L(t)
378+ let aY = (ab(t) + aN)
379+[Burn(Y, 1), IntegerEntry(aX, aY)]
380+ }
381+ }
382+ }
383+
384+
385+
386+@Callable(av)
387+func voteCommit (x,aZ) = {
388+ let E = toBase58String(av.caller.bytes)
389+ let ba = ar(x)
390+ let aK = at(x)
391+ if ((ba >= b))
351392 then throw("Reached max number of voters")
352- else if ((an(x, E) != a))
393+ else if ((aq(x, E) != a))
353394 then throw("You voted already")
354395 else if ((w(x) == a))
355396 then throw("Item does not exists")
356- else if (if ((aH != a))
357- then (aH != f)
397+ else if (if ((aK != a))
398+ then (aK != f)
358399 else false)
359400 then throw("Voting is not active for this item now")
360401 else {
361- let aU = if ((aT == b))
402+ let bb = if ((ba == b))
362403 then g
363404 else f
364-[StringEntry(D(x, E), aS), IntegerEntry(F(x), (aT + 1)), StringEntry(H(x), aU)]
405+[StringEntry(D(x, E), aZ), IntegerEntry(F(x), (ba + 1)), StringEntry(H(x), bb)]
365406 }
366407 }
367408
368409
369410
370-@Callable(as)
371-func voteReveal (x,J,aV) = {
372- let E = toBase58String(as.caller.bytes)
373- let aH = aq(x)
374- let aW = (ar(x, J) + 1)
375- let aX = toBase58String(sha256(toBytes(((x + J) + aV))))
376- if ((aX != an(x, E)))
411+@Callable(av)
412+func voteReveal (x,J,bc) = {
413+ let E = toBase58String(av.caller.bytes)
414+ let aK = at(x)
415+ let bd = (au(x, J) + 1)
416+ let be = toBase58String(sha256(toBytes(((x + J) + bc))))
417+ if ((be != aq(x, E)))
377418 then throw("Reveal data is not valid")
378- else if ((b > ao(x)))
419+ else if ((b > ar(x)))
379420 then throw("Max number of voters not reached")
380- else if ((ap(x, E) != a))
421+ else if ((as(x, E) != a))
381422 then throw("You voted already")
382- else if (if ((aH != f))
383- then (aH != g)
423+ else if (if ((aK != f))
424+ then (aK != g)
384425 else false)
385426 then throw("Voting is not active for this item now")
386427 else if (if ((J != d))
388429 else false)
389430 then throw("Provided voting option is incorrect")
390431 else {
391- let aU = if ((aW >= c))
432+ let bb = if ((bd >= c))
392433 then J
393434 else g
394-[StringEntry(G(x, E), J), IntegerEntry(I(x, E), aW), StringEntry(H(x), aU)]
435+[StringEntry(G(x, E), J), IntegerEntry(I(x, E), bd), StringEntry(H(x), bb)]
395436 }
396437 }
397438
398439
399-@Verifier(aY)
400-func aZ () = {
401- let m = aY
440+@Verifier(bf)
441+func bg () = {
442+ let m = bf
402443 if ($isInstanceOf(m, "SetScriptTransaction"))
403444 then {
404- let ba = m
405- sigVerify(aY.bodyBytes, aY.proofs[0], aY.senderPublicKey)
445+ let bh = m
446+ sigVerify(bf.bodyBytes, bf.proofs[0], bf.senderPublicKey)
406447 }
407448 else if ($isInstanceOf(m, "IssueTransaction"))
408449 then {
409- let ba = m
410- sigVerify(aY.bodyBytes, aY.proofs[0], aY.senderPublicKey)
450+ let bh = m
451+ sigVerify(bf.bodyBytes, bf.proofs[0], bf.senderPublicKey)
411452 }
412453 else if ($isInstanceOf(m, "TransferTransaction"))
413454 then {
414- let ba = m
415- sigVerify(aY.bodyBytes, aY.proofs[0], aY.senderPublicKey)
455+ let bh = m
456+ sigVerify(bf.bodyBytes, bf.proofs[0], bf.senderPublicKey)
416457 }
417458 else false
418459 }
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
94-func L (E,x) = (((E + "_") + x) + "_counter")
94+func L (t) = (t + "_available")
9595
9696
97-func M (t,x,E,N) = ("purchase_" + toBase58String(sha256(toBytes(((((((t + "_") + x) + "_") + E) + "_") + toString(N))))))
97+func M (E,x) = (((E + "_") + x) + "_counter")
9898
9999
100-func O (P) = (P + "_status")
100+func N (t,x,E,O) = ("purchase_" + toBase58String(sha256(toBytes(((((((t + "_") + x) + "_") + E) + "_") + toString(O))))))
101101
102102
103-func Q (P) = (P + "_item")
103+func P (Q) = (Q + "_status")
104104
105105
106-func R (P) = (P + "_supplier")
106+func R (Q) = (Q + "_item")
107107
108108
109-func S (P) = (P + "_user")
109+func S (Q) = (Q + "_supplier")
110110
111111
112-func T (P) = (P + "_amount")
112+func T (Q) = (Q + "_user")
113113
114114
115-func U (P) = (P + "_timestamp")
115+func U (Q) = (Q + "_amount")
116116
117117
118-func V (P) = (P + "_assetId")
118+func V (Q) = (Q + "_timestamp")
119119
120120
121-func W (X) = (("coupon_" + X) + "_purchase")
121+func W (Q) = (Q + "_assetId")
122122
123123
124-func Y (X) = (("coupon_" + X) + "_item")
124+func X (Y) = (("coupon_" + Y) + "_purchase")
125125
126126
127-func Z (t) = o(K(t))
127+func Z (Y) = (("coupon_" + Y) + "_item")
128128
129129
130-func aa (E,x) = o(L(E, x))
130+func aa (t) = o(K(t))
131131
132132
133-func ab (P) = k(O(P))
133+func ab (t) = o(L(t))
134134
135135
136-func ac (P) = getStringValue(this, Q(P))
136+func ac (E,x) = o(M(E, x))
137137
138138
139-func ad (P) = getStringValue(this, R(P))
139+func ad (Q) = k(P(Q))
140140
141141
142-func ae (P) = getStringValue(this, S(P))
142+func ae (Q) = getStringValue(this, R(Q))
143143
144144
145-func af (P) = getIntegerValue(this, T(P))
145+func af (Q) = getStringValue(this, S(Q))
146146
147147
148-func ag (P) = o(U(P))
148+func ag (Q) = getStringValue(this, T(Q))
149149
150150
151-func ah (P) = k(V(P))
151+func ah (Q) = getIntegerValue(this, U(Q))
152152
153153
154-func ai (x) = getIntegerValue(this, z(x))
154+func ai (Q) = o(V(Q))
155155
156156
157-func aj (x) = k(w(x))
157+func aj (Q) = k(W(Q))
158158
159159
160-func ak (x) = o(B(x))
160+func ak (x) = getIntegerValue(this, z(x))
161161
162162
163-func al (x) = k(y(x))
163+func al (x) = k(w(x))
164164
165165
166-func am (x) = o(C(x))
166+func am (x) = o(B(x))
167167
168168
169-func an (x,E) = k(D(x, E))
169+func an (x) = k(y(x))
170170
171171
172-func ao (x) = o(F(x))
172+func ao (x) = o(C(x))
173173
174174
175-func ap (x,E) = k(G(x, E))
175+func ap (Y) = k(X(Y))
176176
177177
178-func aq (x) = k(H(x))
178+func aq (x,E) = k(D(x, E))
179179
180180
181-func ar (x,J) = o(I(x, J))
181+func ar (x) = o(F(x))
182182
183183
184-@Callable(as)
185-func registerSupplier (at) = {
186- let t = toBase58String(as.caller.bytes)
184+func as (x,E) = k(G(x, E))
185+
186+
187+func at (x) = k(H(x))
188+
189+
190+func au (x,J) = o(I(x, J))
191+
192+
193+@Callable(av)
194+func registerSupplier (aw) = {
195+ let t = toBase58String(av.caller.bytes)
187196 let q = r(t)
188197 if ((q != a))
189198 then throw("This address has already registred as supplier")
190- else [StringEntry(p(t), at)]
199+ else [StringEntry(p(t), aw)]
191200 }
192201
193202
194203
195-@Callable(as)
196-func addItem (u,au,at,av) = {
197- let t = toBase58String(as.caller.bytes)
204+@Callable(av)
205+func addItem (u,ax,aw,ay) = {
206+ let t = toBase58String(av.caller.bytes)
198207 let q = r(t)
199208 let x = s(t, u)
200209 if ((q == a))
201210 then throw("You should register as supplier to add an item")
202- else if ((0 >= au))
211+ else if ((0 >= ax))
203212 then throw("Purchase amount cannot be less than item price")
204- else if ((aj(x) != a))
213+ else if ((al(x) != a))
205214 then throw("An item already exists")
206- else [StringEntry(w(x), t), StringEntry(y(x), u), IntegerEntry(z(x), au), StringEntry(A(x), at), IntegerEntry(B(x), av)]
215+ else [StringEntry(w(x), t), StringEntry(y(x), u), IntegerEntry(z(x), ax), StringEntry(A(x), aw), IntegerEntry(B(x), ay)]
207216 }
208217
209218
210219
211-@Callable(as)
212-func updateItem (x,u,au,at,av) = {
213- let t = toBase58String(as.caller.bytes)
220+@Callable(av)
221+func updateItem (x,u,ax,aw,ay) = {
222+ let t = toBase58String(av.caller.bytes)
214223 let q = r(t)
215- let aw = aj(x)
224+ let az = al(x)
216225 if ((q == a))
217226 then throw("You should register as supplier to remove an item")
218227 else if (if ((x == a))
219228 then true
220- else (t != aw))
229+ else (t != az))
221230 then throw(("You don't owned item " + x))
222- else [StringEntry(y(x), u), IntegerEntry(z(x), au), StringEntry(A(x), at), IntegerEntry(B(x), av)]
231+ else [StringEntry(y(x), u), IntegerEntry(z(x), ax), StringEntry(A(x), aw), IntegerEntry(B(x), ay)]
223232 }
224233
225234
226235
227-@Callable(as)
236+@Callable(av)
228237 func removeItem (x) = {
229- let t = toBase58String(as.caller.bytes)
238+ let t = toBase58String(av.caller.bytes)
230239 let q = r(t)
231- let aw = aj(x)
240+ let az = al(x)
232241 if ((q == a))
233242 then throw("You should register as supplier to remove an item")
234243 else if (if ((x == a))
235244 then true
236- else (t != aw))
245+ else (t != az))
237246 then throw(("You don't owned item " + x))
238247 else [DeleteEntry(w(x)), DeleteEntry(y(x)), DeleteEntry(z(x)), DeleteEntry(A(x)), DeleteEntry(B(x))]
239248 }
240249
241250
242251
243-@Callable(as)
252+@Callable(av)
244253 func purchase (x) = {
245- let ax = as.payments[0]
246- if (isDefined(ax.assetId))
254+ let aA = av.payments[0]
255+ if (isDefined(aA.assetId))
247256 then throw("You can buy tokens only with Waves tokens")
248257 else {
249- let E = toBase58String(as.caller.bytes)
250- let au = ai(x)
251- let t = aj(x)
252- let av = ak(x)
253- if (if ((av > 0))
254- then (lastBlock.timestamp >= av)
258+ let E = toBase58String(av.caller.bytes)
259+ let ax = ak(x)
260+ let t = al(x)
261+ let ay = am(x)
262+ if (if ((ay > 0))
263+ then (lastBlock.timestamp >= ay)
255264 else false)
256265 then throw("Coupon expired")
257- else if ((au > ax.amount))
266+ else if ((ax > aA.amount))
258267 then throw("Purchase amount cannot be less than item price")
259- else if ((ax.amount > au))
268+ else if ((aA.amount > ax))
260269 then throw("Purchase amount cannot be higher than item price")
261270 else if ((t == a))
262271 then throw("Supplier does not exists")
263272 else {
264- let ay = L(E, x)
265- let az = (aa(E, x) + 1)
266- let P = M(t, x, E, az)
267- let aA = O(P)
268- let aB = Q(P)
269- let aC = R(P)
270- let aD = S(P)
271- let aE = T(P)
272- let aF = U(P)
273-[IntegerEntry(ay, az), StringEntry(aA, h), StringEntry(aB, x), StringEntry(aC, t), StringEntry(aD, E), IntegerEntry(aE, ax.amount), IntegerEntry(aF, lastBlock.timestamp)]
273+ let aB = M(E, x)
274+ let aC = (ac(E, x) + 1)
275+ let Q = N(t, x, E, aC)
276+ let aD = P(Q)
277+ let aE = R(Q)
278+ let aF = S(Q)
279+ let aG = T(Q)
280+ let aH = U(Q)
281+ let aI = V(Q)
282+[IntegerEntry(aB, aC), StringEntry(aD, h), StringEntry(aE, x), StringEntry(aF, t), StringEntry(aG, E), IntegerEntry(aH, aA.amount), IntegerEntry(aI, lastBlock.timestamp)]
274283 }
275284 }
276285 }
277286
278287
279288
280-@Callable(as)
281-func rejectPurchase (P) = {
282- let aG = toBase58String(as.caller.bytes)
283- let aH = ab(P)
284- let t = ad(P)
285- let x = ac(P)
289+@Callable(av)
290+func rejectPurchase (Q) = {
291+ let aJ = toBase58String(av.caller.bytes)
292+ let aK = ad(Q)
293+ let t = af(Q)
294+ let x = ae(Q)
286295 if (if ((t == a))
287296 then true
288- else (aG != t))
297+ else (aJ != t))
289298 then throw("Your are not the owner of this item")
290- else if ((aH != h))
299+ else if ((aK != h))
291300 then throw("You cannot reject this purchased")
292301 else {
293- let aA = O(P)
294- let aE = T(P)
295- let aI = K(t)
296- let aJ = C(x)
297- let E = ae(P)
298- let aK = af(P)
299- let aL = (Z(t) - aK)
300- let aM = (am(x) - 1)
301- let aN = addressFromStringValue(E)
302-[StringEntry(aA, i), IntegerEntry(aE, 0), ScriptTransfer(aN, aK, unit)]
302+ let aD = P(Q)
303+ let aH = U(Q)
304+ let aL = K(t)
305+ let aM = C(x)
306+ let E = ag(Q)
307+ let aN = ah(Q)
308+ let aO = (aa(t) - aN)
309+ let aP = (ao(x) - 1)
310+ let aQ = addressFromStringValue(E)
311+[StringEntry(aD, i), IntegerEntry(aH, 0), ScriptTransfer(aQ, aN, unit)]
303312 }
304313 }
305314
306315
307316
308-@Callable(as)
309-func acceptPurchase (P,aO) = {
310- let aG = toBase58String(as.caller.bytes)
311- let aH = ab(P)
312- let t = ad(P)
313- let x = ac(P)
314- let av = ak(x)
317+@Callable(av)
318+func acceptPurchase (Q,aR) = {
319+ let aJ = toBase58String(av.caller.bytes)
320+ let aK = ad(Q)
321+ let t = af(Q)
322+ let x = ae(Q)
323+ let ay = am(x)
315324 if (if ((t == a))
316325 then true
317- else (aG != t))
326+ else (aJ != t))
318327 then throw("Your are not the owner of this item")
319- else if ((aH != h))
328+ else if ((aK != h))
320329 then throw("You cannot reject this purchased")
321330 else if ((x == a))
322331 then throw("Unexpected error [ tem not found ]")
323- else if (if ((av > 0))
324- then (lastBlock.timestamp >= av)
332+ else if (if ((ay > 0))
333+ then (lastBlock.timestamp >= ay)
325334 else false)
326335 then throw("Coupon expired")
327336 else {
328- let aA = O(P)
329- let aP = V(P)
330- let aI = K(t)
331- let aJ = C(x)
332- let aQ = W(aO)
333- let aR = Y(aO)
334- let aK = af(P)
335- let aL = (Z(t) + aK)
336- let aM = (am(x) + 1)
337- let E = ae(P)
338- let aN = addressFromStringValue(E)
339-[StringEntry(aA, j), StringEntry(aQ, P), StringEntry(aR, x), StringEntry(aP, aO), IntegerEntry(aI, aL), IntegerEntry(aJ, aM)]
337+ let aD = P(Q)
338+ let aS = W(Q)
339+ let aL = K(t)
340+ let aM = C(x)
341+ let aT = X(aR)
342+ let aU = Z(aR)
343+ let aN = ah(Q)
344+ let aO = (aa(t) + aN)
345+ let aP = (ao(x) + 1)
346+ let E = ag(Q)
347+ let aQ = addressFromStringValue(E)
348+[StringEntry(aD, j), StringEntry(aT, Q), StringEntry(aU, x), StringEntry(aS, aR), IntegerEntry(aL, aO), IntegerEntry(aM, aP)]
340349 }
341350 }
342351
343352
344353
345-@Callable(as)
346-func voteCommit (x,aS) = {
347- let E = toBase58String(as.caller.bytes)
348- let aT = ao(x)
349- let aH = aq(x)
350- if ((aT >= b))
354+@Callable(av)
355+func burn () = {
356+ let aJ = toBase58String(av.caller.bytes)
357+ let aA = av.payments[0]
358+ if ((isDefined(aA.assetId) == false))
359+ then throw("Need a coupon to burn")
360+ else {
361+ let Y = {
362+ let m = aA.assetId
363+ if ($isInstanceOf(m, "ByteVector"))
364+ then {
365+ let aV = m
366+ aV
367+ }
368+ else throw("Need a coupon to burn")
369+ }
370+ let aW = toBase58String(Y)
371+ let Q = ap(aW)
372+ let t = af(Q)
373+ if ((aJ != t))
374+ then throw("Your are not the supplier for this coupon")
375+ else {
376+ let aN = ah(Q)
377+ let aX = L(t)
378+ let aY = (ab(t) + aN)
379+[Burn(Y, 1), IntegerEntry(aX, aY)]
380+ }
381+ }
382+ }
383+
384+
385+
386+@Callable(av)
387+func voteCommit (x,aZ) = {
388+ let E = toBase58String(av.caller.bytes)
389+ let ba = ar(x)
390+ let aK = at(x)
391+ if ((ba >= b))
351392 then throw("Reached max number of voters")
352- else if ((an(x, E) != a))
393+ else if ((aq(x, E) != a))
353394 then throw("You voted already")
354395 else if ((w(x) == a))
355396 then throw("Item does not exists")
356- else if (if ((aH != a))
357- then (aH != f)
397+ else if (if ((aK != a))
398+ then (aK != f)
358399 else false)
359400 then throw("Voting is not active for this item now")
360401 else {
361- let aU = if ((aT == b))
402+ let bb = if ((ba == b))
362403 then g
363404 else f
364-[StringEntry(D(x, E), aS), IntegerEntry(F(x), (aT + 1)), StringEntry(H(x), aU)]
405+[StringEntry(D(x, E), aZ), IntegerEntry(F(x), (ba + 1)), StringEntry(H(x), bb)]
365406 }
366407 }
367408
368409
369410
370-@Callable(as)
371-func voteReveal (x,J,aV) = {
372- let E = toBase58String(as.caller.bytes)
373- let aH = aq(x)
374- let aW = (ar(x, J) + 1)
375- let aX = toBase58String(sha256(toBytes(((x + J) + aV))))
376- if ((aX != an(x, E)))
411+@Callable(av)
412+func voteReveal (x,J,bc) = {
413+ let E = toBase58String(av.caller.bytes)
414+ let aK = at(x)
415+ let bd = (au(x, J) + 1)
416+ let be = toBase58String(sha256(toBytes(((x + J) + bc))))
417+ if ((be != aq(x, E)))
377418 then throw("Reveal data is not valid")
378- else if ((b > ao(x)))
419+ else if ((b > ar(x)))
379420 then throw("Max number of voters not reached")
380- else if ((ap(x, E) != a))
421+ else if ((as(x, E) != a))
381422 then throw("You voted already")
382- else if (if ((aH != f))
383- then (aH != g)
423+ else if (if ((aK != f))
424+ then (aK != g)
384425 else false)
385426 then throw("Voting is not active for this item now")
386427 else if (if ((J != d))
387428 then (J != e)
388429 else false)
389430 then throw("Provided voting option is incorrect")
390431 else {
391- let aU = if ((aW >= c))
432+ let bb = if ((bd >= c))
392433 then J
393434 else g
394-[StringEntry(G(x, E), J), IntegerEntry(I(x, E), aW), StringEntry(H(x), aU)]
435+[StringEntry(G(x, E), J), IntegerEntry(I(x, E), bd), StringEntry(H(x), bb)]
395436 }
396437 }
397438
398439
399-@Verifier(aY)
400-func aZ () = {
401- let m = aY
440+@Verifier(bf)
441+func bg () = {
442+ let m = bf
402443 if ($isInstanceOf(m, "SetScriptTransaction"))
403444 then {
404- let ba = m
405- sigVerify(aY.bodyBytes, aY.proofs[0], aY.senderPublicKey)
445+ let bh = m
446+ sigVerify(bf.bodyBytes, bf.proofs[0], bf.senderPublicKey)
406447 }
407448 else if ($isInstanceOf(m, "IssueTransaction"))
408449 then {
409- let ba = m
410- sigVerify(aY.bodyBytes, aY.proofs[0], aY.senderPublicKey)
450+ let bh = m
451+ sigVerify(bf.bodyBytes, bf.proofs[0], bf.senderPublicKey)
411452 }
412453 else if ($isInstanceOf(m, "TransferTransaction"))
413454 then {
414- let ba = m
415- sigVerify(aY.bodyBytes, aY.proofs[0], aY.senderPublicKey)
455+ let bh = m
456+ sigVerify(bf.bodyBytes, bf.proofs[0], bf.senderPublicKey)
416457 }
417458 else false
418459 }
419460

github/deemru/w8io/169f3d6 
133.97 ms