tx · FduPhMS7DqddLLiVxLvjewAm3u9UtmY8JZg64ykAE5CG 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY: -0.01400000 Waves 2021.02.25 07:29 [1413141] smart account 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY > SELF 0.00000000 Waves
{ "type": 13, "id": "FduPhMS7DqddLLiVxLvjewAm3u9UtmY8JZg64ykAE5CG", "fee": 1400000, "feeAssetId": null, "timestamp": 1614227347568, "version": 2, "chainId": 84, "sender": "3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY", "senderPublicKey": "J9DCtJJxJBWZdtDR12BA1U94Q3cZzMi4R6k5hYkAzmzC", "proofs": [ "faioUHfUpa1nQ9UNrEaVy83RrC9gSaih1NLtTmBCSPb1yThSsxyt9BC6qwZBBotB6dMsaNXkaVippetFdMk13oe" ], "script": "base64:AAIEAAAAAAAAAFYIAhIOCgwICAgICAgBCAgICAgSDQoLCAgICAgBCAgICAgSBQoDCAgIEgQKAggIEgYKBAgBAQgSBAoCCAgSBAoCCAgSBgoECAgICBIFCgMICAgSAwoBCAAAAEoAAAAACHVuaXRUZXN0BwAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAh1c2VyRGFwcAMFAAAACHVuaXRUZXN0CQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNdDRSR01FeWpTV1lBb2NUUHFkNTV3ZEhRUUIzUFUyVUNtCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNd0RaYWdvWUVpTmZRTGMzMWN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AAB2JpZERhdGECAAAAAV8EAAAAB2Fzc2V0SWQJAQAAAA1nZXRCaWRBc3NldElkAAAAAQkAAZEAAAACBQAAAApiaWREYXRhQXJyAAAAAAAAAAAABAAAAAliaWRTdGF0dXMCAAAACENBTkNFTEVECQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgUAAAAKYmlkRGF0YUtleQIAAAAFX09QRU4JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQABLAAAAAIFAAAACmJpZERhdGFLZXkCAAAAAV8FAAAACWJpZFN0YXR1cwkAASwAAAACCQABLAAAAAIFAAAAB2JpZERhdGECAAAAAV8JAAGkAAAAAQUAAAAEZGF0ZQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAAGY2FsbGVyCQEAAAANcGFyc2VJbnRWYWx1ZQAAAAEJAAGRAAAAAgUAAAAKYmlkRGF0YUFycgAAAAAAAAAAAQUAAAAHYXNzZXRJZAUAAAADbmlsAAAAAWkBAAAAC2RlbGV0ZUVudHJ5AAAAAQAAAAVlbnRyeQQAAAAGY2FsbGVyCQAEJQAAAAEJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQMJAAAAAAAAAgUAAAAGY2FsbGVyBQAAAAVjaHJpcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAVlbnRyeQUAAAADbmlsCQAAAgAAAAECAAAAAm5vAAAAALnJydU=", "height": 1413141, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5TnjyH7LhsPwHXPWkaRWDxCGSKT2AnzwXLEmnSL6WBwV Next: 3qPihNxtKi8r2uKiKTeLwcSU4HCBx78AXF3LBo3NGkue Diff:
Old | New | Differences | |
---|---|---|---|
264 | 264 | } | |
265 | 265 | ||
266 | 266 | ||
267 | - | func aS (aI,aT,aU) = { | |
268 | - | let aV = aH(aI) | |
269 | - | let aJ = aV._1 | |
270 | - | let aK = aV._2 | |
267 | + | func aS (aN,aT) = { | |
268 | + | let aU = if (a) | |
269 | + | then 10 | |
270 | + | else y("waves_min_sell") | |
271 | + | let aV = 1000000 | |
272 | + | let aW = if (a) | |
273 | + | then 1 | |
274 | + | else (y(("certification_fee_" + toBase58String(g))) * 2) | |
275 | + | if (if (if (if (if ((aN == toBase58String(h))) | |
276 | + | then (aV > aT) | |
277 | + | else false) | |
278 | + | then (aT != 0) | |
279 | + | else false) | |
280 | + | then true | |
281 | + | else if (if ((aN == toBase58String(g))) | |
282 | + | then (aW > aT) | |
283 | + | else false) | |
284 | + | then (aT != 0) | |
285 | + | else false) | |
286 | + | then true | |
287 | + | else if (if (if ((aN == toBase58String(i))) | |
288 | + | then true | |
289 | + | else (aN == "WAVES")) | |
290 | + | then (aU > aT) | |
291 | + | else false) | |
292 | + | then (aT != 0) | |
293 | + | else false) | |
294 | + | then throw("Wrong minimum sell price") | |
295 | + | else true | |
296 | + | } | |
297 | + | ||
298 | + | ||
299 | + | func aX (aI,aY,aZ,ba) = { | |
300 | + | let bb = aH(aI) | |
301 | + | let aJ = bb._1 | |
302 | + | let aK = bb._2 | |
271 | 303 | let aN = if (!(isDefined(aJ.assetId))) | |
272 | 304 | then unit | |
273 | - | else if (if ((size( | |
274 | - | then (toBase58String(value(aJ.assetId)) == | |
305 | + | else if (if ((size(aZ) > 0)) | |
306 | + | then (toBase58String(value(aJ.assetId)) == aZ) | |
275 | 307 | else false) | |
276 | 308 | then aJ.assetId | |
277 | 309 | else throw("Wrong asset id") | |
278 | 310 | if (if ((aN == unit)) | |
279 | - | then ( | |
311 | + | then (aZ != "") | |
280 | 312 | else false) | |
281 | 313 | then throw("Wrong asset id") | |
282 | - | else if ((aU != aK)) | |
314 | + | else if (if ((ba != aK)) | |
315 | + | then (toBase58String(aI.caller.bytes) != aY) | |
316 | + | else false) | |
283 | 317 | then throw("Payment don't match") | |
284 | - | else $Tuple2(aK, aN) | |
318 | + | else if (if (if ((ba != aK)) | |
319 | + | then (toBase58String(aI.caller.bytes) == aY) | |
320 | + | else false) | |
321 | + | then !(aS(aZ, ba)) | |
322 | + | else false) | |
323 | + | then throw("Min sell don't match") | |
324 | + | else $Tuple2(aK, aN) | |
285 | 325 | } | |
286 | 326 | ||
287 | 327 | ||
288 | - | func | |
328 | + | func bc (aN) = if (if (if (if ((aN != toBase58String(g))) | |
289 | 329 | then (aN != toBase58String(i)) | |
290 | 330 | else false) | |
291 | 331 | then (aN != "WAVES") | |
296 | 336 | else true | |
297 | 337 | ||
298 | 338 | ||
299 | - | func aX (aN,aY) = { | |
300 | - | let aZ = if (a) | |
301 | - | then 10 | |
302 | - | else y("waves_min_sell") | |
303 | - | let ba = 1000000 | |
304 | - | let bb = if (a) | |
305 | - | then 1 | |
306 | - | else (y(("certification_fee_" + toBase58String(g))) * 2) | |
307 | - | if (if (if (if (if ((aN == toBase58String(h))) | |
308 | - | then (ba > aY) | |
309 | - | else false) | |
310 | - | then (aY != 0) | |
311 | - | else false) | |
312 | - | then true | |
313 | - | else if (if ((aN == toBase58String(g))) | |
314 | - | then (bb > aY) | |
315 | - | else false) | |
316 | - | then (aY != 0) | |
317 | - | else false) | |
318 | - | then true | |
319 | - | else if (if (if ((aN == toBase58String(i))) | |
320 | - | then true | |
321 | - | else (aN == "WAVES")) | |
322 | - | then (aZ > aY) | |
323 | - | else false) | |
324 | - | then (aY != 0) | |
325 | - | else false) | |
326 | - | then throw("Wrong minimum sell price") | |
327 | - | else true | |
328 | - | } | |
329 | - | ||
330 | - | ||
331 | - | func bc (aN) = if ((aN == "WAVES")) | |
339 | + | func bd (aN) = if ((aN == "WAVES")) | |
332 | 340 | then unit | |
333 | 341 | else fromBase58String(aN) | |
334 | 342 | ||
335 | 343 | ||
336 | - | func | |
337 | - | let | |
338 | - | if (( | |
344 | + | func be (bf) = { | |
345 | + | let bg = x((bf + "_OPEN")) | |
346 | + | if ((bg == "")) | |
339 | 347 | then throw("Bid not found") | |
340 | 348 | else { | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | if ((0 >= | |
349 | + | let bh = split(bg, "_") | |
350 | + | let bi = parseIntValue(bh[1]) | |
351 | + | let bj = bd(bh[0]) | |
352 | + | if ((0 >= bi)) | |
345 | 353 | then throw("Wrong amount") | |
346 | - | else $Tuple2( | |
354 | + | else $Tuple2(bi, bj) | |
347 | 355 | } | |
348 | 356 | } | |
349 | 357 | ||
350 | 358 | ||
351 | - | func | |
359 | + | func bk (aI) = if (!(p)) | |
352 | 360 | then throw(q) | |
353 | 361 | else $Tuple3(toBase58String(aI.transactionId), toBase58String(aI.caller.bytes), lastBlock.timestamp) | |
354 | 362 | ||
355 | 363 | ||
356 | - | func | |
364 | + | func bl (aI,aY,bm,bn) = if (if (if ((toBase58String(aI.caller.bytes) == aY)) | |
357 | 365 | then (bm != "") | |
358 | 366 | else false) | |
359 | 367 | then (bn != "") | |
362 | 370 | else false | |
363 | 371 | ||
364 | 372 | ||
365 | - | func bo (aI, | |
373 | + | func bo (aI,aY,P,bp) = { | |
366 | 374 | let bq = z("total_nft_issued") | |
367 | - | let D = x(W( | |
368 | - | let br = x(Q( | |
375 | + | let D = x(W(aY, P)) | |
376 | + | let br = x(Q(aY, P)) | |
369 | 377 | if ((br == "")) | |
370 | 378 | then throw("Art doesn't exist") | |
371 | 379 | else { | |
372 | - | let bs = B(Y( | |
373 | - | let bt = z(X( | |
374 | - | let | |
375 | - | let | |
376 | - | let bu = z(V( | |
380 | + | let bs = B(Y(aY, P)) | |
381 | + | let bt = z(X(aY, P)) | |
382 | + | let ba = z(ad(aY, P)) | |
383 | + | let aZ = x(ae(aY, P)) | |
384 | + | let bu = z(V(aY, P)) | |
377 | 385 | if (if (if (if (if (!(bp)) | |
378 | - | then (toBase58String(aI.caller.bytes) != | |
386 | + | then (toBase58String(aI.caller.bytes) != aY) | |
379 | 387 | else false) | |
380 | - | then (0 >= | |
388 | + | then (0 >= ba) | |
381 | 389 | else false) | |
382 | 390 | then true | |
383 | 391 | else !(bs)) | |
385 | 393 | else (0 >= bu)) | |
386 | 394 | then throw("Art not for sale") | |
387 | 395 | else if (if (if (!(bp)) | |
388 | - | then (toBase58String(aI.caller.bytes) == | |
396 | + | then (toBase58String(aI.caller.bytes) == aY) | |
389 | 397 | else false) | |
390 | 398 | then (0 >= bu) | |
391 | 399 | else false) | |
394 | 402 | then (0 >= bu) | |
395 | 403 | else false) | |
396 | 404 | then throw("Art not open for Offer") | |
397 | - | else $Tuple7(bq, D, br, bt, | |
405 | + | else $Tuple7(bq, D, br, bt, ba, aZ, bu) | |
398 | 406 | } | |
399 | 407 | } | |
400 | 408 | ||
401 | 409 | ||
402 | - | func bv (aI,N, | |
403 | - | let aG = aw( | |
410 | + | func bv (aI,N,aY,P,bm,bn,aZ,ba,bp) = { | |
411 | + | let aG = aw(aY) | |
404 | 412 | if (if (bp) | |
405 | 413 | then (aG != "") | |
406 | 414 | else false) | |
407 | 415 | then throw(aG) | |
408 | 416 | else { | |
409 | - | let | |
417 | + | let bf = ((((((("bid_" + P) + "_") + aY) + "_") + bm) + "_") + bn) | |
410 | 418 | let bw = if (bp) | |
411 | - | then | |
412 | - | else | |
419 | + | then be(bf) | |
420 | + | else aX(aI, aY, aZ, ba) | |
413 | 421 | let aK = bw._1 | |
414 | 422 | let aN = bw._2 | |
415 | - | $Tuple3( | |
423 | + | $Tuple3(bf, aK, aN) | |
416 | 424 | } | |
417 | 425 | } | |
418 | 426 | ||
419 | 427 | ||
420 | - | func bx ( | |
421 | - | let by = A( | |
428 | + | func bx (aY,aZ,aK,bt,bu) = { | |
429 | + | let by = A(aY) | |
422 | 430 | let bz = if ((by > height)) | |
423 | 431 | then 0 | |
424 | - | else if (( | |
432 | + | else if ((aZ == toBase58String(g))) | |
425 | 433 | then l | |
426 | 434 | else m | |
427 | 435 | let bA = fraction(aK, bz, 100) | |
435 | 443 | } | |
436 | 444 | ||
437 | 445 | ||
438 | - | func bD ( | |
439 | - | let bE = ((((((((((("Creator: " + | |
446 | + | func bD (aY,P,D,br,bC,bu,bq,N,bm,bn,aI) = { | |
447 | + | let bE = ((((((((((("Creator: " + aY) + ", | |
440 | 448 | ArtID: ") + P) + ", | |
441 | 449 | SignID: ") + D) + ", | |
442 | 450 | Artwork name: ") + br) + ", | |
446 | 454 | let bH = if ((bC == bu)) | |
447 | 455 | then false | |
448 | 456 | else true | |
449 | - | let bI = if (if (if ((N == | |
457 | + | let bI = if (if (if ((N == aY)) | |
450 | 458 | then (bm != "") | |
451 | 459 | else false) | |
452 | 460 | then (bn != "") | |
457 | 465 | } | |
458 | 466 | ||
459 | 467 | ||
460 | - | func bJ (aN, | |
468 | + | func bJ (aN,bf,bK) = { | |
461 | 469 | let bL = if (!(isDefined(aN))) | |
462 | 470 | then "WAVES" | |
463 | 471 | else toBase58String(value(aN)) | |
464 | - | let | |
465 | - | let bM = DeleteEntry(( | |
466 | - | let bN = StringEntry(( | |
472 | + | let bg = x((bf + "_OPEN")) | |
473 | + | let bM = DeleteEntry((bf + "_OPEN")) | |
474 | + | let bN = StringEntry((bf + "_CLOSED"), ((bg + "_") + toString(bK))) | |
467 | 475 | $Tuple3(bL, bM, bN) | |
468 | 476 | } | |
469 | 477 | ||
470 | 478 | ||
471 | - | func bO (aI,P, | |
472 | - | let bP = | |
479 | + | func bO (aI,P,aY,bn,bm) = { | |
480 | + | let bP = bk(aI) | |
473 | 481 | let bQ = bP._1 | |
474 | 482 | let N = bP._2 | |
475 | 483 | let bK = bP._3 | |
476 | - | let bp = | |
477 | - | let bR = bo(aI, | |
484 | + | let bp = bl(aI, aY, bm, bn) | |
485 | + | let bR = bo(aI, aY, P, bp) | |
478 | 486 | let bq = bR._1 | |
479 | 487 | let D = bR._2 | |
480 | 488 | let br = bR._3 | |
481 | 489 | let bt = bR._4 | |
482 | - | let | |
483 | - | let | |
490 | + | let ba = bR._5 | |
491 | + | let aZ = bR._6 | |
484 | 492 | let bu = bR._7 | |
485 | - | let bS = bv(aI, N, | |
486 | - | let | |
493 | + | let bS = bv(aI, N, aY, P, bm, bn, aZ, ba, bp) | |
494 | + | let bf = bS._1 | |
487 | 495 | let aK = bS._2 | |
488 | 496 | let aN = bS._3 | |
489 | - | let bT = bx( | |
497 | + | let bT = bx(aY, aZ, aK, bt, bu) | |
490 | 498 | let bA = bT._1 | |
491 | 499 | let bB = bT._2 | |
492 | 500 | let bC = bT._3 | |
493 | - | let bU = bD( | |
501 | + | let bU = bD(aY, P, D, br, bC, bu, bq, N, bm, bn, aI) | |
494 | 502 | let bF = bU._1 | |
495 | 503 | let bG = bU._2 | |
496 | 504 | let bH = bU._3 | |
497 | 505 | let bI = bU._4 | |
498 | - | let bV = bJ(aN, | |
506 | + | let bV = bJ(aN, bf, bK) | |
499 | 507 | let bL = bV._1 | |
500 | 508 | let bM = bV._2 | |
501 | 509 | let bN = bV._3 | |
502 | - | let bW = ((((((("art_sold_" + toString(bC)) + "_of_") + toString(bu)) + "_") + P) + "_") + | |
510 | + | let bW = ((((((("art_sold_" + toString(bC)) + "_of_") + toString(bu)) + "_") + P) + "_") + aY) | |
503 | 511 | let bX = if (!(bp)) | |
504 | - | then ((((((((((N + "_") + toString(bK)) + "_") + bQ) + "_") + toString( | |
512 | + | then ((((((((((N + "_") + toString(bK)) + "_") + bQ) + "_") + toString(ba)) + "_") + aZ) + "_") + toBase58String(bG)) | |
505 | 513 | else ((((((((((toString(bI) + "_") + toString(bK)) + "_") + bQ) + "_") + toString(aK)) + "_") + bL) + "_") + toBase58String(bG)) | |
506 | 514 | let bY = StringEntry(bW, bX) | |
507 | - | let bZ = [IntegerEntry(X( | |
515 | + | let bZ = [IntegerEntry(X(aY, P), bC), StringEntry(("nft_" + toBase58String(bG)), bW), IntegerEntry("total_nft_issued", (bq + 1)), BooleanEntry(Y(aY, P), bH), bF, ScriptTransfer(Address(fromBase58String(aY)), bB, aN), ScriptTransfer(Address(fromBase58String(d)), bA, aN), ScriptTransfer(bI, 1, bG)] | |
508 | 516 | if (bp) | |
509 | 517 | then [bY, bN, bM] :: bZ | |
510 | 518 | else bY :: bZ | |
513 | 521 | ||
514 | 522 | @Callable(aI) | |
515 | 523 | func addArtwork (F,D,aC,aD,aE,ca,aF,an,ar,ao,as,ap) = { | |
516 | - | let cb = | |
524 | + | let cb = bk(aI) | |
517 | 525 | let P = cb._1 | |
518 | 526 | let N = cb._2 | |
519 | 527 | let bK = cb._3 | |
584 | 592 | ||
585 | 593 | @Callable(aI) | |
586 | 594 | func flagArtwork (P,ck,cj) = { | |
587 | - | let cl = | |
595 | + | let cl = bk(aI) | |
588 | 596 | let bQ = cl._1 | |
589 | 597 | let N = cl._2 | |
590 | 598 | if (containsElement([j, k, toString(this)], N)) | |
606 | 614 | ||
607 | 615 | @Callable(aI) | |
608 | 616 | func deleteArtwork (P,ck) = { | |
609 | - | let cm = | |
617 | + | let cm = bk(aI) | |
610 | 618 | let bQ = cm._1 | |
611 | 619 | let N = cm._2 | |
612 | 620 | let aQ = if (containsElement([j, k, toString(this)], N)) | |
640 | 648 | ||
641 | 649 | ||
642 | 650 | @Callable(aI) | |
643 | - | func sellArtwork (P, | |
644 | - | let cp = | |
651 | + | func sellArtwork (P,aT,co,aN) = { | |
652 | + | let cp = bk(aI) | |
645 | 653 | let bQ = cp._1 | |
646 | 654 | let N = cp._2 | |
647 | 655 | let br = x(Q(N, P)) | |
651 | 659 | let cq = x(U(N, P)) | |
652 | 660 | if ((size(split(cq, "/")[0]) != 59)) | |
653 | 661 | then throw("You cannot sell art with no export file") | |
654 | - | else if (!( | |
662 | + | else if (!(bc(aN))) | |
655 | 663 | then throw("Something went wrong!") | |
656 | - | else if (!( | |
664 | + | else if (!(aS(aN, aT))) | |
657 | 665 | then throw("Something went wrong!") | |
658 | 666 | else { | |
659 | 667 | let aG = aw(N) | |
673 | 681 | else false) | |
674 | 682 | then throw("Cannot change maximum issuable anymore") | |
675 | 683 | else { | |
676 | - | let bH = if (if (( | |
684 | + | let bH = if (if ((aT > 0)) | |
677 | 685 | then (co > 0) | |
678 | 686 | else false) | |
679 | 687 | then true | |
680 | 688 | else false | |
681 | - | [BooleanEntry(Y(N, P), bH), IntegerEntry(ad(N, P), | |
689 | + | [BooleanEntry(Y(N, P), bH), IntegerEntry(ad(N, P), aT), IntegerEntry(V(N, P), co), StringEntry(ae(N, P), aN)] | |
682 | 690 | } | |
683 | 691 | } | |
684 | 692 | } | |
688 | 696 | ||
689 | 697 | ||
690 | 698 | @Callable(aI) | |
691 | - | func buyArtwork (P, | |
699 | + | func buyArtwork (P,aY) = bO(aI, P, aY, "", "") | |
692 | 700 | ||
693 | 701 | ||
694 | 702 | ||
695 | 703 | @Callable(aI) | |
696 | - | func setBid (P, | |
697 | - | let cr = | |
704 | + | func setBid (P,aY) = { | |
705 | + | let cr = bk(aI) | |
698 | 706 | let bQ = cr._1 | |
699 | 707 | let N = cr._2 | |
700 | 708 | let bK = cr._3 | |
704 | 712 | let aN = if (!(isDefined(aJ.assetId))) | |
705 | 713 | then "WAVES" | |
706 | 714 | else toBase58String(value(aJ.assetId)) | |
707 | - | if (!( | |
715 | + | if (!(bc(aN))) | |
708 | 716 | then throw("asset not accepted") | |
709 | - | else if (!( | |
717 | + | else if (!(aS(aN, aK))) | |
710 | 718 | then throw("Wrong min sell") | |
711 | 719 | else { | |
712 | - | let bt = z(X( | |
713 | - | let bu = z(V( | |
720 | + | let bt = z(X(aY, P)) | |
721 | + | let bu = z(V(aY, P)) | |
714 | 722 | if ((0 >= bu)) | |
715 | 723 | then throw("No max edition set for this artwork") | |
716 | 724 | else if ((bt >= bu)) | |
717 | 725 | then throw("Sold out, you cannot bid") | |
718 | - | else [StringEntry((((((((("bid_" + P) + "_") + | |
726 | + | else [StringEntry((((((((("bid_" + P) + "_") + aY) + "_") + N) + "_") + bQ) + "_OPEN"), ((((aN + "_") + toString(aK)) + "_") + toString(bK)))] | |
719 | 727 | } | |
720 | 728 | } | |
721 | 729 | ||
722 | 730 | ||
723 | 731 | ||
724 | 732 | @Callable(aI) | |
725 | - | func acceptBid (P, | |
733 | + | func acceptBid (P,aY,bn,bm) = { | |
726 | 734 | let N = toBase58String(aI.caller.bytes) | |
727 | - | if ((N != | |
735 | + | if ((N != aY)) | |
728 | 736 | then throw("You cannot do this action") | |
729 | - | else bO(aI, P, | |
737 | + | else bO(aI, P, aY, bn, bm) | |
730 | 738 | } | |
731 | 739 | ||
732 | 740 | ||
733 | 741 | ||
734 | 742 | @Callable(aI) | |
735 | - | func cancelBid (P, | |
736 | - | let ct = | |
743 | + | func cancelBid (P,aY,bn) = { | |
744 | + | let ct = bk(aI) | |
737 | 745 | let bQ = ct._1 | |
738 | 746 | let N = ct._2 | |
739 | 747 | let bK = ct._3 | |
740 | - | let | |
741 | - | let | |
742 | - | if (( | |
748 | + | let bf = ((((((("bid_" + P) + "_") + aY) + "_") + N) + "_") + bn) | |
749 | + | let bg = x((bf + "_OPEN")) | |
750 | + | if ((bg == "")) | |
743 | 751 | then throw("Bid not found") | |
744 | 752 | else { | |
745 | - | let | |
746 | - | let aN = | |
753 | + | let bh = split(bg, "_") | |
754 | + | let aN = bd(bh[0]) | |
747 | 755 | let cu = "CANCELED" | |
748 | - | [DeleteEntry(( | |
756 | + | [DeleteEntry((bf + "_OPEN")), StringEntry(((bf + "_") + cu), ((bg + "_") + toString(bK))), ScriptTransfer(Address(fromBase58String(N)), parseIntValue(bh[1]), aN)] | |
749 | 757 | } | |
750 | 758 | } | |
751 | 759 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = false | |
5 | 5 | ||
6 | 6 | let b = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
7 | 7 | ||
8 | 8 | let c = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
9 | 9 | ||
10 | 10 | let d = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
11 | 11 | ||
12 | 12 | let e = if (a) | |
13 | 13 | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
14 | 14 | else value(addressFromString("3MwDZagoYEiNfQLc31cGpYoaE54MGMwoFrZ")) | |
15 | 15 | ||
16 | 16 | let f = value(addressFromString("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq")) | |
17 | 17 | ||
18 | 18 | let g = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
19 | 19 | ||
20 | 20 | let h = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
21 | 21 | ||
22 | 22 | let i = base58'' | |
23 | 23 | ||
24 | 24 | let j = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
25 | 25 | ||
26 | 26 | let k = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
27 | 27 | ||
28 | 28 | let l = 7 | |
29 | 29 | ||
30 | 30 | let m = 10 | |
31 | 31 | ||
32 | 32 | let n = "bafybeifuyo4pqu54ismqgtb6e4h6kkvgx7zg4u3zibh2r7y6mb64i7bzza/licence.pdf" | |
33 | 33 | ||
34 | 34 | let o = "a87758c354e30a9e78fb84fa3a0010a5090ab20df0be11ad45b5720cc187e639" | |
35 | 35 | ||
36 | 36 | let p = valueOrElse(getBoolean(e, "conf_dapp_is_running"), true) | |
37 | 37 | ||
38 | 38 | let q = valueOrElse(getString(e, "conf_maintenance_msg"), "") | |
39 | 39 | ||
40 | 40 | let r = "SUSPENDED" | |
41 | 41 | ||
42 | 42 | let s = "REMOVED" | |
43 | 43 | ||
44 | 44 | let t = "UNREGISTERED" | |
45 | 45 | ||
46 | 46 | let u = "ALLOWED" | |
47 | 47 | ||
48 | 48 | func v (w) = valueOrElse(getString(e, w), "") | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func x (w) = valueOrElse(getString(this, w), "") | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func y (w) = valueOrErrorMessage(getInteger(b, w), "Integer undefine or 0 in oracle") | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func z (w) = valueOrElse(getInteger(this, w), 0) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func A (w) = valueOrElse(getInteger(f, w), 0) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func B (w) = valueOrElse(getBoolean(this, w), false) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func C (D,E,F) = { | |
67 | 67 | let G = getString(c, ((("data_fc_" + D) + "_") + E)) | |
68 | 68 | if ($isInstanceOf(G, "String")) | |
69 | 69 | then { | |
70 | 70 | let H = G | |
71 | 71 | if (contains(H, F)) | |
72 | 72 | then true | |
73 | 73 | else false | |
74 | 74 | } | |
75 | 75 | else false | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func I (J) = if (contains(J, "/")) | |
80 | 80 | then if (if ((76 > size(J))) | |
81 | 81 | then (size(split(J, "/")[0]) == 59) | |
82 | 82 | else false) | |
83 | 83 | then (16 > size(split(J, "/")[1])) | |
84 | 84 | else false | |
85 | 85 | else false | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func K (L) = (size(L) == 64) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func M (N) = ("user_status_" + N) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func O (N,P) = ((("art_date_" + P) + "_") + N) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func Q (N,P) = ((("art_name_" + P) + "_") + N) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func R (N,P) = ((("art_desc_" + P) + "_") + N) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func S (N,P) = ((("art_display_cid_" + P) + "_") + N) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func T (N,P) = ((("art_export_hash_" + P) + "_") + N) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func U (N,P) = ((("art_export_cid_" + P) + "_") + N) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func V (N,P) = ((("art_maxmint_" + P) + "_") + N) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func W (N,P) = ((("art_signid_" + P) + "_") + N) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func X (N,P) = ((("art_issued_" + P) + "_") + N) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func Y (N,P) = ((("art_onsale_" + P) + "_") + N) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func Z (N,P) = ((("art_licence_hash_" + P) + "_") + N) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func aa (N,P) = ((("art_licence_cid_" + P) + "_") + N) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func ab (N,P) = ((("art_tags_" + P) + "_") + N) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func ac (N,P) = ((("art_type_" + P) + "_") + N) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func ad (N,P) = ((("art_price_" + P) + "_") + N) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func ae (N,P) = ((("art_assetAccepted_" + P) + "_") + N) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func af (N,P) = ((("art_flag_" + P) + "_") + N) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func ag (N,ah) = ((("get_hashbytxidaddr_" + ah) + "_") + N) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func ai (F) = ("get_owner_by_hash_" + F) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func aj (N,ak) = ((("get_artidbysignid_" + ak) + "_") + N) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func al (F,N) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((F + N))))) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func am (an,ao,ap) = if (!(I(an))) | |
158 | 158 | then throw("Wrong Display CID") | |
159 | 159 | else if (!(I(ao))) | |
160 | 160 | then throw("Wrong Export CID") | |
161 | 161 | else if (if ((ap != "")) | |
162 | 162 | then !(I(ap)) | |
163 | 163 | else false) | |
164 | 164 | then throw("Wrong Licence CID") | |
165 | 165 | else true | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func aq (ar,as) = if (!(K(ar))) | |
169 | 169 | then throw("Export Hash 64 char. max") | |
170 | 170 | else if (!(K(as))) | |
171 | 171 | then throw("Licence Hash 64 char. max") | |
172 | 172 | else true | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func at (au,av) = if ((size(au) == 0)) | |
176 | 176 | then throw("Field cannot be is empty") | |
177 | 177 | else if ((size(au) > av)) | |
178 | 178 | then throw((au + " is too long")) | |
179 | 179 | else true | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func aw (N) = { | |
183 | 183 | let ax = valueOrElse(getString(e, M(N)), t) | |
184 | 184 | if (if ((ax == t)) | |
185 | 185 | then true | |
186 | 186 | else (ax == u)) | |
187 | 187 | then "Register this account first with \"Account\" tab" | |
188 | 188 | else if ((ax == r)) | |
189 | 189 | then "Account suspended" | |
190 | 190 | else if ((ax == s)) | |
191 | 191 | then "Account removed" | |
192 | 192 | else "" | |
193 | 193 | } | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func ay (ap,as) = { | |
197 | 197 | let J = if ((size(ap) == 0)) | |
198 | 198 | then n | |
199 | 199 | else ap | |
200 | 200 | let L = if ((size(as) == 0)) | |
201 | 201 | then o | |
202 | 202 | else as | |
203 | 203 | $Tuple2(J, L) | |
204 | 204 | } | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func az (N,an,ao,aA,ar,aB,aC,aD,aE,aF) = { | |
208 | 208 | let aG = aw(N) | |
209 | 209 | if ((aG != "")) | |
210 | 210 | then throw(aG) | |
211 | 211 | else if ((size(an) == 0)) | |
212 | 212 | then throw("Display CID cannot be empty") | |
213 | 213 | else if (!(am(an, ao, aA))) | |
214 | 214 | then throw("Problem with CID") | |
215 | 215 | else if (!(aq(ar, aB))) | |
216 | 216 | then throw("Problem with Hashes") | |
217 | 217 | else if (!(at(aC, 100))) | |
218 | 218 | then throw("100 Char. max name") | |
219 | 219 | else if (!(at(aD, 1000))) | |
220 | 220 | then throw("1000 Char. max description") | |
221 | 221 | else if ((size(split(aE, ",")) > 5)) | |
222 | 222 | then throw("5 tags max.") | |
223 | 223 | else if ((aF > 10)) | |
224 | 224 | then throw("10 editions max per artwork") | |
225 | 225 | else "" | |
226 | 226 | } | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func aH (aI) = if ((size(aI.payments) == 0)) | |
230 | 230 | then throw("No payment attached") | |
231 | 231 | else { | |
232 | 232 | let aJ = value(aI.payments[0]) | |
233 | 233 | let aK = value(aJ.amount) | |
234 | 234 | $Tuple2(aJ, aK) | |
235 | 235 | } | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | func aL (aI) = { | |
239 | 239 | let aM = aH(aI) | |
240 | 240 | let aJ = aM._1 | |
241 | 241 | let aK = aM._2 | |
242 | 242 | let aN = if (if (isDefined(aJ.assetId)) | |
243 | 243 | then (aJ.assetId == g) | |
244 | 244 | else false) | |
245 | 245 | then aJ.assetId | |
246 | 246 | else throw("Only SIGN token accepted as transaction fee") | |
247 | 247 | let aO = y(("certification_fee_" + toBase58String(g))) | |
248 | 248 | if ((aK != aO)) | |
249 | 249 | then throw(("Payment amount should be " + toString(aO))) | |
250 | 250 | else $Tuple2(aK, aN) | |
251 | 251 | } | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func aP (aQ,P) = { | |
255 | 255 | let G = getInteger(this, X(aQ, P)) | |
256 | 256 | if ($isInstanceOf(G, "Int")) | |
257 | 257 | then { | |
258 | 258 | let aR = G | |
259 | 259 | if ((aR != 0)) | |
260 | 260 | then true | |
261 | 261 | else false | |
262 | 262 | } | |
263 | 263 | else false | |
264 | 264 | } | |
265 | 265 | ||
266 | 266 | ||
267 | - | func aS (aI,aT,aU) = { | |
268 | - | let aV = aH(aI) | |
269 | - | let aJ = aV._1 | |
270 | - | let aK = aV._2 | |
267 | + | func aS (aN,aT) = { | |
268 | + | let aU = if (a) | |
269 | + | then 10 | |
270 | + | else y("waves_min_sell") | |
271 | + | let aV = 1000000 | |
272 | + | let aW = if (a) | |
273 | + | then 1 | |
274 | + | else (y(("certification_fee_" + toBase58String(g))) * 2) | |
275 | + | if (if (if (if (if ((aN == toBase58String(h))) | |
276 | + | then (aV > aT) | |
277 | + | else false) | |
278 | + | then (aT != 0) | |
279 | + | else false) | |
280 | + | then true | |
281 | + | else if (if ((aN == toBase58String(g))) | |
282 | + | then (aW > aT) | |
283 | + | else false) | |
284 | + | then (aT != 0) | |
285 | + | else false) | |
286 | + | then true | |
287 | + | else if (if (if ((aN == toBase58String(i))) | |
288 | + | then true | |
289 | + | else (aN == "WAVES")) | |
290 | + | then (aU > aT) | |
291 | + | else false) | |
292 | + | then (aT != 0) | |
293 | + | else false) | |
294 | + | then throw("Wrong minimum sell price") | |
295 | + | else true | |
296 | + | } | |
297 | + | ||
298 | + | ||
299 | + | func aX (aI,aY,aZ,ba) = { | |
300 | + | let bb = aH(aI) | |
301 | + | let aJ = bb._1 | |
302 | + | let aK = bb._2 | |
271 | 303 | let aN = if (!(isDefined(aJ.assetId))) | |
272 | 304 | then unit | |
273 | - | else if (if ((size( | |
274 | - | then (toBase58String(value(aJ.assetId)) == | |
305 | + | else if (if ((size(aZ) > 0)) | |
306 | + | then (toBase58String(value(aJ.assetId)) == aZ) | |
275 | 307 | else false) | |
276 | 308 | then aJ.assetId | |
277 | 309 | else throw("Wrong asset id") | |
278 | 310 | if (if ((aN == unit)) | |
279 | - | then ( | |
311 | + | then (aZ != "") | |
280 | 312 | else false) | |
281 | 313 | then throw("Wrong asset id") | |
282 | - | else if ((aU != aK)) | |
314 | + | else if (if ((ba != aK)) | |
315 | + | then (toBase58String(aI.caller.bytes) != aY) | |
316 | + | else false) | |
283 | 317 | then throw("Payment don't match") | |
284 | - | else $Tuple2(aK, aN) | |
318 | + | else if (if (if ((ba != aK)) | |
319 | + | then (toBase58String(aI.caller.bytes) == aY) | |
320 | + | else false) | |
321 | + | then !(aS(aZ, ba)) | |
322 | + | else false) | |
323 | + | then throw("Min sell don't match") | |
324 | + | else $Tuple2(aK, aN) | |
285 | 325 | } | |
286 | 326 | ||
287 | 327 | ||
288 | - | func | |
328 | + | func bc (aN) = if (if (if (if ((aN != toBase58String(g))) | |
289 | 329 | then (aN != toBase58String(i)) | |
290 | 330 | else false) | |
291 | 331 | then (aN != "WAVES") | |
292 | 332 | else false) | |
293 | 333 | then (aN != toBase58String(h)) | |
294 | 334 | else false) | |
295 | 335 | then throw("Only SIGN, USDN or WAVES accepted") | |
296 | 336 | else true | |
297 | 337 | ||
298 | 338 | ||
299 | - | func aX (aN,aY) = { | |
300 | - | let aZ = if (a) | |
301 | - | then 10 | |
302 | - | else y("waves_min_sell") | |
303 | - | let ba = 1000000 | |
304 | - | let bb = if (a) | |
305 | - | then 1 | |
306 | - | else (y(("certification_fee_" + toBase58String(g))) * 2) | |
307 | - | if (if (if (if (if ((aN == toBase58String(h))) | |
308 | - | then (ba > aY) | |
309 | - | else false) | |
310 | - | then (aY != 0) | |
311 | - | else false) | |
312 | - | then true | |
313 | - | else if (if ((aN == toBase58String(g))) | |
314 | - | then (bb > aY) | |
315 | - | else false) | |
316 | - | then (aY != 0) | |
317 | - | else false) | |
318 | - | then true | |
319 | - | else if (if (if ((aN == toBase58String(i))) | |
320 | - | then true | |
321 | - | else (aN == "WAVES")) | |
322 | - | then (aZ > aY) | |
323 | - | else false) | |
324 | - | then (aY != 0) | |
325 | - | else false) | |
326 | - | then throw("Wrong minimum sell price") | |
327 | - | else true | |
328 | - | } | |
329 | - | ||
330 | - | ||
331 | - | func bc (aN) = if ((aN == "WAVES")) | |
339 | + | func bd (aN) = if ((aN == "WAVES")) | |
332 | 340 | then unit | |
333 | 341 | else fromBase58String(aN) | |
334 | 342 | ||
335 | 343 | ||
336 | - | func | |
337 | - | let | |
338 | - | if (( | |
344 | + | func be (bf) = { | |
345 | + | let bg = x((bf + "_OPEN")) | |
346 | + | if ((bg == "")) | |
339 | 347 | then throw("Bid not found") | |
340 | 348 | else { | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | if ((0 >= | |
349 | + | let bh = split(bg, "_") | |
350 | + | let bi = parseIntValue(bh[1]) | |
351 | + | let bj = bd(bh[0]) | |
352 | + | if ((0 >= bi)) | |
345 | 353 | then throw("Wrong amount") | |
346 | - | else $Tuple2( | |
354 | + | else $Tuple2(bi, bj) | |
347 | 355 | } | |
348 | 356 | } | |
349 | 357 | ||
350 | 358 | ||
351 | - | func | |
359 | + | func bk (aI) = if (!(p)) | |
352 | 360 | then throw(q) | |
353 | 361 | else $Tuple3(toBase58String(aI.transactionId), toBase58String(aI.caller.bytes), lastBlock.timestamp) | |
354 | 362 | ||
355 | 363 | ||
356 | - | func | |
364 | + | func bl (aI,aY,bm,bn) = if (if (if ((toBase58String(aI.caller.bytes) == aY)) | |
357 | 365 | then (bm != "") | |
358 | 366 | else false) | |
359 | 367 | then (bn != "") | |
360 | 368 | else false) | |
361 | 369 | then true | |
362 | 370 | else false | |
363 | 371 | ||
364 | 372 | ||
365 | - | func bo (aI, | |
373 | + | func bo (aI,aY,P,bp) = { | |
366 | 374 | let bq = z("total_nft_issued") | |
367 | - | let D = x(W( | |
368 | - | let br = x(Q( | |
375 | + | let D = x(W(aY, P)) | |
376 | + | let br = x(Q(aY, P)) | |
369 | 377 | if ((br == "")) | |
370 | 378 | then throw("Art doesn't exist") | |
371 | 379 | else { | |
372 | - | let bs = B(Y( | |
373 | - | let bt = z(X( | |
374 | - | let | |
375 | - | let | |
376 | - | let bu = z(V( | |
380 | + | let bs = B(Y(aY, P)) | |
381 | + | let bt = z(X(aY, P)) | |
382 | + | let ba = z(ad(aY, P)) | |
383 | + | let aZ = x(ae(aY, P)) | |
384 | + | let bu = z(V(aY, P)) | |
377 | 385 | if (if (if (if (if (!(bp)) | |
378 | - | then (toBase58String(aI.caller.bytes) != | |
386 | + | then (toBase58String(aI.caller.bytes) != aY) | |
379 | 387 | else false) | |
380 | - | then (0 >= | |
388 | + | then (0 >= ba) | |
381 | 389 | else false) | |
382 | 390 | then true | |
383 | 391 | else !(bs)) | |
384 | 392 | then true | |
385 | 393 | else (0 >= bu)) | |
386 | 394 | then throw("Art not for sale") | |
387 | 395 | else if (if (if (!(bp)) | |
388 | - | then (toBase58String(aI.caller.bytes) == | |
396 | + | then (toBase58String(aI.caller.bytes) == aY) | |
389 | 397 | else false) | |
390 | 398 | then (0 >= bu) | |
391 | 399 | else false) | |
392 | 400 | then throw("Max issuable") | |
393 | 401 | else if (if (bp) | |
394 | 402 | then (0 >= bu) | |
395 | 403 | else false) | |
396 | 404 | then throw("Art not open for Offer") | |
397 | - | else $Tuple7(bq, D, br, bt, | |
405 | + | else $Tuple7(bq, D, br, bt, ba, aZ, bu) | |
398 | 406 | } | |
399 | 407 | } | |
400 | 408 | ||
401 | 409 | ||
402 | - | func bv (aI,N, | |
403 | - | let aG = aw( | |
410 | + | func bv (aI,N,aY,P,bm,bn,aZ,ba,bp) = { | |
411 | + | let aG = aw(aY) | |
404 | 412 | if (if (bp) | |
405 | 413 | then (aG != "") | |
406 | 414 | else false) | |
407 | 415 | then throw(aG) | |
408 | 416 | else { | |
409 | - | let | |
417 | + | let bf = ((((((("bid_" + P) + "_") + aY) + "_") + bm) + "_") + bn) | |
410 | 418 | let bw = if (bp) | |
411 | - | then | |
412 | - | else | |
419 | + | then be(bf) | |
420 | + | else aX(aI, aY, aZ, ba) | |
413 | 421 | let aK = bw._1 | |
414 | 422 | let aN = bw._2 | |
415 | - | $Tuple3( | |
423 | + | $Tuple3(bf, aK, aN) | |
416 | 424 | } | |
417 | 425 | } | |
418 | 426 | ||
419 | 427 | ||
420 | - | func bx ( | |
421 | - | let by = A( | |
428 | + | func bx (aY,aZ,aK,bt,bu) = { | |
429 | + | let by = A(aY) | |
422 | 430 | let bz = if ((by > height)) | |
423 | 431 | then 0 | |
424 | - | else if (( | |
432 | + | else if ((aZ == toBase58String(g))) | |
425 | 433 | then l | |
426 | 434 | else m | |
427 | 435 | let bA = fraction(aK, bz, 100) | |
428 | 436 | let bB = (aK - bA) | |
429 | 437 | if ((bt == bu)) | |
430 | 438 | then throw("Art sold out") | |
431 | 439 | else { | |
432 | 440 | let bC = (bt + 1) | |
433 | 441 | $Tuple3(bA, bB, bC) | |
434 | 442 | } | |
435 | 443 | } | |
436 | 444 | ||
437 | 445 | ||
438 | - | func bD ( | |
439 | - | let bE = ((((((((((("Creator: " + | |
446 | + | func bD (aY,P,D,br,bC,bu,bq,N,bm,bn,aI) = { | |
447 | + | let bE = ((((((((((("Creator: " + aY) + ", | |
440 | 448 | ArtID: ") + P) + ", | |
441 | 449 | SignID: ") + D) + ", | |
442 | 450 | Artwork name: ") + br) + ", | |
443 | 451 | Issue: ") + toString(bC)) + "/") + toString(bu)) | |
444 | 452 | let bF = Issue(("SA_" + toString((bq + 1))), bE, 1, 0, false) | |
445 | 453 | let bG = calculateAssetId(bF) | |
446 | 454 | let bH = if ((bC == bu)) | |
447 | 455 | then false | |
448 | 456 | else true | |
449 | - | let bI = if (if (if ((N == | |
457 | + | let bI = if (if (if ((N == aY)) | |
450 | 458 | then (bm != "") | |
451 | 459 | else false) | |
452 | 460 | then (bn != "") | |
453 | 461 | else false) | |
454 | 462 | then addressFromStringValue(bm) | |
455 | 463 | else aI.caller | |
456 | 464 | $Tuple4(bF, bG, bH, bI) | |
457 | 465 | } | |
458 | 466 | ||
459 | 467 | ||
460 | - | func bJ (aN, | |
468 | + | func bJ (aN,bf,bK) = { | |
461 | 469 | let bL = if (!(isDefined(aN))) | |
462 | 470 | then "WAVES" | |
463 | 471 | else toBase58String(value(aN)) | |
464 | - | let | |
465 | - | let bM = DeleteEntry(( | |
466 | - | let bN = StringEntry(( | |
472 | + | let bg = x((bf + "_OPEN")) | |
473 | + | let bM = DeleteEntry((bf + "_OPEN")) | |
474 | + | let bN = StringEntry((bf + "_CLOSED"), ((bg + "_") + toString(bK))) | |
467 | 475 | $Tuple3(bL, bM, bN) | |
468 | 476 | } | |
469 | 477 | ||
470 | 478 | ||
471 | - | func bO (aI,P, | |
472 | - | let bP = | |
479 | + | func bO (aI,P,aY,bn,bm) = { | |
480 | + | let bP = bk(aI) | |
473 | 481 | let bQ = bP._1 | |
474 | 482 | let N = bP._2 | |
475 | 483 | let bK = bP._3 | |
476 | - | let bp = | |
477 | - | let bR = bo(aI, | |
484 | + | let bp = bl(aI, aY, bm, bn) | |
485 | + | let bR = bo(aI, aY, P, bp) | |
478 | 486 | let bq = bR._1 | |
479 | 487 | let D = bR._2 | |
480 | 488 | let br = bR._3 | |
481 | 489 | let bt = bR._4 | |
482 | - | let | |
483 | - | let | |
490 | + | let ba = bR._5 | |
491 | + | let aZ = bR._6 | |
484 | 492 | let bu = bR._7 | |
485 | - | let bS = bv(aI, N, | |
486 | - | let | |
493 | + | let bS = bv(aI, N, aY, P, bm, bn, aZ, ba, bp) | |
494 | + | let bf = bS._1 | |
487 | 495 | let aK = bS._2 | |
488 | 496 | let aN = bS._3 | |
489 | - | let bT = bx( | |
497 | + | let bT = bx(aY, aZ, aK, bt, bu) | |
490 | 498 | let bA = bT._1 | |
491 | 499 | let bB = bT._2 | |
492 | 500 | let bC = bT._3 | |
493 | - | let bU = bD( | |
501 | + | let bU = bD(aY, P, D, br, bC, bu, bq, N, bm, bn, aI) | |
494 | 502 | let bF = bU._1 | |
495 | 503 | let bG = bU._2 | |
496 | 504 | let bH = bU._3 | |
497 | 505 | let bI = bU._4 | |
498 | - | let bV = bJ(aN, | |
506 | + | let bV = bJ(aN, bf, bK) | |
499 | 507 | let bL = bV._1 | |
500 | 508 | let bM = bV._2 | |
501 | 509 | let bN = bV._3 | |
502 | - | let bW = ((((((("art_sold_" + toString(bC)) + "_of_") + toString(bu)) + "_") + P) + "_") + | |
510 | + | let bW = ((((((("art_sold_" + toString(bC)) + "_of_") + toString(bu)) + "_") + P) + "_") + aY) | |
503 | 511 | let bX = if (!(bp)) | |
504 | - | then ((((((((((N + "_") + toString(bK)) + "_") + bQ) + "_") + toString( | |
512 | + | then ((((((((((N + "_") + toString(bK)) + "_") + bQ) + "_") + toString(ba)) + "_") + aZ) + "_") + toBase58String(bG)) | |
505 | 513 | else ((((((((((toString(bI) + "_") + toString(bK)) + "_") + bQ) + "_") + toString(aK)) + "_") + bL) + "_") + toBase58String(bG)) | |
506 | 514 | let bY = StringEntry(bW, bX) | |
507 | - | let bZ = [IntegerEntry(X( | |
515 | + | let bZ = [IntegerEntry(X(aY, P), bC), StringEntry(("nft_" + toBase58String(bG)), bW), IntegerEntry("total_nft_issued", (bq + 1)), BooleanEntry(Y(aY, P), bH), bF, ScriptTransfer(Address(fromBase58String(aY)), bB, aN), ScriptTransfer(Address(fromBase58String(d)), bA, aN), ScriptTransfer(bI, 1, bG)] | |
508 | 516 | if (bp) | |
509 | 517 | then [bY, bN, bM] :: bZ | |
510 | 518 | else bY :: bZ | |
511 | 519 | } | |
512 | 520 | ||
513 | 521 | ||
514 | 522 | @Callable(aI) | |
515 | 523 | func addArtwork (F,D,aC,aD,aE,ca,aF,an,ar,ao,as,ap) = { | |
516 | - | let cb = | |
524 | + | let cb = bk(aI) | |
517 | 525 | let P = cb._1 | |
518 | 526 | let N = cb._2 | |
519 | 527 | let bK = cb._3 | |
520 | 528 | if (!(K(F))) | |
521 | 529 | then throw("Hash should be 64 characters maximum") | |
522 | 530 | else { | |
523 | 531 | let cc = ay(ap, as) | |
524 | 532 | let aA = cc._1 | |
525 | 533 | let aB = cc._2 | |
526 | 534 | let cd = az(N, an, ao, aA, ar, aB, aC, aD, aE, aF) | |
527 | 535 | if ((cd != "")) | |
528 | 536 | then throw("Something went wrong!") | |
529 | 537 | else { | |
530 | 538 | let ce = aL(aI) | |
531 | 539 | let aK = ce._1 | |
532 | 540 | let aN = ce._2 | |
533 | 541 | if (!(isDefined(aK))) | |
534 | 542 | then throw("Something went wrong") | |
535 | 543 | else { | |
536 | 544 | let cf = x(al(F, N)) | |
537 | 545 | if ((cf != "")) | |
538 | 546 | then throw("You already added it") | |
539 | 547 | else { | |
540 | 548 | let cg = x(ai(F)) | |
541 | 549 | if ((cg != "")) | |
542 | 550 | then throw("Hash already registered") | |
543 | 551 | else { | |
544 | 552 | let ch = C(D, N, F) | |
545 | 553 | if (!(ch)) | |
546 | 554 | then throw("Sign Certificate not found for this address.") | |
547 | 555 | else [StringEntry(ai(F), N), StringEntry(al(F, N), P), IntegerEntry(O(N, P), bK), StringEntry(Q(N, P), aC), StringEntry(R(N, P), aD), StringEntry(S(N, P), an), StringEntry(U(N, P), ao), StringEntry(T(N, P), ar), StringEntry(Z(N, P), aB), StringEntry(aa(N, P), aA), StringEntry(ac(N, P), ca), StringEntry(ab(N, P), aE), IntegerEntry(V(N, P), aF), StringEntry(W(N, P), D), IntegerEntry(X(N, P), 0), BooleanEntry(Y(N, P), false), StringEntry(aj(N, D), P), StringEntry(ag(N, P), F), ScriptTransfer(Address(fromBase58String(d)), aK, aN)] | |
548 | 556 | } | |
549 | 557 | } | |
550 | 558 | } | |
551 | 559 | } | |
552 | 560 | } | |
553 | 561 | } | |
554 | 562 | ||
555 | 563 | ||
556 | 564 | ||
557 | 565 | @Callable(aI) | |
558 | 566 | func updateArtwork (ah,aC,aD,aE,ca,aF,an,ar,ao,as,ap) = if (!(p)) | |
559 | 567 | then throw(q) | |
560 | 568 | else { | |
561 | 569 | let N = toBase58String(aI.caller.bytes) | |
562 | 570 | let ci = ay(ap, as) | |
563 | 571 | let aA = ci._1 | |
564 | 572 | let aB = ci._2 | |
565 | 573 | let cd = az(N, an, ao, aA, ar, aB, aC, aD, aE, aF) | |
566 | 574 | if ((cd != "")) | |
567 | 575 | then throw("Something went wrong!") | |
568 | 576 | else { | |
569 | 577 | let cf = x(Q(N, ah)) | |
570 | 578 | if ((cf == "")) | |
571 | 579 | then throw("Entry not found") | |
572 | 580 | else { | |
573 | 581 | let cj = x(af(N, ah)) | |
574 | 582 | if ((cj == "ILLEGAL")) | |
575 | 583 | then throw("Cannot update ILLEGAL artwork") | |
576 | 584 | else if (!(aP(N, ah))) | |
577 | 585 | then [StringEntry(Q(N, ah), aC), StringEntry(R(N, ah), aD), StringEntry(S(N, ah), an), StringEntry(U(N, ah), ao), StringEntry(T(N, ah), ar), StringEntry(aa(N, ah), aA), StringEntry(Z(N, ah), aB), IntegerEntry(V(N, ah), aF), StringEntry(ab(N, ah), aE), StringEntry(ac(N, ah), ca)] | |
578 | 586 | else throw("Already minted") | |
579 | 587 | } | |
580 | 588 | } | |
581 | 589 | } | |
582 | 590 | ||
583 | 591 | ||
584 | 592 | ||
585 | 593 | @Callable(aI) | |
586 | 594 | func flagArtwork (P,ck,cj) = { | |
587 | - | let cl = | |
595 | + | let cl = bk(aI) | |
588 | 596 | let bQ = cl._1 | |
589 | 597 | let N = cl._2 | |
590 | 598 | if (containsElement([j, k, toString(this)], N)) | |
591 | 599 | then if ((cj == "CONSENT")) | |
592 | 600 | then [StringEntry(af(ck, P), cj)] | |
593 | 601 | else if ((cj == "")) | |
594 | 602 | then [StringEntry(af(ck, P), cj)] | |
595 | 603 | else if ((cj == "CHANGE_REQUIRED")) | |
596 | 604 | then [StringEntry(af(ck, P), cj)] | |
597 | 605 | else if (if ((cj == "ILLEGAL")) | |
598 | 606 | then containsElement([j, toString(this)], N) | |
599 | 607 | else false) | |
600 | 608 | then [StringEntry(af(ck, P), cj), StringEntry(Q(ck, P), "ILLEGAL CONTENT"), StringEntry(R(ck, P), "ILLEGAL CONTENT"), StringEntry(S(ck, P), ""), StringEntry(U(ck, P), ""), StringEntry(aa(ck, P), "")] | |
601 | 609 | else throw(("Unknow status " + cj)) | |
602 | 610 | else throw("You are not allowed") | |
603 | 611 | } | |
604 | 612 | ||
605 | 613 | ||
606 | 614 | ||
607 | 615 | @Callable(aI) | |
608 | 616 | func deleteArtwork (P,ck) = { | |
609 | - | let cm = | |
617 | + | let cm = bk(aI) | |
610 | 618 | let bQ = cm._1 | |
611 | 619 | let N = cm._2 | |
612 | 620 | let aQ = if (containsElement([j, k, toString(this)], N)) | |
613 | 621 | then ck | |
614 | 622 | else N | |
615 | 623 | let cf = valueOrErrorMessage(x(Q(aQ, P)), "No art matching for this address") | |
616 | 624 | if ((cf == "")) | |
617 | 625 | then throw("No art matching for this address") | |
618 | 626 | else { | |
619 | 627 | let F = x(ag(aQ, P)) | |
620 | 628 | if ((F == "")) | |
621 | 629 | then throw("No art hash matching for this address") | |
622 | 630 | else { | |
623 | 631 | let D = x(W(aQ, P)) | |
624 | 632 | if ((D == "")) | |
625 | 633 | then throw("No SIGN ID matching") | |
626 | 634 | else { | |
627 | 635 | let cn = [DeleteEntry(O(aQ, P)), DeleteEntry(Q(aQ, P)), DeleteEntry(R(aQ, P)), DeleteEntry(S(aQ, P)), DeleteEntry(U(aQ, P)), DeleteEntry(T(aQ, P)), DeleteEntry(Z(aQ, P)), DeleteEntry(aa(aQ, P)), DeleteEntry(ac(aQ, P)), DeleteEntry(ab(aQ, P)), DeleteEntry(V(aQ, P)), DeleteEntry(W(aQ, P)), DeleteEntry(X(aQ, P)), DeleteEntry(Y(aQ, P)), DeleteEntry(af(ck, P)), DeleteEntry(ad(ck, P)), DeleteEntry(ae(ck, P)), DeleteEntry(ai(F)), DeleteEntry(aj(aQ, D)), DeleteEntry(al(F, aQ))] | |
628 | 636 | if (!(aP(aQ, P))) | |
629 | 637 | then if (!(p)) | |
630 | 638 | then throw(q) | |
631 | 639 | else cn | |
632 | 640 | else if (containsElement([j, toString(this)], N)) | |
633 | 641 | then cn | |
634 | 642 | else throw("Art already minted, you cannot delete it") | |
635 | 643 | } | |
636 | 644 | } | |
637 | 645 | } | |
638 | 646 | } | |
639 | 647 | ||
640 | 648 | ||
641 | 649 | ||
642 | 650 | @Callable(aI) | |
643 | - | func sellArtwork (P, | |
644 | - | let cp = | |
651 | + | func sellArtwork (P,aT,co,aN) = { | |
652 | + | let cp = bk(aI) | |
645 | 653 | let bQ = cp._1 | |
646 | 654 | let N = cp._2 | |
647 | 655 | let br = x(Q(N, P)) | |
648 | 656 | if ((br == "")) | |
649 | 657 | then throw("This art doesn't match your account") | |
650 | 658 | else { | |
651 | 659 | let cq = x(U(N, P)) | |
652 | 660 | if ((size(split(cq, "/")[0]) != 59)) | |
653 | 661 | then throw("You cannot sell art with no export file") | |
654 | - | else if (!( | |
662 | + | else if (!(bc(aN))) | |
655 | 663 | then throw("Something went wrong!") | |
656 | - | else if (!( | |
664 | + | else if (!(aS(aN, aT))) | |
657 | 665 | then throw("Something went wrong!") | |
658 | 666 | else { | |
659 | 667 | let aG = aw(N) | |
660 | 668 | if ((aG != "")) | |
661 | 669 | then throw(aG) | |
662 | 670 | else { | |
663 | 671 | let bt = z(X(N, P)) | |
664 | 672 | let bu = z(V(N, P)) | |
665 | 673 | if ((co > 10)) | |
666 | 674 | then throw("10 editions max per artwork") | |
667 | 675 | else if (if ((bt != 0)) | |
668 | 676 | then (bt == bu) | |
669 | 677 | else false) | |
670 | 678 | then throw("Max edition reached.") | |
671 | 679 | else if (if ((bt > 0)) | |
672 | 680 | then (bu != co) | |
673 | 681 | else false) | |
674 | 682 | then throw("Cannot change maximum issuable anymore") | |
675 | 683 | else { | |
676 | - | let bH = if (if (( | |
684 | + | let bH = if (if ((aT > 0)) | |
677 | 685 | then (co > 0) | |
678 | 686 | else false) | |
679 | 687 | then true | |
680 | 688 | else false | |
681 | - | [BooleanEntry(Y(N, P), bH), IntegerEntry(ad(N, P), | |
689 | + | [BooleanEntry(Y(N, P), bH), IntegerEntry(ad(N, P), aT), IntegerEntry(V(N, P), co), StringEntry(ae(N, P), aN)] | |
682 | 690 | } | |
683 | 691 | } | |
684 | 692 | } | |
685 | 693 | } | |
686 | 694 | } | |
687 | 695 | ||
688 | 696 | ||
689 | 697 | ||
690 | 698 | @Callable(aI) | |
691 | - | func buyArtwork (P, | |
699 | + | func buyArtwork (P,aY) = bO(aI, P, aY, "", "") | |
692 | 700 | ||
693 | 701 | ||
694 | 702 | ||
695 | 703 | @Callable(aI) | |
696 | - | func setBid (P, | |
697 | - | let cr = | |
704 | + | func setBid (P,aY) = { | |
705 | + | let cr = bk(aI) | |
698 | 706 | let bQ = cr._1 | |
699 | 707 | let N = cr._2 | |
700 | 708 | let bK = cr._3 | |
701 | 709 | let cs = aH(aI) | |
702 | 710 | let aJ = cs._1 | |
703 | 711 | let aK = cs._2 | |
704 | 712 | let aN = if (!(isDefined(aJ.assetId))) | |
705 | 713 | then "WAVES" | |
706 | 714 | else toBase58String(value(aJ.assetId)) | |
707 | - | if (!( | |
715 | + | if (!(bc(aN))) | |
708 | 716 | then throw("asset not accepted") | |
709 | - | else if (!( | |
717 | + | else if (!(aS(aN, aK))) | |
710 | 718 | then throw("Wrong min sell") | |
711 | 719 | else { | |
712 | - | let bt = z(X( | |
713 | - | let bu = z(V( | |
720 | + | let bt = z(X(aY, P)) | |
721 | + | let bu = z(V(aY, P)) | |
714 | 722 | if ((0 >= bu)) | |
715 | 723 | then throw("No max edition set for this artwork") | |
716 | 724 | else if ((bt >= bu)) | |
717 | 725 | then throw("Sold out, you cannot bid") | |
718 | - | else [StringEntry((((((((("bid_" + P) + "_") + | |
726 | + | else [StringEntry((((((((("bid_" + P) + "_") + aY) + "_") + N) + "_") + bQ) + "_OPEN"), ((((aN + "_") + toString(aK)) + "_") + toString(bK)))] | |
719 | 727 | } | |
720 | 728 | } | |
721 | 729 | ||
722 | 730 | ||
723 | 731 | ||
724 | 732 | @Callable(aI) | |
725 | - | func acceptBid (P, | |
733 | + | func acceptBid (P,aY,bn,bm) = { | |
726 | 734 | let N = toBase58String(aI.caller.bytes) | |
727 | - | if ((N != | |
735 | + | if ((N != aY)) | |
728 | 736 | then throw("You cannot do this action") | |
729 | - | else bO(aI, P, | |
737 | + | else bO(aI, P, aY, bn, bm) | |
730 | 738 | } | |
731 | 739 | ||
732 | 740 | ||
733 | 741 | ||
734 | 742 | @Callable(aI) | |
735 | - | func cancelBid (P, | |
736 | - | let ct = | |
743 | + | func cancelBid (P,aY,bn) = { | |
744 | + | let ct = bk(aI) | |
737 | 745 | let bQ = ct._1 | |
738 | 746 | let N = ct._2 | |
739 | 747 | let bK = ct._3 | |
740 | - | let | |
741 | - | let | |
742 | - | if (( | |
748 | + | let bf = ((((((("bid_" + P) + "_") + aY) + "_") + N) + "_") + bn) | |
749 | + | let bg = x((bf + "_OPEN")) | |
750 | + | if ((bg == "")) | |
743 | 751 | then throw("Bid not found") | |
744 | 752 | else { | |
745 | - | let | |
746 | - | let aN = | |
753 | + | let bh = split(bg, "_") | |
754 | + | let aN = bd(bh[0]) | |
747 | 755 | let cu = "CANCELED" | |
748 | - | [DeleteEntry(( | |
756 | + | [DeleteEntry((bf + "_OPEN")), StringEntry(((bf + "_") + cu), ((bg + "_") + toString(bK))), ScriptTransfer(Address(fromBase58String(N)), parseIntValue(bh[1]), aN)] | |
749 | 757 | } | |
750 | 758 | } | |
751 | 759 | ||
752 | 760 | ||
753 | 761 | ||
754 | 762 | @Callable(aI) | |
755 | 763 | func deleteEntry (cv) = { | |
756 | 764 | let N = toString(addressFromPublicKey(aI.callerPublicKey)) | |
757 | 765 | if ((N == j)) | |
758 | 766 | then [DeleteEntry(cv)] | |
759 | 767 | else throw("no") | |
760 | 768 | } | |
761 | 769 | ||
762 | 770 |
github/deemru/w8io/169f3d6 168.62 ms ◑