tx · KCF2fX7EBAzrGinNGMZuUe5SWH8xZKfZSJVnW3dPzEE

3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7:  -0.01400000 Waves

2021.08.02 03:44 [1640007] smart account 3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7 > SELF 0.00000000 Waves

{ "type": 13, "id": "KCF2fX7EBAzrGinNGMZuUe5SWH8xZKfZSJVnW3dPzEE", "fee": 1400000, "feeAssetId": null, "timestamp": 1627865115960, "version": 2, "chainId": 84, "sender": "3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7", "senderPublicKey": "3tp5fNYyPi4jMnkf6s1k4kBqvJ7nm57SxzvLyi8RkxT2", "proofs": [ "3nqE19Ct9pZ5AEA6MVDGSJE68UZtFV4i9hVP9eKvzoMbbFY1neqSUBUieWo5o1sMTBC7DhSgY1yeeWV4PHDGQyez" ], "script": "base64:AAIEAAAAAAAAADsIAhIDCgEIEgYKBAgBCAESBwoFCAgBCAESAwoBCBIECgIICBIDCgEIEgQKAggIEgQKAggIEgUKAwgICAAAADUAAAAABE5PTkUCAAAABE5PTkUAAAAABlZPVEVSUwAAAAAAAAAAAwAAAAAGUVVPUlVNAAAAAAAAAAACAAAAAAhGRUFUVVJFRAIAAAAIZmVhdHVyZWQAAAAACERFTElTVEVEAgAAAAhkZWxpc3RlZAAAAAAGVk9USU5HAgAAAAZ2b3RpbmcAAAAABlJFVkVBTAIAAAAGcmV2ZWFsAAAAAAhBUFBST1ZBTAIAAAAIYXBwcm92YWwAAAAACFJFSkVDVEVEAgAAAAhyZWplY3RlZAAAAAAIQUNDRVBURUQCAAAACGFjY2VwdGVkAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAROT05FAQAAAA9nZ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YXR1cwAAAAEFAAAABGl0ZW0FAAAACW5ld1N0YXR1cwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAQSXNzdWVUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5B/+iK6I=", "height": 1640007, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5vS2PiVGJw3MezycGfnJsvmtRN1v41KPP2AF8dwyW6kP Next: Ca54uLDM9RY2i7g3QrdYDWAomvZQEQaZjoMJoBvyRCzR Diff:
OldNewDifferences
1515
1616 let g = "reveal"
1717
18-func h (i) = {
19- let j = getString(this, i)
20- if ($isInstanceOf(j, "String"))
18+let h = "approval"
19+
20+let i = "rejected"
21+
22+let j = "accepted"
23+
24+func k (l) = {
25+ let m = getString(this, l)
26+ if ($isInstanceOf(m, "String"))
2127 then {
22- let k = j
23- k
28+ let n = m
29+ n
2430 }
2531 else a
2632 }
2733
2834
29-func l (i) = {
30- let j = getInteger(this, i)
31- if ($isInstanceOf(j, "Int"))
35+func o (l) = {
36+ let m = getInteger(this, l)
37+ if ($isInstanceOf(m, "Int"))
3238 then {
33- let k = j
34- k
39+ let n = m
40+ n
3541 }
3642 else 0
3743 }
3844
3945
40-func m (n) = (n + "_account")
46+func p (q) = (q + "_account")
4147
4248
43-func o (n) = h(m(n))
49+func r (q) = k(p(q))
4450
4551
46-func p (q,r) = {
47- let s = (q + r)
48- ("item_" + toBase58String(sha256(toBytes(s))))
52+func s (t,u) = {
53+ let v = (t + u)
54+ ("item_" + toBase58String(sha256(toBytes(v))))
4955 }
5056
5157
52-func t (u) = (u + "_owner")
58+func w (x) = (x + "_owner")
5359
5460
55-func v (u) = (u + "_title")
61+func y (x) = (x + "_title")
5662
5763
58-func w (u) = (u + "_price")
64+func z (x) = (x + "_price")
5965
6066
61-func x (u) = (u + "_data")
67+func A (x) = (x + "_data")
6268
6369
64-func y (u) = (u + "_expiredate")
70+func B (x) = (x + "_expiredate")
6571
6672
67-func z (u,A) = (((u + "_") + A) + "_commit")
73+func C (x) = (x + "_sold")
6874
6975
70-func B (u) = (u + "_cmtcnt")
76+func D (x,E) = (((x + "_") + E) + "_commit")
7177
7278
73-func C (u,A) = (((u + "_") + A) + "_reveal")
79+func F (x) = (x + "_cmtcnt")
7480
7581
76-func D (u) = (u + "_status")
82+func G (x,E) = (((x + "_") + E) + "_reveal")
7783
7884
79-func E (u,F) = ((u + "_res:") + F)
85+func H (x) = (x + "_status")
8086
8187
82-func G (A,u) = (((u + "_") + A) + "_cnt")
88+func I (x,J) = ((x + "_res:") + J)
8389
8490
85-func H (n) = (n + "_balance")
91+func K (t) = (t + "_balance")
8692
8793
88-func I (J) = ("coupon_" + J)
94+func L (t,x,E) = ("purchase_" + toBase58String(sha256(toBytes(((((t + "_") + x) + "_") + E)))))
8995
9096
91-func K (L) = (L + "_item")
97+func M (N) = (N + "_status")
9298
9399
94-func M (n) = {
95- let N = H(n)
96- let j = getInteger(this, N)
97- if ($isInstanceOf(j, "Int"))
98- then {
99- let k = j
100- k
101- }
102- else 0
103- }
100+func O (N) = (N + "_item")
104101
105102
106-func O (A,u) = {
107- let P = G(A, u)
108- let j = getInteger(this, P)
109- if ($isInstanceOf(j, "Int"))
110- then {
111- let k = j
112- k
113- }
114- else 0
115- }
103+func P (N) = (N + "_supplier")
116104
117105
118-func Q (u) = {
119- let R = w(u)
120- getIntegerValue(this, R)
121- }
106+func Q (N) = (N + "_user")
122107
123108
124-func S (u) = h(t(u))
109+func R (N) = (N + "_amount")
125110
126111
127-func T (u) = l(y(u))
112+func S (N) = (N + "_timestamp")
128113
129114
130-func U (u) = h(v(u))
115+func T (U) = ("coupon_" + U)
131116
132117
133-func V (u,A) = h(z(u, A))
118+func V (W) = (W + "_item")
134119
135120
136-func W (u) = l(B(u))
121+func X (t) = o(K(t))
137122
138123
139-func X (u,A) = h(C(u, A))
124+func Y (N) = k(M(N))
140125
141126
142-func Y (u) = h(D(u))
127+func Z (N) = getStringValue(this, O(N))
143128
144129
145-func Z (u,F) = l(E(u, F))
130+func aa (N) = getStringValue(this, P(N))
146131
147132
148-@Callable(aa)
149-func registerSupplier (ab) = {
150- let q = toBase58String(aa.caller.bytes)
151- let n = o(q)
152- if ((n != a))
133+func ab (N) = getStringValue(this, Q(N))
134+
135+
136+func ac (N) = getIntegerValue(this, R(N))
137+
138+
139+func ad (N) = o(S(N))
140+
141+
142+func ae (x) = getIntegerValue(this, z(x))
143+
144+
145+func af (x) = k(w(x))
146+
147+
148+func ag (x) = o(B(x))
149+
150+
151+func ah (x) = k(y(x))
152+
153+
154+func ai (x) = o(C(x))
155+
156+
157+func aj (x,E) = k(D(x, E))
158+
159+
160+func ak (x) = o(F(x))
161+
162+
163+func al (x,E) = k(G(x, E))
164+
165+
166+func am (x) = k(H(x))
167+
168+
169+func an (x,J) = o(I(x, J))
170+
171+
172+@Callable(ao)
173+func registerSupplier (ap) = {
174+ let t = toBase58String(ao.caller.bytes)
175+ let q = r(t)
176+ if ((q != a))
153177 then throw("This address has already registred as supplier")
154- else [StringEntry(m(q), ab)]
178+ else [StringEntry(p(t), ap)]
155179 }
156180
157181
158182
159-@Callable(aa)
160-func addItem (r,ac,ab,ad) = {
161- let q = toBase58String(aa.caller.bytes)
162- let n = o(q)
163- let u = p(q, r)
164- if ((n == a))
183+@Callable(ao)
184+func addItem (u,aq,ap,ar) = {
185+ let t = toBase58String(ao.caller.bytes)
186+ let q = r(t)
187+ let x = s(t, u)
188+ if ((q == a))
165189 then throw("You should register as supplier to add an item")
166- else if ((0 >= ac))
190+ else if ((0 >= aq))
167191 then throw("Purchase amount cannot be less than item price")
168- else if ((S(u) != a))
192+ else if ((af(x) != a))
169193 then throw("An item already exists")
170- else [StringEntry(t(u), q), StringEntry(v(u), r), IntegerEntry(w(u), ac), StringEntry(x(u), ab), IntegerEntry(y(u), ad)]
194+ else [StringEntry(w(x), t), StringEntry(y(x), u), IntegerEntry(z(x), aq), StringEntry(A(x), ap), IntegerEntry(B(x), ar)]
171195 }
172196
173197
174198
175-@Callable(aa)
176-func updateItem (u,r,ac,ab,ad) = {
177- let q = toBase58String(aa.caller.bytes)
178- let n = o(q)
179- let ae = S(u)
180- if ((n == a))
199+@Callable(ao)
200+func updateItem (x,u,aq,ap,ar) = {
201+ let t = toBase58String(ao.caller.bytes)
202+ let q = r(t)
203+ let as = af(x)
204+ if ((q == a))
181205 then throw("You should register as supplier to remove an item")
182- else if (if ((u == a))
206+ else if (if ((x == a))
183207 then true
184- else (q != ae))
185- then throw(("You don't owned item " + u))
186- else [StringEntry(v(u), r), IntegerEntry(w(u), ac), StringEntry(x(u), ab), IntegerEntry(y(u), ad)]
208+ else (t != as))
209+ 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)]
187211 }
188212
189213
190214
191-@Callable(aa)
192-func removeItem (u) = {
193- let q = toBase58String(aa.caller.bytes)
194- let n = o(q)
195- let ae = S(u)
196- if ((n == a))
215+@Callable(ao)
216+func removeItem (x) = {
217+ let t = toBase58String(ao.caller.bytes)
218+ let q = r(t)
219+ let as = af(x)
220+ if ((q == a))
197221 then throw("You should register as supplier to remove an item")
198- else if (if ((u == a))
222+ else if (if ((x == a))
199223 then true
200- else (q != ae))
201- then throw(("You don't owned item " + u))
202- else [DeleteEntry(t(u)), DeleteEntry(v(u)), DeleteEntry(w(u)), DeleteEntry(x(u)), DeleteEntry(y(u))]
224+ else (t != as))
225+ then throw(("You don't owned item " + x))
226+ else [DeleteEntry(w(x)), DeleteEntry(y(x)), DeleteEntry(z(x)), DeleteEntry(A(x)), DeleteEntry(B(x))]
203227 }
204228
205229
206230
207-@Callable(aa)
208-func purchase (u,J) = {
209- let af = aa.payments[0]
210- if (isDefined(af.assetId))
231+@Callable(ao)
232+func purchase (x,U) = {
233+ let at = ao.payments[0]
234+ if (isDefined(at.assetId))
211235 then throw("You can buy tokens only with Waves tokens")
212236 else {
213- let ag = toBase58String(aa.caller.bytes)
214- let ac = Q(u)
215- let q = S(u)
216- let ad = T(u)
217- if (if ((ad > 0))
218- then (lastBlock.timestamp >= ad)
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)
219243 else false)
220244 then throw("Coupon expired")
221- else if ((ac > af.amount))
245+ else if ((aq > at.amount))
222246 then throw("Purchase amount cannot be less than item price")
223- else if ((af.amount > ac))
247+ else if ((at.amount > aq))
224248 then throw("Purchase amount cannot be higher than item price")
225- else if ((q == a))
249+ else if ((t == a))
226250 then throw("Supplier does not exists")
227251 else {
228- let ah = G(ag, u)
229- let ai = (O(ag, u) + 1)
230- let N = H(q)
231- let aj = (M(q) + af.amount)
232- let L = I(J)
233-[IntegerEntry(ah, ai), IntegerEntry(N, aj), StringEntry(K(L), u), ScriptTransfer(aa.caller, 1, fromBase58String(J))]
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)]
234260 }
235261 }
236262 }
237263
238264
239265
240-@Callable(aa)
241-func voteCommit (u,ak) = {
242- let A = toBase58String(aa.caller.bytes)
243- let al = W(u)
244- let am = Y(u)
245- if ((al >= b))
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)
272+ if (if ((t == a))
273+ then true
274+ else (aA != t))
275+ then throw("Your are not the owner of this item")
276+ else if ((aB != h))
277+ then throw("You cannot reject this purchased")
278+ 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)]
289+ }
290+ }
291+
292+
293+
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)
301+ if (if ((t == a))
302+ then true
303+ else (aA != t))
304+ then throw("Your are not the owner of this item")
305+ else if ((aB != h))
306+ then throw("You cannot reject this purchased")
307+ else if (if ((ar > 0))
308+ then (lastBlock.timestamp >= ar)
309+ else false)
310+ then throw("Coupon expired")
311+ 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))]
321+ }
322+ }
323+
324+
325+
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))
246332 then throw("Reached max number of voters")
247- else if ((V(u, A) != a))
333+ else if ((aj(x, E) != a))
248334 then throw("You voted already")
249- else if ((t(u) == a))
335+ else if ((w(x) == a))
250336 then throw("Item does not exists")
251- else if (if ((am != a))
252- then (am != f)
337+ else if (if ((aB != a))
338+ then (aB != f)
253339 else false)
254340 then throw("Voting is not active for this item now")
255341 else {
256- let an = if ((al == b))
342+ let aL = if ((aK == b))
257343 then g
258344 else f
259-[StringEntry(z(u, A), ak), IntegerEntry(B(u), (al + 1)), StringEntry(D(u), an)]
345+[StringEntry(D(x, E), aJ), IntegerEntry(F(x), (aK + 1)), StringEntry(H(x), aL)]
260346 }
261347 }
262348
263349
264350
265-@Callable(aa)
266-func voteReveal (u,F,ao) = {
267- let A = toBase58String(aa.caller.bytes)
268- let am = Y(u)
269- let ap = (Z(u, F) + 1)
270- let aq = toBase58String(sha256(toBytes(((u + F) + ao))))
271- if ((aq != V(u, A)))
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)))
272358 then throw("Reveal data is not valid")
273- else if ((b > W(u)))
359+ else if ((b > ak(x)))
274360 then throw("Max number of voters not reached")
275- else if ((X(u, A) != a))
361+ else if ((al(x, E) != a))
276362 then throw("You voted already")
277- else if (if ((am != f))
278- then (am != g)
363+ else if (if ((aB != f))
364+ then (aB != g)
279365 else false)
280366 then throw("Voting is not active for this item now")
281- else if (if ((F != d))
282- then (F != e)
367+ else if (if ((J != d))
368+ then (J != e)
283369 else false)
284370 then throw("Provided voting option is incorrect")
285371 else {
286- let an = if ((ap >= c))
287- then F
372+ let aL = if ((aN >= c))
373+ then J
288374 else g
289-[StringEntry(C(u, A), F), IntegerEntry(E(u, A), ap), StringEntry(D(u), an)]
375+[StringEntry(G(x, E), J), IntegerEntry(I(x, E), aN), StringEntry(H(x), aL)]
290376 }
291377 }
292378
293379
294-@Verifier(ar)
295-func as () = {
296- let j = ar
297- if ($isInstanceOf(j, "SetScriptTransaction"))
380+@Verifier(aP)
381+func aQ () = {
382+ let m = aP
383+ if ($isInstanceOf(m, "SetScriptTransaction"))
298384 then {
299- let at = j
300- sigVerify(ar.bodyBytes, ar.proofs[0], ar.senderPublicKey)
385+ let aR = m
386+ sigVerify(aP.bodyBytes, aP.proofs[0], aP.senderPublicKey)
301387 }
302- else if ($isInstanceOf(j, "IssueTransaction"))
388+ else if ($isInstanceOf(m, "IssueTransaction"))
303389 then {
304- let at = j
305- sigVerify(ar.bodyBytes, ar.proofs[0], ar.senderPublicKey)
390+ let aR = m
391+ sigVerify(aP.bodyBytes, aP.proofs[0], aP.senderPublicKey)
306392 }
307- else if ($isInstanceOf(j, "TransferTransaction"))
393+ else if ($isInstanceOf(m, "TransferTransaction"))
308394 then {
309- let at = j
310- sigVerify(ar.bodyBytes, ar.proofs[0], ar.senderPublicKey)
395+ let aR = m
396+ sigVerify(aP.bodyBytes, aP.proofs[0], aP.senderPublicKey)
311397 }
312398 else false
313399 }
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
18-func h (i) = {
19- let j = getString(this, i)
20- if ($isInstanceOf(j, "String"))
18+let h = "approval"
19+
20+let i = "rejected"
21+
22+let j = "accepted"
23+
24+func k (l) = {
25+ let m = getString(this, l)
26+ if ($isInstanceOf(m, "String"))
2127 then {
22- let k = j
23- k
28+ let n = m
29+ n
2430 }
2531 else a
2632 }
2733
2834
29-func l (i) = {
30- let j = getInteger(this, i)
31- if ($isInstanceOf(j, "Int"))
35+func o (l) = {
36+ let m = getInteger(this, l)
37+ if ($isInstanceOf(m, "Int"))
3238 then {
33- let k = j
34- k
39+ let n = m
40+ n
3541 }
3642 else 0
3743 }
3844
3945
40-func m (n) = (n + "_account")
46+func p (q) = (q + "_account")
4147
4248
43-func o (n) = h(m(n))
49+func r (q) = k(p(q))
4450
4551
46-func p (q,r) = {
47- let s = (q + r)
48- ("item_" + toBase58String(sha256(toBytes(s))))
52+func s (t,u) = {
53+ let v = (t + u)
54+ ("item_" + toBase58String(sha256(toBytes(v))))
4955 }
5056
5157
52-func t (u) = (u + "_owner")
58+func w (x) = (x + "_owner")
5359
5460
55-func v (u) = (u + "_title")
61+func y (x) = (x + "_title")
5662
5763
58-func w (u) = (u + "_price")
64+func z (x) = (x + "_price")
5965
6066
61-func x (u) = (u + "_data")
67+func A (x) = (x + "_data")
6268
6369
64-func y (u) = (u + "_expiredate")
70+func B (x) = (x + "_expiredate")
6571
6672
67-func z (u,A) = (((u + "_") + A) + "_commit")
73+func C (x) = (x + "_sold")
6874
6975
70-func B (u) = (u + "_cmtcnt")
76+func D (x,E) = (((x + "_") + E) + "_commit")
7177
7278
73-func C (u,A) = (((u + "_") + A) + "_reveal")
79+func F (x) = (x + "_cmtcnt")
7480
7581
76-func D (u) = (u + "_status")
82+func G (x,E) = (((x + "_") + E) + "_reveal")
7783
7884
79-func E (u,F) = ((u + "_res:") + F)
85+func H (x) = (x + "_status")
8086
8187
82-func G (A,u) = (((u + "_") + A) + "_cnt")
88+func I (x,J) = ((x + "_res:") + J)
8389
8490
85-func H (n) = (n + "_balance")
91+func K (t) = (t + "_balance")
8692
8793
88-func I (J) = ("coupon_" + J)
94+func L (t,x,E) = ("purchase_" + toBase58String(sha256(toBytes(((((t + "_") + x) + "_") + E)))))
8995
9096
91-func K (L) = (L + "_item")
97+func M (N) = (N + "_status")
9298
9399
94-func M (n) = {
95- let N = H(n)
96- let j = getInteger(this, N)
97- if ($isInstanceOf(j, "Int"))
98- then {
99- let k = j
100- k
101- }
102- else 0
103- }
100+func O (N) = (N + "_item")
104101
105102
106-func O (A,u) = {
107- let P = G(A, u)
108- let j = getInteger(this, P)
109- if ($isInstanceOf(j, "Int"))
110- then {
111- let k = j
112- k
113- }
114- else 0
115- }
103+func P (N) = (N + "_supplier")
116104
117105
118-func Q (u) = {
119- let R = w(u)
120- getIntegerValue(this, R)
121- }
106+func Q (N) = (N + "_user")
122107
123108
124-func S (u) = h(t(u))
109+func R (N) = (N + "_amount")
125110
126111
127-func T (u) = l(y(u))
112+func S (N) = (N + "_timestamp")
128113
129114
130-func U (u) = h(v(u))
115+func T (U) = ("coupon_" + U)
131116
132117
133-func V (u,A) = h(z(u, A))
118+func V (W) = (W + "_item")
134119
135120
136-func W (u) = l(B(u))
121+func X (t) = o(K(t))
137122
138123
139-func X (u,A) = h(C(u, A))
124+func Y (N) = k(M(N))
140125
141126
142-func Y (u) = h(D(u))
127+func Z (N) = getStringValue(this, O(N))
143128
144129
145-func Z (u,F) = l(E(u, F))
130+func aa (N) = getStringValue(this, P(N))
146131
147132
148-@Callable(aa)
149-func registerSupplier (ab) = {
150- let q = toBase58String(aa.caller.bytes)
151- let n = o(q)
152- if ((n != a))
133+func ab (N) = getStringValue(this, Q(N))
134+
135+
136+func ac (N) = getIntegerValue(this, R(N))
137+
138+
139+func ad (N) = o(S(N))
140+
141+
142+func ae (x) = getIntegerValue(this, z(x))
143+
144+
145+func af (x) = k(w(x))
146+
147+
148+func ag (x) = o(B(x))
149+
150+
151+func ah (x) = k(y(x))
152+
153+
154+func ai (x) = o(C(x))
155+
156+
157+func aj (x,E) = k(D(x, E))
158+
159+
160+func ak (x) = o(F(x))
161+
162+
163+func al (x,E) = k(G(x, E))
164+
165+
166+func am (x) = k(H(x))
167+
168+
169+func an (x,J) = o(I(x, J))
170+
171+
172+@Callable(ao)
173+func registerSupplier (ap) = {
174+ let t = toBase58String(ao.caller.bytes)
175+ let q = r(t)
176+ if ((q != a))
153177 then throw("This address has already registred as supplier")
154- else [StringEntry(m(q), ab)]
178+ else [StringEntry(p(t), ap)]
155179 }
156180
157181
158182
159-@Callable(aa)
160-func addItem (r,ac,ab,ad) = {
161- let q = toBase58String(aa.caller.bytes)
162- let n = o(q)
163- let u = p(q, r)
164- if ((n == a))
183+@Callable(ao)
184+func addItem (u,aq,ap,ar) = {
185+ let t = toBase58String(ao.caller.bytes)
186+ let q = r(t)
187+ let x = s(t, u)
188+ if ((q == a))
165189 then throw("You should register as supplier to add an item")
166- else if ((0 >= ac))
190+ else if ((0 >= aq))
167191 then throw("Purchase amount cannot be less than item price")
168- else if ((S(u) != a))
192+ else if ((af(x) != a))
169193 then throw("An item already exists")
170- else [StringEntry(t(u), q), StringEntry(v(u), r), IntegerEntry(w(u), ac), StringEntry(x(u), ab), IntegerEntry(y(u), ad)]
194+ else [StringEntry(w(x), t), StringEntry(y(x), u), IntegerEntry(z(x), aq), StringEntry(A(x), ap), IntegerEntry(B(x), ar)]
171195 }
172196
173197
174198
175-@Callable(aa)
176-func updateItem (u,r,ac,ab,ad) = {
177- let q = toBase58String(aa.caller.bytes)
178- let n = o(q)
179- let ae = S(u)
180- if ((n == a))
199+@Callable(ao)
200+func updateItem (x,u,aq,ap,ar) = {
201+ let t = toBase58String(ao.caller.bytes)
202+ let q = r(t)
203+ let as = af(x)
204+ if ((q == a))
181205 then throw("You should register as supplier to remove an item")
182- else if (if ((u == a))
206+ else if (if ((x == a))
183207 then true
184- else (q != ae))
185- then throw(("You don't owned item " + u))
186- else [StringEntry(v(u), r), IntegerEntry(w(u), ac), StringEntry(x(u), ab), IntegerEntry(y(u), ad)]
208+ else (t != as))
209+ 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)]
187211 }
188212
189213
190214
191-@Callable(aa)
192-func removeItem (u) = {
193- let q = toBase58String(aa.caller.bytes)
194- let n = o(q)
195- let ae = S(u)
196- if ((n == a))
215+@Callable(ao)
216+func removeItem (x) = {
217+ let t = toBase58String(ao.caller.bytes)
218+ let q = r(t)
219+ let as = af(x)
220+ if ((q == a))
197221 then throw("You should register as supplier to remove an item")
198- else if (if ((u == a))
222+ else if (if ((x == a))
199223 then true
200- else (q != ae))
201- then throw(("You don't owned item " + u))
202- else [DeleteEntry(t(u)), DeleteEntry(v(u)), DeleteEntry(w(u)), DeleteEntry(x(u)), DeleteEntry(y(u))]
224+ else (t != as))
225+ then throw(("You don't owned item " + x))
226+ else [DeleteEntry(w(x)), DeleteEntry(y(x)), DeleteEntry(z(x)), DeleteEntry(A(x)), DeleteEntry(B(x))]
203227 }
204228
205229
206230
207-@Callable(aa)
208-func purchase (u,J) = {
209- let af = aa.payments[0]
210- if (isDefined(af.assetId))
231+@Callable(ao)
232+func purchase (x,U) = {
233+ let at = ao.payments[0]
234+ if (isDefined(at.assetId))
211235 then throw("You can buy tokens only with Waves tokens")
212236 else {
213- let ag = toBase58String(aa.caller.bytes)
214- let ac = Q(u)
215- let q = S(u)
216- let ad = T(u)
217- if (if ((ad > 0))
218- then (lastBlock.timestamp >= ad)
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)
219243 else false)
220244 then throw("Coupon expired")
221- else if ((ac > af.amount))
245+ else if ((aq > at.amount))
222246 then throw("Purchase amount cannot be less than item price")
223- else if ((af.amount > ac))
247+ else if ((at.amount > aq))
224248 then throw("Purchase amount cannot be higher than item price")
225- else if ((q == a))
249+ else if ((t == a))
226250 then throw("Supplier does not exists")
227251 else {
228- let ah = G(ag, u)
229- let ai = (O(ag, u) + 1)
230- let N = H(q)
231- let aj = (M(q) + af.amount)
232- let L = I(J)
233-[IntegerEntry(ah, ai), IntegerEntry(N, aj), StringEntry(K(L), u), ScriptTransfer(aa.caller, 1, fromBase58String(J))]
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)]
234260 }
235261 }
236262 }
237263
238264
239265
240-@Callable(aa)
241-func voteCommit (u,ak) = {
242- let A = toBase58String(aa.caller.bytes)
243- let al = W(u)
244- let am = Y(u)
245- if ((al >= b))
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)
272+ if (if ((t == a))
273+ then true
274+ else (aA != t))
275+ then throw("Your are not the owner of this item")
276+ else if ((aB != h))
277+ then throw("You cannot reject this purchased")
278+ 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)]
289+ }
290+ }
291+
292+
293+
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)
301+ if (if ((t == a))
302+ then true
303+ else (aA != t))
304+ then throw("Your are not the owner of this item")
305+ else if ((aB != h))
306+ then throw("You cannot reject this purchased")
307+ else if (if ((ar > 0))
308+ then (lastBlock.timestamp >= ar)
309+ else false)
310+ then throw("Coupon expired")
311+ 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))]
321+ }
322+ }
323+
324+
325+
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))
246332 then throw("Reached max number of voters")
247- else if ((V(u, A) != a))
333+ else if ((aj(x, E) != a))
248334 then throw("You voted already")
249- else if ((t(u) == a))
335+ else if ((w(x) == a))
250336 then throw("Item does not exists")
251- else if (if ((am != a))
252- then (am != f)
337+ else if (if ((aB != a))
338+ then (aB != f)
253339 else false)
254340 then throw("Voting is not active for this item now")
255341 else {
256- let an = if ((al == b))
342+ let aL = if ((aK == b))
257343 then g
258344 else f
259-[StringEntry(z(u, A), ak), IntegerEntry(B(u), (al + 1)), StringEntry(D(u), an)]
345+[StringEntry(D(x, E), aJ), IntegerEntry(F(x), (aK + 1)), StringEntry(H(x), aL)]
260346 }
261347 }
262348
263349
264350
265-@Callable(aa)
266-func voteReveal (u,F,ao) = {
267- let A = toBase58String(aa.caller.bytes)
268- let am = Y(u)
269- let ap = (Z(u, F) + 1)
270- let aq = toBase58String(sha256(toBytes(((u + F) + ao))))
271- if ((aq != V(u, A)))
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)))
272358 then throw("Reveal data is not valid")
273- else if ((b > W(u)))
359+ else if ((b > ak(x)))
274360 then throw("Max number of voters not reached")
275- else if ((X(u, A) != a))
361+ else if ((al(x, E) != a))
276362 then throw("You voted already")
277- else if (if ((am != f))
278- then (am != g)
363+ else if (if ((aB != f))
364+ then (aB != g)
279365 else false)
280366 then throw("Voting is not active for this item now")
281- else if (if ((F != d))
282- then (F != e)
367+ else if (if ((J != d))
368+ then (J != e)
283369 else false)
284370 then throw("Provided voting option is incorrect")
285371 else {
286- let an = if ((ap >= c))
287- then F
372+ let aL = if ((aN >= c))
373+ then J
288374 else g
289-[StringEntry(C(u, A), F), IntegerEntry(E(u, A), ap), StringEntry(D(u), an)]
375+[StringEntry(G(x, E), J), IntegerEntry(I(x, E), aN), StringEntry(H(x), aL)]
290376 }
291377 }
292378
293379
294-@Verifier(ar)
295-func as () = {
296- let j = ar
297- if ($isInstanceOf(j, "SetScriptTransaction"))
380+@Verifier(aP)
381+func aQ () = {
382+ let m = aP
383+ if ($isInstanceOf(m, "SetScriptTransaction"))
298384 then {
299- let at = j
300- sigVerify(ar.bodyBytes, ar.proofs[0], ar.senderPublicKey)
385+ let aR = m
386+ sigVerify(aP.bodyBytes, aP.proofs[0], aP.senderPublicKey)
301387 }
302- else if ($isInstanceOf(j, "IssueTransaction"))
388+ else if ($isInstanceOf(m, "IssueTransaction"))
303389 then {
304- let at = j
305- sigVerify(ar.bodyBytes, ar.proofs[0], ar.senderPublicKey)
390+ let aR = m
391+ sigVerify(aP.bodyBytes, aP.proofs[0], aP.senderPublicKey)
306392 }
307- else if ($isInstanceOf(j, "TransferTransaction"))
393+ else if ($isInstanceOf(m, "TransferTransaction"))
308394 then {
309- let at = j
310- sigVerify(ar.bodyBytes, ar.proofs[0], ar.senderPublicKey)
395+ let aR = m
396+ sigVerify(aP.bodyBytes, aP.proofs[0], aP.senderPublicKey)
311397 }
312398 else false
313399 }
314400

github/deemru/w8io/169f3d6 
118.76 ms