tx · HuArHuEcWy6Mim6Jn1QLWNPEr6HFVyWQHNsqookFduKX

3NBquYd5fTq8HRDkagrtNLQ3HmWd7wcZoeL:  -0.01400000 Waves

2021.01.27 13:24 [1371790] smart account 3NBquYd5fTq8HRDkagrtNLQ3HmWd7wcZoeL > SELF 0.00000000 Waves

{ "type": 13, "id": "HuArHuEcWy6Mim6Jn1QLWNPEr6HFVyWQHNsqookFduKX", "fee": 1400000, "feeAssetId": null, "timestamp": 1611743068815, "version": 2, "chainId": 84, "sender": "3NBquYd5fTq8HRDkagrtNLQ3HmWd7wcZoeL", "senderPublicKey": "7irc2VpK5czoyVdwrCuQqr2JU9ZaZnEZn8RPChnfi3yL", "proofs": [ "2dAAcbMGC33An9Eben9DRnTLwMSgE86Gav3SsasdaP1mopzL3zt54NgDVSKYqoHc4b22hFAgw2jjri4RMfmpu6pQ" ], "script": "base64:AAIEAAAAAAAAAEEIAhIOCgwICAgICAgBCAgICAgSDQoLCAgICAgBCAgICAgSBQoDCAgIEgQKAggIEgYKBAgBAQgSBAoCCAgSAwoBCAAAAD8AAAAACHVuaXRUZXN0BwAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAh1c2VyRGFwcAMFAAAACHVuaXRUZXN0CQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNdDRSR01FeWpTV1lBb2NUUHFkNTV3ZEhRUUIzUFUyVUNtCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNd0RaYWdvWUVpTmZRTGMzMWNHcFlvYUU1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AAAVhcnRJZAUAAAAKc2VsbFN0YXR1cwkABEwAAAACBQAAAAhpc3N1ZU5GVAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAAGaXNzdWVyBQAAABBhbW91bnRGb3JDcmVhdG9yBQAAAAdhc3NldElkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAAAtmZWVSZWNlaXZlcgUAAAANYW1vdW50Rm9yU2lnbgUAAAAHYXNzZXRJZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAAGaW52b2tlAAAABmNhbGxlcgAAAAAAAAAAAQUAAAAFaWRORlQFAAAAA25pbAAAAAFpAQAAAAtkZWxldGVFbnRyeQAAAAEAAAAFZW50cnkEAAAABmNhbGxlcgkABCUAAAABCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQAAAAAAAAIFAAAABmNhbGxlcgUAAAAFY2hyaXMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFZW50cnkFAAAAA25pbAkAAAIAAAABAgAAAAJubwAAAAANor4O", "height": 1371790, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2tuuSoS9eFHCMqh9zhj9k9YpcLknNx7FcWHLSPQSAWfk Next: 7fKG7vgPsYDfKNmWV8BVAzzrUFzJXvZUif2G6jT5JFZY Diff:
OldNewDifferences
231231 else {
232232 let aJ = value(aI.payments[0])
233233 let aK = value(aJ.amount)
234- $Tuple2(aJ, aK)
234+ let aL = if (if (isDefined(aJ.assetId))
235+ then (aJ.assetId == g)
236+ else false)
237+ then aJ.assetId
238+ else throw("Only SIGN token accepted as transaction fee")
239+ let aM = y(("certification_fee_" + toBase58String(g)))
240+ if ((aK != aM))
241+ then throw(("Payment amount should be " + toString(aM)))
242+ else $Tuple2(aK, aL)
235243 }
236244
237245
238-func aL (aI) = {
239- let aM = aH(aI)
240- let aJ = aM._1
241- let aK = aM._2
242- let aN = if (if (isDefined(aJ.assetId))
243- then (aJ.assetId == g)
244- else false)
245- then aJ.assetId
246- else throw("Only SIGN token accepted as transaction fee")
247- let aO = y(("certification_fee_" + toBase58String(g)))
248- if ((aK != aO))
249- then throw(("Payment amount should be " + toString(aO)))
250- else $Tuple2(aK, aN)
251- }
252-
253-
254-func aP (aQ,P) = {
255- let G = getInteger(this, X(aQ, P))
246+func aN (aO,P) = {
247+ let G = getInteger(this, X(aO, P))
256248 if ($isInstanceOf(G, "Int"))
257249 then {
258- let aR = G
259- if ((aR != 0))
250+ let aP = G
251+ if ((aP != 0))
260252 then true
261253 else false
262254 }
264256 }
265257
266258
267-func aS (aI,aT,aU) = {
268- let aV = aH(aI)
269- let aJ = aV._1
270- let aK = aV._2
271- let aN = if (!(isDefined(aJ.assetId)))
259+func aQ (aI,aR,aS) = {
260+ let aJ = value(aI.payments[0])
261+ let aK = value(aJ.amount)
262+ let aL = if (!(isDefined(aJ.assetId)))
272263 then unit
273- else if (if ((size(aT) > 0))
274- then (toBase58String(value(aJ.assetId)) == aT)
264+ else if (if ((size(aR) > 0))
265+ then (toBase58String(value(aJ.assetId)) == aR)
275266 else false)
276267 then aJ.assetId
277268 else throw("Wrong asset id")
278- if (if ((aN == unit))
279- then (aT != "")
269+ if (if ((aL == unit))
270+ then (aR != "")
280271 else false)
281272 then throw("Wrong asset id")
282- else if ((aU != aK))
273+ else if ((aS != aK))
283274 then throw("Payment don't match")
284- else $Tuple2(aK, aN)
275+ else $Tuple2(aK, aL)
285276 }
286277
287278
288-func aW (aN) = if (if (if (if ((aN != toBase58String(g)))
289- then (aN != toBase58String(i))
279+func aT (aL) = if (if (if ((aL != toBase58String(g)))
280+ then (aL != toBase58String(i))
290281 else false)
291- then (aN != "WAVES")
292- else false)
293- then (aN != toBase58String(h))
282+ then (aL != toBase58String(h))
294283 else false)
295284 then throw("Only SIGN, USDN or WAVES accepted")
296285 else true
297286
298287
299-func aX (aN,aY) = {
300- let aZ = if (a)
288+func aU (aL,aV) = {
289+ let aW = if (a)
301290 then 1
302291 else y("waves_min_sell")
303- let ba = 1000000
304- let bb = if (a)
292+ let aX = 1000000
293+ let aY = if (a)
305294 then 1
306295 else (y(("certification_fee_" + toBase58String(g))) * 2)
307- if (if (if (if (if ((aN == toBase58String(h)))
308- then (ba > aY)
296+ if (if (if (if (if ((aL == toBase58String(h)))
297+ then (aX > aV)
309298 else false)
310- then (aY != 0)
299+ then (aV != 0)
311300 else false)
312301 then true
313- else if (if ((aN == toBase58String(g)))
314- then (bb > aY)
302+ else if (if ((aL == toBase58String(g)))
303+ then (aY > aV)
315304 else false)
316- then (aY != 0)
305+ then (aV != 0)
317306 else false)
318307 then true
319- else if (if ((aN == toBase58String(i)))
320- then (aZ > aY)
308+ else if (if ((aL == toBase58String(i)))
309+ then (aW > aV)
321310 else false)
322- then (aY != 0)
311+ then (aV != 0)
323312 else false)
324313 then throw("Wrong minimum sell price")
325314 else true
326315 }
327316
328317
329-func bc (bd) = {
330- let be = x((bd + "_OPEN"))
331- if ((be == ""))
332- then throw("Bid not found")
333- else {
334- let bf = split(be, "_")
335- let bg = parseIntValue(bf[1])
336- let bh = if ((bf[0] == "WAVES"))
337- then unit
338- else fromBase58String(bf[0])
339- if ((0 >= bg))
340- then throw("Wrong amount")
341- else $Tuple2(bg, bh)
342- }
343- }
344-
345-
346-func bi (aI) = if (!(p))
318+@Callable(aI)
319+func addArtwork (F,D,aC,aD,aE,aZ,aF,an,ar,ao,as,ap) = if (!(p))
347320 then throw(q)
348- else $Tuple3(toBase58String(aI.transactionId), toBase58String(aI.caller.bytes), lastBlock.timestamp)
349-
350-
351-func bj (aI,P,bk,bl,bm) = {
352- let bn = bi(aI)
353- let bo = bn._1
354- let N = bn._2
355- let bp = bn._3
356- let bq = z("total_nft_issued")
357- let D = x(W(bk, P))
358- let br = x(Q(bk, P))
359- if ((br == ""))
360- then throw("Art doesn't exist")
361- else {
362- let bs = B(Y(bk, P))
363- let bt = z(X(bk, P))
364- let aU = z(ad(bk, P))
365- let aT = x(ae(bk, P))
366- let bu = z(V(bk, P))
367- let bv = if (if (if ((N == bk))
368- then (bm != "")
369- else false)
370- then (bl != "")
371- else false)
372- then true
373- else false
374- let bd = ((((((("bid_" + P) + "_") + bk) + "_") + bm) + "_") + bl)
375- if (if (if ((0 >= aU))
376- then true
377- else !(bs))
378- then true
379- else (0 >= bu))
380- then throw("Art not for sale")
381- else {
382- let bw = if (bv)
383- then bc(bd)
384- else aS(aI, aT, aU)
385- let aK = bw._1
386- let aN = bw._2
387- let bx = A(bk)
388- let by = if ((bx > height))
389- then 0
390- else if ((aT == toBase58String(g)))
391- then l
392- else m
393- let bz = fraction(aK, by, 100)
394- let bA = (aK - bz)
395- if ((bt == bu))
396- then throw("Art sold out")
397- else {
398- let bB = (bt + 1)
399- let bC = ((((((((((("Creator: " + bk) + ",
400- ArtID: ") + P) + ",
401- SignID: ") + D) + ",
402- Artwork name: ") + br) + ",
403- Issue: ") + toString(bB)) + "/") + toString(bu))
404- let bD = Issue(("SA_" + toString((bq + 1))), bC, 1, 0, false)
405- let bE = calculateAssetId(bD)
406- let bF = if ((bB == bu))
407- then false
408- else true
409- let bG = if (if (if ((N == bk))
410- then (bm != "")
411- else false)
412- then (bl != "")
413- else false)
414- then addressFromStringValue(bm)
415- else aI.caller
416- let bH = [IntegerEntry(X(bk, P), bB), StringEntry(("nft_" + toBase58String(bE)), ((((((("art_sold_" + toString(bB)) + "_of_") + toString(bu)) + "_") + P) + "_") + bk)), IntegerEntry("total_nft_issued", (bq + 1)), BooleanEntry(Y(bk, P), bF), bD, ScriptTransfer(Address(fromBase58String(bk)), bA, aN), ScriptTransfer(Address(fromBase58String(d)), bz, aN), ScriptTransfer(bG, 1, bE)]
417- let bI = if (!(isDefined(aN)))
418- then "WAVES"
419- else toBase58String(value(aN))
420- let bJ = x((bd + "_OPEN"))
421- let bK = DeleteEntry((bd + "_OPEN"))
422- let bL = StringEntry((bd + "_CLOSED"), ((bJ + "_") + toString(bp)))
423- let bM = if (!(bv))
424- then ((((((((((N + "_") + toString(bp)) + "_") + bo) + "_") + toString(aU)) + "_") + aT) + "_") + toBase58String(bE))
425- else ((((((((((toString(bG) + "_") + toString(bp)) + "_") + bo) + "_") + toString(aK)) + "_") + bI) + "_") + toBase58String(bE))
426- let bN = StringEntry(((((((("art_sold_" + toString(bB)) + "_of_") + toString(bu)) + "_") + P) + "_") + bk), bM)
427- if (bv)
428- then [bN, bL, bK] :: bH
429- else bN :: bH
430- }
431- }
432- }
433- }
434-
435-
436-@Callable(aI)
437-func addArtwork (F,D,aC,aD,aE,bO,aF,an,ar,ao,as,ap) = {
438- let bP = bi(aI)
439- let P = bP._1
440- let N = bP._2
441- let bp = bP._3
442- if (!(K(F)))
443- then throw("Hash should be 64 characters maximum")
444- else {
445- let bQ = ay(ap, as)
446- let aA = bQ._1
447- let aB = bQ._2
448- let bR = az(N, an, ao, aA, ar, aB, aC, aD, aE, aF)
449- if ((bR != ""))
450- then throw("Something went wrong!")
451- else {
452- let bS = aL(aI)
453- let aK = bS._1
454- let aN = bS._2
455- if (!(isDefined(aK)))
456- then throw("Something went wrong")
457- else {
458- let bT = x(al(F, N))
459- if ((bT != ""))
460- then throw("You already added it")
461- else {
462- let bU = x(ai(F))
463- if ((bU != ""))
464- then throw("Hash already registered")
465- else {
466- let bV = C(D, N, F)
467- if (!(bV))
468- then throw("Sign Certificate not found for this address.")
469- else [StringEntry(ai(F), N), StringEntry(al(F, N), P), IntegerEntry(O(N, P), bp), 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), bO), 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)]
470- }
471- }
472- }
473- }
474- }
475- }
321+ else {
322+ let P = toBase58String(aI.transactionId)
323+ let ba = lastBlock.timestamp
324+ let N = toBase58String(aI.caller.bytes)
325+ if (!(K(F)))
326+ then throw("Hash should be 64 characters maximum")
327+ else {
328+ let bb = ay(ap, as)
329+ let aA = bb._1
330+ let aB = bb._2
331+ let bc = az(N, an, ao, aA, ar, aB, aC, aD, aE, aF)
332+ if ((bc != ""))
333+ then throw("Something went wrong!")
334+ else {
335+ let bd = aH(aI)
336+ let aK = bd._1
337+ let aL = bd._2
338+ if (!(isDefined(aK)))
339+ then throw("Something went wrong")
340+ else {
341+ let be = x(al(F, N))
342+ if ((be != ""))
343+ then throw("You already added it")
344+ else {
345+ let bf = x(ai(F))
346+ if ((bf != ""))
347+ then throw("Hash already registered")
348+ else {
349+ let bg = C(D, N, F)
350+ if (!(bg))
351+ then throw("Sign Certificate not found for this address.")
352+ else [StringEntry(ai(F), N), StringEntry(al(F, N), P), IntegerEntry(O(N, P), ba), 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), aZ), 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, aL)]
353+ }
354+ }
355+ }
356+ }
357+ }
358+ }
476359
477360
478361
479362 @Callable(aI)
480-func updateArtwork (ah,aC,aD,aE,bO,aF,an,ar,ao,as,ap) = if (!(p))
363+func updateArtwork (ah,aC,aD,aE,aZ,aF,an,ar,ao,as,ap) = if (!(p))
481364 then throw(q)
482365 else {
366+ let bh = toBase58String(aI.transactionId)
483367 let N = toBase58String(aI.caller.bytes)
484- let bW = ay(ap, as)
485- let aA = bW._1
486- let aB = bW._2
487- let bR = az(N, an, ao, aA, ar, aB, aC, aD, aE, aF)
488- if ((bR != ""))
368+ let bi = ay(ap, as)
369+ let aA = bi._1
370+ let aB = bi._2
371+ let bc = az(N, an, ao, aA, ar, aB, aC, aD, aE, aF)
372+ if ((bc != ""))
489373 then throw("Something went wrong!")
490374 else {
491- let bT = x(Q(N, ah))
492- if ((bT == ""))
375+ let be = x(Q(N, ah))
376+ if ((be == ""))
493377 then throw("Entry not found")
494378 else {
495- let bX = x(af(N, ah))
496- if ((bX == "ILLEGAL"))
379+ let bj = x(af(N, ah))
380+ if ((bj == "ILLEGAL"))
497381 then throw("Cannot update ILLEGAL artwork")
498- else if (!(aP(N, ah)))
499- 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), bO)]
382+ else if (!(aN(N, ah)))
383+ 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), aZ)]
500384 else throw("Already minted")
501385 }
502386 }
505389
506390
507391 @Callable(aI)
508-func flagArtwork (P,bY,bX) = {
509- let bZ = bi(aI)
510- let bo = bZ._1
511- let N = bZ._2
392+func flagArtwork (P,bk,bj) = {
393+ let N = toString(addressFromPublicKey(aI.callerPublicKey))
394+ let bl = toBase58String(aI.transactionId)
512395 if (containsElement([j, k, toString(this)], N))
513- then if ((bX == "CONSENT"))
514- then [StringEntry(af(bY, P), bX)]
515- else if ((bX == ""))
516- then [StringEntry(af(bY, P), bX)]
517- else if ((bX == "ILLEGAL"))
518- then [StringEntry(af(bY, P), bX), StringEntry(Q(bY, P), "ILLEGAL CONTENT"), StringEntry(R(bY, P), "ILLEGAL CONTENT"), StringEntry(S(bY, P), ""), StringEntry(U(bY, P), ""), StringEntry(aa(bY, P), "")]
519- else throw(("Unknow status " + bX))
396+ then if ((bj == "CONSENT"))
397+ then [StringEntry(af(bk, P), bj)]
398+ else if ((bj == ""))
399+ then [StringEntry(af(bk, P), bj)]
400+ else if ((bj == "CHANGE_REQUIRED"))
401+ then [StringEntry(af(bk, P), bj)]
402+ else if ((bj == "ILLEGAL"))
403+ then [StringEntry(af(bk, P), bj), StringEntry(Q(bk, P), "ILLEGAL CONTENT"), StringEntry(R(bk, P), "ILLEGAL CONTENT"), StringEntry(S(bk, P), ""), StringEntry(U(bk, P), ""), StringEntry(aa(bk, P), "")]
404+ else throw(("Unknow status " + bj))
520405 else throw("You are not allowed")
521406 }
522407
523408
524409
525410 @Callable(aI)
526-func deleteArtwork (P,bY) = {
527- let ca = bi(aI)
528- let bo = ca._1
529- let N = ca._2
530- let aQ = if (containsElement([j, k, toString(this)], N))
531- then bY
411+func deleteArtwork (P,bk) = {
412+ let N = toString(addressFromPublicKey(aI.callerPublicKey))
413+ let bl = toBase58String(aI.transactionId)
414+ let aO = if (containsElement([j, k, toString(this)], N))
415+ then bk
532416 else N
533- let bT = valueOrErrorMessage(x(Q(aQ, P)), "No art matching for this address")
534- if ((bT == ""))
417+ let be = x(Q(aO, P))
418+ if ((be == ""))
535419 then throw("No art matching for this address")
536420 else {
537- let F = x(ag(aQ, P))
421+ let F = x(ag(aO, P))
538422 if ((F == ""))
539423 then throw("No art hash matching for this address")
540424 else {
541- let D = x(W(aQ, P))
425+ let D = x(W(aO, P))
542426 if ((D == ""))
543427 then throw("No SIGN ID matching")
544428 else {
545- let cb = [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(bY, P)), DeleteEntry(ad(bY, P)), DeleteEntry(ae(bY, P)), DeleteEntry(ai(F)), DeleteEntry(aj(aQ, D)), DeleteEntry(al(F, aQ))]
546- if (!(aP(aQ, P)))
429+ let bm = [DeleteEntry(O(aO, P)), DeleteEntry(Q(aO, P)), DeleteEntry(R(aO, P)), DeleteEntry(S(aO, P)), DeleteEntry(U(aO, P)), DeleteEntry(T(aO, P)), DeleteEntry(Z(aO, P)), DeleteEntry(aa(aO, P)), DeleteEntry(ac(aO, P)), DeleteEntry(ab(aO, P)), DeleteEntry(V(aO, P)), DeleteEntry(W(aO, P)), DeleteEntry(X(aO, P)), DeleteEntry(Y(aO, P)), DeleteEntry(af(bk, P)), DeleteEntry(ad(bk, P)), DeleteEntry(ae(bk, P)), DeleteEntry(ai(F)), DeleteEntry(aj(aO, D)), DeleteEntry(al(F, aO))]
430+ if (!(aN(aO, P)))
547431 then if (!(p))
548432 then throw(q)
549- else cb
433+ else bm
550434 else if (containsElement([j, toString(this)], N))
551- then cb
435+ then bm
552436 else throw("Art already minted, you cannot delete it")
553437 }
554438 }
558442
559443
560444 @Callable(aI)
561-func sellArtwork (P,aY,cc,aN) = {
562- let cd = bi(aI)
563- let bo = cd._1
564- let N = cd._2
565- let br = x(Q(N, P))
566- if ((br == ""))
567- then throw("This art doesn't match your account")
568- else {
569- let ce = x(U(N, P))
570- if ((size(split(ce, "/")[0]) != 59))
571- then throw("You cannot sell art with no export file")
572- else if (!(aW(aN)))
573- then throw("Something went wrong!")
574- else if (!(aX(aN, aY)))
575- then throw("Something went wrong!")
576- else {
577- let aG = aw(N)
578- if ((aG != ""))
579- then throw(aG)
580- else {
581- let bt = z(X(N, P))
582- let bu = z(V(N, P))
583- if ((cc > 10))
584- then throw("10 editions max per artwork")
585- else if (if ((bt != 0))
586- then (bt == bu)
587- else false)
588- then throw("Max edition reached.")
589- else if (if ((bt > 0))
590- then (bu != cc)
591- else false)
592- then throw("Cannot change maximum issuable anymore")
593- else {
594- let bF = if (if ((aY > 0))
595- then (cc > 0)
445+func sellArtwork (P,aV,bn,aL) = if (!(p))
446+ then throw(q)
447+ else {
448+ let bl = toBase58String(aI.transactionId)
449+ let N = toBase58String(aI.caller.bytes)
450+ let bo = lastBlock.timestamp
451+ let bp = x(Q(N, P))
452+ if ((bp == ""))
453+ then throw("This art doesn't match match your account")
454+ else {
455+ let bq = x(U(N, P))
456+ if ((size(split(bq, "/")[0]) != 59))
457+ then throw("You cannot sell art with no export file")
458+ else {
459+ let br = x(T(N, P))
460+ if ((size(br) != 64))
461+ then throw("You cannot sell art with no export hash")
462+ else if (!(aT(aL)))
463+ then throw("Something went wrong!")
464+ else if (!(aU(aL, aV)))
465+ then throw("Something went wrong!")
466+ else {
467+ let aG = aw(N)
468+ if ((aG != ""))
469+ then throw(aG)
470+ else {
471+ let bs = z(X(N, P))
472+ let bt = z(V(N, P))
473+ if ((bn > 10))
474+ then throw("10 editions max per artwork")
475+ else if (if ((bs != 0))
476+ then (bs == bt)
596477 else false)
597- then true
598- else false
599-[BooleanEntry(Y(N, P), bF), IntegerEntry(ad(N, P), aY), IntegerEntry(V(N, P), cc), StringEntry(ae(N, P), aN)]
600- }
601- }
602- }
603- }
604- }
478+ then throw("Max edition reached.")
479+ else if (if ((bs > 0))
480+ then (bt != bn)
481+ else false)
482+ then throw("Cannot change maximum issuable anymore")
483+ else {
484+ let bu = if (if ((aV > 0))
485+ then (bn > 0)
486+ else false)
487+ then true
488+ else false
489+[BooleanEntry(Y(N, P), bu), IntegerEntry(ad(N, P), aV), IntegerEntry(V(N, P), bn), StringEntry(ae(N, P), aL)]
490+ }
491+ }
492+ }
493+ }
494+ }
495+ }
605496
606497
607498
608499 @Callable(aI)
609-func buyArtwork (P,bk) = bj(aI, P, bk, "", "")
500+func buyArtwork (P,bv) = if (!(p))
501+ then throw(q)
502+ else {
503+ let bl = toBase58String(aI.transactionId)
504+ let N = toBase58String(aI.caller.bytes)
505+ let bw = z("total_nft_issued")
506+ let D = x(W(bv, P))
507+ let bp = x(Q(bv, P))
508+ if ((bp == ""))
509+ then throw("Art doesn't exist")
510+ else {
511+ let bx = x(S(bv, P))
512+ let bq = x(U(bv, P))
513+ let br = x(T(bv, P))
514+ let aA = x(aa(bv, P))
515+ let aB = x(Z(bv, P))
516+ let aD = take(x(R(bv, P)), 50)
517+ let by = B(Y(bv, P))
518+ let bs = z(X(bv, P))
519+ let aS = z(ad(bv, P))
520+ let aR = x(ae(bv, P))
521+ let bz = x(ag(bv, P))
522+ let bt = z(V(bv, P))
523+ if (if (if ((0 >= aS))
524+ then true
525+ else !(by))
526+ then true
527+ else (0 >= bt))
528+ then throw("Art not for sale")
529+ else {
530+ let bA = aQ(aI, aR, aS)
531+ let aK = bA._1
532+ let aL = bA._2
533+ let bB = A(bv)
534+ let bC = if ((bB > height))
535+ then 0
536+ else if ((aR == toBase58String(g)))
537+ then l
538+ else m
539+ let bD = fraction(aK, bC, 100)
540+ let bE = (aK - bD)
541+ if ((bs == bt))
542+ then throw("Art sold out")
543+ else {
544+ let bF = (bs + 1)
545+ let bG = lastBlock.timestamp
546+ let bH = ((((((((((((((((((((((((((("Creator: " + bv) + ",
547+ ArtID: ") + P) + ",
548+ SignID: ") + D) + ",
549+ Artwork name: ") + bp) + ",
550+ Artwork description: ") + aD) + ",
551+ Issue: ") + toString(bF)) + "/") + toString(bt)) + ",
552+ Max issuable: ") + toString(bt)) + ",
553+ Source hash: ") + bz) + ",
554+ Display cid: ") + bx) + ",
555+ Export cid: ") + bq) + ",
556+ Export hash: ") + br) + ",
557+ Licence cid: ") + aA) + ",
558+ Licence hash: ") + aB)
559+ let bI = Issue(("SA_" + toString((bw + 1))), bH, 1, 0, false)
560+ let bJ = calculateAssetId(bI)
561+ let bu = if ((bF == bt))
562+ then false
563+ else true
564+[IntegerEntry(X(bv, P), bF), StringEntry(("nft_" + toBase58String(bJ)), ((((((("art_sold_" + toString(bF)) + "_of_") + toString(bt)) + "_") + P) + "_") + bv)), StringEntry(((((((("art_sold_" + toString(bF)) + "_of_") + toString(bt)) + "_") + P) + "_") + bv), ((((((((((N + "_") + toString(bG)) + "_") + bl) + "_") + toString(aS)) + "_") + aR) + "_") + toBase58String(bJ))), IntegerEntry("total_nft_issued", (bw + 1)), BooleanEntry(Y(bv, P), bu), bI, ScriptTransfer(Address(fromBase58String(bv)), bE, aL), ScriptTransfer(Address(fromBase58String(d)), bD, aL), ScriptTransfer(aI.caller, 1, bJ)]
565+ }
566+ }
567+ }
568+ }
610569
611570
612571
613-@Callable(aI)
614-func setBid (P,bk) = {
615- let cf = bi(aI)
616- let bo = cf._1
617- let N = cf._2
618- let bp = cf._3
619- let cg = aH(aI)
620- let aJ = cg._1
621- let aK = cg._2
622- let aN = if (!(isDefined(aJ.assetId)))
623- then "WAVES"
624- else toBase58String(value(aJ.assetId))
625- if (!(aW(aN)))
626- then throw("Something went wrong!")
627- else if (!(aX(aN, aK)))
628- then throw("Something went wrong!")
629- else {
630- let bt = z(X(bk, P))
631- let bu = z(V(bk, P))
632- if ((bt >= bu))
633- then throw("Sold out, you cannot bid")
634- else [StringEntry((((((((("bid_" + P) + "_") + bk) + "_") + N) + "_") + bo) + "_OPEN"), ((((aN + "_") + toString(aK)) + "_") + toString(bp)))]
635- }
636- }
637-
638-
639-
640-@Callable(aI)
641-func acceptBid (P,bk,bl,bm) = {
642- let N = toBase58String(aI.caller.bytes)
643- if ((N != bk))
644- then throw("You cannot do this action")
645- else bj(aI, P, bk, bl, bm)
646- }
647-
648-
649-
650-@Callable(aI)
651-func cancelBid (P,bk,bl,bm) = {
652- let ch = bi(aI)
653- let bo = ch._1
654- let N = ch._2
655- let bp = ch._3
656- if (if ((N != bm))
657- then (N != bk)
658- else false)
659- then throw("You cannot do this action")
660- else {
661- let bd = ((((((("bid_" + P) + "_") + bk) + "_") + bm) + "_") + bl)
662- let be = x((bd + "_OPEN"))
663- if ((be == ""))
664- then throw("Bid not found")
665- else {
666- let bf = split(be, "_")
667- let aN = if ((bf[0] == "WAVES"))
668- then unit
669- else fromBase58String(bf[0])
670- let ci = if ((N == bm))
671- then "CANCELED"
672- else "REJECTED"
673-[DeleteEntry((bd + "_OPEN")), StringEntry(((bd + "_") + ci), ((be + "_") + toString(bp))), ScriptTransfer(Address(fromBase58String(bm)), parseIntValue(bf[1]), aN)]
674- }
675- }
676- }
677-
678-
679-
680-@Callable(aI)
681-func deleteEntry (cj) = {
682- let N = toString(addressFromPublicKey(aI.callerPublicKey))
572+@Callable(bK)
573+func deleteEntry (bL) = {
574+ let N = toString(addressFromPublicKey(bK.callerPublicKey))
683575 if ((N == j))
684- then [DeleteEntry(cj)]
576+ then [DeleteEntry(bL)]
685577 else throw("no")
686578 }
687579
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = false
55
66 let b = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
77
88 let c = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB"))
99
1010 let d = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
1111
1212 let e = if (a)
1313 then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm"))
1414 else value(addressFromString("3MwDZagoYEiNfQLc31cGpYoaE54MGMwoFrZ"))
1515
1616 let f = value(addressFromString("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq"))
1717
1818 let g = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
1919
2020 let h = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
2121
2222 let i = base58''
2323
2424 let j = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
2525
2626 let k = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
2727
2828 let l = 7
2929
3030 let m = 10
3131
3232 let n = "bafybeifuyo4pqu54ismqgtb6e4h6kkvgx7zg4u3zibh2r7y6mb64i7bzza/licence.pdf"
3333
3434 let o = "a87758c354e30a9e78fb84fa3a0010a5090ab20df0be11ad45b5720cc187e639"
3535
3636 let p = valueOrElse(getBoolean(e, "conf_dapp_is_running"), true)
3737
3838 let q = valueOrElse(getString(e, "conf_maintenance_msg"), "")
3939
4040 let r = "SUSPENDED"
4141
4242 let s = "REMOVED"
4343
4444 let t = "UNREGISTERED"
4545
4646 let u = "ALLOWED"
4747
4848 func v (w) = valueOrElse(getString(e, w), "")
4949
5050
5151 func x (w) = valueOrElse(getString(this, w), "")
5252
5353
5454 func y (w) = valueOrErrorMessage(getInteger(b, w), "Integer undefine or 0 in oracle")
5555
5656
5757 func z (w) = valueOrElse(getInteger(this, w), 0)
5858
5959
6060 func A (w) = valueOrElse(getInteger(f, w), 0)
6161
6262
6363 func B (w) = valueOrElse(getBoolean(this, w), false)
6464
6565
6666 func C (D,E,F) = {
6767 let G = getString(c, ((("data_fc_" + D) + "_") + E))
6868 if ($isInstanceOf(G, "String"))
6969 then {
7070 let H = G
7171 if (contains(H, F))
7272 then true
7373 else false
7474 }
7575 else false
7676 }
7777
7878
7979 func I (J) = if (contains(J, "/"))
8080 then if (if ((76 > size(J)))
8181 then (size(split(J, "/")[0]) == 59)
8282 else false)
8383 then (16 > size(split(J, "/")[1]))
8484 else false
8585 else false
8686
8787
8888 func K (L) = (size(L) == 64)
8989
9090
9191 func M (N) = ("user_status_" + N)
9292
9393
9494 func O (N,P) = ((("art_date_" + P) + "_") + N)
9595
9696
9797 func Q (N,P) = ((("art_name_" + P) + "_") + N)
9898
9999
100100 func R (N,P) = ((("art_desc_" + P) + "_") + N)
101101
102102
103103 func S (N,P) = ((("art_display_cid_" + P) + "_") + N)
104104
105105
106106 func T (N,P) = ((("art_export_hash_" + P) + "_") + N)
107107
108108
109109 func U (N,P) = ((("art_export_cid_" + P) + "_") + N)
110110
111111
112112 func V (N,P) = ((("art_maxmint_" + P) + "_") + N)
113113
114114
115115 func W (N,P) = ((("art_signid_" + P) + "_") + N)
116116
117117
118118 func X (N,P) = ((("art_issued_" + P) + "_") + N)
119119
120120
121121 func Y (N,P) = ((("art_onsale_" + P) + "_") + N)
122122
123123
124124 func Z (N,P) = ((("art_licence_hash_" + P) + "_") + N)
125125
126126
127127 func aa (N,P) = ((("art_licence_cid_" + P) + "_") + N)
128128
129129
130130 func ab (N,P) = ((("art_tags_" + P) + "_") + N)
131131
132132
133133 func ac (N,P) = ((("art_type_" + P) + "_") + N)
134134
135135
136136 func ad (N,P) = ((("art_price_" + P) + "_") + N)
137137
138138
139139 func ae (N,P) = ((("art_assetAccepted_" + P) + "_") + N)
140140
141141
142142 func af (N,P) = ((("art_flag_" + P) + "_") + N)
143143
144144
145145 func ag (N,ah) = ((("get_hashbytxidaddr_" + ah) + "_") + N)
146146
147147
148148 func ai (F) = ("get_owner_by_hash_" + F)
149149
150150
151151 func aj (N,ak) = ((("get_artidbysignid_" + ak) + "_") + N)
152152
153153
154154 func al (F,N) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((F + N)))))
155155
156156
157157 func am (an,ao,ap) = if (!(I(an)))
158158 then throw("Wrong Display CID")
159159 else if (!(I(ao)))
160160 then throw("Wrong Export CID")
161161 else if (if ((ap != ""))
162162 then !(I(ap))
163163 else false)
164164 then throw("Wrong Licence CID")
165165 else true
166166
167167
168168 func aq (ar,as) = if (!(K(ar)))
169169 then throw("Export Hash 64 char. max")
170170 else if (!(K(as)))
171171 then throw("Licence Hash 64 char. max")
172172 else true
173173
174174
175175 func at (au,av) = if ((size(au) == 0))
176176 then throw("Field cannot be is empty")
177177 else if ((size(au) > av))
178178 then throw((au + " is too long"))
179179 else true
180180
181181
182182 func aw (N) = {
183183 let ax = valueOrElse(getString(e, M(N)), t)
184184 if (if ((ax == t))
185185 then true
186186 else (ax == u))
187187 then "Register this account first with \"Account\" tab"
188188 else if ((ax == r))
189189 then "Account suspended"
190190 else if ((ax == s))
191191 then "Account removed"
192192 else ""
193193 }
194194
195195
196196 func ay (ap,as) = {
197197 let J = if ((size(ap) == 0))
198198 then n
199199 else ap
200200 let L = if ((size(as) == 0))
201201 then o
202202 else as
203203 $Tuple2(J, L)
204204 }
205205
206206
207207 func az (N,an,ao,aA,ar,aB,aC,aD,aE,aF) = {
208208 let aG = aw(N)
209209 if ((aG != ""))
210210 then throw(aG)
211211 else if ((size(an) == 0))
212212 then throw("Display CID cannot be empty")
213213 else if (!(am(an, ao, aA)))
214214 then throw("Problem with CID")
215215 else if (!(aq(ar, aB)))
216216 then throw("Problem with Hashes")
217217 else if (!(at(aC, 100)))
218218 then throw("100 Char. max name")
219219 else if (!(at(aD, 1000)))
220220 then throw("1000 Char. max description")
221221 else if ((size(split(aE, ",")) > 5))
222222 then throw("5 tags max.")
223223 else if ((aF > 10))
224224 then throw("10 editions max per artwork")
225225 else ""
226226 }
227227
228228
229229 func aH (aI) = if ((size(aI.payments) == 0))
230230 then throw("No payment attached")
231231 else {
232232 let aJ = value(aI.payments[0])
233233 let aK = value(aJ.amount)
234- $Tuple2(aJ, aK)
234+ let aL = if (if (isDefined(aJ.assetId))
235+ then (aJ.assetId == g)
236+ else false)
237+ then aJ.assetId
238+ else throw("Only SIGN token accepted as transaction fee")
239+ let aM = y(("certification_fee_" + toBase58String(g)))
240+ if ((aK != aM))
241+ then throw(("Payment amount should be " + toString(aM)))
242+ else $Tuple2(aK, aL)
235243 }
236244
237245
238-func aL (aI) = {
239- let aM = aH(aI)
240- let aJ = aM._1
241- let aK = aM._2
242- let aN = if (if (isDefined(aJ.assetId))
243- then (aJ.assetId == g)
244- else false)
245- then aJ.assetId
246- else throw("Only SIGN token accepted as transaction fee")
247- let aO = y(("certification_fee_" + toBase58String(g)))
248- if ((aK != aO))
249- then throw(("Payment amount should be " + toString(aO)))
250- else $Tuple2(aK, aN)
251- }
252-
253-
254-func aP (aQ,P) = {
255- let G = getInteger(this, X(aQ, P))
246+func aN (aO,P) = {
247+ let G = getInteger(this, X(aO, P))
256248 if ($isInstanceOf(G, "Int"))
257249 then {
258- let aR = G
259- if ((aR != 0))
250+ let aP = G
251+ if ((aP != 0))
260252 then true
261253 else false
262254 }
263255 else false
264256 }
265257
266258
267-func aS (aI,aT,aU) = {
268- let aV = aH(aI)
269- let aJ = aV._1
270- let aK = aV._2
271- let aN = if (!(isDefined(aJ.assetId)))
259+func aQ (aI,aR,aS) = {
260+ let aJ = value(aI.payments[0])
261+ let aK = value(aJ.amount)
262+ let aL = if (!(isDefined(aJ.assetId)))
272263 then unit
273- else if (if ((size(aT) > 0))
274- then (toBase58String(value(aJ.assetId)) == aT)
264+ else if (if ((size(aR) > 0))
265+ then (toBase58String(value(aJ.assetId)) == aR)
275266 else false)
276267 then aJ.assetId
277268 else throw("Wrong asset id")
278- if (if ((aN == unit))
279- then (aT != "")
269+ if (if ((aL == unit))
270+ then (aR != "")
280271 else false)
281272 then throw("Wrong asset id")
282- else if ((aU != aK))
273+ else if ((aS != aK))
283274 then throw("Payment don't match")
284- else $Tuple2(aK, aN)
275+ else $Tuple2(aK, aL)
285276 }
286277
287278
288-func aW (aN) = if (if (if (if ((aN != toBase58String(g)))
289- then (aN != toBase58String(i))
279+func aT (aL) = if (if (if ((aL != toBase58String(g)))
280+ then (aL != toBase58String(i))
290281 else false)
291- then (aN != "WAVES")
292- else false)
293- then (aN != toBase58String(h))
282+ then (aL != toBase58String(h))
294283 else false)
295284 then throw("Only SIGN, USDN or WAVES accepted")
296285 else true
297286
298287
299-func aX (aN,aY) = {
300- let aZ = if (a)
288+func aU (aL,aV) = {
289+ let aW = if (a)
301290 then 1
302291 else y("waves_min_sell")
303- let ba = 1000000
304- let bb = if (a)
292+ let aX = 1000000
293+ let aY = if (a)
305294 then 1
306295 else (y(("certification_fee_" + toBase58String(g))) * 2)
307- if (if (if (if (if ((aN == toBase58String(h)))
308- then (ba > aY)
296+ if (if (if (if (if ((aL == toBase58String(h)))
297+ then (aX > aV)
309298 else false)
310- then (aY != 0)
299+ then (aV != 0)
311300 else false)
312301 then true
313- else if (if ((aN == toBase58String(g)))
314- then (bb > aY)
302+ else if (if ((aL == toBase58String(g)))
303+ then (aY > aV)
315304 else false)
316- then (aY != 0)
305+ then (aV != 0)
317306 else false)
318307 then true
319- else if (if ((aN == toBase58String(i)))
320- then (aZ > aY)
308+ else if (if ((aL == toBase58String(i)))
309+ then (aW > aV)
321310 else false)
322- then (aY != 0)
311+ then (aV != 0)
323312 else false)
324313 then throw("Wrong minimum sell price")
325314 else true
326315 }
327316
328317
329-func bc (bd) = {
330- let be = x((bd + "_OPEN"))
331- if ((be == ""))
332- then throw("Bid not found")
333- else {
334- let bf = split(be, "_")
335- let bg = parseIntValue(bf[1])
336- let bh = if ((bf[0] == "WAVES"))
337- then unit
338- else fromBase58String(bf[0])
339- if ((0 >= bg))
340- then throw("Wrong amount")
341- else $Tuple2(bg, bh)
342- }
343- }
344-
345-
346-func bi (aI) = if (!(p))
318+@Callable(aI)
319+func addArtwork (F,D,aC,aD,aE,aZ,aF,an,ar,ao,as,ap) = if (!(p))
347320 then throw(q)
348- else $Tuple3(toBase58String(aI.transactionId), toBase58String(aI.caller.bytes), lastBlock.timestamp)
349-
350-
351-func bj (aI,P,bk,bl,bm) = {
352- let bn = bi(aI)
353- let bo = bn._1
354- let N = bn._2
355- let bp = bn._3
356- let bq = z("total_nft_issued")
357- let D = x(W(bk, P))
358- let br = x(Q(bk, P))
359- if ((br == ""))
360- then throw("Art doesn't exist")
361- else {
362- let bs = B(Y(bk, P))
363- let bt = z(X(bk, P))
364- let aU = z(ad(bk, P))
365- let aT = x(ae(bk, P))
366- let bu = z(V(bk, P))
367- let bv = if (if (if ((N == bk))
368- then (bm != "")
369- else false)
370- then (bl != "")
371- else false)
372- then true
373- else false
374- let bd = ((((((("bid_" + P) + "_") + bk) + "_") + bm) + "_") + bl)
375- if (if (if ((0 >= aU))
376- then true
377- else !(bs))
378- then true
379- else (0 >= bu))
380- then throw("Art not for sale")
381- else {
382- let bw = if (bv)
383- then bc(bd)
384- else aS(aI, aT, aU)
385- let aK = bw._1
386- let aN = bw._2
387- let bx = A(bk)
388- let by = if ((bx > height))
389- then 0
390- else if ((aT == toBase58String(g)))
391- then l
392- else m
393- let bz = fraction(aK, by, 100)
394- let bA = (aK - bz)
395- if ((bt == bu))
396- then throw("Art sold out")
397- else {
398- let bB = (bt + 1)
399- let bC = ((((((((((("Creator: " + bk) + ",
400- ArtID: ") + P) + ",
401- SignID: ") + D) + ",
402- Artwork name: ") + br) + ",
403- Issue: ") + toString(bB)) + "/") + toString(bu))
404- let bD = Issue(("SA_" + toString((bq + 1))), bC, 1, 0, false)
405- let bE = calculateAssetId(bD)
406- let bF = if ((bB == bu))
407- then false
408- else true
409- let bG = if (if (if ((N == bk))
410- then (bm != "")
411- else false)
412- then (bl != "")
413- else false)
414- then addressFromStringValue(bm)
415- else aI.caller
416- let bH = [IntegerEntry(X(bk, P), bB), StringEntry(("nft_" + toBase58String(bE)), ((((((("art_sold_" + toString(bB)) + "_of_") + toString(bu)) + "_") + P) + "_") + bk)), IntegerEntry("total_nft_issued", (bq + 1)), BooleanEntry(Y(bk, P), bF), bD, ScriptTransfer(Address(fromBase58String(bk)), bA, aN), ScriptTransfer(Address(fromBase58String(d)), bz, aN), ScriptTransfer(bG, 1, bE)]
417- let bI = if (!(isDefined(aN)))
418- then "WAVES"
419- else toBase58String(value(aN))
420- let bJ = x((bd + "_OPEN"))
421- let bK = DeleteEntry((bd + "_OPEN"))
422- let bL = StringEntry((bd + "_CLOSED"), ((bJ + "_") + toString(bp)))
423- let bM = if (!(bv))
424- then ((((((((((N + "_") + toString(bp)) + "_") + bo) + "_") + toString(aU)) + "_") + aT) + "_") + toBase58String(bE))
425- else ((((((((((toString(bG) + "_") + toString(bp)) + "_") + bo) + "_") + toString(aK)) + "_") + bI) + "_") + toBase58String(bE))
426- let bN = StringEntry(((((((("art_sold_" + toString(bB)) + "_of_") + toString(bu)) + "_") + P) + "_") + bk), bM)
427- if (bv)
428- then [bN, bL, bK] :: bH
429- else bN :: bH
430- }
431- }
432- }
433- }
434-
435-
436-@Callable(aI)
437-func addArtwork (F,D,aC,aD,aE,bO,aF,an,ar,ao,as,ap) = {
438- let bP = bi(aI)
439- let P = bP._1
440- let N = bP._2
441- let bp = bP._3
442- if (!(K(F)))
443- then throw("Hash should be 64 characters maximum")
444- else {
445- let bQ = ay(ap, as)
446- let aA = bQ._1
447- let aB = bQ._2
448- let bR = az(N, an, ao, aA, ar, aB, aC, aD, aE, aF)
449- if ((bR != ""))
450- then throw("Something went wrong!")
451- else {
452- let bS = aL(aI)
453- let aK = bS._1
454- let aN = bS._2
455- if (!(isDefined(aK)))
456- then throw("Something went wrong")
457- else {
458- let bT = x(al(F, N))
459- if ((bT != ""))
460- then throw("You already added it")
461- else {
462- let bU = x(ai(F))
463- if ((bU != ""))
464- then throw("Hash already registered")
465- else {
466- let bV = C(D, N, F)
467- if (!(bV))
468- then throw("Sign Certificate not found for this address.")
469- else [StringEntry(ai(F), N), StringEntry(al(F, N), P), IntegerEntry(O(N, P), bp), 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), bO), 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)]
470- }
471- }
472- }
473- }
474- }
475- }
321+ else {
322+ let P = toBase58String(aI.transactionId)
323+ let ba = lastBlock.timestamp
324+ let N = toBase58String(aI.caller.bytes)
325+ if (!(K(F)))
326+ then throw("Hash should be 64 characters maximum")
327+ else {
328+ let bb = ay(ap, as)
329+ let aA = bb._1
330+ let aB = bb._2
331+ let bc = az(N, an, ao, aA, ar, aB, aC, aD, aE, aF)
332+ if ((bc != ""))
333+ then throw("Something went wrong!")
334+ else {
335+ let bd = aH(aI)
336+ let aK = bd._1
337+ let aL = bd._2
338+ if (!(isDefined(aK)))
339+ then throw("Something went wrong")
340+ else {
341+ let be = x(al(F, N))
342+ if ((be != ""))
343+ then throw("You already added it")
344+ else {
345+ let bf = x(ai(F))
346+ if ((bf != ""))
347+ then throw("Hash already registered")
348+ else {
349+ let bg = C(D, N, F)
350+ if (!(bg))
351+ then throw("Sign Certificate not found for this address.")
352+ else [StringEntry(ai(F), N), StringEntry(al(F, N), P), IntegerEntry(O(N, P), ba), 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), aZ), 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, aL)]
353+ }
354+ }
355+ }
356+ }
357+ }
358+ }
476359
477360
478361
479362 @Callable(aI)
480-func updateArtwork (ah,aC,aD,aE,bO,aF,an,ar,ao,as,ap) = if (!(p))
363+func updateArtwork (ah,aC,aD,aE,aZ,aF,an,ar,ao,as,ap) = if (!(p))
481364 then throw(q)
482365 else {
366+ let bh = toBase58String(aI.transactionId)
483367 let N = toBase58String(aI.caller.bytes)
484- let bW = ay(ap, as)
485- let aA = bW._1
486- let aB = bW._2
487- let bR = az(N, an, ao, aA, ar, aB, aC, aD, aE, aF)
488- if ((bR != ""))
368+ let bi = ay(ap, as)
369+ let aA = bi._1
370+ let aB = bi._2
371+ let bc = az(N, an, ao, aA, ar, aB, aC, aD, aE, aF)
372+ if ((bc != ""))
489373 then throw("Something went wrong!")
490374 else {
491- let bT = x(Q(N, ah))
492- if ((bT == ""))
375+ let be = x(Q(N, ah))
376+ if ((be == ""))
493377 then throw("Entry not found")
494378 else {
495- let bX = x(af(N, ah))
496- if ((bX == "ILLEGAL"))
379+ let bj = x(af(N, ah))
380+ if ((bj == "ILLEGAL"))
497381 then throw("Cannot update ILLEGAL artwork")
498- else if (!(aP(N, ah)))
499- 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), bO)]
382+ else if (!(aN(N, ah)))
383+ 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), aZ)]
500384 else throw("Already minted")
501385 }
502386 }
503387 }
504388
505389
506390
507391 @Callable(aI)
508-func flagArtwork (P,bY,bX) = {
509- let bZ = bi(aI)
510- let bo = bZ._1
511- let N = bZ._2
392+func flagArtwork (P,bk,bj) = {
393+ let N = toString(addressFromPublicKey(aI.callerPublicKey))
394+ let bl = toBase58String(aI.transactionId)
512395 if (containsElement([j, k, toString(this)], N))
513- then if ((bX == "CONSENT"))
514- then [StringEntry(af(bY, P), bX)]
515- else if ((bX == ""))
516- then [StringEntry(af(bY, P), bX)]
517- else if ((bX == "ILLEGAL"))
518- then [StringEntry(af(bY, P), bX), StringEntry(Q(bY, P), "ILLEGAL CONTENT"), StringEntry(R(bY, P), "ILLEGAL CONTENT"), StringEntry(S(bY, P), ""), StringEntry(U(bY, P), ""), StringEntry(aa(bY, P), "")]
519- else throw(("Unknow status " + bX))
396+ then if ((bj == "CONSENT"))
397+ then [StringEntry(af(bk, P), bj)]
398+ else if ((bj == ""))
399+ then [StringEntry(af(bk, P), bj)]
400+ else if ((bj == "CHANGE_REQUIRED"))
401+ then [StringEntry(af(bk, P), bj)]
402+ else if ((bj == "ILLEGAL"))
403+ then [StringEntry(af(bk, P), bj), StringEntry(Q(bk, P), "ILLEGAL CONTENT"), StringEntry(R(bk, P), "ILLEGAL CONTENT"), StringEntry(S(bk, P), ""), StringEntry(U(bk, P), ""), StringEntry(aa(bk, P), "")]
404+ else throw(("Unknow status " + bj))
520405 else throw("You are not allowed")
521406 }
522407
523408
524409
525410 @Callable(aI)
526-func deleteArtwork (P,bY) = {
527- let ca = bi(aI)
528- let bo = ca._1
529- let N = ca._2
530- let aQ = if (containsElement([j, k, toString(this)], N))
531- then bY
411+func deleteArtwork (P,bk) = {
412+ let N = toString(addressFromPublicKey(aI.callerPublicKey))
413+ let bl = toBase58String(aI.transactionId)
414+ let aO = if (containsElement([j, k, toString(this)], N))
415+ then bk
532416 else N
533- let bT = valueOrErrorMessage(x(Q(aQ, P)), "No art matching for this address")
534- if ((bT == ""))
417+ let be = x(Q(aO, P))
418+ if ((be == ""))
535419 then throw("No art matching for this address")
536420 else {
537- let F = x(ag(aQ, P))
421+ let F = x(ag(aO, P))
538422 if ((F == ""))
539423 then throw("No art hash matching for this address")
540424 else {
541- let D = x(W(aQ, P))
425+ let D = x(W(aO, P))
542426 if ((D == ""))
543427 then throw("No SIGN ID matching")
544428 else {
545- let cb = [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(bY, P)), DeleteEntry(ad(bY, P)), DeleteEntry(ae(bY, P)), DeleteEntry(ai(F)), DeleteEntry(aj(aQ, D)), DeleteEntry(al(F, aQ))]
546- if (!(aP(aQ, P)))
429+ let bm = [DeleteEntry(O(aO, P)), DeleteEntry(Q(aO, P)), DeleteEntry(R(aO, P)), DeleteEntry(S(aO, P)), DeleteEntry(U(aO, P)), DeleteEntry(T(aO, P)), DeleteEntry(Z(aO, P)), DeleteEntry(aa(aO, P)), DeleteEntry(ac(aO, P)), DeleteEntry(ab(aO, P)), DeleteEntry(V(aO, P)), DeleteEntry(W(aO, P)), DeleteEntry(X(aO, P)), DeleteEntry(Y(aO, P)), DeleteEntry(af(bk, P)), DeleteEntry(ad(bk, P)), DeleteEntry(ae(bk, P)), DeleteEntry(ai(F)), DeleteEntry(aj(aO, D)), DeleteEntry(al(F, aO))]
430+ if (!(aN(aO, P)))
547431 then if (!(p))
548432 then throw(q)
549- else cb
433+ else bm
550434 else if (containsElement([j, toString(this)], N))
551- then cb
435+ then bm
552436 else throw("Art already minted, you cannot delete it")
553437 }
554438 }
555439 }
556440 }
557441
558442
559443
560444 @Callable(aI)
561-func sellArtwork (P,aY,cc,aN) = {
562- let cd = bi(aI)
563- let bo = cd._1
564- let N = cd._2
565- let br = x(Q(N, P))
566- if ((br == ""))
567- then throw("This art doesn't match your account")
568- else {
569- let ce = x(U(N, P))
570- if ((size(split(ce, "/")[0]) != 59))
571- then throw("You cannot sell art with no export file")
572- else if (!(aW(aN)))
573- then throw("Something went wrong!")
574- else if (!(aX(aN, aY)))
575- then throw("Something went wrong!")
576- else {
577- let aG = aw(N)
578- if ((aG != ""))
579- then throw(aG)
580- else {
581- let bt = z(X(N, P))
582- let bu = z(V(N, P))
583- if ((cc > 10))
584- then throw("10 editions max per artwork")
585- else if (if ((bt != 0))
586- then (bt == bu)
587- else false)
588- then throw("Max edition reached.")
589- else if (if ((bt > 0))
590- then (bu != cc)
591- else false)
592- then throw("Cannot change maximum issuable anymore")
593- else {
594- let bF = if (if ((aY > 0))
595- then (cc > 0)
445+func sellArtwork (P,aV,bn,aL) = if (!(p))
446+ then throw(q)
447+ else {
448+ let bl = toBase58String(aI.transactionId)
449+ let N = toBase58String(aI.caller.bytes)
450+ let bo = lastBlock.timestamp
451+ let bp = x(Q(N, P))
452+ if ((bp == ""))
453+ then throw("This art doesn't match match your account")
454+ else {
455+ let bq = x(U(N, P))
456+ if ((size(split(bq, "/")[0]) != 59))
457+ then throw("You cannot sell art with no export file")
458+ else {
459+ let br = x(T(N, P))
460+ if ((size(br) != 64))
461+ then throw("You cannot sell art with no export hash")
462+ else if (!(aT(aL)))
463+ then throw("Something went wrong!")
464+ else if (!(aU(aL, aV)))
465+ then throw("Something went wrong!")
466+ else {
467+ let aG = aw(N)
468+ if ((aG != ""))
469+ then throw(aG)
470+ else {
471+ let bs = z(X(N, P))
472+ let bt = z(V(N, P))
473+ if ((bn > 10))
474+ then throw("10 editions max per artwork")
475+ else if (if ((bs != 0))
476+ then (bs == bt)
596477 else false)
597- then true
598- else false
599-[BooleanEntry(Y(N, P), bF), IntegerEntry(ad(N, P), aY), IntegerEntry(V(N, P), cc), StringEntry(ae(N, P), aN)]
600- }
601- }
602- }
603- }
604- }
478+ then throw("Max edition reached.")
479+ else if (if ((bs > 0))
480+ then (bt != bn)
481+ else false)
482+ then throw("Cannot change maximum issuable anymore")
483+ else {
484+ let bu = if (if ((aV > 0))
485+ then (bn > 0)
486+ else false)
487+ then true
488+ else false
489+[BooleanEntry(Y(N, P), bu), IntegerEntry(ad(N, P), aV), IntegerEntry(V(N, P), bn), StringEntry(ae(N, P), aL)]
490+ }
491+ }
492+ }
493+ }
494+ }
495+ }
605496
606497
607498
608499 @Callable(aI)
609-func buyArtwork (P,bk) = bj(aI, P, bk, "", "")
500+func buyArtwork (P,bv) = if (!(p))
501+ then throw(q)
502+ else {
503+ let bl = toBase58String(aI.transactionId)
504+ let N = toBase58String(aI.caller.bytes)
505+ let bw = z("total_nft_issued")
506+ let D = x(W(bv, P))
507+ let bp = x(Q(bv, P))
508+ if ((bp == ""))
509+ then throw("Art doesn't exist")
510+ else {
511+ let bx = x(S(bv, P))
512+ let bq = x(U(bv, P))
513+ let br = x(T(bv, P))
514+ let aA = x(aa(bv, P))
515+ let aB = x(Z(bv, P))
516+ let aD = take(x(R(bv, P)), 50)
517+ let by = B(Y(bv, P))
518+ let bs = z(X(bv, P))
519+ let aS = z(ad(bv, P))
520+ let aR = x(ae(bv, P))
521+ let bz = x(ag(bv, P))
522+ let bt = z(V(bv, P))
523+ if (if (if ((0 >= aS))
524+ then true
525+ else !(by))
526+ then true
527+ else (0 >= bt))
528+ then throw("Art not for sale")
529+ else {
530+ let bA = aQ(aI, aR, aS)
531+ let aK = bA._1
532+ let aL = bA._2
533+ let bB = A(bv)
534+ let bC = if ((bB > height))
535+ then 0
536+ else if ((aR == toBase58String(g)))
537+ then l
538+ else m
539+ let bD = fraction(aK, bC, 100)
540+ let bE = (aK - bD)
541+ if ((bs == bt))
542+ then throw("Art sold out")
543+ else {
544+ let bF = (bs + 1)
545+ let bG = lastBlock.timestamp
546+ let bH = ((((((((((((((((((((((((((("Creator: " + bv) + ",
547+ ArtID: ") + P) + ",
548+ SignID: ") + D) + ",
549+ Artwork name: ") + bp) + ",
550+ Artwork description: ") + aD) + ",
551+ Issue: ") + toString(bF)) + "/") + toString(bt)) + ",
552+ Max issuable: ") + toString(bt)) + ",
553+ Source hash: ") + bz) + ",
554+ Display cid: ") + bx) + ",
555+ Export cid: ") + bq) + ",
556+ Export hash: ") + br) + ",
557+ Licence cid: ") + aA) + ",
558+ Licence hash: ") + aB)
559+ let bI = Issue(("SA_" + toString((bw + 1))), bH, 1, 0, false)
560+ let bJ = calculateAssetId(bI)
561+ let bu = if ((bF == bt))
562+ then false
563+ else true
564+[IntegerEntry(X(bv, P), bF), StringEntry(("nft_" + toBase58String(bJ)), ((((((("art_sold_" + toString(bF)) + "_of_") + toString(bt)) + "_") + P) + "_") + bv)), StringEntry(((((((("art_sold_" + toString(bF)) + "_of_") + toString(bt)) + "_") + P) + "_") + bv), ((((((((((N + "_") + toString(bG)) + "_") + bl) + "_") + toString(aS)) + "_") + aR) + "_") + toBase58String(bJ))), IntegerEntry("total_nft_issued", (bw + 1)), BooleanEntry(Y(bv, P), bu), bI, ScriptTransfer(Address(fromBase58String(bv)), bE, aL), ScriptTransfer(Address(fromBase58String(d)), bD, aL), ScriptTransfer(aI.caller, 1, bJ)]
565+ }
566+ }
567+ }
568+ }
610569
611570
612571
613-@Callable(aI)
614-func setBid (P,bk) = {
615- let cf = bi(aI)
616- let bo = cf._1
617- let N = cf._2
618- let bp = cf._3
619- let cg = aH(aI)
620- let aJ = cg._1
621- let aK = cg._2
622- let aN = if (!(isDefined(aJ.assetId)))
623- then "WAVES"
624- else toBase58String(value(aJ.assetId))
625- if (!(aW(aN)))
626- then throw("Something went wrong!")
627- else if (!(aX(aN, aK)))
628- then throw("Something went wrong!")
629- else {
630- let bt = z(X(bk, P))
631- let bu = z(V(bk, P))
632- if ((bt >= bu))
633- then throw("Sold out, you cannot bid")
634- else [StringEntry((((((((("bid_" + P) + "_") + bk) + "_") + N) + "_") + bo) + "_OPEN"), ((((aN + "_") + toString(aK)) + "_") + toString(bp)))]
635- }
636- }
637-
638-
639-
640-@Callable(aI)
641-func acceptBid (P,bk,bl,bm) = {
642- let N = toBase58String(aI.caller.bytes)
643- if ((N != bk))
644- then throw("You cannot do this action")
645- else bj(aI, P, bk, bl, bm)
646- }
647-
648-
649-
650-@Callable(aI)
651-func cancelBid (P,bk,bl,bm) = {
652- let ch = bi(aI)
653- let bo = ch._1
654- let N = ch._2
655- let bp = ch._3
656- if (if ((N != bm))
657- then (N != bk)
658- else false)
659- then throw("You cannot do this action")
660- else {
661- let bd = ((((((("bid_" + P) + "_") + bk) + "_") + bm) + "_") + bl)
662- let be = x((bd + "_OPEN"))
663- if ((be == ""))
664- then throw("Bid not found")
665- else {
666- let bf = split(be, "_")
667- let aN = if ((bf[0] == "WAVES"))
668- then unit
669- else fromBase58String(bf[0])
670- let ci = if ((N == bm))
671- then "CANCELED"
672- else "REJECTED"
673-[DeleteEntry((bd + "_OPEN")), StringEntry(((bd + "_") + ci), ((be + "_") + toString(bp))), ScriptTransfer(Address(fromBase58String(bm)), parseIntValue(bf[1]), aN)]
674- }
675- }
676- }
677-
678-
679-
680-@Callable(aI)
681-func deleteEntry (cj) = {
682- let N = toString(addressFromPublicKey(aI.callerPublicKey))
572+@Callable(bK)
573+func deleteEntry (bL) = {
574+ let N = toString(addressFromPublicKey(bK.callerPublicKey))
683575 if ((N == j))
684- then [DeleteEntry(cj)]
576+ then [DeleteEntry(bL)]
685577 else throw("no")
686578 }
687579
688580

github/deemru/w8io/026f985 
111.40 ms