tx · 9DQntgwT3Hrh8LNV6uVE6X8pKLqedSgzsjwr3c2tSqN3

3MtELerncMfYVZvRuEeMvgvsj7jUnshXWuw:  -0.01400000 Waves

2019.11.02 22:15 [747651] smart account 3MtELerncMfYVZvRuEeMvgvsj7jUnshXWuw > SELF 0.00000000 Waves

{ "type": 13, "id": "9DQntgwT3Hrh8LNV6uVE6X8pKLqedSgzsjwr3c2tSqN3", "fee": 1400000, "feeAssetId": null, "timestamp": 1572722087234, "version": 1, "sender": "3MtELerncMfYVZvRuEeMvgvsj7jUnshXWuw", "senderPublicKey": "FXsc9LG44fGFsWEUFctaZ8pr75ZoWQuPc75fhhG6CQb7", "proofs": [ "4oKGfmwABFb1SadK5HkvxvRuuGcbR8idvzzJ25h2JMPHD26QEF8Krc1WYwua3qS5YShcVse5tnsTYP5G9J1FaBBE" ], "script": "base64:AAIDAAAAAAAAABYIARIDCgEIEgUKAwgBCBIAEgQKAggIAAAAIAAAAAALYWxpY2VQdWJLZXkBAAAAINfsQvR9fqXlDzGc04eGbOwG0sh9xqqQFwH/8Axi/ldeAAAAAAlib2JQdWJLZXkBAAAAIOwSkxfPNRumLYV/QyOtvoP1Xrqg0wLIbWQvZrWRxCZVAAAAAAxjb29wZXJQdWJLZXkBAAAAIIBJjl+IC6h/Eyp/ki/D97TEbqOcKJDZv13sTNCgJKkiAAAAAAROT05FAgAAAARub25lAAAAAAZWT1RFUlMAAAAAAAAAAAMAAAAABlFVT1JVTQAAAAAAAAAAAgAAAAAGVk9USU5HAgAAAAZ2b3RpbmcAAAAABlJFVkVBTAIAAAAGcmV2ZWFsAAAAAAhGRUFUVVJFRAIAAAAIZmVhdHVyZWQAAAAACERFTElTVEVEAgAAAAhkZWxpc3RlZAEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQQAAAADbnVtBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAA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FqhUuj5UZ1MjKU52 Diff:
OldNewDifferences
99
1010 let d = "none"
1111
12-func e (f) = {
13- let g = {
14- let h = getInteger(this, f)
15- if ($isInstanceOf(h, "Int"))
12+let e = 3
13+
14+let f = 2
15+
16+let g = "voting"
17+
18+let h = "reveal"
19+
20+let i = "featured"
21+
22+let j = "delisted"
23+
24+func k (l) = {
25+ let m = {
26+ let n = getInteger(this, l)
27+ if ($isInstanceOf(n, "Int"))
1628 then {
17- let i = h
18- i
29+ let o = n
30+ o
1931 }
2032 else 0
2133 }
22- g
34+ m
2335 }
2436
2537
26-func j (f) = {
27- let k = {
28- let h = getString(this, f)
29- if ($isInstanceOf(h, "String"))
38+func p (l) = {
39+ let q = {
40+ let n = getString(this, l)
41+ if ($isInstanceOf(n, "String"))
3042 then {
31- let i = h
32- i
43+ let o = n
44+ o
3345 }
3446 else d
3547 }
36- k
48+ q
3749 }
3850
3951
40-func l (m) = (m + "_price")
52+func r (s,t) = (((s + "_") + t) + "_commit")
4153
4254
43-func n (m) = e(l(m))
55+func u (s,t) = p(r(s, t))
4456
4557
46-func o (p,m) = (((m + "user") + p) + "_cnt")
58+func v (s) = (s + "_comcnt")
4759
4860
49-func q (p,m) = e(o(p, m))
61+func w (s) = k(v(s))
5062
5163
52-func r (s,t) = ("item_" + toBase58String(sha256(toBytes((s + t)))))
64+func x (s,t) = (((s + "_") + t) + "_reveal")
5365
5466
55-func u (m) = (m + "_data")
67+func y (s,t) = p(x(s, t))
5668
5769
58-func v (m) = (m + "_owner")
70+func z (s) = (s + "_status")
5971
6072
61-func w (m) = j(v(m))
73+func A (s) = p(z(s))
6274
6375
64-func x (y) = (y + "_balance")
76+func B (s,C) = ((s + "_res:") + C)
6577
6678
67-func z (y) = e(x(y))
79+func D (s,C) = k(B(s, C))
6880
6981
70-@Callable(A)
71-func purchase (m) = {
72- let B = extract(A.payment)
73- if (isDefined(B.assetId))
82+func E (s) = (s + "_price")
83+
84+
85+func F (s) = k(E(s))
86+
87+
88+func G (t,s) = (((s + "user") + t) + "_cnt")
89+
90+
91+func H (t,s) = k(G(t, s))
92+
93+
94+func I (J,K) = ("item_" + toBase58String(sha256(toBytes((J + K)))))
95+
96+
97+func L (s) = (s + "_data")
98+
99+
100+func M (s) = (s + "_owner")
101+
102+
103+func N (s) = p(M(s))
104+
105+
106+func O (P) = (P + "_balance")
107+
108+
109+func Q (P) = k(O(P))
110+
111+
112+@Callable(R)
113+func purchase (s) = {
114+ let S = extract(R.payment)
115+ if (isDefined(S.assetId))
74116 then throw("Can use WAVES only at the moment")
75117 else {
76- let C = toBase58String(A.caller.bytes)
77- let D = n(m)
78- let E = w(m)
79- if ((D > B.amount))
118+ let T = toBase58String(R.caller.bytes)
119+ let U = F(s)
120+ let V = N(s)
121+ if ((U > S.amount))
80122 then throw("Purchase amount can not be less than item price")
81- else if ((B.amount > D))
123+ else if ((S.amount > U))
82124 then throw("Purchase amount can not be more than item price")
83- else if ((E == d))
125+ else if ((V == d))
84126 then throw("Supplier does not exist")
85- else WriteSet([DataEntry(o(C, m), (q(C, m) + 1)), DataEntry(x(E), (z(E) + B.amount))])
127+ else WriteSet([DataEntry(G(T, s), (H(T, s) + 1)), DataEntry(O(V), (Q(V) + S.amount))])
86128 }
87129 }
88130
89131
90132
91-@Callable(A)
92-func addItem (t,D,F) = {
93- let E = toBase58String(A.caller.bytes)
94- let m = r(E, t)
95- if ((0 >= D))
133+@Callable(R)
134+func addItem (K,U,W) = {
135+ let V = toBase58String(R.caller.bytes)
136+ let s = I(V, K)
137+ if ((0 >= U))
96138 then throw("purchase amount can not be less than item price")
97- else if ((w(m) != d))
139+ else if ((N(s) != d))
98140 then throw("An item is already")
99- else WriteSet([DataEntry(v(m), E), DataEntry(l(m), D), DataEntry(u(m), F)])
141+ else WriteSet([DataEntry(M(s), V), DataEntry(E(s), U), DataEntry(L(s), W)])
100142 }
101143
102144
103145
104-@Callable(A)
146+@Callable(R)
105147 func withdraw () = {
106- let E = toBase58String(A.caller.bytes)
107- let G = z(E)
108- if ((0 >= G))
148+ let V = toBase58String(R.caller.bytes)
149+ let X = Q(V)
150+ if ((0 >= X))
109151 then throw("insufficient balance")
110- else ScriptResult(WriteSet([DataEntry(x(E), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(E), G, unit)]))
152+ else ScriptResult(WriteSet([DataEntry(O(V), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(V), X, unit)]))
111153 }
112154
113155
114-@Verifier(H)
115-func I () = {
116- let J = sigVerify(H.bodyBytes, H.proofs[0], a)
117- let K = sigVerify(H.bodyBytes, H.proofs[1], a)
118- let L = sigVerify(H.bodyBytes, H.proofs[2], a)
119- let M = sigVerify(H.bodyBytes, H.proofs[0], b)
120- let N = sigVerify(H.bodyBytes, H.proofs[1], b)
121- let O = sigVerify(H.bodyBytes, H.proofs[2], b)
122- let P = sigVerify(H.bodyBytes, H.proofs[0], c)
123- let Q = sigVerify(H.bodyBytes, H.proofs[1], c)
124- let R = sigVerify(H.bodyBytes, H.proofs[2], c)
125- let S = if (if (if (if (if (if (J)
126- then N
156+
157+@Callable(R)
158+func voteCommit (s,Y) = {
159+ let t = toBase58String(R.caller.bytes)
160+ let Z = w(s)
161+ let aa = A(s)
162+ if ((Z >= e))
163+ then throw("Reached max number of voters")
164+ else if ((u(s, t) != d))
165+ then throw("User has aready participated")
166+ else if ((M(s) == d))
167+ then throw("Item does not exist")
168+ else if (if ((aa != d))
169+ then (aa != g)
170+ else false)
171+ then throw("Voting is not possible")
172+ else WriteSet([DataEntry(r(s, t), Y), DataEntry(v(s), (Z + 1)), DataEntry(z(s), if ((Z == e))
173+ then h
174+ else g)])
175+ }
176+
177+
178+@Verifier(ab)
179+func ac () = {
180+ let ad = sigVerify(ab.bodyBytes, ab.proofs[0], a)
181+ let ae = sigVerify(ab.bodyBytes, ab.proofs[1], a)
182+ let af = sigVerify(ab.bodyBytes, ab.proofs[2], a)
183+ let ag = sigVerify(ab.bodyBytes, ab.proofs[0], b)
184+ let ah = sigVerify(ab.bodyBytes, ab.proofs[1], b)
185+ let ai = sigVerify(ab.bodyBytes, ab.proofs[2], b)
186+ let aj = sigVerify(ab.bodyBytes, ab.proofs[0], c)
187+ let ak = sigVerify(ab.bodyBytes, ab.proofs[1], c)
188+ let al = sigVerify(ab.bodyBytes, ab.proofs[2], c)
189+ let am = if (if (if (if (if (if (ad)
190+ then ah
127191 else false)
128192 then true
129- else if (J)
130- then O
193+ else if (ad)
194+ then ai
131195 else false)
132196 then true
133- else if (K)
134- then M
197+ else if (ae)
198+ then ag
135199 else false)
136200 then true
137- else if (K)
138- then O
201+ else if (ae)
202+ then ai
139203 else false)
140204 then true
141- else if (L)
142- then M
205+ else if (af)
206+ then ag
143207 else false)
144208 then true
145- else if (L)
146- then N
209+ else if (af)
210+ then ah
147211 else false
148- let T = if (if (if (if (if (if (P)
149- then K
212+ let an = if (if (if (if (if (if (aj)
213+ then ae
150214 else false)
151215 then true
152- else if (P)
153- then L
216+ else if (aj)
217+ then af
154218 else false)
155219 then true
156- else if (Q)
157- then J
220+ else if (ak)
221+ then ad
158222 else false)
159223 then true
160- else if (Q)
161- then L
224+ else if (ak)
225+ then af
162226 else false)
163227 then true
164- else if (R)
165- then J
228+ else if (al)
229+ then ad
166230 else false)
167231 then true
168- else if (R)
169- then K
232+ else if (al)
233+ then ae
170234 else false
171- let U = if (if (if (if (if (if (M)
172- then Q
235+ let ao = if (if (if (if (if (if (ag)
236+ then ak
173237 else false)
174238 then true
175- else if (M)
176- then R
239+ else if (ag)
240+ then al
177241 else false)
178242 then true
179- else if (N)
180- then P
243+ else if (ah)
244+ then aj
181245 else false)
182246 then true
183- else if (N)
184- then R
247+ else if (ah)
248+ then al
185249 else false)
186250 then true
187- else if (O)
188- then P
251+ else if (ai)
252+ then aj
189253 else false)
190254 then true
191- else if (O)
192- then Q
255+ else if (ai)
256+ then ak
193257 else false
194- let h = H
195- if ($isInstanceOf(h, "SetScriptTransaction"))
258+ let n = ab
259+ if ($isInstanceOf(n, "SetScriptTransaction"))
196260 then {
197- let V = h
261+ let ap = n
198262 true
199263 }
200- else if (if (S)
264+ else if (if (am)
201265 then true
202- else T)
266+ else an)
203267 then true
204- else U
268+ else ao
205269 }
206270
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'FXsc9LG44fGFsWEUFctaZ8pr75ZoWQuPc75fhhG6CQb7'
55
66 let b = base58'GtXeMqkP3JUjRf7EDptgqdEu5wkrkG4d2sbfUi5hYQVi'
77
88 let c = base58'9dnEr8G5eVHGJ5LkzueoK512pE3XBYBpe2ReLVcsrawT'
99
1010 let d = "none"
1111
12-func e (f) = {
13- let g = {
14- let h = getInteger(this, f)
15- if ($isInstanceOf(h, "Int"))
12+let e = 3
13+
14+let f = 2
15+
16+let g = "voting"
17+
18+let h = "reveal"
19+
20+let i = "featured"
21+
22+let j = "delisted"
23+
24+func k (l) = {
25+ let m = {
26+ let n = getInteger(this, l)
27+ if ($isInstanceOf(n, "Int"))
1628 then {
17- let i = h
18- i
29+ let o = n
30+ o
1931 }
2032 else 0
2133 }
22- g
34+ m
2335 }
2436
2537
26-func j (f) = {
27- let k = {
28- let h = getString(this, f)
29- if ($isInstanceOf(h, "String"))
38+func p (l) = {
39+ let q = {
40+ let n = getString(this, l)
41+ if ($isInstanceOf(n, "String"))
3042 then {
31- let i = h
32- i
43+ let o = n
44+ o
3345 }
3446 else d
3547 }
36- k
48+ q
3749 }
3850
3951
40-func l (m) = (m + "_price")
52+func r (s,t) = (((s + "_") + t) + "_commit")
4153
4254
43-func n (m) = e(l(m))
55+func u (s,t) = p(r(s, t))
4456
4557
46-func o (p,m) = (((m + "user") + p) + "_cnt")
58+func v (s) = (s + "_comcnt")
4759
4860
49-func q (p,m) = e(o(p, m))
61+func w (s) = k(v(s))
5062
5163
52-func r (s,t) = ("item_" + toBase58String(sha256(toBytes((s + t)))))
64+func x (s,t) = (((s + "_") + t) + "_reveal")
5365
5466
55-func u (m) = (m + "_data")
67+func y (s,t) = p(x(s, t))
5668
5769
58-func v (m) = (m + "_owner")
70+func z (s) = (s + "_status")
5971
6072
61-func w (m) = j(v(m))
73+func A (s) = p(z(s))
6274
6375
64-func x (y) = (y + "_balance")
76+func B (s,C) = ((s + "_res:") + C)
6577
6678
67-func z (y) = e(x(y))
79+func D (s,C) = k(B(s, C))
6880
6981
70-@Callable(A)
71-func purchase (m) = {
72- let B = extract(A.payment)
73- if (isDefined(B.assetId))
82+func E (s) = (s + "_price")
83+
84+
85+func F (s) = k(E(s))
86+
87+
88+func G (t,s) = (((s + "user") + t) + "_cnt")
89+
90+
91+func H (t,s) = k(G(t, s))
92+
93+
94+func I (J,K) = ("item_" + toBase58String(sha256(toBytes((J + K)))))
95+
96+
97+func L (s) = (s + "_data")
98+
99+
100+func M (s) = (s + "_owner")
101+
102+
103+func N (s) = p(M(s))
104+
105+
106+func O (P) = (P + "_balance")
107+
108+
109+func Q (P) = k(O(P))
110+
111+
112+@Callable(R)
113+func purchase (s) = {
114+ let S = extract(R.payment)
115+ if (isDefined(S.assetId))
74116 then throw("Can use WAVES only at the moment")
75117 else {
76- let C = toBase58String(A.caller.bytes)
77- let D = n(m)
78- let E = w(m)
79- if ((D > B.amount))
118+ let T = toBase58String(R.caller.bytes)
119+ let U = F(s)
120+ let V = N(s)
121+ if ((U > S.amount))
80122 then throw("Purchase amount can not be less than item price")
81- else if ((B.amount > D))
123+ else if ((S.amount > U))
82124 then throw("Purchase amount can not be more than item price")
83- else if ((E == d))
125+ else if ((V == d))
84126 then throw("Supplier does not exist")
85- else WriteSet([DataEntry(o(C, m), (q(C, m) + 1)), DataEntry(x(E), (z(E) + B.amount))])
127+ else WriteSet([DataEntry(G(T, s), (H(T, s) + 1)), DataEntry(O(V), (Q(V) + S.amount))])
86128 }
87129 }
88130
89131
90132
91-@Callable(A)
92-func addItem (t,D,F) = {
93- let E = toBase58String(A.caller.bytes)
94- let m = r(E, t)
95- if ((0 >= D))
133+@Callable(R)
134+func addItem (K,U,W) = {
135+ let V = toBase58String(R.caller.bytes)
136+ let s = I(V, K)
137+ if ((0 >= U))
96138 then throw("purchase amount can not be less than item price")
97- else if ((w(m) != d))
139+ else if ((N(s) != d))
98140 then throw("An item is already")
99- else WriteSet([DataEntry(v(m), E), DataEntry(l(m), D), DataEntry(u(m), F)])
141+ else WriteSet([DataEntry(M(s), V), DataEntry(E(s), U), DataEntry(L(s), W)])
100142 }
101143
102144
103145
104-@Callable(A)
146+@Callable(R)
105147 func withdraw () = {
106- let E = toBase58String(A.caller.bytes)
107- let G = z(E)
108- if ((0 >= G))
148+ let V = toBase58String(R.caller.bytes)
149+ let X = Q(V)
150+ if ((0 >= X))
109151 then throw("insufficient balance")
110- else ScriptResult(WriteSet([DataEntry(x(E), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(E), G, unit)]))
152+ else ScriptResult(WriteSet([DataEntry(O(V), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(V), X, unit)]))
111153 }
112154
113155
114-@Verifier(H)
115-func I () = {
116- let J = sigVerify(H.bodyBytes, H.proofs[0], a)
117- let K = sigVerify(H.bodyBytes, H.proofs[1], a)
118- let L = sigVerify(H.bodyBytes, H.proofs[2], a)
119- let M = sigVerify(H.bodyBytes, H.proofs[0], b)
120- let N = sigVerify(H.bodyBytes, H.proofs[1], b)
121- let O = sigVerify(H.bodyBytes, H.proofs[2], b)
122- let P = sigVerify(H.bodyBytes, H.proofs[0], c)
123- let Q = sigVerify(H.bodyBytes, H.proofs[1], c)
124- let R = sigVerify(H.bodyBytes, H.proofs[2], c)
125- let S = if (if (if (if (if (if (J)
126- then N
156+
157+@Callable(R)
158+func voteCommit (s,Y) = {
159+ let t = toBase58String(R.caller.bytes)
160+ let Z = w(s)
161+ let aa = A(s)
162+ if ((Z >= e))
163+ then throw("Reached max number of voters")
164+ else if ((u(s, t) != d))
165+ then throw("User has aready participated")
166+ else if ((M(s) == d))
167+ then throw("Item does not exist")
168+ else if (if ((aa != d))
169+ then (aa != g)
170+ else false)
171+ then throw("Voting is not possible")
172+ else WriteSet([DataEntry(r(s, t), Y), DataEntry(v(s), (Z + 1)), DataEntry(z(s), if ((Z == e))
173+ then h
174+ else g)])
175+ }
176+
177+
178+@Verifier(ab)
179+func ac () = {
180+ let ad = sigVerify(ab.bodyBytes, ab.proofs[0], a)
181+ let ae = sigVerify(ab.bodyBytes, ab.proofs[1], a)
182+ let af = sigVerify(ab.bodyBytes, ab.proofs[2], a)
183+ let ag = sigVerify(ab.bodyBytes, ab.proofs[0], b)
184+ let ah = sigVerify(ab.bodyBytes, ab.proofs[1], b)
185+ let ai = sigVerify(ab.bodyBytes, ab.proofs[2], b)
186+ let aj = sigVerify(ab.bodyBytes, ab.proofs[0], c)
187+ let ak = sigVerify(ab.bodyBytes, ab.proofs[1], c)
188+ let al = sigVerify(ab.bodyBytes, ab.proofs[2], c)
189+ let am = if (if (if (if (if (if (ad)
190+ then ah
127191 else false)
128192 then true
129- else if (J)
130- then O
193+ else if (ad)
194+ then ai
131195 else false)
132196 then true
133- else if (K)
134- then M
197+ else if (ae)
198+ then ag
135199 else false)
136200 then true
137- else if (K)
138- then O
201+ else if (ae)
202+ then ai
139203 else false)
140204 then true
141- else if (L)
142- then M
205+ else if (af)
206+ then ag
143207 else false)
144208 then true
145- else if (L)
146- then N
209+ else if (af)
210+ then ah
147211 else false
148- let T = if (if (if (if (if (if (P)
149- then K
212+ let an = if (if (if (if (if (if (aj)
213+ then ae
150214 else false)
151215 then true
152- else if (P)
153- then L
216+ else if (aj)
217+ then af
154218 else false)
155219 then true
156- else if (Q)
157- then J
220+ else if (ak)
221+ then ad
158222 else false)
159223 then true
160- else if (Q)
161- then L
224+ else if (ak)
225+ then af
162226 else false)
163227 then true
164- else if (R)
165- then J
228+ else if (al)
229+ then ad
166230 else false)
167231 then true
168- else if (R)
169- then K
232+ else if (al)
233+ then ae
170234 else false
171- let U = if (if (if (if (if (if (M)
172- then Q
235+ let ao = if (if (if (if (if (if (ag)
236+ then ak
173237 else false)
174238 then true
175- else if (M)
176- then R
239+ else if (ag)
240+ then al
177241 else false)
178242 then true
179- else if (N)
180- then P
243+ else if (ah)
244+ then aj
181245 else false)
182246 then true
183- else if (N)
184- then R
247+ else if (ah)
248+ then al
185249 else false)
186250 then true
187- else if (O)
188- then P
251+ else if (ai)
252+ then aj
189253 else false)
190254 then true
191- else if (O)
192- then Q
255+ else if (ai)
256+ then ak
193257 else false
194- let h = H
195- if ($isInstanceOf(h, "SetScriptTransaction"))
258+ let n = ab
259+ if ($isInstanceOf(n, "SetScriptTransaction"))
196260 then {
197- let V = h
261+ let ap = n
198262 true
199263 }
200- else if (if (S)
264+ else if (if (am)
201265 then true
202- else T)
266+ else an)
203267 then true
204- else U
268+ else ao
205269 }
206270

github/deemru/w8io/169f3d6 
74.41 ms