tx · 5n9u3MMwMgLhRkpGoPjB2Hh9W8WnqnxTCDiPSPx3STwc

3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7:  -0.01400000 Waves

2021.08.02 15:05 [1640689] smart account 3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7 > SELF 0.00000000 Waves

{ "type": 13, "id": "5n9u3MMwMgLhRkpGoPjB2Hh9W8WnqnxTCDiPSPx3STwc", "fee": 1400000, "feeAssetId": null, "timestamp": 1627905928400, "version": 2, "chainId": 84, "sender": "3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7", "senderPublicKey": "3tp5fNYyPi4jMnkf6s1k4kBqvJ7nm57SxzvLyi8RkxT2", "proofs": [ "4VudLvSVSvgpFpJau14RvW7yTYiiwvi5F9X39SQtqGWyYx3VALvB9eZVAqEXg62UXCd12tuB4EJFhdDBY2tkA4sQ" ], "script": "base64:AAIEAAAAAAAAADoIAhIDCgEIEgYKBAgBCAESBwoFCAgBCAESAwoBCBIDCgEIEgMKAQgSBAoCCAgSBAoCCAgSBQoDCAgIAAAANwAAAAAETk9ORQIAAAAETk9ORQAAAAAGVk9URVJTAAAAAAAAAAADAAAAAAZRVU9SVU0AAAAAAAAAAAIAAAAACEZFQVRVUkVEAgAAAAhmZWF0dXJlZAAAAAAIREVMSVNURUQCAAAACGRlbGlzdGVkAAAAAAZWT1RJTkcCAAAABnZvdGluZwAAAAAGUkVWRUFMAgAAAAZyZXZlYWwAAAAACEFQUFJPVkFMAgAAAAhhcHByb3ZhbAAAAAAIUkVKRUNURUQCAAAACHJlamVjdGVkAAAAAAhBQ0NFUFRFRAIAAAAIYWNjZXB0ZWQBAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUBAAA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24EAAAAAXQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQdHum7h", "height": 1640689, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Ca54uLDM9RY2i7g3QrdYDWAomvZQEQaZjoMJoBvyRCzR Next: 5q7WMnPQNVy6wNTAZQzTuUdATLE3DQfCGBpHqEKbxsx6 Diff:
OldNewDifferences
9191 func K (t) = (t + "_balance")
9292
9393
94-func L (t,x,E) = ("purchase_" + toBase58String(sha256(toBytes(((((t + "_") + x) + "_") + E)))))
94+func L (E,x) = (((E + "_") + x) + "_counter")
9595
9696
97-func M (N) = (N + "_status")
97+func M (t,x,E,N) = ("purchase_" + toBase58String(sha256(toBytes(((((((t + "_") + x) + "_") + E) + "_") + toString(N))))))
9898
9999
100-func O (N) = (N + "_item")
100+func O (P) = (P + "_status")
101101
102102
103-func P (N) = (N + "_supplier")
103+func Q (P) = (P + "_item")
104104
105105
106-func Q (N) = (N + "_user")
106+func R (P) = (P + "_supplier")
107107
108108
109-func R (N) = (N + "_amount")
109+func S (P) = (P + "_user")
110110
111111
112-func S (N) = (N + "_timestamp")
112+func T (P) = (P + "_amount")
113113
114114
115-func T (U) = ("coupon_" + U)
115+func U (P) = (P + "_timestamp")
116116
117117
118-func V (W) = (W + "_item")
118+func V (W) = ("coupon_" + W)
119119
120120
121-func X (t) = o(K(t))
121+func X (Y) = (Y + "_item")
122122
123123
124-func Y (N) = k(M(N))
124+func Z (t) = o(K(t))
125125
126126
127-func Z (N) = getStringValue(this, O(N))
127+func aa (E,x) = o(L(E, x))
128128
129129
130-func aa (N) = getStringValue(this, P(N))
130+func ab (P) = k(O(P))
131131
132132
133-func ab (N) = getStringValue(this, Q(N))
133+func ac (P) = getStringValue(this, Q(P))
134134
135135
136-func ac (N) = getIntegerValue(this, R(N))
136+func ad (P) = getStringValue(this, R(P))
137137
138138
139-func ad (N) = o(S(N))
139+func ae (P) = getStringValue(this, S(P))
140140
141141
142-func ae (x) = getIntegerValue(this, z(x))
142+func af (P) = getIntegerValue(this, T(P))
143143
144144
145-func af (x) = k(w(x))
145+func ag (P) = o(U(P))
146146
147147
148-func ag (x) = o(B(x))
148+func ah (x) = getIntegerValue(this, z(x))
149149
150150
151-func ah (x) = k(y(x))
151+func ai (x) = k(w(x))
152152
153153
154-func ai (x) = o(C(x))
154+func aj (x) = o(B(x))
155155
156156
157-func aj (x,E) = k(D(x, E))
157+func ak (x) = k(y(x))
158158
159159
160-func ak (x) = o(F(x))
160+func al (x) = o(C(x))
161161
162162
163-func al (x,E) = k(G(x, E))
163+func am (x,E) = k(D(x, E))
164164
165165
166-func am (x) = k(H(x))
166+func an (x) = o(F(x))
167167
168168
169-func an (x,J) = o(I(x, J))
169+func ao (x,E) = k(G(x, E))
170170
171171
172-@Callable(ao)
173-func registerSupplier (ap) = {
174- let t = toBase58String(ao.caller.bytes)
172+func ap (x) = k(H(x))
173+
174+
175+func aq (x,J) = o(I(x, J))
176+
177+
178+@Callable(ar)
179+func registerSupplier (as) = {
180+ let t = toBase58String(ar.caller.bytes)
175181 let q = r(t)
176182 if ((q != a))
177183 then throw("This address has already registred as supplier")
178- else [StringEntry(p(t), ap)]
184+ else [StringEntry(p(t), as)]
179185 }
180186
181187
182188
183-@Callable(ao)
184-func addItem (u,aq,ap,ar) = {
185- let t = toBase58String(ao.caller.bytes)
189+@Callable(ar)
190+func addItem (u,at,as,au) = {
191+ let t = toBase58String(ar.caller.bytes)
186192 let q = r(t)
187193 let x = s(t, u)
188194 if ((q == a))
189195 then throw("You should register as supplier to add an item")
190- else if ((0 >= aq))
196+ else if ((0 >= at))
191197 then throw("Purchase amount cannot be less than item price")
192- else if ((af(x) != a))
198+ else if ((ai(x) != a))
193199 then throw("An item already exists")
194- else [StringEntry(w(x), t), StringEntry(y(x), u), IntegerEntry(z(x), aq), StringEntry(A(x), ap), IntegerEntry(B(x), ar)]
200+ else [StringEntry(w(x), t), StringEntry(y(x), u), IntegerEntry(z(x), at), StringEntry(A(x), as), IntegerEntry(B(x), au)]
195201 }
196202
197203
198204
199-@Callable(ao)
200-func updateItem (x,u,aq,ap,ar) = {
201- let t = toBase58String(ao.caller.bytes)
205+@Callable(ar)
206+func updateItem (x,u,at,as,au) = {
207+ let t = toBase58String(ar.caller.bytes)
202208 let q = r(t)
203- let as = af(x)
209+ let av = ai(x)
204210 if ((q == a))
205211 then throw("You should register as supplier to remove an item")
206212 else if (if ((x == a))
207213 then true
208- else (t != as))
214+ else (t != av))
209215 then throw(("You don't owned item " + x))
210- else [StringEntry(y(x), u), IntegerEntry(z(x), aq), StringEntry(A(x), ap), IntegerEntry(B(x), ar)]
216+ else [StringEntry(y(x), u), IntegerEntry(z(x), at), StringEntry(A(x), as), IntegerEntry(B(x), au)]
211217 }
212218
213219
214220
215-@Callable(ao)
221+@Callable(ar)
216222 func removeItem (x) = {
217- let t = toBase58String(ao.caller.bytes)
223+ let t = toBase58String(ar.caller.bytes)
218224 let q = r(t)
219- let as = af(x)
225+ let av = ai(x)
220226 if ((q == a))
221227 then throw("You should register as supplier to remove an item")
222228 else if (if ((x == a))
223229 then true
224- else (t != as))
230+ else (t != av))
225231 then throw(("You don't owned item " + x))
226232 else [DeleteEntry(w(x)), DeleteEntry(y(x)), DeleteEntry(z(x)), DeleteEntry(A(x)), DeleteEntry(B(x))]
227233 }
228234
229235
230236
231-@Callable(ao)
237+@Callable(ar)
232238 func purchase (x) = {
233- let at = ao.payments[0]
234- if (isDefined(at.assetId))
239+ let aw = ar.payments[0]
240+ if (isDefined(aw.assetId))
235241 then throw("You can buy tokens only with Waves tokens")
236242 else {
237- let E = toBase58String(ao.caller.bytes)
238- let aq = ae(x)
239- let t = af(x)
240- let ar = ag(x)
241- if (if ((ar > 0))
242- then (lastBlock.timestamp >= ar)
243+ let E = toBase58String(ar.caller.bytes)
244+ let at = ah(x)
245+ let t = ai(x)
246+ let au = aj(x)
247+ if (if ((au > 0))
248+ then (lastBlock.timestamp >= au)
243249 else false)
244250 then throw("Coupon expired")
245- else if ((aq > at.amount))
251+ else if ((at > aw.amount))
246252 then throw("Purchase amount cannot be less than item price")
247- else if ((at.amount > aq))
253+ else if ((aw.amount > at))
248254 then throw("Purchase amount cannot be higher than item price")
249255 else if ((t == a))
250256 then throw("Supplier does not exists")
251257 else {
252- let N = L(t, x, E)
253- let au = M(N)
254- let av = O(N)
255- let aw = P(N)
256- let ax = Q(N)
257- let ay = R(N)
258- let az = S(N)
259-[StringEntry(au, h), StringEntry(av, x), StringEntry(aw, t), StringEntry(ax, E), IntegerEntry(ay, at.amount), IntegerEntry(az, lastBlock.timestamp)]
258+ let ax = L(E, x)
259+ let ay = (aa(E, x) + 1)
260+ let P = M(t, x, E, ay)
261+ let az = O(P)
262+ let aA = Q(P)
263+ let aB = R(P)
264+ let aC = S(P)
265+ let aD = T(P)
266+ let aE = U(P)
267+[IntegerEntry(ax, ay), StringEntry(az, h), StringEntry(aA, x), StringEntry(aB, t), StringEntry(aC, E), IntegerEntry(aD, aw.amount), IntegerEntry(aE, lastBlock.timestamp)]
260268 }
261269 }
262270 }
263271
264272
265273
266-@Callable(ao)
267-func rejectPurchase (N) = {
268- let aA = toBase58String(ao.caller.bytes)
269- let aB = Y(N)
270- let t = aa(N)
271- let x = Z(N)
274+@Callable(ar)
275+func rejectPurchase (P) = {
276+ let aF = toBase58String(ar.caller.bytes)
277+ let aG = ab(P)
278+ let t = ad(P)
279+ let x = ac(P)
272280 if (if ((t == a))
273281 then true
274- else (aA != t))
282+ else (aF != t))
275283 then throw("Your are not the owner of this item")
276- else if ((aB != h))
284+ else if ((aG != h))
277285 then throw("You cannot reject this purchased")
278286 else {
279- let au = M(N)
280- let ay = R(N)
281- let aC = K(t)
282- let aD = C(x)
283- let E = ab(N)
284- let aE = ac(N)
285- let aF = (X(t) - aE)
286- let aG = (ai(x) - 1)
287- let aH = addressFromStringValue(E)
288-[StringEntry(au, i), IntegerEntry(ay, 0), ScriptTransfer(aH, aE, unit)]
287+ let az = O(P)
288+ let aD = T(P)
289+ let aH = K(t)
290+ let aI = C(x)
291+ let E = ae(P)
292+ let aJ = af(P)
293+ let aK = (Z(t) - aJ)
294+ let aL = (al(x) - 1)
295+ let aM = addressFromStringValue(E)
296+[StringEntry(az, i), IntegerEntry(aD, 0), ScriptTransfer(aM, aJ, unit)]
289297 }
290298 }
291299
292300
293301
294-@Callable(ao)
295-func acceptPurchase (N,aI) = {
296- let aA = toBase58String(ao.caller.bytes)
297- let aB = Y(N)
298- let t = aa(N)
299- let x = Z(N)
300- let ar = ag(x)
302+@Callable(ar)
303+func acceptPurchase (P,aN) = {
304+ let aF = toBase58String(ar.caller.bytes)
305+ let aG = ab(P)
306+ let t = ad(P)
307+ let x = ac(P)
308+ let au = aj(x)
301309 if (if ((t == a))
302310 then true
303- else (aA != t))
311+ else (aF != t))
304312 then throw("Your are not the owner of this item")
305- else if ((aB != h))
313+ else if ((aG != h))
306314 then throw("You cannot reject this purchased")
307- else if (if ((ar > 0))
308- then (lastBlock.timestamp >= ar)
315+ else if (if ((au > 0))
316+ then (lastBlock.timestamp >= au)
309317 else false)
310318 then throw("Coupon expired")
311319 else {
312- let au = M(N)
313- let aC = K(t)
314- let aD = C(x)
315- let aE = ac(N)
316- let aF = (X(t) + aE)
317- let aG = (ai(x) + 1)
318- let E = ab(N)
319- let aH = addressFromStringValue(E)
320-[IntegerEntry(aC, aF), IntegerEntry(aD, aG), ScriptTransfer(aH, 1, fromBase58String(aI))]
320+ let az = O(P)
321+ let aH = K(t)
322+ let aI = C(x)
323+ let aJ = af(P)
324+ let aK = (Z(t) + aJ)
325+ let aL = (al(x) + 1)
326+ let E = ae(P)
327+ let aM = addressFromStringValue(E)
328+[IntegerEntry(aH, aK), IntegerEntry(aI, aL), ScriptTransfer(aM, 1, fromBase58String(aN))]
321329 }
322330 }
323331
324332
325333
326-@Callable(ao)
327-func voteCommit (x,aJ) = {
328- let E = toBase58String(ao.caller.bytes)
329- let aK = ak(x)
330- let aB = am(x)
331- if ((aK >= b))
334+@Callable(ar)
335+func voteCommit (x,aO) = {
336+ let E = toBase58String(ar.caller.bytes)
337+ let aP = an(x)
338+ let aG = ap(x)
339+ if ((aP >= b))
332340 then throw("Reached max number of voters")
333- else if ((aj(x, E) != a))
341+ else if ((am(x, E) != a))
334342 then throw("You voted already")
335343 else if ((w(x) == a))
336344 then throw("Item does not exists")
337- else if (if ((aB != a))
338- then (aB != f)
345+ else if (if ((aG != a))
346+ then (aG != f)
339347 else false)
340348 then throw("Voting is not active for this item now")
341349 else {
342- let aL = if ((aK == b))
350+ let aQ = if ((aP == b))
343351 then g
344352 else f
345-[StringEntry(D(x, E), aJ), IntegerEntry(F(x), (aK + 1)), StringEntry(H(x), aL)]
353+[StringEntry(D(x, E), aO), IntegerEntry(F(x), (aP + 1)), StringEntry(H(x), aQ)]
346354 }
347355 }
348356
349357
350358
351-@Callable(ao)
352-func voteReveal (x,J,aM) = {
353- let E = toBase58String(ao.caller.bytes)
354- let aB = am(x)
355- let aN = (an(x, J) + 1)
356- let aO = toBase58String(sha256(toBytes(((x + J) + aM))))
357- if ((aO != aj(x, E)))
359+@Callable(ar)
360+func voteReveal (x,J,aR) = {
361+ let E = toBase58String(ar.caller.bytes)
362+ 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)))
358366 then throw("Reveal data is not valid")
359- else if ((b > ak(x)))
367+ else if ((b > an(x)))
360368 then throw("Max number of voters not reached")
361- else if ((al(x, E) != a))
369+ else if ((ao(x, E) != a))
362370 then throw("You voted already")
363- else if (if ((aB != f))
364- then (aB != g)
371+ else if (if ((aG != f))
372+ then (aG != g)
365373 else false)
366374 then throw("Voting is not active for this item now")
367375 else if (if ((J != d))
369377 else false)
370378 then throw("Provided voting option is incorrect")
371379 else {
372- let aL = if ((aN >= c))
380+ let aQ = if ((aS >= c))
373381 then J
374382 else g
375-[StringEntry(G(x, E), J), IntegerEntry(I(x, E), aN), StringEntry(H(x), aL)]
383+[StringEntry(G(x, E), J), IntegerEntry(I(x, E), aS), StringEntry(H(x), aQ)]
376384 }
377385 }
378386
379387
380-@Verifier(aP)
381-func aQ () = {
382- let m = aP
388+@Verifier(aU)
389+func aV () = {
390+ let m = aU
383391 if ($isInstanceOf(m, "SetScriptTransaction"))
384392 then {
385- let aR = m
386- sigVerify(aP.bodyBytes, aP.proofs[0], aP.senderPublicKey)
393+ let aW = m
394+ sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey)
387395 }
388396 else if ($isInstanceOf(m, "IssueTransaction"))
389397 then {
390- let aR = m
391- sigVerify(aP.bodyBytes, aP.proofs[0], aP.senderPublicKey)
398+ let aW = m
399+ sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey)
392400 }
393401 else if ($isInstanceOf(m, "TransferTransaction"))
394402 then {
395- let aR = m
396- sigVerify(aP.bodyBytes, aP.proofs[0], aP.senderPublicKey)
403+ let aW = m
404+ sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey)
397405 }
398406 else false
399407 }
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 (t,x,E) = ("purchase_" + toBase58String(sha256(toBytes(((((t + "_") + x) + "_") + E)))))
94+func L (E,x) = (((E + "_") + x) + "_counter")
9595
9696
97-func M (N) = (N + "_status")
97+func M (t,x,E,N) = ("purchase_" + toBase58String(sha256(toBytes(((((((t + "_") + x) + "_") + E) + "_") + toString(N))))))
9898
9999
100-func O (N) = (N + "_item")
100+func O (P) = (P + "_status")
101101
102102
103-func P (N) = (N + "_supplier")
103+func Q (P) = (P + "_item")
104104
105105
106-func Q (N) = (N + "_user")
106+func R (P) = (P + "_supplier")
107107
108108
109-func R (N) = (N + "_amount")
109+func S (P) = (P + "_user")
110110
111111
112-func S (N) = (N + "_timestamp")
112+func T (P) = (P + "_amount")
113113
114114
115-func T (U) = ("coupon_" + U)
115+func U (P) = (P + "_timestamp")
116116
117117
118-func V (W) = (W + "_item")
118+func V (W) = ("coupon_" + W)
119119
120120
121-func X (t) = o(K(t))
121+func X (Y) = (Y + "_item")
122122
123123
124-func Y (N) = k(M(N))
124+func Z (t) = o(K(t))
125125
126126
127-func Z (N) = getStringValue(this, O(N))
127+func aa (E,x) = o(L(E, x))
128128
129129
130-func aa (N) = getStringValue(this, P(N))
130+func ab (P) = k(O(P))
131131
132132
133-func ab (N) = getStringValue(this, Q(N))
133+func ac (P) = getStringValue(this, Q(P))
134134
135135
136-func ac (N) = getIntegerValue(this, R(N))
136+func ad (P) = getStringValue(this, R(P))
137137
138138
139-func ad (N) = o(S(N))
139+func ae (P) = getStringValue(this, S(P))
140140
141141
142-func ae (x) = getIntegerValue(this, z(x))
142+func af (P) = getIntegerValue(this, T(P))
143143
144144
145-func af (x) = k(w(x))
145+func ag (P) = o(U(P))
146146
147147
148-func ag (x) = o(B(x))
148+func ah (x) = getIntegerValue(this, z(x))
149149
150150
151-func ah (x) = k(y(x))
151+func ai (x) = k(w(x))
152152
153153
154-func ai (x) = o(C(x))
154+func aj (x) = o(B(x))
155155
156156
157-func aj (x,E) = k(D(x, E))
157+func ak (x) = k(y(x))
158158
159159
160-func ak (x) = o(F(x))
160+func al (x) = o(C(x))
161161
162162
163-func al (x,E) = k(G(x, E))
163+func am (x,E) = k(D(x, E))
164164
165165
166-func am (x) = k(H(x))
166+func an (x) = o(F(x))
167167
168168
169-func an (x,J) = o(I(x, J))
169+func ao (x,E) = k(G(x, E))
170170
171171
172-@Callable(ao)
173-func registerSupplier (ap) = {
174- let t = toBase58String(ao.caller.bytes)
172+func ap (x) = k(H(x))
173+
174+
175+func aq (x,J) = o(I(x, J))
176+
177+
178+@Callable(ar)
179+func registerSupplier (as) = {
180+ let t = toBase58String(ar.caller.bytes)
175181 let q = r(t)
176182 if ((q != a))
177183 then throw("This address has already registred as supplier")
178- else [StringEntry(p(t), ap)]
184+ else [StringEntry(p(t), as)]
179185 }
180186
181187
182188
183-@Callable(ao)
184-func addItem (u,aq,ap,ar) = {
185- let t = toBase58String(ao.caller.bytes)
189+@Callable(ar)
190+func addItem (u,at,as,au) = {
191+ let t = toBase58String(ar.caller.bytes)
186192 let q = r(t)
187193 let x = s(t, u)
188194 if ((q == a))
189195 then throw("You should register as supplier to add an item")
190- else if ((0 >= aq))
196+ else if ((0 >= at))
191197 then throw("Purchase amount cannot be less than item price")
192- else if ((af(x) != a))
198+ else if ((ai(x) != a))
193199 then throw("An item already exists")
194- else [StringEntry(w(x), t), StringEntry(y(x), u), IntegerEntry(z(x), aq), StringEntry(A(x), ap), IntegerEntry(B(x), ar)]
200+ else [StringEntry(w(x), t), StringEntry(y(x), u), IntegerEntry(z(x), at), StringEntry(A(x), as), IntegerEntry(B(x), au)]
195201 }
196202
197203
198204
199-@Callable(ao)
200-func updateItem (x,u,aq,ap,ar) = {
201- let t = toBase58String(ao.caller.bytes)
205+@Callable(ar)
206+func updateItem (x,u,at,as,au) = {
207+ let t = toBase58String(ar.caller.bytes)
202208 let q = r(t)
203- let as = af(x)
209+ let av = ai(x)
204210 if ((q == a))
205211 then throw("You should register as supplier to remove an item")
206212 else if (if ((x == a))
207213 then true
208- else (t != as))
214+ else (t != av))
209215 then throw(("You don't owned item " + x))
210- else [StringEntry(y(x), u), IntegerEntry(z(x), aq), StringEntry(A(x), ap), IntegerEntry(B(x), ar)]
216+ else [StringEntry(y(x), u), IntegerEntry(z(x), at), StringEntry(A(x), as), IntegerEntry(B(x), au)]
211217 }
212218
213219
214220
215-@Callable(ao)
221+@Callable(ar)
216222 func removeItem (x) = {
217- let t = toBase58String(ao.caller.bytes)
223+ let t = toBase58String(ar.caller.bytes)
218224 let q = r(t)
219- let as = af(x)
225+ let av = ai(x)
220226 if ((q == a))
221227 then throw("You should register as supplier to remove an item")
222228 else if (if ((x == a))
223229 then true
224- else (t != as))
230+ else (t != av))
225231 then throw(("You don't owned item " + x))
226232 else [DeleteEntry(w(x)), DeleteEntry(y(x)), DeleteEntry(z(x)), DeleteEntry(A(x)), DeleteEntry(B(x))]
227233 }
228234
229235
230236
231-@Callable(ao)
237+@Callable(ar)
232238 func purchase (x) = {
233- let at = ao.payments[0]
234- if (isDefined(at.assetId))
239+ let aw = ar.payments[0]
240+ if (isDefined(aw.assetId))
235241 then throw("You can buy tokens only with Waves tokens")
236242 else {
237- let E = toBase58String(ao.caller.bytes)
238- let aq = ae(x)
239- let t = af(x)
240- let ar = ag(x)
241- if (if ((ar > 0))
242- then (lastBlock.timestamp >= ar)
243+ let E = toBase58String(ar.caller.bytes)
244+ let at = ah(x)
245+ let t = ai(x)
246+ let au = aj(x)
247+ if (if ((au > 0))
248+ then (lastBlock.timestamp >= au)
243249 else false)
244250 then throw("Coupon expired")
245- else if ((aq > at.amount))
251+ else if ((at > aw.amount))
246252 then throw("Purchase amount cannot be less than item price")
247- else if ((at.amount > aq))
253+ else if ((aw.amount > at))
248254 then throw("Purchase amount cannot be higher than item price")
249255 else if ((t == a))
250256 then throw("Supplier does not exists")
251257 else {
252- let N = L(t, x, E)
253- let au = M(N)
254- let av = O(N)
255- let aw = P(N)
256- let ax = Q(N)
257- let ay = R(N)
258- let az = S(N)
259-[StringEntry(au, h), StringEntry(av, x), StringEntry(aw, t), StringEntry(ax, E), IntegerEntry(ay, at.amount), IntegerEntry(az, lastBlock.timestamp)]
258+ let ax = L(E, x)
259+ let ay = (aa(E, x) + 1)
260+ let P = M(t, x, E, ay)
261+ let az = O(P)
262+ let aA = Q(P)
263+ let aB = R(P)
264+ let aC = S(P)
265+ let aD = T(P)
266+ let aE = U(P)
267+[IntegerEntry(ax, ay), StringEntry(az, h), StringEntry(aA, x), StringEntry(aB, t), StringEntry(aC, E), IntegerEntry(aD, aw.amount), IntegerEntry(aE, lastBlock.timestamp)]
260268 }
261269 }
262270 }
263271
264272
265273
266-@Callable(ao)
267-func rejectPurchase (N) = {
268- let aA = toBase58String(ao.caller.bytes)
269- let aB = Y(N)
270- let t = aa(N)
271- let x = Z(N)
274+@Callable(ar)
275+func rejectPurchase (P) = {
276+ let aF = toBase58String(ar.caller.bytes)
277+ let aG = ab(P)
278+ let t = ad(P)
279+ let x = ac(P)
272280 if (if ((t == a))
273281 then true
274- else (aA != t))
282+ else (aF != t))
275283 then throw("Your are not the owner of this item")
276- else if ((aB != h))
284+ else if ((aG != h))
277285 then throw("You cannot reject this purchased")
278286 else {
279- let au = M(N)
280- let ay = R(N)
281- let aC = K(t)
282- let aD = C(x)
283- let E = ab(N)
284- let aE = ac(N)
285- let aF = (X(t) - aE)
286- let aG = (ai(x) - 1)
287- let aH = addressFromStringValue(E)
288-[StringEntry(au, i), IntegerEntry(ay, 0), ScriptTransfer(aH, aE, unit)]
287+ let az = O(P)
288+ let aD = T(P)
289+ let aH = K(t)
290+ let aI = C(x)
291+ let E = ae(P)
292+ let aJ = af(P)
293+ let aK = (Z(t) - aJ)
294+ let aL = (al(x) - 1)
295+ let aM = addressFromStringValue(E)
296+[StringEntry(az, i), IntegerEntry(aD, 0), ScriptTransfer(aM, aJ, unit)]
289297 }
290298 }
291299
292300
293301
294-@Callable(ao)
295-func acceptPurchase (N,aI) = {
296- let aA = toBase58String(ao.caller.bytes)
297- let aB = Y(N)
298- let t = aa(N)
299- let x = Z(N)
300- let ar = ag(x)
302+@Callable(ar)
303+func acceptPurchase (P,aN) = {
304+ let aF = toBase58String(ar.caller.bytes)
305+ let aG = ab(P)
306+ let t = ad(P)
307+ let x = ac(P)
308+ let au = aj(x)
301309 if (if ((t == a))
302310 then true
303- else (aA != t))
311+ else (aF != t))
304312 then throw("Your are not the owner of this item")
305- else if ((aB != h))
313+ else if ((aG != h))
306314 then throw("You cannot reject this purchased")
307- else if (if ((ar > 0))
308- then (lastBlock.timestamp >= ar)
315+ else if (if ((au > 0))
316+ then (lastBlock.timestamp >= au)
309317 else false)
310318 then throw("Coupon expired")
311319 else {
312- let au = M(N)
313- let aC = K(t)
314- let aD = C(x)
315- let aE = ac(N)
316- let aF = (X(t) + aE)
317- let aG = (ai(x) + 1)
318- let E = ab(N)
319- let aH = addressFromStringValue(E)
320-[IntegerEntry(aC, aF), IntegerEntry(aD, aG), ScriptTransfer(aH, 1, fromBase58String(aI))]
320+ let az = O(P)
321+ let aH = K(t)
322+ let aI = C(x)
323+ let aJ = af(P)
324+ let aK = (Z(t) + aJ)
325+ let aL = (al(x) + 1)
326+ let E = ae(P)
327+ let aM = addressFromStringValue(E)
328+[IntegerEntry(aH, aK), IntegerEntry(aI, aL), ScriptTransfer(aM, 1, fromBase58String(aN))]
321329 }
322330 }
323331
324332
325333
326-@Callable(ao)
327-func voteCommit (x,aJ) = {
328- let E = toBase58String(ao.caller.bytes)
329- let aK = ak(x)
330- let aB = am(x)
331- if ((aK >= b))
334+@Callable(ar)
335+func voteCommit (x,aO) = {
336+ let E = toBase58String(ar.caller.bytes)
337+ let aP = an(x)
338+ let aG = ap(x)
339+ if ((aP >= b))
332340 then throw("Reached max number of voters")
333- else if ((aj(x, E) != a))
341+ else if ((am(x, E) != a))
334342 then throw("You voted already")
335343 else if ((w(x) == a))
336344 then throw("Item does not exists")
337- else if (if ((aB != a))
338- then (aB != f)
345+ else if (if ((aG != a))
346+ then (aG != f)
339347 else false)
340348 then throw("Voting is not active for this item now")
341349 else {
342- let aL = if ((aK == b))
350+ let aQ = if ((aP == b))
343351 then g
344352 else f
345-[StringEntry(D(x, E), aJ), IntegerEntry(F(x), (aK + 1)), StringEntry(H(x), aL)]
353+[StringEntry(D(x, E), aO), IntegerEntry(F(x), (aP + 1)), StringEntry(H(x), aQ)]
346354 }
347355 }
348356
349357
350358
351-@Callable(ao)
352-func voteReveal (x,J,aM) = {
353- let E = toBase58String(ao.caller.bytes)
354- let aB = am(x)
355- let aN = (an(x, J) + 1)
356- let aO = toBase58String(sha256(toBytes(((x + J) + aM))))
357- if ((aO != aj(x, E)))
359+@Callable(ar)
360+func voteReveal (x,J,aR) = {
361+ let E = toBase58String(ar.caller.bytes)
362+ 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)))
358366 then throw("Reveal data is not valid")
359- else if ((b > ak(x)))
367+ else if ((b > an(x)))
360368 then throw("Max number of voters not reached")
361- else if ((al(x, E) != a))
369+ else if ((ao(x, E) != a))
362370 then throw("You voted already")
363- else if (if ((aB != f))
364- then (aB != g)
371+ else if (if ((aG != f))
372+ then (aG != g)
365373 else false)
366374 then throw("Voting is not active for this item now")
367375 else if (if ((J != d))
368376 then (J != e)
369377 else false)
370378 then throw("Provided voting option is incorrect")
371379 else {
372- let aL = if ((aN >= c))
380+ let aQ = if ((aS >= c))
373381 then J
374382 else g
375-[StringEntry(G(x, E), J), IntegerEntry(I(x, E), aN), StringEntry(H(x), aL)]
383+[StringEntry(G(x, E), J), IntegerEntry(I(x, E), aS), StringEntry(H(x), aQ)]
376384 }
377385 }
378386
379387
380-@Verifier(aP)
381-func aQ () = {
382- let m = aP
388+@Verifier(aU)
389+func aV () = {
390+ let m = aU
383391 if ($isInstanceOf(m, "SetScriptTransaction"))
384392 then {
385- let aR = m
386- sigVerify(aP.bodyBytes, aP.proofs[0], aP.senderPublicKey)
393+ let aW = m
394+ sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey)
387395 }
388396 else if ($isInstanceOf(m, "IssueTransaction"))
389397 then {
390- let aR = m
391- sigVerify(aP.bodyBytes, aP.proofs[0], aP.senderPublicKey)
398+ let aW = m
399+ sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey)
392400 }
393401 else if ($isInstanceOf(m, "TransferTransaction"))
394402 then {
395- let aR = m
396- sigVerify(aP.bodyBytes, aP.proofs[0], aP.senderPublicKey)
403+ let aW = m
404+ sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey)
397405 }
398406 else false
399407 }
400408

github/deemru/w8io/026f985 
105.87 ms