tx · 2dnVfxGeATmcjTQszddeKdzgtNW9dx65keXGjQqccU3x

3N4vSLJud5iURK9VQB7f5ccVc59y5jZMeVM:  -0.01400000 Waves

2021.06.04 15:27 [1555628] smart account 3N4vSLJud5iURK9VQB7f5ccVc59y5jZMeVM > SELF 0.00000000 Waves

{ "type": 13, "id": "2dnVfxGeATmcjTQszddeKdzgtNW9dx65keXGjQqccU3x", "fee": 1400000, "feeAssetId": null, "timestamp": 1622809765126, "version": 2, "chainId": 84, "sender": "3N4vSLJud5iURK9VQB7f5ccVc59y5jZMeVM", "senderPublicKey": "HiyGzH24M9y1hB4zVzaiQiSrQzc5TaDNbr4ZkzeVqrrT", "proofs": [ "1i74w3u1muJTSwyfXnzJrLi3Tr4s811qPtCCvzw4FowMhu9ULQE3o3Y7B1rWjLkXyVWE9xcrQZJzGMHxf7eoJq2" ], "script": "base64:AAIEAAAAAAAAAEUIAhIECgIBCBIFCgMIAQgSAwoBCBIDCgEIEgMKAQgSBQoDCAgIEgUKAwgICBIECgIICBIFCgMICAgSBQoDCAgIEgMKAQgAAAApAAAAAAh1bml0VGVzdAcAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAIc2lnbkRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAADGFydHdvcmtzRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkJ5bmZiWEMyS2FzdFV4aHVrY01VYUU1OEs5Y0JkQjlVWQAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAh1c2VyRGFwcAMFAAAACHVuaXRUZXN0CQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNdDRS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AApfQ0FOQ0VMTEVECQABLAAAAAIJAAEsAAAAAgUAAAALcmVxdWVzdERhdGECAAAAAV8JAAGkAAAAAQUAAAAEZGF0ZQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAAMcmVxdWVzdE93bmVyCQEAAAANcGFyc2VJbnRWYWx1ZQAAAAEJAAGRAAAAAgUAAAAOcmVxdWVzdERhdGFBcnIAAAAAAAAAAAEJAAJZAAAAAQkAAZEAAAACBQAAAA5yZXF1ZXN0RGF0YUFycgAAAAAAAAAAAgUAAAADbmlsAAAAAWkBAAAAC2RlbGV0ZUVudHJ5AAAAAQAAAAVlbnRyeQQAAAAGY2FsbGVyCQAEJQAAAAEJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQMJAAAAAAAAAgUAAAAGY2FsbGVyBQAAAAVjaHJpcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAALjATGs=", "height": 1555628, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: itq5pWaHpF3ELDQPuDEcywee2kF7fcfcZjABWUffmaw Next: 9nwhjxSHJWdmsz3GtGYiZx11St3QaswUgziEbLRvxhQ1 Diff:
OldNewDifferences
191191 }
192192
193193
194+func cleanStr (str) = if (contains(str, "_"))
195+ then true
196+ else throw("Wrong string format")
197+
198+
194199 @Callable(i)
195200 func sellNFT (price,asset) = {
196- let $t071147153 = idCallerDate(i)
197- let id = $t071147153._1
198- let caller = $t071147153._2
199- let date = $t071147153._3
200- let $t071587194 = isPayment(i)
201- let payment = $t071587194._1
202- let amount = $t071587194._2
201+ let checkAsset = cleanStr(asset)
202+ let $t072577296 = idCallerDate(i)
203+ let id = $t072577296._1
204+ let caller = $t072577296._2
205+ let date = $t072577296._3
206+ let $t073017337 = isPayment(i)
207+ let payment = $t073017337._1
208+ let amount = $t073017337._2
203209 let nftId = if (if (isDefined(payment.assetId))
204210 then isSignArtNFT(value(payment.assetId))
205211 else false)
208214 if (!(acceptedAssetIds(asset)))
209215 then throw("Only SIGN, USDN or WAVES accepted")
210216 else {
211- let $t074957553 = checkNFTInfo(nftId)
212- let isValidNFT = $t074957553._1
213- let artId = $t074957553._2
214- let creatorAddr = $t074957553._3
217+ let $t076387696 = checkNFTInfo(nftId)
218+ let isValidNFT = $t076387696._1
219+ let artId = $t076387696._2
220+ let creatorAddr = $t076387696._3
215221 if (!(isValidNFT))
216222 then throw("Something went wrong")
217223 else [StringEntry((((((("sale2nd_info_" + caller) + "_") + nftId) + "_") + creatorAddr) + "_OPEN"), ((((((((((((toString(date) + "_") + toString(price)) + "_") + asset) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_") + id)), StringEntry(((("sale2nd_status_" + caller) + "_") + nftId), "OPEN"), StringEntry(("current_owner_on_dapp_" + nftId), caller)]
222228
223229 @Callable(i)
224230 func updateSalePrice (nftid,price,asset) = {
225- let $t080608099 = idCallerDate(i)
226- let id = $t080608099._1
227- let caller = $t080608099._2
228- let date = $t080608099._3
231+ let $t082038242 = idCallerDate(i)
232+ let id = $t082038242._1
233+ let caller = $t082038242._2
234+ let date = $t082038242._3
229235 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
230236 if ((saleOwner != caller))
231237 then throw("You don't own this NFT")
245251
246252 @Callable(i)
247253 func cancelSale (nftid) = {
248- let $t090689107 = idCallerDate(i)
249- let id = $t090689107._1
250- let caller = $t090689107._2
251- let date = $t090689107._3
254+ let $t092109249 = idCallerDate(i)
255+ let id = $t092109249._1
256+ let caller = $t092109249._2
257+ let date = $t092109249._3
252258 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
253259 if ((saleOwner != caller))
254260 then throw("You don't own this NFT")
268274
269275 @Callable(i)
270276 func buyNFT (nftid) = {
271- let $t01025310324 = idCallerDate(i)
272- let id = $t01025310324._1
273- let caller = $t01025310324._2
274- let date = $t01025310324._3
277+ let $t01039510466 = idCallerDate(i)
278+ let id = $t01039510466._1
279+ let caller = $t01039510466._2
280+ let date = $t01039510466._3
275281 let saleOwner = getSaleOwnerAndStatus(nftid)
276- let $t01037910437 = checkNFTInfo(nftid)
277- let isValidNFT = $t01037910437._1
278- let artId = $t01037910437._2
279- let creatorAddr = $t01037910437._3
282+ let $t01052110579 = checkNFTInfo(nftid)
283+ let isValidNFT = $t01052110579._1
284+ let artId = $t01052110579._2
285+ let creatorAddr = $t01052110579._3
280286 if (!(isValidNFT))
281287 then throw("Something went wrong")
282288 else {
288294 if ((parseInt(saleInfoArray[1]) == 0))
289295 then throw("Offer only")
290296 else {
291- let $t01077210808 = isPayment(i)
292- let payment = $t01077210808._1
293- let amount = $t01077210808._2
297+ let $t01091410950 = isPayment(i)
298+ let payment = $t01091410950._1
299+ let amount = $t01091410950._2
294300 let paymentAssetStr = if (isDefined(payment.assetId))
295301 then toBase58String(value(payment.assetId))
296302 else ""
302308 let amountForSign = fraction(amount, signCut, 100)
303309 let amountForCreator = fraction(amount, creatorCut, 100)
304310 let amountForOwner = (amount - (amountForSign + amountForCreator))
305- let $t01131711445 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller)
306- let signFee = $t01131711445._1
307- let creatorFee = $t01131711445._2
308- let ownerFee = $t01131711445._3
309- let collectorFee = $t01131711445._4
311+ let $t01145911587 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller)
312+ let signFee = $t01145911587._1
313+ let creatorFee = $t01145911587._2
314+ let ownerFee = $t01145911587._3
315+ let collectorFee = $t01145911587._4
310316 [DeleteEntry((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_") + id) + "_CLOSED"), ((((((makeString(saleInfoArray, "_") + "_CLOSED_") + toString(date)) + "_") + id) + "_") + caller)), signFee, creatorFee, ownerFee, collectorFee]
311317 }
312318 }
318324
319325 @Callable(i)
320326 func setOffer (nftid) = {
321- let $t01249512537 = idCallerDate(i)
322- let id = $t01249512537._1
323- let offerOwner = $t01249512537._2
324- let date = $t01249512537._3
325- let $t01254212578 = isPayment(i)
326- let payment = $t01254212578._1
327- let amount = $t01254212578._2
327+ let $t01263712679 = idCallerDate(i)
328+ let id = $t01263712679._1
329+ let offerOwner = $t01263712679._2
330+ let date = $t01263712679._3
331+ let $t01268412720 = isPayment(i)
332+ let payment = $t01268412720._1
333+ let amount = $t01268412720._2
328334 let assetId = if (!(isDefined(payment.assetId)))
329335 then "WAVES"
330336 else toBase58String(value(payment.assetId))
331337 if (!(acceptedAssetIds(assetId)))
332338 then throw("asset not accepted")
333339 else {
334- let $t01276412822 = checkNFTInfo(nftid)
335- let isValidNFT = $t01276412822._1
336- let artId = $t01276412822._2
337- let creatorAddr = $t01276412822._3
340+ let $t01290612964 = checkNFTInfo(nftid)
341+ let isValidNFT = $t01290612964._1
342+ let artId = $t01290612964._2
343+ let creatorAddr = $t01290612964._3
338344 if (!(isValidNFT))
339345 then throw("Something went wrong")
340346 else {
348354
349355 @Callable(i)
350356 func acceptOffer (nftid,offerId,offerOwner) = {
351- let $t01338013450 = idCallerDate(i)
352- let id = $t01338013450._1
353- let caller = $t01338013450._2
354- let date = $t01338013450._3
357+ let $t01352213592 = idCallerDate(i)
358+ let id = $t01352213592._1
359+ let caller = $t01352213592._2
360+ let date = $t01352213592._3
355361 let saleOwner = getSaleOwnerAndStatus(nftid)
356362 if ((caller != saleOwner))
357363 then throw("You cannot do this action")
358364 else {
359- let offerExist = getStrByK((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) + "_OPEN"))
365+ let bidDataKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
366+ let offerExist = getStrByK((bidDataKey + "_OPEN"))
360367 if ((offerExist == ""))
361368 then throw("Offer not found or not for sale")
362369 else {
363- let $t01375513813 = checkNFTInfo(nftid)
364- let isValidNFT = $t01375513813._1
365- let artId = $t01375513813._2
366- let creatorAddr = $t01375513813._3
370+ let $t01393013988 = checkNFTInfo(nftid)
371+ let isValidNFT = $t01393013988._1
372+ let artId = $t01393013988._2
373+ let creatorAddr = $t01393013988._3
367374 if (!(isValidNFT))
368375 then throw("Something went wrong")
369376 else {
370- let saleInfo = getStrByK((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN"))
371- if ((size(saleInfo) == 0))
377+ let saleDataKey = ((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr)
378+ let saleValue = getStrByK((saleDataKey + "_OPEN"))
379+ if ((size(saleValue) == 0))
372380 then throw("Sale Not found!")
373381 else {
374- let bidDataKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
375- let $t01414914208 = getBidData(bidDataKey)
376- let bidDataArr = $t01414914208._1
377- let assetId = $t01414914208._2
378- let bidData = $t01414914208._3
382+ let $t01428114340 = getBidData(bidDataKey)
383+ let bidDataArr = $t01428114340._1
384+ let assetId = $t01428114340._2
385+ let bidData = $t01428114340._3
379386 let amount = value(parseInt(bidDataArr[1]))
380- let $t01426214389 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[3])
381- let signFee = $t01426214389._1
382- let creatorFee = $t01426214389._2
383- let ownerFee = $t01426214389._3
384- let collectorFee = $t01426214389._4
385-[DeleteEntry((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")), DeleteEntry((bidDataKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_") + artId) + "_") + offerOwner) + "_") + offerId)), StringEntry((((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_to_") + offerOwner)), signFee, creatorFee, ownerFee, collectorFee]
387+ let $t01439414521 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[3])
388+ let signFee = $t01439414521._1
389+ let creatorFee = $t01439414521._2
390+ let ownerFee = $t01439414521._3
391+ let collectorFee = $t01439414521._4
392+[DeleteEntry((saleDataKey + "_OPEN")), DeleteEntry((bidDataKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_") + artId) + "_") + offerOwner) + "_") + offerId)), StringEntry((((((saleDataKey + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_to_") + offerOwner)), signFee, creatorFee, ownerFee, collectorFee]
386393 }
387394 }
388395 }
393400
394401 @Callable(i)
395402 func cancelOffer (nftid,offerId,saleOwner) = {
396- let $t01520915270 = idCallerDate(i)
397- let id = $t01520915270._1
398- let caller = $t01520915270._2
399- let date = $t01520915270._3
403+ let $t01526115322 = idCallerDate(i)
404+ let id = $t01526115322._1
405+ let caller = $t01526115322._2
406+ let date = $t01526115322._3
400407 let bidDataKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
401- let $t01535115410 = getBidData(bidDataKey)
402- let bidDataArr = $t01535115410._1
403- let assetId = $t01535115410._2
404- let bidData = $t01535115410._3
408+ let $t01540315462 = getBidData(bidDataKey)
409+ let bidDataArr = $t01540315462._1
410+ let assetId = $t01540315462._2
411+ let bidData = $t01540315462._3
405412 [DeleteEntry((bidDataKey + "_OPEN")), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
406413 }
407414
409416
410417 @Callable(i)
411418 func makeRequest (artId,creatorAddr) = {
412- let $t01574515789 = idCallerDate(i)
413- let id = $t01574515789._1
414- let requestOwner = $t01574515789._2
415- let date = $t01574515789._3
416- let $t01579415830 = isPayment(i)
417- let payment = $t01579415830._1
418- let amount = $t01579415830._2
419+ let $t01579715841 = idCallerDate(i)
420+ let id = $t01579715841._1
421+ let requestOwner = $t01579715841._2
422+ let date = $t01579715841._3
423+ let $t01584615882 = isPayment(i)
424+ let payment = $t01584615882._1
425+ let amount = $t01584615882._2
419426 let assetId = if (!(isDefined(payment.assetId)))
420427 then "WAVES"
421428 else toBase58String(value(payment.assetId))
433440
434441 @Callable(i)
435442 func fillRequest (artId,requestOwner,offerId) = {
436- let $t01660516647 = idCallerDate(i)
437- let id = $t01660516647._1
438- let saleOwner = $t01660516647._2
439- let date = $t01660516647._3
440- let $t01665216696 = isPayment(i)
441- let payment = $t01665216696._1
442- let amountAttached = $t01665216696._2
443+ let $t01665716699 = idCallerDate(i)
444+ let id = $t01665716699._1
445+ let saleOwner = $t01665716699._2
446+ let date = $t01665716699._3
447+ let $t01670416748 = isPayment(i)
448+ let payment = $t01670416748._1
449+ let amountAttached = $t01670416748._2
443450 let NFTid = if (if (isDefined(payment.assetId))
444451 then isSignArtNFT(value(payment.assetId))
445452 else false)
456463 then throw("This NFT don't match the requested artwork")
457464 else {
458465 let amount = value(parseInt(requestData[1]))
459- let $t01741617591 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4])
460- let signFee = $t01741617591._1
461- let creatorFee = $t01741617591._2
462- let ownerFee = $t01741617591._3
463- let collectorFee = $t01741617591._4
466+ let $t01746817643 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4])
467+ let signFee = $t01746817643._1
468+ let creatorFee = $t01746817643._2
469+ let ownerFee = $t01746817643._3
470+ let collectorFee = $t01746817643._4
464471 [DeleteEntry((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), StringEntry((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + requestData[2]) + "_") + artId) + "_") + requestOwner) + "_") + saleOwner) + "_") + id)), signFee, creatorFee, ownerFee, collectorFee]
465472 }
466473 }
470477
471478 @Callable(i)
472479 func cancelRequest (artId,creatorAddr,requestId) = {
473- let $t01805118095 = idCallerDate(i)
474- let id = $t01805118095._1
475- let requestOwner = $t01805118095._2
476- let date = $t01805118095._3
480+ let $t01810318147 = idCallerDate(i)
481+ let id = $t01810318147._1
482+ let requestOwner = $t01810318147._2
483+ let date = $t01810318147._3
477484 let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId)
478485 let requestData = getStrByK((requesDataKey + "_OPEN"))
479486 if ((size(requestData) == 0))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let unitTest = false
55
66 let oracleFee = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
77
88 let signDapp = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB"))
99
1010 let artworksDapp = value(addressFromString("3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY"))
1111
1212 let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
1313
1414 let userDapp = if (unitTest)
1515 then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm"))
1616 else value(addressFromString("3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj"))
1717
1818 let whitelistDapp = value(addressFromString("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq"))
1919
2020 let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
2121
2222 let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
2323
2424 let wavesAssetId = base58''
2525
2626 let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
2727
2828 let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
2929
3030 let signCut = 3
3131
3232 let creatorCut = 10
3333
3434 let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true)
3535
3636 let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "")
3737
3838 let userSuspended = "SUSPENDED"
3939
4040 let userRemoved = "REMOVED"
4141
4242 let artIllegal = "ILLEGAL"
4343
4444 let artSuspended = "SUSPENDED"
4545
4646 func getUserStrByK (key) = valueOrElse(getString(userDapp, key), "Error")
4747
4848
4949 func getArtStrByK (key) = valueOrElse(getString(artworksDapp, key), "")
5050
5151
5252 func getStrByK (key) = valueOrElse(getString(this, key), "")
5353
5454
5555 func getIntByK (key) = valueOrElse(getInteger(this, key), 0)
5656
5757
5858 func keyUserStatus (addr) = ("user_status_" + addr)
5959
6060
6161 func keySignID (artistAddr,artId) = ((("art_signid_" + artId) + "_") + artistAddr)
6262
6363
6464 func keyFlag (artistAddr,artId) = ((("art_flag_" + artId) + "_") + artistAddr)
6565
6666
6767 func keyNFTData (id) = ("nft_" + id)
6868
6969
7070 func idCallerDate (i) = if (!(dappRunning))
7171 then throw(maintenanceMSG)
7272 else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
7373
7474
7575 func isPayment (i) = if ((size(i.payments) == 0))
7676 then throw("No payment attached")
7777 else {
7878 let payment = value(i.payments[0])
7979 let amount = value(payment.amount)
8080 $Tuple2(payment, amount)
8181 }
8282
8383
8484 func isSignArtNFT (id) = {
8585 let assetDetails = value(assetInfo(id))
8686 if (if (if (if ((assetDetails.quantity != 1))
8787 then true
8888 else (assetDetails.decimals != 0))
8989 then true
9090 else (assetDetails.reissuable != false))
9191 then true
9292 else (assetDetails.issuer != artworksDapp))
9393 then false
9494 else true
9595 }
9696
9797
9898 func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId)))
9999 then (assetId != toBase58String(wavesAssetId))
100100 else false)
101101 then (assetId != "WAVES")
102102 else false)
103103 then (assetId != toBase58String(usdnAssetId))
104104 else false)
105105 then false
106106 else true
107107
108108
109109 func getBidAssetId (assetId) = if ((assetId == "WAVES"))
110110 then unit
111111 else fromBase58String(assetId)
112112
113113
114114 func getSaleOwnerAndStatus (nftid) = {
115115 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
116116 if ((size(saleOwner) == 0))
117117 then throw("NFT not found")
118118 else {
119119 let saleStatus = getStrByK(((("sale2nd_status_" + saleOwner) + "_") + nftid))
120120 if ((saleStatus != "OPEN"))
121121 then throw("NFT not for sale")
122122 else saleOwner
123123 }
124124 }
125125
126126
127127 func getBidData (key) = {
128128 let bidData = getStrByK((key + "_OPEN"))
129129 if ((bidData == ""))
130130 then throw("Offer not found")
131131 else {
132132 let bidDataArr = split(bidData, "_")
133133 let assetId = getBidAssetId(bidDataArr[2])
134134 $Tuple3(bidDataArr, assetId, bidData)
135135 }
136136 }
137137
138138
139139 func checkArtStatus (addr,id) = {
140140 let artStatus = getArtStrByK(keyFlag(addr, id))
141141 if (if ((artStatus == artIllegal))
142142 then true
143143 else (artStatus == artSuspended))
144144 then throw(("Original Artwork flagged as " + artStatus))
145145 else true
146146 }
147147
148148
149149 func checkArtistStatus (addr) = {
150150 let artistStatus = getUserStrByK(keyUserStatus(addr))
151151 if (containsElement([userSuspended, userRemoved], artistStatus))
152152 then throw(("Original Artist " + artistStatus))
153153 else true
154154 }
155155
156156
157157 func checkNFTInfo (assetId) = {
158158 let nftData = split(getArtStrByK(keyNFTData(assetId)), "_")
159159 let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5]))
160160 if ((size(artSignID) == 0))
161161 then throw("Artwork not found on SIGN Art")
162162 else if (if (!(checkArtStatus(nftData[6], nftData[5])))
163163 then !(checkArtistStatus(nftData[6]))
164164 else false)
165165 then $Tuple3(false, nftData[5], nftData[6])
166166 else $Tuple3(true, nftData[5], nftData[6])
167167 }
168168
169169
170170 func checkARTExist (artId,creatorAddr) = {
171171 let artSignID = getArtStrByK(keySignID(creatorAddr, artId))
172172 if ((size(artSignID) == 0))
173173 then throw("Artwork not found on SIGN Art")
174174 else if (if (!(checkArtStatus(creatorAddr, artId)))
175175 then !(checkArtistStatus(creatorAddr))
176176 else false)
177177 then false
178178 else true
179179 }
180180
181181
182182 func setTransfers (amount,assetId,nftid,creatorAddr,saleOwner,caller) = {
183183 let amountForSign = fraction(amount, signCut, 100)
184184 let amountForCreator = fraction(amount, creatorCut, 100)
185185 let amountForOwner = (amount - (amountForSign + amountForCreator))
186186 let signFee = ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId)
187187 let creatorFee = ScriptTransfer(Address(fromBase58String(creatorAddr)), amountForCreator, assetId)
188188 let ownerFee = ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId)
189189 let collectorFee = ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))
190190 $Tuple4(signFee, creatorFee, ownerFee, collectorFee)
191191 }
192192
193193
194+func cleanStr (str) = if (contains(str, "_"))
195+ then true
196+ else throw("Wrong string format")
197+
198+
194199 @Callable(i)
195200 func sellNFT (price,asset) = {
196- let $t071147153 = idCallerDate(i)
197- let id = $t071147153._1
198- let caller = $t071147153._2
199- let date = $t071147153._3
200- let $t071587194 = isPayment(i)
201- let payment = $t071587194._1
202- let amount = $t071587194._2
201+ let checkAsset = cleanStr(asset)
202+ let $t072577296 = idCallerDate(i)
203+ let id = $t072577296._1
204+ let caller = $t072577296._2
205+ let date = $t072577296._3
206+ let $t073017337 = isPayment(i)
207+ let payment = $t073017337._1
208+ let amount = $t073017337._2
203209 let nftId = if (if (isDefined(payment.assetId))
204210 then isSignArtNFT(value(payment.assetId))
205211 else false)
206212 then toBase58String(value(payment.assetId))
207213 else throw("Only SIGN Art NFT accepted.")
208214 if (!(acceptedAssetIds(asset)))
209215 then throw("Only SIGN, USDN or WAVES accepted")
210216 else {
211- let $t074957553 = checkNFTInfo(nftId)
212- let isValidNFT = $t074957553._1
213- let artId = $t074957553._2
214- let creatorAddr = $t074957553._3
217+ let $t076387696 = checkNFTInfo(nftId)
218+ let isValidNFT = $t076387696._1
219+ let artId = $t076387696._2
220+ let creatorAddr = $t076387696._3
215221 if (!(isValidNFT))
216222 then throw("Something went wrong")
217223 else [StringEntry((((((("sale2nd_info_" + caller) + "_") + nftId) + "_") + creatorAddr) + "_OPEN"), ((((((((((((toString(date) + "_") + toString(price)) + "_") + asset) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_") + id)), StringEntry(((("sale2nd_status_" + caller) + "_") + nftId), "OPEN"), StringEntry(("current_owner_on_dapp_" + nftId), caller)]
218224 }
219225 }
220226
221227
222228
223229 @Callable(i)
224230 func updateSalePrice (nftid,price,asset) = {
225- let $t080608099 = idCallerDate(i)
226- let id = $t080608099._1
227- let caller = $t080608099._2
228- let date = $t080608099._3
231+ let $t082038242 = idCallerDate(i)
232+ let id = $t082038242._1
233+ let caller = $t082038242._2
234+ let date = $t082038242._3
229235 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
230236 if ((saleOwner != caller))
231237 then throw("You don't own this NFT")
232238 else {
233239 let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid))
234240 if ((saleStatus != "OPEN"))
235241 then throw("Sale not active")
236242 else {
237243 let creatorAddr = split(getArtStrByK(keyNFTData(nftid)), "_")[6]
238244 let saleInfo = split(getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus)), "_")
239245 [StringEntry((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))]
240246 }
241247 }
242248 }
243249
244250
245251
246252 @Callable(i)
247253 func cancelSale (nftid) = {
248- let $t090689107 = idCallerDate(i)
249- let id = $t090689107._1
250- let caller = $t090689107._2
251- let date = $t090689107._3
254+ let $t092109249 = idCallerDate(i)
255+ let id = $t092109249._1
256+ let caller = $t092109249._2
257+ let date = $t092109249._3
252258 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
253259 if ((saleOwner != caller))
254260 then throw("You don't own this NFT")
255261 else {
256262 let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid))
257263 if ((saleStatus != "OPEN"))
258264 then throw("Sale not active")
259265 else {
260266 let creatorAddr = split(getArtStrByK(keyNFTData(nftid)), "_")[6]
261267 let saleInfo = getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus))
262268 [DeleteEntry((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + caller) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + id) + "_CANCELLED"), ((((saleInfo + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))]
263269 }
264270 }
265271 }
266272
267273
268274
269275 @Callable(i)
270276 func buyNFT (nftid) = {
271- let $t01025310324 = idCallerDate(i)
272- let id = $t01025310324._1
273- let caller = $t01025310324._2
274- let date = $t01025310324._3
277+ let $t01039510466 = idCallerDate(i)
278+ let id = $t01039510466._1
279+ let caller = $t01039510466._2
280+ let date = $t01039510466._3
275281 let saleOwner = getSaleOwnerAndStatus(nftid)
276- let $t01037910437 = checkNFTInfo(nftid)
277- let isValidNFT = $t01037910437._1
278- let artId = $t01037910437._2
279- let creatorAddr = $t01037910437._3
282+ let $t01052110579 = checkNFTInfo(nftid)
283+ let isValidNFT = $t01052110579._1
284+ let artId = $t01052110579._2
285+ let creatorAddr = $t01052110579._3
280286 if (!(isValidNFT))
281287 then throw("Something went wrong")
282288 else {
283289 let saleInfo = getStrByK((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN"))
284290 if ((size(saleInfo) == 0))
285291 then throw("Sale Not found!")
286292 else {
287293 let saleInfoArray = split(saleInfo, "_")
288294 if ((parseInt(saleInfoArray[1]) == 0))
289295 then throw("Offer only")
290296 else {
291- let $t01077210808 = isPayment(i)
292- let payment = $t01077210808._1
293- let amount = $t01077210808._2
297+ let $t01091410950 = isPayment(i)
298+ let payment = $t01091410950._1
299+ let amount = $t01091410950._2
294300 let paymentAssetStr = if (isDefined(payment.assetId))
295301 then toBase58String(value(payment.assetId))
296302 else ""
297303 if (if ((saleInfoArray[1] != toString(amount)))
298304 then true
299305 else (saleInfoArray[2] != paymentAssetStr))
300306 then throw("Payment infos don't match.")
301307 else {
302308 let amountForSign = fraction(amount, signCut, 100)
303309 let amountForCreator = fraction(amount, creatorCut, 100)
304310 let amountForOwner = (amount - (amountForSign + amountForCreator))
305- let $t01131711445 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller)
306- let signFee = $t01131711445._1
307- let creatorFee = $t01131711445._2
308- let ownerFee = $t01131711445._3
309- let collectorFee = $t01131711445._4
311+ let $t01145911587 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller)
312+ let signFee = $t01145911587._1
313+ let creatorFee = $t01145911587._2
314+ let ownerFee = $t01145911587._3
315+ let collectorFee = $t01145911587._4
310316 [DeleteEntry((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_") + id) + "_CLOSED"), ((((((makeString(saleInfoArray, "_") + "_CLOSED_") + toString(date)) + "_") + id) + "_") + caller)), signFee, creatorFee, ownerFee, collectorFee]
311317 }
312318 }
313319 }
314320 }
315321 }
316322
317323
318324
319325 @Callable(i)
320326 func setOffer (nftid) = {
321- let $t01249512537 = idCallerDate(i)
322- let id = $t01249512537._1
323- let offerOwner = $t01249512537._2
324- let date = $t01249512537._3
325- let $t01254212578 = isPayment(i)
326- let payment = $t01254212578._1
327- let amount = $t01254212578._2
327+ let $t01263712679 = idCallerDate(i)
328+ let id = $t01263712679._1
329+ let offerOwner = $t01263712679._2
330+ let date = $t01263712679._3
331+ let $t01268412720 = isPayment(i)
332+ let payment = $t01268412720._1
333+ let amount = $t01268412720._2
328334 let assetId = if (!(isDefined(payment.assetId)))
329335 then "WAVES"
330336 else toBase58String(value(payment.assetId))
331337 if (!(acceptedAssetIds(assetId)))
332338 then throw("asset not accepted")
333339 else {
334- let $t01276412822 = checkNFTInfo(nftid)
335- let isValidNFT = $t01276412822._1
336- let artId = $t01276412822._2
337- let creatorAddr = $t01276412822._3
340+ let $t01290612964 = checkNFTInfo(nftid)
341+ let isValidNFT = $t01290612964._1
342+ let artId = $t01290612964._2
343+ let creatorAddr = $t01290612964._3
338344 if (!(isValidNFT))
339345 then throw("Something went wrong")
340346 else {
341347 let saleOwner = getSaleOwnerAndStatus(nftid)
342348 [StringEntry((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + assetId) + "_") + artId) + "_") + offerOwner) + "_") + id))]
343349 }
344350 }
345351 }
346352
347353
348354
349355 @Callable(i)
350356 func acceptOffer (nftid,offerId,offerOwner) = {
351- let $t01338013450 = idCallerDate(i)
352- let id = $t01338013450._1
353- let caller = $t01338013450._2
354- let date = $t01338013450._3
357+ let $t01352213592 = idCallerDate(i)
358+ let id = $t01352213592._1
359+ let caller = $t01352213592._2
360+ let date = $t01352213592._3
355361 let saleOwner = getSaleOwnerAndStatus(nftid)
356362 if ((caller != saleOwner))
357363 then throw("You cannot do this action")
358364 else {
359- let offerExist = getStrByK((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) + "_OPEN"))
365+ let bidDataKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
366+ let offerExist = getStrByK((bidDataKey + "_OPEN"))
360367 if ((offerExist == ""))
361368 then throw("Offer not found or not for sale")
362369 else {
363- let $t01375513813 = checkNFTInfo(nftid)
364- let isValidNFT = $t01375513813._1
365- let artId = $t01375513813._2
366- let creatorAddr = $t01375513813._3
370+ let $t01393013988 = checkNFTInfo(nftid)
371+ let isValidNFT = $t01393013988._1
372+ let artId = $t01393013988._2
373+ let creatorAddr = $t01393013988._3
367374 if (!(isValidNFT))
368375 then throw("Something went wrong")
369376 else {
370- let saleInfo = getStrByK((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN"))
371- if ((size(saleInfo) == 0))
377+ let saleDataKey = ((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr)
378+ let saleValue = getStrByK((saleDataKey + "_OPEN"))
379+ if ((size(saleValue) == 0))
372380 then throw("Sale Not found!")
373381 else {
374- let bidDataKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
375- let $t01414914208 = getBidData(bidDataKey)
376- let bidDataArr = $t01414914208._1
377- let assetId = $t01414914208._2
378- let bidData = $t01414914208._3
382+ let $t01428114340 = getBidData(bidDataKey)
383+ let bidDataArr = $t01428114340._1
384+ let assetId = $t01428114340._2
385+ let bidData = $t01428114340._3
379386 let amount = value(parseInt(bidDataArr[1]))
380- let $t01426214389 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[3])
381- let signFee = $t01426214389._1
382- let creatorFee = $t01426214389._2
383- let ownerFee = $t01426214389._3
384- let collectorFee = $t01426214389._4
385-[DeleteEntry((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")), DeleteEntry((bidDataKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_") + artId) + "_") + offerOwner) + "_") + offerId)), StringEntry((((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_to_") + offerOwner)), signFee, creatorFee, ownerFee, collectorFee]
387+ let $t01439414521 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[3])
388+ let signFee = $t01439414521._1
389+ let creatorFee = $t01439414521._2
390+ let ownerFee = $t01439414521._3
391+ let collectorFee = $t01439414521._4
392+[DeleteEntry((saleDataKey + "_OPEN")), DeleteEntry((bidDataKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_") + artId) + "_") + offerOwner) + "_") + offerId)), StringEntry((((((saleDataKey + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_to_") + offerOwner)), signFee, creatorFee, ownerFee, collectorFee]
386393 }
387394 }
388395 }
389396 }
390397 }
391398
392399
393400
394401 @Callable(i)
395402 func cancelOffer (nftid,offerId,saleOwner) = {
396- let $t01520915270 = idCallerDate(i)
397- let id = $t01520915270._1
398- let caller = $t01520915270._2
399- let date = $t01520915270._3
403+ let $t01526115322 = idCallerDate(i)
404+ let id = $t01526115322._1
405+ let caller = $t01526115322._2
406+ let date = $t01526115322._3
400407 let bidDataKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
401- let $t01535115410 = getBidData(bidDataKey)
402- let bidDataArr = $t01535115410._1
403- let assetId = $t01535115410._2
404- let bidData = $t01535115410._3
408+ let $t01540315462 = getBidData(bidDataKey)
409+ let bidDataArr = $t01540315462._1
410+ let assetId = $t01540315462._2
411+ let bidData = $t01540315462._3
405412 [DeleteEntry((bidDataKey + "_OPEN")), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
406413 }
407414
408415
409416
410417 @Callable(i)
411418 func makeRequest (artId,creatorAddr) = {
412- let $t01574515789 = idCallerDate(i)
413- let id = $t01574515789._1
414- let requestOwner = $t01574515789._2
415- let date = $t01574515789._3
416- let $t01579415830 = isPayment(i)
417- let payment = $t01579415830._1
418- let amount = $t01579415830._2
419+ let $t01579715841 = idCallerDate(i)
420+ let id = $t01579715841._1
421+ let requestOwner = $t01579715841._2
422+ let date = $t01579715841._3
423+ let $t01584615882 = isPayment(i)
424+ let payment = $t01584615882._1
425+ let amount = $t01584615882._2
419426 let assetId = if (!(isDefined(payment.assetId)))
420427 then "WAVES"
421428 else toBase58String(value(payment.assetId))
422429 if (!(acceptedAssetIds(assetId)))
423430 then throw("asset not accepted")
424431 else {
425432 let isValidART = checkARTExist(artId, creatorAddr)
426433 if (!(isValidART))
427434 then throw("Something went wrong")
428435 else [StringEntry((((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_") + artId) + "_") + requestOwner) + "_") + id))]
429436 }
430437 }
431438
432439
433440
434441 @Callable(i)
435442 func fillRequest (artId,requestOwner,offerId) = {
436- let $t01660516647 = idCallerDate(i)
437- let id = $t01660516647._1
438- let saleOwner = $t01660516647._2
439- let date = $t01660516647._3
440- let $t01665216696 = isPayment(i)
441- let payment = $t01665216696._1
442- let amountAttached = $t01665216696._2
443+ let $t01665716699 = idCallerDate(i)
444+ let id = $t01665716699._1
445+ let saleOwner = $t01665716699._2
446+ let date = $t01665716699._3
447+ let $t01670416748 = isPayment(i)
448+ let payment = $t01670416748._1
449+ let amountAttached = $t01670416748._2
443450 let NFTid = if (if (isDefined(payment.assetId))
444451 then isSignArtNFT(value(payment.assetId))
445452 else false)
446453 then payment.assetId
447454 else throw("No NFT found")
448455 let NFTdata = split(getArtStrByK(("nft_" + toBase58String(value(NFTid)))), "_")
449456 if ((size(NFTdata) == 0))
450457 then throw("No NFT found")
451458 else {
452459 let requestData = split(getStrByK((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), "_")
453460 if ((size(requestData) == 1))
454461 then throw("No request found")
455462 else if ((requestData[3] != NFTdata[5]))
456463 then throw("This NFT don't match the requested artwork")
457464 else {
458465 let amount = value(parseInt(requestData[1]))
459- let $t01741617591 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4])
460- let signFee = $t01741617591._1
461- let creatorFee = $t01741617591._2
462- let ownerFee = $t01741617591._3
463- let collectorFee = $t01741617591._4
466+ let $t01746817643 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4])
467+ let signFee = $t01746817643._1
468+ let creatorFee = $t01746817643._2
469+ let ownerFee = $t01746817643._3
470+ let collectorFee = $t01746817643._4
464471 [DeleteEntry((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), StringEntry((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + requestData[2]) + "_") + artId) + "_") + requestOwner) + "_") + saleOwner) + "_") + id)), signFee, creatorFee, ownerFee, collectorFee]
465472 }
466473 }
467474 }
468475
469476
470477
471478 @Callable(i)
472479 func cancelRequest (artId,creatorAddr,requestId) = {
473- let $t01805118095 = idCallerDate(i)
474- let id = $t01805118095._1
475- let requestOwner = $t01805118095._2
476- let date = $t01805118095._3
480+ let $t01810318147 = idCallerDate(i)
481+ let id = $t01810318147._1
482+ let requestOwner = $t01810318147._2
483+ let date = $t01810318147._3
477484 let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId)
478485 let requestData = getStrByK((requesDataKey + "_OPEN"))
479486 if ((size(requestData) == 0))
480487 then throw("Request not found")
481488 else {
482489 let requestDataArr = split(requestData, "_")
483490 [DeleteEntry((requesDataKey + "_OPEN")), StringEntry((((((requesDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((requestData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(requestOwner)), parseIntValue(requestDataArr[1]), fromBase58String(requestDataArr[2]))]
484491 }
485492 }
486493
487494
488495
489496 @Callable(i)
490497 func deleteEntry (entry) = {
491498 let caller = toString(addressFromPublicKey(i.callerPublicKey))
492499 if ((caller == chris))
493500 then [DeleteEntry(entry)]
494501 else throw("no")
495502 }
496503
497504

github/deemru/w8io/169f3d6 
120.70 ms