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