tx · 8bMhTGgYFuqPkANbUDW8StC2ZiPfWsbpdZWjqazc5XFZ

3MqJSgaGysZHEL8MPCezZBUSLTe28aVYkmE:  -0.01000000 Waves

2019.07.12 12:27 [582325] smart account 3MqJSgaGysZHEL8MPCezZBUSLTe28aVYkmE > SELF 0.00000000 Waves

{ "type": 13, "id": "8bMhTGgYFuqPkANbUDW8StC2ZiPfWsbpdZWjqazc5XFZ", "fee": 1000000, "feeAssetId": null, "timestamp": 1562923666591, "version": 1, "sender": "3MqJSgaGysZHEL8MPCezZBUSLTe28aVYkmE", "senderPublicKey": "4NjTUyuS95S87YqcR16PkUY6Epu7cBpLJL41gCxAj6gc", "proofs": [ "vBktSGbhVrrxuppTrSYAdCQCS8QDoLFZwg7cQtMihXTn3y4wMR4ZZ2TQMEeQxzEsFpFpNhuwKcHSvwWmiQwnY8H" ], "script": "base64:AAIDAAAAAAAAAAAAAAAhAAAAAAROT05FAgAAAARub25lAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAANudW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAFAAAAA251bQEAAAALZ2V0U3RyQnlLZXkAAAABAAAAA2tleQQAAAADc3RyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAROT05FBQAAAANzdHIBAAAAD2dldEtleUl0ZW1QcmljZQAAAAEAAAAEaXRlbQkAASwAAAACBQAAAARpdGVtAgAAAAZfcHJpY2UBAAAAEWdldFZhbHVlSXRlbVByaWNlAAAAAQAAAARpdGVtCQEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABCQEAAAAPZ2V0S2V5SXRlbVBy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BQAAAA9zdXBwbGllckFkZHJlc3MAAAAAAAAAAAAFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAAD3N1cHBsaWVyQWRkcmVzcwUAAAAHYmFsYW5jZQUAAAAEdW5pdAUAAAADbmlsAAAAAAahJxo=", "chainId": 84, "height": 582325, "spentComplexity": 0 } View: original | compacted Prev: none Next: 3kuPpQ8s8tjGxFqhoBuWwXGFY9Su5XaP9af6j1cNVHFC Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "none"
5+
6+func b (c) = {
7+ let d = {
8+ let e = getInteger(this, c)
9+ if ($isInstanceOf(e, "Int"))
10+ then {
11+ let f = e
12+ f
13+ }
14+ else 0
15+ }
16+ d
17+ }
18+
19+
20+func g (c) = {
21+ let h = {
22+ let e = getString(this, c)
23+ if ($isInstanceOf(e, "String"))
24+ then {
25+ let f = e
26+ f
27+ }
28+ else a
29+ }
30+ h
31+ }
32+
33+
34+func i (j) = (j + "_price")
35+
36+
37+func k (j) = b(i(j))
38+
39+
40+func l (m,j) = (((j + "_") + m) + "_cnt")
41+
42+
43+func n (m,j) = b(l(m, j))
44+
45+
46+func o (p,q) = ("item_" + toBase58String(sha256(toBytes((p + q)))))
47+
48+
49+func r (j) = (j + "_data")
50+
51+
52+func s (j) = (j + "_owner")
53+
54+
55+func t (j) = g(s(j))
56+
57+
58+func u (v) = (v + "_balance")
59+
60+
61+func w (v) = b(u(v))
62+
63+
64+let x = 3
65+
66+let y = 2
67+
68+let z = "voting"
69+
70+let A = "reveal"
71+
72+let B = "featured"
73+
74+let C = "delisted"
75+
76+func D (j,m) = (((j + "_") + m) + "_commit")
77+
78+
79+func E (j,m) = g(D(j, m))
80+
81+
82+func F (j) = (j + "_comcnt")
83+
84+
85+func G (j) = b(F(j))
86+
87+
88+func H (j,m) = (((j + "_") + m) + "_reveal")
89+
90+
91+func I (j,m) = g(H(j, m))
92+
93+
94+func J (j) = (j + "_status")
95+
96+
97+func K (j) = g(J(j))
98+
99+
100+func L (j,M) = ((j + "_res:") + M)
101+
102+
103+func N (j,M) = b(L(j, M))
104+
105+
106+func O () = extract(addressFromString("3MuH3kFrWJmBpwFnUjURhKi2ST46KjjFWFu"))
107+
108+
109+let P = "blacklist"
110+
111+func Q (v) = (v + "_verifier_status")
112+
113+
114+func R (S,v) = {
115+ let h = {
116+ let e = getString(S, Q(v))
117+ if ($isInstanceOf(e, "String"))
118+ then {
119+ let f = e
120+ f
121+ }
122+ else a
123+ }
124+ h
125+ }
126+
127+
128+@Callable(T)
129+func voteCommit (j,U) = {
130+ let m = toBase58String(T.caller.bytes)
131+ let V = G(j)
132+ let W = K(j)
133+ if ((V >= x))
134+ then throw("Reached max num of voters")
135+ else if ((E(j, m) != a))
136+ then throw("User has already participated")
137+ else if ((s(j) == a))
138+ then throw("Item does not exist")
139+ else if (if ((W != a))
140+ then (W != z)
141+ else false)
142+ then throw("Voting is not possible")
143+ else WriteSet([DataEntry(D(j, m), U), DataEntry(F(j), (V + 1)), DataEntry(J(j), if ((V == x))
144+ then A
145+ else z)])
146+ }
147+
148+
149+
150+@Callable(T)
151+func voteReveal (j,M,X) = {
152+ let m = toBase58String(T.caller.bytes)
153+ let W = K(j)
154+ let Y = (N(j, M) + 1)
155+ if ((toBase58String(sha256(toBytes((M + X)))) != E(j, m)))
156+ then throw(((("Reveal data is not valid " + toBase58String(sha256(toBytes((M + X))))) + " is different from ") + E(j, m)))
157+ else if ((x > G(j)))
158+ then throw("Max num of voters hasn't reached yet")
159+ else if ((I(j, m) != a))
160+ then throw("User has already participated")
161+ else if (if ((W != z))
162+ then (W != A)
163+ else false)
164+ then throw("Wrong Status")
165+ else if (if ((M != B))
166+ then (M != C)
167+ else false)
168+ then throw("Wrong Vote")
169+ else if (if ((W == B))
170+ then true
171+ else (W == C))
172+ then throw("Vote has finished")
173+ else WriteSet([DataEntry(H(j, m), M), DataEntry(L(j, M), Y), DataEntry(J(j), if ((Y >= y))
174+ then M
175+ else A)])
176+ }
177+
178+
179+
180+@Callable(T)
181+func addItem (q,Z,aa) = {
182+ let ab = toBase58String(T.caller.bytes)
183+ let j = o(ab, q)
184+ let ac = R(O(), ab)
185+ if ((0 >= Z))
186+ then throw("Purchase amount cannot be less than item price")
187+ else if ((t(j) != a))
188+ then throw("An item already exists")
189+ else if ((ac == P))
190+ then throw("Supplier is BLACKLISTED")
191+ else WriteSet([DataEntry(s(j), ab), DataEntry(i(j), Z), DataEntry(r(j), aa)])
192+ }
193+
194+
195+
196+@Callable(T)
197+func purchase (j) = {
198+ let ad = extract(T.payment)
199+ if (isDefined(ad.assetId))
200+ then throw("WAVES tokens only at the moment")
201+ else {
202+ let ae = toBase58String(T.caller.bytes)
203+ let Z = k(j)
204+ let ab = t(j)
205+ if ((Z > ad.amount))
206+ then throw("Purchase amount cannot be less than item price")
207+ else if ((ad.amount > Z))
208+ then throw("Purchase amount cannot be higher than item price")
209+ else if ((ab == a))
210+ then throw("Supplier doesn't exist")
211+ else WriteSet([DataEntry(l(ae, j), (n(ae, j) + 1)), DataEntry(u(ab), (w(ab) + ad.amount))])
212+ }
213+ }
214+
215+
216+
217+@Callable(T)
218+func withdraw () = {
219+ let ab = toBase58String(T.caller.bytes)
220+ let af = w(ab)
221+ if ((0 >= af))
222+ then throw("Insufficient balance")
223+ else ScriptResult(WriteSet([DataEntry(u(ab), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(ab), af, unit)]))
224+ }
225+
226+

github/deemru/w8io/169f3d6 
20.67 ms