tx · 5edtGPhDbChCvu7GZip6kPoW8TmrrpS5Zd3eN8S8Ydkr

3N6DuzM5LDSg9SHsFSuvJtfhiKxQ9wL2SwS:  -0.01400000 Waves

2021.06.10 11:50 [1564059] smart account 3N6DuzM5LDSg9SHsFSuvJtfhiKxQ9wL2SwS > SELF 0.00000000 Waves

{ "type": 13, "id": "5edtGPhDbChCvu7GZip6kPoW8TmrrpS5Zd3eN8S8Ydkr", "fee": 1400000, "feeAssetId": null, "timestamp": 1623315051686, "version": 2, "chainId": 84, "sender": "3N6DuzM5LDSg9SHsFSuvJtfhiKxQ9wL2SwS", "senderPublicKey": "13faG9aVtHrshQAeoSAHp3R8DJ6dQnG7aa4ctzpT35uM", "proofs": [ "2d2W2HTSVyE8oAjKVocSw6ZS3kCZwPtyHtGHaQR92szAK4CktvQtoT2Tau5uzL5Gr3XDjJt8E96emaRpw5tiA8vp" ], "script": "base64:AAIEAAAAAAAAAEAIAhIECgIBCBIFCgMIAQgSAwoBCBIDCgEIEgMKAQgSBQoDCAgIEgUKAwgICBIECgIICBIFCgMICAgSBQoDCAgIAAAAKwAAAAAIdW5pdFRlc3QHAAAAAAlvcmFjbGVGZWUJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAACHNpZ25EYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQzI4aFNpdnJtc1RVWGFZRDF4NkwzNjJKNFpwVW5vVGRCAAAAAAxhcnR3b3Jrc0RhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05CeW5mYlhDMkthc3RVeGh1a2NNVWFFNThLOWNCZEI5VVkAAAAAC2ZlZVJlY2VpdmVyAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAIdXNlckRhcHADBQAAAAh1bml0VGVzdAkBAAAABXZhbHVlAAAAAQkABCY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ZAAAAAQUAAAAMcmVxdWVzdE93bmVyCQEAAAANcGFyc2VJbnRWYWx1ZQAAAAEJAAGRAAAAAgUAAAAOcmVxdWVzdERhdGFBcnIAAAAAAAAAAAEJAAJZAAAAAQkAAZEAAAACBQAAAA5yZXF1ZXN0RGF0YUFycgAAAAAAAAAAAgUAAAADbmlsAAAAACwf7r0=", "height": 1564059, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5PL4fFfwRtte1TpTQUjc3YcvrFLfDgCFrqXaH55TuMaA Next: none Diff:
OldNewDifferences
162162 func checkNFTInfo (assetId) = {
163163 let nftData = split(getArtStrByK(keyNFTData(assetId)), "_")
164164 let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5]))
165- if ((size(artSignID) == 0))
166- then throw("Artwork not found on SIGN Art")
167- else if (if (!(checkArtStatus(nftData[6], nftData[5])))
168- then !(checkArtistStatus(nftData[6]))
169- else false)
170- then $Tuple3(false, nftData[5], nftData[6])
171- else $Tuple3(true, nftData[5], nftData[6])
165+ if (if (!(checkArtStatus(nftData[6], nftData[5])))
166+ then !(checkArtistStatus(nftData[6]))
167+ else false)
168+ then $Tuple4(false, nftData[5], nftData[6], artSignID)
169+ else $Tuple4(true, nftData[5], nftData[6], artSignID)
172170 }
173171
174172
191189 let signFee = ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId)
192190 let creatorFee = ScriptTransfer(Address(fromBase58String(creatorAddr)), amountForCreator, assetId)
193191 let ownerFee = ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId)
194- let collectorFee = ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))
195- $Tuple4(signFee, creatorFee, ownerFee, collectorFee)
192+ let collectorNFT = ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))
193+ $Tuple4(signFee, creatorFee, ownerFee, collectorNFT)
196194 }
197195
198196
230228
231229 @Callable(i)
232230 func sellNFT (price,asset) = {
233- let $t078967935 = idCallerDate(i)
234- let id = $t078967935._1
235- let caller = $t078967935._2
236- let date = $t078967935._3
237- let $t079407976 = isPayment(i)
238- let payment = $t079407976._1
239- let amount = $t079407976._2
240- if (!(acceptedAssetIds(asset)))
241- then throw("Only SIGN, USDN or WAVES accepted")
242- else if (!(validateMinSell(asset, price)))
243- then throw("Wrong minimum sell price")
231+ let $t081048143 = idCallerDate(i)
232+ let id = $t081048143._1
233+ let caller = $t081048143._2
234+ let date = $t081048143._3
235+ let $t081498185 = isPayment(i)
236+ let payment = $t081498185._1
237+ let amount = $t081498185._2
238+ let nftId = if (if (isDefined(payment.assetId))
239+ then isSignArtNFT(value(payment.assetId))
240+ else false)
241+ then toBase58String(value(payment.assetId))
242+ else throw("Only SIGN Art NFT accepted.")
243+ let $t083648433 = checkNFTInfo(nftId)
244+ let isValidNFT = $t083648433._1
245+ let artId = $t083648433._2
246+ let creatorAddr = $t083648433._3
247+ let artSignID = $t083648433._4
248+ if ((size(artSignID) == 0))
249+ then throw("Artwork not found on SIGN Art")
250+ else if (!(isValidNFT))
251+ then throw("Something went wrong")
252+ else if (!(acceptedAssetIds(asset)))
253+ then throw("Only SIGN, USDN or WAVES accepted")
254+ else if ((price == 0))
255+ then throw("Wrong minimum sell price")
256+ else if (!(validateMinSell(asset, price)))
257+ then throw("Wrong minimum sell price")
258+ else [StringEntry((((((((("sale2nd_info_" + caller) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_OPEN"), ((((((((((((toString(date) + "_") + toString(price)) + "_") + asset) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_") + id)), StringEntry(((("sale2nd_status_" + caller) + "_") + nftId), "OPEN"), StringEntry(("current_owner_on_dapp_" + nftId), caller)]
259+ }
260+
261+
262+
263+@Callable(i)
264+func updateSalePrice (nftid,price,asset) = {
265+ let $t093259364 = idCallerDate(i)
266+ let id = $t093259364._1
267+ let caller = $t093259364._2
268+ let date = $t093259364._3
269+ let $t093709439 = checkNFTInfo(nftid)
270+ let isValidNFT = $t093709439._1
271+ let artId = $t093709439._2
272+ let creatorAddr = $t093709439._3
273+ let artSignID = $t093709439._4
274+ if ((size(artSignID) == 0))
275+ then throw("Artwork not found on SIGN Art, cancel your sale.")
276+ else if (!(isValidNFT))
277+ then throw("Something went wrong")
244278 else {
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 $t083868444 = checkNFTInfo(nftId)
251- let isValidNFT = $t083868444._1
252- let artId = $t083868444._2
253- let creatorAddr = $t083868444._3
254- if (!(isValidNFT))
255- then throw("Something went wrong")
256- else [StringEntry((((((((("sale2nd_info_" + caller) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_OPEN"), ((((((((((((toString(date) + "_") + toString(price)) + "_") + asset) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_") + id)), StringEntry(((("sale2nd_status_" + caller) + "_") + nftId), "OPEN"), StringEntry(("current_owner_on_dapp_" + nftId), caller)]
279+ let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
280+ if ((saleOwner != caller))
281+ then throw("You don't own this NFT")
282+ else {
283+ let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid))
284+ if ((saleStatus != "OPEN"))
285+ then throw("Sale not active")
286+ else if (!(acceptedAssetIds(asset)))
287+ then throw("Only SIGN, USDN or WAVES accepted")
288+ else if ((price == 0))
289+ then throw("Wrong minimum sell price")
290+ else if (!(validateMinSell(asset, price)))
291+ then throw("Wrong minimum sell price")
292+ else {
293+ let saleKey = ((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr)
294+ let saleInfo = split(getStrByK((saleKey + "_OPEN")), "_")
295+[StringEntry((saleKey + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))]
296+ }
297+ }
257298 }
258299 }
259300
260301
261302
262303 @Callable(i)
263-func updateSalePrice (nftid,price,asset) = {
264- let $t089608999 = idCallerDate(i)
265- let id = $t089608999._1
266- let caller = $t089608999._2
267- let date = $t089608999._3
268- let $t090049062 = checkNFTInfo(nftid)
269- let isValidNFT = $t090049062._1
270- let artId = $t090049062._2
271- let creatorAddr = $t090049062._3
272- if (!(isValidNFT))
273- then throw("Something went wrong")
274- else {
275- let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
276- if ((saleOwner != caller))
277- then throw("You don't own this NFT")
278- else {
279- let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid))
280- if ((saleStatus != "OPEN"))
281- then throw("Sale not active")
282- else if (!(acceptedAssetIds(asset)))
283- then throw("Only SIGN, USDN or WAVES accepted")
284- else if (!(validateMinSell(asset, price)))
285- then throw("Wrong minimum sell price")
286- else {
287- let saleInfo = split(getStrByK(((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_") + saleStatus)), "_")
288-[StringEntry((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))]
289- }
290- }
291- }
292- }
293-
294-
295-
296-@Callable(i)
297304 func cancelSale (nftid) = {
298- let $t01007910118 = idCallerDate(i)
299- let id = $t01007910118._1
300- let caller = $t01007910118._2
301- let date = $t01007910118._3
305+ let $t01058910628 = idCallerDate(i)
306+ let id = $t01058910628._1
307+ let caller = $t01058910628._2
308+ let date = $t01058910628._3
309+ let $t01063410856 = checkNFTInfo(nftid)
310+ let isValidNFT = $t01063410856._1
311+ let artId = $t01063410856._2
312+ let creatorAddr = $t01063410856._3
313+ let artSignID = $t01063410856._4
302314 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
303315 if ((saleOwner != caller))
304316 then throw("You don't own this NFT")
307319 if ((saleStatus != "OPEN"))
308320 then throw("Sale not active")
309321 else {
310- let $t01041010468 = checkNFTInfo(nftid)
311- let isValidNFT = $t01041010468._1
312- let artId = $t01041010468._2
313- let creatorAddr = $t01041010468._3
314- if (!(isValidNFT))
315- then throw("Something went wrong")
316- else {
317- let saleInfo = getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus))
318-[DeleteEntry((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + caller) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_") + id) + "_CANCELLED"), ((((saleInfo + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))]
319- }
322+ let saleKey = ((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr)
323+ let saleInfo = getStrByK((saleKey + "_OPEN"))
324+[DeleteEntry((saleKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + caller) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((saleKey + "_") + id) + "_CANCELLED"), ((((saleInfo + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))]
320325 }
321326 }
322327 }
325330
326331 @Callable(i)
327332 func buyNFT (nftid) = {
328- let $t01133911378 = idCallerDate(i)
329- let id = $t01133911378._1
330- let caller = $t01133911378._2
331- let date = $t01133911378._3
333+ let $t01166911708 = idCallerDate(i)
334+ let id = $t01166911708._1
335+ let caller = $t01166911708._2
336+ let date = $t01166911708._3
332337 let saleOwner = getSaleOwnerAndStatus(nftid)
333- let $t01143211490 = checkNFTInfo(nftid)
334- let isValidNFT = $t01143211490._1
335- let artId = $t01143211490._2
336- let creatorAddr = $t01143211490._3
337- if (!(isValidNFT))
338- then throw("Something went wrong")
339- else {
340- let saleInfo = getStrByK((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_OPEN"))
341- if ((size(saleInfo) == 0))
342- then throw("Sale Not found!")
343- else {
344- let saleInfoArray = split(saleInfo, "_")
345- if ((parseInt(saleInfoArray[1]) == 0))
346- then throw("Offer only")
347- else {
348- let $t01183411870 = isPayment(i)
349- let payment = $t01183411870._1
350- let amount = $t01183411870._2
351- let paymentAssetStr = if (isDefined(payment.assetId))
352- then toBase58String(value(payment.assetId))
353- else ""
354- if (if ((saleInfoArray[1] != toString(amount)))
355- then true
356- else (saleInfoArray[2] != paymentAssetStr))
357- then throw("Payment infos don't match.")
358- else {
359- let amountForSign = fraction(amount, signCut, 100)
360- let amountForCreator = fraction(amount, creatorCut, 100)
361- let amountForOwner = (amount - (amountForSign + amountForCreator))
362- let $t01237312501 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller)
363- let signFee = $t01237312501._1
364- let creatorFee = $t01237312501._2
365- let ownerFee = $t01237312501._3
366- let collectorFee = $t01237312501._4
367-[DeleteEntry((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_") + id) + "_CLOSED"), ((((((makeString(saleInfoArray, "_") + "_CLOSED_") + toString(date)) + "_") + id) + "_") + caller)), signFee, creatorFee, ownerFee, collectorFee]
368- }
369- }
370- }
371- }
338+ let $t01176211831 = checkNFTInfo(nftid)
339+ let isValidNFT = $t01176211831._1
340+ let artId = $t01176211831._2
341+ let creatorAddr = $t01176211831._3
342+ let artSignID = $t01176211831._4
343+ if ((size(artSignID) == 0))
344+ then throw("Artwork not found on SIGN Art, cancel your sale.")
345+ else if (!(isValidNFT))
346+ then throw("Something went wrong")
347+ else {
348+ let saleKey = ((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr)
349+ let saleInfo = getStrByK((saleKey + "_OPEN"))
350+ if ((size(saleInfo) == 0))
351+ then throw("Sale Not found!")
352+ else {
353+ let saleInfoArray = split(saleInfo, "_")
354+ if ((parseInt(saleInfoArray[1]) == 0))
355+ then throw("Offer only")
356+ else {
357+ let $t01229912335 = isPayment(i)
358+ let payment = $t01229912335._1
359+ let amount = $t01229912335._2
360+ let paymentAssetStr = if (isDefined(payment.assetId))
361+ then toBase58String(value(payment.assetId))
362+ else ""
363+ if (if ((saleInfoArray[1] != toString(amount)))
364+ then true
365+ else (saleInfoArray[2] != paymentAssetStr))
366+ then throw("Payment infos don't match.")
367+ else {
368+ let amountForSign = fraction(amount, signCut, 100)
369+ let amountForCreator = fraction(amount, creatorCut, 100)
370+ let amountForOwner = (amount - (amountForSign + amountForCreator))
371+ let $t01283812966 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller)
372+ let signFee = $t01283812966._1
373+ let creatorFee = $t01283812966._2
374+ let ownerFee = $t01283812966._3
375+ let collectorNFT = $t01283812966._4
376+[DeleteEntry((saleKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((makeString(saleInfoArray, "_") + "_CLOSED_") + toString(date)) + "_") + id) + "_") + caller)), signFee, creatorFee, ownerFee, collectorNFT]
377+ }
378+ }
379+ }
380+ }
372381 }
373382
374383
375384
376385 @Callable(i)
377386 func setOffer (nftid) = {
378- let $t01301213054 = idCallerDate(i)
379- let id = $t01301213054._1
380- let offerOwner = $t01301213054._2
381- let date = $t01301213054._3
382- let $t01306013096 = isPayment(i)
383- let payment = $t01306013096._1
384- let amount = $t01306013096._2
387+ let $t01336913411 = idCallerDate(i)
388+ let id = $t01336913411._1
389+ let offerOwner = $t01336913411._2
390+ let date = $t01336913411._3
391+ let $t01341713453 = isPayment(i)
392+ let payment = $t01341713453._1
393+ let amount = $t01341713453._2
385394 let assetId = if (!(isDefined(payment.assetId)))
386395 then "WAVES"
387396 else toBase58String(value(payment.assetId))
392401 else if (!(validateMinSell(assetId, amount)))
393402 then throw("Wrong minimum sell price")
394403 else {
395- let $t01343013488 = checkNFTInfo(nftid)
396- let isValidNFT = $t01343013488._1
397- let artId = $t01343013488._2
398- let creatorAddr = $t01343013488._3
404+ let $t01378713845 = checkNFTInfo(nftid)
405+ let isValidNFT = $t01378713845._1
406+ let artId = $t01378713845._2
407+ let creatorAddr = $t01378713845._3
399408 if (!(isValidNFT))
400409 then throw("Something went wrong")
401410 else {
409418
410419 @Callable(i)
411420 func acceptOffer (nftid,offerId,offerOwner) = {
412- let $t01402114090 = idCallerDate(i)
413- let id = $t01402114090._1
414- let caller = $t01402114090._2
415- let date = $t01402114090._3
421+ let $t01437814447 = idCallerDate(i)
422+ let id = $t01437814447._1
423+ let caller = $t01437814447._2
424+ let date = $t01437814447._3
416425 let saleOwner = getSaleOwnerAndStatus(nftid)
417426 if ((caller != saleOwner))
418427 then throw("You cannot do this action")
422431 if ((bidValue == ""))
423432 then throw("Offer not found or not for sale")
424433 else {
425- let $t01441414472 = checkNFTInfo(nftid)
426- let isValidNFT = $t01441414472._1
427- let artId = $t01441414472._2
428- let creatorAddr = $t01441414472._3
434+ let $t01477114829 = checkNFTInfo(nftid)
435+ let isValidNFT = $t01477114829._1
436+ let artId = $t01477114829._2
437+ let creatorAddr = $t01477114829._3
429438 if (!(isValidNFT))
430439 then throw("Something went wrong")
431440 else {
432- let saleKey = ((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr)
441+ let saleKey = ((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr)
433442 let saleValue = getStrByK((saleKey + "_OPEN"))
434443 if ((size(saleValue) == 0))
435444 then throw("Sale Not found!")
436445 else {
437446 let saleValArr = split(saleValue, "_")
438- let $t01480714862 = getBidData(bidKey)
439- let bidDataArr = $t01480714862._1
440- let assetId = $t01480714862._2
441- let bidData = $t01480714862._3
447+ let $t01517415229 = getBidData(bidKey)
448+ let bidDataArr = $t01517415229._1
449+ let assetId = $t01517415229._2
450+ let bidData = $t01517415229._3
442451 let amount = value(parseInt(bidDataArr[1]))
443- let $t01491615043 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[6])
444- let signFee = $t01491615043._1
445- let creatorFee = $t01491615043._2
446- let ownerFee = $t01491615043._3
447- let collectorFee = $t01491615043._4
448-[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]
452+ let $t01528315410 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[6])
453+ let signFee = $t01528315410._1
454+ let creatorFee = $t01528315410._2
455+ let ownerFee = $t01528315410._3
456+ let collectorNFT = $t01528315410._4
457+[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, collectorNFT]
449458 }
450459 }
451460 }
456465
457466 @Callable(i)
458467 func cancelOffer (nftid,offerId,saleOwner) = {
459- let $t01569215753 = idCallerDate(i)
460- let id = $t01569215753._1
461- let caller = $t01569215753._2
462- let date = $t01569215753._3
468+ let $t01605916120 = idCallerDate(i)
469+ let id = $t01605916120._1
470+ let caller = $t01605916120._2
471+ let date = $t01605916120._3
463472 let bidKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
464- let $t01583015885 = getBidData(bidKey)
465- let bidDataArr = $t01583015885._1
466- let assetId = $t01583015885._2
467- let bidData = $t01583015885._3
473+ let $t01619716252 = getBidData(bidKey)
474+ let bidDataArr = $t01619716252._1
475+ let assetId = $t01619716252._2
476+ let bidData = $t01619716252._3
468477 [DeleteEntry((bidKey + "_OPEN")), StringEntry((bidKey + "_CANCELLED"), ((((bidData + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
469478 }
470479
472481
473482 @Callable(i)
474483 func makeRequest (artId,creatorAddr) = {
475- let $t01621016254 = idCallerDate(i)
476- let id = $t01621016254._1
477- let requestOwner = $t01621016254._2
478- let date = $t01621016254._3
479- let $t01626016296 = isPayment(i)
480- let payment = $t01626016296._1
481- let amount = $t01626016296._2
484+ let $t01657716621 = idCallerDate(i)
485+ let id = $t01657716621._1
486+ let requestOwner = $t01657716621._2
487+ let date = $t01657716621._3
488+ let $t01662716663 = isPayment(i)
489+ let payment = $t01662716663._1
490+ let amount = $t01662716663._2
482491 let assetId = if (!(isDefined(payment.assetId)))
483492 then "WAVES"
484493 else toBase58String(value(payment.assetId))
498507
499508 @Callable(i)
500509 func fillRequest (artId,requestOwner,offerId) = {
501- let $t01710317145 = idCallerDate(i)
502- let id = $t01710317145._1
503- let saleOwner = $t01710317145._2
504- let date = $t01710317145._3
505- let $t01715017194 = isPayment(i)
506- let payment = $t01715017194._1
507- let amountAttached = $t01715017194._2
510+ let $t01747017512 = idCallerDate(i)
511+ let id = $t01747017512._1
512+ let saleOwner = $t01747017512._2
513+ let date = $t01747017512._3
514+ let $t01751717561 = isPayment(i)
515+ let payment = $t01751717561._1
516+ let amountAttached = $t01751717561._2
508517 let NFTid = if (if (isDefined(payment.assetId))
509518 then isSignArtNFT(value(payment.assetId))
510519 else false)
521530 then throw("This NFT don't match the requested artwork")
522531 else {
523532 let amount = value(parseInt(requestData[1]))
524- let $t01791418089 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4])
525- let signFee = $t01791418089._1
526- let creatorFee = $t01791418089._2
527- let ownerFee = $t01791418089._3
528- let collectorFee = $t01791418089._4
529-[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]
533+ let $t01828118456 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4])
534+ let signFee = $t01828118456._1
535+ let creatorFee = $t01828118456._2
536+ let ownerFee = $t01828118456._3
537+ let collectorNFT = $t01828118456._4
538+[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, collectorNFT]
530539 }
531540 }
532541 }
535544
536545 @Callable(i)
537546 func cancelRequest (artId,creatorAddr,requestId) = {
538- let $t01854918593 = idCallerDate(i)
539- let id = $t01854918593._1
540- let requestOwner = $t01854918593._2
541- let date = $t01854918593._3
547+ let $t01900819052 = idCallerDate(i)
548+ let id = $t01900819052._1
549+ let requestOwner = $t01900819052._2
550+ let date = $t01900819052._3
542551 let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId)
543552 let requestData = getStrByK((requesDataKey + "_OPEN"))
544553 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]))
165- if ((size(artSignID) == 0))
166- then throw("Artwork not found on SIGN Art")
167- else if (if (!(checkArtStatus(nftData[6], nftData[5])))
168- then !(checkArtistStatus(nftData[6]))
169- else false)
170- then $Tuple3(false, nftData[5], nftData[6])
171- else $Tuple3(true, nftData[5], nftData[6])
165+ if (if (!(checkArtStatus(nftData[6], nftData[5])))
166+ then !(checkArtistStatus(nftData[6]))
167+ else false)
168+ then $Tuple4(false, nftData[5], nftData[6], artSignID)
169+ else $Tuple4(true, nftData[5], nftData[6], artSignID)
172170 }
173171
174172
175173 func checkARTExist (artId,creatorAddr) = {
176174 let artSignID = getArtStrByK(keySignID(creatorAddr, artId))
177175 if ((size(artSignID) == 0))
178176 then throw("Artwork not found on SIGN Art")
179177 else if (if (!(checkArtStatus(creatorAddr, artId)))
180178 then !(checkArtistStatus(creatorAddr))
181179 else false)
182180 then false
183181 else true
184182 }
185183
186184
187185 func setTransfers (amount,assetId,nftid,creatorAddr,saleOwner,caller) = {
188186 let amountForSign = fraction(amount, signCut, 100)
189187 let amountForCreator = fraction(amount, creatorCut, 100)
190188 let amountForOwner = (amount - (amountForSign + amountForCreator))
191189 let signFee = ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId)
192190 let creatorFee = ScriptTransfer(Address(fromBase58String(creatorAddr)), amountForCreator, assetId)
193191 let ownerFee = ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId)
194- let collectorFee = ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))
195- $Tuple4(signFee, creatorFee, ownerFee, collectorFee)
192+ let collectorNFT = ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))
193+ $Tuple4(signFee, creatorFee, ownerFee, collectorNFT)
196194 }
197195
198196
199197 func validateMinSell (assetId,price) = {
200198 let minSellWaves = if (unitTest)
201199 then 10
202200 else getIntByKFromOracle("waves_min_sell")
203201 let minSellUsdn = 1000000
204202 let minSellSign = if (unitTest)
205203 then 1
206204 else (currentCertificationPrice * 2)
207205 if (if (if (if (if ((assetId == toBase58String(usdnAssetId)))
208206 then (minSellUsdn > price)
209207 else false)
210208 then (price != 0)
211209 else false)
212210 then true
213211 else if (if ((assetId == toBase58String(signAssetId)))
214212 then (minSellSign > price)
215213 else false)
216214 then (price != 0)
217215 else false)
218216 then true
219217 else if (if (if ((assetId == toBase58String(wavesAssetId)))
220218 then true
221219 else (assetId == "WAVES"))
222220 then (minSellWaves > price)
223221 else false)
224222 then (price != 0)
225223 else false)
226224 then false
227225 else true
228226 }
229227
230228
231229 @Callable(i)
232230 func sellNFT (price,asset) = {
233- let $t078967935 = idCallerDate(i)
234- let id = $t078967935._1
235- let caller = $t078967935._2
236- let date = $t078967935._3
237- let $t079407976 = isPayment(i)
238- let payment = $t079407976._1
239- let amount = $t079407976._2
240- if (!(acceptedAssetIds(asset)))
241- then throw("Only SIGN, USDN or WAVES accepted")
242- else if (!(validateMinSell(asset, price)))
243- then throw("Wrong minimum sell price")
231+ let $t081048143 = idCallerDate(i)
232+ let id = $t081048143._1
233+ let caller = $t081048143._2
234+ let date = $t081048143._3
235+ let $t081498185 = isPayment(i)
236+ let payment = $t081498185._1
237+ let amount = $t081498185._2
238+ let nftId = if (if (isDefined(payment.assetId))
239+ then isSignArtNFT(value(payment.assetId))
240+ else false)
241+ then toBase58String(value(payment.assetId))
242+ else throw("Only SIGN Art NFT accepted.")
243+ let $t083648433 = checkNFTInfo(nftId)
244+ let isValidNFT = $t083648433._1
245+ let artId = $t083648433._2
246+ let creatorAddr = $t083648433._3
247+ let artSignID = $t083648433._4
248+ if ((size(artSignID) == 0))
249+ then throw("Artwork not found on SIGN Art")
250+ else if (!(isValidNFT))
251+ then throw("Something went wrong")
252+ else if (!(acceptedAssetIds(asset)))
253+ then throw("Only SIGN, USDN or WAVES accepted")
254+ else if ((price == 0))
255+ then throw("Wrong minimum sell price")
256+ else if (!(validateMinSell(asset, price)))
257+ then throw("Wrong minimum sell price")
258+ else [StringEntry((((((((("sale2nd_info_" + caller) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_OPEN"), ((((((((((((toString(date) + "_") + toString(price)) + "_") + asset) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_") + id)), StringEntry(((("sale2nd_status_" + caller) + "_") + nftId), "OPEN"), StringEntry(("current_owner_on_dapp_" + nftId), caller)]
259+ }
260+
261+
262+
263+@Callable(i)
264+func updateSalePrice (nftid,price,asset) = {
265+ let $t093259364 = idCallerDate(i)
266+ let id = $t093259364._1
267+ let caller = $t093259364._2
268+ let date = $t093259364._3
269+ let $t093709439 = checkNFTInfo(nftid)
270+ let isValidNFT = $t093709439._1
271+ let artId = $t093709439._2
272+ let creatorAddr = $t093709439._3
273+ let artSignID = $t093709439._4
274+ if ((size(artSignID) == 0))
275+ then throw("Artwork not found on SIGN Art, cancel your sale.")
276+ else if (!(isValidNFT))
277+ then throw("Something went wrong")
244278 else {
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 $t083868444 = checkNFTInfo(nftId)
251- let isValidNFT = $t083868444._1
252- let artId = $t083868444._2
253- let creatorAddr = $t083868444._3
254- if (!(isValidNFT))
255- then throw("Something went wrong")
256- else [StringEntry((((((((("sale2nd_info_" + caller) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_OPEN"), ((((((((((((toString(date) + "_") + toString(price)) + "_") + asset) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_") + id)), StringEntry(((("sale2nd_status_" + caller) + "_") + nftId), "OPEN"), StringEntry(("current_owner_on_dapp_" + nftId), caller)]
279+ let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
280+ if ((saleOwner != caller))
281+ then throw("You don't own this NFT")
282+ else {
283+ let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid))
284+ if ((saleStatus != "OPEN"))
285+ then throw("Sale not active")
286+ else if (!(acceptedAssetIds(asset)))
287+ then throw("Only SIGN, USDN or WAVES accepted")
288+ else if ((price == 0))
289+ then throw("Wrong minimum sell price")
290+ else if (!(validateMinSell(asset, price)))
291+ then throw("Wrong minimum sell price")
292+ else {
293+ let saleKey = ((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr)
294+ let saleInfo = split(getStrByK((saleKey + "_OPEN")), "_")
295+[StringEntry((saleKey + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))]
296+ }
297+ }
257298 }
258299 }
259300
260301
261302
262303 @Callable(i)
263-func updateSalePrice (nftid,price,asset) = {
264- let $t089608999 = idCallerDate(i)
265- let id = $t089608999._1
266- let caller = $t089608999._2
267- let date = $t089608999._3
268- let $t090049062 = checkNFTInfo(nftid)
269- let isValidNFT = $t090049062._1
270- let artId = $t090049062._2
271- let creatorAddr = $t090049062._3
272- if (!(isValidNFT))
273- then throw("Something went wrong")
274- else {
275- let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
276- if ((saleOwner != caller))
277- then throw("You don't own this NFT")
278- else {
279- let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid))
280- if ((saleStatus != "OPEN"))
281- then throw("Sale not active")
282- else if (!(acceptedAssetIds(asset)))
283- then throw("Only SIGN, USDN or WAVES accepted")
284- else if (!(validateMinSell(asset, price)))
285- then throw("Wrong minimum sell price")
286- else {
287- let saleInfo = split(getStrByK(((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_") + saleStatus)), "_")
288-[StringEntry((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))]
289- }
290- }
291- }
292- }
293-
294-
295-
296-@Callable(i)
297304 func cancelSale (nftid) = {
298- let $t01007910118 = idCallerDate(i)
299- let id = $t01007910118._1
300- let caller = $t01007910118._2
301- let date = $t01007910118._3
305+ let $t01058910628 = idCallerDate(i)
306+ let id = $t01058910628._1
307+ let caller = $t01058910628._2
308+ let date = $t01058910628._3
309+ let $t01063410856 = checkNFTInfo(nftid)
310+ let isValidNFT = $t01063410856._1
311+ let artId = $t01063410856._2
312+ let creatorAddr = $t01063410856._3
313+ let artSignID = $t01063410856._4
302314 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
303315 if ((saleOwner != caller))
304316 then throw("You don't own this NFT")
305317 else {
306318 let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid))
307319 if ((saleStatus != "OPEN"))
308320 then throw("Sale not active")
309321 else {
310- let $t01041010468 = checkNFTInfo(nftid)
311- let isValidNFT = $t01041010468._1
312- let artId = $t01041010468._2
313- let creatorAddr = $t01041010468._3
314- if (!(isValidNFT))
315- then throw("Something went wrong")
316- else {
317- let saleInfo = getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus))
318-[DeleteEntry((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + caller) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_") + id) + "_CANCELLED"), ((((saleInfo + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))]
319- }
322+ let saleKey = ((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + artId) + "_") + creatorAddr)
323+ let saleInfo = getStrByK((saleKey + "_OPEN"))
324+[DeleteEntry((saleKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + caller) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((saleKey + "_") + id) + "_CANCELLED"), ((((saleInfo + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))]
320325 }
321326 }
322327 }
323328
324329
325330
326331 @Callable(i)
327332 func buyNFT (nftid) = {
328- let $t01133911378 = idCallerDate(i)
329- let id = $t01133911378._1
330- let caller = $t01133911378._2
331- let date = $t01133911378._3
333+ let $t01166911708 = idCallerDate(i)
334+ let id = $t01166911708._1
335+ let caller = $t01166911708._2
336+ let date = $t01166911708._3
332337 let saleOwner = getSaleOwnerAndStatus(nftid)
333- let $t01143211490 = checkNFTInfo(nftid)
334- let isValidNFT = $t01143211490._1
335- let artId = $t01143211490._2
336- let creatorAddr = $t01143211490._3
337- if (!(isValidNFT))
338- then throw("Something went wrong")
339- else {
340- let saleInfo = getStrByK((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_OPEN"))
341- if ((size(saleInfo) == 0))
342- then throw("Sale Not found!")
343- else {
344- let saleInfoArray = split(saleInfo, "_")
345- if ((parseInt(saleInfoArray[1]) == 0))
346- then throw("Offer only")
347- else {
348- let $t01183411870 = isPayment(i)
349- let payment = $t01183411870._1
350- let amount = $t01183411870._2
351- let paymentAssetStr = if (isDefined(payment.assetId))
352- then toBase58String(value(payment.assetId))
353- else ""
354- if (if ((saleInfoArray[1] != toString(amount)))
355- then true
356- else (saleInfoArray[2] != paymentAssetStr))
357- then throw("Payment infos don't match.")
358- else {
359- let amountForSign = fraction(amount, signCut, 100)
360- let amountForCreator = fraction(amount, creatorCut, 100)
361- let amountForOwner = (amount - (amountForSign + amountForCreator))
362- let $t01237312501 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller)
363- let signFee = $t01237312501._1
364- let creatorFee = $t01237312501._2
365- let ownerFee = $t01237312501._3
366- let collectorFee = $t01237312501._4
367-[DeleteEntry((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_") + id) + "_CLOSED"), ((((((makeString(saleInfoArray, "_") + "_CLOSED_") + toString(date)) + "_") + id) + "_") + caller)), signFee, creatorFee, ownerFee, collectorFee]
368- }
369- }
370- }
371- }
338+ let $t01176211831 = checkNFTInfo(nftid)
339+ let isValidNFT = $t01176211831._1
340+ let artId = $t01176211831._2
341+ let creatorAddr = $t01176211831._3
342+ let artSignID = $t01176211831._4
343+ if ((size(artSignID) == 0))
344+ then throw("Artwork not found on SIGN Art, cancel your sale.")
345+ else if (!(isValidNFT))
346+ then throw("Something went wrong")
347+ else {
348+ let saleKey = ((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr)
349+ let saleInfo = getStrByK((saleKey + "_OPEN"))
350+ if ((size(saleInfo) == 0))
351+ then throw("Sale Not found!")
352+ else {
353+ let saleInfoArray = split(saleInfo, "_")
354+ if ((parseInt(saleInfoArray[1]) == 0))
355+ then throw("Offer only")
356+ else {
357+ let $t01229912335 = isPayment(i)
358+ let payment = $t01229912335._1
359+ let amount = $t01229912335._2
360+ let paymentAssetStr = if (isDefined(payment.assetId))
361+ then toBase58String(value(payment.assetId))
362+ else ""
363+ if (if ((saleInfoArray[1] != toString(amount)))
364+ then true
365+ else (saleInfoArray[2] != paymentAssetStr))
366+ then throw("Payment infos don't match.")
367+ else {
368+ let amountForSign = fraction(amount, signCut, 100)
369+ let amountForCreator = fraction(amount, creatorCut, 100)
370+ let amountForOwner = (amount - (amountForSign + amountForCreator))
371+ let $t01283812966 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller)
372+ let signFee = $t01283812966._1
373+ let creatorFee = $t01283812966._2
374+ let ownerFee = $t01283812966._3
375+ let collectorNFT = $t01283812966._4
376+[DeleteEntry((saleKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((makeString(saleInfoArray, "_") + "_CLOSED_") + toString(date)) + "_") + id) + "_") + caller)), signFee, creatorFee, ownerFee, collectorNFT]
377+ }
378+ }
379+ }
380+ }
372381 }
373382
374383
375384
376385 @Callable(i)
377386 func setOffer (nftid) = {
378- let $t01301213054 = idCallerDate(i)
379- let id = $t01301213054._1
380- let offerOwner = $t01301213054._2
381- let date = $t01301213054._3
382- let $t01306013096 = isPayment(i)
383- let payment = $t01306013096._1
384- let amount = $t01306013096._2
387+ let $t01336913411 = idCallerDate(i)
388+ let id = $t01336913411._1
389+ let offerOwner = $t01336913411._2
390+ let date = $t01336913411._3
391+ let $t01341713453 = isPayment(i)
392+ let payment = $t01341713453._1
393+ let amount = $t01341713453._2
385394 let assetId = if (!(isDefined(payment.assetId)))
386395 then "WAVES"
387396 else toBase58String(value(payment.assetId))
388397 if (!(acceptedAssetIds(assetId)))
389398 then throw("asset not accepted")
390399 else if ((amount == 0))
391400 then throw("Offer of 0 not allowed")
392401 else if (!(validateMinSell(assetId, amount)))
393402 then throw("Wrong minimum sell price")
394403 else {
395- let $t01343013488 = checkNFTInfo(nftid)
396- let isValidNFT = $t01343013488._1
397- let artId = $t01343013488._2
398- let creatorAddr = $t01343013488._3
404+ let $t01378713845 = checkNFTInfo(nftid)
405+ let isValidNFT = $t01378713845._1
406+ let artId = $t01378713845._2
407+ let creatorAddr = $t01378713845._3
399408 if (!(isValidNFT))
400409 then throw("Something went wrong")
401410 else {
402411 let saleOwner = getSaleOwnerAndStatus(nftid)
403412 [StringEntry((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + id) + "_OPEN"), ((((((((((((((toString(date) + "_") + toString(amount)) + "_") + assetId) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_") + offerOwner) + "_") + id))]
404413 }
405414 }
406415 }
407416
408417
409418
410419 @Callable(i)
411420 func acceptOffer (nftid,offerId,offerOwner) = {
412- let $t01402114090 = idCallerDate(i)
413- let id = $t01402114090._1
414- let caller = $t01402114090._2
415- let date = $t01402114090._3
421+ let $t01437814447 = idCallerDate(i)
422+ let id = $t01437814447._1
423+ let caller = $t01437814447._2
424+ let date = $t01437814447._3
416425 let saleOwner = getSaleOwnerAndStatus(nftid)
417426 if ((caller != saleOwner))
418427 then throw("You cannot do this action")
419428 else {
420429 let bidKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
421430 let bidValue = getStrByK((bidKey + "_OPEN"))
422431 if ((bidValue == ""))
423432 then throw("Offer not found or not for sale")
424433 else {
425- let $t01441414472 = checkNFTInfo(nftid)
426- let isValidNFT = $t01441414472._1
427- let artId = $t01441414472._2
428- let creatorAddr = $t01441414472._3
434+ let $t01477114829 = checkNFTInfo(nftid)
435+ let isValidNFT = $t01477114829._1
436+ let artId = $t01477114829._2
437+ let creatorAddr = $t01477114829._3
429438 if (!(isValidNFT))
430439 then throw("Something went wrong")
431440 else {
432- let saleKey = ((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr)
441+ let saleKey = ((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + artId) + "_") + creatorAddr)
433442 let saleValue = getStrByK((saleKey + "_OPEN"))
434443 if ((size(saleValue) == 0))
435444 then throw("Sale Not found!")
436445 else {
437446 let saleValArr = split(saleValue, "_")
438- let $t01480714862 = getBidData(bidKey)
439- let bidDataArr = $t01480714862._1
440- let assetId = $t01480714862._2
441- let bidData = $t01480714862._3
447+ let $t01517415229 = getBidData(bidKey)
448+ let bidDataArr = $t01517415229._1
449+ let assetId = $t01517415229._2
450+ let bidData = $t01517415229._3
442451 let amount = value(parseInt(bidDataArr[1]))
443- let $t01491615043 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[6])
444- let signFee = $t01491615043._1
445- let creatorFee = $t01491615043._2
446- let ownerFee = $t01491615043._3
447- let collectorFee = $t01491615043._4
448-[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]
452+ let $t01528315410 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[6])
453+ let signFee = $t01528315410._1
454+ let creatorFee = $t01528315410._2
455+ let ownerFee = $t01528315410._3
456+ let collectorNFT = $t01528315410._4
457+[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, collectorNFT]
449458 }
450459 }
451460 }
452461 }
453462 }
454463
455464
456465
457466 @Callable(i)
458467 func cancelOffer (nftid,offerId,saleOwner) = {
459- let $t01569215753 = idCallerDate(i)
460- let id = $t01569215753._1
461- let caller = $t01569215753._2
462- let date = $t01569215753._3
468+ let $t01605916120 = idCallerDate(i)
469+ let id = $t01605916120._1
470+ let caller = $t01605916120._2
471+ let date = $t01605916120._3
463472 let bidKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
464- let $t01583015885 = getBidData(bidKey)
465- let bidDataArr = $t01583015885._1
466- let assetId = $t01583015885._2
467- let bidData = $t01583015885._3
473+ let $t01619716252 = getBidData(bidKey)
474+ let bidDataArr = $t01619716252._1
475+ let assetId = $t01619716252._2
476+ let bidData = $t01619716252._3
468477 [DeleteEntry((bidKey + "_OPEN")), StringEntry((bidKey + "_CANCELLED"), ((((bidData + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
469478 }
470479
471480
472481
473482 @Callable(i)
474483 func makeRequest (artId,creatorAddr) = {
475- let $t01621016254 = idCallerDate(i)
476- let id = $t01621016254._1
477- let requestOwner = $t01621016254._2
478- let date = $t01621016254._3
479- let $t01626016296 = isPayment(i)
480- let payment = $t01626016296._1
481- let amount = $t01626016296._2
484+ let $t01657716621 = idCallerDate(i)
485+ let id = $t01657716621._1
486+ let requestOwner = $t01657716621._2
487+ let date = $t01657716621._3
488+ let $t01662716663 = isPayment(i)
489+ let payment = $t01662716663._1
490+ let amount = $t01662716663._2
482491 let assetId = if (!(isDefined(payment.assetId)))
483492 then "WAVES"
484493 else toBase58String(value(payment.assetId))
485494 if (!(acceptedAssetIds(assetId)))
486495 then throw("asset not accepted")
487496 else if (!(validateMinSell(assetId, amount)))
488497 then throw("Wrong minimum sell price")
489498 else {
490499 let isValidART = checkARTExist(artId, creatorAddr)
491500 if (!(isValidART))
492501 then throw("Something went wrong")
493502 else [StringEntry((((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_") + artId) + "_") + requestOwner) + "_") + id))]
494503 }
495504 }
496505
497506
498507
499508 @Callable(i)
500509 func fillRequest (artId,requestOwner,offerId) = {
501- let $t01710317145 = idCallerDate(i)
502- let id = $t01710317145._1
503- let saleOwner = $t01710317145._2
504- let date = $t01710317145._3
505- let $t01715017194 = isPayment(i)
506- let payment = $t01715017194._1
507- let amountAttached = $t01715017194._2
510+ let $t01747017512 = idCallerDate(i)
511+ let id = $t01747017512._1
512+ let saleOwner = $t01747017512._2
513+ let date = $t01747017512._3
514+ let $t01751717561 = isPayment(i)
515+ let payment = $t01751717561._1
516+ let amountAttached = $t01751717561._2
508517 let NFTid = if (if (isDefined(payment.assetId))
509518 then isSignArtNFT(value(payment.assetId))
510519 else false)
511520 then payment.assetId
512521 else throw("No NFT found")
513522 let NFTdata = split(getArtStrByK(("nft_" + toBase58String(value(NFTid)))), "_")
514523 if ((size(NFTdata) == 0))
515524 then throw("No NFT found")
516525 else {
517526 let requestData = split(getStrByK((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), "_")
518527 if ((size(requestData) == 1))
519528 then throw("No request found")
520529 else if ((requestData[3] != NFTdata[5]))
521530 then throw("This NFT don't match the requested artwork")
522531 else {
523532 let amount = value(parseInt(requestData[1]))
524- let $t01791418089 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4])
525- let signFee = $t01791418089._1
526- let creatorFee = $t01791418089._2
527- let ownerFee = $t01791418089._3
528- let collectorFee = $t01791418089._4
529-[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]
533+ let $t01828118456 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4])
534+ let signFee = $t01828118456._1
535+ let creatorFee = $t01828118456._2
536+ let ownerFee = $t01828118456._3
537+ let collectorNFT = $t01828118456._4
538+[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, collectorNFT]
530539 }
531540 }
532541 }
533542
534543
535544
536545 @Callable(i)
537546 func cancelRequest (artId,creatorAddr,requestId) = {
538- let $t01854918593 = idCallerDate(i)
539- let id = $t01854918593._1
540- let requestOwner = $t01854918593._2
541- let date = $t01854918593._3
547+ let $t01900819052 = idCallerDate(i)
548+ let id = $t01900819052._1
549+ let requestOwner = $t01900819052._2
550+ let date = $t01900819052._3
542551 let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId)
543552 let requestData = getStrByK((requesDataKey + "_OPEN"))
544553 if ((size(requestData) == 0))
545554 then throw("Request not found")
546555 else {
547556 let requestDataArr = split(requestData, "_")
548557 [DeleteEntry((requesDataKey + "_OPEN")), StringEntry((((((requesDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((requestData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(requestOwner)), parseIntValue(requestDataArr[1]), fromBase58String(requestDataArr[2]))]
549558 }
550559 }
551560
552561

github/deemru/w8io/026f985 
118.79 ms