tx · FvdEHiHjd2UMD4uipGkkEHCXjXXGeQJyubHMaWKXsC5Y

3N2c38oS2z4k4t4VKEwqoKLQTsbQoM4Ke9H:  -0.01400000 Waves

2021.06.07 14:28 [1559883] smart account 3N2c38oS2z4k4t4VKEwqoKLQTsbQoM4Ke9H > SELF 0.00000000 Waves

{ "type": 13, "id": "FvdEHiHjd2UMD4uipGkkEHCXjXXGeQJyubHMaWKXsC5Y", "fee": 1400000, "feeAssetId": null, "timestamp": 1623065407808, "version": 2, "chainId": 84, "sender": "3N2c38oS2z4k4t4VKEwqoKLQTsbQoM4Ke9H", "senderPublicKey": "BzfS7SAnfHHWF9MwvLE52diURPKozXxTitzcz3FEkduL", "proofs": [ "ryurWMBBcSWSuy6Z5uQaJHPVkVmNeVC2TBGdVDchpBvJjbq617ab1CCBw3MWHtwu9EyMbDu6VdaFhomTBYGTo1w" ], "script": "base64:AAIEAAAAAAAAAEAIAhIECgIBCBIFCgMIAQgSAwoBCBIDCgEIEgMKAQgSBQoDCAgIEgUKAwgICBIECgIICBIFCgMICAgSBQoDCAgIAAAAKwAAAAAIdW5pdFRlc3QHAAAAAAlvcmFjbGVGZWUJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAACHNpZ25EYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQzI4aFNpdnJtc1RVWGFZRDF4NkwzNjJKNFpwVW5vVGRCAAAAAAxhcnR3b3Jrc0RhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05CeW5mYlhDMkthc3RVeGh1a2NNVWFFNThLOWNCZEI5VVkAAAAAC2ZlZVJlY2VpdmVyAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAIdXNlckRhcHADBQAAAAh1bml0VGVzdAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAA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XN0RGF0YQAAAAAAAAAAAAkAAAIAAAABAgAAABFSZXF1ZXN0IG5vdCBmb3VuZAQAAAAOcmVxdWVzdERhdGFBcnIJAAS1AAAAAgUAAAALcmVxdWVzdERhdGECAAAAAV8JAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACBQAAAA1yZXF1ZXNEYXRhS2V5AgAAAAVfT1BFTgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAANcmVxdWVzRGF0YUtleQIAAAABXwkAAaQAAAABBQAAAARkYXRlAgAAAAFfBQAAAAJpZAIAAAAKX0NBTkNFTExFRAkAASwAAAACCQABLAAAAAIFAAAAC3JlcXVlc3REYXRhAgAAAAFfCQABpAAAAAEFAAAABGRhdGUJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAADHJlcXVlc3RPd25lcgkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIFAAAADnJlcXVlc3REYXRhQXJyAAAAAAAAAAABCQACWQAAAAEJAAGRAAAAAgUAAAAOcmVxdWVzdERhdGFBcnIAAAAAAAAAAAIFAAAAA25pbAAAAABRsvn4", "height": 1559883, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 24ekCwZerUtXnyVgCVLcGmsWjbnpw3fwVZcU8dptAGRM Next: none Diff:
OldNewDifferences
223223 else false)
224224 then (price != 0)
225225 else false)
226- then throw("Wrong minimum sell price")
226+ then false
227227 else true
228228 }
229229
230230
231231 @Callable(i)
232232 func sellNFT (price,asset) = {
233- let $t079277966 = idCallerDate(i)
234- let id = $t079277966._1
235- let caller = $t079277966._2
236- let date = $t079277966._3
237- let $t079718007 = isPayment(i)
238- let payment = $t079718007._1
239- let amount = $t079718007._2
240- let nftId = if (if (isDefined(payment.assetId))
241- then isSignArtNFT(value(payment.assetId))
242- else false)
243- then toBase58String(value(payment.assetId))
244- else throw("Only SIGN Art NFT accepted.")
233+ let $t078957934 = idCallerDate(i)
234+ let id = $t078957934._1
235+ let caller = $t078957934._2
236+ let date = $t078957934._3
237+ let $t079397975 = isPayment(i)
238+ let payment = $t079397975._1
239+ let amount = $t079397975._2
245240 if (!(acceptedAssetIds(asset)))
246241 then throw("Only SIGN, USDN or WAVES accepted")
247242 else if (!(validateMinSell(asset, price)))
248- then throw("Something went wrong")
243+ then throw("Wrong minimum sell price")
249244 else {
250- let $t083808438 = checkNFTInfo(nftId)
251- let isValidNFT = $t083808438._1
252- let artId = $t083808438._2
253- let creatorAddr = $t083808438._3
245+ let nftId = if (if (isDefined(payment.assetId))
246+ then isSignArtNFT(value(payment.assetId))
247+ else false)
248+ then toBase58String(value(payment.assetId))
249+ else throw("Only SIGN Art NFT accepted.")
250+ let $t083288386 = checkNFTInfo(nftId)
251+ let isValidNFT = $t083288386._1
252+ let artId = $t083288386._2
253+ let creatorAddr = $t083288386._3
254254 if (!(isValidNFT))
255255 then throw("Something went wrong")
256256 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)]
261261
262262 @Callable(i)
263263 func updateSalePrice (nftid,price,asset) = {
264- let $t089448983 = idCallerDate(i)
265- let id = $t089448983._1
266- let caller = $t089448983._2
267- let date = $t089448983._3
264+ let $t088928931 = idCallerDate(i)
265+ let id = $t088928931._1
266+ let caller = $t088928931._2
267+ let date = $t088928931._3
268268 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
269269 if ((saleOwner != caller))
270270 then throw("You don't own this NFT")
274274 then throw("Sale not active")
275275 else if (!(acceptedAssetIds(asset)))
276276 then throw("Only SIGN, USDN or WAVES accepted")
277- else {
278- let creatorAddr = split(getArtStrByK(keyNFTData(nftid)), "_")[6]
279- let saleInfo = split(getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus)), "_")
277+ else if (!(validateMinSell(asset, price)))
278+ then throw("Wrong minimum sell price")
279+ else {
280+ let creatorAddr = split(getArtStrByK(keyNFTData(nftid)), "_")[6]
281+ let saleInfo = split(getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus)), "_")
280282 [StringEntry((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))]
281- }
283+ }
282284 }
283285 }
284286
286288
287289 @Callable(i)
288290 func cancelSale (nftid) = {
289- let $t098849923 = idCallerDate(i)
290- let id = $t098849923._1
291- let caller = $t098849923._2
292- let date = $t098849923._3
291+ let $t098819920 = idCallerDate(i)
292+ let id = $t098819920._1
293+ let caller = $t098819920._2
294+ let date = $t098819920._3
293295 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
294296 if ((saleOwner != caller))
295297 then throw("You don't own this NFT")
309311
310312 @Callable(i)
311313 func buyNFT (nftid) = {
312- let $t01106911108 = idCallerDate(i)
313- let id = $t01106911108._1
314- let caller = $t01106911108._2
315- let date = $t01106911108._3
314+ let $t01106611105 = idCallerDate(i)
315+ let id = $t01106611105._1
316+ let caller = $t01106611105._2
317+ let date = $t01106611105._3
316318 let saleOwner = getSaleOwnerAndStatus(nftid)
317- let $t01116211220 = checkNFTInfo(nftid)
318- let isValidNFT = $t01116211220._1
319- let artId = $t01116211220._2
320- let creatorAddr = $t01116211220._3
319+ let $t01115911217 = checkNFTInfo(nftid)
320+ let isValidNFT = $t01115911217._1
321+ let artId = $t01115911217._2
322+ let creatorAddr = $t01115911217._3
321323 if (!(isValidNFT))
322324 then throw("Something went wrong")
323325 else {
329331 if ((parseInt(saleInfoArray[1]) == 0))
330332 then throw("Offer only")
331333 else {
332- let $t01155411590 = isPayment(i)
333- let payment = $t01155411590._1
334- let amount = $t01155411590._2
334+ let $t01155111587 = isPayment(i)
335+ let payment = $t01155111587._1
336+ let amount = $t01155111587._2
335337 let paymentAssetStr = if (isDefined(payment.assetId))
336338 then toBase58String(value(payment.assetId))
337339 else ""
343345 let amountForSign = fraction(amount, signCut, 100)
344346 let amountForCreator = fraction(amount, creatorCut, 100)
345347 let amountForOwner = (amount - (amountForSign + amountForCreator))
346- let $t01209312221 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller)
347- let signFee = $t01209312221._1
348- let creatorFee = $t01209312221._2
349- let ownerFee = $t01209312221._3
350- let collectorFee = $t01209312221._4
348+ let $t01209012218 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller)
349+ let signFee = $t01209012218._1
350+ let creatorFee = $t01209012218._2
351+ let ownerFee = $t01209012218._3
352+ let collectorFee = $t01209012218._4
351353 [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]
352354 }
353355 }
359361
360362 @Callable(i)
361363 func setOffer (nftid) = {
362- let $t01271212754 = idCallerDate(i)
363- let id = $t01271212754._1
364- let offerOwner = $t01271212754._2
365- let date = $t01271212754._3
366- let $t01275912795 = isPayment(i)
367- let payment = $t01275912795._1
368- let amount = $t01275912795._2
364+ let $t01270912751 = idCallerDate(i)
365+ let id = $t01270912751._1
366+ let offerOwner = $t01270912751._2
367+ let date = $t01270912751._3
368+ let $t01275712793 = isPayment(i)
369+ let payment = $t01275712793._1
370+ let amount = $t01275712793._2
369371 let assetId = if (!(isDefined(payment.assetId)))
370372 then "WAVES"
371373 else toBase58String(value(payment.assetId))
372374 if (!(acceptedAssetIds(assetId)))
373375 then throw("asset not accepted")
374- else {
375- let $t01298113039 = checkNFTInfo(nftid)
376- let isValidNFT = $t01298113039._1
377- let artId = $t01298113039._2
378- let creatorAddr = $t01298113039._3
379- if (!(isValidNFT))
380- then throw("Something went wrong")
376+ else if ((amount == 0))
377+ then throw("Offer of 0 not allowed")
378+ else if (!(validateMinSell(assetId, amount)))
379+ then throw("Wrong minimum sell price")
381380 else {
382- let saleOwner = getSaleOwnerAndStatus(nftid)
381+ let $t01312713185 = checkNFTInfo(nftid)
382+ let isValidNFT = $t01312713185._1
383+ let artId = $t01312713185._2
384+ let creatorAddr = $t01312713185._3
385+ if (!(isValidNFT))
386+ then throw("Something went wrong")
387+ else {
388+ let saleOwner = getSaleOwnerAndStatus(nftid)
383389 [StringEntry((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + id) + "_OPEN"), ((((((((((((((toString(date) + "_") + toString(amount)) + "_") + assetId) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_") + offerOwner) + "_") + id))]
390+ }
384391 }
385- }
386392 }
387393
388394
389395
390396 @Callable(i)
391397 func acceptOffer (nftid,offerId,offerOwner) = {
392- let $t01363013699 = idCallerDate(i)
393- let id = $t01363013699._1
394- let caller = $t01363013699._2
395- let date = $t01363013699._3
398+ let $t01371813787 = idCallerDate(i)
399+ let id = $t01371813787._1
400+ let caller = $t01371813787._2
401+ let date = $t01371813787._3
396402 let saleOwner = getSaleOwnerAndStatus(nftid)
397403 if ((caller != saleOwner))
398404 then throw("You cannot do this action")
402408 if ((bidValue == ""))
403409 then throw("Offer not found or not for sale")
404410 else {
405- let $t01402314081 = checkNFTInfo(nftid)
406- let isValidNFT = $t01402314081._1
407- let artId = $t01402314081._2
408- let creatorAddr = $t01402314081._3
411+ let $t01411114169 = checkNFTInfo(nftid)
412+ let isValidNFT = $t01411114169._1
413+ let artId = $t01411114169._2
414+ let creatorAddr = $t01411114169._3
409415 if (!(isValidNFT))
410416 then throw("Something went wrong")
411417 else {
415421 then throw("Sale Not found!")
416422 else {
417423 let saleValArr = split(saleValue, "_")
418- let $t01441614471 = getBidData(bidKey)
419- let bidDataArr = $t01441614471._1
420- let assetId = $t01441614471._2
421- let bidData = $t01441614471._3
424+ let $t01450414559 = getBidData(bidKey)
425+ let bidDataArr = $t01450414559._1
426+ let assetId = $t01450414559._2
427+ let bidData = $t01450414559._3
422428 let amount = value(parseInt(bidDataArr[1]))
423- let $t01452514652 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[6])
424- let signFee = $t01452514652._1
425- let creatorFee = $t01452514652._2
426- let ownerFee = $t01452514652._3
427- let collectorFee = $t01452514652._4
429+ let $t01461314740 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[6])
430+ let signFee = $t01461314740._1
431+ let creatorFee = $t01461314740._2
432+ let ownerFee = $t01461314740._3
433+ let collectorFee = $t01461314740._4
428434 [DeleteEntry((saleKey + "_OPEN")), DeleteEntry((bidKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((bidKey + "_CLOSED"), ((((bidValue + "_CLOSED_") + toString(date)) + "_") + id)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((((((makeString(saleValArr, "_") + "_CLOSED-OFFER_") + toString(date)) + "_") + id) + "_") + offerOwner) + "_") + toString(amount)) + "_") + toBase58String(value(assetId)))), signFee, creatorFee, ownerFee, collectorFee]
429435 }
430436 }
436442
437443 @Callable(i)
438444 func cancelOffer (nftid,offerId,saleOwner) = {
439- let $t01530115362 = idCallerDate(i)
440- let id = $t01530115362._1
441- let caller = $t01530115362._2
442- let date = $t01530115362._3
445+ let $t01538915450 = idCallerDate(i)
446+ let id = $t01538915450._1
447+ let caller = $t01538915450._2
448+ let date = $t01538915450._3
443449 let bidKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
444- let $t01543915494 = getBidData(bidKey)
445- let bidDataArr = $t01543915494._1
446- let assetId = $t01543915494._2
447- let bidData = $t01543915494._3
450+ let $t01552715582 = getBidData(bidKey)
451+ let bidDataArr = $t01552715582._1
452+ let assetId = $t01552715582._2
453+ let bidData = $t01552715582._3
448454 [DeleteEntry((bidKey + "_OPEN")), StringEntry((bidKey + "_CANCELLED"), ((((bidData + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
449455 }
450456
452458
453459 @Callable(i)
454460 func makeRequest (artId,creatorAddr) = {
455- let $t01581915863 = idCallerDate(i)
456- let id = $t01581915863._1
457- let requestOwner = $t01581915863._2
458- let date = $t01581915863._3
459- let $t01586815904 = isPayment(i)
460- let payment = $t01586815904._1
461- let amount = $t01586815904._2
461+ let $t01590715951 = idCallerDate(i)
462+ let id = $t01590715951._1
463+ let requestOwner = $t01590715951._2
464+ let date = $t01590715951._3
465+ let $t01595715993 = isPayment(i)
466+ let payment = $t01595715993._1
467+ let amount = $t01595715993._2
462468 let assetId = if (!(isDefined(payment.assetId)))
463469 then "WAVES"
464470 else toBase58String(value(payment.assetId))
465471 if (!(acceptedAssetIds(assetId)))
466472 then throw("asset not accepted")
467- else {
468- let isValidART = checkARTExist(artId, creatorAddr)
469- if (!(isValidART))
470- then throw("Something went wrong")
471- else [StringEntry((((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_") + artId) + "_") + requestOwner) + "_") + id))]
472- }
473+ else if (!(validateMinSell(assetId, amount)))
474+ then throw("Wrong minimum sell price")
475+ else {
476+ let isValidART = checkARTExist(artId, creatorAddr)
477+ if (!(isValidART))
478+ then throw("Something went wrong")
479+ else [StringEntry((((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_") + artId) + "_") + requestOwner) + "_") + id))]
480+ }
473481 }
474482
475483
476484
477485 @Callable(i)
478486 func fillRequest (artId,requestOwner,offerId) = {
479- let $t01667916721 = idCallerDate(i)
480- let id = $t01667916721._1
481- let saleOwner = $t01667916721._2
482- let date = $t01667916721._3
483- let $t01672616770 = isPayment(i)
484- let payment = $t01672616770._1
485- let amountAttached = $t01672616770._2
487+ let $t01680016842 = idCallerDate(i)
488+ let id = $t01680016842._1
489+ let saleOwner = $t01680016842._2
490+ let date = $t01680016842._3
491+ let $t01684716891 = isPayment(i)
492+ let payment = $t01684716891._1
493+ let amountAttached = $t01684716891._2
486494 let NFTid = if (if (isDefined(payment.assetId))
487495 then isSignArtNFT(value(payment.assetId))
488496 else false)
499507 then throw("This NFT don't match the requested artwork")
500508 else {
501509 let amount = value(parseInt(requestData[1]))
502- let $t01749017665 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4])
503- let signFee = $t01749017665._1
504- let creatorFee = $t01749017665._2
505- let ownerFee = $t01749017665._3
506- let collectorFee = $t01749017665._4
510+ let $t01761117786 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4])
511+ let signFee = $t01761117786._1
512+ let creatorFee = $t01761117786._2
513+ let ownerFee = $t01761117786._3
514+ let collectorFee = $t01761117786._4
507515 [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]
508516 }
509517 }
513521
514522 @Callable(i)
515523 func cancelRequest (artId,creatorAddr,requestId) = {
516- let $t01812518169 = idCallerDate(i)
517- let id = $t01812518169._1
518- let requestOwner = $t01812518169._2
519- let date = $t01812518169._3
524+ let $t01824618290 = idCallerDate(i)
525+ let id = $t01824618290._1
526+ let requestOwner = $t01824618290._2
527+ let date = $t01824618290._3
520528 let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId)
521529 let requestData = getStrByK((requesDataKey + "_OPEN"))
522530 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 getIntByKFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle")
7171
7272
7373 let currentCertificationPrice = getIntByKFromOracle(("certification_fee_" + toBase58String(signAssetId)))
7474
7575 func idCallerDate (i) = if (!(dappRunning))
7676 then throw(maintenanceMSG)
7777 else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
7878
7979
8080 func isPayment (i) = if ((size(i.payments) == 0))
8181 then throw("No payment attached")
8282 else {
8383 let payment = value(i.payments[0])
8484 let amount = value(payment.amount)
8585 $Tuple2(payment, amount)
8686 }
8787
8888
8989 func isSignArtNFT (id) = {
9090 let assetDetails = value(assetInfo(id))
9191 if (if (if (if ((assetDetails.quantity != 1))
9292 then true
9393 else (assetDetails.decimals != 0))
9494 then true
9595 else (assetDetails.reissuable != false))
9696 then true
9797 else (assetDetails.issuer != artworksDapp))
9898 then false
9999 else true
100100 }
101101
102102
103103 func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId)))
104104 then (assetId != toBase58String(wavesAssetId))
105105 else false)
106106 then (assetId != "WAVES")
107107 else false)
108108 then (assetId != toBase58String(usdnAssetId))
109109 else false)
110110 then false
111111 else true
112112
113113
114114 func getBidAssetId (assetId) = if ((assetId == "WAVES"))
115115 then unit
116116 else fromBase58String(assetId)
117117
118118
119119 func getSaleOwnerAndStatus (nftid) = {
120120 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
121121 if ((size(saleOwner) == 0))
122122 then throw("NFT not found")
123123 else {
124124 let saleStatus = getStrByK(((("sale2nd_status_" + saleOwner) + "_") + nftid))
125125 if ((saleStatus != "OPEN"))
126126 then throw("NFT not for sale")
127127 else saleOwner
128128 }
129129 }
130130
131131
132132 func getBidData (key) = {
133133 let bidData = getStrByK((key + "_OPEN"))
134134 if ((bidData == ""))
135135 then throw("Offer not found")
136136 else {
137137 let bidDataArr = split(bidData, "_")
138138 let assetId = getBidAssetId(bidDataArr[2])
139139 $Tuple3(bidDataArr, assetId, bidData)
140140 }
141141 }
142142
143143
144144 func checkArtStatus (addr,id) = {
145145 let artStatus = getArtStrByK(keyFlag(addr, id))
146146 if (if ((artStatus == artIllegal))
147147 then true
148148 else (artStatus == artSuspended))
149149 then throw(("Original Artwork flagged as " + artStatus))
150150 else true
151151 }
152152
153153
154154 func checkArtistStatus (addr) = {
155155 let artistStatus = getUserStrByK(keyUserStatus(addr))
156156 if (containsElement([userSuspended, userRemoved], artistStatus))
157157 then throw(("Original Artist " + artistStatus))
158158 else true
159159 }
160160
161161
162162 func checkNFTInfo (assetId) = {
163163 let nftData = split(getArtStrByK(keyNFTData(assetId)), "_")
164164 let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5]))
165165 if ((size(artSignID) == 0))
166166 then throw("Artwork not found on SIGN Art")
167167 else if (if (!(checkArtStatus(nftData[6], nftData[5])))
168168 then !(checkArtistStatus(nftData[6]))
169169 else false)
170170 then $Tuple3(false, nftData[5], nftData[6])
171171 else $Tuple3(true, nftData[5], nftData[6])
172172 }
173173
174174
175175 func checkARTExist (artId,creatorAddr) = {
176176 let artSignID = getArtStrByK(keySignID(creatorAddr, artId))
177177 if ((size(artSignID) == 0))
178178 then throw("Artwork not found on SIGN Art")
179179 else if (if (!(checkArtStatus(creatorAddr, artId)))
180180 then !(checkArtistStatus(creatorAddr))
181181 else false)
182182 then false
183183 else true
184184 }
185185
186186
187187 func setTransfers (amount,assetId,nftid,creatorAddr,saleOwner,caller) = {
188188 let amountForSign = fraction(amount, signCut, 100)
189189 let amountForCreator = fraction(amount, creatorCut, 100)
190190 let amountForOwner = (amount - (amountForSign + amountForCreator))
191191 let signFee = ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId)
192192 let creatorFee = ScriptTransfer(Address(fromBase58String(creatorAddr)), amountForCreator, assetId)
193193 let ownerFee = ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId)
194194 let collectorFee = ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))
195195 $Tuple4(signFee, creatorFee, ownerFee, collectorFee)
196196 }
197197
198198
199199 func validateMinSell (assetId,price) = {
200200 let minSellWaves = if (unitTest)
201201 then 10
202202 else getIntByKFromOracle("waves_min_sell")
203203 let minSellUsdn = 1000000
204204 let minSellSign = if (unitTest)
205205 then 1
206206 else (currentCertificationPrice * 2)
207207 if (if (if (if (if ((assetId == toBase58String(usdnAssetId)))
208208 then (minSellUsdn > price)
209209 else false)
210210 then (price != 0)
211211 else false)
212212 then true
213213 else if (if ((assetId == toBase58String(signAssetId)))
214214 then (minSellSign > price)
215215 else false)
216216 then (price != 0)
217217 else false)
218218 then true
219219 else if (if (if ((assetId == toBase58String(wavesAssetId)))
220220 then true
221221 else (assetId == "WAVES"))
222222 then (minSellWaves > price)
223223 else false)
224224 then (price != 0)
225225 else false)
226- then throw("Wrong minimum sell price")
226+ then false
227227 else true
228228 }
229229
230230
231231 @Callable(i)
232232 func sellNFT (price,asset) = {
233- let $t079277966 = idCallerDate(i)
234- let id = $t079277966._1
235- let caller = $t079277966._2
236- let date = $t079277966._3
237- let $t079718007 = isPayment(i)
238- let payment = $t079718007._1
239- let amount = $t079718007._2
240- let nftId = if (if (isDefined(payment.assetId))
241- then isSignArtNFT(value(payment.assetId))
242- else false)
243- then toBase58String(value(payment.assetId))
244- else throw("Only SIGN Art NFT accepted.")
233+ let $t078957934 = idCallerDate(i)
234+ let id = $t078957934._1
235+ let caller = $t078957934._2
236+ let date = $t078957934._3
237+ let $t079397975 = isPayment(i)
238+ let payment = $t079397975._1
239+ let amount = $t079397975._2
245240 if (!(acceptedAssetIds(asset)))
246241 then throw("Only SIGN, USDN or WAVES accepted")
247242 else if (!(validateMinSell(asset, price)))
248- then throw("Something went wrong")
243+ then throw("Wrong minimum sell price")
249244 else {
250- let $t083808438 = checkNFTInfo(nftId)
251- let isValidNFT = $t083808438._1
252- let artId = $t083808438._2
253- let creatorAddr = $t083808438._3
245+ let nftId = if (if (isDefined(payment.assetId))
246+ then isSignArtNFT(value(payment.assetId))
247+ else false)
248+ then toBase58String(value(payment.assetId))
249+ else throw("Only SIGN Art NFT accepted.")
250+ let $t083288386 = checkNFTInfo(nftId)
251+ let isValidNFT = $t083288386._1
252+ let artId = $t083288386._2
253+ let creatorAddr = $t083288386._3
254254 if (!(isValidNFT))
255255 then throw("Something went wrong")
256256 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)]
257257 }
258258 }
259259
260260
261261
262262 @Callable(i)
263263 func updateSalePrice (nftid,price,asset) = {
264- let $t089448983 = idCallerDate(i)
265- let id = $t089448983._1
266- let caller = $t089448983._2
267- let date = $t089448983._3
264+ let $t088928931 = idCallerDate(i)
265+ let id = $t088928931._1
266+ let caller = $t088928931._2
267+ let date = $t088928931._3
268268 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
269269 if ((saleOwner != caller))
270270 then throw("You don't own this NFT")
271271 else {
272272 let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid))
273273 if ((saleStatus != "OPEN"))
274274 then throw("Sale not active")
275275 else if (!(acceptedAssetIds(asset)))
276276 then throw("Only SIGN, USDN or WAVES accepted")
277- else {
278- let creatorAddr = split(getArtStrByK(keyNFTData(nftid)), "_")[6]
279- let saleInfo = split(getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus)), "_")
277+ else if (!(validateMinSell(asset, price)))
278+ then throw("Wrong minimum sell price")
279+ else {
280+ let creatorAddr = split(getArtStrByK(keyNFTData(nftid)), "_")[6]
281+ let saleInfo = split(getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus)), "_")
280282 [StringEntry((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))]
281- }
283+ }
282284 }
283285 }
284286
285287
286288
287289 @Callable(i)
288290 func cancelSale (nftid) = {
289- let $t098849923 = idCallerDate(i)
290- let id = $t098849923._1
291- let caller = $t098849923._2
292- let date = $t098849923._3
291+ let $t098819920 = idCallerDate(i)
292+ let id = $t098819920._1
293+ let caller = $t098819920._2
294+ let date = $t098819920._3
293295 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
294296 if ((saleOwner != caller))
295297 then throw("You don't own this NFT")
296298 else {
297299 let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid))
298300 if ((saleStatus != "OPEN"))
299301 then throw("Sale not active")
300302 else {
301303 let creatorAddr = split(getArtStrByK(keyNFTData(nftid)), "_")[6]
302304 let saleInfo = getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus))
303305 [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))]
304306 }
305307 }
306308 }
307309
308310
309311
310312 @Callable(i)
311313 func buyNFT (nftid) = {
312- let $t01106911108 = idCallerDate(i)
313- let id = $t01106911108._1
314- let caller = $t01106911108._2
315- let date = $t01106911108._3
314+ let $t01106611105 = idCallerDate(i)
315+ let id = $t01106611105._1
316+ let caller = $t01106611105._2
317+ let date = $t01106611105._3
316318 let saleOwner = getSaleOwnerAndStatus(nftid)
317- let $t01116211220 = checkNFTInfo(nftid)
318- let isValidNFT = $t01116211220._1
319- let artId = $t01116211220._2
320- let creatorAddr = $t01116211220._3
319+ let $t01115911217 = checkNFTInfo(nftid)
320+ let isValidNFT = $t01115911217._1
321+ let artId = $t01115911217._2
322+ let creatorAddr = $t01115911217._3
321323 if (!(isValidNFT))
322324 then throw("Something went wrong")
323325 else {
324326 let saleInfo = getStrByK((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN"))
325327 if ((size(saleInfo) == 0))
326328 then throw("Sale Not found!")
327329 else {
328330 let saleInfoArray = split(saleInfo, "_")
329331 if ((parseInt(saleInfoArray[1]) == 0))
330332 then throw("Offer only")
331333 else {
332- let $t01155411590 = isPayment(i)
333- let payment = $t01155411590._1
334- let amount = $t01155411590._2
334+ let $t01155111587 = isPayment(i)
335+ let payment = $t01155111587._1
336+ let amount = $t01155111587._2
335337 let paymentAssetStr = if (isDefined(payment.assetId))
336338 then toBase58String(value(payment.assetId))
337339 else ""
338340 if (if ((saleInfoArray[1] != toString(amount)))
339341 then true
340342 else (saleInfoArray[2] != paymentAssetStr))
341343 then throw("Payment infos don't match.")
342344 else {
343345 let amountForSign = fraction(amount, signCut, 100)
344346 let amountForCreator = fraction(amount, creatorCut, 100)
345347 let amountForOwner = (amount - (amountForSign + amountForCreator))
346- let $t01209312221 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller)
347- let signFee = $t01209312221._1
348- let creatorFee = $t01209312221._2
349- let ownerFee = $t01209312221._3
350- let collectorFee = $t01209312221._4
348+ let $t01209012218 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller)
349+ let signFee = $t01209012218._1
350+ let creatorFee = $t01209012218._2
351+ let ownerFee = $t01209012218._3
352+ let collectorFee = $t01209012218._4
351353 [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]
352354 }
353355 }
354356 }
355357 }
356358 }
357359
358360
359361
360362 @Callable(i)
361363 func setOffer (nftid) = {
362- let $t01271212754 = idCallerDate(i)
363- let id = $t01271212754._1
364- let offerOwner = $t01271212754._2
365- let date = $t01271212754._3
366- let $t01275912795 = isPayment(i)
367- let payment = $t01275912795._1
368- let amount = $t01275912795._2
364+ let $t01270912751 = idCallerDate(i)
365+ let id = $t01270912751._1
366+ let offerOwner = $t01270912751._2
367+ let date = $t01270912751._3
368+ let $t01275712793 = isPayment(i)
369+ let payment = $t01275712793._1
370+ let amount = $t01275712793._2
369371 let assetId = if (!(isDefined(payment.assetId)))
370372 then "WAVES"
371373 else toBase58String(value(payment.assetId))
372374 if (!(acceptedAssetIds(assetId)))
373375 then throw("asset not accepted")
374- else {
375- let $t01298113039 = checkNFTInfo(nftid)
376- let isValidNFT = $t01298113039._1
377- let artId = $t01298113039._2
378- let creatorAddr = $t01298113039._3
379- if (!(isValidNFT))
380- then throw("Something went wrong")
376+ else if ((amount == 0))
377+ then throw("Offer of 0 not allowed")
378+ else if (!(validateMinSell(assetId, amount)))
379+ then throw("Wrong minimum sell price")
381380 else {
382- let saleOwner = getSaleOwnerAndStatus(nftid)
381+ let $t01312713185 = checkNFTInfo(nftid)
382+ let isValidNFT = $t01312713185._1
383+ let artId = $t01312713185._2
384+ let creatorAddr = $t01312713185._3
385+ if (!(isValidNFT))
386+ then throw("Something went wrong")
387+ else {
388+ let saleOwner = getSaleOwnerAndStatus(nftid)
383389 [StringEntry((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + id) + "_OPEN"), ((((((((((((((toString(date) + "_") + toString(amount)) + "_") + assetId) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_") + offerOwner) + "_") + id))]
390+ }
384391 }
385- }
386392 }
387393
388394
389395
390396 @Callable(i)
391397 func acceptOffer (nftid,offerId,offerOwner) = {
392- let $t01363013699 = idCallerDate(i)
393- let id = $t01363013699._1
394- let caller = $t01363013699._2
395- let date = $t01363013699._3
398+ let $t01371813787 = idCallerDate(i)
399+ let id = $t01371813787._1
400+ let caller = $t01371813787._2
401+ let date = $t01371813787._3
396402 let saleOwner = getSaleOwnerAndStatus(nftid)
397403 if ((caller != saleOwner))
398404 then throw("You cannot do this action")
399405 else {
400406 let bidKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
401407 let bidValue = getStrByK((bidKey + "_OPEN"))
402408 if ((bidValue == ""))
403409 then throw("Offer not found or not for sale")
404410 else {
405- let $t01402314081 = checkNFTInfo(nftid)
406- let isValidNFT = $t01402314081._1
407- let artId = $t01402314081._2
408- let creatorAddr = $t01402314081._3
411+ let $t01411114169 = checkNFTInfo(nftid)
412+ let isValidNFT = $t01411114169._1
413+ let artId = $t01411114169._2
414+ let creatorAddr = $t01411114169._3
409415 if (!(isValidNFT))
410416 then throw("Something went wrong")
411417 else {
412418 let saleKey = ((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr)
413419 let saleValue = getStrByK((saleKey + "_OPEN"))
414420 if ((size(saleValue) == 0))
415421 then throw("Sale Not found!")
416422 else {
417423 let saleValArr = split(saleValue, "_")
418- let $t01441614471 = getBidData(bidKey)
419- let bidDataArr = $t01441614471._1
420- let assetId = $t01441614471._2
421- let bidData = $t01441614471._3
424+ let $t01450414559 = getBidData(bidKey)
425+ let bidDataArr = $t01450414559._1
426+ let assetId = $t01450414559._2
427+ let bidData = $t01450414559._3
422428 let amount = value(parseInt(bidDataArr[1]))
423- let $t01452514652 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[6])
424- let signFee = $t01452514652._1
425- let creatorFee = $t01452514652._2
426- let ownerFee = $t01452514652._3
427- let collectorFee = $t01452514652._4
429+ let $t01461314740 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[6])
430+ let signFee = $t01461314740._1
431+ let creatorFee = $t01461314740._2
432+ let ownerFee = $t01461314740._3
433+ let collectorFee = $t01461314740._4
428434 [DeleteEntry((saleKey + "_OPEN")), DeleteEntry((bidKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((bidKey + "_CLOSED"), ((((bidValue + "_CLOSED_") + toString(date)) + "_") + id)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((((((makeString(saleValArr, "_") + "_CLOSED-OFFER_") + toString(date)) + "_") + id) + "_") + offerOwner) + "_") + toString(amount)) + "_") + toBase58String(value(assetId)))), signFee, creatorFee, ownerFee, collectorFee]
429435 }
430436 }
431437 }
432438 }
433439 }
434440
435441
436442
437443 @Callable(i)
438444 func cancelOffer (nftid,offerId,saleOwner) = {
439- let $t01530115362 = idCallerDate(i)
440- let id = $t01530115362._1
441- let caller = $t01530115362._2
442- let date = $t01530115362._3
445+ let $t01538915450 = idCallerDate(i)
446+ let id = $t01538915450._1
447+ let caller = $t01538915450._2
448+ let date = $t01538915450._3
443449 let bidKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
444- let $t01543915494 = getBidData(bidKey)
445- let bidDataArr = $t01543915494._1
446- let assetId = $t01543915494._2
447- let bidData = $t01543915494._3
450+ let $t01552715582 = getBidData(bidKey)
451+ let bidDataArr = $t01552715582._1
452+ let assetId = $t01552715582._2
453+ let bidData = $t01552715582._3
448454 [DeleteEntry((bidKey + "_OPEN")), StringEntry((bidKey + "_CANCELLED"), ((((bidData + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
449455 }
450456
451457
452458
453459 @Callable(i)
454460 func makeRequest (artId,creatorAddr) = {
455- let $t01581915863 = idCallerDate(i)
456- let id = $t01581915863._1
457- let requestOwner = $t01581915863._2
458- let date = $t01581915863._3
459- let $t01586815904 = isPayment(i)
460- let payment = $t01586815904._1
461- let amount = $t01586815904._2
461+ let $t01590715951 = idCallerDate(i)
462+ let id = $t01590715951._1
463+ let requestOwner = $t01590715951._2
464+ let date = $t01590715951._3
465+ let $t01595715993 = isPayment(i)
466+ let payment = $t01595715993._1
467+ let amount = $t01595715993._2
462468 let assetId = if (!(isDefined(payment.assetId)))
463469 then "WAVES"
464470 else toBase58String(value(payment.assetId))
465471 if (!(acceptedAssetIds(assetId)))
466472 then throw("asset not accepted")
467- else {
468- let isValidART = checkARTExist(artId, creatorAddr)
469- if (!(isValidART))
470- then throw("Something went wrong")
471- else [StringEntry((((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_") + artId) + "_") + requestOwner) + "_") + id))]
472- }
473+ else if (!(validateMinSell(assetId, amount)))
474+ then throw("Wrong minimum sell price")
475+ else {
476+ let isValidART = checkARTExist(artId, creatorAddr)
477+ if (!(isValidART))
478+ then throw("Something went wrong")
479+ else [StringEntry((((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_") + artId) + "_") + requestOwner) + "_") + id))]
480+ }
473481 }
474482
475483
476484
477485 @Callable(i)
478486 func fillRequest (artId,requestOwner,offerId) = {
479- let $t01667916721 = idCallerDate(i)
480- let id = $t01667916721._1
481- let saleOwner = $t01667916721._2
482- let date = $t01667916721._3
483- let $t01672616770 = isPayment(i)
484- let payment = $t01672616770._1
485- let amountAttached = $t01672616770._2
487+ let $t01680016842 = idCallerDate(i)
488+ let id = $t01680016842._1
489+ let saleOwner = $t01680016842._2
490+ let date = $t01680016842._3
491+ let $t01684716891 = isPayment(i)
492+ let payment = $t01684716891._1
493+ let amountAttached = $t01684716891._2
486494 let NFTid = if (if (isDefined(payment.assetId))
487495 then isSignArtNFT(value(payment.assetId))
488496 else false)
489497 then payment.assetId
490498 else throw("No NFT found")
491499 let NFTdata = split(getArtStrByK(("nft_" + toBase58String(value(NFTid)))), "_")
492500 if ((size(NFTdata) == 0))
493501 then throw("No NFT found")
494502 else {
495503 let requestData = split(getStrByK((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), "_")
496504 if ((size(requestData) == 1))
497505 then throw("No request found")
498506 else if ((requestData[3] != NFTdata[5]))
499507 then throw("This NFT don't match the requested artwork")
500508 else {
501509 let amount = value(parseInt(requestData[1]))
502- let $t01749017665 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4])
503- let signFee = $t01749017665._1
504- let creatorFee = $t01749017665._2
505- let ownerFee = $t01749017665._3
506- let collectorFee = $t01749017665._4
510+ let $t01761117786 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4])
511+ let signFee = $t01761117786._1
512+ let creatorFee = $t01761117786._2
513+ let ownerFee = $t01761117786._3
514+ let collectorFee = $t01761117786._4
507515 [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]
508516 }
509517 }
510518 }
511519
512520
513521
514522 @Callable(i)
515523 func cancelRequest (artId,creatorAddr,requestId) = {
516- let $t01812518169 = idCallerDate(i)
517- let id = $t01812518169._1
518- let requestOwner = $t01812518169._2
519- let date = $t01812518169._3
524+ let $t01824618290 = idCallerDate(i)
525+ let id = $t01824618290._1
526+ let requestOwner = $t01824618290._2
527+ let date = $t01824618290._3
520528 let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId)
521529 let requestData = getStrByK((requesDataKey + "_OPEN"))
522530 if ((size(requestData) == 0))
523531 then throw("Request not found")
524532 else {
525533 let requestDataArr = split(requestData, "_")
526534 [DeleteEntry((requesDataKey + "_OPEN")), StringEntry((((((requesDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((requestData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(requestOwner)), parseIntValue(requestDataArr[1]), fromBase58String(requestDataArr[2]))]
527535 }
528536 }
529537
530538

github/deemru/w8io/026f985 
94.61 ms