tx · 6Dr21qBzTkXzyFZxtsfNaXWRgENG1nZGtP58oPHm5TXv

3N2eA4yzXa4wTj7pP8r6G144RRxZW7cmq4p:  -0.01400000 Waves

2022.02.24 05:36 [1937159] smart account 3N2eA4yzXa4wTj7pP8r6G144RRxZW7cmq4p > SELF 0.00000000 Waves

{ "type": 13, "id": "6Dr21qBzTkXzyFZxtsfNaXWRgENG1nZGtP58oPHm5TXv", "fee": 1400000, "feeAssetId": null, "timestamp": 1645670201561, "version": 2, "chainId": 84, "sender": "3N2eA4yzXa4wTj7pP8r6G144RRxZW7cmq4p", "senderPublicKey": "Hh3eFP2XFetZSfTxQiM1Ps96f68zi8Zh5ghhCZdjgdFs", "proofs": [ "H93T8acRgEf46Yc3aqCaRGBdAD5Y9ZzJGGbCBFDsa2cBvkocWvrr9hBz8A2oqQkXYw4BuFsBoVxZRS9qWDSngjv" ], "script": "base64:AAIFAAAAAAAAADMIAhIECgIECBIECgIBCBIFCgMIAQgSAwoBCBIDCgEIEgMKAQgSBQoDCAgIEgYKBAgICAgAAAA1AAAAAAh1bml0VGVzdAcAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAIc2lnbkRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAADGFydHdvcmtzRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkJ5bmZiWEMyS2FzdFV4aHVrY01VYUU1OEs5Y0JkQjlVWQAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAh1c2VyRGFwcAMFAAAACHVuaXRUZXN0CQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNdDRSR01FeWpTV1lB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yMTE4Mjc2AAAAAl8xBAAAAAdhc3NldElkCAUAAAANJHQwMTgyMjExODI3NgAAAAJfMgQAAAAHYmlkRGF0YQgFAAAADSR0MDE4MjIxMTgyNzYAAAACXzMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACBQAAAAZiaWRLZXkCAAAABV9PUEVOCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAAGYmlkS2V5AgAAAApfQ0FOQ0VMTEVECQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAAB2JpZERhdGECAAAAC19DQU5DRUxMRURfCQABpAAAAAEFAAAABGRhdGUCAAAAAV8FAAAAAmlkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAAAZjYWxsZXIJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACBQAAAApiaWREYXRhQXJyAAAAAAAAAAABBQAAAAdhc3NldElkBQAAAANuaWwAAAAAaElXug==", "height": 1937159, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4oXDru48RPaXCQZtC4YXVYkrqG53pQsXbwXn8gBXFctj Next: 9CVWPL3rJxdUrhyZPug5dEXRr3yMxpzvJRn7ibVB9Kp3 Diff:
OldNewDifferences
8282
8383 let S = R(("certification_fee_" + toBase58String(h)))
8484
85-func T (U) = if (!(t))
86- then throw(u)
87- else $Tuple3(toBase58String(U.transactionId), toBase58String(U.caller.bytes), lastBlock.timestamp)
85+func T (E) = ("artist_agent_" + E)
8886
8987
90-func V (U) = if ((size(U.payments) == 0))
88+func U (E) = ("artist_agent_secondary" + E)
89+
90+
91+func V (W) = if (!(t))
92+ then throw(u)
93+ else $Tuple3(toBase58String(W.transactionId), toBase58String(W.caller.bytes), lastBlock.timestamp)
94+
95+
96+func X (W) = if ((size(W.payments) == 0))
9197 then throw("No payment attached")
9298 else {
93- let W = value(U.payments[0])
94- let X = value(W.amount)
95- $Tuple2(W, X)
99+ let Y = value(W.payments[0])
100+ let Z = value(Y.amount)
101+ $Tuple2(Y, Z)
96102 }
97103
98104
99-func Y (Z) = if (if (if ((Z.quantity == 1))
100- then (Z.decimals == 0)
105+func aa (ab) = if (if (if ((ab.quantity == 1))
106+ then (ab.decimals == 0)
101107 else false)
102- then (Z.reissuable == false)
108+ then (ab.reissuable == false)
103109 else false)
104- then (Z.issuer == d)
110+ then (ab.issuer == d)
105111 else false
106112
107113
108-func aa (I) = {
109- let Z = value(assetInfo(I))
110- Y(Z)
114+func ac (I) = {
115+ let ab = value(assetInfo(I))
116+ aa(ab)
111117 }
112118
113119
114-func ab (ac) = if (if (if (if ((ac != toBase58String(h)))
115- then (ac != toBase58String(j))
120+func ad (ae) = if (if (if (if ((ae != toBase58String(h)))
121+ then (ae != toBase58String(j))
116122 else false)
117- then (ac != "WAVES")
123+ then (ae != "WAVES")
118124 else false)
119- then (ac != toBase58String(i))
125+ then (ae != toBase58String(i))
120126 else false)
121127 then false
122128 else true
123129
124130
125-func ad (ac) = if ((ac == "WAVES"))
131+func af (ae) = if ((ae == "WAVES"))
126132 then unit
127- else fromBase58String(ac)
133+ else fromBase58String(ae)
128134
129135
130-func ae (af) = {
131- let P = z(("current_owner_on_dapp_" + af))
136+func ag (ah) = {
137+ let P = z(("current_owner_on_dapp_" + ah))
132138 if ((size(P) == 0))
133139 then throw("NFT not found")
134140 else {
135- let ag = z(((("sale2nd_status_" + P) + "_") + af))
136- if ((ag != "OPEN"))
141+ let ai = z(((("sale2nd_status_" + P) + "_") + ah))
142+ if ((ai != "OPEN"))
137143 then throw("NFT not for sale")
138144 else P
139145 }
140146 }
141147
142148
143-func ah (x) = {
144- let ai = z((x + "_OPEN"))
145- if ((ai == ""))
149+func aj (x) = {
150+ let ak = z((x + "_OPEN"))
151+ if ((ak == ""))
146152 then throw("Offer not found")
147153 else {
148- let aj = split(ai, "_")
149- let ac = ad(aj[2])
150- $Tuple3(aj, ac, ai)
154+ let al = split(ak, "_")
155+ let ae = af(al[2])
156+ $Tuple3(al, ae, ak)
151157 }
152158 }
153159
154160
155-func ak (al) = if ((al != p))
156- then (al != q)
161+func am (an) = if ((an != p))
162+ then (an != q)
157163 else false
158164
159165
160-func am (C,I) = {
161- let al = y(G(C, I))
162- if (ak(al))
166+func ao (C,I) = {
167+ let an = y(G(C, I))
168+ if (am(an))
163169 then true
164- else throw(("Original Artwork flagged as " + al))
170+ else throw(("Original Artwork flagged as " + an))
165171 }
166172
167173
168-func an (C) = {
169- let ao = w(B(C))
170- if (containsElement([n, o], ao))
171- then throw(("Original Artist " + ao))
174+func ap (C) = {
175+ let aq = w(B(C))
176+ if (containsElement([n, o], aq))
177+ then throw(("Original Artist " + aq))
172178 else true
173179 }
174180
175181
176-func ap (ac) = {
177- let aq = split(y(H(ac)), "_")
178- let ar = y(D(aq[6], aq[5]))
179- if (if (!(am(aq[6], aq[5])))
180- then !(an(aq[6]))
182+func ar (ae) = {
183+ let as = split(y(H(ae)), "_")
184+ let at = y(D(as[6], as[5]))
185+ if (if (!(ao(as[6], as[5])))
186+ then !(ap(as[6]))
181187 else false)
182- then $Tuple4(false, aq[5], aq[6], ar)
183- else $Tuple4(true, aq[5], aq[6], ar)
188+ then $Tuple4(false, as[5], as[6], at)
189+ else $Tuple4(true, as[5], as[6], at)
184190 }
185191
186192
187-func as (F,M) = {
188- let ar = y(D(M, F))
189- if ((size(ar) == 0))
193+func au (F,M) = {
194+ let at = y(D(M, F))
195+ if ((size(at) == 0))
190196 then throw("Artwork not found on SIGN Art")
191- else if (if (!(am(M, F)))
192- then !(an(M))
197+ else if (if (!(ao(M, F)))
198+ then !(ap(M))
193199 else false)
194200 then false
195201 else true
196202 }
197203
198204
199-func at (X,ac,af,M,P,K) = {
200- let au = fraction(X, l, 100)
201- let av = fraction(X, m, 100)
202- let aw = (X - (au + av))
203- let ax = ScriptTransfer(Address(fromBase58String(e)), au, ac)
204- let ay = ScriptTransfer(Address(fromBase58String(M)), av, ac)
205- let az = ScriptTransfer(Address(fromBase58String(P)), aw, ac)
206- let aA = ScriptTransfer(Address(fromBase58String(K)), 1, fromBase58String(af))
207- $Tuple4(ax, ay, az, aA)
205+func av (Z,ae,ah,M,P,K) = {
206+ let aw = valueOrElse(getString(f, T(M)), e)
207+ let ax = valueOrElse(getInteger(f, U(M)), 0)
208+ let ay = fraction(Z, l, 100)
209+ let az = fraction(Z, m, 100)
210+ let aA = (Z - (ay + az))
211+ let aB = if (if ((aw != e))
212+ then (ax > 0)
213+ else false)
214+ then fraction(Z, ax, 100)
215+ else 0
216+ let aC = ScriptTransfer(Address(fromBase58String(e)), (ay - aB), ae)
217+ let aD = ScriptTransfer(Address(fromBase58String(aw)), aB, ae)
218+ let aE = ScriptTransfer(Address(fromBase58String(M)), az, ae)
219+ let aF = ScriptTransfer(Address(fromBase58String(P)), aA, ae)
220+ let aG = ScriptTransfer(Address(fromBase58String(K)), 1, fromBase58String(ah))
221+ $Tuple5(aC, aE, aF, aG, aD)
208222 }
209223
210224
211-func aB (ac,aC) = {
212- let aD = if (a)
225+func aH (ae,aI) = {
226+ let aJ = if (a)
213227 then 10
214228 else R("waves_min_sell")
215- let aE = 1000000
216- let aF = if (a)
229+ let aK = 1000000
230+ let aL = if (a)
217231 then 1
218232 else (S * 2)
219- if (if (if (if (if ((ac == toBase58String(i)))
220- then (aE > aC)
233+ if (if (if (if (if ((ae == toBase58String(i)))
234+ then (aK > aI)
221235 else false)
222- then (aC != 0)
236+ then (aI != 0)
223237 else false)
224238 then true
225- else if (if ((ac == toBase58String(h)))
226- then (aF > aC)
239+ else if (if ((ae == toBase58String(h)))
240+ then (aL > aI)
227241 else false)
228- then (aC != 0)
242+ then (aI != 0)
229243 else false)
230244 then true
231- else if (if (if ((ac == toBase58String(j)))
245+ else if (if (if ((ae == toBase58String(j)))
232246 then true
233- else (ac == "WAVES"))
234- then (aD > aC)
247+ else (ae == "WAVES"))
248+ then (aJ > aI)
235249 else false)
236- then (aC != 0)
250+ then (aI != 0)
237251 else false)
238252 then false
239253 else true
240254 }
241255
242256
243-func aG (U,L) = {
244- let aH = T(U)
245- let I = aH._1
246- let K = aH._2
247- let aI = aH._3
248- let aJ = ap(L)
249- let aK = aJ._1
250- let F = aJ._2
251- let M = aJ._3
252- let ar = aJ._4
253- $Tuple7(I, K, aI, aK, F, M, ar)
257+func aM (W,L) = {
258+ let aN = V(W)
259+ let I = aN._1
260+ let K = aN._2
261+ let aO = aN._3
262+ let aP = ar(L)
263+ let aQ = aP._1
264+ let F = aP._2
265+ let M = aP._3
266+ let at = aP._4
267+ $Tuple7(I, K, aO, aQ, F, M, at)
254268 }
255269
256270
257-func aL () = {
258- let aM = A(v)
259- IntegerEntry(v, (aM + 1))
271+func aR () = {
272+ let aS = A(v)
273+ IntegerEntry(v, (aS + 1))
260274 }
261275
262276
263-@Callable(aN)
264-func appRunning (aO,aP) = {
265- let K = toString(addressFromPublicKey(aN.callerPublicKey))
266- let I = toBase58String(aN.transactionId)
277+@Callable(aT)
278+func appRunning (aU,aV) = {
279+ let K = toString(addressFromPublicKey(aT.callerPublicKey))
280+ let I = toBase58String(aT.transactionId)
267281 if (containsElement([k, toString(this)], K))
268- then [BooleanEntry(r, aO), StringEntry(s, aP)]
282+ then [BooleanEntry(r, aU), StringEntry(s, aV)]
269283 else throw("You are not allowed to change this")
270284 }
271285
272286
273287
274-@Callable(U)
275-func sellNFT (aC,aQ) = {
276- let aR = V(U)
277- let W = aR._1
278- let X = aR._2
279- if ((X != 1))
288+@Callable(W)
289+func sellNFT (aI,aW) = {
290+ let aX = X(W)
291+ let Y = aX._1
292+ let Z = aX._2
293+ if ((Z != 1))
280294 then throw("No NFT attached")
281295 else {
282- let L = if (if (isDefined(W.assetId))
283- then aa(value(W.assetId))
296+ let L = if (if (isDefined(Y.assetId))
297+ then ac(value(Y.assetId))
284298 else false)
285- then toBase58String(value(W.assetId))
299+ then toBase58String(value(Y.assetId))
286300 else throw("Only SIGN Art NFT accepted.")
287- let aS = aG(U, L)
288- let I = aS._1
289- let K = aS._2
290- let aI = aS._3
291- let aK = aS._4
292- let F = aS._5
293- let M = aS._6
294- let ar = aS._7
295- if ((size(ar) == 0))
301+ let aY = aM(W, L)
302+ let I = aY._1
303+ let K = aY._2
304+ let aO = aY._3
305+ let aQ = aY._4
306+ let F = aY._5
307+ let M = aY._6
308+ let at = aY._7
309+ if ((size(at) == 0))
296310 then throw("Artwork not found on SIGN Art")
297- else if (!(aK))
311+ else if (!(aQ))
298312 then throw("Not a valid nft")
299- else if (!(ab(aQ)))
313+ else if (!(ad(aW)))
300314 then throw("Only SIGN, USDN or WAVES accepted")
301- else if (!(aB(aQ, aC)))
315+ else if (!(aH(aW, aI)))
302316 then throw("Wrong minimum sell price")
303- else [StringEntry((J(K, L, F, M) + "_OPEN"), ((((((((((((toString(aI) + "_") + toString(aC)) + "_") + aQ) + "_") + L) + "_") + F) + "_") + M) + "_") + I)), StringEntry(((("sale2nd_status_" + K) + "_") + L), "OPEN"), StringEntry(("current_owner_on_dapp_" + L), K)]
317+ else [StringEntry((J(K, L, F, M) + "_OPEN"), ((((((((((((toString(aO) + "_") + toString(aI)) + "_") + aW) + "_") + L) + "_") + F) + "_") + M) + "_") + I)), StringEntry(((("sale2nd_status_" + K) + "_") + L), "OPEN"), StringEntry(("current_owner_on_dapp_" + L), K)]
304318 }
305319 }
306320
307321
308322
309-@Callable(U)
310-func updateSalePrice (L,aC,aQ) = {
311- let aT = aG(U, L)
312- let I = aT._1
313- let K = aT._2
314- let aI = aT._3
315- let aK = aT._4
316- let F = aT._5
317- let M = aT._6
318- let ar = aT._7
319- if ((size(ar) == 0))
323+@Callable(W)
324+func updateSalePrice (L,aI,aW) = {
325+ let aZ = aM(W, L)
326+ let I = aZ._1
327+ let K = aZ._2
328+ let aO = aZ._3
329+ let aQ = aZ._4
330+ let F = aZ._5
331+ let M = aZ._6
332+ let at = aZ._7
333+ if ((size(at) == 0))
320334 then throw("Artwork not found on SIGN Art, cancel your sale.")
321- else if (!(aK))
335+ else if (!(aQ))
322336 then throw("Not a valid nft")
323337 else {
324338 let P = z(("current_owner_on_dapp_" + L))
325339 if ((P != K))
326340 then throw("You don't own this NFT")
327341 else {
328- let ag = z(((("sale2nd_status_" + K) + "_") + L))
329- if ((ag != "OPEN"))
342+ let ai = z(((("sale2nd_status_" + K) + "_") + L))
343+ if ((ai != "OPEN"))
330344 then throw("Sale not active")
331- else if (!(ab(aQ)))
345+ else if (!(ad(aW)))
332346 then throw("Only SIGN, USDN or WAVES accepted")
333- else if (!(aB(aQ, aC)))
347+ else if (!(aH(aW, aI)))
334348 then throw("Wrong minimum sell price")
335349 else {
336- let aU = J(K, L, F, M)
337- let aV = split(z((aU + "_OPEN")), "_")
338-[StringEntry((aU + "_OPEN"), ((((((((((((aV[0] + "_") + toString(aC)) + "_") + aQ) + "_") + aV[3]) + "_") + aV[4]) + "_") + aV[5]) + "_") + aV[6]))]
350+ let ba = J(K, L, F, M)
351+ let bb = split(z((ba + "_OPEN")), "_")
352+[StringEntry((ba + "_OPEN"), ((((((((((((bb[0] + "_") + toString(aI)) + "_") + aW) + "_") + bb[3]) + "_") + bb[4]) + "_") + bb[5]) + "_") + bb[6]))]
339353 }
340354 }
341355 }
343357
344358
345359
346-@Callable(U)
360+@Callable(W)
347361 func cancelSale (L) = {
348- let aW = aG(U, L)
349- let I = aW._1
350- let K = aW._2
351- let aI = aW._3
352- let aK = aW._4
353- let F = aW._5
354- let M = aW._6
355- let ar = aW._7
362+ let bc = aM(W, L)
363+ let I = bc._1
364+ let K = bc._2
365+ let aO = bc._3
366+ let aQ = bc._4
367+ let F = bc._5
368+ let M = bc._6
369+ let at = bc._7
356370 let P = z(("current_owner_on_dapp_" + L))
357371 if ((P != K))
358372 then throw("You don't own this NFT")
359373 else {
360- let ag = z(((("sale2nd_status_" + K) + "_") + L))
361- if ((ag != "OPEN"))
374+ let ai = z(((("sale2nd_status_" + K) + "_") + L))
375+ if ((ai != "OPEN"))
362376 then throw("Sale not active")
363377 else {
364- let aU = J(K, L, F, M)
365- let aV = z((aU + "_OPEN"))
366-[DeleteEntry((aU + "_OPEN")), DeleteEntry(((("sale2nd_status_" + K) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((((aU + "_") + I) + "_CANCELLED"), ((((aV + "_CANCELLED_") + toString(aI)) + "_") + I)), ScriptTransfer(Address(fromBase58String(K)), 1, fromBase58String(L))]
378+ let ba = J(K, L, F, M)
379+ let bb = z((ba + "_OPEN"))
380+[DeleteEntry((ba + "_OPEN")), DeleteEntry(((("sale2nd_status_" + K) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((((ba + "_") + I) + "_CANCELLED"), ((((bb + "_CANCELLED_") + toString(aO)) + "_") + I)), ScriptTransfer(Address(fromBase58String(K)), 1, fromBase58String(L))]
367381 }
368382 }
369383 }
370384
371385
372386
373-@Callable(U)
387+@Callable(W)
374388 func buyNFT (L) = {
375- let aX = aG(U, L)
376- let I = aX._1
377- let K = aX._2
378- let aI = aX._3
379- let aK = aX._4
380- let F = aX._5
381- let M = aX._6
382- let ar = aX._7
383- if ((size(ar) == 0))
389+ let bd = aM(W, L)
390+ let I = bd._1
391+ let K = bd._2
392+ let aO = bd._3
393+ let aQ = bd._4
394+ let F = bd._5
395+ let M = bd._6
396+ let at = bd._7
397+ if ((size(at) == 0))
384398 then throw("Artwork not found on SIGN Art, cancel your sale.")
385- else if (!(aK))
399+ else if (!(aQ))
386400 then throw("Not a valid nft")
387401 else {
388- let P = ae(L)
389- let aU = J(P, L, F, M)
390- let aV = z((aU + "_OPEN"))
391- if ((size(aV) == 0))
402+ let P = ag(L)
403+ let ba = J(P, L, F, M)
404+ let bb = z((ba + "_OPEN"))
405+ if ((size(bb) == 0))
392406 then throw("Sale Not found!")
393407 else {
394- let aY = split(aV, "_")
395- if ((parseInt(aY[1]) == 0))
408+ let be = split(bb, "_")
409+ if ((parseInt(be[1]) == 0))
396410 then throw("Offer only")
397411 else {
398- let aZ = V(U)
399- let W = aZ._1
400- let X = aZ._2
401- let ba = if (isDefined(W.assetId))
402- then toBase58String(value(W.assetId))
412+ let bf = X(W)
413+ let Y = bf._1
414+ let Z = bf._2
415+ let bg = if (isDefined(Y.assetId))
416+ then toBase58String(value(Y.assetId))
403417 else ""
404- if (if ((aY[1] != toString(X)))
418+ if (if ((be[1] != toString(Z)))
405419 then true
406- else (aY[2] != ba))
420+ else (be[2] != bg))
407421 then throw("Payment infos don't match.")
408422 else {
409- let au = fraction(X, l, 100)
410- let av = fraction(X, m, 100)
411- let aw = (X - (au + av))
412- let bb = at(X, W.assetId, L, M, P, K)
413- let ax = bb._1
414- let ay = bb._2
415- let az = bb._3
416- let aA = bb._4
417-[DeleteEntry((aU + "_OPEN")), DeleteEntry(((("sale2nd_status_" + P) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((((aU + "_") + I) + "_CLOSED"), ((((((aV + "_CLOSED_") + toString(aI)) + "_") + I) + "_") + K)), aL(), ax, ay, az, aA]
423+ let bh = av(Z, Y.assetId, L, M, P, K)
424+ let aC = bh._1
425+ let aE = bh._2
426+ let aF = bh._3
427+ let aG = bh._4
428+ let aD = bh._5
429+[DeleteEntry((ba + "_OPEN")), DeleteEntry(((("sale2nd_status_" + P) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((((ba + "_") + I) + "_CLOSED"), ((((((bb + "_CLOSED_") + toString(aO)) + "_") + I) + "_") + K)), aR(), aC, aE, aF, aG, aD]
418430 }
419431 }
420432 }
423435
424436
425437
426-@Callable(U)
438+@Callable(W)
427439 func setOffer (L) = {
428- let bc = aG(U, L)
429- let I = bc._1
430- let O = bc._2
431- let aI = bc._3
432- let aK = bc._4
433- let F = bc._5
434- let M = bc._6
435- let ar = bc._7
436- if (!(aK))
440+ let bi = aM(W, L)
441+ let I = bi._1
442+ let O = bi._2
443+ let aO = bi._3
444+ let aQ = bi._4
445+ let F = bi._5
446+ let M = bi._6
447+ let at = bi._7
448+ if (!(aQ))
437449 then throw("Not a valid nft")
438450 else {
439- let bd = V(U)
440- let W = bd._1
441- let X = bd._2
442- let ac = if (!(isDefined(W.assetId)))
451+ let bj = X(W)
452+ let Y = bj._1
453+ let Z = bj._2
454+ let ae = if (!(isDefined(Y.assetId)))
443455 then "WAVES"
444- else toBase58String(value(W.assetId))
445- if (!(ab(ac)))
456+ else toBase58String(value(Y.assetId))
457+ if (!(ad(ae)))
446458 then throw("asset not accepted")
447- else if ((X == 0))
459+ else if ((Z == 0))
448460 then throw("Offer of 0 not allowed")
449- else if (!(aB(ac, X)))
461+ else if (!(aH(ae, Z)))
450462 then throw("Wrong minimum sell price")
451463 else {
452- let P = ae(L)
453-[StringEntry((N(O, L, P, I) + "_OPEN"), ((((((((((((((toString(aI) + "_") + toString(X)) + "_") + ac) + "_") + L) + "_") + F) + "_") + M) + "_") + O) + "_") + I))]
464+ let P = ag(L)
465+[StringEntry((N(O, L, P, I) + "_OPEN"), ((((((((((((((toString(aO) + "_") + toString(Z)) + "_") + ae) + "_") + L) + "_") + F) + "_") + M) + "_") + O) + "_") + I))]
454466 }
455467 }
456468 }
457469
458470
459471
460-@Callable(U)
472+@Callable(W)
461473 func acceptOffer (L,Q,O) = {
462- let be = aG(U, L)
463- let I = be._1
464- let K = be._2
465- let aI = be._3
466- let aK = be._4
467- let F = be._5
468- let M = be._6
469- let ar = be._7
470- if (!(aK))
474+ let bk = aM(W, L)
475+ let I = bk._1
476+ let K = bk._2
477+ let aO = bk._3
478+ let aQ = bk._4
479+ let F = bk._5
480+ let M = bk._6
481+ let at = bk._7
482+ if (!(aQ))
471483 then throw("Not a valid nft")
472484 else {
473- let P = ae(L)
485+ let P = ag(L)
474486 if ((K != P))
475487 then throw("Only sale owner can accept offer")
476488 else {
477- let bf = N(O, L, P, Q)
478- let bg = ah(bf)
479- let aj = bg._1
480- let ac = bg._2
481- let ai = bg._3
482- let aU = J(P, L, F, M)
483- let aV = z((aU + "_OPEN"))
484- if ((size(aV) == 0))
489+ let bl = N(O, L, P, Q)
490+ let bm = aj(bl)
491+ let al = bm._1
492+ let ae = bm._2
493+ let ak = bm._3
494+ let ba = J(P, L, F, M)
495+ let bb = z((ba + "_OPEN"))
496+ if ((size(bb) == 0))
485497 then throw("Sale Not found!")
486498 else {
487- let X = value(parseInt(aj[1]))
488- let bh = at(X, ac, L, M, P, aj[6])
489- let ax = bh._1
490- let ay = bh._2
491- let az = bh._3
492- let aA = bh._4
493- let bi = if (isDefined(ac))
494- then toBase58String(value(ac))
499+ let Z = value(parseInt(al[1]))
500+ let bn = av(Z, ae, L, M, P, al[6])
501+ let aC = bn._1
502+ let aE = bn._2
503+ let aF = bn._3
504+ let aG = bn._4
505+ let aD = bn._5
506+ let bo = if (isDefined(ae))
507+ then toBase58String(value(ae))
495508 else "WAVES"
496-[DeleteEntry((aU + "_OPEN")), DeleteEntry((bf + "_OPEN")), DeleteEntry(((("sale2nd_status_" + P) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((bf + "_CLOSED"), ((((ai + "_CLOSED_") + toString(aI)) + "_") + I)), StringEntry((((aU + "_") + I) + "_CLOSED"), ((((((((((aV + "_CLOSED-OFFER_") + toString(aI)) + "_") + I) + "_") + O) + "_") + toString(X)) + "_") + bi)), aL(), ax, ay, az, aA]
509+[DeleteEntry((ba + "_OPEN")), DeleteEntry((bl + "_OPEN")), DeleteEntry(((("sale2nd_status_" + P) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((bl + "_CLOSED"), ((((ak + "_CLOSED_") + toString(aO)) + "_") + I)), StringEntry((((ba + "_") + I) + "_CLOSED"), ((((((((((bb + "_CLOSED-OFFER_") + toString(aO)) + "_") + I) + "_") + O) + "_") + toString(Z)) + "_") + bo)), aR(), aC, aE, aF, aG, aD]
497510 }
498511 }
499512 }
501514
502515
503516
504-@Callable(U)
517+@Callable(W)
505518 func cancelOffer (L,Q,O,P) = {
506- let bj = T(U)
507- let I = bj._1
508- let K = bj._2
509- let aI = bj._3
519+ let bp = V(W)
520+ let I = bp._1
521+ let K = bp._2
522+ let aO = bp._3
510523 if (if ((K != O))
511524 then (K != P)
512525 else false)
513526 then throw("You cannot cancel this offer.")
514527 else {
515- let bf = N(O, L, P, Q)
516- let bk = ah(bf)
517- let aj = bk._1
518- let ac = bk._2
519- let ai = bk._3
520-[DeleteEntry((bf + "_OPEN")), StringEntry((bf + "_CANCELLED"), ((((ai + "_CANCELLED_") + toString(aI)) + "_") + I)), ScriptTransfer(Address(fromBase58String(K)), parseIntValue(aj[1]), ac)]
528+ let bl = N(O, L, P, Q)
529+ let bq = aj(bl)
530+ let al = bq._1
531+ let ae = bq._2
532+ let ak = bq._3
533+[DeleteEntry((bl + "_OPEN")), StringEntry((bl + "_CANCELLED"), ((((ak + "_CANCELLED_") + toString(aO)) + "_") + I)), ScriptTransfer(Address(fromBase58String(K)), parseIntValue(al[1]), ae)]
521534 }
522535 }
523536
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
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 = 3
2929
3030 let m = 10
3131
3232 let n = "SUSPENDED"
3333
3434 let o = "REMOVED"
3535
3636 let p = "ILLEGAL"
3737
3838 let q = "SUSPENDED"
3939
4040 let r = "conf_dapp_is_running"
4141
4242 let s = "conf_maintenance_msg"
4343
4444 let t = valueOrElse(getBoolean(this, r), true)
4545
4646 let u = valueOrElse(getString(this, s), "")
4747
4848 let v = "num_sales"
4949
5050 func w (x) = valueOrElse(getString(f, x), "Error")
5151
5252
5353 func y (x) = valueOrElse(getString(d, x), "")
5454
5555
5656 func z (x) = valueOrElse(getString(this, x), "")
5757
5858
5959 func A (x) = valueOrElse(getInteger(this, x), 0)
6060
6161
6262 func B (C) = ("user_status_" + C)
6363
6464
6565 func D (E,F) = ((("art_signid_" + F) + "_") + E)
6666
6767
6868 func G (E,F) = ((("art_flag_" + F) + "_") + E)
6969
7070
7171 func H (I) = ("nft_" + I)
7272
7373
7474 func J (K,L,F,M) = ((((((("sale2nd_info_" + K) + "_") + L) + "_") + F) + "_") + M)
7575
7676
7777 func N (O,L,P,Q) = ((((((("offer2nd_" + O) + "_") + L) + "_") + P) + "_") + Q)
7878
7979
8080 func R (x) = valueOrErrorMessage(getInteger(b, x), "Integer undefine or 0 in oracle")
8181
8282
8383 let S = R(("certification_fee_" + toBase58String(h)))
8484
85-func T (U) = if (!(t))
86- then throw(u)
87- else $Tuple3(toBase58String(U.transactionId), toBase58String(U.caller.bytes), lastBlock.timestamp)
85+func T (E) = ("artist_agent_" + E)
8886
8987
90-func V (U) = if ((size(U.payments) == 0))
88+func U (E) = ("artist_agent_secondary" + E)
89+
90+
91+func V (W) = if (!(t))
92+ then throw(u)
93+ else $Tuple3(toBase58String(W.transactionId), toBase58String(W.caller.bytes), lastBlock.timestamp)
94+
95+
96+func X (W) = if ((size(W.payments) == 0))
9197 then throw("No payment attached")
9298 else {
93- let W = value(U.payments[0])
94- let X = value(W.amount)
95- $Tuple2(W, X)
99+ let Y = value(W.payments[0])
100+ let Z = value(Y.amount)
101+ $Tuple2(Y, Z)
96102 }
97103
98104
99-func Y (Z) = if (if (if ((Z.quantity == 1))
100- then (Z.decimals == 0)
105+func aa (ab) = if (if (if ((ab.quantity == 1))
106+ then (ab.decimals == 0)
101107 else false)
102- then (Z.reissuable == false)
108+ then (ab.reissuable == false)
103109 else false)
104- then (Z.issuer == d)
110+ then (ab.issuer == d)
105111 else false
106112
107113
108-func aa (I) = {
109- let Z = value(assetInfo(I))
110- Y(Z)
114+func ac (I) = {
115+ let ab = value(assetInfo(I))
116+ aa(ab)
111117 }
112118
113119
114-func ab (ac) = if (if (if (if ((ac != toBase58String(h)))
115- then (ac != toBase58String(j))
120+func ad (ae) = if (if (if (if ((ae != toBase58String(h)))
121+ then (ae != toBase58String(j))
116122 else false)
117- then (ac != "WAVES")
123+ then (ae != "WAVES")
118124 else false)
119- then (ac != toBase58String(i))
125+ then (ae != toBase58String(i))
120126 else false)
121127 then false
122128 else true
123129
124130
125-func ad (ac) = if ((ac == "WAVES"))
131+func af (ae) = if ((ae == "WAVES"))
126132 then unit
127- else fromBase58String(ac)
133+ else fromBase58String(ae)
128134
129135
130-func ae (af) = {
131- let P = z(("current_owner_on_dapp_" + af))
136+func ag (ah) = {
137+ let P = z(("current_owner_on_dapp_" + ah))
132138 if ((size(P) == 0))
133139 then throw("NFT not found")
134140 else {
135- let ag = z(((("sale2nd_status_" + P) + "_") + af))
136- if ((ag != "OPEN"))
141+ let ai = z(((("sale2nd_status_" + P) + "_") + ah))
142+ if ((ai != "OPEN"))
137143 then throw("NFT not for sale")
138144 else P
139145 }
140146 }
141147
142148
143-func ah (x) = {
144- let ai = z((x + "_OPEN"))
145- if ((ai == ""))
149+func aj (x) = {
150+ let ak = z((x + "_OPEN"))
151+ if ((ak == ""))
146152 then throw("Offer not found")
147153 else {
148- let aj = split(ai, "_")
149- let ac = ad(aj[2])
150- $Tuple3(aj, ac, ai)
154+ let al = split(ak, "_")
155+ let ae = af(al[2])
156+ $Tuple3(al, ae, ak)
151157 }
152158 }
153159
154160
155-func ak (al) = if ((al != p))
156- then (al != q)
161+func am (an) = if ((an != p))
162+ then (an != q)
157163 else false
158164
159165
160-func am (C,I) = {
161- let al = y(G(C, I))
162- if (ak(al))
166+func ao (C,I) = {
167+ let an = y(G(C, I))
168+ if (am(an))
163169 then true
164- else throw(("Original Artwork flagged as " + al))
170+ else throw(("Original Artwork flagged as " + an))
165171 }
166172
167173
168-func an (C) = {
169- let ao = w(B(C))
170- if (containsElement([n, o], ao))
171- then throw(("Original Artist " + ao))
174+func ap (C) = {
175+ let aq = w(B(C))
176+ if (containsElement([n, o], aq))
177+ then throw(("Original Artist " + aq))
172178 else true
173179 }
174180
175181
176-func ap (ac) = {
177- let aq = split(y(H(ac)), "_")
178- let ar = y(D(aq[6], aq[5]))
179- if (if (!(am(aq[6], aq[5])))
180- then !(an(aq[6]))
182+func ar (ae) = {
183+ let as = split(y(H(ae)), "_")
184+ let at = y(D(as[6], as[5]))
185+ if (if (!(ao(as[6], as[5])))
186+ then !(ap(as[6]))
181187 else false)
182- then $Tuple4(false, aq[5], aq[6], ar)
183- else $Tuple4(true, aq[5], aq[6], ar)
188+ then $Tuple4(false, as[5], as[6], at)
189+ else $Tuple4(true, as[5], as[6], at)
184190 }
185191
186192
187-func as (F,M) = {
188- let ar = y(D(M, F))
189- if ((size(ar) == 0))
193+func au (F,M) = {
194+ let at = y(D(M, F))
195+ if ((size(at) == 0))
190196 then throw("Artwork not found on SIGN Art")
191- else if (if (!(am(M, F)))
192- then !(an(M))
197+ else if (if (!(ao(M, F)))
198+ then !(ap(M))
193199 else false)
194200 then false
195201 else true
196202 }
197203
198204
199-func at (X,ac,af,M,P,K) = {
200- let au = fraction(X, l, 100)
201- let av = fraction(X, m, 100)
202- let aw = (X - (au + av))
203- let ax = ScriptTransfer(Address(fromBase58String(e)), au, ac)
204- let ay = ScriptTransfer(Address(fromBase58String(M)), av, ac)
205- let az = ScriptTransfer(Address(fromBase58String(P)), aw, ac)
206- let aA = ScriptTransfer(Address(fromBase58String(K)), 1, fromBase58String(af))
207- $Tuple4(ax, ay, az, aA)
205+func av (Z,ae,ah,M,P,K) = {
206+ let aw = valueOrElse(getString(f, T(M)), e)
207+ let ax = valueOrElse(getInteger(f, U(M)), 0)
208+ let ay = fraction(Z, l, 100)
209+ let az = fraction(Z, m, 100)
210+ let aA = (Z - (ay + az))
211+ let aB = if (if ((aw != e))
212+ then (ax > 0)
213+ else false)
214+ then fraction(Z, ax, 100)
215+ else 0
216+ let aC = ScriptTransfer(Address(fromBase58String(e)), (ay - aB), ae)
217+ let aD = ScriptTransfer(Address(fromBase58String(aw)), aB, ae)
218+ let aE = ScriptTransfer(Address(fromBase58String(M)), az, ae)
219+ let aF = ScriptTransfer(Address(fromBase58String(P)), aA, ae)
220+ let aG = ScriptTransfer(Address(fromBase58String(K)), 1, fromBase58String(ah))
221+ $Tuple5(aC, aE, aF, aG, aD)
208222 }
209223
210224
211-func aB (ac,aC) = {
212- let aD = if (a)
225+func aH (ae,aI) = {
226+ let aJ = if (a)
213227 then 10
214228 else R("waves_min_sell")
215- let aE = 1000000
216- let aF = if (a)
229+ let aK = 1000000
230+ let aL = if (a)
217231 then 1
218232 else (S * 2)
219- if (if (if (if (if ((ac == toBase58String(i)))
220- then (aE > aC)
233+ if (if (if (if (if ((ae == toBase58String(i)))
234+ then (aK > aI)
221235 else false)
222- then (aC != 0)
236+ then (aI != 0)
223237 else false)
224238 then true
225- else if (if ((ac == toBase58String(h)))
226- then (aF > aC)
239+ else if (if ((ae == toBase58String(h)))
240+ then (aL > aI)
227241 else false)
228- then (aC != 0)
242+ then (aI != 0)
229243 else false)
230244 then true
231- else if (if (if ((ac == toBase58String(j)))
245+ else if (if (if ((ae == toBase58String(j)))
232246 then true
233- else (ac == "WAVES"))
234- then (aD > aC)
247+ else (ae == "WAVES"))
248+ then (aJ > aI)
235249 else false)
236- then (aC != 0)
250+ then (aI != 0)
237251 else false)
238252 then false
239253 else true
240254 }
241255
242256
243-func aG (U,L) = {
244- let aH = T(U)
245- let I = aH._1
246- let K = aH._2
247- let aI = aH._3
248- let aJ = ap(L)
249- let aK = aJ._1
250- let F = aJ._2
251- let M = aJ._3
252- let ar = aJ._4
253- $Tuple7(I, K, aI, aK, F, M, ar)
257+func aM (W,L) = {
258+ let aN = V(W)
259+ let I = aN._1
260+ let K = aN._2
261+ let aO = aN._3
262+ let aP = ar(L)
263+ let aQ = aP._1
264+ let F = aP._2
265+ let M = aP._3
266+ let at = aP._4
267+ $Tuple7(I, K, aO, aQ, F, M, at)
254268 }
255269
256270
257-func aL () = {
258- let aM = A(v)
259- IntegerEntry(v, (aM + 1))
271+func aR () = {
272+ let aS = A(v)
273+ IntegerEntry(v, (aS + 1))
260274 }
261275
262276
263-@Callable(aN)
264-func appRunning (aO,aP) = {
265- let K = toString(addressFromPublicKey(aN.callerPublicKey))
266- let I = toBase58String(aN.transactionId)
277+@Callable(aT)
278+func appRunning (aU,aV) = {
279+ let K = toString(addressFromPublicKey(aT.callerPublicKey))
280+ let I = toBase58String(aT.transactionId)
267281 if (containsElement([k, toString(this)], K))
268- then [BooleanEntry(r, aO), StringEntry(s, aP)]
282+ then [BooleanEntry(r, aU), StringEntry(s, aV)]
269283 else throw("You are not allowed to change this")
270284 }
271285
272286
273287
274-@Callable(U)
275-func sellNFT (aC,aQ) = {
276- let aR = V(U)
277- let W = aR._1
278- let X = aR._2
279- if ((X != 1))
288+@Callable(W)
289+func sellNFT (aI,aW) = {
290+ let aX = X(W)
291+ let Y = aX._1
292+ let Z = aX._2
293+ if ((Z != 1))
280294 then throw("No NFT attached")
281295 else {
282- let L = if (if (isDefined(W.assetId))
283- then aa(value(W.assetId))
296+ let L = if (if (isDefined(Y.assetId))
297+ then ac(value(Y.assetId))
284298 else false)
285- then toBase58String(value(W.assetId))
299+ then toBase58String(value(Y.assetId))
286300 else throw("Only SIGN Art NFT accepted.")
287- let aS = aG(U, L)
288- let I = aS._1
289- let K = aS._2
290- let aI = aS._3
291- let aK = aS._4
292- let F = aS._5
293- let M = aS._6
294- let ar = aS._7
295- if ((size(ar) == 0))
301+ let aY = aM(W, L)
302+ let I = aY._1
303+ let K = aY._2
304+ let aO = aY._3
305+ let aQ = aY._4
306+ let F = aY._5
307+ let M = aY._6
308+ let at = aY._7
309+ if ((size(at) == 0))
296310 then throw("Artwork not found on SIGN Art")
297- else if (!(aK))
311+ else if (!(aQ))
298312 then throw("Not a valid nft")
299- else if (!(ab(aQ)))
313+ else if (!(ad(aW)))
300314 then throw("Only SIGN, USDN or WAVES accepted")
301- else if (!(aB(aQ, aC)))
315+ else if (!(aH(aW, aI)))
302316 then throw("Wrong minimum sell price")
303- else [StringEntry((J(K, L, F, M) + "_OPEN"), ((((((((((((toString(aI) + "_") + toString(aC)) + "_") + aQ) + "_") + L) + "_") + F) + "_") + M) + "_") + I)), StringEntry(((("sale2nd_status_" + K) + "_") + L), "OPEN"), StringEntry(("current_owner_on_dapp_" + L), K)]
317+ else [StringEntry((J(K, L, F, M) + "_OPEN"), ((((((((((((toString(aO) + "_") + toString(aI)) + "_") + aW) + "_") + L) + "_") + F) + "_") + M) + "_") + I)), StringEntry(((("sale2nd_status_" + K) + "_") + L), "OPEN"), StringEntry(("current_owner_on_dapp_" + L), K)]
304318 }
305319 }
306320
307321
308322
309-@Callable(U)
310-func updateSalePrice (L,aC,aQ) = {
311- let aT = aG(U, L)
312- let I = aT._1
313- let K = aT._2
314- let aI = aT._3
315- let aK = aT._4
316- let F = aT._5
317- let M = aT._6
318- let ar = aT._7
319- if ((size(ar) == 0))
323+@Callable(W)
324+func updateSalePrice (L,aI,aW) = {
325+ let aZ = aM(W, L)
326+ let I = aZ._1
327+ let K = aZ._2
328+ let aO = aZ._3
329+ let aQ = aZ._4
330+ let F = aZ._5
331+ let M = aZ._6
332+ let at = aZ._7
333+ if ((size(at) == 0))
320334 then throw("Artwork not found on SIGN Art, cancel your sale.")
321- else if (!(aK))
335+ else if (!(aQ))
322336 then throw("Not a valid nft")
323337 else {
324338 let P = z(("current_owner_on_dapp_" + L))
325339 if ((P != K))
326340 then throw("You don't own this NFT")
327341 else {
328- let ag = z(((("sale2nd_status_" + K) + "_") + L))
329- if ((ag != "OPEN"))
342+ let ai = z(((("sale2nd_status_" + K) + "_") + L))
343+ if ((ai != "OPEN"))
330344 then throw("Sale not active")
331- else if (!(ab(aQ)))
345+ else if (!(ad(aW)))
332346 then throw("Only SIGN, USDN or WAVES accepted")
333- else if (!(aB(aQ, aC)))
347+ else if (!(aH(aW, aI)))
334348 then throw("Wrong minimum sell price")
335349 else {
336- let aU = J(K, L, F, M)
337- let aV = split(z((aU + "_OPEN")), "_")
338-[StringEntry((aU + "_OPEN"), ((((((((((((aV[0] + "_") + toString(aC)) + "_") + aQ) + "_") + aV[3]) + "_") + aV[4]) + "_") + aV[5]) + "_") + aV[6]))]
350+ let ba = J(K, L, F, M)
351+ let bb = split(z((ba + "_OPEN")), "_")
352+[StringEntry((ba + "_OPEN"), ((((((((((((bb[0] + "_") + toString(aI)) + "_") + aW) + "_") + bb[3]) + "_") + bb[4]) + "_") + bb[5]) + "_") + bb[6]))]
339353 }
340354 }
341355 }
342356 }
343357
344358
345359
346-@Callable(U)
360+@Callable(W)
347361 func cancelSale (L) = {
348- let aW = aG(U, L)
349- let I = aW._1
350- let K = aW._2
351- let aI = aW._3
352- let aK = aW._4
353- let F = aW._5
354- let M = aW._6
355- let ar = aW._7
362+ let bc = aM(W, L)
363+ let I = bc._1
364+ let K = bc._2
365+ let aO = bc._3
366+ let aQ = bc._4
367+ let F = bc._5
368+ let M = bc._6
369+ let at = bc._7
356370 let P = z(("current_owner_on_dapp_" + L))
357371 if ((P != K))
358372 then throw("You don't own this NFT")
359373 else {
360- let ag = z(((("sale2nd_status_" + K) + "_") + L))
361- if ((ag != "OPEN"))
374+ let ai = z(((("sale2nd_status_" + K) + "_") + L))
375+ if ((ai != "OPEN"))
362376 then throw("Sale not active")
363377 else {
364- let aU = J(K, L, F, M)
365- let aV = z((aU + "_OPEN"))
366-[DeleteEntry((aU + "_OPEN")), DeleteEntry(((("sale2nd_status_" + K) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((((aU + "_") + I) + "_CANCELLED"), ((((aV + "_CANCELLED_") + toString(aI)) + "_") + I)), ScriptTransfer(Address(fromBase58String(K)), 1, fromBase58String(L))]
378+ let ba = J(K, L, F, M)
379+ let bb = z((ba + "_OPEN"))
380+[DeleteEntry((ba + "_OPEN")), DeleteEntry(((("sale2nd_status_" + K) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((((ba + "_") + I) + "_CANCELLED"), ((((bb + "_CANCELLED_") + toString(aO)) + "_") + I)), ScriptTransfer(Address(fromBase58String(K)), 1, fromBase58String(L))]
367381 }
368382 }
369383 }
370384
371385
372386
373-@Callable(U)
387+@Callable(W)
374388 func buyNFT (L) = {
375- let aX = aG(U, L)
376- let I = aX._1
377- let K = aX._2
378- let aI = aX._3
379- let aK = aX._4
380- let F = aX._5
381- let M = aX._6
382- let ar = aX._7
383- if ((size(ar) == 0))
389+ let bd = aM(W, L)
390+ let I = bd._1
391+ let K = bd._2
392+ let aO = bd._3
393+ let aQ = bd._4
394+ let F = bd._5
395+ let M = bd._6
396+ let at = bd._7
397+ if ((size(at) == 0))
384398 then throw("Artwork not found on SIGN Art, cancel your sale.")
385- else if (!(aK))
399+ else if (!(aQ))
386400 then throw("Not a valid nft")
387401 else {
388- let P = ae(L)
389- let aU = J(P, L, F, M)
390- let aV = z((aU + "_OPEN"))
391- if ((size(aV) == 0))
402+ let P = ag(L)
403+ let ba = J(P, L, F, M)
404+ let bb = z((ba + "_OPEN"))
405+ if ((size(bb) == 0))
392406 then throw("Sale Not found!")
393407 else {
394- let aY = split(aV, "_")
395- if ((parseInt(aY[1]) == 0))
408+ let be = split(bb, "_")
409+ if ((parseInt(be[1]) == 0))
396410 then throw("Offer only")
397411 else {
398- let aZ = V(U)
399- let W = aZ._1
400- let X = aZ._2
401- let ba = if (isDefined(W.assetId))
402- then toBase58String(value(W.assetId))
412+ let bf = X(W)
413+ let Y = bf._1
414+ let Z = bf._2
415+ let bg = if (isDefined(Y.assetId))
416+ then toBase58String(value(Y.assetId))
403417 else ""
404- if (if ((aY[1] != toString(X)))
418+ if (if ((be[1] != toString(Z)))
405419 then true
406- else (aY[2] != ba))
420+ else (be[2] != bg))
407421 then throw("Payment infos don't match.")
408422 else {
409- let au = fraction(X, l, 100)
410- let av = fraction(X, m, 100)
411- let aw = (X - (au + av))
412- let bb = at(X, W.assetId, L, M, P, K)
413- let ax = bb._1
414- let ay = bb._2
415- let az = bb._3
416- let aA = bb._4
417-[DeleteEntry((aU + "_OPEN")), DeleteEntry(((("sale2nd_status_" + P) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((((aU + "_") + I) + "_CLOSED"), ((((((aV + "_CLOSED_") + toString(aI)) + "_") + I) + "_") + K)), aL(), ax, ay, az, aA]
423+ let bh = av(Z, Y.assetId, L, M, P, K)
424+ let aC = bh._1
425+ let aE = bh._2
426+ let aF = bh._3
427+ let aG = bh._4
428+ let aD = bh._5
429+[DeleteEntry((ba + "_OPEN")), DeleteEntry(((("sale2nd_status_" + P) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((((ba + "_") + I) + "_CLOSED"), ((((((bb + "_CLOSED_") + toString(aO)) + "_") + I) + "_") + K)), aR(), aC, aE, aF, aG, aD]
418430 }
419431 }
420432 }
421433 }
422434 }
423435
424436
425437
426-@Callable(U)
438+@Callable(W)
427439 func setOffer (L) = {
428- let bc = aG(U, L)
429- let I = bc._1
430- let O = bc._2
431- let aI = bc._3
432- let aK = bc._4
433- let F = bc._5
434- let M = bc._6
435- let ar = bc._7
436- if (!(aK))
440+ let bi = aM(W, L)
441+ let I = bi._1
442+ let O = bi._2
443+ let aO = bi._3
444+ let aQ = bi._4
445+ let F = bi._5
446+ let M = bi._6
447+ let at = bi._7
448+ if (!(aQ))
437449 then throw("Not a valid nft")
438450 else {
439- let bd = V(U)
440- let W = bd._1
441- let X = bd._2
442- let ac = if (!(isDefined(W.assetId)))
451+ let bj = X(W)
452+ let Y = bj._1
453+ let Z = bj._2
454+ let ae = if (!(isDefined(Y.assetId)))
443455 then "WAVES"
444- else toBase58String(value(W.assetId))
445- if (!(ab(ac)))
456+ else toBase58String(value(Y.assetId))
457+ if (!(ad(ae)))
446458 then throw("asset not accepted")
447- else if ((X == 0))
459+ else if ((Z == 0))
448460 then throw("Offer of 0 not allowed")
449- else if (!(aB(ac, X)))
461+ else if (!(aH(ae, Z)))
450462 then throw("Wrong minimum sell price")
451463 else {
452- let P = ae(L)
453-[StringEntry((N(O, L, P, I) + "_OPEN"), ((((((((((((((toString(aI) + "_") + toString(X)) + "_") + ac) + "_") + L) + "_") + F) + "_") + M) + "_") + O) + "_") + I))]
464+ let P = ag(L)
465+[StringEntry((N(O, L, P, I) + "_OPEN"), ((((((((((((((toString(aO) + "_") + toString(Z)) + "_") + ae) + "_") + L) + "_") + F) + "_") + M) + "_") + O) + "_") + I))]
454466 }
455467 }
456468 }
457469
458470
459471
460-@Callable(U)
472+@Callable(W)
461473 func acceptOffer (L,Q,O) = {
462- let be = aG(U, L)
463- let I = be._1
464- let K = be._2
465- let aI = be._3
466- let aK = be._4
467- let F = be._5
468- let M = be._6
469- let ar = be._7
470- if (!(aK))
474+ let bk = aM(W, L)
475+ let I = bk._1
476+ let K = bk._2
477+ let aO = bk._3
478+ let aQ = bk._4
479+ let F = bk._5
480+ let M = bk._6
481+ let at = bk._7
482+ if (!(aQ))
471483 then throw("Not a valid nft")
472484 else {
473- let P = ae(L)
485+ let P = ag(L)
474486 if ((K != P))
475487 then throw("Only sale owner can accept offer")
476488 else {
477- let bf = N(O, L, P, Q)
478- let bg = ah(bf)
479- let aj = bg._1
480- let ac = bg._2
481- let ai = bg._3
482- let aU = J(P, L, F, M)
483- let aV = z((aU + "_OPEN"))
484- if ((size(aV) == 0))
489+ let bl = N(O, L, P, Q)
490+ let bm = aj(bl)
491+ let al = bm._1
492+ let ae = bm._2
493+ let ak = bm._3
494+ let ba = J(P, L, F, M)
495+ let bb = z((ba + "_OPEN"))
496+ if ((size(bb) == 0))
485497 then throw("Sale Not found!")
486498 else {
487- let X = value(parseInt(aj[1]))
488- let bh = at(X, ac, L, M, P, aj[6])
489- let ax = bh._1
490- let ay = bh._2
491- let az = bh._3
492- let aA = bh._4
493- let bi = if (isDefined(ac))
494- then toBase58String(value(ac))
499+ let Z = value(parseInt(al[1]))
500+ let bn = av(Z, ae, L, M, P, al[6])
501+ let aC = bn._1
502+ let aE = bn._2
503+ let aF = bn._3
504+ let aG = bn._4
505+ let aD = bn._5
506+ let bo = if (isDefined(ae))
507+ then toBase58String(value(ae))
495508 else "WAVES"
496-[DeleteEntry((aU + "_OPEN")), DeleteEntry((bf + "_OPEN")), DeleteEntry(((("sale2nd_status_" + P) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((bf + "_CLOSED"), ((((ai + "_CLOSED_") + toString(aI)) + "_") + I)), StringEntry((((aU + "_") + I) + "_CLOSED"), ((((((((((aV + "_CLOSED-OFFER_") + toString(aI)) + "_") + I) + "_") + O) + "_") + toString(X)) + "_") + bi)), aL(), ax, ay, az, aA]
509+[DeleteEntry((ba + "_OPEN")), DeleteEntry((bl + "_OPEN")), DeleteEntry(((("sale2nd_status_" + P) + "_") + L)), DeleteEntry(("current_owner_on_dapp_" + L)), StringEntry((bl + "_CLOSED"), ((((ak + "_CLOSED_") + toString(aO)) + "_") + I)), StringEntry((((ba + "_") + I) + "_CLOSED"), ((((((((((bb + "_CLOSED-OFFER_") + toString(aO)) + "_") + I) + "_") + O) + "_") + toString(Z)) + "_") + bo)), aR(), aC, aE, aF, aG, aD]
497510 }
498511 }
499512 }
500513 }
501514
502515
503516
504-@Callable(U)
517+@Callable(W)
505518 func cancelOffer (L,Q,O,P) = {
506- let bj = T(U)
507- let I = bj._1
508- let K = bj._2
509- let aI = bj._3
519+ let bp = V(W)
520+ let I = bp._1
521+ let K = bp._2
522+ let aO = bp._3
510523 if (if ((K != O))
511524 then (K != P)
512525 else false)
513526 then throw("You cannot cancel this offer.")
514527 else {
515- let bf = N(O, L, P, Q)
516- let bk = ah(bf)
517- let aj = bk._1
518- let ac = bk._2
519- let ai = bk._3
520-[DeleteEntry((bf + "_OPEN")), StringEntry((bf + "_CANCELLED"), ((((ai + "_CANCELLED_") + toString(aI)) + "_") + I)), ScriptTransfer(Address(fromBase58String(K)), parseIntValue(aj[1]), ac)]
528+ let bl = N(O, L, P, Q)
529+ let bq = aj(bl)
530+ let al = bq._1
531+ let ae = bq._2
532+ let ak = bq._3
533+[DeleteEntry((bl + "_OPEN")), StringEntry((bl + "_CANCELLED"), ((((ak + "_CANCELLED_") + toString(aO)) + "_") + I)), ScriptTransfer(Address(fromBase58String(K)), parseIntValue(al[1]), ae)]
521534 }
522535 }
523536
524537

github/deemru/w8io/169f3d6 
151.01 ms