tx · 8a2RiMTdezb3nFeqn3CoJmhibQ5LRMj89RXbnF1PDPx1

3Ms6Ht5bdVJa6sQnRBUg9nfNpEp7obSad8o:  -0.05000000 Waves

2019.08.12 17:45 [627981] smart account 3Ms6Ht5bdVJa6sQnRBUg9nfNpEp7obSad8o > SELF 0.00000000 Waves

{ "type": 13, "id": "8a2RiMTdezb3nFeqn3CoJmhibQ5LRMj89RXbnF1PDPx1", "fee": 5000000, "feeAssetId": null, "timestamp": 1565621105133, "version": 1, "sender": "3Ms6Ht5bdVJa6sQnRBUg9nfNpEp7obSad8o", "senderPublicKey": "Ebb2ffqL8cMnNmXPNvHLy53xrK7t5WaSFhneCPBSoxop", "proofs": [ "38tPC2NvnovTXpC9EdYhkPGmAAMBwre6nRojPbFgwTANRHDxbjfKYPsLzcbJ8wJ8z1zRkpYmbtwWj7skEa5BGWhr" ], "script": "base64:AAIDAAAAAAAAAAAAAAAhAAAAAAROT05FAgAAAARub25lAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAANudW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWkFAAAAByRtYXRjaDAFAAAAAWkAAAAAAAAAAAAFAAAAA251bQEAAAALZ2V0U3RyQnlLZXkAAAABAAAAA2tleQQAAAADc3RyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFzBQAAAAckbWF0Y2gwBQAAAAFzBQAAAAROT05FBQAAAANzdHIBAAAAD2dldEtleUl0ZW1QcmljZQAAAAEAAAAEaXRlbQkAASwAAAACBQAAAARpdGVtAgAAAAZfcHJpY2UBAAAAEWdldFZhbHVlSXRlbVByaWNlAAAAAQAAAARpdGVtCQEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABCQEAAAAPZ2V0S2V5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PGLQ7jynfqSm8qYppi4tFQ1ph6N6NmghLSsPp7kegr Diff:
OldNewDifferences
113113
114114 func S (T,w) = {
115115 let h = {
116- let e = getString(addressFromStringValue("3MwyDYbjXQ9VRWnPkubmGgypox7663uCLxT"), "3Myck2t9MpHGk7kuytwFRrzbBmm6v5hgZ5x_verifier_status")
116+ let e = getString(addressFromStringValue("3MwyDYbjXQ9VRWnPkubmGgypox7663uCLxT"), R(w))
117117 if ($isInstanceOf(e, "String"))
118118 then {
119119 let U = e
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "none"
55
66 func b (c) = {
77 let d = {
88 let e = getInteger(this, c)
99 if ($isInstanceOf(e, "Int"))
1010 then {
1111 let f = e
1212 f
1313 }
1414 else 0
1515 }
1616 d
1717 }
1818
1919
2020 func g (c) = {
2121 let h = {
2222 let e = getString(this, c)
2323 if ($isInstanceOf(e, "String"))
2424 then {
2525 let i = e
2626 i
2727 }
2828 else a
2929 }
3030 h
3131 }
3232
3333
3434 func j (k) = (k + "_price")
3535
3636
3737 func l (k) = b(j(k))
3838
3939
4040 func m (n,k) = (((k + "_") + n) + "_cnt")
4141
4242
4343 func o (n,k) = b(m(n, k))
4444
4545
4646 func p (q,r) = ("item_" + toBase58String(sha256(toBytes((q + r)))))
4747
4848
4949 func s (k) = (k + "_data")
5050
5151
5252 func t (k) = (k + "_owner")
5353
5454
5555 func u (k) = g(t(k))
5656
5757
5858 func v (w) = (w + "_balance")
5959
6060
6161 func x (w) = b(v(w))
6262
6363
6464 let y = 3
6565
6666 let z = 2
6767
6868 let A = "voting"
6969
7070 let B = "reveal"
7171
7272 let C = "featured"
7373
7474 let D = "delisted"
7575
7676 func E (k,n) = (((k + "_") + n) + "_commit")
7777
7878
7979 func F (k,n) = g(E(k, n))
8080
8181
8282 func G (k) = (k + "_comcnt")
8383
8484
8585 func H (k) = b(G(k))
8686
8787
8888 func I (k,n) = (((k + "_") + n) + "_reveal")
8989
9090
9191 func J (k,n) = g(I(k, n))
9292
9393
9494 func K (k) = (k + "_status")
9595
9696
9797 func L (k) = g(K(k))
9898
9999
100100 func M (k,N) = ((k + "_res:") + N)
101101
102102
103103 func O (k,N) = b(M(k, N))
104104
105105
106106 func P () = addressFromStringValue("3MwyDYbjXQ9VRWnPkubmGgypox7663uCLxT")
107107
108108
109109 let Q = "blacklisted"
110110
111111 func R (w) = (w + "_verifier_status")
112112
113113
114114 func S (T,w) = {
115115 let h = {
116- let e = getString(addressFromStringValue("3MwyDYbjXQ9VRWnPkubmGgypox7663uCLxT"), "3Myck2t9MpHGk7kuytwFRrzbBmm6v5hgZ5x_verifier_status")
116+ let e = getString(addressFromStringValue("3MwyDYbjXQ9VRWnPkubmGgypox7663uCLxT"), R(w))
117117 if ($isInstanceOf(e, "String"))
118118 then {
119119 let U = e
120120 U
121121 }
122122 else a
123123 }
124124 h
125125 }
126126
127127
128128 @Callable(V)
129129 func addItem (r,W,X) = {
130130 let Y = toBase58String(V.caller.bytes)
131131 let k = p(Y, r)
132132 let Z = R(Y)
133133 let aa = P()
134134 let ab = S(addressFromStringValue("3MwyDYbjXQ9VRWnPkubmGgypox7663uCLxT"), R(Y))
135135 throw(("supplierWhiteList: " + ab))
136136 }
137137
138138
139139
140140 @Callable(V)
141141 func purchase (k) = {
142142 let ac = extract(V.payment)
143143 if (isDefined(ac.assetId))
144144 then throw("Only payments in WAVES are avalible")
145145 else {
146146 let ad = toBase58String(V.caller.bytes)
147147 let W = l(k)
148148 let Y = u(k)
149149 if ((W > ac.amount))
150150 then throw("Please send exact coupon price")
151151 else if ((ac.amount > W))
152152 then throw("Please send exact coupon price")
153153 else WriteSet([DataEntry(m(ad, k), (o(ad, k) + 1)), DataEntry(v(Y), (x(Y) + ac.amount))])
154154 }
155155 }
156156
157157
158158
159159 @Callable(V)
160160 func withdraw () = {
161161 let Y = toBase58String(V.caller.bytes)
162162 let ae = x(Y)
163163 if ((0 >= ae))
164164 then throw("Ballance is zero")
165165 else ScriptResult(WriteSet([DataEntry(v(Y), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(Y), ae, unit)]))
166166 }
167167
168168
169169
170170 @Callable(V)
171171 func voteCommit (k,af) = {
172172 let n = toBase58String(V.caller.bytes)
173173 let ag = H(k)
174174 let ah = L(k)
175175 if ((ag >= y))
176176 then throw("We have reached necessary number of voters")
177177 else if ((F(k, n) != a))
178178 then throw("User has already voted")
179179 else if ((t(k) == a))
180180 then throw("Item does not exist")
181181 else if (if ((ah != a))
182182 then (ah != A)
183183 else false)
184184 then throw("Voting is not possible")
185185 else WriteSet([DataEntry(E(k, n), af), DataEntry(G(k), (ag + 1)), DataEntry(K(k), if ((ag == y))
186186 then B
187187 else A)])
188188 }
189189
190190
191191
192192 @Callable(V)
193193 func revealVotes (k,N,ai) = {
194194 let n = toBase58String(V.caller.bytes)
195195 let ag = H(k)
196196 let ah = L(k)
197197 let aj = (O(k, N) + 1)
198198 if ((toBase58String(sha256(toBytes((N + ai)))) != F(k, n)))
199199 then throw("Reveal data is not valid")
200200 else if ((y > H(k)))
201201 then throw("Necessary number of voters hasn't reached yet")
202202 else if ((J(k, n) != a))
203203 then throw("User has already revealed his vote")
204204 else if (if ((ah != A))
205205 then (ah != B)
206206 else false)
207207 then throw("Wrong status of vote")
208208 else if (if ((N != C))
209209 then (N != D)
210210 else false)
211211 then throw("Wrong vote")
212212 else if (if ((ah == C))
213213 then true
214214 else (ah == D))
215215 then throw("Voting complited")
216216 else WriteSet([DataEntry(I(k, n), N), DataEntry(M(k, N), aj), DataEntry(K(k), if ((aj >= z))
217217 then N
218218 else B)])
219219 }
220220
221221

github/deemru/w8io/026f985 
29.39 ms