tx · 2GSszNH86LhfLoYyqTX1i7Jg6qJ751hHq2M1SBWh5cY5

3N2eA4yzXa4wTj7pP8r6G144RRxZW7cmq4p:  -0.01400000 Waves

2022.01.27 13:01 [1897218] smart account 3N2eA4yzXa4wTj7pP8r6G144RRxZW7cmq4p > SELF 0.00000000 Waves

{ "type": 13, "id": "2GSszNH86LhfLoYyqTX1i7Jg6qJ751hHq2M1SBWh5cY5", "fee": 1400000, "feeAssetId": null, "timestamp": 1643277770039, "version": 2, "chainId": 84, "sender": "3N2eA4yzXa4wTj7pP8r6G144RRxZW7cmq4p", "senderPublicKey": "Hh3eFP2XFetZSfTxQiM1Ps96f68zi8Zh5ghhCZdjgdFs", "proofs": [ "5EPG5tSWRE8dW7dYCt4e6ZaWv2PFGBPkv7M52uxYxYfxxz6mmum7RFR2Xo3Uh2xzBLrwcZYoS9UAtjhznnvmuhW" ], "script": "base64:AAIFAAAAAAAAADIIAhIECgIECBIECgIBCBIFCgMIAQgSAwoBCBIDCgEIEgMKAQgSBQoDCAgIEgUKAwgICAAAADMAAAAACHVuaXRUZXN0BwAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAAMYXJ0d29ya3NEYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQnluZmJYQzJLYXN0VXhodWtjTVVhRTU4SzljQmRCOVVZAAAAAAtmZWVSZWNlaXZlcgIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAACHVzZXJEYXBwAwUAAAAIdW5pdFRlc3QJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM010NFJHTUV5alNXWUFvY1RQc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mlkRGF0YQgFAAAADSR0MDE3MTM2MTcxOTEAAAACXzMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACBQAAAAZiaWRLZXkCAAAABV9PUEVOCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAAGYmlkS2V5AgAAAApfQ0FOQ0VMTEVECQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAAB2JpZERhdGECAAAAC19DQU5DRUxMRURfCQABpAAAAAEFAAAABGRhdGUCAAAAAV8FAAAAAmlkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAAAZjYWxsZXIJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACBQAAAApiaWREYXRhQXJyAAAAAAAAAAABBQAAAAdhc3NldElkBQAAAANuaWwAAAAAepAlZg==", "height": 1897218, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CRvKzGEymcewArLXX3WBr8mbTUkgsL4zqwKiTefCUZ7m Next: 2WyMNvyhqTVksAtCG8GwwojRjZpAFBQfQcmpoppHnEwt Diff:
OldNewDifferences
326326 then throw("Sale not active")
327327 else if (!(acceptedAssetIds(asset)))
328328 then throw("Only SIGN, USDN or WAVES accepted")
329- else if ((price == 0))
329+ else if (!(validateMinSell(asset, price)))
330330 then throw("Wrong minimum sell price")
331- else if (!(validateMinSell(asset, price)))
332- then throw("Wrong minimum sell price")
333- else {
334- let saleKey = getSaleKey(caller, nftId, artId, creatorAddr)
335- let saleInfo = split(getStrByK((saleKey + "_OPEN")), "_")
331+ else {
332+ let saleKey = getSaleKey(caller, nftId, artId, creatorAddr)
333+ let saleInfo = split(getStrByK((saleKey + "_OPEN")), "_")
336334 [StringEntry((saleKey + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))]
337- }
335+ }
338336 }
339337 }
340338 }
343341
344342 @Callable(i)
345343 func cancelSale (nftId) = {
346- let $t01181412054 = provideBaseData(i, nftId)
347- let id = $t01181412054._1
348- let caller = $t01181412054._2
349- let date = $t01181412054._3
350- let isValidNFT = $t01181412054._4
351- let artId = $t01181412054._5
352- let creatorAddr = $t01181412054._6
353- let artSignID = $t01181412054._7
344+ let $t01181612056 = provideBaseData(i, nftId)
345+ let id = $t01181612056._1
346+ let caller = $t01181612056._2
347+ let date = $t01181612056._3
348+ let isValidNFT = $t01181612056._4
349+ let artId = $t01181612056._5
350+ let creatorAddr = $t01181612056._6
351+ let artSignID = $t01181612056._7
354352 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftId))
355353 if ((saleOwner != caller))
356354 then throw("You don't own this NFT")
370368
371369 @Callable(i)
372370 func buyNFT (nftId) = {
373- let $t01288512977 = provideBaseData(i, nftId)
374- let id = $t01288512977._1
375- let caller = $t01288512977._2
376- let date = $t01288512977._3
377- let isValidNFT = $t01288512977._4
378- let artId = $t01288512977._5
379- let creatorAddr = $t01288512977._6
380- let artSignID = $t01288512977._7
371+ let $t01288712979 = provideBaseData(i, nftId)
372+ let id = $t01288712979._1
373+ let caller = $t01288712979._2
374+ let date = $t01288712979._3
375+ let isValidNFT = $t01288712979._4
376+ let artId = $t01288712979._5
377+ let creatorAddr = $t01288712979._6
378+ let artSignID = $t01288712979._7
381379 if ((size(artSignID) == 0))
382380 then throw("Artwork not found on SIGN Art, cancel your sale.")
383381 else if (!(isValidNFT))
393391 if ((parseInt(saleInfoArray[1]) == 0))
394392 then throw("Offer only")
395393 else {
396- let $t01347413510 = isPayment(i)
397- let payment = $t01347413510._1
398- let amount = $t01347413510._2
394+ let $t01347613512 = isPayment(i)
395+ let payment = $t01347613512._1
396+ let amount = $t01347613512._2
399397 let paymentAssetStr = if (isDefined(payment.assetId))
400398 then toBase58String(value(payment.assetId))
401399 else ""
407405 let amountForSign = fraction(amount, signCut, 100)
408406 let amountForCreator = fraction(amount, creatorCut, 100)
409407 let amountForOwner = (amount - (amountForSign + amountForCreator))
410- let $t01401314141 = setTransfers(amount, payment.assetId, nftId, creatorAddr, saleOwner, caller)
411- let signFee = $t01401314141._1
412- let creatorFee = $t01401314141._2
413- let ownerFee = $t01401314141._3
414- let collectorNFT = $t01401314141._4
408+ let $t01401514143 = setTransfers(amount, payment.assetId, nftId, creatorAddr, saleOwner, caller)
409+ let signFee = $t01401514143._1
410+ let creatorFee = $t01401514143._2
411+ let ownerFee = $t01401514143._3
412+ let collectorNFT = $t01401514143._4
415413 [DeleteEntry((saleKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftId)), DeleteEntry(("current_owner_on_dapp_" + nftId)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((saleInfo + "_CLOSED_") + toString(date)) + "_") + id) + "_") + caller)), updateNumSales(), signFee, creatorFee, ownerFee, collectorNFT]
416414 }
417415 }
423421
424422 @Callable(i)
425423 func setOffer (nftId) = {
426- let $t01454914645 = provideBaseData(i, nftId)
427- let id = $t01454914645._1
428- let offerOwner = $t01454914645._2
429- let date = $t01454914645._3
430- let isValidNFT = $t01454914645._4
431- let artId = $t01454914645._5
432- let creatorAddr = $t01454914645._6
433- let artSignID = $t01454914645._7
424+ let $t01455114647 = provideBaseData(i, nftId)
425+ let id = $t01455114647._1
426+ let offerOwner = $t01455114647._2
427+ let date = $t01455114647._3
428+ let isValidNFT = $t01455114647._4
429+ let artId = $t01455114647._5
430+ let creatorAddr = $t01455114647._6
431+ let artSignID = $t01455114647._7
434432 if (!(isValidNFT))
435433 then throw("Not a valid nft")
436434 else {
437- let $t01470614742 = isPayment(i)
438- let payment = $t01470614742._1
439- let amount = $t01470614742._2
435+ let $t01470814744 = isPayment(i)
436+ let payment = $t01470814744._1
437+ let amount = $t01470814744._2
440438 let assetId = if (!(isDefined(payment.assetId)))
441439 then "WAVES"
442440 else toBase58String(value(payment.assetId))
457455
458456 @Callable(i)
459457 func acceptOffer (nftId,offerId,offerOwner) = {
460- let $t01554415636 = provideBaseData(i, nftId)
461- let id = $t01554415636._1
462- let caller = $t01554415636._2
463- let date = $t01554415636._3
464- let isValidNFT = $t01554415636._4
465- let artId = $t01554415636._5
466- let creatorAddr = $t01554415636._6
467- let artSignID = $t01554415636._7
458+ let $t01554615638 = provideBaseData(i, nftId)
459+ let id = $t01554615638._1
460+ let caller = $t01554615638._2
461+ let date = $t01554615638._3
462+ let isValidNFT = $t01554615638._4
463+ let artId = $t01554615638._5
464+ let creatorAddr = $t01554615638._6
465+ let artSignID = $t01554615638._7
468466 if (!(isValidNFT))
469467 then throw("Not a valid nft")
470468 else {
473471 then throw("Only sale owner can accept offer")
474472 else {
475473 let bidKey = getBidKey(offerOwner, nftId, saleOwner, offerId)
476- let $t01589015945 = getBidData(bidKey)
477- let bidDataArr = $t01589015945._1
478- let assetId = $t01589015945._2
479- let bidData = $t01589015945._3
474+ let $t01589215947 = getBidData(bidKey)
475+ let bidDataArr = $t01589215947._1
476+ let assetId = $t01589215947._2
477+ let bidData = $t01589215947._3
480478 let saleKey = getSaleKey(saleOwner, nftId, artId, creatorAddr)
481479 let saleInfo = getStrByK((saleKey + "_OPEN"))
482480 if ((size(saleInfo) == 0))
483481 then throw("Sale Not found!")
484482 else {
485483 let amount = value(parseInt(bidDataArr[1]))
486- let $t01617716304 = setTransfers(amount, assetId, nftId, creatorAddr, saleOwner, bidDataArr[6])
487- let signFee = $t01617716304._1
488- let creatorFee = $t01617716304._2
489- let ownerFee = $t01617716304._3
490- let collectorNFT = $t01617716304._4
484+ let $t01617916306 = setTransfers(amount, assetId, nftId, creatorAddr, saleOwner, bidDataArr[6])
485+ let signFee = $t01617916306._1
486+ let creatorFee = $t01617916306._2
487+ let ownerFee = $t01617916306._3
488+ let collectorNFT = $t01617916306._4
491489 [DeleteEntry((saleKey + "_OPEN")), DeleteEntry((bidKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftId)), DeleteEntry(("current_owner_on_dapp_" + nftId)), StringEntry((bidKey + "_CLOSED"), ((((bidData + "_CLOSED_") + toString(date)) + "_") + id)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((((((saleInfo + "_CLOSED-OFFER_") + toString(date)) + "_") + id) + "_") + offerOwner) + "_") + toString(amount)) + "_") + toBase58String(value(assetId)))), updateNumSales(), signFee, creatorFee, ownerFee, collectorNFT]
492490 }
493491 }
498496
499497 @Callable(i)
500498 func cancelOffer (nftId,offerId,saleOwner) = {
501- let $t01700917070 = idCallerDate(i)
502- let id = $t01700917070._1
503- let caller = $t01700917070._2
504- let date = $t01700917070._3
499+ let $t01701117072 = idCallerDate(i)
500+ let id = $t01701117072._1
501+ let caller = $t01701117072._2
502+ let date = $t01701117072._3
505503 let bidKey = getBidKey(caller, nftId, saleOwner, offerId)
506- let $t01713417189 = getBidData(bidKey)
507- let bidDataArr = $t01713417189._1
508- let assetId = $t01713417189._2
509- let bidData = $t01713417189._3
504+ let $t01713617191 = getBidData(bidKey)
505+ let bidDataArr = $t01713617191._1
506+ let assetId = $t01713617191._2
507+ let bidData = $t01713617191._3
510508 [DeleteEntry((bidKey + "_OPEN")), StringEntry((bidKey + "_CANCELLED"), ((((bidData + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
511509 }
512510
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
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 signCut = 3
2929
3030 let creatorCut = 10
3131
3232 let userSuspended = "SUSPENDED"
3333
3434 let userRemoved = "REMOVED"
3535
3636 let artIllegal = "ILLEGAL"
3737
3838 let artSuspended = "SUSPENDED"
3939
4040 let dappRunningKey = "conf_dapp_is_running"
4141
4242 let maintenanceMSGKey = "conf_maintenance_msg"
4343
4444 let dappRunning = valueOrElse(getBoolean(this, dappRunningKey), true)
4545
4646 let maintenanceMSG = valueOrElse(getString(this, maintenanceMSGKey), "")
4747
4848 let numSalesK = "num_sales"
4949
5050 func getUserStrByK (key) = valueOrElse(getString(userDapp, key), "Error")
5151
5252
5353 func getArtStrByK (key) = valueOrElse(getString(artworksDapp, key), "")
5454
5555
5656 func getStrByK (key) = valueOrElse(getString(this, key), "")
5757
5858
5959 func getIntByK (key) = valueOrElse(getInteger(this, key), 0)
6060
6161
6262 func keyUserStatus (addr) = ("user_status_" + addr)
6363
6464
6565 func keySignID (artistAddr,artId) = ((("art_signid_" + artId) + "_") + artistAddr)
6666
6767
6868 func keyFlag (artistAddr,artId) = ((("art_flag_" + artId) + "_") + artistAddr)
6969
7070
7171 func keyNFTData (id) = ("nft_" + id)
7272
7373
7474 func getSaleKey (caller,nftId,artId,creatorAddr) = ((((((("sale2nd_info_" + caller) + "_") + nftId) + "_") + artId) + "_") + creatorAddr)
7575
7676
7777 func getBidKey (offerOwner,nftId,saleOwner,offerId) = ((((((("offer2nd_" + offerOwner) + "_") + nftId) + "_") + saleOwner) + "_") + offerId)
7878
7979
8080 func getIntByKFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle")
8181
8282
8383 let currentCertificationPrice = getIntByKFromOracle(("certification_fee_" + toBase58String(signAssetId)))
8484
8585 func idCallerDate (i) = if (!(dappRunning))
8686 then throw(maintenanceMSG)
8787 else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
8888
8989
9090 func isPayment (i) = if ((size(i.payments) == 0))
9191 then throw("No payment attached")
9292 else {
9393 let payment = value(i.payments[0])
9494 let amount = value(payment.amount)
9595 $Tuple2(payment, amount)
9696 }
9797
9898
9999 func assetIsValid (assetDetails) = if (if (if ((assetDetails.quantity == 1))
100100 then (assetDetails.decimals == 0)
101101 else false)
102102 then (assetDetails.reissuable == false)
103103 else false)
104104 then (assetDetails.issuer == artworksDapp)
105105 else false
106106
107107
108108 func isSignArtNFT (id) = {
109109 let assetDetails = value(assetInfo(id))
110110 assetIsValid(assetDetails)
111111 }
112112
113113
114114 func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId)))
115115 then (assetId != toBase58String(wavesAssetId))
116116 else false)
117117 then (assetId != "WAVES")
118118 else false)
119119 then (assetId != toBase58String(usdnAssetId))
120120 else false)
121121 then false
122122 else true
123123
124124
125125 func getBidAssetId (assetId) = if ((assetId == "WAVES"))
126126 then unit
127127 else fromBase58String(assetId)
128128
129129
130130 func getSaleOwnerAndStatus (nftid) = {
131131 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
132132 if ((size(saleOwner) == 0))
133133 then throw("NFT not found")
134134 else {
135135 let saleStatus = getStrByK(((("sale2nd_status_" + saleOwner) + "_") + nftid))
136136 if ((saleStatus != "OPEN"))
137137 then throw("NFT not for sale")
138138 else saleOwner
139139 }
140140 }
141141
142142
143143 func getBidData (key) = {
144144 let bidData = getStrByK((key + "_OPEN"))
145145 if ((bidData == ""))
146146 then throw("Offer not found")
147147 else {
148148 let bidDataArr = split(bidData, "_")
149149 let assetId = getBidAssetId(bidDataArr[2])
150150 $Tuple3(bidDataArr, assetId, bidData)
151151 }
152152 }
153153
154154
155155 func artIsValid (artStatus) = if ((artStatus != artIllegal))
156156 then (artStatus != artSuspended)
157157 else false
158158
159159
160160 func checkArtStatus (addr,id) = {
161161 let artStatus = getArtStrByK(keyFlag(addr, id))
162162 if (artIsValid(artStatus))
163163 then true
164164 else throw(("Original Artwork flagged as " + artStatus))
165165 }
166166
167167
168168 func checkArtistStatus (addr) = {
169169 let artistStatus = getUserStrByK(keyUserStatus(addr))
170170 if (containsElement([userSuspended, userRemoved], artistStatus))
171171 then throw(("Original Artist " + artistStatus))
172172 else true
173173 }
174174
175175
176176 func checkNFTInfo (assetId) = {
177177 let nftData = split(getArtStrByK(keyNFTData(assetId)), "_")
178178 let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5]))
179179 if (if (!(checkArtStatus(nftData[6], nftData[5])))
180180 then !(checkArtistStatus(nftData[6]))
181181 else false)
182182 then $Tuple4(false, nftData[5], nftData[6], artSignID)
183183 else $Tuple4(true, nftData[5], nftData[6], artSignID)
184184 }
185185
186186
187187 func checkARTExist (artId,creatorAddr) = {
188188 let artSignID = getArtStrByK(keySignID(creatorAddr, artId))
189189 if ((size(artSignID) == 0))
190190 then throw("Artwork not found on SIGN Art")
191191 else if (if (!(checkArtStatus(creatorAddr, artId)))
192192 then !(checkArtistStatus(creatorAddr))
193193 else false)
194194 then false
195195 else true
196196 }
197197
198198
199199 func setTransfers (amount,assetId,nftid,creatorAddr,saleOwner,caller) = {
200200 let amountForSign = fraction(amount, signCut, 100)
201201 let amountForCreator = fraction(amount, creatorCut, 100)
202202 let amountForOwner = (amount - (amountForSign + amountForCreator))
203203 let signFee = ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId)
204204 let creatorFee = ScriptTransfer(Address(fromBase58String(creatorAddr)), amountForCreator, assetId)
205205 let ownerFee = ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId)
206206 let collectorNFT = ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))
207207 $Tuple4(signFee, creatorFee, ownerFee, collectorNFT)
208208 }
209209
210210
211211 func validateMinSell (assetId,price) = {
212212 let minSellWaves = if (unitTest)
213213 then 10
214214 else getIntByKFromOracle("waves_min_sell")
215215 let minSellUsdn = 1000000
216216 let minSellSign = if (unitTest)
217217 then 1
218218 else (currentCertificationPrice * 2)
219219 if (if (if (if (if ((assetId == toBase58String(usdnAssetId)))
220220 then (minSellUsdn > price)
221221 else false)
222222 then (price != 0)
223223 else false)
224224 then true
225225 else if (if ((assetId == toBase58String(signAssetId)))
226226 then (minSellSign > price)
227227 else false)
228228 then (price != 0)
229229 else false)
230230 then true
231231 else if (if (if ((assetId == toBase58String(wavesAssetId)))
232232 then true
233233 else (assetId == "WAVES"))
234234 then (minSellWaves > price)
235235 else false)
236236 then (price != 0)
237237 else false)
238238 then false
239239 else true
240240 }
241241
242242
243243 func provideBaseData (i,nftId) = {
244244 let $t085778616 = idCallerDate(i)
245245 let id = $t085778616._1
246246 let caller = $t085778616._2
247247 let date = $t085778616._3
248248 let $t086198688 = checkNFTInfo(nftId)
249249 let isValidNFT = $t086198688._1
250250 let artId = $t086198688._2
251251 let creatorAddr = $t086198688._3
252252 let artSignID = $t086198688._4
253253 $Tuple7(id, caller, date, isValidNFT, artId, creatorAddr, artSignID)
254254 }
255255
256256
257257 func updateNumSales () = {
258258 let numSales = getIntByK(numSalesK)
259259 IntegerEntry(numSalesK, (numSales + 1))
260260 }
261261
262262
263263 @Callable(invoke)
264264 func appRunning (isLive,message) = {
265265 let caller = toString(addressFromPublicKey(invoke.callerPublicKey))
266266 let id = toBase58String(invoke.transactionId)
267267 if (containsElement([chris, toString(this)], caller))
268268 then [BooleanEntry(dappRunningKey, isLive), StringEntry(maintenanceMSGKey, message)]
269269 else throw("You are not allowed to change this")
270270 }
271271
272272
273273
274274 @Callable(i)
275275 func sellNFT (price,asset) = {
276276 let $t094019437 = isPayment(i)
277277 let payment = $t094019437._1
278278 let amount = $t094019437._2
279279 let nftId = if (if (isDefined(payment.assetId))
280280 then isSignArtNFT(value(payment.assetId))
281281 else false)
282282 then toBase58String(value(payment.assetId))
283283 else throw("Only SIGN Art NFT accepted.")
284284 let $t096169708 = provideBaseData(i, nftId)
285285 let id = $t096169708._1
286286 let caller = $t096169708._2
287287 let date = $t096169708._3
288288 let isValidNFT = $t096169708._4
289289 let artId = $t096169708._5
290290 let creatorAddr = $t096169708._6
291291 let artSignID = $t096169708._7
292292 if ((size(artSignID) == 0))
293293 then throw("Artwork not found on SIGN Art")
294294 else if (!(isValidNFT))
295295 then throw("Not a valid nft")
296296 else if (!(acceptedAssetIds(asset)))
297297 then throw("Only SIGN, USDN or WAVES accepted")
298298 else if (!(validateMinSell(asset, price)))
299299 then throw("Wrong minimum sell price")
300300 else [StringEntry((getSaleKey(caller, nftId, artId, creatorAddr) + "_OPEN"), ((((((((((((toString(date) + "_") + toString(price)) + "_") + asset) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_") + id)), StringEntry(((("sale2nd_status_" + caller) + "_") + nftId), "OPEN"), StringEntry(("current_owner_on_dapp_" + nftId), caller)]
301301 }
302302
303303
304304
305305 @Callable(i)
306306 func updateSalePrice (nftId,price,asset) = {
307307 let $t01058210674 = provideBaseData(i, nftId)
308308 let id = $t01058210674._1
309309 let caller = $t01058210674._2
310310 let date = $t01058210674._3
311311 let isValidNFT = $t01058210674._4
312312 let artId = $t01058210674._5
313313 let creatorAddr = $t01058210674._6
314314 let artSignID = $t01058210674._7
315315 if ((size(artSignID) == 0))
316316 then throw("Artwork not found on SIGN Art, cancel your sale.")
317317 else if (!(isValidNFT))
318318 then throw("Not a valid nft")
319319 else {
320320 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftId))
321321 if ((saleOwner != caller))
322322 then throw("You don't own this NFT")
323323 else {
324324 let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftId))
325325 if ((saleStatus != "OPEN"))
326326 then throw("Sale not active")
327327 else if (!(acceptedAssetIds(asset)))
328328 then throw("Only SIGN, USDN or WAVES accepted")
329- else if ((price == 0))
329+ else if (!(validateMinSell(asset, price)))
330330 then throw("Wrong minimum sell price")
331- else if (!(validateMinSell(asset, price)))
332- then throw("Wrong minimum sell price")
333- else {
334- let saleKey = getSaleKey(caller, nftId, artId, creatorAddr)
335- let saleInfo = split(getStrByK((saleKey + "_OPEN")), "_")
331+ else {
332+ let saleKey = getSaleKey(caller, nftId, artId, creatorAddr)
333+ let saleInfo = split(getStrByK((saleKey + "_OPEN")), "_")
336334 [StringEntry((saleKey + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))]
337- }
335+ }
338336 }
339337 }
340338 }
341339
342340
343341
344342 @Callable(i)
345343 func cancelSale (nftId) = {
346- let $t01181412054 = provideBaseData(i, nftId)
347- let id = $t01181412054._1
348- let caller = $t01181412054._2
349- let date = $t01181412054._3
350- let isValidNFT = $t01181412054._4
351- let artId = $t01181412054._5
352- let creatorAddr = $t01181412054._6
353- let artSignID = $t01181412054._7
344+ let $t01181612056 = provideBaseData(i, nftId)
345+ let id = $t01181612056._1
346+ let caller = $t01181612056._2
347+ let date = $t01181612056._3
348+ let isValidNFT = $t01181612056._4
349+ let artId = $t01181612056._5
350+ let creatorAddr = $t01181612056._6
351+ let artSignID = $t01181612056._7
354352 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftId))
355353 if ((saleOwner != caller))
356354 then throw("You don't own this NFT")
357355 else {
358356 let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftId))
359357 if ((saleStatus != "OPEN"))
360358 then throw("Sale not active")
361359 else {
362360 let saleKey = getSaleKey(caller, nftId, artId, creatorAddr)
363361 let saleInfo = getStrByK((saleKey + "_OPEN"))
364362 [DeleteEntry((saleKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + caller) + "_") + nftId)), DeleteEntry(("current_owner_on_dapp_" + nftId)), StringEntry((((saleKey + "_") + id) + "_CANCELLED"), ((((saleInfo + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftId))]
365363 }
366364 }
367365 }
368366
369367
370368
371369 @Callable(i)
372370 func buyNFT (nftId) = {
373- let $t01288512977 = provideBaseData(i, nftId)
374- let id = $t01288512977._1
375- let caller = $t01288512977._2
376- let date = $t01288512977._3
377- let isValidNFT = $t01288512977._4
378- let artId = $t01288512977._5
379- let creatorAddr = $t01288512977._6
380- let artSignID = $t01288512977._7
371+ let $t01288712979 = provideBaseData(i, nftId)
372+ let id = $t01288712979._1
373+ let caller = $t01288712979._2
374+ let date = $t01288712979._3
375+ let isValidNFT = $t01288712979._4
376+ let artId = $t01288712979._5
377+ let creatorAddr = $t01288712979._6
378+ let artSignID = $t01288712979._7
381379 if ((size(artSignID) == 0))
382380 then throw("Artwork not found on SIGN Art, cancel your sale.")
383381 else if (!(isValidNFT))
384382 then throw("Not a valid nft")
385383 else {
386384 let saleOwner = getSaleOwnerAndStatus(nftId)
387385 let saleKey = getSaleKey(saleOwner, nftId, artId, creatorAddr)
388386 let saleInfo = getStrByK((saleKey + "_OPEN"))
389387 if ((size(saleInfo) == 0))
390388 then throw("Sale Not found!")
391389 else {
392390 let saleInfoArray = split(saleInfo, "_")
393391 if ((parseInt(saleInfoArray[1]) == 0))
394392 then throw("Offer only")
395393 else {
396- let $t01347413510 = isPayment(i)
397- let payment = $t01347413510._1
398- let amount = $t01347413510._2
394+ let $t01347613512 = isPayment(i)
395+ let payment = $t01347613512._1
396+ let amount = $t01347613512._2
399397 let paymentAssetStr = if (isDefined(payment.assetId))
400398 then toBase58String(value(payment.assetId))
401399 else ""
402400 if (if ((saleInfoArray[1] != toString(amount)))
403401 then true
404402 else (saleInfoArray[2] != paymentAssetStr))
405403 then throw("Payment infos don't match.")
406404 else {
407405 let amountForSign = fraction(amount, signCut, 100)
408406 let amountForCreator = fraction(amount, creatorCut, 100)
409407 let amountForOwner = (amount - (amountForSign + amountForCreator))
410- let $t01401314141 = setTransfers(amount, payment.assetId, nftId, creatorAddr, saleOwner, caller)
411- let signFee = $t01401314141._1
412- let creatorFee = $t01401314141._2
413- let ownerFee = $t01401314141._3
414- let collectorNFT = $t01401314141._4
408+ let $t01401514143 = setTransfers(amount, payment.assetId, nftId, creatorAddr, saleOwner, caller)
409+ let signFee = $t01401514143._1
410+ let creatorFee = $t01401514143._2
411+ let ownerFee = $t01401514143._3
412+ let collectorNFT = $t01401514143._4
415413 [DeleteEntry((saleKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftId)), DeleteEntry(("current_owner_on_dapp_" + nftId)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((saleInfo + "_CLOSED_") + toString(date)) + "_") + id) + "_") + caller)), updateNumSales(), signFee, creatorFee, ownerFee, collectorNFT]
416414 }
417415 }
418416 }
419417 }
420418 }
421419
422420
423421
424422 @Callable(i)
425423 func setOffer (nftId) = {
426- let $t01454914645 = provideBaseData(i, nftId)
427- let id = $t01454914645._1
428- let offerOwner = $t01454914645._2
429- let date = $t01454914645._3
430- let isValidNFT = $t01454914645._4
431- let artId = $t01454914645._5
432- let creatorAddr = $t01454914645._6
433- let artSignID = $t01454914645._7
424+ let $t01455114647 = provideBaseData(i, nftId)
425+ let id = $t01455114647._1
426+ let offerOwner = $t01455114647._2
427+ let date = $t01455114647._3
428+ let isValidNFT = $t01455114647._4
429+ let artId = $t01455114647._5
430+ let creatorAddr = $t01455114647._6
431+ let artSignID = $t01455114647._7
434432 if (!(isValidNFT))
435433 then throw("Not a valid nft")
436434 else {
437- let $t01470614742 = isPayment(i)
438- let payment = $t01470614742._1
439- let amount = $t01470614742._2
435+ let $t01470814744 = isPayment(i)
436+ let payment = $t01470814744._1
437+ let amount = $t01470814744._2
440438 let assetId = if (!(isDefined(payment.assetId)))
441439 then "WAVES"
442440 else toBase58String(value(payment.assetId))
443441 if (!(acceptedAssetIds(assetId)))
444442 then throw("asset not accepted")
445443 else if ((amount == 0))
446444 then throw("Offer of 0 not allowed")
447445 else if (!(validateMinSell(assetId, amount)))
448446 then throw("Wrong minimum sell price")
449447 else {
450448 let saleOwner = getSaleOwnerAndStatus(nftId)
451449 [StringEntry((getBidKey(offerOwner, nftId, saleOwner, id) + "_OPEN"), ((((((((((((((toString(date) + "_") + toString(amount)) + "_") + assetId) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_") + offerOwner) + "_") + id))]
452450 }
453451 }
454452 }
455453
456454
457455
458456 @Callable(i)
459457 func acceptOffer (nftId,offerId,offerOwner) = {
460- let $t01554415636 = provideBaseData(i, nftId)
461- let id = $t01554415636._1
462- let caller = $t01554415636._2
463- let date = $t01554415636._3
464- let isValidNFT = $t01554415636._4
465- let artId = $t01554415636._5
466- let creatorAddr = $t01554415636._6
467- let artSignID = $t01554415636._7
458+ let $t01554615638 = provideBaseData(i, nftId)
459+ let id = $t01554615638._1
460+ let caller = $t01554615638._2
461+ let date = $t01554615638._3
462+ let isValidNFT = $t01554615638._4
463+ let artId = $t01554615638._5
464+ let creatorAddr = $t01554615638._6
465+ let artSignID = $t01554615638._7
468466 if (!(isValidNFT))
469467 then throw("Not a valid nft")
470468 else {
471469 let saleOwner = getSaleOwnerAndStatus(nftId)
472470 if ((caller != saleOwner))
473471 then throw("Only sale owner can accept offer")
474472 else {
475473 let bidKey = getBidKey(offerOwner, nftId, saleOwner, offerId)
476- let $t01589015945 = getBidData(bidKey)
477- let bidDataArr = $t01589015945._1
478- let assetId = $t01589015945._2
479- let bidData = $t01589015945._3
474+ let $t01589215947 = getBidData(bidKey)
475+ let bidDataArr = $t01589215947._1
476+ let assetId = $t01589215947._2
477+ let bidData = $t01589215947._3
480478 let saleKey = getSaleKey(saleOwner, nftId, artId, creatorAddr)
481479 let saleInfo = getStrByK((saleKey + "_OPEN"))
482480 if ((size(saleInfo) == 0))
483481 then throw("Sale Not found!")
484482 else {
485483 let amount = value(parseInt(bidDataArr[1]))
486- let $t01617716304 = setTransfers(amount, assetId, nftId, creatorAddr, saleOwner, bidDataArr[6])
487- let signFee = $t01617716304._1
488- let creatorFee = $t01617716304._2
489- let ownerFee = $t01617716304._3
490- let collectorNFT = $t01617716304._4
484+ let $t01617916306 = setTransfers(amount, assetId, nftId, creatorAddr, saleOwner, bidDataArr[6])
485+ let signFee = $t01617916306._1
486+ let creatorFee = $t01617916306._2
487+ let ownerFee = $t01617916306._3
488+ let collectorNFT = $t01617916306._4
491489 [DeleteEntry((saleKey + "_OPEN")), DeleteEntry((bidKey + "_OPEN")), DeleteEntry(((("sale2nd_status_" + saleOwner) + "_") + nftId)), DeleteEntry(("current_owner_on_dapp_" + nftId)), StringEntry((bidKey + "_CLOSED"), ((((bidData + "_CLOSED_") + toString(date)) + "_") + id)), StringEntry((((saleKey + "_") + id) + "_CLOSED"), ((((((((((saleInfo + "_CLOSED-OFFER_") + toString(date)) + "_") + id) + "_") + offerOwner) + "_") + toString(amount)) + "_") + toBase58String(value(assetId)))), updateNumSales(), signFee, creatorFee, ownerFee, collectorNFT]
492490 }
493491 }
494492 }
495493 }
496494
497495
498496
499497 @Callable(i)
500498 func cancelOffer (nftId,offerId,saleOwner) = {
501- let $t01700917070 = idCallerDate(i)
502- let id = $t01700917070._1
503- let caller = $t01700917070._2
504- let date = $t01700917070._3
499+ let $t01701117072 = idCallerDate(i)
500+ let id = $t01701117072._1
501+ let caller = $t01701117072._2
502+ let date = $t01701117072._3
505503 let bidKey = getBidKey(caller, nftId, saleOwner, offerId)
506- let $t01713417189 = getBidData(bidKey)
507- let bidDataArr = $t01713417189._1
508- let assetId = $t01713417189._2
509- let bidData = $t01713417189._3
504+ let $t01713617191 = getBidData(bidKey)
505+ let bidDataArr = $t01713617191._1
506+ let assetId = $t01713617191._2
507+ let bidData = $t01713617191._3
510508 [DeleteEntry((bidKey + "_OPEN")), StringEntry((bidKey + "_CANCELLED"), ((((bidData + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
511509 }
512510
513511

github/deemru/w8io/169f3d6 
206.48 ms