tx · HqbK4hLhoBd84U7eyR2TuGVg4cBcoLNzbPUk4H8g1x8P

3N6VmiwyYvN3mje3HrLWZJwpGpXerqPwiY1:  -0.01400000 Waves

2020.09.30 05:53 [1199474] smart account 3N6VmiwyYvN3mje3HrLWZJwpGpXerqPwiY1 > SELF 0.00000000 Waves

{ "type": 13, "id": "HqbK4hLhoBd84U7eyR2TuGVg4cBcoLNzbPUk4H8g1x8P", "fee": 1400000, "feeAssetId": null, "timestamp": 1601434441131, "version": 2, "chainId": 84, "sender": "3N6VmiwyYvN3mje3HrLWZJwpGpXerqPwiY1", "senderPublicKey": "6d67Hi89AYURSDxe1L8huJrSeU9FSdfUJMXWvwZb8goX", "proofs": [ "5xFiUL2KeLMiWwqV5BkyRVcbatAVu3LFCLjcMgew11enk7nN7ZWKaQZ7BeTW3aKeHqcEw848o59Hv6dVesXM4Cb" ], "script": "base64:AAIEAAAAAAAAAFgIAhIGCgQICAgIEgMKAQgSBgoECAgICBIECgIICBIDCgEIEgMKAQgSDgoMCAgICAgIAQgICAgIEg0KCwgICAgIAQgICAgIEgQKAggIEgQKAggBEgQKAggIAAAALwAAAAAPc3RvcmFnZVZlcmlmaWVyCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAxzaWduVmVyaWZpZXIJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAAC2ZlZVJlY2VpdmVyAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAALc2lnbkFzc2V0SWQBAAAAIOilarzKd0LycGEyNUpPRYO5uR7lmWcXw3Hq2QuhBK3rAAAAAAZ1c2RuSUQCAAAALDNLRlhCR0dMQ2pBNVoyRHVXNERxOWZERHJIakpKUDFaRWthb2FqU3p1S3NDAAAAAAVhZG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IJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAZpbnZva2UAAAAGY2FsbGVyAAAAAAAAAAABBQAAAAVpZE5GVAUAAAADbmlsAAAAADXhZVk=", "height": 1199474, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 31jyvC1q5EnKNP9btYettDWtDwNCEC2fb6zDekcxgZ4q Next: 5m16hwuHsPFxe1gqyuCvQqhahKSNoNUZsyaLYjUUCLuq Diff:
OldNewDifferences
196196
197197
198198 @Callable(w)
199-func deleteEntry () = {
199+func deleteEntry (ar) = {
200200 let J = toString(addressFromPublicKey(w.callerPublicKey))
201201 if ((J == f))
202- then [DeleteEntry("user_status_3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN")]
202+ then [DeleteEntry(ar)]
203203 else throw("no")
204204 }
205205
233233
234234
235235 @Callable(w)
236-func changeUserStatus (ar,as) = {
236+func changeUserStatus (as,at) = {
237237 let J = toString(addressFromPublicKey(w.callerPublicKey))
238238 let D = toBase58String(w.transactionId)
239- let at = if ((as == k))
239+ let au = if ((at == k))
240240 then k
241- else if ((as == j))
241+ else if ((at == j))
242242 then j
243- else if ((as == l))
243+ else if ((at == l))
244244 then l
245- else if ((as == m))
245+ else if ((at == m))
246246 then m
247- else if ((as == i))
247+ else if ((at == i))
248248 then i
249249 else throw("Unknown status")
250250 if (if ((J == f))
251251 then true
252252 else (J == g))
253- then [StringEntry(O(ar), at), StringEntry("last_invoke_id", D)]
253+ then [StringEntry(O(as), au), StringEntry("last_invoke_id", D)]
254254 else throw(((("You are not allowed to change user status " + J) + " / ") + f))
255255 }
256256
257257
258258
259259 @Callable(w)
260-func deleteUser (ar) = {
260+func deleteUser (as) = {
261261 let J = toString(addressFromPublicKey(w.callerPublicKey))
262262 let D = toBase58String(w.transactionId)
263263 if (if ((J == f))
264264 then true
265265 else (J == g))
266- then [DeleteEntry(P(ar)), DeleteEntry(I(ar)), DeleteEntry(K(ar)), DeleteEntry(L(ar)), DeleteEntry(M(ar)), DeleteEntry(N(ar)), StringEntry(O(ar), m), StringEntry("last_invoke_id", D)]
266+ then [DeleteEntry(P(as)), DeleteEntry(I(as)), DeleteEntry(K(as)), DeleteEntry(L(as)), DeleteEntry(M(as)), DeleteEntry(N(as)), StringEntry(O(as), m), StringEntry("last_invoke_id", D)]
267267 else throw("You are not allowed to do that")
268268 }
269269
270270
271271
272272 @Callable(w)
273-func creditUser (ar) = {
273+func creditUser (as) = {
274274 let J = toString(addressFromPublicKey(w.callerPublicKey))
275275 let D = toBase58String(w.transactionId)
276276 if (if ((J == f))
277277 then true
278278 else (J == g))
279- then [ScriptTransfer(Address(fromBase58String(ar)), 150000000000, d)]
279+ then [ScriptTransfer(Address(fromBase58String(as)), 150000000000, d)]
280280 else throw("You are not allowed to do that")
281281 }
282282
283283
284284
285-@Callable(au)
286-func addArtwork (A,y,al,am,av,aw,ax,ay,az,aA,aB,aC) = {
287- let R = toBase58String(au.transactionId)
288- let aD = toBase58String(au.caller.bytes)
289- if ((size(au.payments) == 0))
285+@Callable(av)
286+func addArtwork (A,y,al,am,aw,ax,ay,az,aA,aB,aC,aD) = {
287+ let R = toBase58String(av.transactionId)
288+ let aE = toBase58String(av.caller.bytes)
289+ if ((size(av.payments) == 0))
290290 then throw("No payment attached")
291291 else {
292- let aE = value(au.payments[0])
293- let aF = value(aE.amount)
294- let aG = if (if (isDefined(aE.assetId))
295- then (aE.assetId == d)
292+ let aF = value(av.payments[0])
293+ let aG = value(aF.amount)
294+ let aH = if (if (isDefined(aF.assetId))
295+ then (aF.assetId == d)
296296 else false)
297- then aE.assetId
297+ then aF.assetId
298298 else throw("Only SIGN token accepted at the moment")
299- let aH = {
299+ let aI = {
300300 let t = getInteger(a, ("certification_fee_" + toBase58String(d)))
301301 if ($isInstanceOf(t, "Int"))
302302 then {
303- let aI = t
304- aI
303+ let aJ = t
304+ aJ
305305 }
306306 else throw("Price undefined in oracle")
307307 }
308- if ((aF != aH))
309- then throw(("Payment amount should be " + toString(aH)))
308+ if ((aG != aI))
309+ then throw(("Payment amount should be " + toString(aI)))
310310 else {
311- let aJ = r(ak(A, aD))
312- if ((aJ != ""))
311+ let aK = r(ak(A, aE))
312+ if ((aK != ""))
313313 then throw("You already added this artwork on Sign Art")
314314 else {
315- let aK = r(ah(A))
316- if ((aK != ""))
315+ let aL = r(ah(A))
316+ if ((aL != ""))
317317 then throw("This artwork hash is already registered on Sign Art")
318318 else {
319- let aL = x(y, aD, A)
320- if (!(aL))
319+ let aM = x(y, aE, A)
320+ if (!(aM))
321321 then throw("Sign Certificate not found on Sign-web.app smart contract for this address.")
322- else if ((size(ay) == 0))
322+ else if ((size(az) == 0))
323323 then throw("Display CID cannot be empty")
324324 else if ((size(al) == 0))
325325 then throw("Title cannot be empty")
330330 else if ((size(am) == 0))
331331 then throw("Description cannot be empty")
332332 else {
333- let aM = split(av, ",")
334- if ((size(aM) > 5))
333+ let aN = split(aw, ",")
334+ if ((size(aN) > 5))
335335 then throw("Tags should be maximum 5 single word separated by space.")
336336 else {
337- let aN = {
338- let t = getString(this, ("user_status_" + aD))
337+ let aO = {
338+ let t = getString(this, ("user_status_" + aE))
339339 if ($isInstanceOf(t, "String"))
340340 then {
341- let aO = t
342- aO
341+ let aP = t
342+ aP
343343 }
344344 else n
345345 }
346346 let aq = lastBlock.timestamp
347- if (if (isDefined(aN))
348- then (aN == n)
347+ if (if (isDefined(aO))
348+ then (aO == n)
349349 else false)
350350 then throw("Please register this account first with \"User infos\" tab")
351- else if ((aN == l))
351+ else if ((aO == l))
352352 then throw("Your account is suspended")
353- else if ((aN == m))
353+ else if ((aO == m))
354354 then throw("Your account have been removed")
355- else if ((ax > 10))
355+ else if ((ay > 10))
356356 then throw("Maximum 10 editions per artwork")
357357 else if ((size(A) != 64))
358358 then throw("Hash should be sha256 string composed of 64 char.")
359- else [StringEntry(ah(A), aD), StringEntry(ak(A, aD), R), IntegerEntry(Q(aD, R), aq), StringEntry(S(aD, R), al), StringEntry(T(aD, R), am), StringEntry(U(aD, R), ay), StringEntry(W(aD, R), aA), StringEntry(V(aD, R), az), StringEntry(ab(aD, R), aB), StringEntry(ac(aD, R), aC), StringEntry(ae(aD, R), aw), StringEntry(ad(aD, R), av), IntegerEntry(X(aD, R), ax), StringEntry(Y(aD, R), y), IntegerEntry(Z(aD, R), 0), BooleanEntry(aa(aD, R), false), StringEntry(ai(aD, y), R), StringEntry("last_invoke_id", R), StringEntry(af(aD, R), A), ScriptTransfer(Address(fromBase58String(c)), aF, aG)]
359+ else [StringEntry(ah(A), aE), StringEntry(ak(A, aE), R), IntegerEntry(Q(aE, R), aq), StringEntry(S(aE, R), al), StringEntry(T(aE, R), am), StringEntry(U(aE, R), az), StringEntry(W(aE, R), aB), StringEntry(V(aE, R), aA), StringEntry(ab(aE, R), aC), StringEntry(ac(aE, R), aD), StringEntry(ae(aE, R), ax), StringEntry(ad(aE, R), aw), IntegerEntry(X(aE, R), ay), StringEntry(Y(aE, R), y), IntegerEntry(Z(aE, R), 0), BooleanEntry(aa(aE, R), false), StringEntry(ai(aE, y), R), StringEntry("last_invoke_id", R), StringEntry(af(aE, R), A), ScriptTransfer(Address(fromBase58String(c)), aG, aH)]
360360 }
361361 }
362362 }
367367
368368
369369
370-@Callable(au)
371-func updateArtwork (ag,al,am,av,aw,ax,ay,az,aA,aB,aC) = {
372- let aP = toBase58String(au.transactionId)
373- let aD = toBase58String(au.caller.bytes)
374- let aJ = r(S(aD, ag))
375- if ((aJ == ""))
370+@Callable(av)
371+func updateArtwork (ag,al,am,aw,ax,ay,az,aA,aB,aC,aD) = {
372+ let aQ = toBase58String(av.transactionId)
373+ let aE = toBase58String(av.caller.bytes)
374+ let aK = r(S(aE, ag))
375+ if ((aK == ""))
376376 then throw("This entry doesn't exist or you are not the owner")
377377 else if ((size(al) == 0))
378378 then throw("Title cannot be empty")
383383 else if ((size(am) == 0))
384384 then throw("Description cannot be empty")
385385 else {
386- let aQ = {
387- let t = getInteger(this, Z(aD, ag))
386+ let aR = {
387+ let t = getInteger(this, Z(aE, ag))
388388 if ($isInstanceOf(t, "Int"))
389389 then {
390390 let H = t
394394 }
395395 else false
396396 }
397- let aM = split(av, ",")
398- if ((size(aM) > 5))
397+ let aN = split(aw, ",")
398+ if ((size(aN) > 5))
399399 then throw("Tags should be maximum 5 single word separated by space.")
400400 else {
401- let aN = {
402- let t = getString(this, ("user_status_" + aD))
401+ let aO = {
402+ let t = getString(this, ("user_status_" + aE))
403403 if ($isInstanceOf(t, "String"))
404404 then {
405- let aO = t
406- aO
405+ let aP = t
406+ aP
407407 }
408408 else n
409409 }
410- if (if (isDefined(aN))
411- then (aN == n)
410+ if (if (isDefined(aO))
411+ then (aO == n)
412412 else false)
413413 then throw("Please register this account first with \"User infos\" tab")
414- else if ((aN == l))
414+ else if ((aO == l))
415415 then throw("Your account is suspended")
416- else if ((aN == m))
416+ else if ((aO == m))
417417 then throw("Your account have been removed")
418- else if ((ax > 10))
418+ else if ((ay > 10))
419419 then throw("Maximum 10 editions per artwork")
420- else if (!(aQ))
421- then [StringEntry(S(aD, ag), al), StringEntry(T(aD, ag), am), StringEntry(U(aD, ag), ay), StringEntry(W(aD, ag), aA), StringEntry(V(aD, ag), az), StringEntry(ac(aD, ag), aC), StringEntry(ab(aD, ag), aB), IntegerEntry(X(aD, ag), ax), StringEntry(ad(aD, ag), av), StringEntry(ae(aD, ag), aw), StringEntry("last_invoke_id", aP)]
422- else [StringEntry(S(aD, ag), al), StringEntry(T(aD, ag), am), StringEntry(U(aD, ag), ay), StringEntry(ae(aD, ag), aw), StringEntry(ad(aD, ag), av), StringEntry("last_invoke_id", aP)]
420+ else if (!(aR))
421+ then [StringEntry(S(aE, ag), al), StringEntry(T(aE, ag), am), StringEntry(U(aE, ag), az), StringEntry(W(aE, ag), aB), StringEntry(V(aE, ag), aA), StringEntry(ac(aE, ag), aD), StringEntry(ab(aE, ag), aC), IntegerEntry(X(aE, ag), ay), StringEntry(ad(aE, ag), aw), StringEntry(ae(aE, ag), ax), StringEntry("last_invoke_id", aQ)]
422+ else [StringEntry(S(aE, ag), al), StringEntry(T(aE, ag), am), StringEntry(U(aE, ag), az), StringEntry(ae(aE, ag), ax), StringEntry(ad(aE, ag), aw), StringEntry("last_invoke_id", aQ)]
423423 }
424424 }
425425 }
427427
428428
429429 @Callable(w)
430-func deleteArtwork (R,ar) = {
431- let aD = toString(addressFromPublicKey(w.callerPublicKey))
430+func deleteArtwork (R,as) = {
431+ let aE = toString(addressFromPublicKey(w.callerPublicKey))
432432 let D = toBase58String(w.transactionId)
433- let aR = if (if ((aD == f))
433+ let aS = if (if ((aE == f))
434434 then true
435- else (aD == g))
436- then ar
437- else aD
438- let aJ = {
439- let t = getString(this, S(aR, R))
435+ else (aE == g))
436+ then as
437+ else aE
438+ let aK = {
439+ let t = getString(this, S(aS, R))
440440 if ($isInstanceOf(t, "String"))
441441 then {
442- let aO = t
443- aO
442+ let aP = t
443+ aP
444444 }
445445 else throw("No artwork matching this request or you are not allowed")
446446 }
447- let aQ = {
448- let t = getInteger(this, Z(aR, R))
447+ let aR = {
448+ let t = getInteger(this, Z(aS, R))
449449 if ($isInstanceOf(t, "Int"))
450450 then {
451451 let H = t
456456 else false
457457 }
458458 let A = {
459- let t = getString(this, af(aR, R))
459+ let t = getString(this, af(aS, R))
460460 if ($isInstanceOf(t, "String"))
461461 then {
462- let aO = t
463- aO
462+ let aP = t
463+ aP
464464 }
465465 else throw("No artwork hash matching this request")
466466 }
467467 let y = {
468- let t = getString(this, Y(aR, R))
468+ let t = getString(this, Y(aS, R))
469469 if ($isInstanceOf(t, "String"))
470470 then {
471- let aO = t
472- aO
471+ let aP = t
472+ aP
473473 }
474474 else throw("No SIGN ID matching this request")
475475 }
476- let aS = [DeleteEntry(Q(aR, R)), DeleteEntry(S(aR, R)), DeleteEntry(T(aR, R)), DeleteEntry(U(aR, R)), DeleteEntry(W(aR, R)), DeleteEntry(V(aR, R)), DeleteEntry(ab(aR, R)), DeleteEntry(ac(aR, R)), DeleteEntry(ae(aR, R)), DeleteEntry(ad(aR, R)), DeleteEntry(X(aR, R)), DeleteEntry(Y(aR, R)), DeleteEntry(Z(aR, R)), DeleteEntry(aa(aR, R)), StringEntry("last_invoke_id", D), DeleteEntry(ah(A)), DeleteEntry(ai(aR, y)), DeleteEntry(ak(A, aR))]
477- if (if ((aD == f))
476+ let aT = [DeleteEntry(Q(aS, R)), DeleteEntry(S(aS, R)), DeleteEntry(T(aS, R)), DeleteEntry(U(aS, R)), DeleteEntry(W(aS, R)), DeleteEntry(V(aS, R)), DeleteEntry(ab(aS, R)), DeleteEntry(ac(aS, R)), DeleteEntry(ae(aS, R)), DeleteEntry(ad(aS, R)), DeleteEntry(X(aS, R)), DeleteEntry(Y(aS, R)), DeleteEntry(Z(aS, R)), DeleteEntry(aa(aS, R)), StringEntry("last_invoke_id", D), DeleteEntry(ah(A)), DeleteEntry(ai(aS, y)), DeleteEntry(ak(A, aS))]
477+ if (if ((aE == f))
478478 then true
479- else (aD == g))
480- then aS
481- else if (!(aQ))
482- then aS
479+ else (aE == g))
480+ then aT
481+ else if (!(aR))
482+ then aT
483483 else throw("This artwork already have minted NFT, you cannot delete it")
484484 }
485485
486486
487487
488-@Callable(au)
489-func sellArtwork (aT,aI) = {
490- let D = toBase58String(au.transactionId)
491- let aD = toBase58String(au.caller.bytes)
492- let aU = lastBlock.timestamp
493- let aV = r(((aT + "_") + aD))
494- if (!(isDefined(aV)))
488+@Callable(av)
489+func sellArtwork (aU,aJ) = {
490+ let D = toBase58String(av.transactionId)
491+ let aE = toBase58String(av.caller.bytes)
492+ let aV = lastBlock.timestamp
493+ let aW = r(((aU + "_") + aE))
494+ if (!(isDefined(aW)))
495495 then throw("This artwork doesn't exit or you are not the owner")
496496 else {
497- let aN = r(("user_status_" + aD))
498- if ((aN == ""))
497+ let aO = r(("user_status_" + aE))
498+ if ((aO == ""))
499499 then throw("Please register this account first")
500500 else {
501- let aW = v(((("art_issued_" + aV) + "_") + aD))
502- let aX = v(((("art_maxmint_" + aV) + "_") + aD))
503- if ((aW == aX))
501+ let aX = v(((("art_issued_" + aW) + "_") + aE))
502+ let aY = v(((("art_maxmint_" + aW) + "_") + aE))
503+ if ((aX == aY))
504504 then throw("You reached the max edition allowed to sell for this edition.")
505- else if ((aN == l))
505+ else if ((aO == l))
506506 then throw("Your account is suspended")
507- else if (!(isDefined(aV)))
507+ else if (!(isDefined(aW)))
508508 then throw("This artwork desn't exist")
509- else if ((size(aT) != 64))
509+ else if ((size(aU) != 64))
510510 then throw("This hash is incorrect.")
511511 else {
512- let aY = if ((aI > 0))
512+ let aZ = if ((aJ > 0))
513513 then true
514514 else false
515-[BooleanEntry(((("art_onsale_" + aV) + "_") + aD), aY), IntegerEntry(((("art_price_" + aV) + "_") + aD), aI), StringEntry("last_invoke_id", D)]
515+[BooleanEntry(((("art_onsale_" + aW) + "_") + aE), aZ), IntegerEntry(((("art_price_" + aW) + "_") + aE), aJ), StringEntry("last_invoke_id", D)]
516516 }
517517 }
518518 }
520520
521521
522522
523-@Callable(au)
524-func buyArtwork (aT,aZ) = {
525- let D = toBase58String(au.transactionId)
526- let aD = toBase58String(au.caller.bytes)
527- let ba = v("total_nft_issued")
528- let aV = r(((aT + "_") + aZ))
529- if ((aV == ""))
523+@Callable(av)
524+func buyArtwork (aU,ba) = {
525+ let D = toBase58String(av.transactionId)
526+ let aE = toBase58String(av.caller.bytes)
527+ let bb = v("total_nft_issued")
528+ let aW = r(((aU + "_") + ba))
529+ if ((aW == ""))
530530 then throw("This artwork doesn't exit or you are not the owner")
531531 else {
532- let aN = r(("user_status_" + aD))
533- if (!(isDefined(aN)))
532+ let aO = r(("user_status_" + aE))
533+ if (!(isDefined(aO)))
534534 then throw("Please register this account first")
535535 else {
536- let bb = r(((("art_sold_" + aV) + "_") + aZ))
537- let aW = v(((("art_issued_" + aV) + "_") + aZ))
538- let bc = v(((("art_price_" + aV) + "_") + aZ))
539- if ((bc == 0))
536+ let bc = r(((("art_sold_" + aW) + "_") + ba))
537+ let aX = v(((("art_issued_" + aW) + "_") + ba))
538+ let bd = v(((("art_price_" + aW) + "_") + ba))
539+ if ((bd == 0))
540540 then throw("This artwork is not for sell")
541541 else {
542- let aX = v(((("art_maxmint_" + aV) + "_") + aZ))
543- let aE = value(au.payments[0])
544- let aF = value(aE.amount)
545- let aG = if (isDefined(aE.assetId))
542+ let aY = v(((("art_maxmint_" + aW) + "_") + ba))
543+ let aF = value(av.payments[0])
544+ let aG = value(aF.amount)
545+ let aH = if (isDefined(aF.assetId))
546546 then throw("Only Waves token accepted at the moment")
547547 else unit
548- if ((aW == aX))
548+ if ((aX == aY))
549549 then throw("Cannot buy this artwork anymore")
550- else if ((bc != aF))
550+ else if ((bd != aG))
551551 then throw("Payment don't match seller price")
552552 else {
553- let bd = (aW + 1)
554- let aU = lastBlock.timestamp
555- let be = (((((((((((((("{\"version\": 1,\"artID\": \"" + aV) + "\",\"maxIssuable\": \"") + toString(aX)) + "\",\"signID\": \"SA_") + toString((ba + 1))) + "\", \"creator\": \"") + aZ) + "\", \"issue\": \"") + toString(bd)) + "/") + toString(aX)) + "\", \"hash\": ") + aT) + "}")
556- let bf = Issue(("SA_" + toString((ba + 1))), be, 1, 0, false)
557- let bg = calculateAssetId(bf)
558- let aY = if ((bd == aX))
553+ let be = (aX + 1)
554+ let aV = lastBlock.timestamp
555+ let bf = (((((((((((((("{\"version\": 1,\"artID\": \"" + aW) + "\",\"maxIssuable\": \"") + toString(aY)) + "\",\"signID\": \"SA_") + toString((bb + 1))) + "\", \"creator\": \"") + ba) + "\", \"issue\": \"") + toString(be)) + "/") + toString(aY)) + "\", \"hash\": ") + aU) + "}")
556+ let bg = Issue(("SA_" + toString((bb + 1))), bf, 1, 0, false)
557+ let bh = calculateAssetId(bg)
558+ let aZ = if ((be == aY))
559559 then false
560560 else true
561-[IntegerEntry(((("art_issued_" + aV) + "_") + aZ), bd), StringEntry(((((((("art_sold_" + toString(bd)) + "_of_") + toString(aX)) + "_") + aV) + "_") + aZ), ((((((aD + "_") + toString(aU)) + "_") + D) + "_") + toString(bc))), IntegerEntry("total_nft_issued", (ba + 1)), StringEntry("last_invoke_id", D), bf, BooleanEntry(((("art_onsale_" + aV) + "_") + aD), aY), ScriptTransfer(Address(fromBase58String(aZ)), aF, aG), ScriptTransfer(au.caller, 1, bg)]
561+[IntegerEntry(((("art_issued_" + aW) + "_") + ba), be), StringEntry(((((((("art_sold_" + toString(be)) + "_of_") + toString(aY)) + "_") + aW) + "_") + ba), ((((((aE + "_") + toString(aV)) + "_") + D) + "_") + toString(bd))), IntegerEntry("total_nft_issued", (bb + 1)), StringEntry("last_invoke_id", D), bg, BooleanEntry(((("art_onsale_" + aW) + "_") + aE), aZ), ScriptTransfer(Address(fromBase58String(ba)), aG, aH), ScriptTransfer(av.caller, 1, bh)]
562562 }
563563 }
564564 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
55
66 let b = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB"))
77
88 let c = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
99
1010 let d = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
1111
1212 let e = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC"
1313
1414 let f = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
1515
1616 let g = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
1717
1818 let h = true
1919
2020 let i = "ALLOWED"
2121
2222 let j = "REGISTERED"
2323
2424 let k = "VERIFIED"
2525
2626 let l = "SUSPENDED"
2727
2828 let m = "REMOVED"
2929
3030 let n = "UNREGISTERED"
3131
3232 let o = "ON_SALE"
3333
3434 let p = "SOLD"
3535
3636 let q = "CANCELED"
3737
3838 func r (s) = {
3939 let t = getString(this, s)
4040 if ($isInstanceOf(t, "String"))
4141 then {
4242 let u = t
4343 u
4444 }
4545 else ""
4646 }
4747
4848
4949 func v (s) = {
5050 let t = getInteger(this, s)
5151 if ($isInstanceOf(t, "Int"))
5252 then {
5353 let w = t
5454 w
5555 }
5656 else 0
5757 }
5858
5959
6060 func x (y,z,A) = {
6161 let t = getString(b, ((("data_fc_" + y) + "_") + z))
6262 if ($isInstanceOf(t, "String"))
6363 then {
6464 let u = t
6565 if (contains(u, A))
6666 then true
6767 else false
6868 }
6969 else false
7070 }
7171
7272
7373 func B (C,D) = {
7474 let E = value(assetInfo(fromBase58String(D)))
7575 if (if (if ((E.quantity != 1))
7676 then true
7777 else (E.decimals != 0))
7878 then true
7979 else (E.reissuable != false))
8080 then (C + 0)
8181 else (C + 1)
8282 }
8383
8484
8585 func F (G) = {
8686 let t = getString(this, ("user_status_" + G))
8787 if ($isInstanceOf(t, "String"))
8888 then {
8989 let H = t
9090 H
9191 }
9292 else throw("Something went wrong.")
9393 }
9494
9595
9696 func I (J) = ("user_" + J)
9797
9898
9999 func K (J) = ("user_name_" + J)
100100
101101
102102 func L (J) = ("user_desc_" + J)
103103
104104
105105 func M (J) = ("user_social_" + J)
106106
107107
108108 func N (J) = ("user_thumb_" + J)
109109
110110
111111 func O (J) = ("user_status_" + J)
112112
113113
114114 func P (J) = ("user_date_" + J)
115115
116116
117117 func Q (J,R) = ((("art_date_" + R) + "_") + J)
118118
119119
120120 func S (J,R) = ((("art_name_" + R) + "_") + J)
121121
122122
123123 func T (J,R) = ((("art_desc_" + R) + "_") + J)
124124
125125
126126 func U (J,R) = ((("art_display_cid_" + R) + "_") + J)
127127
128128
129129 func V (J,R) = ((("art_export_hash_" + R) + "_") + J)
130130
131131
132132 func W (J,R) = ((("art_export_cid_" + R) + "_") + J)
133133
134134
135135 func X (J,R) = ((("art_maxmint_" + R) + "_") + J)
136136
137137
138138 func Y (J,R) = ((("art_signid_" + R) + "_") + J)
139139
140140
141141 func Z (J,R) = ((("art_issued_" + R) + "_") + J)
142142
143143
144144 func aa (J,R) = ((("art_onsale_" + R) + "_") + J)
145145
146146
147147 func ab (J,R) = ((("art_licence_hash_" + R) + "_") + J)
148148
149149
150150 func ac (J,R) = ((("art_licence_cid_" + R) + "_") + J)
151151
152152
153153 func ad (J,R) = ((("art_tags_" + R) + "_") + J)
154154
155155
156156 func ae (J,R) = ((("art_type_" + R) + "_") + J)
157157
158158
159159 func af (J,ag) = ((("get_hashbytxidaddr_" + ag) + "_") + J)
160160
161161
162162 func ah (A) = ("get_owner_by_hash_" + A)
163163
164164
165165 func ai (J,aj) = ((("get_artidbysignid_" + aj) + "_") + J)
166166
167167
168168 func ak (A,J) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((A + J)))))
169169
170170
171171 @Callable(w)
172172 func registerUser (al,am,an,ao) = {
173173 let J = toString(addressFromPublicKey(w.callerPublicKey))
174174 let ap = r(O(J))
175175 let D = toBase58String(w.transactionId)
176176 let aq = lastBlock.timestamp
177177 if (if ((ap == l))
178178 then true
179179 else (ap == m))
180180 then throw("You are now allowed to register, your account have been suspended/ removed.")
181181 else if ((ap == j))
182182 then throw("You are already registered, please use update method instead.")
183183 else if (if ((ap == ""))
184184 then h
185185 else false)
186186 then throw("You are now allowed to register yet, please contact us first to get approved.")
187187 else if (if ((al == ""))
188188 then true
189189 else (am == ""))
190190 then throw("Name and description cannot be empty")
191191 else if ((size(am) > 600))
192192 then throw("600 Characters maximum for the description")
193193 else [IntegerEntry(P(J), aq), StringEntry(I(J), ((D + "_") + toString(lastBlock.timestamp))), StringEntry(K(J), al), StringEntry(L(J), am), StringEntry(M(J), ao), StringEntry(N(J), an), StringEntry(O(J), j), StringEntry("last_invoke_id", D)]
194194 }
195195
196196
197197
198198 @Callable(w)
199-func deleteEntry () = {
199+func deleteEntry (ar) = {
200200 let J = toString(addressFromPublicKey(w.callerPublicKey))
201201 if ((J == f))
202- then [DeleteEntry("user_status_3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN")]
202+ then [DeleteEntry(ar)]
203203 else throw("no")
204204 }
205205
206206
207207
208208 @Callable(w)
209209 func updateUser (al,am,an,ao) = {
210210 let J = toString(addressFromPublicKey(w.callerPublicKey))
211211 let ap = r(O(J))
212212 if (if ((ap == l))
213213 then true
214214 else (ap == m))
215215 then throw("You are now allowed to register, your account have been suspended/ removed.")
216216 else if (if ((ap == ""))
217217 then true
218218 else (ap == i))
219219 then throw("Please register first with registerUser")
220220 else {
221221 let D = toBase58String(w.transactionId)
222222 let aq = lastBlock.timestamp
223223 if (if ((al == ""))
224224 then true
225225 else (am == ""))
226226 then throw("Name and description cannot be empty")
227227 else if ((size(am) > 600))
228228 then throw("600 Characters maximum for the description")
229229 else [StringEntry(K(J), al), StringEntry(L(J), am), StringEntry(M(J), ao), StringEntry(N(J), an), StringEntry("last_invoke_id", D)]
230230 }
231231 }
232232
233233
234234
235235 @Callable(w)
236-func changeUserStatus (ar,as) = {
236+func changeUserStatus (as,at) = {
237237 let J = toString(addressFromPublicKey(w.callerPublicKey))
238238 let D = toBase58String(w.transactionId)
239- let at = if ((as == k))
239+ let au = if ((at == k))
240240 then k
241- else if ((as == j))
241+ else if ((at == j))
242242 then j
243- else if ((as == l))
243+ else if ((at == l))
244244 then l
245- else if ((as == m))
245+ else if ((at == m))
246246 then m
247- else if ((as == i))
247+ else if ((at == i))
248248 then i
249249 else throw("Unknown status")
250250 if (if ((J == f))
251251 then true
252252 else (J == g))
253- then [StringEntry(O(ar), at), StringEntry("last_invoke_id", D)]
253+ then [StringEntry(O(as), au), StringEntry("last_invoke_id", D)]
254254 else throw(((("You are not allowed to change user status " + J) + " / ") + f))
255255 }
256256
257257
258258
259259 @Callable(w)
260-func deleteUser (ar) = {
260+func deleteUser (as) = {
261261 let J = toString(addressFromPublicKey(w.callerPublicKey))
262262 let D = toBase58String(w.transactionId)
263263 if (if ((J == f))
264264 then true
265265 else (J == g))
266- then [DeleteEntry(P(ar)), DeleteEntry(I(ar)), DeleteEntry(K(ar)), DeleteEntry(L(ar)), DeleteEntry(M(ar)), DeleteEntry(N(ar)), StringEntry(O(ar), m), StringEntry("last_invoke_id", D)]
266+ then [DeleteEntry(P(as)), DeleteEntry(I(as)), DeleteEntry(K(as)), DeleteEntry(L(as)), DeleteEntry(M(as)), DeleteEntry(N(as)), StringEntry(O(as), m), StringEntry("last_invoke_id", D)]
267267 else throw("You are not allowed to do that")
268268 }
269269
270270
271271
272272 @Callable(w)
273-func creditUser (ar) = {
273+func creditUser (as) = {
274274 let J = toString(addressFromPublicKey(w.callerPublicKey))
275275 let D = toBase58String(w.transactionId)
276276 if (if ((J == f))
277277 then true
278278 else (J == g))
279- then [ScriptTransfer(Address(fromBase58String(ar)), 150000000000, d)]
279+ then [ScriptTransfer(Address(fromBase58String(as)), 150000000000, d)]
280280 else throw("You are not allowed to do that")
281281 }
282282
283283
284284
285-@Callable(au)
286-func addArtwork (A,y,al,am,av,aw,ax,ay,az,aA,aB,aC) = {
287- let R = toBase58String(au.transactionId)
288- let aD = toBase58String(au.caller.bytes)
289- if ((size(au.payments) == 0))
285+@Callable(av)
286+func addArtwork (A,y,al,am,aw,ax,ay,az,aA,aB,aC,aD) = {
287+ let R = toBase58String(av.transactionId)
288+ let aE = toBase58String(av.caller.bytes)
289+ if ((size(av.payments) == 0))
290290 then throw("No payment attached")
291291 else {
292- let aE = value(au.payments[0])
293- let aF = value(aE.amount)
294- let aG = if (if (isDefined(aE.assetId))
295- then (aE.assetId == d)
292+ let aF = value(av.payments[0])
293+ let aG = value(aF.amount)
294+ let aH = if (if (isDefined(aF.assetId))
295+ then (aF.assetId == d)
296296 else false)
297- then aE.assetId
297+ then aF.assetId
298298 else throw("Only SIGN token accepted at the moment")
299- let aH = {
299+ let aI = {
300300 let t = getInteger(a, ("certification_fee_" + toBase58String(d)))
301301 if ($isInstanceOf(t, "Int"))
302302 then {
303- let aI = t
304- aI
303+ let aJ = t
304+ aJ
305305 }
306306 else throw("Price undefined in oracle")
307307 }
308- if ((aF != aH))
309- then throw(("Payment amount should be " + toString(aH)))
308+ if ((aG != aI))
309+ then throw(("Payment amount should be " + toString(aI)))
310310 else {
311- let aJ = r(ak(A, aD))
312- if ((aJ != ""))
311+ let aK = r(ak(A, aE))
312+ if ((aK != ""))
313313 then throw("You already added this artwork on Sign Art")
314314 else {
315- let aK = r(ah(A))
316- if ((aK != ""))
315+ let aL = r(ah(A))
316+ if ((aL != ""))
317317 then throw("This artwork hash is already registered on Sign Art")
318318 else {
319- let aL = x(y, aD, A)
320- if (!(aL))
319+ let aM = x(y, aE, A)
320+ if (!(aM))
321321 then throw("Sign Certificate not found on Sign-web.app smart contract for this address.")
322- else if ((size(ay) == 0))
322+ else if ((size(az) == 0))
323323 then throw("Display CID cannot be empty")
324324 else if ((size(al) == 0))
325325 then throw("Title cannot be empty")
326326 else if ((size(al) > 100))
327327 then throw("100 Characters maximum for the name")
328328 else if ((size(am) > 1000))
329329 then throw("1000 Characters maximum for the description")
330330 else if ((size(am) == 0))
331331 then throw("Description cannot be empty")
332332 else {
333- let aM = split(av, ",")
334- if ((size(aM) > 5))
333+ let aN = split(aw, ",")
334+ if ((size(aN) > 5))
335335 then throw("Tags should be maximum 5 single word separated by space.")
336336 else {
337- let aN = {
338- let t = getString(this, ("user_status_" + aD))
337+ let aO = {
338+ let t = getString(this, ("user_status_" + aE))
339339 if ($isInstanceOf(t, "String"))
340340 then {
341- let aO = t
342- aO
341+ let aP = t
342+ aP
343343 }
344344 else n
345345 }
346346 let aq = lastBlock.timestamp
347- if (if (isDefined(aN))
348- then (aN == n)
347+ if (if (isDefined(aO))
348+ then (aO == n)
349349 else false)
350350 then throw("Please register this account first with \"User infos\" tab")
351- else if ((aN == l))
351+ else if ((aO == l))
352352 then throw("Your account is suspended")
353- else if ((aN == m))
353+ else if ((aO == m))
354354 then throw("Your account have been removed")
355- else if ((ax > 10))
355+ else if ((ay > 10))
356356 then throw("Maximum 10 editions per artwork")
357357 else if ((size(A) != 64))
358358 then throw("Hash should be sha256 string composed of 64 char.")
359- else [StringEntry(ah(A), aD), StringEntry(ak(A, aD), R), IntegerEntry(Q(aD, R), aq), StringEntry(S(aD, R), al), StringEntry(T(aD, R), am), StringEntry(U(aD, R), ay), StringEntry(W(aD, R), aA), StringEntry(V(aD, R), az), StringEntry(ab(aD, R), aB), StringEntry(ac(aD, R), aC), StringEntry(ae(aD, R), aw), StringEntry(ad(aD, R), av), IntegerEntry(X(aD, R), ax), StringEntry(Y(aD, R), y), IntegerEntry(Z(aD, R), 0), BooleanEntry(aa(aD, R), false), StringEntry(ai(aD, y), R), StringEntry("last_invoke_id", R), StringEntry(af(aD, R), A), ScriptTransfer(Address(fromBase58String(c)), aF, aG)]
359+ else [StringEntry(ah(A), aE), StringEntry(ak(A, aE), R), IntegerEntry(Q(aE, R), aq), StringEntry(S(aE, R), al), StringEntry(T(aE, R), am), StringEntry(U(aE, R), az), StringEntry(W(aE, R), aB), StringEntry(V(aE, R), aA), StringEntry(ab(aE, R), aC), StringEntry(ac(aE, R), aD), StringEntry(ae(aE, R), ax), StringEntry(ad(aE, R), aw), IntegerEntry(X(aE, R), ay), StringEntry(Y(aE, R), y), IntegerEntry(Z(aE, R), 0), BooleanEntry(aa(aE, R), false), StringEntry(ai(aE, y), R), StringEntry("last_invoke_id", R), StringEntry(af(aE, R), A), ScriptTransfer(Address(fromBase58String(c)), aG, aH)]
360360 }
361361 }
362362 }
363363 }
364364 }
365365 }
366366 }
367367
368368
369369
370-@Callable(au)
371-func updateArtwork (ag,al,am,av,aw,ax,ay,az,aA,aB,aC) = {
372- let aP = toBase58String(au.transactionId)
373- let aD = toBase58String(au.caller.bytes)
374- let aJ = r(S(aD, ag))
375- if ((aJ == ""))
370+@Callable(av)
371+func updateArtwork (ag,al,am,aw,ax,ay,az,aA,aB,aC,aD) = {
372+ let aQ = toBase58String(av.transactionId)
373+ let aE = toBase58String(av.caller.bytes)
374+ let aK = r(S(aE, ag))
375+ if ((aK == ""))
376376 then throw("This entry doesn't exist or you are not the owner")
377377 else if ((size(al) == 0))
378378 then throw("Title cannot be empty")
379379 else if ((size(al) > 100))
380380 then throw("100 Characters maximum for the name")
381381 else if ((size(am) > 1000))
382382 then throw("1000 Characters maximum for the description")
383383 else if ((size(am) == 0))
384384 then throw("Description cannot be empty")
385385 else {
386- let aQ = {
387- let t = getInteger(this, Z(aD, ag))
386+ let aR = {
387+ let t = getInteger(this, Z(aE, ag))
388388 if ($isInstanceOf(t, "Int"))
389389 then {
390390 let H = t
391391 if ((H == 0))
392392 then false
393393 else true
394394 }
395395 else false
396396 }
397- let aM = split(av, ",")
398- if ((size(aM) > 5))
397+ let aN = split(aw, ",")
398+ if ((size(aN) > 5))
399399 then throw("Tags should be maximum 5 single word separated by space.")
400400 else {
401- let aN = {
402- let t = getString(this, ("user_status_" + aD))
401+ let aO = {
402+ let t = getString(this, ("user_status_" + aE))
403403 if ($isInstanceOf(t, "String"))
404404 then {
405- let aO = t
406- aO
405+ let aP = t
406+ aP
407407 }
408408 else n
409409 }
410- if (if (isDefined(aN))
411- then (aN == n)
410+ if (if (isDefined(aO))
411+ then (aO == n)
412412 else false)
413413 then throw("Please register this account first with \"User infos\" tab")
414- else if ((aN == l))
414+ else if ((aO == l))
415415 then throw("Your account is suspended")
416- else if ((aN == m))
416+ else if ((aO == m))
417417 then throw("Your account have been removed")
418- else if ((ax > 10))
418+ else if ((ay > 10))
419419 then throw("Maximum 10 editions per artwork")
420- else if (!(aQ))
421- then [StringEntry(S(aD, ag), al), StringEntry(T(aD, ag), am), StringEntry(U(aD, ag), ay), StringEntry(W(aD, ag), aA), StringEntry(V(aD, ag), az), StringEntry(ac(aD, ag), aC), StringEntry(ab(aD, ag), aB), IntegerEntry(X(aD, ag), ax), StringEntry(ad(aD, ag), av), StringEntry(ae(aD, ag), aw), StringEntry("last_invoke_id", aP)]
422- else [StringEntry(S(aD, ag), al), StringEntry(T(aD, ag), am), StringEntry(U(aD, ag), ay), StringEntry(ae(aD, ag), aw), StringEntry(ad(aD, ag), av), StringEntry("last_invoke_id", aP)]
420+ else if (!(aR))
421+ then [StringEntry(S(aE, ag), al), StringEntry(T(aE, ag), am), StringEntry(U(aE, ag), az), StringEntry(W(aE, ag), aB), StringEntry(V(aE, ag), aA), StringEntry(ac(aE, ag), aD), StringEntry(ab(aE, ag), aC), IntegerEntry(X(aE, ag), ay), StringEntry(ad(aE, ag), aw), StringEntry(ae(aE, ag), ax), StringEntry("last_invoke_id", aQ)]
422+ else [StringEntry(S(aE, ag), al), StringEntry(T(aE, ag), am), StringEntry(U(aE, ag), az), StringEntry(ae(aE, ag), ax), StringEntry(ad(aE, ag), aw), StringEntry("last_invoke_id", aQ)]
423423 }
424424 }
425425 }
426426
427427
428428
429429 @Callable(w)
430-func deleteArtwork (R,ar) = {
431- let aD = toString(addressFromPublicKey(w.callerPublicKey))
430+func deleteArtwork (R,as) = {
431+ let aE = toString(addressFromPublicKey(w.callerPublicKey))
432432 let D = toBase58String(w.transactionId)
433- let aR = if (if ((aD == f))
433+ let aS = if (if ((aE == f))
434434 then true
435- else (aD == g))
436- then ar
437- else aD
438- let aJ = {
439- let t = getString(this, S(aR, R))
435+ else (aE == g))
436+ then as
437+ else aE
438+ let aK = {
439+ let t = getString(this, S(aS, R))
440440 if ($isInstanceOf(t, "String"))
441441 then {
442- let aO = t
443- aO
442+ let aP = t
443+ aP
444444 }
445445 else throw("No artwork matching this request or you are not allowed")
446446 }
447- let aQ = {
448- let t = getInteger(this, Z(aR, R))
447+ let aR = {
448+ let t = getInteger(this, Z(aS, R))
449449 if ($isInstanceOf(t, "Int"))
450450 then {
451451 let H = t
452452 if ((H == 0))
453453 then false
454454 else true
455455 }
456456 else false
457457 }
458458 let A = {
459- let t = getString(this, af(aR, R))
459+ let t = getString(this, af(aS, R))
460460 if ($isInstanceOf(t, "String"))
461461 then {
462- let aO = t
463- aO
462+ let aP = t
463+ aP
464464 }
465465 else throw("No artwork hash matching this request")
466466 }
467467 let y = {
468- let t = getString(this, Y(aR, R))
468+ let t = getString(this, Y(aS, R))
469469 if ($isInstanceOf(t, "String"))
470470 then {
471- let aO = t
472- aO
471+ let aP = t
472+ aP
473473 }
474474 else throw("No SIGN ID matching this request")
475475 }
476- let aS = [DeleteEntry(Q(aR, R)), DeleteEntry(S(aR, R)), DeleteEntry(T(aR, R)), DeleteEntry(U(aR, R)), DeleteEntry(W(aR, R)), DeleteEntry(V(aR, R)), DeleteEntry(ab(aR, R)), DeleteEntry(ac(aR, R)), DeleteEntry(ae(aR, R)), DeleteEntry(ad(aR, R)), DeleteEntry(X(aR, R)), DeleteEntry(Y(aR, R)), DeleteEntry(Z(aR, R)), DeleteEntry(aa(aR, R)), StringEntry("last_invoke_id", D), DeleteEntry(ah(A)), DeleteEntry(ai(aR, y)), DeleteEntry(ak(A, aR))]
477- if (if ((aD == f))
476+ let aT = [DeleteEntry(Q(aS, R)), DeleteEntry(S(aS, R)), DeleteEntry(T(aS, R)), DeleteEntry(U(aS, R)), DeleteEntry(W(aS, R)), DeleteEntry(V(aS, R)), DeleteEntry(ab(aS, R)), DeleteEntry(ac(aS, R)), DeleteEntry(ae(aS, R)), DeleteEntry(ad(aS, R)), DeleteEntry(X(aS, R)), DeleteEntry(Y(aS, R)), DeleteEntry(Z(aS, R)), DeleteEntry(aa(aS, R)), StringEntry("last_invoke_id", D), DeleteEntry(ah(A)), DeleteEntry(ai(aS, y)), DeleteEntry(ak(A, aS))]
477+ if (if ((aE == f))
478478 then true
479- else (aD == g))
480- then aS
481- else if (!(aQ))
482- then aS
479+ else (aE == g))
480+ then aT
481+ else if (!(aR))
482+ then aT
483483 else throw("This artwork already have minted NFT, you cannot delete it")
484484 }
485485
486486
487487
488-@Callable(au)
489-func sellArtwork (aT,aI) = {
490- let D = toBase58String(au.transactionId)
491- let aD = toBase58String(au.caller.bytes)
492- let aU = lastBlock.timestamp
493- let aV = r(((aT + "_") + aD))
494- if (!(isDefined(aV)))
488+@Callable(av)
489+func sellArtwork (aU,aJ) = {
490+ let D = toBase58String(av.transactionId)
491+ let aE = toBase58String(av.caller.bytes)
492+ let aV = lastBlock.timestamp
493+ let aW = r(((aU + "_") + aE))
494+ if (!(isDefined(aW)))
495495 then throw("This artwork doesn't exit or you are not the owner")
496496 else {
497- let aN = r(("user_status_" + aD))
498- if ((aN == ""))
497+ let aO = r(("user_status_" + aE))
498+ if ((aO == ""))
499499 then throw("Please register this account first")
500500 else {
501- let aW = v(((("art_issued_" + aV) + "_") + aD))
502- let aX = v(((("art_maxmint_" + aV) + "_") + aD))
503- if ((aW == aX))
501+ let aX = v(((("art_issued_" + aW) + "_") + aE))
502+ let aY = v(((("art_maxmint_" + aW) + "_") + aE))
503+ if ((aX == aY))
504504 then throw("You reached the max edition allowed to sell for this edition.")
505- else if ((aN == l))
505+ else if ((aO == l))
506506 then throw("Your account is suspended")
507- else if (!(isDefined(aV)))
507+ else if (!(isDefined(aW)))
508508 then throw("This artwork desn't exist")
509- else if ((size(aT) != 64))
509+ else if ((size(aU) != 64))
510510 then throw("This hash is incorrect.")
511511 else {
512- let aY = if ((aI > 0))
512+ let aZ = if ((aJ > 0))
513513 then true
514514 else false
515-[BooleanEntry(((("art_onsale_" + aV) + "_") + aD), aY), IntegerEntry(((("art_price_" + aV) + "_") + aD), aI), StringEntry("last_invoke_id", D)]
515+[BooleanEntry(((("art_onsale_" + aW) + "_") + aE), aZ), IntegerEntry(((("art_price_" + aW) + "_") + aE), aJ), StringEntry("last_invoke_id", D)]
516516 }
517517 }
518518 }
519519 }
520520
521521
522522
523-@Callable(au)
524-func buyArtwork (aT,aZ) = {
525- let D = toBase58String(au.transactionId)
526- let aD = toBase58String(au.caller.bytes)
527- let ba = v("total_nft_issued")
528- let aV = r(((aT + "_") + aZ))
529- if ((aV == ""))
523+@Callable(av)
524+func buyArtwork (aU,ba) = {
525+ let D = toBase58String(av.transactionId)
526+ let aE = toBase58String(av.caller.bytes)
527+ let bb = v("total_nft_issued")
528+ let aW = r(((aU + "_") + ba))
529+ if ((aW == ""))
530530 then throw("This artwork doesn't exit or you are not the owner")
531531 else {
532- let aN = r(("user_status_" + aD))
533- if (!(isDefined(aN)))
532+ let aO = r(("user_status_" + aE))
533+ if (!(isDefined(aO)))
534534 then throw("Please register this account first")
535535 else {
536- let bb = r(((("art_sold_" + aV) + "_") + aZ))
537- let aW = v(((("art_issued_" + aV) + "_") + aZ))
538- let bc = v(((("art_price_" + aV) + "_") + aZ))
539- if ((bc == 0))
536+ let bc = r(((("art_sold_" + aW) + "_") + ba))
537+ let aX = v(((("art_issued_" + aW) + "_") + ba))
538+ let bd = v(((("art_price_" + aW) + "_") + ba))
539+ if ((bd == 0))
540540 then throw("This artwork is not for sell")
541541 else {
542- let aX = v(((("art_maxmint_" + aV) + "_") + aZ))
543- let aE = value(au.payments[0])
544- let aF = value(aE.amount)
545- let aG = if (isDefined(aE.assetId))
542+ let aY = v(((("art_maxmint_" + aW) + "_") + ba))
543+ let aF = value(av.payments[0])
544+ let aG = value(aF.amount)
545+ let aH = if (isDefined(aF.assetId))
546546 then throw("Only Waves token accepted at the moment")
547547 else unit
548- if ((aW == aX))
548+ if ((aX == aY))
549549 then throw("Cannot buy this artwork anymore")
550- else if ((bc != aF))
550+ else if ((bd != aG))
551551 then throw("Payment don't match seller price")
552552 else {
553- let bd = (aW + 1)
554- let aU = lastBlock.timestamp
555- let be = (((((((((((((("{\"version\": 1,\"artID\": \"" + aV) + "\",\"maxIssuable\": \"") + toString(aX)) + "\",\"signID\": \"SA_") + toString((ba + 1))) + "\", \"creator\": \"") + aZ) + "\", \"issue\": \"") + toString(bd)) + "/") + toString(aX)) + "\", \"hash\": ") + aT) + "}")
556- let bf = Issue(("SA_" + toString((ba + 1))), be, 1, 0, false)
557- let bg = calculateAssetId(bf)
558- let aY = if ((bd == aX))
553+ let be = (aX + 1)
554+ let aV = lastBlock.timestamp
555+ let bf = (((((((((((((("{\"version\": 1,\"artID\": \"" + aW) + "\",\"maxIssuable\": \"") + toString(aY)) + "\",\"signID\": \"SA_") + toString((bb + 1))) + "\", \"creator\": \"") + ba) + "\", \"issue\": \"") + toString(be)) + "/") + toString(aY)) + "\", \"hash\": ") + aU) + "}")
556+ let bg = Issue(("SA_" + toString((bb + 1))), bf, 1, 0, false)
557+ let bh = calculateAssetId(bg)
558+ let aZ = if ((be == aY))
559559 then false
560560 else true
561-[IntegerEntry(((("art_issued_" + aV) + "_") + aZ), bd), StringEntry(((((((("art_sold_" + toString(bd)) + "_of_") + toString(aX)) + "_") + aV) + "_") + aZ), ((((((aD + "_") + toString(aU)) + "_") + D) + "_") + toString(bc))), IntegerEntry("total_nft_issued", (ba + 1)), StringEntry("last_invoke_id", D), bf, BooleanEntry(((("art_onsale_" + aV) + "_") + aD), aY), ScriptTransfer(Address(fromBase58String(aZ)), aF, aG), ScriptTransfer(au.caller, 1, bg)]
561+[IntegerEntry(((("art_issued_" + aW) + "_") + ba), be), StringEntry(((((((("art_sold_" + toString(be)) + "_of_") + toString(aY)) + "_") + aW) + "_") + ba), ((((((aE + "_") + toString(aV)) + "_") + D) + "_") + toString(bd))), IntegerEntry("total_nft_issued", (bb + 1)), StringEntry("last_invoke_id", D), bg, BooleanEntry(((("art_onsale_" + aW) + "_") + aE), aZ), ScriptTransfer(Address(fromBase58String(ba)), aG, aH), ScriptTransfer(av.caller, 1, bh)]
562562 }
563563 }
564564 }
565565 }
566566 }
567567
568568

github/deemru/w8io/169f3d6 
198.38 ms