tx · GxKVvhsurwjrNLAJGUTX62pa5bYGNmce2uuz1p3VAz5d

3MqfdyT9j2zFTipyF1rCU1h4zK2ya78uE7U:  -0.01400000 Waves

2021.06.04 13:59 [1555545] smart account 3MqfdyT9j2zFTipyF1rCU1h4zK2ya78uE7U > SELF 0.00000000 Waves

{ "type": 13, "id": "GxKVvhsurwjrNLAJGUTX62pa5bYGNmce2uuz1p3VAz5d", "fee": 1400000, "feeAssetId": null, "timestamp": 1622804430786, "version": 2, "chainId": 84, "sender": "3MqfdyT9j2zFTipyF1rCU1h4zK2ya78uE7U", "senderPublicKey": "2c2PB7n2qxoCMWyizek5v76mM3GFmZ2CykxKxK7rJet5", "proofs": [ "2DTMMAwmghXX8xkPS1qKWbxVJcoAvWdMd3eLkGCVDFpaFS2F1r8hJS7Jt9ohtSHPYR1AQtpwkwRW9XwTjXNKH6PR" ], "script": "base64:AAIEAAAAAAAAAEUIAhIECgIBCBIFCgMIAQgSAwoBCBIDCgEIEgMKAQgSBQoDCAgIEgUKAwgICBIECgIICBIFCgMICAgSBQoDCAgIEgMKAQgAAAAoAAAAAAh1bml0VGVzdAcAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAIc2lnbkRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAADGFydHdvcmtzRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkJ5bmZiWEMyS2FzdFV4aHVrY01VYUU1OEs5Y0JkQjlVWQAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAh1c2VyRGFwcAMFAAAACHVuaXRUZXN0CQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAA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NzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQMJAAAAAAAAAgUAAAAGY2FsbGVyBQAAAAVjaHJpcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAAMs2ERQ=", "height": 1555545, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AiqBfoa6SnNzRcdnE1ta1dq2y1drmtHXQZhrssnavR1Z Next: AZxXChFpKkShpT15BmbYNGweaHRUESttLY4K5935nzYF Diff:
OldNewDifferences
291291 let $t01101911055 = isPayment(i)
292292 let payment = $t01101911055._1
293293 let amount = $t01101911055._2
294+ let paymentAssetStr = if (isDefined(payment.assetId))
295+ then toBase58String(value(payment.assetId))
296+ else ""
294297 if (if ((saleInfoArray[1] != toString(amount)))
295298 then true
296- else if (isDefined(payment.assetId))
297- then (saleInfoArray[2] != toBase58String(value(payment.assetId)))
298- else false)
299+ else (saleInfoArray[2] != paymentAssetStr))
299300 then throw("Payment infos don't match.")
300301 else if (true)
301302 then throw("toto")
303304 let amountForSign = fraction(amount, signCut, 100)
304305 let amountForCreator = fraction(amount, creatorCut, 100)
305306 let amountForOwner = (amount - (amountForSign + amountForCreator))
306- let $t01154711675 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller)
307- let signFee = $t01154711675._1
308- let creatorFee = $t01154711675._2
309- let ownerFee = $t01154711675._3
310- let collectorFee = $t01154711675._4
311-[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]
307+ let $t01160011728 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller)
308+ let signFee = $t01160011728._1
309+ let creatorFee = $t01160011728._2
310+ let ownerFee = $t01160011728._3
311+ let collectorFee = $t01160011728._4
312+[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)) + "_") + paymentAssetStr) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_to_") + caller) + "_") + saleInfoArray[6])), signFee, creatorFee, ownerFee, collectorFee]
312313 }
313314 }
314315 }
319320
320321 @Callable(i)
321322 func setOffer (nftid) = {
322- let $t01282012862 = idCallerDate(i)
323- let id = $t01282012862._1
324- let offerOwner = $t01282012862._2
325- let date = $t01282012862._3
326- let $t01286712903 = isPayment(i)
327- let payment = $t01286712903._1
328- let amount = $t01286712903._2
323+ let $t01285012892 = idCallerDate(i)
324+ let id = $t01285012892._1
325+ let offerOwner = $t01285012892._2
326+ let date = $t01285012892._3
327+ let $t01289712933 = isPayment(i)
328+ let payment = $t01289712933._1
329+ let amount = $t01289712933._2
329330 let assetId = if (!(isDefined(payment.assetId)))
330331 then "WAVES"
331332 else toBase58String(value(payment.assetId))
332333 if (!(acceptedAssetIds(assetId)))
333334 then throw("asset not accepted")
334335 else {
335- let $t01308913147 = checkNFTInfo(nftid)
336- let isValidNFT = $t01308913147._1
337- let artId = $t01308913147._2
338- let creatorAddr = $t01308913147._3
336+ let $t01311913177 = checkNFTInfo(nftid)
337+ let isValidNFT = $t01311913177._1
338+ let artId = $t01311913177._2
339+ let creatorAddr = $t01311913177._3
339340 if (!(isValidNFT))
340341 then throw("Something went wrong")
341342 else {
349350
350351 @Callable(i)
351352 func acceptOffer (nftid,offerId,offerOwner) = {
352- let $t01370513775 = idCallerDate(i)
353- let id = $t01370513775._1
354- let caller = $t01370513775._2
355- let date = $t01370513775._3
353+ let $t01373513805 = idCallerDate(i)
354+ let id = $t01373513805._1
355+ let caller = $t01373513805._2
356+ let date = $t01373513805._3
356357 let saleOwner = getSaleOwnerAndStatus(nftid)
357358 if ((caller != saleOwner))
358359 then throw("You cannot do this action")
361362 if ((offerExist == ""))
362363 then throw("Offer not found or not for sale")
363364 else {
364- let $t01408014138 = checkNFTInfo(nftid)
365- let isValidNFT = $t01408014138._1
366- let artId = $t01408014138._2
367- let creatorAddr = $t01408014138._3
365+ let $t01411014168 = checkNFTInfo(nftid)
366+ let isValidNFT = $t01411014168._1
367+ let artId = $t01411014168._2
368+ let creatorAddr = $t01411014168._3
368369 if (!(isValidNFT))
369370 then throw("Something went wrong")
370371 else {
373374 then throw("Sale Not found!")
374375 else {
375376 let bidDataKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
376- let $t01447414533 = getBidData(bidDataKey)
377- let bidDataArr = $t01447414533._1
378- let assetId = $t01447414533._2
379- let bidData = $t01447414533._3
377+ let $t01450414563 = getBidData(bidDataKey)
378+ let bidDataArr = $t01450414563._1
379+ let assetId = $t01450414563._2
380+ let bidData = $t01450414563._3
380381 let amount = value(parseInt(bidDataArr[1]))
381- let $t01458714714 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[3])
382- let signFee = $t01458714714._1
383- let creatorFee = $t01458714714._2
384- let ownerFee = $t01458714714._3
385- let collectorFee = $t01458714714._4
382+ let $t01461714744 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[3])
383+ let signFee = $t01461714744._1
384+ let creatorFee = $t01461714744._2
385+ let ownerFee = $t01461714744._3
386+ let collectorFee = $t01461714744._4
386387 [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]
387388 }
388389 }
394395
395396 @Callable(i)
396397 func cancelOffer (nftid,offerId,saleOwner) = {
397- let $t01553415595 = idCallerDate(i)
398- let id = $t01553415595._1
399- let caller = $t01553415595._2
400- let date = $t01553415595._3
398+ let $t01556415625 = idCallerDate(i)
399+ let id = $t01556415625._1
400+ let caller = $t01556415625._2
401+ let date = $t01556415625._3
401402 let bidDataKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
402- let $t01567615735 = getBidData(bidDataKey)
403- let bidDataArr = $t01567615735._1
404- let assetId = $t01567615735._2
405- let bidData = $t01567615735._3
403+ let $t01570615765 = getBidData(bidDataKey)
404+ let bidDataArr = $t01570615765._1
405+ let assetId = $t01570615765._2
406+ let bidData = $t01570615765._3
406407 [DeleteEntry((bidDataKey + "_OPEN")), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
407408 }
408409
410411
411412 @Callable(i)
412413 func makeRequest (artId,creatorAddr) = {
413- let $t01607016114 = idCallerDate(i)
414- let id = $t01607016114._1
415- let requestOwner = $t01607016114._2
416- let date = $t01607016114._3
417- let $t01611916155 = isPayment(i)
418- let payment = $t01611916155._1
419- let amount = $t01611916155._2
414+ let $t01610016144 = idCallerDate(i)
415+ let id = $t01610016144._1
416+ let requestOwner = $t01610016144._2
417+ let date = $t01610016144._3
418+ let $t01614916185 = isPayment(i)
419+ let payment = $t01614916185._1
420+ let amount = $t01614916185._2
420421 let assetId = if (!(isDefined(payment.assetId)))
421422 then "WAVES"
422423 else toBase58String(value(payment.assetId))
434435
435436 @Callable(i)
436437 func fillRequest (artId,requestOwner,offerId) = {
437- let $t01693016972 = idCallerDate(i)
438- let id = $t01693016972._1
439- let saleOwner = $t01693016972._2
440- let date = $t01693016972._3
441- let $t01697717021 = isPayment(i)
442- let payment = $t01697717021._1
443- let amountAttached = $t01697717021._2
438+ let $t01696017002 = idCallerDate(i)
439+ let id = $t01696017002._1
440+ let saleOwner = $t01696017002._2
441+ let date = $t01696017002._3
442+ let $t01700717051 = isPayment(i)
443+ let payment = $t01700717051._1
444+ let amountAttached = $t01700717051._2
444445 let NFTid = if (if (isDefined(payment.assetId))
445446 then isSignArtNFT(value(payment.assetId))
446447 else false)
457458 then throw("This NFT don't match the requested artwork")
458459 else {
459460 let amount = value(parseInt(requestData[1]))
460- let $t01774117916 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4])
461- let signFee = $t01774117916._1
462- let creatorFee = $t01774117916._2
463- let ownerFee = $t01774117916._3
464- let collectorFee = $t01774117916._4
461+ let $t01777117946 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4])
462+ let signFee = $t01777117946._1
463+ let creatorFee = $t01777117946._2
464+ let ownerFee = $t01777117946._3
465+ let collectorFee = $t01777117946._4
465466 [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]
466467 }
467468 }
471472
472473 @Callable(i)
473474 func cancelRequest (artId,creatorAddr,requestId) = {
474- let $t01837618420 = idCallerDate(i)
475- let id = $t01837618420._1
476- let requestOwner = $t01837618420._2
477- let date = $t01837618420._3
475+ let $t01840618450 = idCallerDate(i)
476+ let id = $t01840618450._1
477+ let requestOwner = $t01840618450._2
478+ let date = $t01840618450._3
478479 let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId)
479480 let requestData = getStrByK((requesDataKey + "_OPEN"))
480481 if ((size(requestData) == 0))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let unitTest = false
55
66 let oracleFee = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
77
88 let signDapp = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB"))
99
1010 let artworksDapp = value(addressFromString("3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY"))
1111
1212 let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
1313
1414 let userDapp = if (unitTest)
1515 then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm"))
1616 else value(addressFromString("3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj"))
1717
1818 let whitelistDapp = value(addressFromString("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq"))
1919
2020 let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
2121
2222 let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
2323
2424 let wavesAssetId = base58''
2525
2626 let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
2727
2828 let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
2929
3030 let signCut = 3
3131
3232 let creatorCut = 10
3333
3434 let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true)
3535
3636 let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "")
3737
3838 let userSuspended = "SUSPENDED"
3939
4040 let userRemoved = "REMOVED"
4141
4242 let artIllegal = "ILLEGAL"
4343
4444 let artSuspended = "SUSPENDED"
4545
4646 func getUserStrByK (key) = valueOrElse(getString(userDapp, key), "Error")
4747
4848
4949 func getArtStrByK (key) = valueOrElse(getString(artworksDapp, key), "")
5050
5151
5252 func getStrByK (key) = valueOrElse(getString(this, key), "")
5353
5454
5555 func getIntByK (key) = valueOrElse(getInteger(this, key), 0)
5656
5757
5858 func keyUserStatus (addr) = ("user_status_" + addr)
5959
6060
6161 func keySignID (artistAddr,artId) = ((("art_signid_" + artId) + "_") + artistAddr)
6262
6363
6464 func keyFlag (artistAddr,artId) = ((("art_flag_" + artId) + "_") + artistAddr)
6565
6666
6767 func keyNFTData (id) = ("nft_" + id)
6868
6969
7070 func idCallerDate (i) = if (!(dappRunning))
7171 then throw(maintenanceMSG)
7272 else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
7373
7474
7575 func isPayment (i) = if ((size(i.payments) == 0))
7676 then throw("No payment attached")
7777 else {
7878 let payment = value(i.payments[0])
7979 let amount = value(payment.amount)
8080 $Tuple2(payment, amount)
8181 }
8282
8383
8484 func isSignArtNFT (id) = {
8585 let assetDetails = value(assetInfo(id))
8686 if (if (if (if ((assetDetails.quantity != 1))
8787 then true
8888 else (assetDetails.decimals != 0))
8989 then true
9090 else (assetDetails.reissuable != false))
9191 then true
9292 else (assetDetails.issuer != artworksDapp))
9393 then false
9494 else true
9595 }
9696
9797
9898 func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId)))
9999 then (assetId != toBase58String(wavesAssetId))
100100 else false)
101101 then (assetId != "WAVES")
102102 else false)
103103 then (assetId != toBase58String(usdnAssetId))
104104 else false)
105105 then false
106106 else true
107107
108108
109109 func getBidAssetId (assetId) = if ((assetId == "WAVES"))
110110 then unit
111111 else fromBase58String(assetId)
112112
113113
114114 func getSaleOwnerAndStatus (nftid) = {
115115 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
116116 if ((size(saleOwner) == 0))
117117 then throw("NFT not found")
118118 else {
119119 let saleStatus = getStrByK(((("sale2nd_status_" + saleOwner) + "_") + nftid))
120120 if ((saleStatus != "OPEN"))
121121 then throw("NFT not for sale")
122122 else saleOwner
123123 }
124124 }
125125
126126
127127 func getBidData (key) = {
128128 let bidData = getStrByK((key + "_OPEN"))
129129 if ((bidData == ""))
130130 then throw("Offer not found")
131131 else {
132132 let bidDataArr = split(bidData, "_")
133133 let assetId = getBidAssetId(bidDataArr[2])
134134 $Tuple3(bidDataArr, assetId, bidData)
135135 }
136136 }
137137
138138
139139 func checkArtStatus (addr,id) = {
140140 let artStatus = getArtStrByK(keyFlag(addr, id))
141141 if (if ((artStatus == artIllegal))
142142 then true
143143 else (artStatus == artSuspended))
144144 then throw(("Original Artwork flagged as " + artStatus))
145145 else true
146146 }
147147
148148
149149 func checkArtistStatus (addr) = {
150150 let artistStatus = getUserStrByK(keyUserStatus(addr))
151151 if (containsElement([userSuspended, userRemoved], artistStatus))
152152 then throw(("Original Artist " + artistStatus))
153153 else true
154154 }
155155
156156
157157 func checkNFTInfo (assetId) = {
158158 let nftData = split(getArtStrByK(keyNFTData(assetId)), "_")
159159 let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5]))
160160 if ((size(artSignID) == 0))
161161 then throw("Artwork not found on SIGN Art")
162162 else if (if (!(checkArtStatus(nftData[6], nftData[5])))
163163 then !(checkArtistStatus(nftData[6]))
164164 else false)
165165 then $Tuple3(false, nftData[5], nftData[6])
166166 else $Tuple3(true, nftData[5], nftData[6])
167167 }
168168
169169
170170 func checkARTExist (artId,creatorAddr) = {
171171 let artSignID = getArtStrByK(keySignID(creatorAddr, artId))
172172 if ((size(artSignID) == 0))
173173 then throw("Artwork not found on SIGN Art")
174174 else if (if (!(checkArtStatus(creatorAddr, artId)))
175175 then !(checkArtistStatus(creatorAddr))
176176 else false)
177177 then false
178178 else true
179179 }
180180
181181
182182 func setTransfers (amount,assetId,nftid,creatorAddr,saleOwner,caller) = {
183183 let amountForSign = fraction(amount, signCut, 100)
184184 let amountForCreator = fraction(amount, creatorCut, 100)
185185 let amountForOwner = (amount - (amountForSign + amountForCreator))
186186 let signFee = ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId)
187187 let creatorFee = ScriptTransfer(Address(fromBase58String(creatorAddr)), amountForCreator, assetId)
188188 let ownerFee = ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId)
189189 let collectorFee = ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))
190190 $Tuple4(signFee, creatorFee, ownerFee, collectorFee)
191191 }
192192
193193
194194 @Callable(i)
195195 func sellNFT (price,asset) = {
196196 let $t071147153 = idCallerDate(i)
197197 let id = $t071147153._1
198198 let caller = $t071147153._2
199199 let date = $t071147153._3
200200 let $t071587194 = isPayment(i)
201201 let payment = $t071587194._1
202202 let amount = $t071587194._2
203203 let assetId = if (if (isDefined(payment.assetId))
204204 then isSignArtNFT(value(payment.assetId))
205205 else false)
206206 then payment.assetId
207207 else throw("Only SIGN Art NFT accepted.")
208208 if (!(acceptedAssetIds(asset)))
209209 then throw("Only SIGN, USDN or WAVES accepted")
210210 else {
211211 let $t074747557 = checkNFTInfo(toBase58String(value(assetId)))
212212 let isValidNFT = $t074747557._1
213213 let artId = $t074747557._2
214214 let creatorAddr = $t074747557._3
215215 if (!(isValidNFT))
216216 then throw("Something went wrong")
217217 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)]
218218 }
219219 }
220220
221221
222222
223223 @Callable(i)
224224 func updateSalePrice (nftid,price,asset) = {
225225 let $t083588397 = idCallerDate(i)
226226 let id = $t083588397._1
227227 let caller = $t083588397._2
228228 let date = $t083588397._3
229229 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
230230 if ((saleOwner != caller))
231231 then throw("You don't own this NFT")
232232 else {
233233 let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid))
234234 if ((saleStatus != "OPEN"))
235235 then throw("Sale not active")
236236 else {
237237 let creatorAddr = split(getArtStrByK(keyNFTData(nftid)), "_")[6]
238238 let saleInfo = split(getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus)), "_")
239239 [StringEntry((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))]
240240 }
241241 }
242242 }
243243
244244
245245
246246 @Callable(i)
247247 func cancelSale (nftid) = {
248248 let $t093319370 = idCallerDate(i)
249249 let id = $t093319370._1
250250 let caller = $t093319370._2
251251 let date = $t093319370._3
252252 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
253253 if ((saleOwner != caller))
254254 then throw("You don't own this NFT")
255255 else {
256256 let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid))
257257 if ((saleStatus != "OPEN"))
258258 then throw("Sale not active")
259259 else {
260260 let creatorAddr = split(getArtStrByK(keyNFTData(nftid)), "_")[6]
261261 let saleInfo = getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus))
262262 [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))]
263263 }
264264 }
265265 }
266266
267267
268268
269269 @Callable(i)
270270 func buyNFT (nftid) = {
271271 let $t01049910570 = idCallerDate(i)
272272 let id = $t01049910570._1
273273 let caller = $t01049910570._2
274274 let date = $t01049910570._3
275275 let saleOwner = getSaleOwnerAndStatus(nftid)
276276 let $t01062510683 = checkNFTInfo(nftid)
277277 let isValidNFT = $t01062510683._1
278278 let artId = $t01062510683._2
279279 let creatorAddr = $t01062510683._3
280280 if (!(isValidNFT))
281281 then throw("Something went wrong")
282282 else {
283283 let saleInfo = getStrByK((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN"))
284284 if ((size(saleInfo) == 0))
285285 then throw("Sale Not found!")
286286 else {
287287 let saleInfoArray = split(saleInfo, "_")
288288 if ((parseInt(saleInfoArray[1]) == 0))
289289 then throw("Offer only")
290290 else {
291291 let $t01101911055 = isPayment(i)
292292 let payment = $t01101911055._1
293293 let amount = $t01101911055._2
294+ let paymentAssetStr = if (isDefined(payment.assetId))
295+ then toBase58String(value(payment.assetId))
296+ else ""
294297 if (if ((saleInfoArray[1] != toString(amount)))
295298 then true
296- else if (isDefined(payment.assetId))
297- then (saleInfoArray[2] != toBase58String(value(payment.assetId)))
298- else false)
299+ else (saleInfoArray[2] != paymentAssetStr))
299300 then throw("Payment infos don't match.")
300301 else if (true)
301302 then throw("toto")
302303 else {
303304 let amountForSign = fraction(amount, signCut, 100)
304305 let amountForCreator = fraction(amount, creatorCut, 100)
305306 let amountForOwner = (amount - (amountForSign + amountForCreator))
306- let $t01154711675 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller)
307- let signFee = $t01154711675._1
308- let creatorFee = $t01154711675._2
309- let ownerFee = $t01154711675._3
310- let collectorFee = $t01154711675._4
311-[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]
307+ let $t01160011728 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller)
308+ let signFee = $t01160011728._1
309+ let creatorFee = $t01160011728._2
310+ let ownerFee = $t01160011728._3
311+ let collectorFee = $t01160011728._4
312+[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)) + "_") + paymentAssetStr) + "_") + nftid) + "_") + artId) + "_") + creatorAddr) + "_to_") + caller) + "_") + saleInfoArray[6])), signFee, creatorFee, ownerFee, collectorFee]
312313 }
313314 }
314315 }
315316 }
316317 }
317318
318319
319320
320321 @Callable(i)
321322 func setOffer (nftid) = {
322- let $t01282012862 = idCallerDate(i)
323- let id = $t01282012862._1
324- let offerOwner = $t01282012862._2
325- let date = $t01282012862._3
326- let $t01286712903 = isPayment(i)
327- let payment = $t01286712903._1
328- let amount = $t01286712903._2
323+ let $t01285012892 = idCallerDate(i)
324+ let id = $t01285012892._1
325+ let offerOwner = $t01285012892._2
326+ let date = $t01285012892._3
327+ let $t01289712933 = isPayment(i)
328+ let payment = $t01289712933._1
329+ let amount = $t01289712933._2
329330 let assetId = if (!(isDefined(payment.assetId)))
330331 then "WAVES"
331332 else toBase58String(value(payment.assetId))
332333 if (!(acceptedAssetIds(assetId)))
333334 then throw("asset not accepted")
334335 else {
335- let $t01308913147 = checkNFTInfo(nftid)
336- let isValidNFT = $t01308913147._1
337- let artId = $t01308913147._2
338- let creatorAddr = $t01308913147._3
336+ let $t01311913177 = checkNFTInfo(nftid)
337+ let isValidNFT = $t01311913177._1
338+ let artId = $t01311913177._2
339+ let creatorAddr = $t01311913177._3
339340 if (!(isValidNFT))
340341 then throw("Something went wrong")
341342 else {
342343 let saleOwner = getSaleOwnerAndStatus(nftid)
343344 [StringEntry((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + assetId) + "_") + artId) + "_") + offerOwner) + "_") + id))]
344345 }
345346 }
346347 }
347348
348349
349350
350351 @Callable(i)
351352 func acceptOffer (nftid,offerId,offerOwner) = {
352- let $t01370513775 = idCallerDate(i)
353- let id = $t01370513775._1
354- let caller = $t01370513775._2
355- let date = $t01370513775._3
353+ let $t01373513805 = idCallerDate(i)
354+ let id = $t01373513805._1
355+ let caller = $t01373513805._2
356+ let date = $t01373513805._3
356357 let saleOwner = getSaleOwnerAndStatus(nftid)
357358 if ((caller != saleOwner))
358359 then throw("You cannot do this action")
359360 else {
360361 let offerExist = getStrByK((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) + "_OPEN"))
361362 if ((offerExist == ""))
362363 then throw("Offer not found or not for sale")
363364 else {
364- let $t01408014138 = checkNFTInfo(nftid)
365- let isValidNFT = $t01408014138._1
366- let artId = $t01408014138._2
367- let creatorAddr = $t01408014138._3
365+ let $t01411014168 = checkNFTInfo(nftid)
366+ let isValidNFT = $t01411014168._1
367+ let artId = $t01411014168._2
368+ let creatorAddr = $t01411014168._3
368369 if (!(isValidNFT))
369370 then throw("Something went wrong")
370371 else {
371372 let saleInfo = getStrByK((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN"))
372373 if ((size(saleInfo) == 0))
373374 then throw("Sale Not found!")
374375 else {
375376 let bidDataKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
376- let $t01447414533 = getBidData(bidDataKey)
377- let bidDataArr = $t01447414533._1
378- let assetId = $t01447414533._2
379- let bidData = $t01447414533._3
377+ let $t01450414563 = getBidData(bidDataKey)
378+ let bidDataArr = $t01450414563._1
379+ let assetId = $t01450414563._2
380+ let bidData = $t01450414563._3
380381 let amount = value(parseInt(bidDataArr[1]))
381- let $t01458714714 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[3])
382- let signFee = $t01458714714._1
383- let creatorFee = $t01458714714._2
384- let ownerFee = $t01458714714._3
385- let collectorFee = $t01458714714._4
382+ let $t01461714744 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[3])
383+ let signFee = $t01461714744._1
384+ let creatorFee = $t01461714744._2
385+ let ownerFee = $t01461714744._3
386+ let collectorFee = $t01461714744._4
386387 [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]
387388 }
388389 }
389390 }
390391 }
391392 }
392393
393394
394395
395396 @Callable(i)
396397 func cancelOffer (nftid,offerId,saleOwner) = {
397- let $t01553415595 = idCallerDate(i)
398- let id = $t01553415595._1
399- let caller = $t01553415595._2
400- let date = $t01553415595._3
398+ let $t01556415625 = idCallerDate(i)
399+ let id = $t01556415625._1
400+ let caller = $t01556415625._2
401+ let date = $t01556415625._3
401402 let bidDataKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId)
402- let $t01567615735 = getBidData(bidDataKey)
403- let bidDataArr = $t01567615735._1
404- let assetId = $t01567615735._2
405- let bidData = $t01567615735._3
403+ let $t01570615765 = getBidData(bidDataKey)
404+ let bidDataArr = $t01570615765._1
405+ let assetId = $t01570615765._2
406+ let bidData = $t01570615765._3
406407 [DeleteEntry((bidDataKey + "_OPEN")), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
407408 }
408409
409410
410411
411412 @Callable(i)
412413 func makeRequest (artId,creatorAddr) = {
413- let $t01607016114 = idCallerDate(i)
414- let id = $t01607016114._1
415- let requestOwner = $t01607016114._2
416- let date = $t01607016114._3
417- let $t01611916155 = isPayment(i)
418- let payment = $t01611916155._1
419- let amount = $t01611916155._2
414+ let $t01610016144 = idCallerDate(i)
415+ let id = $t01610016144._1
416+ let requestOwner = $t01610016144._2
417+ let date = $t01610016144._3
418+ let $t01614916185 = isPayment(i)
419+ let payment = $t01614916185._1
420+ let amount = $t01614916185._2
420421 let assetId = if (!(isDefined(payment.assetId)))
421422 then "WAVES"
422423 else toBase58String(value(payment.assetId))
423424 if (!(acceptedAssetIds(assetId)))
424425 then throw("asset not accepted")
425426 else {
426427 let isValidART = checkARTExist(artId, creatorAddr)
427428 if (!(isValidART))
428429 then throw("Something went wrong")
429430 else [StringEntry((((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_") + artId) + "_") + requestOwner) + "_") + id))]
430431 }
431432 }
432433
433434
434435
435436 @Callable(i)
436437 func fillRequest (artId,requestOwner,offerId) = {
437- let $t01693016972 = idCallerDate(i)
438- let id = $t01693016972._1
439- let saleOwner = $t01693016972._2
440- let date = $t01693016972._3
441- let $t01697717021 = isPayment(i)
442- let payment = $t01697717021._1
443- let amountAttached = $t01697717021._2
438+ let $t01696017002 = idCallerDate(i)
439+ let id = $t01696017002._1
440+ let saleOwner = $t01696017002._2
441+ let date = $t01696017002._3
442+ let $t01700717051 = isPayment(i)
443+ let payment = $t01700717051._1
444+ let amountAttached = $t01700717051._2
444445 let NFTid = if (if (isDefined(payment.assetId))
445446 then isSignArtNFT(value(payment.assetId))
446447 else false)
447448 then payment.assetId
448449 else throw("No NFT found")
449450 let NFTdata = split(getArtStrByK(("nft_" + toBase58String(value(NFTid)))), "_")
450451 if ((size(NFTdata) == 0))
451452 then throw("No NFT found")
452453 else {
453454 let requestData = split(getStrByK((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), "_")
454455 if ((size(requestData) == 1))
455456 then throw("No request found")
456457 else if ((requestData[3] != NFTdata[5]))
457458 then throw("This NFT don't match the requested artwork")
458459 else {
459460 let amount = value(parseInt(requestData[1]))
460- let $t01774117916 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4])
461- let signFee = $t01774117916._1
462- let creatorFee = $t01774117916._2
463- let ownerFee = $t01774117916._3
464- let collectorFee = $t01774117916._4
461+ let $t01777117946 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4])
462+ let signFee = $t01777117946._1
463+ let creatorFee = $t01777117946._2
464+ let ownerFee = $t01777117946._3
465+ let collectorFee = $t01777117946._4
465466 [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]
466467 }
467468 }
468469 }
469470
470471
471472
472473 @Callable(i)
473474 func cancelRequest (artId,creatorAddr,requestId) = {
474- let $t01837618420 = idCallerDate(i)
475- let id = $t01837618420._1
476- let requestOwner = $t01837618420._2
477- let date = $t01837618420._3
475+ let $t01840618450 = idCallerDate(i)
476+ let id = $t01840618450._1
477+ let requestOwner = $t01840618450._2
478+ let date = $t01840618450._3
478479 let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId)
479480 let requestData = getStrByK((requesDataKey + "_OPEN"))
480481 if ((size(requestData) == 0))
481482 then throw("Request not found")
482483 else {
483484 let requestDataArr = split(requestData, "_")
484485 [DeleteEntry((requesDataKey + "_OPEN")), StringEntry((((((requesDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((requestData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(requestOwner)), parseIntValue(requestDataArr[1]), fromBase58String(requestDataArr[2]))]
485486 }
486487 }
487488
488489
489490
490491 @Callable(i)
491492 func deleteEntry (entry) = {
492493 let caller = toString(addressFromPublicKey(i.callerPublicKey))
493494 if ((caller == chris))
494495 then [DeleteEntry(entry)]
495496 else throw("no")
496497 }
497498
498499

github/deemru/w8io/169f3d6 
111.48 ms