tx · 2u5sHiaMmydfZDL3tV6RstoJv4f1ZcBhRtbv8qyCanCD

3N2eA4yzXa4wTj7pP8r6G144RRxZW7cmq4p:  -0.01700000 Waves

2023.10.10 12:20 [2792339] smart account 3N2eA4yzXa4wTj7pP8r6G144RRxZW7cmq4p > SELF 0.00000000 Waves

{ "type": 13, "id": "2u5sHiaMmydfZDL3tV6RstoJv4f1ZcBhRtbv8qyCanCD", "fee": 1700000, "feeAssetId": null, "timestamp": 1696929672542, "version": 2, "chainId": 84, "sender": "3N2eA4yzXa4wTj7pP8r6G144RRxZW7cmq4p", "senderPublicKey": "Hh3eFP2XFetZSfTxQiM1Ps96f68zi8Zh5ghhCZdjgdFs", "proofs": [ "2gEEgunXUHBSH5evAwMCdjsKqiQUoYvvYAnvDZQmfEYiMLbnGtpWT7wdjS6gq3H76GLrFYkrWt9rvTDqiXnHZe6H" ], "script": "base64:BgI5CAISBAoCCAgSBAoCBAgSBAoCAQgSBQoDCAEIEgMKAQgSAwoBCBIDCgEIEgUKAwgICBIGCgQICAgIRwAHVkVSU0lPTgIFMi4wLjABCWdldFN0ckJ5SwEDa2V5CQELdmFsdWVPckVsc2UCCQCdCAIFBHRoaXMFA2tleQIAAAh1bml0VGVzdAcACW9yYWNsZUZlZQkBBXZhbHVlAQkApggBCQEJZ2V0U3RyQnlLAQIPY29uZl9vcmFjbGVfZmVlAAhzaWduRGFwcAkBBXZhbHVlAQkApggBCQEJZ2V0U3RyQnlLAQIRY29uZl9zaWdud2ViX2RhcHAAC2ZlZVJlY2VpdmVyCQEJZ2V0U3RyQnlLAQIRY29uZl9mZWVfcmVjZWl2ZXIADGFydHdvcmtzRGFwcAkBBXZhbHVlAQkApggBCQEJZ2V0U3RyQnlLAQISY29uZl9hcnR3b3Jrc19kYXBwAAh1c2VyRGFwcAMFCHVuaXRUZXN0CQEFdmFsdWUBCQCmCAECIzNNdDRSR01FeWpTV1lBb2NUUHFkNTV3ZEhRUUIzUFUyVUNtCQEFdmFsdWUBCQCm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SdtGsPWcu5Ai Next: 9bxRgqbELnnbmS5r9QgNxikCPBdzV8mwJDKqP55sPT83 Diff:
OldNewDifferences
221221
222222 func checkNFTInfo (assetId) = {
223223 let nftData = split(getArtStrByK(keyNFTData(assetId)), "_")
224- let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5]))
224+ let artSignID = getStrByK(((("art_name_" + nftData[5]) + "_") + nftData[6]))
225225 if (if (!(checkArtStatus(nftData[6], nftData[5])))
226226 then !(checkArtistStatus(nftData[6]))
227227 else false)
303303
304304
305305 func provideBaseData (i,nftId) = {
306- let $t01191211952 = idCallerDate(i)
307- let id = $t01191211952._1
308- let caller = $t01191211952._2
309- let date = $t01191211952._3
310- let $t01195512024 = checkNFTInfo(nftId)
311- let isValidNFT = $t01195512024._1
312- let artId = $t01195512024._2
313- let creatorAddr = $t01195512024._3
314- let artSignID = $t01195512024._4
306+ let $t01213212172 = idCallerDate(i)
307+ let id = $t01213212172._1
308+ let caller = $t01213212172._2
309+ let date = $t01213212172._3
310+ let $t01217512244 = checkNFTInfo(nftId)
311+ let isValidNFT = $t01217512244._1
312+ let artId = $t01217512244._2
313+ let creatorAddr = $t01217512244._3
314+ let artSignID = $t01217512244._4
315315 $Tuple7(id, caller, date, isValidNFT, artId, creatorAddr, artSignID)
316316 }
317317
347347
348348 @Callable(i)
349349 func sellNFT (price,asset) = {
350- let $t01308913125 = isPayment(i)
351- let payment = $t01308913125._1
352- let amount = $t01308913125._2
350+ let $t01330913345 = isPayment(i)
351+ let payment = $t01330913345._1
352+ let amount = $t01330913345._2
353353 if ((amount != 1))
354354 then throw("No NFT attached")
355355 else {
358358 else false)
359359 then toBase58String(value(payment.assetId))
360360 else throw("Only SIGN Art NFT accepted.")
361- let $t01335913452 = provideBaseData(i, nftId)
362- let id = $t01335913452._1
363- let caller = $t01335913452._2
364- let date = $t01335913452._3
365- let isValidNFT = $t01335913452._4
366- let artId = $t01335913452._5
367- let creatorAddr = $t01335913452._6
368- let artSignID = $t01335913452._7
361+ let $t01357913672 = provideBaseData(i, nftId)
362+ let id = $t01357913672._1
363+ let caller = $t01357913672._2
364+ let date = $t01357913672._3
365+ let isValidNFT = $t01357913672._4
366+ let artId = $t01357913672._5
367+ let creatorAddr = $t01357913672._6
368+ let artSignID = $t01357913672._7
369369 if ((size(artSignID) == 0))
370370 then throw("Artwork not found on SIGN Art")
371371 else if (!(isValidNFT))
382382
383383 @Callable(i)
384384 func updateSalePrice (nftId,price,asset) = {
385- let $t01432514418 = provideBaseData(i, nftId)
386- let id = $t01432514418._1
387- let caller = $t01432514418._2
388- let date = $t01432514418._3
389- let isValidNFT = $t01432514418._4
390- let artId = $t01432514418._5
391- let creatorAddr = $t01432514418._6
392- let artSignID = $t01432514418._7
385+ let $t01454914642 = provideBaseData(i, nftId)
386+ let id = $t01454914642._1
387+ let caller = $t01454914642._2
388+ let date = $t01454914642._3
389+ let isValidNFT = $t01454914642._4
390+ let artId = $t01454914642._5
391+ let creatorAddr = $t01454914642._6
392+ let artSignID = $t01454914642._7
393393 if ((size(artSignID) == 0))
394394 then throw("Artwork not found on SIGN Art, cancel your sale.")
395395 else if (!(isValidNFT))
419419
420420 @Callable(i)
421421 func cancelSale (nftId) = {
422- let $t01555915800 = provideBaseData(i, nftId)
423- let id = $t01555915800._1
424- let caller = $t01555915800._2
425- let date = $t01555915800._3
426- let isValidNFT = $t01555915800._4
427- let artId = $t01555915800._5
428- let creatorAddr = $t01555915800._6
429- let artSignID = $t01555915800._7
422+ let $t01578316024 = provideBaseData(i, nftId)
423+ let id = $t01578316024._1
424+ let caller = $t01578316024._2
425+ let date = $t01578316024._3
426+ let isValidNFT = $t01578316024._4
427+ let artId = $t01578316024._5
428+ let creatorAddr = $t01578316024._6
429+ let artSignID = $t01578316024._7
430430 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftId))
431431 if ((saleOwner != caller))
432432 then throw("You don't own this NFT")
446446
447447 @Callable(i)
448448 func buyNFT (nftId) = {
449- let $t01663116724 = provideBaseData(i, nftId)
450- let id = $t01663116724._1
451- let caller = $t01663116724._2
452- let date = $t01663116724._3
453- let isValidNFT = $t01663116724._4
454- let artId = $t01663116724._5
455- let creatorAddr = $t01663116724._6
456- let artSignID = $t01663116724._7
449+ let $t01685516948 = provideBaseData(i, nftId)
450+ let id = $t01685516948._1
451+ let caller = $t01685516948._2
452+ let date = $t01685516948._3
453+ let isValidNFT = $t01685516948._4
454+ let artId = $t01685516948._5
455+ let creatorAddr = $t01685516948._6
456+ let artSignID = $t01685516948._7
457457 if ((size(artSignID) == 0))
458458 then throw("Artwork not found on SIGN Art, cancel your sale.")
459459 else if (!(isValidNFT))
469469 if ((parseInt(saleInfoArray[1]) == 0))
470470 then throw("Offer only")
471471 else {
472- let $t01722117257 = isPayment(i)
473- let payment = $t01722117257._1
474- let amount = $t01722117257._2
472+ let $t01744517481 = isPayment(i)
473+ let payment = $t01744517481._1
474+ let amount = $t01744517481._2
475475 let paymentAssetStr = if (isDefined(payment.assetId))
476476 then toBase58String(value(payment.assetId))
477477 else ""
480480 else (saleInfoArray[2] != paymentAssetStr))
481481 then throw("Payment infos don't match.")
482482 else {
483- let $t01777017909 = setTransfers(amount, payment.assetId, nftId, creatorAddr, saleOwner, caller, artId)
484- let commissions = $t01777017909._1
485- let creatorFee = $t01777017909._2
486- let ownerFee = $t01777017909._3
487- let collectorNFT = $t01777017909._4
483+ let $t01799418133 = setTransfers(amount, payment.assetId, nftId, creatorAddr, saleOwner, caller, artId)
484+ let commissions = $t01799418133._1
485+ let creatorFee = $t01799418133._2
486+ let ownerFee = $t01799418133._3
487+ let collectorNFT = $t01799418133._4
488488 (([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(), ownerFee, collectorNFT] ++ creatorFee) ++ commissions)
489489 }
490490 }
496496
497497 @Callable(i)
498498 func setOffer (nftId) = {
499- let $t01832018417 = provideBaseData(i, nftId)
500- let id = $t01832018417._1
501- let offerOwner = $t01832018417._2
502- let date = $t01832018417._3
503- let isValidNFT = $t01832018417._4
504- let artId = $t01832018417._5
505- let creatorAddr = $t01832018417._6
506- let artSignID = $t01832018417._7
499+ let $t01854418641 = provideBaseData(i, nftId)
500+ let id = $t01854418641._1
501+ let offerOwner = $t01854418641._2
502+ let date = $t01854418641._3
503+ let isValidNFT = $t01854418641._4
504+ let artId = $t01854418641._5
505+ let creatorAddr = $t01854418641._6
506+ let artSignID = $t01854418641._7
507507 if (!(isValidNFT))
508508 then throw("Not a valid nft")
509509 else {
510- let $t01847818514 = isPayment(i)
511- let payment = $t01847818514._1
512- let amount = $t01847818514._2
510+ let $t01870218738 = isPayment(i)
511+ let payment = $t01870218738._1
512+ let amount = $t01870218738._2
513513 let assetId = if (!(isDefined(payment.assetId)))
514514 then "WAVES"
515515 else toBase58String(value(payment.assetId))
530530
531531 @Callable(i)
532532 func acceptOffer (nftId,offerId,offerOwner) = {
533- let $t01930719400 = provideBaseData(i, nftId)
534- let id = $t01930719400._1
535- let caller = $t01930719400._2
536- let date = $t01930719400._3
537- let isValidNFT = $t01930719400._4
538- let artId = $t01930719400._5
539- let creatorAddr = $t01930719400._6
540- let artSignID = $t01930719400._7
533+ let $t01953119624 = provideBaseData(i, nftId)
534+ let id = $t01953119624._1
535+ let caller = $t01953119624._2
536+ let date = $t01953119624._3
537+ let isValidNFT = $t01953119624._4
538+ let artId = $t01953119624._5
539+ let creatorAddr = $t01953119624._6
540+ let artSignID = $t01953119624._7
541541 if (!(isValidNFT))
542542 then throw("Not a valid nft")
543543 else {
546546 then throw("Only sale owner can accept offer")
547547 else {
548548 let bidKey = getBidKey(offerOwner, nftId, saleOwner, offerId)
549- let $t01965419709 = getBidData(bidKey)
550- let bidDataArr = $t01965419709._1
551- let assetId = $t01965419709._2
552- let bidData = $t01965419709._3
549+ let $t01987819933 = getBidData(bidKey)
550+ let bidDataArr = $t01987819933._1
551+ let assetId = $t01987819933._2
552+ let bidData = $t01987819933._3
553553 let saleKey = getSaleKey(saleOwner, nftId, artId, creatorAddr)
554554 let saleInfo = getStrByK((saleKey + "_OPEN"))
555555 if ((size(saleInfo) == 0))
556556 then throw("Sale Not found!")
557557 else {
558558 let amount = value(parseInt(bidDataArr[1]))
559- let $t01994520083 = setTransfers(amount, assetId, nftId, creatorAddr, saleOwner, bidDataArr[6], artId)
560- let commissions = $t01994520083._1
561- let creatorFee = $t01994520083._2
562- let ownerFee = $t01994520083._3
563- let collectorNFT = $t01994520083._4
559+ let $t02016920307 = setTransfers(amount, assetId, nftId, creatorAddr, saleOwner, bidDataArr[6], artId)
560+ let commissions = $t02016920307._1
561+ let creatorFee = $t02016920307._2
562+ let ownerFee = $t02016920307._3
563+ let collectorNFT = $t02016920307._4
564564 let assetIdStr = if (isDefined(assetId))
565565 then toBase58String(value(assetId))
566566 else "WAVES"
574574
575575 @Callable(i)
576576 func cancelOffer (nftId,offerId,offerOwner,saleOwner) = {
577- let $t02088320957 = idCallerDate(i)
578- let id = $t02088320957._1
579- let caller = $t02088320957._2
580- let date = $t02088320957._3
577+ let $t02110721181 = idCallerDate(i)
578+ let id = $t02110721181._1
579+ let caller = $t02110721181._2
580+ let date = $t02110721181._3
581581 if (if ((caller != offerOwner))
582582 then (caller != saleOwner)
583583 else false)
584584 then throw("You cannot cancel this offer.")
585585 else {
586586 let bidKey = getBidKey(offerOwner, nftId, saleOwner, offerId)
587- let $t02112921184 = getBidData(bidKey)
588- let bidDataArr = $t02112921184._1
589- let assetId = $t02112921184._2
590- let bidData = $t02112921184._3
587+ let $t02135321408 = getBidData(bidKey)
588+ let bidDataArr = $t02135321408._1
589+ let assetId = $t02135321408._2
590+ let bidData = $t02135321408._3
591591 [DeleteEntry((bidKey + "_OPEN")), StringEntry((bidKey + "_CANCELLED"), ((((bidData + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
592592 }
593593 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let VERSION = "2.0.0"
55
66 func getStrByK (key) = valueOrElse(getString(this, key), "")
77
88
99 let unitTest = false
1010
1111 let oracleFee = value(addressFromString(getStrByK("conf_oracle_fee")))
1212
1313 let signDapp = value(addressFromString(getStrByK("conf_signweb_dapp")))
1414
1515 let feeReceiver = getStrByK("conf_fee_receiver")
1616
1717 let artworksDapp = value(addressFromString(getStrByK("conf_artworks_dapp")))
1818
1919 let userDapp = if (unitTest)
2020 then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm"))
2121 else value(addressFromString(getStrByK("conf_users_dapp")))
2222
2323 let whitelistDapp = value(addressFromString(getStrByK("conf_whitelist_dapp")))
2424
2525 let puzzle_art_pool = getStrByK("conf_puzzle_art_pool")
2626
2727 let usdtPPAssetId_str = getStrByK("conf_accepted_asset_USDT_PP")
2828
2929 let artAssetId_str = getStrByK("conf_accepted_asset_ART")
3030
3131 let usdcPPAssetId_str = getStrByK("conf_accepted_asset_USDC_PP")
3232
3333 let eastAssetId_str = getStrByK("conf_accepted_asset_EAST")
3434
3535 let puzzleAssetId_str = getStrByK("conf_accepted_asset_PUZZLE")
3636
3737 let ethPPAssetId_str = getStrByK("conf_accepted_asset_ETH_PP")
3838
3939 let wavesAssetId_str = "WAVES"
4040
4141 let usdtPPAssetId = fromBase58String(usdtPPAssetId_str)
4242
4343 let artAssetId = fromBase58String(artAssetId_str)
4444
4545 let usdcPPAssetId = fromBase58String(usdcPPAssetId_str)
4646
4747 let eastAssetId = fromBase58String(eastAssetId_str)
4848
4949 let puzzleAssetId = fromBase58String(puzzleAssetId_str)
5050
5151 let ethPPAssetId = fromBase58String(ethPPAssetId_str)
5252
5353 let wavesAssetId = base58''
5454
5555 let all_accepted_assets = [usdtPPAssetId_str, artAssetId_str, usdcPPAssetId_str, eastAssetId_str, puzzleAssetId_str, wavesAssetId_str, ethPPAssetId_str]
5656
5757 let chris = getStrByK("conf_admin_1")
5858
5959 let commission_fee = 3
6060
6161 let userSuspended = "SUSPENDED"
6262
6363 let userRemoved = "REMOVED"
6464
6565 let artIllegal = "ILLEGAL"
6666
6767 let artSuspended = "SUSPENDED"
6868
6969 let dappRunningKey = "conf_dapp_is_running"
7070
7171 let maintenanceMSGKey = "conf_maintenance_msg"
7272
7373 let dappRunning = valueOrElse(getBoolean(this, dappRunningKey), true)
7474
7575 let maintenanceMSG = valueOrElse(getString(this, maintenanceMSGKey), "")
7676
7777 let numSalesK = "num_sales"
7878
7979 func getUserStrByK (key) = valueOrElse(getString(userDapp, key), "Error")
8080
8181
8282 func getArtworkRoyalties (key) = valueOrElse(getInteger(artworksDapp, key), 1000)
8383
8484
8585 func getArtStrByK (key) = valueOrElse(getString(artworksDapp, key), "")
8686
8787
8888 func getIntByK (key) = valueOrElse(getInteger(this, key), 0)
8989
9090
9191 func keyUserStatus (addr) = ("user_status_" + addr)
9292
9393
9494 func keyArtworkRoyalties (caller,artId) = ((("art_royalties_" + artId) + "_") + caller)
9595
9696
9797 func keySignID (artistAddr,artId) = ((("art_signid_" + artId) + "_") + artistAddr)
9898
9999
100100 func keyFlag (artistAddr,artId) = ((("art_flag_" + artId) + "_") + artistAddr)
101101
102102
103103 func keyNFTData (id) = ("nft_" + id)
104104
105105
106106 func getSaleKey (caller,nftId,artId,creatorAddr) = ((((((("sale2nd_info_" + caller) + "_") + nftId) + "_") + artId) + "_") + creatorAddr)
107107
108108
109109 func getBidKey (offerOwner,nftId,saleOwner,offerId) = ((((((("offer2nd_" + offerOwner) + "_") + nftId) + "_") + saleOwner) + "_") + offerId)
110110
111111
112112 func getIntByKFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle")
113113
114114
115115 let currentCertificationPrice = getIntByKFromOracle(("certification_fee_" + toBase58String(artAssetId)))
116116
117117 func keyArtistAgentAddr (artistAddr) = ("artist_agent_" + artistAddr)
118118
119119
120120 func keySecondaryShareAgent (artistAddr) = ("artist_agent_secondary_" + artistAddr)
121121
122122
123123 func keyArtistPublicAgentAddr (artistAddr) = ("artist_public_agent_" + artistAddr)
124124
125125
126126 func keySecondarySharePublicAgent (artistAddr) = ("artist_public_agent_secondary_" + artistAddr)
127127
128128
129129 func idCallerDate (i) = if (!(dappRunning))
130130 then throw(maintenanceMSG)
131131 else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
132132
133133
134134 func isPayment (i) = if ((size(i.payments) == 0))
135135 then throw("No payment attached")
136136 else {
137137 let payment = value(i.payments[0])
138138 let amount = value(payment.amount)
139139 $Tuple2(payment, amount)
140140 }
141141
142142
143143 func assetIsValid (assetDetails) = if (if (if ((assetDetails.quantity == 1))
144144 then (assetDetails.decimals == 0)
145145 else false)
146146 then (assetDetails.reissuable == false)
147147 else false)
148148 then (assetDetails.issuer == artworksDapp)
149149 else false
150150
151151
152152 func isSignArtNFT (id) = {
153153 let assetDetails = value(assetInfo(id))
154154 assetIsValid(assetDetails)
155155 }
156156
157157
158158 func acceptedAssetIds (assetId) = if (!(containsElement(all_accepted_assets, assetId)))
159159 then throw("Only $ART, USDT-PP, USDC-PP, EAST, PUZZLE, ETH or WAVES accepted")
160160 else true
161161
162162
163163 func getBidAssetId (assetId) = if ((assetId == "WAVES"))
164164 then unit
165165 else fromBase58String(assetId)
166166
167167
168168 func getSaleOwnerAndStatus (nftid) = {
169169 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid))
170170 if ((size(saleOwner) == 0))
171171 then throw("NFT not found")
172172 else {
173173 let saleStatus = getStrByK(((("sale2nd_status_" + saleOwner) + "_") + nftid))
174174 if ((saleStatus != "OPEN"))
175175 then throw("NFT not for sale")
176176 else saleOwner
177177 }
178178 }
179179
180180
181181 func getBidData (key) = {
182182 let bidData = getStrByK((key + "_OPEN"))
183183 if ((bidData == ""))
184184 then throw("Offer not found")
185185 else {
186186 let bidDataArr = split(bidData, "_")
187187 let assetId = getBidAssetId(bidDataArr[2])
188188 $Tuple3(bidDataArr, assetId, bidData)
189189 }
190190 }
191191
192192
193193 func getBalance (assetId) = match assetId {
194194 case b: ByteVector =>
195195 assetBalance(this, b)
196196 case _ =>
197197 wavesBalance(this).available
198198 }
199199
200200
201201 func artIsValid (artStatus) = if ((artStatus != artIllegal))
202202 then (artStatus != artSuspended)
203203 else false
204204
205205
206206 func checkArtStatus (addr,id) = {
207207 let artStatus = getArtStrByK(keyFlag(addr, id))
208208 if (artIsValid(artStatus))
209209 then true
210210 else throw(("Original Artwork flagged as " + artStatus))
211211 }
212212
213213
214214 func checkArtistStatus (addr) = {
215215 let artistStatus = getUserStrByK(keyUserStatus(addr))
216216 if (containsElement([userSuspended, userRemoved], artistStatus))
217217 then throw(("Original Artist " + artistStatus))
218218 else true
219219 }
220220
221221
222222 func checkNFTInfo (assetId) = {
223223 let nftData = split(getArtStrByK(keyNFTData(assetId)), "_")
224- let artSignID = getArtStrByK(keySignID(nftData[6], nftData[5]))
224+ let artSignID = getStrByK(((("art_name_" + nftData[5]) + "_") + nftData[6]))
225225 if (if (!(checkArtStatus(nftData[6], nftData[5])))
226226 then !(checkArtistStatus(nftData[6]))
227227 else false)
228228 then $Tuple4(false, nftData[5], nftData[6], artSignID)
229229 else $Tuple4(true, nftData[5], nftData[6], artSignID)
230230 }
231231
232232
233233 func checkARTExist (artId,creatorAddr) = {
234234 let artSignID = getArtStrByK(keySignID(creatorAddr, artId))
235235 if ((size(artSignID) == 0))
236236 then throw("Artwork not found on SIGN Art")
237237 else if (if (!(checkArtStatus(creatorAddr, artId)))
238238 then !(checkArtistStatus(creatorAddr))
239239 else false)
240240 then false
241241 else true
242242 }
243243
244244
245245 func setTransfers (amount,assetId,nftid,creatorAddr,saleOwner,caller,artId) = {
246246 let creatorCut = getArtworkRoyalties(keyArtworkRoyalties(creatorAddr, artId))
247247 let agent = valueOrElse(getString(userDapp, keyArtistAgentAddr(creatorAddr)), feeReceiver)
248248 let agentShare = valueOrElse(getInteger(userDapp, keySecondaryShareAgent(creatorAddr)), 0)
249249 let publicAgent = valueOrElse(getString(userDapp, keyArtistPublicAgentAddr(creatorAddr)), feeReceiver)
250250 let publicAgentShare = valueOrElse(getInteger(userDapp, keySecondarySharePublicAgent(creatorAddr)), 0)
251251 let amountForSign = fraction(amount, commission_fee, 100)
252252 let amountForCreator = fraction(amount, creatorCut, 10000)
253253 let amountForOwner = (amount - (amountForSign + amountForCreator))
254254 let amountForAgent = if (if ((agent != feeReceiver))
255255 then (agentShare > 0)
256256 else false)
257257 then fraction(amount, agentShare, 10000)
258258 else 0
259259 let amountForPublicAgent = if (if ((publicAgent != feeReceiver))
260260 then (publicAgentShare > 0)
261261 else false)
262262 then fraction(amount, publicAgentShare, 10000)
263263 else 0
264264 let amount_commission_for_sign_to_swap = if ((amountForAgent != 0))
265265 then (amountForSign - amountForAgent)
266266 else amountForSign
267267 let amount_art_before = getBalance(artAssetId)
268268 if ((amount_art_before == amount_art_before))
269269 then {
270270 let swap_fee_to_art = if ((assetId != artAssetId))
271271 then invoke(Address(fromBase58String(puzzle_art_pool)), "swap", [artAssetId_str, 1], [AttachedPayment(assetId, amount_commission_for_sign_to_swap)])
272272 else unit
273273 if ((swap_fee_to_art == swap_fee_to_art))
274274 then {
275275 let amount_art_after = getBalance(artAssetId)
276276 if ((amount_art_after == amount_art_after))
277277 then {
278278 let commissions = if ((amountForAgent != 0))
279279 then [ScriptTransfer(Address(fromBase58String(feeReceiver)), if ((assetId == artAssetId))
280280 then (amountForSign - amountForAgent)
281281 else (amount_art_after - amount_art_before), artAssetId), ScriptTransfer(Address(fromBase58String(agent)), amountForAgent, assetId)]
282282 else [ScriptTransfer(Address(fromBase58String(feeReceiver)), if ((assetId == artAssetId))
283283 then amountForSign
284284 else (amount_art_after - amount_art_before), artAssetId)]
285285 let creatorFee = if ((amountForPublicAgent != 0))
286286 then [ScriptTransfer(Address(fromBase58String(publicAgent)), amountForPublicAgent, assetId), ScriptTransfer(Address(fromBase58String(creatorAddr)), (amountForCreator - amountForPublicAgent), assetId)]
287287 else [ScriptTransfer(Address(fromBase58String(creatorAddr)), amountForCreator, assetId)]
288288 let ownerFee = ScriptTransfer(Address(fromBase58String(saleOwner)), amountForOwner, assetId)
289289 let collectorNFT = ScriptTransfer(Address(fromBase58String(caller)), 1, fromBase58String(nftid))
290290 $Tuple4(commissions, creatorFee, ownerFee, collectorNFT)
291291 }
292292 else throw("Strict value is not equal to itself.")
293293 }
294294 else throw("Strict value is not equal to itself.")
295295 }
296296 else throw("Strict value is not equal to itself.")
297297 }
298298
299299
300300 func validateMinSell (price) = if ((0 >= price))
301301 then throw("Wrong minimum sell price")
302302 else true
303303
304304
305305 func provideBaseData (i,nftId) = {
306- let $t01191211952 = idCallerDate(i)
307- let id = $t01191211952._1
308- let caller = $t01191211952._2
309- let date = $t01191211952._3
310- let $t01195512024 = checkNFTInfo(nftId)
311- let isValidNFT = $t01195512024._1
312- let artId = $t01195512024._2
313- let creatorAddr = $t01195512024._3
314- let artSignID = $t01195512024._4
306+ let $t01213212172 = idCallerDate(i)
307+ let id = $t01213212172._1
308+ let caller = $t01213212172._2
309+ let date = $t01213212172._3
310+ let $t01217512244 = checkNFTInfo(nftId)
311+ let isValidNFT = $t01217512244._1
312+ let artId = $t01217512244._2
313+ let creatorAddr = $t01217512244._3
314+ let artSignID = $t01217512244._4
315315 $Tuple7(id, caller, date, isValidNFT, artId, creatorAddr, artSignID)
316316 }
317317
318318
319319 func updateNumSales () = {
320320 let numSales = getIntByK(numSalesK)
321321 IntegerEntry(numSalesK, (numSales + 1))
322322 }
323323
324324
325325 @Callable(invoke)
326326 func setConf (key,val) = {
327327 let caller = toString(invoke.caller)
328328 if (containsElement([chris, toString(this)], caller))
329329 then if (contains(key, "conf_"))
330330 then [StringEntry(key, val)]
331331 else throw("Entries starting with conf_ only")
332332 else throw("You are not allowed to change this")
333333 }
334334
335335
336336
337337 @Callable(invoke)
338338 func appRunning (isLive,message) = {
339339 let caller = toString(invoke.caller)
340340 let id = toBase58String(invoke.transactionId)
341341 if (containsElement([chris, toString(this)], caller))
342342 then [BooleanEntry(dappRunningKey, isLive), StringEntry(maintenanceMSGKey, message)]
343343 else throw("You are not allowed to change this")
344344 }
345345
346346
347347
348348 @Callable(i)
349349 func sellNFT (price,asset) = {
350- let $t01308913125 = isPayment(i)
351- let payment = $t01308913125._1
352- let amount = $t01308913125._2
350+ let $t01330913345 = isPayment(i)
351+ let payment = $t01330913345._1
352+ let amount = $t01330913345._2
353353 if ((amount != 1))
354354 then throw("No NFT attached")
355355 else {
356356 let nftId = if (if (isDefined(payment.assetId))
357357 then isSignArtNFT(value(payment.assetId))
358358 else false)
359359 then toBase58String(value(payment.assetId))
360360 else throw("Only SIGN Art NFT accepted.")
361- let $t01335913452 = provideBaseData(i, nftId)
362- let id = $t01335913452._1
363- let caller = $t01335913452._2
364- let date = $t01335913452._3
365- let isValidNFT = $t01335913452._4
366- let artId = $t01335913452._5
367- let creatorAddr = $t01335913452._6
368- let artSignID = $t01335913452._7
361+ let $t01357913672 = provideBaseData(i, nftId)
362+ let id = $t01357913672._1
363+ let caller = $t01357913672._2
364+ let date = $t01357913672._3
365+ let isValidNFT = $t01357913672._4
366+ let artId = $t01357913672._5
367+ let creatorAddr = $t01357913672._6
368+ let artSignID = $t01357913672._7
369369 if ((size(artSignID) == 0))
370370 then throw("Artwork not found on SIGN Art")
371371 else if (!(isValidNFT))
372372 then throw("Not a valid nft")
373373 else if (!(acceptedAssetIds(asset)))
374374 then throw("Only SIGN, USDN, USDT or WAVES accepted")
375375 else if (!(validateMinSell(price)))
376376 then throw("Wrong minimum sell price")
377377 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)]
378378 }
379379 }
380380
381381
382382
383383 @Callable(i)
384384 func updateSalePrice (nftId,price,asset) = {
385- let $t01432514418 = provideBaseData(i, nftId)
386- let id = $t01432514418._1
387- let caller = $t01432514418._2
388- let date = $t01432514418._3
389- let isValidNFT = $t01432514418._4
390- let artId = $t01432514418._5
391- let creatorAddr = $t01432514418._6
392- let artSignID = $t01432514418._7
385+ let $t01454914642 = provideBaseData(i, nftId)
386+ let id = $t01454914642._1
387+ let caller = $t01454914642._2
388+ let date = $t01454914642._3
389+ let isValidNFT = $t01454914642._4
390+ let artId = $t01454914642._5
391+ let creatorAddr = $t01454914642._6
392+ let artSignID = $t01454914642._7
393393 if ((size(artSignID) == 0))
394394 then throw("Artwork not found on SIGN Art, cancel your sale.")
395395 else if (!(isValidNFT))
396396 then throw("Not a valid nft")
397397 else {
398398 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftId))
399399 if ((saleOwner != caller))
400400 then throw("You don't own this NFT")
401401 else {
402402 let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftId))
403403 if ((saleStatus != "OPEN"))
404404 then throw("Sale not active")
405405 else if (!(acceptedAssetIds(asset)))
406406 then throw("Only SIGN, USDN, USDT or WAVES accepted")
407407 else if (!(validateMinSell(price)))
408408 then throw("Wrong minimum sell price")
409409 else {
410410 let saleKey = getSaleKey(caller, nftId, artId, creatorAddr)
411411 let saleInfo = split(getStrByK((saleKey + "_OPEN")), "_")
412412 [StringEntry((saleKey + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))]
413413 }
414414 }
415415 }
416416 }
417417
418418
419419
420420 @Callable(i)
421421 func cancelSale (nftId) = {
422- let $t01555915800 = provideBaseData(i, nftId)
423- let id = $t01555915800._1
424- let caller = $t01555915800._2
425- let date = $t01555915800._3
426- let isValidNFT = $t01555915800._4
427- let artId = $t01555915800._5
428- let creatorAddr = $t01555915800._6
429- let artSignID = $t01555915800._7
422+ let $t01578316024 = provideBaseData(i, nftId)
423+ let id = $t01578316024._1
424+ let caller = $t01578316024._2
425+ let date = $t01578316024._3
426+ let isValidNFT = $t01578316024._4
427+ let artId = $t01578316024._5
428+ let creatorAddr = $t01578316024._6
429+ let artSignID = $t01578316024._7
430430 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftId))
431431 if ((saleOwner != caller))
432432 then throw("You don't own this NFT")
433433 else {
434434 let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftId))
435435 if ((saleStatus != "OPEN"))
436436 then throw("Sale not active")
437437 else {
438438 let saleKey = getSaleKey(caller, nftId, artId, creatorAddr)
439439 let saleInfo = getStrByK((saleKey + "_OPEN"))
440440 [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))]
441441 }
442442 }
443443 }
444444
445445
446446
447447 @Callable(i)
448448 func buyNFT (nftId) = {
449- let $t01663116724 = provideBaseData(i, nftId)
450- let id = $t01663116724._1
451- let caller = $t01663116724._2
452- let date = $t01663116724._3
453- let isValidNFT = $t01663116724._4
454- let artId = $t01663116724._5
455- let creatorAddr = $t01663116724._6
456- let artSignID = $t01663116724._7
449+ let $t01685516948 = provideBaseData(i, nftId)
450+ let id = $t01685516948._1
451+ let caller = $t01685516948._2
452+ let date = $t01685516948._3
453+ let isValidNFT = $t01685516948._4
454+ let artId = $t01685516948._5
455+ let creatorAddr = $t01685516948._6
456+ let artSignID = $t01685516948._7
457457 if ((size(artSignID) == 0))
458458 then throw("Artwork not found on SIGN Art, cancel your sale.")
459459 else if (!(isValidNFT))
460460 then throw("Not a valid nft")
461461 else {
462462 let saleOwner = getSaleOwnerAndStatus(nftId)
463463 let saleKey = getSaleKey(saleOwner, nftId, artId, creatorAddr)
464464 let saleInfo = getStrByK((saleKey + "_OPEN"))
465465 if ((size(saleInfo) == 0))
466466 then throw("Sale Not found!")
467467 else {
468468 let saleInfoArray = split(saleInfo, "_")
469469 if ((parseInt(saleInfoArray[1]) == 0))
470470 then throw("Offer only")
471471 else {
472- let $t01722117257 = isPayment(i)
473- let payment = $t01722117257._1
474- let amount = $t01722117257._2
472+ let $t01744517481 = isPayment(i)
473+ let payment = $t01744517481._1
474+ let amount = $t01744517481._2
475475 let paymentAssetStr = if (isDefined(payment.assetId))
476476 then toBase58String(value(payment.assetId))
477477 else ""
478478 if (if ((saleInfoArray[1] != toString(amount)))
479479 then true
480480 else (saleInfoArray[2] != paymentAssetStr))
481481 then throw("Payment infos don't match.")
482482 else {
483- let $t01777017909 = setTransfers(amount, payment.assetId, nftId, creatorAddr, saleOwner, caller, artId)
484- let commissions = $t01777017909._1
485- let creatorFee = $t01777017909._2
486- let ownerFee = $t01777017909._3
487- let collectorNFT = $t01777017909._4
483+ let $t01799418133 = setTransfers(amount, payment.assetId, nftId, creatorAddr, saleOwner, caller, artId)
484+ let commissions = $t01799418133._1
485+ let creatorFee = $t01799418133._2
486+ let ownerFee = $t01799418133._3
487+ let collectorNFT = $t01799418133._4
488488 (([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(), ownerFee, collectorNFT] ++ creatorFee) ++ commissions)
489489 }
490490 }
491491 }
492492 }
493493 }
494494
495495
496496
497497 @Callable(i)
498498 func setOffer (nftId) = {
499- let $t01832018417 = provideBaseData(i, nftId)
500- let id = $t01832018417._1
501- let offerOwner = $t01832018417._2
502- let date = $t01832018417._3
503- let isValidNFT = $t01832018417._4
504- let artId = $t01832018417._5
505- let creatorAddr = $t01832018417._6
506- let artSignID = $t01832018417._7
499+ let $t01854418641 = provideBaseData(i, nftId)
500+ let id = $t01854418641._1
501+ let offerOwner = $t01854418641._2
502+ let date = $t01854418641._3
503+ let isValidNFT = $t01854418641._4
504+ let artId = $t01854418641._5
505+ let creatorAddr = $t01854418641._6
506+ let artSignID = $t01854418641._7
507507 if (!(isValidNFT))
508508 then throw("Not a valid nft")
509509 else {
510- let $t01847818514 = isPayment(i)
511- let payment = $t01847818514._1
512- let amount = $t01847818514._2
510+ let $t01870218738 = isPayment(i)
511+ let payment = $t01870218738._1
512+ let amount = $t01870218738._2
513513 let assetId = if (!(isDefined(payment.assetId)))
514514 then "WAVES"
515515 else toBase58String(value(payment.assetId))
516516 if (!(acceptedAssetIds(assetId)))
517517 then throw("asset not accepted")
518518 else if ((amount == 0))
519519 then throw("Offer of 0 not allowed")
520520 else if (!(validateMinSell(amount)))
521521 then throw("Wrong minimum sell price")
522522 else {
523523 let saleOwner = getSaleOwnerAndStatus(nftId)
524524 [StringEntry((getBidKey(offerOwner, nftId, saleOwner, id) + "_OPEN"), ((((((((((((((toString(date) + "_") + toString(amount)) + "_") + assetId) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_") + offerOwner) + "_") + id))]
525525 }
526526 }
527527 }
528528
529529
530530
531531 @Callable(i)
532532 func acceptOffer (nftId,offerId,offerOwner) = {
533- let $t01930719400 = provideBaseData(i, nftId)
534- let id = $t01930719400._1
535- let caller = $t01930719400._2
536- let date = $t01930719400._3
537- let isValidNFT = $t01930719400._4
538- let artId = $t01930719400._5
539- let creatorAddr = $t01930719400._6
540- let artSignID = $t01930719400._7
533+ let $t01953119624 = provideBaseData(i, nftId)
534+ let id = $t01953119624._1
535+ let caller = $t01953119624._2
536+ let date = $t01953119624._3
537+ let isValidNFT = $t01953119624._4
538+ let artId = $t01953119624._5
539+ let creatorAddr = $t01953119624._6
540+ let artSignID = $t01953119624._7
541541 if (!(isValidNFT))
542542 then throw("Not a valid nft")
543543 else {
544544 let saleOwner = getSaleOwnerAndStatus(nftId)
545545 if ((caller != saleOwner))
546546 then throw("Only sale owner can accept offer")
547547 else {
548548 let bidKey = getBidKey(offerOwner, nftId, saleOwner, offerId)
549- let $t01965419709 = getBidData(bidKey)
550- let bidDataArr = $t01965419709._1
551- let assetId = $t01965419709._2
552- let bidData = $t01965419709._3
549+ let $t01987819933 = getBidData(bidKey)
550+ let bidDataArr = $t01987819933._1
551+ let assetId = $t01987819933._2
552+ let bidData = $t01987819933._3
553553 let saleKey = getSaleKey(saleOwner, nftId, artId, creatorAddr)
554554 let saleInfo = getStrByK((saleKey + "_OPEN"))
555555 if ((size(saleInfo) == 0))
556556 then throw("Sale Not found!")
557557 else {
558558 let amount = value(parseInt(bidDataArr[1]))
559- let $t01994520083 = setTransfers(amount, assetId, nftId, creatorAddr, saleOwner, bidDataArr[6], artId)
560- let commissions = $t01994520083._1
561- let creatorFee = $t01994520083._2
562- let ownerFee = $t01994520083._3
563- let collectorNFT = $t01994520083._4
559+ let $t02016920307 = setTransfers(amount, assetId, nftId, creatorAddr, saleOwner, bidDataArr[6], artId)
560+ let commissions = $t02016920307._1
561+ let creatorFee = $t02016920307._2
562+ let ownerFee = $t02016920307._3
563+ let collectorNFT = $t02016920307._4
564564 let assetIdStr = if (isDefined(assetId))
565565 then toBase58String(value(assetId))
566566 else "WAVES"
567567 (([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)) + "_") + assetIdStr)), updateNumSales(), ownerFee, collectorNFT] ++ creatorFee) ++ commissions)
568568 }
569569 }
570570 }
571571 }
572572
573573
574574
575575 @Callable(i)
576576 func cancelOffer (nftId,offerId,offerOwner,saleOwner) = {
577- let $t02088320957 = idCallerDate(i)
578- let id = $t02088320957._1
579- let caller = $t02088320957._2
580- let date = $t02088320957._3
577+ let $t02110721181 = idCallerDate(i)
578+ let id = $t02110721181._1
579+ let caller = $t02110721181._2
580+ let date = $t02110721181._3
581581 if (if ((caller != offerOwner))
582582 then (caller != saleOwner)
583583 else false)
584584 then throw("You cannot cancel this offer.")
585585 else {
586586 let bidKey = getBidKey(offerOwner, nftId, saleOwner, offerId)
587- let $t02112921184 = getBidData(bidKey)
588- let bidDataArr = $t02112921184._1
589- let assetId = $t02112921184._2
590- let bidData = $t02112921184._3
587+ let $t02135321408 = getBidData(bidKey)
588+ let bidDataArr = $t02135321408._1
589+ let assetId = $t02135321408._2
590+ let bidData = $t02135321408._3
591591 [DeleteEntry((bidKey + "_OPEN")), StringEntry((bidKey + "_CANCELLED"), ((((bidData + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
592592 }
593593 }
594594
595595

github/deemru/w8io/026f985 
119.33 ms