tx · CYTEBYTEfs542GF9Vw2f1z6b6kdiGhASxfJAK6bhqmPH 3MqfdyT9j2zFTipyF1rCU1h4zK2ya78uE7U: -0.01400000 Waves 2021.06.04 13:54 [1555539] smart account 3MqfdyT9j2zFTipyF1rCU1h4zK2ya78uE7U > SELF 0.00000000 Waves
{ "type": 13, "id": "CYTEBYTEfs542GF9Vw2f1z6b6kdiGhASxfJAK6bhqmPH", "fee": 1400000, "feeAssetId": null, "timestamp": 1622804083662, "version": 2, "chainId": 84, "sender": "3MqfdyT9j2zFTipyF1rCU1h4zK2ya78uE7U", "senderPublicKey": "2c2PB7n2qxoCMWyizek5v76mM3GFmZ2CykxKxK7rJet5", "proofs": [ "2nyCRp16rjfapG89tjPcVZATHgHbnnpuGNuEC8rEHqhVxQ9zNbUGZCG4mvf86U7R5WNb9s43QcwBwThVCz37FUxo" ], "script": "base64:AAIEAAAAAAAAAEUIAhIECgIBCBIFCgMIAQgSAwoBCBIDCgEIEgMKAQgSBQoDCAgIEgUKAwgICBIECgIICBIFCgMICAgSBQoDCAgIEgMKAQgAAAAoAAAAAAh1bml0VGVzdAcAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAIc2lnbkRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAADGFydHdvcmtzRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkJ5bmZiWEMyS2FzdFV4aHVrY01VYUU1OEs5Y0JkQjlVWQAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAh1c2VyRGFwcAMFAAAACHVuaXRUZXN0CQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNd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": 1555539, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BEtPiP3gdMutdAUwKqEgAiVhAKEf4qsGWZ8FV1y1JY6d Next: A8sP2kkUQ3VKnHSWmbzKmXSGdE8FsK2JXxg8dUR7Ebcs Diff:
Old | New | Differences | |
---|---|---|---|
295 | 295 | then (saleInfoArray[2] != "") | |
296 | 296 | else false) | |
297 | 297 | then throw("Payment infos don't match.") | |
298 | - | else if (if ((saleInfoArray[1] != toString(amount))) | |
299 | - | then true | |
300 | - | else if ((payment.assetId == unit)) | |
301 | - | then (saleInfoArray[2] != toBase58String(value(payment.assetId))) | |
302 | - | else false) | |
303 | - | then throw("Payment infos don't match.") | |
304 | - | else { | |
305 | - | let amountForSign = fraction(amount, signCut, 100) | |
306 | - | let amountForCreator = fraction(amount, creatorCut, 100) | |
307 | - | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
308 | - | let $t01161511743 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller) | |
309 | - | let signFee = $t01161511743._1 | |
310 | - | let creatorFee = $t01161511743._2 | |
311 | - | let ownerFee = $t01161511743._3 | |
312 | - | let collectorFee = $t01161511743._4 | |
298 | + | else { | |
299 | + | let amountForSign = fraction(amount, signCut, 100) | |
300 | + | let amountForCreator = fraction(amount, creatorCut, 100) | |
301 | + | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
302 | + | let $t01143811566 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller) | |
303 | + | let signFee = $t01143811566._1 | |
304 | + | let creatorFee = $t01143811566._2 | |
305 | + | let ownerFee = $t01143811566._3 | |
306 | + | let collectorFee = $t01143811566._4 | |
313 | 307 | [DeleteEntry((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_to_") + caller) + "_") + saleInfoArray[6])), signFee, creatorFee, ownerFee, collectorFee] | |
314 | - | ||
308 | + | } | |
315 | 309 | } | |
316 | 310 | } | |
317 | 311 | } | |
321 | 315 | ||
322 | 316 | @Callable(i) | |
323 | 317 | func setOffer (nftid) = { | |
324 | - | let $ | |
325 | - | let id = $ | |
326 | - | let offerOwner = $ | |
327 | - | let date = $ | |
328 | - | let $ | |
329 | - | let payment = $ | |
330 | - | let amount = $ | |
318 | + | let $t01271112753 = idCallerDate(i) | |
319 | + | let id = $t01271112753._1 | |
320 | + | let offerOwner = $t01271112753._2 | |
321 | + | let date = $t01271112753._3 | |
322 | + | let $t01275812794 = isPayment(i) | |
323 | + | let payment = $t01275812794._1 | |
324 | + | let amount = $t01275812794._2 | |
331 | 325 | let assetId = if (!(isDefined(payment.assetId))) | |
332 | 326 | then "WAVES" | |
333 | 327 | else toBase58String(value(payment.assetId)) | |
334 | 328 | if (!(acceptedAssetIds(assetId))) | |
335 | 329 | then throw("asset not accepted") | |
336 | 330 | else { | |
337 | - | let $ | |
338 | - | let isValidNFT = $ | |
339 | - | let artId = $ | |
340 | - | let creatorAddr = $ | |
331 | + | let $t01298013038 = checkNFTInfo(nftid) | |
332 | + | let isValidNFT = $t01298013038._1 | |
333 | + | let artId = $t01298013038._2 | |
334 | + | let creatorAddr = $t01298013038._3 | |
341 | 335 | if (!(isValidNFT)) | |
342 | 336 | then throw("Something went wrong") | |
343 | 337 | else { | |
351 | 345 | ||
352 | 346 | @Callable(i) | |
353 | 347 | func acceptOffer (nftid,offerId,offerOwner) = { | |
354 | - | let $ | |
355 | - | let id = $ | |
356 | - | let caller = $ | |
357 | - | let date = $ | |
348 | + | let $t01359613666 = idCallerDate(i) | |
349 | + | let id = $t01359613666._1 | |
350 | + | let caller = $t01359613666._2 | |
351 | + | let date = $t01359613666._3 | |
358 | 352 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
359 | 353 | if ((caller != saleOwner)) | |
360 | 354 | then throw("You cannot do this action") | |
363 | 357 | if ((offerExist == "")) | |
364 | 358 | then throw("Offer not found or not for sale") | |
365 | 359 | else { | |
366 | - | let $ | |
367 | - | let isValidNFT = $ | |
368 | - | let artId = $ | |
369 | - | let creatorAddr = $ | |
360 | + | let $t01397114029 = checkNFTInfo(nftid) | |
361 | + | let isValidNFT = $t01397114029._1 | |
362 | + | let artId = $t01397114029._2 | |
363 | + | let creatorAddr = $t01397114029._3 | |
370 | 364 | if (!(isValidNFT)) | |
371 | 365 | then throw("Something went wrong") | |
372 | 366 | else { | |
375 | 369 | then throw("Sale Not found!") | |
376 | 370 | else { | |
377 | 371 | let bidDataKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
378 | - | let $ | |
379 | - | let bidDataArr = $ | |
380 | - | let assetId = $ | |
381 | - | let bidData = $ | |
372 | + | let $t01436514424 = getBidData(bidDataKey) | |
373 | + | let bidDataArr = $t01436514424._1 | |
374 | + | let assetId = $t01436514424._2 | |
375 | + | let bidData = $t01436514424._3 | |
382 | 376 | let amount = value(parseInt(bidDataArr[1])) | |
383 | - | let $ | |
384 | - | let signFee = $ | |
385 | - | let creatorFee = $ | |
386 | - | let ownerFee = $ | |
387 | - | let collectorFee = $ | |
377 | + | let $t01447814605 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[3]) | |
378 | + | let signFee = $t01447814605._1 | |
379 | + | let creatorFee = $t01447814605._2 | |
380 | + | let ownerFee = $t01447814605._3 | |
381 | + | let collectorFee = $t01447814605._4 | |
388 | 382 | [DeleteEntry((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")), DeleteEntry((bidDataKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_") + artId) + "_") + offerOwner) + "_") + offerId)), StringEntry((((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_to_") + offerOwner)), signFee, creatorFee, ownerFee, collectorFee] | |
389 | 383 | } | |
390 | 384 | } | |
396 | 390 | ||
397 | 391 | @Callable(i) | |
398 | 392 | func cancelOffer (nftid,offerId,saleOwner) = { | |
399 | - | let $ | |
400 | - | let id = $ | |
401 | - | let caller = $ | |
402 | - | let date = $ | |
393 | + | let $t01542515486 = idCallerDate(i) | |
394 | + | let id = $t01542515486._1 | |
395 | + | let caller = $t01542515486._2 | |
396 | + | let date = $t01542515486._3 | |
403 | 397 | let bidDataKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
404 | - | let $ | |
405 | - | let bidDataArr = $ | |
406 | - | let assetId = $ | |
407 | - | let bidData = $ | |
398 | + | let $t01556715626 = getBidData(bidDataKey) | |
399 | + | let bidDataArr = $t01556715626._1 | |
400 | + | let assetId = $t01556715626._2 | |
401 | + | let bidData = $t01556715626._3 | |
408 | 402 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
409 | 403 | } | |
410 | 404 | ||
412 | 406 | ||
413 | 407 | @Callable(i) | |
414 | 408 | func makeRequest (artId,creatorAddr) = { | |
415 | - | let $ | |
416 | - | let id = $ | |
417 | - | let requestOwner = $ | |
418 | - | let date = $ | |
419 | - | let $ | |
420 | - | let payment = $ | |
421 | - | let amount = $ | |
409 | + | let $t01596116005 = idCallerDate(i) | |
410 | + | let id = $t01596116005._1 | |
411 | + | let requestOwner = $t01596116005._2 | |
412 | + | let date = $t01596116005._3 | |
413 | + | let $t01601016046 = isPayment(i) | |
414 | + | let payment = $t01601016046._1 | |
415 | + | let amount = $t01601016046._2 | |
422 | 416 | let assetId = if (!(isDefined(payment.assetId))) | |
423 | 417 | then "WAVES" | |
424 | 418 | else toBase58String(value(payment.assetId)) | |
436 | 430 | ||
437 | 431 | @Callable(i) | |
438 | 432 | func fillRequest (artId,requestOwner,offerId) = { | |
439 | - | let $ | |
440 | - | let id = $ | |
441 | - | let saleOwner = $ | |
442 | - | let date = $ | |
443 | - | let $ | |
444 | - | let payment = $ | |
445 | - | let amountAttached = $ | |
433 | + | let $t01682116863 = idCallerDate(i) | |
434 | + | let id = $t01682116863._1 | |
435 | + | let saleOwner = $t01682116863._2 | |
436 | + | let date = $t01682116863._3 | |
437 | + | let $t01686816912 = isPayment(i) | |
438 | + | let payment = $t01686816912._1 | |
439 | + | let amountAttached = $t01686816912._2 | |
446 | 440 | let NFTid = if (if (isDefined(payment.assetId)) | |
447 | 441 | then isSignArtNFT(value(payment.assetId)) | |
448 | 442 | else false) | |
459 | 453 | then throw("This NFT don't match the requested artwork") | |
460 | 454 | else { | |
461 | 455 | let amount = value(parseInt(requestData[1])) | |
462 | - | let $ | |
463 | - | let signFee = $ | |
464 | - | let creatorFee = $ | |
465 | - | let ownerFee = $ | |
466 | - | let collectorFee = $ | |
456 | + | let $t01763217807 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4]) | |
457 | + | let signFee = $t01763217807._1 | |
458 | + | let creatorFee = $t01763217807._2 | |
459 | + | let ownerFee = $t01763217807._3 | |
460 | + | let collectorFee = $t01763217807._4 | |
467 | 461 | [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] | |
468 | 462 | } | |
469 | 463 | } | |
473 | 467 | ||
474 | 468 | @Callable(i) | |
475 | 469 | func cancelRequest (artId,creatorAddr,requestId) = { | |
476 | - | let $ | |
477 | - | let id = $ | |
478 | - | let requestOwner = $ | |
479 | - | let date = $ | |
470 | + | let $t01826718311 = idCallerDate(i) | |
471 | + | let id = $t01826718311._1 | |
472 | + | let requestOwner = $t01826718311._2 | |
473 | + | let date = $t01826718311._3 | |
480 | 474 | let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId) | |
481 | 475 | let requestData = getStrByK((requesDataKey + "_OPEN")) | |
482 | 476 | if ((size(requestData) == 0)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let unitTest = false | |
5 | 5 | ||
6 | 6 | let oracleFee = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
7 | 7 | ||
8 | 8 | let signDapp = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
9 | 9 | ||
10 | 10 | let artworksDapp = value(addressFromString("3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY")) | |
11 | 11 | ||
12 | 12 | let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
13 | 13 | ||
14 | 14 | let userDapp = if (unitTest) | |
15 | 15 | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
16 | 16 | else value(addressFromString("3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj")) | |
17 | 17 | ||
18 | 18 | let whitelistDapp = value(addressFromString("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq")) | |
19 | 19 | ||
20 | 20 | let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
21 | 21 | ||
22 | 22 | let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
23 | 23 | ||
24 | 24 | let wavesAssetId = base58'' | |
25 | 25 | ||
26 | 26 | let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
27 | 27 | ||
28 | 28 | let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
29 | 29 | ||
30 | 30 | let signCut = 3 | |
31 | 31 | ||
32 | 32 | let creatorCut = 10 | |
33 | 33 | ||
34 | 34 | let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true) | |
35 | 35 | ||
36 | 36 | let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "") | |
37 | 37 | ||
38 | 38 | let userSuspended = "SUSPENDED" | |
39 | 39 | ||
40 | 40 | let userRemoved = "REMOVED" | |
41 | 41 | ||
42 | 42 | let artIllegal = "ILLEGAL" | |
43 | 43 | ||
44 | 44 | let artSuspended = "SUSPENDED" | |
45 | 45 | ||
46 | 46 | func getUserStrByK (key) = valueOrElse(getString(userDapp, key), "Error") | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func getArtStrByK (key) = valueOrElse(getString(artworksDapp, key), "") | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func getStrByK (key) = valueOrElse(getString(this, key), "") | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func getIntByK (key) = valueOrElse(getInteger(this, key), 0) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func keyUserStatus (addr) = ("user_status_" + addr) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func keySignID (artistAddr,artId) = ((("art_signid_" + artId) + "_") + artistAddr) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func keyFlag (artistAddr,artId) = ((("art_flag_" + artId) + "_") + artistAddr) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func keyNFTData (id) = ("nft_" + id) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func idCallerDate (i) = if (!(dappRunning)) | |
71 | 71 | then throw(maintenanceMSG) | |
72 | 72 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func isPayment (i) = if ((size(i.payments) == 0)) | |
76 | 76 | then throw("No payment attached") | |
77 | 77 | else { | |
78 | 78 | let payment = value(i.payments[0]) | |
79 | 79 | let amount = value(payment.amount) | |
80 | 80 | $Tuple2(payment, amount) | |
81 | 81 | } | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func isSignArtNFT (id) = { | |
85 | 85 | let assetDetails = value(assetInfo(id)) | |
86 | 86 | if (if (if (if ((assetDetails.quantity != 1)) | |
87 | 87 | then true | |
88 | 88 | else (assetDetails.decimals != 0)) | |
89 | 89 | then true | |
90 | 90 | else (assetDetails.reissuable != false)) | |
91 | 91 | then true | |
92 | 92 | else (assetDetails.issuer != artworksDapp)) | |
93 | 93 | then false | |
94 | 94 | else true | |
95 | 95 | } | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId))) | |
99 | 99 | then (assetId != toBase58String(wavesAssetId)) | |
100 | 100 | else false) | |
101 | 101 | then (assetId != "WAVES") | |
102 | 102 | else false) | |
103 | 103 | then (assetId != toBase58String(usdnAssetId)) | |
104 | 104 | else false) | |
105 | 105 | then false | |
106 | 106 | else true | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
110 | 110 | then unit | |
111 | 111 | else fromBase58String(assetId) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func getSaleOwnerAndStatus (nftid) = { | |
115 | 115 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
116 | 116 | if ((size(saleOwner) == 0)) | |
117 | 117 | then throw("NFT not found") | |
118 | 118 | else { | |
119 | 119 | let saleStatus = getStrByK(((("sale2nd_status_" + saleOwner) + "_") + nftid)) | |
120 | 120 | if ((saleStatus != "OPEN")) | |
121 | 121 | then throw("NFT not for sale") | |
122 | 122 | else saleOwner | |
123 | 123 | } | |
124 | 124 | } | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func getBidData (key) = { | |
128 | 128 | let bidData = getStrByK((key + "_OPEN")) | |
129 | 129 | if ((bidData == "")) | |
130 | 130 | then throw("Offer not found") | |
131 | 131 | else { | |
132 | 132 | let bidDataArr = split(bidData, "_") | |
133 | 133 | let assetId = getBidAssetId(bidDataArr[2]) | |
134 | 134 | $Tuple3(bidDataArr, assetId, bidData) | |
135 | 135 | } | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func checkArtStatus (addr,id) = { | |
140 | 140 | let artStatus = getArtStrByK(keyFlag(addr, id)) | |
141 | 141 | if (if ((artStatus == artIllegal)) | |
142 | 142 | then true | |
143 | 143 | else (artStatus == artSuspended)) | |
144 | 144 | then throw(("Original Artwork flagged as " + artStatus)) | |
145 | 145 | else true | |
146 | 146 | } | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func checkArtistStatus (addr) = { | |
150 | 150 | let artistStatus = getUserStrByK(keyUserStatus(addr)) | |
151 | 151 | if (containsElement([userSuspended, userRemoved], artistStatus)) | |
152 | 152 | then throw(("Original Artist " + artistStatus)) | |
153 | 153 | else true | |
154 | 154 | } | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func checkNFTInfo (assetId) = { | |
158 | 158 | let nftData = split(getArtStrByK(keyNFTData(assetId)), "_") | |
159 | 159 | let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5])) | |
160 | 160 | if ((size(artSignID) == 0)) | |
161 | 161 | then throw("Artwork not found on SIGN Art") | |
162 | 162 | else if (if (!(checkArtStatus(nftData[6], nftData[5]))) | |
163 | 163 | then !(checkArtistStatus(nftData[6])) | |
164 | 164 | else false) | |
165 | 165 | then $Tuple3(false, nftData[5], nftData[6]) | |
166 | 166 | else $Tuple3(true, nftData[5], nftData[6]) | |
167 | 167 | } | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func checkARTExist (artId,creatorAddr) = { | |
171 | 171 | let artSignID = getArtStrByK(keySignID(creatorAddr, artId)) | |
172 | 172 | if ((size(artSignID) == 0)) | |
173 | 173 | then throw("Artwork not found on SIGN Art") | |
174 | 174 | else if (if (!(checkArtStatus(creatorAddr, artId))) | |
175 | 175 | then !(checkArtistStatus(creatorAddr)) | |
176 | 176 | else false) | |
177 | 177 | then false | |
178 | 178 | else true | |
179 | 179 | } | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func setTransfers (amount,assetId,nftid,creatorAddr,saleOwner,caller) = { | |
183 | 183 | let amountForSign = fraction(amount, signCut, 100) | |
184 | 184 | let amountForCreator = fraction(amount, creatorCut, 100) | |
185 | 185 | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
186 | 186 | let signFee = ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId) | |
187 | 187 | let creatorFee = ScriptTransfer(Address(fromBase58String(creatorAddr)), amountForCreator, assetId) | |
188 | 188 | let ownerFee = ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId) | |
189 | 189 | let collectorFee = ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid)) | |
190 | 190 | $Tuple4(signFee, creatorFee, ownerFee, collectorFee) | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | @Callable(i) | |
195 | 195 | func sellNFT (price,asset) = { | |
196 | 196 | let $t071147153 = idCallerDate(i) | |
197 | 197 | let id = $t071147153._1 | |
198 | 198 | let caller = $t071147153._2 | |
199 | 199 | let date = $t071147153._3 | |
200 | 200 | let $t071587194 = isPayment(i) | |
201 | 201 | let payment = $t071587194._1 | |
202 | 202 | let amount = $t071587194._2 | |
203 | 203 | let assetId = if (if (isDefined(payment.assetId)) | |
204 | 204 | then isSignArtNFT(value(payment.assetId)) | |
205 | 205 | else false) | |
206 | 206 | then payment.assetId | |
207 | 207 | else throw("Only SIGN Art NFT accepted.") | |
208 | 208 | if (!(acceptedAssetIds(asset))) | |
209 | 209 | then throw("Only SIGN, USDN or WAVES accepted") | |
210 | 210 | else { | |
211 | 211 | let $t074747557 = checkNFTInfo(toBase58String(value(assetId))) | |
212 | 212 | let isValidNFT = $t074747557._1 | |
213 | 213 | let artId = $t074747557._2 | |
214 | 214 | let creatorAddr = $t074747557._3 | |
215 | 215 | if (!(isValidNFT)) | |
216 | 216 | then throw("Something went wrong") | |
217 | 217 | else [StringEntry((((((("sale2nd_info_" + caller) + "_") + toBase58String(value(payment.assetId))) + "_") + creatorAddr) + "_OPEN"), ((((((((((((toString(date) + "_") + toString(price)) + "_") + asset) + "_") + toBase58String(value(payment.assetId))) + "_") + artId) + "_") + creatorAddr) + "_") + id)), StringEntry(((("sale2nd_status_" + caller) + "_") + toBase58String(value(payment.assetId))), "OPEN"), StringEntry(("current_owner_on_dapp_" + toBase58String(value(payment.assetId))), caller)] | |
218 | 218 | } | |
219 | 219 | } | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | ||
223 | 223 | @Callable(i) | |
224 | 224 | func updateSalePrice (nftid,price,asset) = { | |
225 | 225 | let $t083588397 = idCallerDate(i) | |
226 | 226 | let id = $t083588397._1 | |
227 | 227 | let caller = $t083588397._2 | |
228 | 228 | let date = $t083588397._3 | |
229 | 229 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
230 | 230 | if ((saleOwner != caller)) | |
231 | 231 | then throw("You don't own this NFT") | |
232 | 232 | else { | |
233 | 233 | let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid)) | |
234 | 234 | if ((saleStatus != "OPEN")) | |
235 | 235 | then throw("Sale not active") | |
236 | 236 | else { | |
237 | 237 | let creatorAddr = split(getArtStrByK(keyNFTData(nftid)), "_")[6] | |
238 | 238 | let saleInfo = split(getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus)), "_") | |
239 | 239 | [StringEntry((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))] | |
240 | 240 | } | |
241 | 241 | } | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | ||
246 | 246 | @Callable(i) | |
247 | 247 | func cancelSale (nftid) = { | |
248 | 248 | let $t093319370 = idCallerDate(i) | |
249 | 249 | let id = $t093319370._1 | |
250 | 250 | let caller = $t093319370._2 | |
251 | 251 | let date = $t093319370._3 | |
252 | 252 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
253 | 253 | if ((saleOwner != caller)) | |
254 | 254 | then throw("You don't own this NFT") | |
255 | 255 | else { | |
256 | 256 | let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid)) | |
257 | 257 | if ((saleStatus != "OPEN")) | |
258 | 258 | then throw("Sale not active") | |
259 | 259 | else { | |
260 | 260 | let creatorAddr = split(getArtStrByK(keyNFTData(nftid)), "_")[6] | |
261 | 261 | let saleInfo = getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus)) | |
262 | 262 | [DeleteEntry((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + caller) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + toString(date)) + "_") + id) + "_CANCELLED"), saleInfo), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))] | |
263 | 263 | } | |
264 | 264 | } | |
265 | 265 | } | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | ||
269 | 269 | @Callable(i) | |
270 | 270 | func buyNFT (nftid) = { | |
271 | 271 | let $t01049910570 = idCallerDate(i) | |
272 | 272 | let id = $t01049910570._1 | |
273 | 273 | let caller = $t01049910570._2 | |
274 | 274 | let date = $t01049910570._3 | |
275 | 275 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
276 | 276 | let $t01062510683 = checkNFTInfo(nftid) | |
277 | 277 | let isValidNFT = $t01062510683._1 | |
278 | 278 | let artId = $t01062510683._2 | |
279 | 279 | let creatorAddr = $t01062510683._3 | |
280 | 280 | if (!(isValidNFT)) | |
281 | 281 | then throw("Something went wrong") | |
282 | 282 | else { | |
283 | 283 | let saleInfo = getStrByK((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")) | |
284 | 284 | if ((size(saleInfo) == 0)) | |
285 | 285 | then throw("Sale Not found!") | |
286 | 286 | else { | |
287 | 287 | let saleInfoArray = split(saleInfo, "_") | |
288 | 288 | if ((parseInt(saleInfoArray[1]) == 0)) | |
289 | 289 | then throw("Offer only") | |
290 | 290 | else { | |
291 | 291 | let $t01101911055 = isPayment(i) | |
292 | 292 | let payment = $t01101911055._1 | |
293 | 293 | let amount = $t01101911055._2 | |
294 | 294 | if (if (!(isDefined(payment.assetId))) | |
295 | 295 | then (saleInfoArray[2] != "") | |
296 | 296 | else false) | |
297 | 297 | then throw("Payment infos don't match.") | |
298 | - | else if (if ((saleInfoArray[1] != toString(amount))) | |
299 | - | then true | |
300 | - | else if ((payment.assetId == unit)) | |
301 | - | then (saleInfoArray[2] != toBase58String(value(payment.assetId))) | |
302 | - | else false) | |
303 | - | then throw("Payment infos don't match.") | |
304 | - | else { | |
305 | - | let amountForSign = fraction(amount, signCut, 100) | |
306 | - | let amountForCreator = fraction(amount, creatorCut, 100) | |
307 | - | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
308 | - | let $t01161511743 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller) | |
309 | - | let signFee = $t01161511743._1 | |
310 | - | let creatorFee = $t01161511743._2 | |
311 | - | let ownerFee = $t01161511743._3 | |
312 | - | let collectorFee = $t01161511743._4 | |
298 | + | else { | |
299 | + | let amountForSign = fraction(amount, signCut, 100) | |
300 | + | let amountForCreator = fraction(amount, creatorCut, 100) | |
301 | + | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
302 | + | let $t01143811566 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller) | |
303 | + | let signFee = $t01143811566._1 | |
304 | + | let creatorFee = $t01143811566._2 | |
305 | + | let ownerFee = $t01143811566._3 | |
306 | + | let collectorFee = $t01143811566._4 | |
313 | 307 | [DeleteEntry((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_to_") + caller) + "_") + saleInfoArray[6])), signFee, creatorFee, ownerFee, collectorFee] | |
314 | - | ||
308 | + | } | |
315 | 309 | } | |
316 | 310 | } | |
317 | 311 | } | |
318 | 312 | } | |
319 | 313 | ||
320 | 314 | ||
321 | 315 | ||
322 | 316 | @Callable(i) | |
323 | 317 | func setOffer (nftid) = { | |
324 | - | let $ | |
325 | - | let id = $ | |
326 | - | let offerOwner = $ | |
327 | - | let date = $ | |
328 | - | let $ | |
329 | - | let payment = $ | |
330 | - | let amount = $ | |
318 | + | let $t01271112753 = idCallerDate(i) | |
319 | + | let id = $t01271112753._1 | |
320 | + | let offerOwner = $t01271112753._2 | |
321 | + | let date = $t01271112753._3 | |
322 | + | let $t01275812794 = isPayment(i) | |
323 | + | let payment = $t01275812794._1 | |
324 | + | let amount = $t01275812794._2 | |
331 | 325 | let assetId = if (!(isDefined(payment.assetId))) | |
332 | 326 | then "WAVES" | |
333 | 327 | else toBase58String(value(payment.assetId)) | |
334 | 328 | if (!(acceptedAssetIds(assetId))) | |
335 | 329 | then throw("asset not accepted") | |
336 | 330 | else { | |
337 | - | let $ | |
338 | - | let isValidNFT = $ | |
339 | - | let artId = $ | |
340 | - | let creatorAddr = $ | |
331 | + | let $t01298013038 = checkNFTInfo(nftid) | |
332 | + | let isValidNFT = $t01298013038._1 | |
333 | + | let artId = $t01298013038._2 | |
334 | + | let creatorAddr = $t01298013038._3 | |
341 | 335 | if (!(isValidNFT)) | |
342 | 336 | then throw("Something went wrong") | |
343 | 337 | else { | |
344 | 338 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
345 | 339 | [StringEntry((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + assetId) + "_") + artId) + "_") + offerOwner) + "_") + id))] | |
346 | 340 | } | |
347 | 341 | } | |
348 | 342 | } | |
349 | 343 | ||
350 | 344 | ||
351 | 345 | ||
352 | 346 | @Callable(i) | |
353 | 347 | func acceptOffer (nftid,offerId,offerOwner) = { | |
354 | - | let $ | |
355 | - | let id = $ | |
356 | - | let caller = $ | |
357 | - | let date = $ | |
348 | + | let $t01359613666 = idCallerDate(i) | |
349 | + | let id = $t01359613666._1 | |
350 | + | let caller = $t01359613666._2 | |
351 | + | let date = $t01359613666._3 | |
358 | 352 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
359 | 353 | if ((caller != saleOwner)) | |
360 | 354 | then throw("You cannot do this action") | |
361 | 355 | else { | |
362 | 356 | let offerExist = getStrByK((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) + "_OPEN")) | |
363 | 357 | if ((offerExist == "")) | |
364 | 358 | then throw("Offer not found or not for sale") | |
365 | 359 | else { | |
366 | - | let $ | |
367 | - | let isValidNFT = $ | |
368 | - | let artId = $ | |
369 | - | let creatorAddr = $ | |
360 | + | let $t01397114029 = checkNFTInfo(nftid) | |
361 | + | let isValidNFT = $t01397114029._1 | |
362 | + | let artId = $t01397114029._2 | |
363 | + | let creatorAddr = $t01397114029._3 | |
370 | 364 | if (!(isValidNFT)) | |
371 | 365 | then throw("Something went wrong") | |
372 | 366 | else { | |
373 | 367 | let saleInfo = getStrByK((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")) | |
374 | 368 | if ((size(saleInfo) == 0)) | |
375 | 369 | then throw("Sale Not found!") | |
376 | 370 | else { | |
377 | 371 | let bidDataKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
378 | - | let $ | |
379 | - | let bidDataArr = $ | |
380 | - | let assetId = $ | |
381 | - | let bidData = $ | |
372 | + | let $t01436514424 = getBidData(bidDataKey) | |
373 | + | let bidDataArr = $t01436514424._1 | |
374 | + | let assetId = $t01436514424._2 | |
375 | + | let bidData = $t01436514424._3 | |
382 | 376 | let amount = value(parseInt(bidDataArr[1])) | |
383 | - | let $ | |
384 | - | let signFee = $ | |
385 | - | let creatorFee = $ | |
386 | - | let ownerFee = $ | |
387 | - | let collectorFee = $ | |
377 | + | let $t01447814605 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[3]) | |
378 | + | let signFee = $t01447814605._1 | |
379 | + | let creatorFee = $t01447814605._2 | |
380 | + | let ownerFee = $t01447814605._3 | |
381 | + | let collectorFee = $t01447814605._4 | |
388 | 382 | [DeleteEntry((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")), DeleteEntry((bidDataKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftid)), DeleteEntry(("current_owner_on_dapp_" + nftid)), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_") + artId) + "_") + offerOwner) + "_") + offerId)), StringEntry((((((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_") + toString(date)) + "_") + id) + "_CLOSED"), ((((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(assetId))) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_to_") + offerOwner)), signFee, creatorFee, ownerFee, collectorFee] | |
389 | 383 | } | |
390 | 384 | } | |
391 | 385 | } | |
392 | 386 | } | |
393 | 387 | } | |
394 | 388 | ||
395 | 389 | ||
396 | 390 | ||
397 | 391 | @Callable(i) | |
398 | 392 | func cancelOffer (nftid,offerId,saleOwner) = { | |
399 | - | let $ | |
400 | - | let id = $ | |
401 | - | let caller = $ | |
402 | - | let date = $ | |
393 | + | let $t01542515486 = idCallerDate(i) | |
394 | + | let id = $t01542515486._1 | |
395 | + | let caller = $t01542515486._2 | |
396 | + | let date = $t01542515486._3 | |
403 | 397 | let bidDataKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
404 | - | let $ | |
405 | - | let bidDataArr = $ | |
406 | - | let assetId = $ | |
407 | - | let bidData = $ | |
398 | + | let $t01556715626 = getBidData(bidDataKey) | |
399 | + | let bidDataArr = $t01556715626._1 | |
400 | + | let assetId = $t01556715626._2 | |
401 | + | let bidData = $t01556715626._3 | |
408 | 402 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
409 | 403 | } | |
410 | 404 | ||
411 | 405 | ||
412 | 406 | ||
413 | 407 | @Callable(i) | |
414 | 408 | func makeRequest (artId,creatorAddr) = { | |
415 | - | let $ | |
416 | - | let id = $ | |
417 | - | let requestOwner = $ | |
418 | - | let date = $ | |
419 | - | let $ | |
420 | - | let payment = $ | |
421 | - | let amount = $ | |
409 | + | let $t01596116005 = idCallerDate(i) | |
410 | + | let id = $t01596116005._1 | |
411 | + | let requestOwner = $t01596116005._2 | |
412 | + | let date = $t01596116005._3 | |
413 | + | let $t01601016046 = isPayment(i) | |
414 | + | let payment = $t01601016046._1 | |
415 | + | let amount = $t01601016046._2 | |
422 | 416 | let assetId = if (!(isDefined(payment.assetId))) | |
423 | 417 | then "WAVES" | |
424 | 418 | else toBase58String(value(payment.assetId)) | |
425 | 419 | if (!(acceptedAssetIds(assetId))) | |
426 | 420 | then throw("asset not accepted") | |
427 | 421 | else { | |
428 | 422 | let isValidART = checkARTExist(artId, creatorAddr) | |
429 | 423 | if (!(isValidART)) | |
430 | 424 | then throw("Something went wrong") | |
431 | 425 | else [StringEntry((((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_") + artId) + "_") + requestOwner) + "_") + id))] | |
432 | 426 | } | |
433 | 427 | } | |
434 | 428 | ||
435 | 429 | ||
436 | 430 | ||
437 | 431 | @Callable(i) | |
438 | 432 | func fillRequest (artId,requestOwner,offerId) = { | |
439 | - | let $ | |
440 | - | let id = $ | |
441 | - | let saleOwner = $ | |
442 | - | let date = $ | |
443 | - | let $ | |
444 | - | let payment = $ | |
445 | - | let amountAttached = $ | |
433 | + | let $t01682116863 = idCallerDate(i) | |
434 | + | let id = $t01682116863._1 | |
435 | + | let saleOwner = $t01682116863._2 | |
436 | + | let date = $t01682116863._3 | |
437 | + | let $t01686816912 = isPayment(i) | |
438 | + | let payment = $t01686816912._1 | |
439 | + | let amountAttached = $t01686816912._2 | |
446 | 440 | let NFTid = if (if (isDefined(payment.assetId)) | |
447 | 441 | then isSignArtNFT(value(payment.assetId)) | |
448 | 442 | else false) | |
449 | 443 | then payment.assetId | |
450 | 444 | else throw("No NFT found") | |
451 | 445 | let NFTdata = split(getArtStrByK(("nft_" + toBase58String(value(NFTid)))), "_") | |
452 | 446 | if ((size(NFTdata) == 0)) | |
453 | 447 | then throw("No NFT found") | |
454 | 448 | else { | |
455 | 449 | let requestData = split(getStrByK((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), "_") | |
456 | 450 | if ((size(requestData) == 1)) | |
457 | 451 | then throw("No request found") | |
458 | 452 | else if ((requestData[3] != NFTdata[5])) | |
459 | 453 | then throw("This NFT don't match the requested artwork") | |
460 | 454 | else { | |
461 | 455 | let amount = value(parseInt(requestData[1])) | |
462 | - | let $ | |
463 | - | let signFee = $ | |
464 | - | let creatorFee = $ | |
465 | - | let ownerFee = $ | |
466 | - | let collectorFee = $ | |
456 | + | let $t01763217807 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4]) | |
457 | + | let signFee = $t01763217807._1 | |
458 | + | let creatorFee = $t01763217807._2 | |
459 | + | let ownerFee = $t01763217807._3 | |
460 | + | let collectorFee = $t01763217807._4 | |
467 | 461 | [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] | |
468 | 462 | } | |
469 | 463 | } | |
470 | 464 | } | |
471 | 465 | ||
472 | 466 | ||
473 | 467 | ||
474 | 468 | @Callable(i) | |
475 | 469 | func cancelRequest (artId,creatorAddr,requestId) = { | |
476 | - | let $ | |
477 | - | let id = $ | |
478 | - | let requestOwner = $ | |
479 | - | let date = $ | |
470 | + | let $t01826718311 = idCallerDate(i) | |
471 | + | let id = $t01826718311._1 | |
472 | + | let requestOwner = $t01826718311._2 | |
473 | + | let date = $t01826718311._3 | |
480 | 474 | let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId) | |
481 | 475 | let requestData = getStrByK((requesDataKey + "_OPEN")) | |
482 | 476 | if ((size(requestData) == 0)) | |
483 | 477 | then throw("Request not found") | |
484 | 478 | else { | |
485 | 479 | let requestDataArr = split(requestData, "_") | |
486 | 480 | [DeleteEntry((requesDataKey + "_OPEN")), StringEntry((((((requesDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((requestData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(requestOwner)), parseIntValue(requestDataArr[1]), fromBase58String(requestDataArr[2]))] | |
487 | 481 | } | |
488 | 482 | } | |
489 | 483 | ||
490 | 484 | ||
491 | 485 | ||
492 | 486 | @Callable(i) | |
493 | 487 | func deleteEntry (entry) = { | |
494 | 488 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
495 | 489 | if ((caller == chris)) | |
496 | 490 | then [DeleteEntry(entry)] | |
497 | 491 | else throw("no") | |
498 | 492 | } | |
499 | 493 | ||
500 | 494 |
github/deemru/w8io/169f3d6 76.59 ms ◑