tx · 2Gc1ChoJABFaa7RwRLbV8Bhmimxor89mL2NM5UcxyheH

3N4LwDMgdFYmuTPSSMDG9XUBxh58SuFrkg5:  -0.01400000 Waves

2019.07.03 07:42 [568769] smart account 3N4LwDMgdFYmuTPSSMDG9XUBxh58SuFrkg5 > SELF 0.00000000 Waves

{ "type": 13, "id": "2Gc1ChoJABFaa7RwRLbV8Bhmimxor89mL2NM5UcxyheH", "fee": 1400000, "feeAssetId": null, "timestamp": 1562128894460, "version": 1, "sender": "3N4LwDMgdFYmuTPSSMDG9XUBxh58SuFrkg5", "senderPublicKey": "Gxyog9TfcQ5vAbvv8M5gFtxfN6YDuSzQPnn2QPLZHQ8W", "proofs": [ "4ikYuGQx48ArvJAJd91edoBKZWfZTvdbStAvKeQv6ssSYHCU7CJvjQGrcakba4FNHJH65PCuFfpLffRETnZZmVeH" ], "script": "base64:AAIDAAAAAAAAAAAAAAAhAAAAAAROT05FAgAAAARub25lAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAANudW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAFAAAAA251bQEAAAALZ2V0U3RyQnlLZXkAAAABAAAAA2tleQQAAAADc3RyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAROT05FBQAAAANzdHIBAAAAD2dldEtleUl0ZW1QcmljZQAAAAEAAAAEaXRlbQkAASwAAAACBQAAAARpdGVtAgAAAAZfcHJpY2UBAAAAEWdldFZhbHVlSXRlbVByaWNlAAAAAQAAAARpdGVtCQEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABCQEAAAAPZ2V0S2V5SXRlb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mV3Vm90ZUNvdW50BQAAAAZRVU9SVU0FAAAABHZvdGUFAAAABlJFVkVBTAUAAAADbmlsAAAAAHhFkrk=", "chainId": 84, "height": 568769, "spentComplexity": 0 } View: original | compacted Prev: 9eBwpAHo8Af81WbbsHZk4tSipb5ZoE72TvpAro9FR5Dh Next: none Diff:
OldNewDifferences
117117 if ($isInstanceOf(e, "String"))
118118 then {
119119 let f = e
120- v
120+ f
121121 }
122122 else a
123123 }
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 f = e
2626 f
2727 }
2828 else a
2929 }
3030 h
3131 }
3232
3333
3434 func i (j) = (j + "_price")
3535
3636
3737 func k (j) = b(i(j))
3838
3939
4040 func l (m,j) = (((j + "_") + m) + "_cnt")
4141
4242
4343 func n (m,j) = b(l(m, j))
4444
4545
4646 func o (p,q) = ("item_" + toBase58String(sha256(toBytes((p + q)))))
4747
4848
4949 func r (j) = (j + "_data")
5050
5151
5252 func s (j) = (j + "_owner")
5353
5454
5555 func t (j) = g(s(j))
5656
5757
5858 func u (v) = (v + "_balance")
5959
6060
6161 func w (v) = b(u(v))
6262
6363
6464 let x = 3
6565
6666 let y = 2
6767
6868 let z = "voting"
6969
7070 let A = "reveal"
7171
7272 let B = "featured"
7373
7474 let C = "delisted"
7575
7676 func D (j,m) = (((j + "_") + m) + "_commit")
7777
7878
7979 func E (j,m) = g(D(j, m))
8080
8181
8282 func F (j) = (j + "_comcnt")
8383
8484
8585 func G (j) = b(F(j))
8686
8787
8888 func H (j,m) = (((j + "_") + m) + "_reveal")
8989
9090
9191 func I (j,m) = g(H(j, m))
9292
9393
9494 func J (j) = (j + "_status")
9595
9696
9797 func K (j) = g(J(j))
9898
9999
100100 func L (j,M) = ((j + "_res") + M)
101101
102102
103103 func N (j,M) = b(L(j, M))
104104
105105
106106 func O () = extract(addressFromString("3N4ynv5cxsVeGSMoHBhiKKYcMmgZcDz8rzh"))
107107
108108
109109 let P = "blacklisted"
110110
111111 func Q (R) = (R + "_verified_status")
112112
113113
114114 func S (T,v) = {
115115 let h = {
116116 let e = getString(T, Q(v))
117117 if ($isInstanceOf(e, "String"))
118118 then {
119119 let f = e
120- v
120+ f
121121 }
122122 else a
123123 }
124124 h
125125 }
126126
127127
128128 @Callable(U)
129129 func addItem (q,V,W) = {
130130 let R = toBase58String(U.caller.bytes)
131131 let j = o(R, q)
132132 let X = S(O(), R)
133133 if ((0 >= V))
134134 then throw("purchase amount cannot be less than price")
135135 else if ((t(j) != a))
136136 then throw("an item is already exist")
137137 else if ((X == P))
138138 then throw("your account is blacklisted")
139139 else WriteSet([DataEntry(s(j), R), DataEntry(i(j), V), DataEntry(r(j), W), DataEntry(Q(R), X)])
140140 }
141141
142142
143143
144144 @Callable(Y)
145145 func purchase (j) = {
146146 let Z = extract(Y.payment)
147147 if (isDefined(Z.assetId))
148148 then throw("You can use only Waves to purchase an item")
149149 else {
150150 let aa = toBase58String(Y.caller.bytes)
151151 let V = k(j)
152152 let R = t(j)
153153 if ((V > Z.amount))
154154 then throw("purchase amount less than item price")
155155 else if ((Z.amount > V))
156156 then throw("purchase amount higher than item price")
157157 else WriteSet([DataEntry(l(aa, j), (n(aa, j) + 1)), DataEntry(u(R), (w(R) + Z.amount))])
158158 }
159159 }
160160
161161
162162
163163 @Callable(ab)
164164 func withdraw () = {
165165 let R = toBase58String(ab.caller.bytes)
166166 let ac = w(R)
167167 if ((0 >= ac))
168168 then throw("insufficient funds")
169169 else ScriptResult(WriteSet([DataEntry(u(R), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(R), ac, unit)]))
170170 }
171171
172172
173173
174174 @Callable(ad)
175175 func voteCommit (j,ae) = {
176176 let m = toBase58String(ad.caller.bytes)
177177 let af = G(j)
178178 let ag = K(j)
179179 if ((af >= x))
180180 then throw("reached max num of voters")
181181 else if ((E(j, m) != a))
182182 then throw("user has already participated")
183183 else if ((s(j) == a))
184184 then throw("item does not exist")
185185 else if (if ((ag != a))
186186 then (ag != z)
187187 else false)
188188 then throw("voting is not possible")
189189 else WriteSet([DataEntry(D(j, m), ae), DataEntry(F(j), (af + 1)), DataEntry(J(j), if ((af == x))
190190 then A
191191 else z)])
192192 }
193193
194194
195195
196196 @Callable(ah)
197197 func voteReveal (j,M,ai) = {
198198 let m = toBase58String(ah.caller.bytes)
199199 let ag = K(j)
200200 let aj = N(j, M)
201201 if ((toBase58String(sha256(toBytes((M + ai)))) != E(j, m)))
202202 then throw("reveal data is not valid")
203203 else if ((x > G(j)))
204204 then throw("max num of voters has not reached yet")
205205 else if ((I(j, m) != a))
206206 then throw("user has already participated")
207207 else if (if ((ag != z))
208208 then (ag != A)
209209 else false)
210210 then throw("wrong status")
211211 else if (if ((M != B))
212212 then (M != C)
213213 else false)
214214 then throw("wrong vote")
215215 else if (if ((ag == B))
216216 then (ag == C)
217217 else false)
218218 then throw("votу has finished")
219219 else WriteSet([DataEntry(H(j, m), M), DataEntry(L(j, M), aj), DataEntry(J(j), if ((aj >= y))
220220 then M
221221 else A)])
222222 }
223223
224224

github/deemru/w8io/026f985 
43.51 ms