tx · GKQCk2SbJJ7mYdw3VHswNq2GY4csuy7bf3Um1PxZbYWV

3N2c38oS2z4k4t4VKEwqoKLQTsbQoM4Ke9H:  -0.01400000 Waves

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

{ "type": 13, "id": "GKQCk2SbJJ7mYdw3VHswNq2GY4csuy7bf3Um1PxZbYWV", "fee": 1400000, "feeAssetId": null, "timestamp": 1623064484724, "version": 2, "chainId": 84, "sender": "3N2c38oS2z4k4t4VKEwqoKLQTsbQoM4Ke9H", "senderPublicKey": "BzfS7SAnfHHWF9MwvLE52diURPKozXxTitzcz3FEkduL", "proofs": [ "25VNHx1TNmpYVRSf181wL136WUnVTJzTVz45ER53g6X3vfu3PqBX9m58h8MHAPaZoYbW3YFrduNZha4eyPGqHE2K" ], "script": "base64:AAIEAAAAAAAAAEAIAhIECgIBCBIFCgMIAQgSAwoBCBIDCgEIEgMKAQgSBQoDCAgIEgUKAwgICBIECgIICBIFCgMICAgSBQoDCAgIAAAAKwAAAAAIdW5pdFRlc3QHAAAAAAlvcmFjbGVGZWUJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAACHNpZ25EYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQzI4aFNpdnJtc1RVWGFZRDF4NkwzNjJKNFpwVW5vVGRCAAAAAAxhcnR3b3Jrc0RhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05CeW5mYlhDMkthc3RVeGh1a2NNVWFFNThLOWNCZEI5VVkAAAAAC2ZlZVJlY2VpdmVyAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAIdXNlckRhcHADBQAAAAh1bml0VGVzdAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTX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RlCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAAAxyZXF1ZXN0T3duZXIJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACBQAAAA5yZXF1ZXN0RGF0YUFycgAAAAAAAAAAAQkAAlkAAAABCQABkQAAAAIFAAAADnJlcXVlc3REYXRhQXJyAAAAAAAAAAACBQAAAANuaWwAAAAAH4S/Dg==", "height": 1559868, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2gjCPSR1DtqvMAPR9Vvnr1Xw92hgMfDZrrkU57wo8v35 Next: 8LCx3QT1h7jbbrzBRosW6TYmgkwJUVinkAvRicikAKcz Diff:
OldNewDifferences
6666
6767 func keyNFTData (id) = ("nft_" + id)
6868
69+
70+func getIntByKFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle")
71+
72+
73+let currentCertificationPrice = getIntByKFromOracle(("certification_fee_" + toBase58String(signAssetId)))
6974
7075 func idCallerDate (i) = if (!(dappRunning))
7176 then throw(maintenanceMSG)
191196 }
192197
193198
199+func validateMinSell (assetId,price) = {
200+ let minSellWaves = if (unitTest)
201+ then 10
202+ else getIntByKFromOracle("waves_min_sell")
203+ let minSellUsdn = 1000000
204+ let minSellSign = if (unitTest)
205+ then 1
206+ else (currentCertificationPrice * 2)
207+ if (if (if (if (if ((assetId == toBase58String(usdnAssetId)))
208+ then (minSellUsdn > price)
209+ else false)
210+ then (price != 0)
211+ else false)
212+ then true
213+ else if (if ((assetId == toBase58String(signAssetId)))
214+ then (minSellSign > price)
215+ else false)
216+ then (price != 0)
217+ else false)
218+ then true
219+ else if (if (if ((assetId == toBase58String(wavesAssetId)))
220+ then true
221+ else (assetId == "WAVES"))
222+ then (minSellWaves > price)
223+ else false)
224+ then (price != 0)
225+ else false)
226+ then throw("Wrong minimum sell price")
227+ else true
228+ }
229+
230+
194231 @Callable(i)
195232 func sellNFT (price,asset) = {
196- let $t071067145 = idCallerDate(i)
197- let id = $t071067145._1
198- let caller = $t071067145._2
199- let date = $t071067145._3
200- let $t071507186 = isPayment(i)
201- let payment = $t071507186._1
202- let amount = $t071507186._2
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
203240 let nftId = if (if (isDefined(payment.assetId))
204241 then isSignArtNFT(value(payment.assetId))
205242 else false)
207244 else throw("Only SIGN Art NFT accepted.")
208245 if (!(acceptedAssetIds(asset)))
209246 then throw("Only SIGN, USDN or WAVES accepted")
210- else {
211- let $t074877545 = checkNFTInfo(nftId)
212- let isValidNFT = $t074877545._1
213- let artId = $t074877545._2
214- let creatorAddr = $t074877545._3
215- if (!(isValidNFT))
216- then throw("Something went wrong")
217- 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)]
218- }
247+ else if (!(validateMinSell(asset, price)))
248+ then throw("Something went wrong")
249+ else {
250+ let $t083808438 = checkNFTInfo(nftId)
251+ let isValidNFT = $t083808438._1
252+ let artId = $t083808438._2
253+ let creatorAddr = $t083808438._3
254+ if (!(isValidNFT))
255+ then throw("Something went wrong")
256+ 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)]
257+ }
219258 }
220259
221260
222261
223262 @Callable(i)
224263 func updateSalePrice (nftid,price,asset) = {
225- let $t080528091 = idCallerDate(i)
226- let id = $t080528091._1
227- let caller = $t080528091._2
228- let date = $t080528091._3
264+ let $t089448983 = idCallerDate(i)
265+ let id = $t089448983._1
266+ let caller = $t089448983._2
267+ let date = $t089448983._3
229268 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
230269 if ((saleOwner != caller))
231270 then throw("You don't own this NFT")
233272 let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid))
234273 if ((saleStatus != "OPEN"))
235274 then throw("Sale not active")
236- else {
237- let creatorAddr = split(getArtStrByK(keyNFTData(nftid)), "_")[6]
238- let saleInfo = split(getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus)), "_")
275+ else if (!(acceptedAssetIds(asset)))
276+ 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)), "_")
239280 [StringEntry((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))]
240- }
281+ }
241282 }
242283 }
243284
245286
246287 @Callable(i)
247288 func cancelSale (nftid) = {
248- let $t090599098 = idCallerDate(i)
249- let id = $t090599098._1
250- let caller = $t090599098._2
251- let date = $t090599098._3
289+ let $t098849923 = idCallerDate(i)
290+ let id = $t098849923._1
291+ let caller = $t098849923._2
292+ let date = $t098849923._3
252293 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
253294 if ((saleOwner != caller))
254295 then throw("You don't own this NFT")
268309
269310 @Callable(i)
270311 func buyNFT (nftid) = {
271- let $t01024410315 = idCallerDate(i)
272- let id = $t01024410315._1
273- let caller = $t01024410315._2
274- let date = $t01024410315._3
312+ let $t01106911108 = idCallerDate(i)
313+ let id = $t01106911108._1
314+ let caller = $t01106911108._2
315+ let date = $t01106911108._3
275316 let saleOwner = getSaleOwnerAndStatus(nftid)
276- let $t01037010428 = checkNFTInfo(nftid)
277- let isValidNFT = $t01037010428._1
278- let artId = $t01037010428._2
279- let creatorAddr = $t01037010428._3
317+ let $t01116211220 = checkNFTInfo(nftid)
318+ let isValidNFT = $t01116211220._1
319+ let artId = $t01116211220._2
320+ let creatorAddr = $t01116211220._3
280321 if (!(isValidNFT))
281322 then throw("Something went wrong")
282323 else {
288329 if ((parseInt(saleInfoArray[1]) == 0))
289330 then throw("Offer only")
290331 else {
291- let $t01076310799 = isPayment(i)
292- let payment = $t01076310799._1
293- let amount = $t01076310799._2
332+ let $t01155411590 = isPayment(i)
333+ let payment = $t01155411590._1
334+ let amount = $t01155411590._2
294335 let paymentAssetStr = if (isDefined(payment.assetId))
295336 then toBase58String(value(payment.assetId))
296337 else ""
302343 let amountForSign = fraction(amount, signCut, 100)
303344 let amountForCreator = fraction(amount, creatorCut, 100)
304345 let amountForOwner = (amount - (amountForSign + amountForCreator))
305- let $t01130811436 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller)
306- let signFee = $t01130811436._1
307- let creatorFee = $t01130811436._2
308- let ownerFee = $t01130811436._3
309- let collectorFee = $t01130811436._4
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
310351 [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]
311352 }
312353 }
318359
319360 @Callable(i)
320361 func setOffer (nftid) = {
321- let $t01191811960 = idCallerDate(i)
322- let id = $t01191811960._1
323- let offerOwner = $t01191811960._2
324- let date = $t01191811960._3
325- let $t01196512001 = isPayment(i)
326- let payment = $t01196512001._1
327- let amount = $t01196512001._2
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
328369 let assetId = if (!(isDefined(payment.assetId)))
329370 then "WAVES"
330371 else toBase58String(value(payment.assetId))
331372 if (!(acceptedAssetIds(assetId)))
332373 then throw("asset not accepted")
333374 else {
334- let $t01218712245 = checkNFTInfo(nftid)
335- let isValidNFT = $t01218712245._1
336- let artId = $t01218712245._2
337- let creatorAddr = $t01218712245._3
375+ let $t01298113039 = checkNFTInfo(nftid)
376+ let isValidNFT = $t01298113039._1
377+ let artId = $t01298113039._2
378+ let creatorAddr = $t01298113039._3
338379 if (!(isValidNFT))
339380 then throw("Something went wrong")
340381 else {
348389
349390 @Callable(i)
350391 func acceptOffer (nftid,offerId,offerOwner) = {
351- let $t01283612905 = idCallerDate(i)
352- let id = $t01283612905._1
353- let caller = $t01283612905._2
354- let date = $t01283612905._3
392+ let $t01363013699 = idCallerDate(i)
393+ let id = $t01363013699._1
394+ let caller = $t01363013699._2
395+ let date = $t01363013699._3
355396 let saleOwner = getSaleOwnerAndStatus(nftid)
356397 if ((caller != saleOwner))
357398 then throw("You cannot do this action")
361402 if ((bidValue == ""))
362403 then throw("Offer not found or not for sale")
363404 else {
364- let $t01322913287 = checkNFTInfo(nftid)
365- let isValidNFT = $t01322913287._1
366- let artId = $t01322913287._2
367- let creatorAddr = $t01322913287._3
405+ let $t01402314081 = checkNFTInfo(nftid)
406+ let isValidNFT = $t01402314081._1
407+ let artId = $t01402314081._2
408+ let creatorAddr = $t01402314081._3
368409 if (!(isValidNFT))
369410 then throw("Something went wrong")
370411 else {
374415 then throw("Sale Not found!")
375416 else {
376417 let saleValArr = split(saleValue, "_")
377- let $t01362213677 = getBidData(bidKey)
378- let bidDataArr = $t01362213677._1
379- let assetId = $t01362213677._2
380- let bidData = $t01362213677._3
418+ let $t01441614471 = getBidData(bidKey)
419+ let bidDataArr = $t01441614471._1
420+ let assetId = $t01441614471._2
421+ let bidData = $t01441614471._3
381422 let amount = value(parseInt(bidDataArr[1]))
382- let $t01373113858 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[6])
383- let signFee = $t01373113858._1
384- let creatorFee = $t01373113858._2
385- let ownerFee = $t01373113858._3
386- let collectorFee = $t01373113858._4
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
387428 [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]
388429 }
389430 }
395436
396437 @Callable(i)
397438 func cancelOffer (nftid,offerId,saleOwner) = {
398- let $t01450714568 = idCallerDate(i)
399- let id = $t01450714568._1
400- let caller = $t01450714568._2
401- let date = $t01450714568._3
439+ let $t01530115362 = idCallerDate(i)
440+ let id = $t01530115362._1
441+ let caller = $t01530115362._2
442+ let date = $t01530115362._3
402443 let bidKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
403- let $t01464514700 = getBidData(bidKey)
404- let bidDataArr = $t01464514700._1
405- let assetId = $t01464514700._2
406- let bidData = $t01464514700._3
444+ let $t01543915494 = getBidData(bidKey)
445+ let bidDataArr = $t01543915494._1
446+ let assetId = $t01543915494._2
447+ let bidData = $t01543915494._3
407448 [DeleteEntry((bidKey + "_OPEN")), StringEntry((bidKey + "_CANCELLED"), ((((bidData + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
408449 }
409450
411452
412453 @Callable(i)
413454 func makeRequest (artId,creatorAddr) = {
414- let $t01501515059 = idCallerDate(i)
415- let id = $t01501515059._1
416- let requestOwner = $t01501515059._2
417- let date = $t01501515059._3
418- let $t01506415100 = isPayment(i)
419- let payment = $t01506415100._1
420- let amount = $t01506415100._2
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
421462 let assetId = if (!(isDefined(payment.assetId)))
422463 then "WAVES"
423464 else toBase58String(value(payment.assetId))
435476
436477 @Callable(i)
437478 func fillRequest (artId,requestOwner,offerId) = {
438- let $t01587515917 = idCallerDate(i)
439- let id = $t01587515917._1
440- let saleOwner = $t01587515917._2
441- let date = $t01587515917._3
442- let $t01592215966 = isPayment(i)
443- let payment = $t01592215966._1
444- let amountAttached = $t01592215966._2
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
445486 let NFTid = if (if (isDefined(payment.assetId))
446487 then isSignArtNFT(value(payment.assetId))
447488 else false)
458499 then throw("This NFT don't match the requested artwork")
459500 else {
460501 let amount = value(parseInt(requestData[1]))
461- let $t01668616861 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4])
462- let signFee = $t01668616861._1
463- let creatorFee = $t01668616861._2
464- let ownerFee = $t01668616861._3
465- let collectorFee = $t01668616861._4
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
466507 [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]
467508 }
468509 }
472513
473514 @Callable(i)
474515 func cancelRequest (artId,creatorAddr,requestId) = {
475- let $t01732117365 = idCallerDate(i)
476- let id = $t01732117365._1
477- let requestOwner = $t01732117365._2
478- let date = $t01732117365._3
516+ let $t01812518169 = idCallerDate(i)
517+ let id = $t01812518169._1
518+ let requestOwner = $t01812518169._2
519+ let date = $t01812518169._3
479520 let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId)
480521 let requestData = getStrByK((requesDataKey + "_OPEN"))
481522 if ((size(requestData) == 0))
487528 }
488529
489530
490-
491-@Callable(i)
492-func deleteEntry (entry) = {
493- let caller = toString(addressFromPublicKey(i.callerPublicKey))
494- if ((caller == chris))
495- then [DeleteEntry(entry)]
496- else throw("no")
497- }
498-
499-
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
69+
70+func getIntByKFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle")
71+
72+
73+let currentCertificationPrice = getIntByKFromOracle(("certification_fee_" + toBase58String(signAssetId)))
6974
7075 func idCallerDate (i) = if (!(dappRunning))
7176 then throw(maintenanceMSG)
7277 else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
7378
7479
7580 func isPayment (i) = if ((size(i.payments) == 0))
7681 then throw("No payment attached")
7782 else {
7883 let payment = value(i.payments[0])
7984 let amount = value(payment.amount)
8085 $Tuple2(payment, amount)
8186 }
8287
8388
8489 func isSignArtNFT (id) = {
8590 let assetDetails = value(assetInfo(id))
8691 if (if (if (if ((assetDetails.quantity != 1))
8792 then true
8893 else (assetDetails.decimals != 0))
8994 then true
9095 else (assetDetails.reissuable != false))
9196 then true
9297 else (assetDetails.issuer != artworksDapp))
9398 then false
9499 else true
95100 }
96101
97102
98103 func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId)))
99104 then (assetId != toBase58String(wavesAssetId))
100105 else false)
101106 then (assetId != "WAVES")
102107 else false)
103108 then (assetId != toBase58String(usdnAssetId))
104109 else false)
105110 then false
106111 else true
107112
108113
109114 func getBidAssetId (assetId) = if ((assetId == "WAVES"))
110115 then unit
111116 else fromBase58String(assetId)
112117
113118
114119 func getSaleOwnerAndStatus (nftid) = {
115120 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
116121 if ((size(saleOwner) == 0))
117122 then throw("NFT not found")
118123 else {
119124 let saleStatus = getStrByK(((("sale2nd_status_" + saleOwner) + "_") + nftid))
120125 if ((saleStatus != "OPEN"))
121126 then throw("NFT not for sale")
122127 else saleOwner
123128 }
124129 }
125130
126131
127132 func getBidData (key) = {
128133 let bidData = getStrByK((key + "_OPEN"))
129134 if ((bidData == ""))
130135 then throw("Offer not found")
131136 else {
132137 let bidDataArr = split(bidData, "_")
133138 let assetId = getBidAssetId(bidDataArr[2])
134139 $Tuple3(bidDataArr, assetId, bidData)
135140 }
136141 }
137142
138143
139144 func checkArtStatus (addr,id) = {
140145 let artStatus = getArtStrByK(keyFlag(addr, id))
141146 if (if ((artStatus == artIllegal))
142147 then true
143148 else (artStatus == artSuspended))
144149 then throw(("Original Artwork flagged as " + artStatus))
145150 else true
146151 }
147152
148153
149154 func checkArtistStatus (addr) = {
150155 let artistStatus = getUserStrByK(keyUserStatus(addr))
151156 if (containsElement([userSuspended, userRemoved], artistStatus))
152157 then throw(("Original Artist " + artistStatus))
153158 else true
154159 }
155160
156161
157162 func checkNFTInfo (assetId) = {
158163 let nftData = split(getArtStrByK(keyNFTData(assetId)), "_")
159164 let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5]))
160165 if ((size(artSignID) == 0))
161166 then throw("Artwork not found on SIGN Art")
162167 else if (if (!(checkArtStatus(nftData[6], nftData[5])))
163168 then !(checkArtistStatus(nftData[6]))
164169 else false)
165170 then $Tuple3(false, nftData[5], nftData[6])
166171 else $Tuple3(true, nftData[5], nftData[6])
167172 }
168173
169174
170175 func checkARTExist (artId,creatorAddr) = {
171176 let artSignID = getArtStrByK(keySignID(creatorAddr, artId))
172177 if ((size(artSignID) == 0))
173178 then throw("Artwork not found on SIGN Art")
174179 else if (if (!(checkArtStatus(creatorAddr, artId)))
175180 then !(checkArtistStatus(creatorAddr))
176181 else false)
177182 then false
178183 else true
179184 }
180185
181186
182187 func setTransfers (amount,assetId,nftid,creatorAddr,saleOwner,caller) = {
183188 let amountForSign = fraction(amount, signCut, 100)
184189 let amountForCreator = fraction(amount, creatorCut, 100)
185190 let amountForOwner = (amount - (amountForSign + amountForCreator))
186191 let signFee = ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId)
187192 let creatorFee = ScriptTransfer(Address(fromBase58String(creatorAddr)), amountForCreator, assetId)
188193 let ownerFee = ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId)
189194 let collectorFee = ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))
190195 $Tuple4(signFee, creatorFee, ownerFee, collectorFee)
191196 }
192197
193198
199+func validateMinSell (assetId,price) = {
200+ let minSellWaves = if (unitTest)
201+ then 10
202+ else getIntByKFromOracle("waves_min_sell")
203+ let minSellUsdn = 1000000
204+ let minSellSign = if (unitTest)
205+ then 1
206+ else (currentCertificationPrice * 2)
207+ if (if (if (if (if ((assetId == toBase58String(usdnAssetId)))
208+ then (minSellUsdn > price)
209+ else false)
210+ then (price != 0)
211+ else false)
212+ then true
213+ else if (if ((assetId == toBase58String(signAssetId)))
214+ then (minSellSign > price)
215+ else false)
216+ then (price != 0)
217+ else false)
218+ then true
219+ else if (if (if ((assetId == toBase58String(wavesAssetId)))
220+ then true
221+ else (assetId == "WAVES"))
222+ then (minSellWaves > price)
223+ else false)
224+ then (price != 0)
225+ else false)
226+ then throw("Wrong minimum sell price")
227+ else true
228+ }
229+
230+
194231 @Callable(i)
195232 func sellNFT (price,asset) = {
196- let $t071067145 = idCallerDate(i)
197- let id = $t071067145._1
198- let caller = $t071067145._2
199- let date = $t071067145._3
200- let $t071507186 = isPayment(i)
201- let payment = $t071507186._1
202- let amount = $t071507186._2
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
203240 let nftId = if (if (isDefined(payment.assetId))
204241 then isSignArtNFT(value(payment.assetId))
205242 else false)
206243 then toBase58String(value(payment.assetId))
207244 else throw("Only SIGN Art NFT accepted.")
208245 if (!(acceptedAssetIds(asset)))
209246 then throw("Only SIGN, USDN or WAVES accepted")
210- else {
211- let $t074877545 = checkNFTInfo(nftId)
212- let isValidNFT = $t074877545._1
213- let artId = $t074877545._2
214- let creatorAddr = $t074877545._3
215- if (!(isValidNFT))
216- then throw("Something went wrong")
217- 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)]
218- }
247+ else if (!(validateMinSell(asset, price)))
248+ then throw("Something went wrong")
249+ else {
250+ let $t083808438 = checkNFTInfo(nftId)
251+ let isValidNFT = $t083808438._1
252+ let artId = $t083808438._2
253+ let creatorAddr = $t083808438._3
254+ if (!(isValidNFT))
255+ then throw("Something went wrong")
256+ 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)]
257+ }
219258 }
220259
221260
222261
223262 @Callable(i)
224263 func updateSalePrice (nftid,price,asset) = {
225- let $t080528091 = idCallerDate(i)
226- let id = $t080528091._1
227- let caller = $t080528091._2
228- let date = $t080528091._3
264+ let $t089448983 = idCallerDate(i)
265+ let id = $t089448983._1
266+ let caller = $t089448983._2
267+ let date = $t089448983._3
229268 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
230269 if ((saleOwner != caller))
231270 then throw("You don't own this NFT")
232271 else {
233272 let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid))
234273 if ((saleStatus != "OPEN"))
235274 then throw("Sale not active")
236- else {
237- let creatorAddr = split(getArtStrByK(keyNFTData(nftid)), "_")[6]
238- let saleInfo = split(getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus)), "_")
275+ else if (!(acceptedAssetIds(asset)))
276+ 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)), "_")
239280 [StringEntry((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))]
240- }
281+ }
241282 }
242283 }
243284
244285
245286
246287 @Callable(i)
247288 func cancelSale (nftid) = {
248- let $t090599098 = idCallerDate(i)
249- let id = $t090599098._1
250- let caller = $t090599098._2
251- let date = $t090599098._3
289+ let $t098849923 = idCallerDate(i)
290+ let id = $t098849923._1
291+ let caller = $t098849923._2
292+ let date = $t098849923._3
252293 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
253294 if ((saleOwner != caller))
254295 then throw("You don't own this NFT")
255296 else {
256297 let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid))
257298 if ((saleStatus != "OPEN"))
258299 then throw("Sale not active")
259300 else {
260301 let creatorAddr = split(getArtStrByK(keyNFTData(nftid)), "_")[6]
261302 let saleInfo = getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus))
262303 [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))]
263304 }
264305 }
265306 }
266307
267308
268309
269310 @Callable(i)
270311 func buyNFT (nftid) = {
271- let $t01024410315 = idCallerDate(i)
272- let id = $t01024410315._1
273- let caller = $t01024410315._2
274- let date = $t01024410315._3
312+ let $t01106911108 = idCallerDate(i)
313+ let id = $t01106911108._1
314+ let caller = $t01106911108._2
315+ let date = $t01106911108._3
275316 let saleOwner = getSaleOwnerAndStatus(nftid)
276- let $t01037010428 = checkNFTInfo(nftid)
277- let isValidNFT = $t01037010428._1
278- let artId = $t01037010428._2
279- let creatorAddr = $t01037010428._3
317+ let $t01116211220 = checkNFTInfo(nftid)
318+ let isValidNFT = $t01116211220._1
319+ let artId = $t01116211220._2
320+ let creatorAddr = $t01116211220._3
280321 if (!(isValidNFT))
281322 then throw("Something went wrong")
282323 else {
283324 let saleInfo = getStrByK((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN"))
284325 if ((size(saleInfo) == 0))
285326 then throw("Sale Not found!")
286327 else {
287328 let saleInfoArray = split(saleInfo, "_")
288329 if ((parseInt(saleInfoArray[1]) == 0))
289330 then throw("Offer only")
290331 else {
291- let $t01076310799 = isPayment(i)
292- let payment = $t01076310799._1
293- let amount = $t01076310799._2
332+ let $t01155411590 = isPayment(i)
333+ let payment = $t01155411590._1
334+ let amount = $t01155411590._2
294335 let paymentAssetStr = if (isDefined(payment.assetId))
295336 then toBase58String(value(payment.assetId))
296337 else ""
297338 if (if ((saleInfoArray[1] != toString(amount)))
298339 then true
299340 else (saleInfoArray[2] != paymentAssetStr))
300341 then throw("Payment infos don't match.")
301342 else {
302343 let amountForSign = fraction(amount, signCut, 100)
303344 let amountForCreator = fraction(amount, creatorCut, 100)
304345 let amountForOwner = (amount - (amountForSign + amountForCreator))
305- let $t01130811436 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller)
306- let signFee = $t01130811436._1
307- let creatorFee = $t01130811436._2
308- let ownerFee = $t01130811436._3
309- let collectorFee = $t01130811436._4
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
310351 [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]
311352 }
312353 }
313354 }
314355 }
315356 }
316357
317358
318359
319360 @Callable(i)
320361 func setOffer (nftid) = {
321- let $t01191811960 = idCallerDate(i)
322- let id = $t01191811960._1
323- let offerOwner = $t01191811960._2
324- let date = $t01191811960._3
325- let $t01196512001 = isPayment(i)
326- let payment = $t01196512001._1
327- let amount = $t01196512001._2
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
328369 let assetId = if (!(isDefined(payment.assetId)))
329370 then "WAVES"
330371 else toBase58String(value(payment.assetId))
331372 if (!(acceptedAssetIds(assetId)))
332373 then throw("asset not accepted")
333374 else {
334- let $t01218712245 = checkNFTInfo(nftid)
335- let isValidNFT = $t01218712245._1
336- let artId = $t01218712245._2
337- let creatorAddr = $t01218712245._3
375+ let $t01298113039 = checkNFTInfo(nftid)
376+ let isValidNFT = $t01298113039._1
377+ let artId = $t01298113039._2
378+ let creatorAddr = $t01298113039._3
338379 if (!(isValidNFT))
339380 then throw("Something went wrong")
340381 else {
341382 let saleOwner = getSaleOwnerAndStatus(nftid)
342383 [StringEntry((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + id) + "_OPEN"), ((((((((((((((toString(date) + "_") + toString(amount)) + "_") + assetId) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_") + offerOwner) + "_") + id))]
343384 }
344385 }
345386 }
346387
347388
348389
349390 @Callable(i)
350391 func acceptOffer (nftid,offerId,offerOwner) = {
351- let $t01283612905 = idCallerDate(i)
352- let id = $t01283612905._1
353- let caller = $t01283612905._2
354- let date = $t01283612905._3
392+ let $t01363013699 = idCallerDate(i)
393+ let id = $t01363013699._1
394+ let caller = $t01363013699._2
395+ let date = $t01363013699._3
355396 let saleOwner = getSaleOwnerAndStatus(nftid)
356397 if ((caller != saleOwner))
357398 then throw("You cannot do this action")
358399 else {
359400 let bidKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
360401 let bidValue = getStrByK((bidKey + "_OPEN"))
361402 if ((bidValue == ""))
362403 then throw("Offer not found or not for sale")
363404 else {
364- let $t01322913287 = checkNFTInfo(nftid)
365- let isValidNFT = $t01322913287._1
366- let artId = $t01322913287._2
367- let creatorAddr = $t01322913287._3
405+ let $t01402314081 = checkNFTInfo(nftid)
406+ let isValidNFT = $t01402314081._1
407+ let artId = $t01402314081._2
408+ let creatorAddr = $t01402314081._3
368409 if (!(isValidNFT))
369410 then throw("Something went wrong")
370411 else {
371412 let saleKey = ((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr)
372413 let saleValue = getStrByK((saleKey + "_OPEN"))
373414 if ((size(saleValue) == 0))
374415 then throw("Sale Not found!")
375416 else {
376417 let saleValArr = split(saleValue, "_")
377- let $t01362213677 = getBidData(bidKey)
378- let bidDataArr = $t01362213677._1
379- let assetId = $t01362213677._2
380- let bidData = $t01362213677._3
418+ let $t01441614471 = getBidData(bidKey)
419+ let bidDataArr = $t01441614471._1
420+ let assetId = $t01441614471._2
421+ let bidData = $t01441614471._3
381422 let amount = value(parseInt(bidDataArr[1]))
382- let $t01373113858 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[6])
383- let signFee = $t01373113858._1
384- let creatorFee = $t01373113858._2
385- let ownerFee = $t01373113858._3
386- let collectorFee = $t01373113858._4
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
387428 [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]
388429 }
389430 }
390431 }
391432 }
392433 }
393434
394435
395436
396437 @Callable(i)
397438 func cancelOffer (nftid,offerId,saleOwner) = {
398- let $t01450714568 = idCallerDate(i)
399- let id = $t01450714568._1
400- let caller = $t01450714568._2
401- let date = $t01450714568._3
439+ let $t01530115362 = idCallerDate(i)
440+ let id = $t01530115362._1
441+ let caller = $t01530115362._2
442+ let date = $t01530115362._3
402443 let bidKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
403- let $t01464514700 = getBidData(bidKey)
404- let bidDataArr = $t01464514700._1
405- let assetId = $t01464514700._2
406- let bidData = $t01464514700._3
444+ let $t01543915494 = getBidData(bidKey)
445+ let bidDataArr = $t01543915494._1
446+ let assetId = $t01543915494._2
447+ let bidData = $t01543915494._3
407448 [DeleteEntry((bidKey + "_OPEN")), StringEntry((bidKey + "_CANCELLED"), ((((bidData + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
408449 }
409450
410451
411452
412453 @Callable(i)
413454 func makeRequest (artId,creatorAddr) = {
414- let $t01501515059 = idCallerDate(i)
415- let id = $t01501515059._1
416- let requestOwner = $t01501515059._2
417- let date = $t01501515059._3
418- let $t01506415100 = isPayment(i)
419- let payment = $t01506415100._1
420- let amount = $t01506415100._2
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
421462 let assetId = if (!(isDefined(payment.assetId)))
422463 then "WAVES"
423464 else toBase58String(value(payment.assetId))
424465 if (!(acceptedAssetIds(assetId)))
425466 then throw("asset not accepted")
426467 else {
427468 let isValidART = checkARTExist(artId, creatorAddr)
428469 if (!(isValidART))
429470 then throw("Something went wrong")
430471 else [StringEntry((((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_") + artId) + "_") + requestOwner) + "_") + id))]
431472 }
432473 }
433474
434475
435476
436477 @Callable(i)
437478 func fillRequest (artId,requestOwner,offerId) = {
438- let $t01587515917 = idCallerDate(i)
439- let id = $t01587515917._1
440- let saleOwner = $t01587515917._2
441- let date = $t01587515917._3
442- let $t01592215966 = isPayment(i)
443- let payment = $t01592215966._1
444- let amountAttached = $t01592215966._2
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
445486 let NFTid = if (if (isDefined(payment.assetId))
446487 then isSignArtNFT(value(payment.assetId))
447488 else false)
448489 then payment.assetId
449490 else throw("No NFT found")
450491 let NFTdata = split(getArtStrByK(("nft_" + toBase58String(value(NFTid)))), "_")
451492 if ((size(NFTdata) == 0))
452493 then throw("No NFT found")
453494 else {
454495 let requestData = split(getStrByK((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), "_")
455496 if ((size(requestData) == 1))
456497 then throw("No request found")
457498 else if ((requestData[3] != NFTdata[5]))
458499 then throw("This NFT don't match the requested artwork")
459500 else {
460501 let amount = value(parseInt(requestData[1]))
461- let $t01668616861 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4])
462- let signFee = $t01668616861._1
463- let creatorFee = $t01668616861._2
464- let ownerFee = $t01668616861._3
465- let collectorFee = $t01668616861._4
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
466507 [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]
467508 }
468509 }
469510 }
470511
471512
472513
473514 @Callable(i)
474515 func cancelRequest (artId,creatorAddr,requestId) = {
475- let $t01732117365 = idCallerDate(i)
476- let id = $t01732117365._1
477- let requestOwner = $t01732117365._2
478- let date = $t01732117365._3
516+ let $t01812518169 = idCallerDate(i)
517+ let id = $t01812518169._1
518+ let requestOwner = $t01812518169._2
519+ let date = $t01812518169._3
479520 let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId)
480521 let requestData = getStrByK((requesDataKey + "_OPEN"))
481522 if ((size(requestData) == 0))
482523 then throw("Request not found")
483524 else {
484525 let requestDataArr = split(requestData, "_")
485526 [DeleteEntry((requesDataKey + "_OPEN")), StringEntry((((((requesDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((requestData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(requestOwner)), parseIntValue(requestDataArr[1]), fromBase58String(requestDataArr[2]))]
486527 }
487528 }
488529
489530
490-
491-@Callable(i)
492-func deleteEntry (entry) = {
493- let caller = toString(addressFromPublicKey(i.callerPublicKey))
494- if ((caller == chris))
495- then [DeleteEntry(entry)]
496- else throw("no")
497- }
498-
499-

github/deemru/w8io/026f985 
97.10 ms