tx · BAEBUeykQRiGK9xAMWdkqAvyrTQpcSp4kTwneprLF9jv 3N9yxjwDM9T8cFxAxjrw8k5wiGxRxHh9FdW: -0.01400000 Waves 2021.05.20 08:29 [1533580] smart account 3N9yxjwDM9T8cFxAxjrw8k5wiGxRxHh9FdW > SELF 0.00000000 Waves
{ "type": 13, "id": "BAEBUeykQRiGK9xAMWdkqAvyrTQpcSp4kTwneprLF9jv", "fee": 1400000, "feeAssetId": null, "timestamp": 1621488622315, "version": 2, "chainId": 84, "sender": "3N9yxjwDM9T8cFxAxjrw8k5wiGxRxHh9FdW", "senderPublicKey": "7nc1RVTNTXy1DvKS2F4boNQWQir3Lqpvi8zMoo42M3nP", "proofs": [ "DCWEC8CqB1W9LTvVms9AYNoQxYHZbjkbAmA73gM2LyL7PB4uv8s5wdUStunF4u36Zqp7FmxBETQovcdDRKGx6MC" ], "script": "base64:AAIEAAAAAAAAAD4IAhIECgIBCBIDCgEIEgMKAQgSAwoBCBIFCgMICAgSBQoDCAgIEgQKAggIEgUKAwgICBIFCgMICAgSAwoBCAAAACgAAAAACHVuaXRUZXN0BwAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAAMYXJ0d29ya3NEYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQnluZmJYQzJLYXN0VXhodWtjTVVhRTU4SzljQmRCOVVZAAAAAAtmZWVSZWNlaXZlcgIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAACHVzZXJEYXBwAwUAAAAIdW5pdFRlc3QJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM010NFJHTUV5alN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AASwAAAACBQAAAA1yZXF1ZXNEYXRhS2V5AgAAAAVfT1BFTgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAANcmVxdWVzRGF0YUtleQIAAAABXwkAAaQAAAABBQAAAARkYXRlAgAAAAFfBQAAAAJpZAIAAAAKX0NBTkNFTExFRAkAASwAAAACCQABLAAAAAIFAAAAC3JlcXVlc3REYXRhAgAAAAFfCQABpAAAAAEFAAAABGRhdGUJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAADHJlcXVlc3RPd25lcgkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIFAAAADnJlcXVlc3REYXRhQXJyAAAAAAAAAAABCQACWQAAAAEJAAGRAAAAAgUAAAAOcmVxdWVzdERhdGFBcnIAAAAAAAAAAAIFAAAAA25pbAAAAAFpAQAAAAtkZWxldGVFbnRyeQAAAAEAAAAFZW50cnkEAAAABmNhbGxlcgkABCUAAAABCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQAAAAAAAAIFAAAABmNhbGxlcgUAAAAFY2hyaXMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFZW50cnkFAAAAA25pbAkAAAIAAAABAgAAAAJubwAAAABoiIKj", "height": 1533580, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EyajSE7nubYAW2kg9wjL5UGCzK2fcSg4zmdiVnMB9uqD Next: HoaSvvJfMvGuRWPu6KpKBSsXJairWath6b8ixdAuaoAX Diff:
Old | New | Differences | |
---|---|---|---|
205 | 205 | else false) | |
206 | 206 | then payment.assetId | |
207 | 207 | else throw("Only SIGN Art NFT accepted.") | |
208 | - | if (!(acceptedAssetIds(asset))) | |
209 | - | then throw("Only SIGN, USDN or WAVES accepted") | |
210 | - | else { | |
211 | - | let $t074347510 = checkNFTInfo(toBase58String(value(assetId))) | |
212 | - | let isValidNFT = $t074347510._1 | |
213 | - | let creatorAddr = $t074347510._2 | |
214 | - | if (!(isValidNFT)) | |
215 | - | then throw("Something went wrong") | |
216 | - | 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)] | |
217 | - | } | |
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 | + | } | |
218 | 221 | } | |
219 | 222 | ||
220 | 223 | ||
221 | 224 | ||
222 | 225 | @Callable(i) | |
223 | 226 | func cancelSale (nftid) = { | |
224 | - | let $ | |
225 | - | let id = $ | |
226 | - | let caller = $ | |
227 | - | let date = $ | |
227 | + | let $t083028341 = idCallerDate(i) | |
228 | + | let id = $t083028341._1 | |
229 | + | let caller = $t083028341._2 | |
230 | + | let date = $t083028341._3 | |
228 | 231 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
229 | 232 | if ((saleOwner != caller)) | |
230 | 233 | then throw("You don't own this NFT") | |
244 | 247 | ||
245 | 248 | @Callable(i) | |
246 | 249 | func buyNFT (nftid) = { | |
247 | - | let $ | |
248 | - | let id = $ | |
249 | - | let caller = $ | |
250 | - | let date = $ | |
250 | + | let $t094709541 = idCallerDate(i) | |
251 | + | let id = $t094709541._1 | |
252 | + | let caller = $t094709541._2 | |
253 | + | let date = $t094709541._3 | |
251 | 254 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
252 | - | let $ | |
253 | - | let isValidNFT = $ | |
254 | - | let creatorAddr = $ | |
255 | + | let $t095969647 = checkNFTInfo(nftid) | |
256 | + | let isValidNFT = $t095969647._1 | |
257 | + | let creatorAddr = $t095969647._2 | |
255 | 258 | if (!(isValidNFT)) | |
256 | 259 | then throw("Something went wrong") | |
257 | 260 | else { | |
263 | 266 | if ((parseInt(saleInfoArray[1]) == 0)) | |
264 | 267 | then throw("Offer only") | |
265 | 268 | else { | |
266 | - | let $ | |
267 | - | let payment = $ | |
268 | - | let amount = $ | |
269 | + | let $t0998310019 = isPayment(i) | |
270 | + | let payment = $t0998310019._1 | |
271 | + | let amount = $t0998310019._2 | |
269 | 272 | if (if ((saleInfoArray[1] != toString(amount))) | |
270 | 273 | then true | |
271 | 274 | else (saleInfoArray[2] != toBase58String(value(payment.assetId)))) | |
274 | 277 | let amountForSign = fraction(amount, signCut, 100) | |
275 | 278 | let amountForCreator = fraction(amount, creatorCut, 100) | |
276 | 279 | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
277 | - | let $ | |
278 | - | let signFee = $ | |
279 | - | let creatorFee = $ | |
280 | - | let ownerFee = $ | |
281 | - | let collectorFee = $ | |
280 | + | let $t01044210570 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller) | |
281 | + | let signFee = $t01044210570._1 | |
282 | + | let creatorFee = $t01044210570._2 | |
283 | + | let ownerFee = $t01044210570._3 | |
284 | + | let collectorFee = $t01044210570._4 | |
282 | 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] | |
283 | 286 | } | |
284 | 287 | } | |
290 | 293 | ||
291 | 294 | @Callable(i) | |
292 | 295 | func setOffer (nftid) = { | |
293 | - | let $ | |
294 | - | let id = $ | |
295 | - | let offerOwner = $ | |
296 | - | let date = $ | |
297 | - | let $ | |
298 | - | let payment = $ | |
299 | - | let amount = $ | |
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 | |
300 | 303 | let assetId = if (!(isDefined(payment.assetId))) | |
301 | 304 | then "WAVES" | |
302 | 305 | else toBase58String(value(payment.assetId)) | |
303 | 306 | if (!(acceptedAssetIds(assetId))) | |
304 | 307 | then throw("asset not accepted") | |
305 | 308 | else { | |
306 | - | let $ | |
307 | - | let isValidNFT = $ | |
308 | - | let creatorAddr = $ | |
309 | + | let $t01192711978 = checkNFTInfo(nftid) | |
310 | + | let isValidNFT = $t01192711978._1 | |
311 | + | let creatorAddr = $t01192711978._2 | |
309 | 312 | if (!(isValidNFT)) | |
310 | 313 | then throw("Something went wrong") | |
311 | 314 | else { | |
319 | 322 | ||
320 | 323 | @Callable(i) | |
321 | 324 | func acceptOffer (nftid,offerId,offerOwner) = { | |
322 | - | let $ | |
323 | - | let id = $ | |
324 | - | let caller = $ | |
325 | - | let date = $ | |
325 | + | let $t01252612596 = idCallerDate(i) | |
326 | + | let id = $t01252612596._1 | |
327 | + | let caller = $t01252612596._2 | |
328 | + | let date = $t01252612596._3 | |
326 | 329 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
327 | 330 | if ((caller != saleOwner)) | |
328 | 331 | then throw("You cannot do this action") | |
331 | 334 | if ((offerExist == "")) | |
332 | 335 | then throw("Offer not found or not for sale") | |
333 | 336 | else { | |
334 | - | let $ | |
335 | - | let isValidNFT = $ | |
336 | - | let creatorAddr = $ | |
337 | + | let $t01290112952 = checkNFTInfo(nftid) | |
338 | + | let isValidNFT = $t01290112952._1 | |
339 | + | let creatorAddr = $t01290112952._2 | |
337 | 340 | if (!(isValidNFT)) | |
338 | 341 | then throw("Something went wrong") | |
339 | 342 | else { | |
342 | 345 | then throw("Sale Not found!") | |
343 | 346 | else { | |
344 | 347 | let bidDataKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
345 | - | let $ | |
346 | - | let bidDataArr = $ | |
347 | - | let assetId = $ | |
348 | - | let bidData = $ | |
348 | + | let $t01328813347 = getBidData(bidDataKey) | |
349 | + | let bidDataArr = $t01328813347._1 | |
350 | + | let assetId = $t01328813347._2 | |
351 | + | let bidData = $t01328813347._3 | |
349 | 352 | let amount = value(parseInt(bidDataArr[1])) | |
350 | - | let $ | |
351 | - | let signFee = $ | |
352 | - | let creatorFee = $ | |
353 | - | let ownerFee = $ | |
354 | - | let collectorFee = $ | |
353 | + | let $t01340113528 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[3]) | |
354 | + | let signFee = $t01340113528._1 | |
355 | + | let creatorFee = $t01340113528._2 | |
356 | + | let ownerFee = $t01340113528._3 | |
357 | + | let collectorFee = $t01340113528._4 | |
355 | 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] | |
356 | 359 | } | |
357 | 360 | } | |
363 | 366 | ||
364 | 367 | @Callable(i) | |
365 | 368 | func cancelOffer (nftid,offerId,saleOwner) = { | |
366 | - | let $ | |
367 | - | let id = $ | |
368 | - | let caller = $ | |
369 | - | let date = $ | |
369 | + | let $t01430214363 = idCallerDate(i) | |
370 | + | let id = $t01430214363._1 | |
371 | + | let caller = $t01430214363._2 | |
372 | + | let date = $t01430214363._3 | |
370 | 373 | let bidDataKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
371 | - | let $ | |
372 | - | let bidDataArr = $ | |
373 | - | let assetId = $ | |
374 | - | let bidData = $ | |
374 | + | let $t01444414503 = getBidData(bidDataKey) | |
375 | + | let bidDataArr = $t01444414503._1 | |
376 | + | let assetId = $t01444414503._2 | |
377 | + | let bidData = $t01444414503._3 | |
375 | 378 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
376 | 379 | } | |
377 | 380 | ||
379 | 382 | ||
380 | 383 | @Callable(i) | |
381 | 384 | func makeRequest (artId,creatorAddr) = { | |
382 | - | let $ | |
383 | - | let id = $ | |
384 | - | let requestOwner = $ | |
385 | - | let date = $ | |
386 | - | let $ | |
387 | - | let payment = $ | |
388 | - | let amount = $ | |
385 | + | let $t01483814882 = idCallerDate(i) | |
386 | + | let id = $t01483814882._1 | |
387 | + | let requestOwner = $t01483814882._2 | |
388 | + | let date = $t01483814882._3 | |
389 | + | let $t01488714923 = isPayment(i) | |
390 | + | let payment = $t01488714923._1 | |
391 | + | let amount = $t01488714923._2 | |
389 | 392 | let assetId = if (!(isDefined(payment.assetId))) | |
390 | 393 | then "WAVES" | |
391 | 394 | else toBase58String(value(payment.assetId)) | |
403 | 406 | ||
404 | 407 | @Callable(i) | |
405 | 408 | func fillRequest (artId,requestOwner,offerId) = { | |
406 | - | let $ | |
407 | - | let id = $ | |
408 | - | let saleOwner = $ | |
409 | - | let date = $ | |
410 | - | let $ | |
411 | - | let payment = $ | |
412 | - | let amountAttached = $ | |
409 | + | let $t01569815740 = idCallerDate(i) | |
410 | + | let id = $t01569815740._1 | |
411 | + | let saleOwner = $t01569815740._2 | |
412 | + | let date = $t01569815740._3 | |
413 | + | let $t01574515789 = isPayment(i) | |
414 | + | let payment = $t01574515789._1 | |
415 | + | let amountAttached = $t01574515789._2 | |
413 | 416 | let NFTid = if (if (isDefined(payment.assetId)) | |
414 | 417 | then isSignArtNFT(value(payment.assetId)) | |
415 | 418 | else false) | |
426 | 429 | then throw("This NFT don't match the requested artwork") | |
427 | 430 | else { | |
428 | 431 | let amount = value(parseInt(requestData[1])) | |
429 | - | let $ | |
430 | - | let signFee = $ | |
431 | - | let creatorFee = $ | |
432 | - | let ownerFee = $ | |
433 | - | let collectorFee = $ | |
432 | + | let $t01650916684 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4]) | |
433 | + | let signFee = $t01650916684._1 | |
434 | + | let creatorFee = $t01650916684._2 | |
435 | + | let ownerFee = $t01650916684._3 | |
436 | + | let collectorFee = $t01650916684._4 | |
434 | 437 | [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] | |
435 | 438 | } | |
436 | 439 | } | |
440 | 443 | ||
441 | 444 | @Callable(i) | |
442 | 445 | func cancelRequest (artId,creatorAddr,requestId) = { | |
443 | - | let $ | |
444 | - | let id = $ | |
445 | - | let requestOwner = $ | |
446 | - | let date = $ | |
446 | + | let $t01714417188 = idCallerDate(i) | |
447 | + | let id = $t01714417188._1 | |
448 | + | let requestOwner = $t01714417188._2 | |
449 | + | let date = $t01714417188._3 | |
447 | 450 | let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId) | |
448 | 451 | let requestData = getStrByK((requesDataKey + "_OPEN")) | |
449 | 452 | 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 | - | if (!(acceptedAssetIds(asset))) | |
209 | - | then throw("Only SIGN, USDN or WAVES accepted") | |
210 | - | else { | |
211 | - | let $t074347510 = checkNFTInfo(toBase58String(value(assetId))) | |
212 | - | let isValidNFT = $t074347510._1 | |
213 | - | let creatorAddr = $t074347510._2 | |
214 | - | if (!(isValidNFT)) | |
215 | - | then throw("Something went wrong") | |
216 | - | 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)] | |
217 | - | } | |
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 | + | } | |
218 | 221 | } | |
219 | 222 | ||
220 | 223 | ||
221 | 224 | ||
222 | 225 | @Callable(i) | |
223 | 226 | func cancelSale (nftid) = { | |
224 | - | let $ | |
225 | - | let id = $ | |
226 | - | let caller = $ | |
227 | - | let date = $ | |
227 | + | let $t083028341 = idCallerDate(i) | |
228 | + | let id = $t083028341._1 | |
229 | + | let caller = $t083028341._2 | |
230 | + | let date = $t083028341._3 | |
228 | 231 | let saleOwner = getStrByK(("current_owner_on_dapp_" + nftid)) | |
229 | 232 | if ((saleOwner != caller)) | |
230 | 233 | then throw("You don't own this NFT") | |
231 | 234 | else { | |
232 | 235 | let saleStatus = getStrByK(((("sale2nd_status_" + caller) + "_") + nftid)) | |
233 | 236 | if ((saleStatus != "OPEN")) | |
234 | 237 | then throw("Sale not active") | |
235 | 238 | else { | |
236 | 239 | let creatorAddr = split(getArtStrByK(keyNFTData(nftid)), "_")[6] | |
237 | 240 | let saleInfo = getStrByK(((((((("sale2nd_info_" + caller) + "_") + nftid) + "_") + creatorAddr) + "_") + saleStatus)) | |
238 | 241 | [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))] | |
239 | 242 | } | |
240 | 243 | } | |
241 | 244 | } | |
242 | 245 | ||
243 | 246 | ||
244 | 247 | ||
245 | 248 | @Callable(i) | |
246 | 249 | func buyNFT (nftid) = { | |
247 | - | let $ | |
248 | - | let id = $ | |
249 | - | let caller = $ | |
250 | - | let date = $ | |
250 | + | let $t094709541 = idCallerDate(i) | |
251 | + | let id = $t094709541._1 | |
252 | + | let caller = $t094709541._2 | |
253 | + | let date = $t094709541._3 | |
251 | 254 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
252 | - | let $ | |
253 | - | let isValidNFT = $ | |
254 | - | let creatorAddr = $ | |
255 | + | let $t095969647 = checkNFTInfo(nftid) | |
256 | + | let isValidNFT = $t095969647._1 | |
257 | + | let creatorAddr = $t095969647._2 | |
255 | 258 | if (!(isValidNFT)) | |
256 | 259 | then throw("Something went wrong") | |
257 | 260 | else { | |
258 | 261 | let saleInfo = getStrByK((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")) | |
259 | 262 | if ((size(saleInfo) == 0)) | |
260 | 263 | then throw("Sale Not found!") | |
261 | 264 | else { | |
262 | 265 | let saleInfoArray = split(saleInfo, "_") | |
263 | 266 | if ((parseInt(saleInfoArray[1]) == 0)) | |
264 | 267 | then throw("Offer only") | |
265 | 268 | else { | |
266 | - | let $ | |
267 | - | let payment = $ | |
268 | - | let amount = $ | |
269 | + | let $t0998310019 = isPayment(i) | |
270 | + | let payment = $t0998310019._1 | |
271 | + | let amount = $t0998310019._2 | |
269 | 272 | if (if ((saleInfoArray[1] != toString(amount))) | |
270 | 273 | then true | |
271 | 274 | else (saleInfoArray[2] != toBase58String(value(payment.assetId)))) | |
272 | 275 | then throw("Payment infos don't match.") | |
273 | 276 | else { | |
274 | 277 | let amountForSign = fraction(amount, signCut, 100) | |
275 | 278 | let amountForCreator = fraction(amount, creatorCut, 100) | |
276 | 279 | let amountForOwner = (amount - (amountForSign + amountForCreator)) | |
277 | - | let $ | |
278 | - | let signFee = $ | |
279 | - | let creatorFee = $ | |
280 | - | let ownerFee = $ | |
281 | - | let collectorFee = $ | |
280 | + | let $t01044210570 = setTransfers(amount, payment.assetId, nftid, creatorAddr, saleOwner, caller) | |
281 | + | let signFee = $t01044210570._1 | |
282 | + | let creatorFee = $t01044210570._2 | |
283 | + | let ownerFee = $t01044210570._3 | |
284 | + | let collectorFee = $t01044210570._4 | |
282 | 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] | |
283 | 286 | } | |
284 | 287 | } | |
285 | 288 | } | |
286 | 289 | } | |
287 | 290 | } | |
288 | 291 | ||
289 | 292 | ||
290 | 293 | ||
291 | 294 | @Callable(i) | |
292 | 295 | func setOffer (nftid) = { | |
293 | - | let $ | |
294 | - | let id = $ | |
295 | - | let offerOwner = $ | |
296 | - | let date = $ | |
297 | - | let $ | |
298 | - | let payment = $ | |
299 | - | let amount = $ | |
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 | |
300 | 303 | let assetId = if (!(isDefined(payment.assetId))) | |
301 | 304 | then "WAVES" | |
302 | 305 | else toBase58String(value(payment.assetId)) | |
303 | 306 | if (!(acceptedAssetIds(assetId))) | |
304 | 307 | then throw("asset not accepted") | |
305 | 308 | else { | |
306 | - | let $ | |
307 | - | let isValidNFT = $ | |
308 | - | let creatorAddr = $ | |
309 | + | let $t01192711978 = checkNFTInfo(nftid) | |
310 | + | let isValidNFT = $t01192711978._1 | |
311 | + | let creatorAddr = $t01192711978._2 | |
309 | 312 | if (!(isValidNFT)) | |
310 | 313 | then throw("Something went wrong") | |
311 | 314 | else { | |
312 | 315 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
313 | 316 | [StringEntry((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + id) + "_OPEN"), ((((((((toString(date) + "_") + toString(amount)) + "_") + assetId) + "_") + offerOwner) + "_") + id))] | |
314 | 317 | } | |
315 | 318 | } | |
316 | 319 | } | |
317 | 320 | ||
318 | 321 | ||
319 | 322 | ||
320 | 323 | @Callable(i) | |
321 | 324 | func acceptOffer (nftid,offerId,offerOwner) = { | |
322 | - | let $ | |
323 | - | let id = $ | |
324 | - | let caller = $ | |
325 | - | let date = $ | |
325 | + | let $t01252612596 = idCallerDate(i) | |
326 | + | let id = $t01252612596._1 | |
327 | + | let caller = $t01252612596._2 | |
328 | + | let date = $t01252612596._3 | |
326 | 329 | let saleOwner = getSaleOwnerAndStatus(nftid) | |
327 | 330 | if ((caller != saleOwner)) | |
328 | 331 | then throw("You cannot do this action") | |
329 | 332 | else { | |
330 | 333 | let offerExist = getStrByK((((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) + "_OPEN")) | |
331 | 334 | if ((offerExist == "")) | |
332 | 335 | then throw("Offer not found or not for sale") | |
333 | 336 | else { | |
334 | - | let $ | |
335 | - | let isValidNFT = $ | |
336 | - | let creatorAddr = $ | |
337 | + | let $t01290112952 = checkNFTInfo(nftid) | |
338 | + | let isValidNFT = $t01290112952._1 | |
339 | + | let creatorAddr = $t01290112952._2 | |
337 | 340 | if (!(isValidNFT)) | |
338 | 341 | then throw("Something went wrong") | |
339 | 342 | else { | |
340 | 343 | let saleInfo = getStrByK((((((("sale2nd_info_" + saleOwner) + "_") + nftid) + "_") + creatorAddr) + "_OPEN")) | |
341 | 344 | if ((size(saleInfo) == 0)) | |
342 | 345 | then throw("Sale Not found!") | |
343 | 346 | else { | |
344 | 347 | let bidDataKey = ((((((("offer2nd_" + offerOwner) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
345 | - | let $ | |
346 | - | let bidDataArr = $ | |
347 | - | let assetId = $ | |
348 | - | let bidData = $ | |
348 | + | let $t01328813347 = getBidData(bidDataKey) | |
349 | + | let bidDataArr = $t01328813347._1 | |
350 | + | let assetId = $t01328813347._2 | |
351 | + | let bidData = $t01328813347._3 | |
349 | 352 | let amount = value(parseInt(bidDataArr[1])) | |
350 | - | let $ | |
351 | - | let signFee = $ | |
352 | - | let creatorFee = $ | |
353 | - | let ownerFee = $ | |
354 | - | let collectorFee = $ | |
353 | + | let $t01340113528 = setTransfers(amount, assetId, nftid, creatorAddr, saleOwner, bidDataArr[3]) | |
354 | + | let signFee = $t01340113528._1 | |
355 | + | let creatorFee = $t01340113528._2 | |
356 | + | let ownerFee = $t01340113528._3 | |
357 | + | let collectorFee = $t01340113528._4 | |
355 | 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] | |
356 | 359 | } | |
357 | 360 | } | |
358 | 361 | } | |
359 | 362 | } | |
360 | 363 | } | |
361 | 364 | ||
362 | 365 | ||
363 | 366 | ||
364 | 367 | @Callable(i) | |
365 | 368 | func cancelOffer (nftid,offerId,saleOwner) = { | |
366 | - | let $ | |
367 | - | let id = $ | |
368 | - | let caller = $ | |
369 | - | let date = $ | |
369 | + | let $t01430214363 = idCallerDate(i) | |
370 | + | let id = $t01430214363._1 | |
371 | + | let caller = $t01430214363._2 | |
372 | + | let date = $t01430214363._3 | |
370 | 373 | let bidDataKey = ((((((("offer2nd_" + caller) + "_") + nftid) + "_") + saleOwner) + "_") + offerId) | |
371 | - | let $ | |
372 | - | let bidDataArr = $ | |
373 | - | let assetId = $ | |
374 | - | let bidData = $ | |
374 | + | let $t01444414503 = getBidData(bidDataKey) | |
375 | + | let bidDataArr = $t01444414503._1 | |
376 | + | let assetId = $t01444414503._2 | |
377 | + | let bidData = $t01444414503._3 | |
375 | 378 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry((((((bidDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(caller)), parseIntValue(bidDataArr[1]), assetId)] | |
376 | 379 | } | |
377 | 380 | ||
378 | 381 | ||
379 | 382 | ||
380 | 383 | @Callable(i) | |
381 | 384 | func makeRequest (artId,creatorAddr) = { | |
382 | - | let $ | |
383 | - | let id = $ | |
384 | - | let requestOwner = $ | |
385 | - | let date = $ | |
386 | - | let $ | |
387 | - | let payment = $ | |
388 | - | let amount = $ | |
385 | + | let $t01483814882 = idCallerDate(i) | |
386 | + | let id = $t01483814882._1 | |
387 | + | let requestOwner = $t01483814882._2 | |
388 | + | let date = $t01483814882._3 | |
389 | + | let $t01488714923 = isPayment(i) | |
390 | + | let payment = $t01488714923._1 | |
391 | + | let amount = $t01488714923._2 | |
389 | 392 | let assetId = if (!(isDefined(payment.assetId))) | |
390 | 393 | then "WAVES" | |
391 | 394 | else toBase58String(value(payment.assetId)) | |
392 | 395 | if (!(acceptedAssetIds(assetId))) | |
393 | 396 | then throw("asset not accepted") | |
394 | 397 | else { | |
395 | 398 | let isValidART = checkARTExist(artId, creatorAddr) | |
396 | 399 | if (!(isValidART)) | |
397 | 400 | then throw("Something went wrong") | |
398 | 401 | else [StringEntry((((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + id) + "_OPEN"), ((((((((((toString(date) + "_") + toString(amount)) + "_") + toBase58String(value(payment.assetId))) + "_") + artId) + "_") + requestOwner) + "_") + id))] | |
399 | 402 | } | |
400 | 403 | } | |
401 | 404 | ||
402 | 405 | ||
403 | 406 | ||
404 | 407 | @Callable(i) | |
405 | 408 | func fillRequest (artId,requestOwner,offerId) = { | |
406 | - | let $ | |
407 | - | let id = $ | |
408 | - | let saleOwner = $ | |
409 | - | let date = $ | |
410 | - | let $ | |
411 | - | let payment = $ | |
412 | - | let amountAttached = $ | |
409 | + | let $t01569815740 = idCallerDate(i) | |
410 | + | let id = $t01569815740._1 | |
411 | + | let saleOwner = $t01569815740._2 | |
412 | + | let date = $t01569815740._3 | |
413 | + | let $t01574515789 = isPayment(i) | |
414 | + | let payment = $t01574515789._1 | |
415 | + | let amountAttached = $t01574515789._2 | |
413 | 416 | let NFTid = if (if (isDefined(payment.assetId)) | |
414 | 417 | then isSignArtNFT(value(payment.assetId)) | |
415 | 418 | else false) | |
416 | 419 | then payment.assetId | |
417 | 420 | else throw("No NFT found") | |
418 | 421 | let NFTdata = split(getArtStrByK(("nft_" + toBase58String(value(NFTid)))), "_") | |
419 | 422 | if ((size(NFTdata) == 0)) | |
420 | 423 | then throw("No NFT found") | |
421 | 424 | else { | |
422 | 425 | let requestData = split(getStrByK((((((((("request2nd_" + requestOwner) + "_") + NFTdata[6]) + "_") + artId) + "_") + offerId) + "_OPEN")), "_") | |
423 | 426 | if ((size(requestData) == 1)) | |
424 | 427 | then throw("No request found") | |
425 | 428 | else if ((requestData[3] != NFTdata[5])) | |
426 | 429 | then throw("This NFT don't match the requested artwork") | |
427 | 430 | else { | |
428 | 431 | let amount = value(parseInt(requestData[1])) | |
429 | - | let $ | |
430 | - | let signFee = $ | |
431 | - | let creatorFee = $ | |
432 | - | let ownerFee = $ | |
433 | - | let collectorFee = $ | |
432 | + | let $t01650916684 = setTransfers(amount, fromBase58String(requestData[2]), toBase58String(value(NFTid)), NFTdata[6], saleOwner, requestData[4]) | |
433 | + | let signFee = $t01650916684._1 | |
434 | + | let creatorFee = $t01650916684._2 | |
435 | + | let ownerFee = $t01650916684._3 | |
436 | + | let collectorFee = $t01650916684._4 | |
434 | 437 | [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] | |
435 | 438 | } | |
436 | 439 | } | |
437 | 440 | } | |
438 | 441 | ||
439 | 442 | ||
440 | 443 | ||
441 | 444 | @Callable(i) | |
442 | 445 | func cancelRequest (artId,creatorAddr,requestId) = { | |
443 | - | let $ | |
444 | - | let id = $ | |
445 | - | let requestOwner = $ | |
446 | - | let date = $ | |
446 | + | let $t01714417188 = idCallerDate(i) | |
447 | + | let id = $t01714417188._1 | |
448 | + | let requestOwner = $t01714417188._2 | |
449 | + | let date = $t01714417188._3 | |
447 | 450 | let requesDataKey = ((((((("request2nd_" + requestOwner) + "_") + creatorAddr) + "_") + artId) + "_") + requestId) | |
448 | 451 | let requestData = getStrByK((requesDataKey + "_OPEN")) | |
449 | 452 | if ((size(requestData) == 0)) | |
450 | 453 | then throw("Request not found") | |
451 | 454 | else { | |
452 | 455 | let requestDataArr = split(requestData, "_") | |
453 | 456 | [DeleteEntry((requesDataKey + "_OPEN")), StringEntry((((((requesDataKey + "_") + toString(date)) + "_") + id) + "_CANCELLED"), ((requestData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(requestOwner)), parseIntValue(requestDataArr[1]), fromBase58String(requestDataArr[2]))] | |
454 | 457 | } | |
455 | 458 | } | |
456 | 459 | ||
457 | 460 | ||
458 | 461 | ||
459 | 462 | @Callable(i) | |
460 | 463 | func deleteEntry (entry) = { | |
461 | 464 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
462 | 465 | if ((caller == chris)) | |
463 | 466 | then [DeleteEntry(entry)] | |
464 | 467 | else throw("no") | |
465 | 468 | } | |
466 | 469 | ||
467 | 470 |
github/deemru/w8io/026f985 85.86 ms ◑