tx · 4AQP6i4W2zDTGUAvjDSQEjtLABDCzLrC6TjpnKL92aAc

3Mv2rcr2Rr8XcDqyHUQassoAuDXDsSfs4jg:  -0.01400000 Waves

2021.04.10 13:33 [1476240] smart account 3Mv2rcr2Rr8XcDqyHUQassoAuDXDsSfs4jg > SELF 0.00000000 Waves

{ "type": 13, "id": "4AQP6i4W2zDTGUAvjDSQEjtLABDCzLrC6TjpnKL92aAc", "fee": 1400000, "feeAssetId": null, "timestamp": 1618050911377, "version": 2, "chainId": 84, "sender": "3Mv2rcr2Rr8XcDqyHUQassoAuDXDsSfs4jg", "senderPublicKey": "2zUv98HwTLKA5GbDA2VDnXgpUx5M6USvLzsBeff9V2i2", "proofs": [ "2sqJjwR73ACbFHTcggNETN7uaH3FugL8zKv3ubVPEuyBLRXQYv9K7KEzWidPgM3P4CrH61f6J2dP5fmAvVJZ1U7z" ], "script": "base64:AAIEAAAAAAAAACkIAhIECgIBCBIDCgEIEgMKAQgSAwoBCBIFCgMICAgSBAoCCAgSAwoBCAAAACIAAAAACHVuaXRUZXN0BwAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAAMYXJ0d29ya3NEYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQnluZmJYQzJLYXN0VXhodWtjTVVhRTU4SzljQmRCOVVZAAAAAAtmZWVSZWNlaXZlcgIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAACHVzZXJEYXBwAwUAAAAIdW5pdFRlc3QJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM010NFJHTUV5alNXWUFvY1RQcWQ1NXdkSFF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bGxlcgkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIFAAAACmJpZERhdGFBcnIAAAAAAAAAAAEFAAAAB2Fzc2V0SWQFAAAAA25pbAAAAAFpAQAAAAtkZWxldGVFbnRyeQAAAAEAAAAFZW50cnkEAAAABmNhbGxlcgkABCUAAAABCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQAAAAAAAAIFAAAABmNhbGxlcgUAAAAFY2hyaXMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFZW50cnkFAAAAA25pbAkAAAIAAAABAgAAAAJubwAAAAAkzqEq", "height": 1476240, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: KZfQuTnY2Jy3fLYrDWSFMkf1eghY8zzKQnJTveVtvSV Next: 7JTZZKCvDUZ3Kzbb11UX5ezwkvc58qw1TFzEU4xAXHA6 Diff:
OldNewDifferences
257257 let at = w((((((((("offer_" + R) + "_") + S) + "_") + ar) + "_") + aq) + "_OPEN"))
258258 if ((at == ""))
259259 then throw("Offer not found")
260- else if (true)
261- then throw("hihi")
262- else {
263- let au = split(at, "_")
264- if ((au[5] != "OPEN"))
265- then throw(("Offer is already " + au[5]))
266- else {
267- let ai = w((((("sale_info_" + S) + "_") + R) + "_OPEN"))
268- if ((size(ai) == 0))
269- then throw("Sale Not found!")
270- else {
271- let av = ((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq)
272- let aw = U(((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq))
273- let W = aw._1
274- let O = aw._2
275- let V = aw._3
276- let K = value(parseInt(W[1]))
277- let am = fraction(K, m, 100)
278- let an = (K - am)
260+ else {
261+ let ai = w((((("sale_info_" + S) + "_") + R) + "_OPEN"))
262+ if ((size(ai) == 0))
263+ then throw("Sale Not found!")
264+ else {
265+ let au = ((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq)
266+ let av = U(((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq))
267+ let W = av._1
268+ let O = av._2
269+ let V = av._3
270+ let K = value(parseInt(W[1]))
271+ let am = fraction(K, m, 100)
272+ let an = (K - am)
279273 [DeleteEntry((((("sale_info_" + S) + "_") + R) + "_OPEN")), DeleteEntry((((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq) + "_OPEN")), StringEntry((((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq) + "_CLOSED"), ((((((((toString(ab) + "_") + toString(K)) + "_") + toBase58String(value(O))) + "_to_") + ar) + "_") + aq)), StringEntry((((((((("sale_info_" + S) + "_") + R) + "_") + toString(ab)) + "_") + F) + "_CLOSED"), ((((((toString(ab) + "_") + toString(K)) + "_") + toBase58String(value(O))) + "_to_") + ar)), StringEntry(((("sale_status_" + S) + "_") + R), "CLOSED"), StringEntry(("current_owner_on_dapp_" + R), "none"), ScriptTransfer(Address(fromBase58String(e)), am, O), ScriptTransfer(Address(fromBase58String(S)), an, O), ScriptTransfer(Address(fromBase58String(W[3])), 1, fromBase58String(R))]
280- }
281- }
282- }
274+ }
275+ }
283276 }
284277 }
285278
287280
288281 @Callable(H)
289282 func cancelOffer (R,aq) = {
290- let ax = G(H)
291- let F = ax._1
292- let aa = ax._2
293- let ab = ax._3
283+ let aw = G(H)
284+ let F = aw._1
285+ let aa = aw._2
286+ let ab = aw._3
294287 let S = Q(R)
295- let av = ((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq)
296- let ay = U(((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq))
297- let W = ay._1
298- let O = ay._2
299- let V = ay._3
300- let az = "CANCELLED"
301-[DeleteEntry((av + "_OPEN")), StringEntry(((av + "_") + az), ((V + "_") + toString(ab))), ScriptTransfer(Address(fromBase58String(aa)), parseIntValue(W[1]), O)]
288+ let au = ((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq)
289+ let ax = U(((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq))
290+ let W = ax._1
291+ let O = ax._2
292+ let V = ax._3
293+ let ay = "CANCELLED"
294+[DeleteEntry((au + "_OPEN")), StringEntry(((au + "_") + ay), ((V + "_") + toString(ab))), ScriptTransfer(Address(fromBase58String(aa)), parseIntValue(W[1]), O)]
302295 }
303296
304297
305298
306299 @Callable(H)
307-func deleteEntry (aA) = {
300+func deleteEntry (az) = {
308301 let aa = toString(addressFromPublicKey(H.callerPublicKey))
309302 if ((aa == k))
310- then [DeleteEntry(aA)]
303+ then [DeleteEntry(az)]
311304 else throw("no")
312305 }
313306
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = false
55
66 let b = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
77
88 let c = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB"))
99
1010 let d = value(addressFromString("3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY"))
1111
1212 let e = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
1313
1414 let f = if (a)
1515 then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm"))
1616 else value(addressFromString("3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj"))
1717
1818 let g = value(addressFromString("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq"))
1919
2020 let h = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
2121
2222 let i = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
2323
2424 let j = base58''
2525
2626 let k = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
2727
2828 let l = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
2929
3030 let m = 3
3131
3232 let n = 10
3333
3434 let o = valueOrElse(getBoolean(f, "conf_dapp_is_running"), true)
3535
3636 let p = valueOrElse(getString(f, "conf_maintenance_msg"), "")
3737
3838 let q = "SUSPENDED"
3939
4040 let r = "REMOVED"
4141
4242 let s = "ILLEGAL"
4343
4444 func t (u) = valueOrElse(getString(f, u), "Error")
4545
4646
4747 func v (u) = valueOrElse(getString(d, u), "")
4848
4949
5050 func w (u) = valueOrElse(getString(this, u), "")
5151
5252
5353 func x (u) = valueOrElse(getInteger(this, u), 0)
5454
5555
5656 func y (z) = ("user_status_" + z)
5757
5858
5959 func A (B,C) = ((("art_signid_" + C) + "_") + B)
6060
6161
6262 func D (B,C) = ((("art_flag_" + C) + "_") + B)
6363
6464
6565 func E (F) = ("nft_" + F)
6666
6767
6868 func G (H) = if (!(o))
6969 then throw(p)
7070 else $Tuple3(toBase58String(H.transactionId), toBase58String(H.caller.bytes), lastBlock.timestamp)
7171
7272
7373 func I (H) = if ((size(H.payments) == 0))
7474 then throw("No payment attached")
7575 else {
7676 let J = value(H.payments[0])
7777 let K = value(J.amount)
7878 $Tuple2(J, K)
7979 }
8080
8181
8282 func L (F) = {
8383 let M = value(assetInfo(F))
8484 if (if (if (if ((M.quantity != 1))
8585 then true
8686 else (M.decimals != 0))
8787 then true
8888 else (M.reissuable != false))
8989 then true
9090 else (M.issuer != d))
9191 then false
9292 else true
9393 }
9494
9595
9696 func N (O) = if (if (if (if ((O != toBase58String(h)))
9797 then (O != toBase58String(j))
9898 else false)
9999 then (O != "WAVES")
100100 else false)
101101 then (O != toBase58String(i))
102102 else false)
103103 then false
104104 else true
105105
106106
107107 func P (O) = if ((O == "WAVES"))
108108 then unit
109109 else fromBase58String(O)
110110
111111
112112 func Q (R) = {
113113 let S = w(("current_owner_on_dapp_" + R))
114114 if ((S == "none"))
115115 then throw("NFT not found")
116116 else {
117117 let T = w(((("sale_status_" + S) + "_") + R))
118118 if ((T != "OPEN"))
119119 then throw("NFT not for sale")
120120 else S
121121 }
122122 }
123123
124124
125125 func U (u) = {
126126 let V = w((u + "_OPEN"))
127127 if ((V == ""))
128128 then throw("Bid not found")
129129 else {
130130 let W = split(V, "_")
131131 let O = P(W[0])
132132 $Tuple3(W, O, V)
133133 }
134134 }
135135
136136
137137 @Callable(H)
138138 func sellNFT (X,Y) = {
139139 let Z = G(H)
140140 let F = Z._1
141141 let aa = Z._2
142142 let ab = Z._3
143143 let ac = I(H)
144144 let J = ac._1
145145 let K = ac._2
146146 let O = if (if (isDefined(J.assetId))
147147 then L(value(J.assetId))
148148 else false)
149149 then J.assetId
150150 else throw("No NFT found")
151151 if (!(N(Y)))
152152 then throw("Only SIGN, USDN or WAVES accepted")
153153 else {
154154 let ad = split(v(E(toBase58String(value(O)))), "_")
155155 let ae = v(A(ad[6], ad[5]))
156156 if ((size(ae) == 0))
157157 then throw("Artwork not found on SIGN Art")
158158 else {
159159 let af = v(D(ad[6], ad[5]))
160160 if ((af == s))
161161 then throw("Original Artwork flagged as ILLEGAL")
162162 else {
163163 let ag = t(y(ad[6]))
164164 if (containsElement([q, r], ag))
165165 then throw(("Original Artist " + ag))
166166 else [StringEntry((((("sale_info_" + aa) + "_") + toBase58String(value(J.assetId))) + "_OPEN"), ((((toString(ab) + "_") + toString(X)) + "_") + Y)), IntegerEntry(((("sale_price_" + aa) + "_") + toBase58String(value(J.assetId))), X), StringEntry(((("sale_asset_" + aa) + "_") + toBase58String(value(J.assetId))), Y), StringEntry(((("sale_status_" + aa) + "_") + toBase58String(value(J.assetId))), "OPEN"), StringEntry(("current_owner_on_dapp_" + toBase58String(value(J.assetId))), aa)]
167167 }
168168 }
169169 }
170170 }
171171
172172
173173
174174 @Callable(H)
175175 func cancelSale (R) = {
176176 let ah = G(H)
177177 let F = ah._1
178178 let aa = ah._2
179179 let ab = ah._3
180180 let S = w(("current_owner_on_dapp_" + R))
181181 if ((S != aa))
182182 then throw("You don't own this NFT")
183183 else {
184184 let T = w(((("sale_status_" + aa) + "_") + R))
185185 if ((T != "OPEN"))
186186 then throw("Sale not active")
187187 else {
188188 let ai = w(((((("sale_info_" + aa) + "_") + R) + "_") + T))
189189 [DeleteEntry((((("sale_info_" + aa) + "_") + R) + "_OPEN")), StringEntry((((((((("sale_info_" + aa) + "_") + R) + "_") + toString(ab)) + "_") + F) + "_CANCELLED"), ai), StringEntry(((("sale_status_" + aa) + "_") + R), "CANCELLED"), StringEntry(("current_owner_on_dapp_" + R), "none"), ScriptTransfer(Address(fromBase58String(aa)), 1, fromBase58String(R))]
190190 }
191191 }
192192 }
193193
194194
195195
196196 @Callable(H)
197197 func buyNFT (R) = {
198198 let aj = G(H)
199199 let F = aj._1
200200 let aa = aj._2
201201 let ab = aj._3
202202 let S = Q(R)
203203 let ai = w((((("sale_info_" + S) + "_") + R) + "_OPEN"))
204204 if ((size(ai) == 0))
205205 then throw("Sale Not found!")
206206 else {
207207 let ak = split(ai, "_")
208208 let al = I(H)
209209 let J = al._1
210210 let K = al._2
211211 if (if ((ak[1] != toString(K)))
212212 then true
213213 else (ak[2] != toBase58String(value(J.assetId))))
214214 then throw("Payment infos don't match.")
215215 else {
216216 let am = fraction(K, m, 100)
217217 let an = (K - am)
218218 [DeleteEntry((((("sale_info_" + S) + "_") + R) + "_OPEN")), StringEntry((((((((("sale_info_" + S) + "_") + R) + "_") + toString(ab)) + "_") + F) + "_CLOSED"), ((((((toString(ab) + "_") + toString(K)) + "_") + toBase58String(value(J.assetId))) + "_to_") + aa)), StringEntry(((("sale_status_" + S) + "_") + R), "CLOSED"), StringEntry(("current_owner_on_dapp_" + R), "none"), ScriptTransfer(Address(fromBase58String(e)), am, J.assetId), ScriptTransfer(Address(fromBase58String(S)), an, J.assetId), ScriptTransfer(Address(fromBase58String(aa)), 1, fromBase58String(R))]
219219 }
220220 }
221221 }
222222
223223
224224
225225 @Callable(H)
226226 func setOffer (R) = {
227227 let ao = G(H)
228228 let F = ao._1
229229 let aa = ao._2
230230 let ab = ao._3
231231 let ap = I(H)
232232 let J = ap._1
233233 let K = ap._2
234234 let O = if (!(isDefined(J.assetId)))
235235 then "WAVES"
236236 else toBase58String(value(J.assetId))
237237 if (!(N(O)))
238238 then throw("asset not accepted")
239239 else {
240240 let S = Q(R)
241241 [StringEntry((((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + F) + "_OPEN"), ((((((((O + "_") + toString(K)) + "_") + toString(ab)) + "_") + aa) + "_") + F))]
242242 }
243243 }
244244
245245
246246
247247 @Callable(H)
248248 func acceptOffer (R,aq,ar) = {
249249 let as = G(H)
250250 let F = as._1
251251 let aa = as._2
252252 let ab = as._3
253253 let S = Q(R)
254254 if ((aa != S))
255255 then throw("You cannot do this action")
256256 else {
257257 let at = w((((((((("offer_" + R) + "_") + S) + "_") + ar) + "_") + aq) + "_OPEN"))
258258 if ((at == ""))
259259 then throw("Offer not found")
260- else if (true)
261- then throw("hihi")
262- else {
263- let au = split(at, "_")
264- if ((au[5] != "OPEN"))
265- then throw(("Offer is already " + au[5]))
266- else {
267- let ai = w((((("sale_info_" + S) + "_") + R) + "_OPEN"))
268- if ((size(ai) == 0))
269- then throw("Sale Not found!")
270- else {
271- let av = ((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq)
272- let aw = U(((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq))
273- let W = aw._1
274- let O = aw._2
275- let V = aw._3
276- let K = value(parseInt(W[1]))
277- let am = fraction(K, m, 100)
278- let an = (K - am)
260+ else {
261+ let ai = w((((("sale_info_" + S) + "_") + R) + "_OPEN"))
262+ if ((size(ai) == 0))
263+ then throw("Sale Not found!")
264+ else {
265+ let au = ((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq)
266+ let av = U(((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq))
267+ let W = av._1
268+ let O = av._2
269+ let V = av._3
270+ let K = value(parseInt(W[1]))
271+ let am = fraction(K, m, 100)
272+ let an = (K - am)
279273 [DeleteEntry((((("sale_info_" + S) + "_") + R) + "_OPEN")), DeleteEntry((((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq) + "_OPEN")), StringEntry((((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq) + "_CLOSED"), ((((((((toString(ab) + "_") + toString(K)) + "_") + toBase58String(value(O))) + "_to_") + ar) + "_") + aq)), StringEntry((((((((("sale_info_" + S) + "_") + R) + "_") + toString(ab)) + "_") + F) + "_CLOSED"), ((((((toString(ab) + "_") + toString(K)) + "_") + toBase58String(value(O))) + "_to_") + ar)), StringEntry(((("sale_status_" + S) + "_") + R), "CLOSED"), StringEntry(("current_owner_on_dapp_" + R), "none"), ScriptTransfer(Address(fromBase58String(e)), am, O), ScriptTransfer(Address(fromBase58String(S)), an, O), ScriptTransfer(Address(fromBase58String(W[3])), 1, fromBase58String(R))]
280- }
281- }
282- }
274+ }
275+ }
283276 }
284277 }
285278
286279
287280
288281 @Callable(H)
289282 func cancelOffer (R,aq) = {
290- let ax = G(H)
291- let F = ax._1
292- let aa = ax._2
293- let ab = ax._3
283+ let aw = G(H)
284+ let F = aw._1
285+ let aa = aw._2
286+ let ab = aw._3
294287 let S = Q(R)
295- let av = ((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq)
296- let ay = U(((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq))
297- let W = ay._1
298- let O = ay._2
299- let V = ay._3
300- let az = "CANCELLED"
301-[DeleteEntry((av + "_OPEN")), StringEntry(((av + "_") + az), ((V + "_") + toString(ab))), ScriptTransfer(Address(fromBase58String(aa)), parseIntValue(W[1]), O)]
288+ let au = ((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq)
289+ let ax = U(((((((("offer_" + R) + "_") + S) + "_") + aa) + "_") + aq))
290+ let W = ax._1
291+ let O = ax._2
292+ let V = ax._3
293+ let ay = "CANCELLED"
294+[DeleteEntry((au + "_OPEN")), StringEntry(((au + "_") + ay), ((V + "_") + toString(ab))), ScriptTransfer(Address(fromBase58String(aa)), parseIntValue(W[1]), O)]
302295 }
303296
304297
305298
306299 @Callable(H)
307-func deleteEntry (aA) = {
300+func deleteEntry (az) = {
308301 let aa = toString(addressFromPublicKey(H.callerPublicKey))
309302 if ((aa == k))
310- then [DeleteEntry(aA)]
303+ then [DeleteEntry(az)]
311304 else throw("no")
312305 }
313306
314307

github/deemru/w8io/026f985 
44.99 ms