tx · 2JxtmcDZGopstmYjUg5n3QDFwBvANp7cgSrjk9RnTpGG

3N2eA4yzXa4wTj7pP8r6G144RRxZW7cmq4p:  -0.01400000 Waves

2022.02.02 15:12 [1905954] smart account 3N2eA4yzXa4wTj7pP8r6G144RRxZW7cmq4p > SELF 0.00000000 Waves

{ "type": 13, "id": "2JxtmcDZGopstmYjUg5n3QDFwBvANp7cgSrjk9RnTpGG", "fee": 1400000, "feeAssetId": null, "timestamp": 1643804024277, "version": 2, "chainId": 84, "sender": "3N2eA4yzXa4wTj7pP8r6G144RRxZW7cmq4p", "senderPublicKey": "Hh3eFP2XFetZSfTxQiM1Ps96f68zi8Zh5ghhCZdjgdFs", "proofs": [ "4MvVQCrwm7cCQToXyjbvi7wd2xrECzpke9FTYC7r3h4CPUENe4EAah322dg6yzNhn2PJo7KJ6B2U6z5AxWGJbk14" ], "script": "base64:AAIFAAAAAAAAADMIAhIECgIECBIECgIBCBIFCgMIAQgSAwoBCBIDCgEIEgMKAQgSBQoDCAgIEgYKBAgICAgAAAAzAAAAAAh1bml0VGVzdAcAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAIc2lnbkRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAADGFydHdvcmtzRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkJ5bmZiWEMyS2FzdFV4aHVrY01VYUU1OEs5Y0JkQjlVWQAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAh1c2VyRGFwcAMFAAAACHVuaXRUZXN0CQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNdDRSR01FeWpTV1lBb2NUUH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GVPd25lcgcJAAACAAAAAQIAAAAdWW91IGNhbm5vdCBjYW5jZWwgdGhpcyBvZmZlci4EAAAABmJpZEtleQkBAAAACWdldEJpZEtleQAAAAQFAAAACm9mZmVyT3duZXIFAAAABW5mdElkBQAAAAlzYWxlT3duZXIFAAAAB29mZmVySWQEAAAADSR0MDE3NDA0MTc0NTkJAQAAAApnZXRCaWREYXRhAAAAAQUAAAAGYmlkS2V5BAAAAApiaWREYXRhQXJyCAUAAAANJHQwMTc0MDQxNzQ1OQAAAAJfMQQAAAAHYXNzZXRJZAgFAAAADSR0MDE3NDA0MTc0NTkAAAACXzIEAAAAB2JpZERhdGEIBQAAAA0kdDAxNzQwNDE3NDU5AAAAAl8zCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgUAAAAGYmlkS2V5AgAAAAVfT1BFTgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIFAAAABmJpZEtleQIAAAAKX0NBTkNFTExFRAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAdiaWREYXRhAgAAAAtfQ0FOQ0VMTEVEXwkAAaQAAAABBQAAAARkYXRlAgAAAAFfBQAAAAJpZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAAGY2FsbGVyCQEAAAANcGFyc2VJbnRWYWx1ZQAAAAEJAAGRAAAAAgUAAAAKYmlkRGF0YUFycgAAAAAAAAAAAQUAAAAHYXNzZXRJZAUAAAADbmlsAAAAANzvft8=", "height": 1905954, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FsJYPzUKCnL19cDrVh95dg15y1KPSAWZQ6mBPMdHQMPu Next: 4oXDru48RPaXCQZtC4YXVYkrqG53pQsXbwXn8gBXFctj Diff:
OldNewDifferences
276276 let $t094019437 = isPayment(i)
277277 let payment = $t094019437._1
278278 let amount = $t094019437._2
279- if ((amount != 1))
279+ if ((amount == 1))
280280 then throw("No NFT attached")
281281 else {
282282 let nftId = if (if (isDefined(payment.assetId))
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
279- if ((amount != 1))
279+ if ((amount == 1))
280280 then throw("No NFT attached")
281281 else {
282282 let nftId = if (if (isDefined(payment.assetId))
283283 then isSignArtNFT(value(payment.assetId))
284284 else false)
285285 then toBase58String(value(payment.assetId))
286286 else throw("Only SIGN Art NFT accepted.")
287287 let $t096699761 = provideBaseData(i, nftId)
288288 let id = $t096699761._1
289289 let caller = $t096699761._2
290290 let date = $t096699761._3
291291 let isValidNFT = $t096699761._4
292292 let artId = $t096699761._5
293293 let creatorAddr = $t096699761._6
294294 let artSignID = $t096699761._7
295295 if ((size(artSignID) == 0))
296296 then throw("Artwork not found on SIGN Art")
297297 else if (!(isValidNFT))
298298 then throw("Not a valid nft")
299299 else if (!(acceptedAssetIds(asset)))
300300 then throw("Only SIGN, USDN or WAVES accepted")
301301 else if (!(validateMinSell(asset, price)))
302302 then throw("Wrong minimum sell price")
303303 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)]
304304 }
305305 }
306306
307307
308308
309309 @Callable(i)
310310 func updateSalePrice (nftId,price,asset) = {
311311 let $t01063510727 = provideBaseData(i, nftId)
312312 let id = $t01063510727._1
313313 let caller = $t01063510727._2
314314 let date = $t01063510727._3
315315 let isValidNFT = $t01063510727._4
316316 let artId = $t01063510727._5
317317 let creatorAddr = $t01063510727._6
318318 let artSignID = $t01063510727._7
319319 if ((size(artSignID) == 0))
320320 then throw("Artwork not found on SIGN Art, cancel your sale.")
321321 else if (!(isValidNFT))
322322 then throw("Not a valid nft")
323323 else {
324324 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftId))
325325 if ((saleOwner != caller))
326326 then throw("You don't own this NFT")
327327 else {
328328 let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftId))
329329 if ((saleStatus != "OPEN"))
330330 then throw("Sale not active")
331331 else if (!(acceptedAssetIds(asset)))
332332 then throw("Only SIGN, USDN or WAVES accepted")
333333 else if (!(validateMinSell(asset, price)))
334334 then throw("Wrong minimum sell price")
335335 else {
336336 let saleKey = getSaleKey(caller, nftId, artId, creatorAddr)
337337 let saleInfo = split(getStrByK((saleKey + "_OPEN")), "_")
338338 [StringEntry((saleKey + "_OPEN"), ((((((((((((saleInfo[0] + "_") + toString(price)) + "_") + asset) + "_") + saleInfo[3]) + "_") + saleInfo[4]) + "_") + saleInfo[5]) + "_") + saleInfo[6]))]
339339 }
340340 }
341341 }
342342 }
343343
344344
345345
346346 @Callable(i)
347347 func cancelSale (nftId) = {
348348 let $t01186912109 = provideBaseData(i, nftId)
349349 let id = $t01186912109._1
350350 let caller = $t01186912109._2
351351 let date = $t01186912109._3
352352 let isValidNFT = $t01186912109._4
353353 let artId = $t01186912109._5
354354 let creatorAddr = $t01186912109._6
355355 let artSignID = $t01186912109._7
356356 let saleOwner = getStrByK(("current_owner_on_dapp_" + nftId))
357357 if ((saleOwner != caller))
358358 then throw("You don't own this NFT")
359359 else {
360360 let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftId))
361361 if ((saleStatus != "OPEN"))
362362 then throw("Sale not active")
363363 else {
364364 let saleKey = getSaleKey(caller, nftId, artId, creatorAddr)
365365 let saleInfo = getStrByK((saleKey + "_OPEN"))
366366 [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))]
367367 }
368368 }
369369 }
370370
371371
372372
373373 @Callable(i)
374374 func buyNFT (nftId) = {
375375 let $t01294013032 = provideBaseData(i, nftId)
376376 let id = $t01294013032._1
377377 let caller = $t01294013032._2
378378 let date = $t01294013032._3
379379 let isValidNFT = $t01294013032._4
380380 let artId = $t01294013032._5
381381 let creatorAddr = $t01294013032._6
382382 let artSignID = $t01294013032._7
383383 if ((size(artSignID) == 0))
384384 then throw("Artwork not found on SIGN Art, cancel your sale.")
385385 else if (!(isValidNFT))
386386 then throw("Not a valid nft")
387387 else {
388388 let saleOwner = getSaleOwnerAndStatus(nftId)
389389 let saleKey = getSaleKey(saleOwner, nftId, artId, creatorAddr)
390390 let saleInfo = getStrByK((saleKey + "_OPEN"))
391391 if ((size(saleInfo) == 0))
392392 then throw("Sale Not found!")
393393 else {
394394 let saleInfoArray = split(saleInfo, "_")
395395 if ((parseInt(saleInfoArray[1]) == 0))
396396 then throw("Offer only")
397397 else {
398398 let $t01352913565 = isPayment(i)
399399 let payment = $t01352913565._1
400400 let amount = $t01352913565._2
401401 let paymentAssetStr = if (isDefined(payment.assetId))
402402 then toBase58String(value(payment.assetId))
403403 else ""
404404 if (if ((saleInfoArray[1] != toString(amount)))
405405 then true
406406 else (saleInfoArray[2] != paymentAssetStr))
407407 then throw("Payment infos don't match.")
408408 else {
409409 let amountForSign = fraction(amount, signCut, 100)
410410 let amountForCreator = fraction(amount, creatorCut, 100)
411411 let amountForOwner = (amount - (amountForSign + amountForCreator))
412412 let $t01406814196 = setTransfers(amount, payment.assetId, nftId, creatorAddr, saleOwner, caller)
413413 let signFee = $t01406814196._1
414414 let creatorFee = $t01406814196._2
415415 let ownerFee = $t01406814196._3
416416 let collectorNFT = $t01406814196._4
417417 [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]
418418 }
419419 }
420420 }
421421 }
422422 }
423423
424424
425425
426426 @Callable(i)
427427 func setOffer (nftId) = {
428428 let $t01460414700 = provideBaseData(i, nftId)
429429 let id = $t01460414700._1
430430 let offerOwner = $t01460414700._2
431431 let date = $t01460414700._3
432432 let isValidNFT = $t01460414700._4
433433 let artId = $t01460414700._5
434434 let creatorAddr = $t01460414700._6
435435 let artSignID = $t01460414700._7
436436 if (!(isValidNFT))
437437 then throw("Not a valid nft")
438438 else {
439439 let $t01476114797 = isPayment(i)
440440 let payment = $t01476114797._1
441441 let amount = $t01476114797._2
442442 let assetId = if (!(isDefined(payment.assetId)))
443443 then "WAVES"
444444 else toBase58String(value(payment.assetId))
445445 if (!(acceptedAssetIds(assetId)))
446446 then throw("asset not accepted")
447447 else if ((amount == 0))
448448 then throw("Offer of 0 not allowed")
449449 else if (!(validateMinSell(assetId, amount)))
450450 then throw("Wrong minimum sell price")
451451 else {
452452 let saleOwner = getSaleOwnerAndStatus(nftId)
453453 [StringEntry((getBidKey(offerOwner, nftId, saleOwner, id) + "_OPEN"), ((((((((((((((toString(date) + "_") + toString(amount)) + "_") + assetId) + "_") + nftId) + "_") + artId) + "_") + creatorAddr) + "_") + offerOwner) + "_") + id))]
454454 }
455455 }
456456 }
457457
458458
459459
460460 @Callable(i)
461461 func acceptOffer (nftId,offerId,offerOwner) = {
462462 let $t01559915691 = provideBaseData(i, nftId)
463463 let id = $t01559915691._1
464464 let caller = $t01559915691._2
465465 let date = $t01559915691._3
466466 let isValidNFT = $t01559915691._4
467467 let artId = $t01559915691._5
468468 let creatorAddr = $t01559915691._6
469469 let artSignID = $t01559915691._7
470470 if (!(isValidNFT))
471471 then throw("Not a valid nft")
472472 else {
473473 let saleOwner = getSaleOwnerAndStatus(nftId)
474474 if ((caller != saleOwner))
475475 then throw("Only sale owner can accept offer")
476476 else {
477477 let bidKey = getBidKey(offerOwner, nftId, saleOwner, offerId)
478478 let $t01594516000 = getBidData(bidKey)
479479 let bidDataArr = $t01594516000._1
480480 let assetId = $t01594516000._2
481481 let bidData = $t01594516000._3
482482 let saleKey = getSaleKey(saleOwner, nftId, artId, creatorAddr)
483483 let saleInfo = getStrByK((saleKey + "_OPEN"))
484484 if ((size(saleInfo) == 0))
485485 then throw("Sale Not found!")
486486 else {
487487 let amount = value(parseInt(bidDataArr[1]))
488488 let $t01623616363 = setTransfers(amount, assetId, nftId, creatorAddr, saleOwner, bidDataArr[6])
489489 let signFee = $t01623616363._1
490490 let creatorFee = $t01623616363._2
491491 let ownerFee = $t01623616363._3
492492 let collectorNFT = $t01623616363._4
493493 let assetIdStr = if (isDefined(assetId))
494494 then toBase58String(value(assetId))
495495 else "WAVES"
496496 [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(), signFee, creatorFee, ownerFee, collectorNFT]
497497 }
498498 }
499499 }
500500 }
501501
502502
503503
504504 @Callable(i)
505505 func cancelOffer (nftId,offerId,offerOwner,saleOwner) = {
506506 let $t01716017232 = idCallerDate(i)
507507 let id = $t01716017232._1
508508 let caller = $t01716017232._2
509509 let date = $t01716017232._3
510510 if (if ((caller != offerOwner))
511511 then (caller != saleOwner)
512512 else false)
513513 then throw("You cannot cancel this offer.")
514514 else {
515515 let bidKey = getBidKey(offerOwner, nftId, saleOwner, offerId)
516516 let $t01740417459 = getBidData(bidKey)
517517 let bidDataArr = $t01740417459._1
518518 let assetId = $t01740417459._2
519519 let bidData = $t01740417459._3
520520 [DeleteEntry((bidKey + "_OPEN")), StringEntry((bidKey + "_CANCELLED"), ((((bidData + "_CANCELLED_") + toString(date)) + "_") + id)), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)]
521521 }
522522 }
523523
524524

github/deemru/w8io/169f3d6 
65.45 ms