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:AAIEAAAAAAAAAFgIAhIGCgQICAgIEgMKAQgSBgoECAgICBIECgIICBIDCgEIEgMKAQgSDgoMCAgICAgIAQgICAgIEg0KCwgICAgIAQgICAgIEgQKAggIEgQKAggBEgQKAggIAAAALwAAAAAPc3RvcmFnZVZlcmlmaWVyCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAxzaWduVmVyaWZpZXIJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAAC2ZlZVJlY2VpdmVyAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAALc2lnbkFzc2V0SWQBAAAAIOilarzKd0LycGEyNUpPRYO5uR7lmWcXw3Hq2QuhBK3rAAAAAAZ1c2RuSUQCAAAALDNLRlhCR0dMQ2pBNVoyRHVXNERxOWZERHJIakpKUDFaRWthb2FqU3p1S3NDAAAAAAVhZG1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JAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAZpbnZva2UAAAAGY2FsbGVyAAAAAAAAAAABBQAAAAVpZE5GVAUAAAADbmlsAAAAADXhZVk=", "height": 1199474, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 31jyvC1q5EnKNP9btYettDWtDwNCEC2fb6zDekcxgZ4q Next: 5m16hwuHsPFxe1gqyuCvQqhahKSNoNUZsyaLYjUUCLuq Diff:
Old | New | Differences | |
---|---|---|---|
196 | 196 | ||
197 | 197 | ||
198 | 198 | @Callable(w) | |
199 | - | func deleteEntry () = { | |
199 | + | func deleteEntry (ar) = { | |
200 | 200 | let J = toString(addressFromPublicKey(w.callerPublicKey)) | |
201 | 201 | if ((J == f)) | |
202 | - | then [DeleteEntry( | |
202 | + | then [DeleteEntry(ar)] | |
203 | 203 | else throw("no") | |
204 | 204 | } | |
205 | 205 | ||
233 | 233 | ||
234 | 234 | ||
235 | 235 | @Callable(w) | |
236 | - | func changeUserStatus ( | |
236 | + | func changeUserStatus (as,at) = { | |
237 | 237 | let J = toString(addressFromPublicKey(w.callerPublicKey)) | |
238 | 238 | let D = toBase58String(w.transactionId) | |
239 | - | let | |
239 | + | let au = if ((at == k)) | |
240 | 240 | then k | |
241 | - | else if (( | |
241 | + | else if ((at == j)) | |
242 | 242 | then j | |
243 | - | else if (( | |
243 | + | else if ((at == l)) | |
244 | 244 | then l | |
245 | - | else if (( | |
245 | + | else if ((at == m)) | |
246 | 246 | then m | |
247 | - | else if (( | |
247 | + | else if ((at == i)) | |
248 | 248 | then i | |
249 | 249 | else throw("Unknown status") | |
250 | 250 | if (if ((J == f)) | |
251 | 251 | then true | |
252 | 252 | else (J == g)) | |
253 | - | then [StringEntry(O( | |
253 | + | then [StringEntry(O(as), au), StringEntry("last_invoke_id", D)] | |
254 | 254 | else throw(((("You are not allowed to change user status " + J) + " / ") + f)) | |
255 | 255 | } | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | ||
259 | 259 | @Callable(w) | |
260 | - | func deleteUser ( | |
260 | + | func deleteUser (as) = { | |
261 | 261 | let J = toString(addressFromPublicKey(w.callerPublicKey)) | |
262 | 262 | let D = toBase58String(w.transactionId) | |
263 | 263 | if (if ((J == f)) | |
264 | 264 | then true | |
265 | 265 | else (J == g)) | |
266 | - | then [DeleteEntry(P( | |
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)] | |
267 | 267 | else throw("You are not allowed to do that") | |
268 | 268 | } | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | ||
272 | 272 | @Callable(w) | |
273 | - | func creditUser ( | |
273 | + | func creditUser (as) = { | |
274 | 274 | let J = toString(addressFromPublicKey(w.callerPublicKey)) | |
275 | 275 | let D = toBase58String(w.transactionId) | |
276 | 276 | if (if ((J == f)) | |
277 | 277 | then true | |
278 | 278 | else (J == g)) | |
279 | - | then [ScriptTransfer(Address(fromBase58String( | |
279 | + | then [ScriptTransfer(Address(fromBase58String(as)), 150000000000, d)] | |
280 | 280 | else throw("You are not allowed to do that") | |
281 | 281 | } | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | ||
285 | - | @Callable( | |
286 | - | func addArtwork (A,y,al,am | |
287 | - | let R = toBase58String( | |
288 | - | let | |
289 | - | if ((size( | |
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)) | |
290 | 290 | then throw("No payment attached") | |
291 | 291 | else { | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | then ( | |
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) | |
296 | 296 | else false) | |
297 | - | then | |
297 | + | then aF.assetId | |
298 | 298 | else throw("Only SIGN token accepted at the moment") | |
299 | - | let | |
299 | + | let aI = { | |
300 | 300 | let t = getInteger(a, ("certification_fee_" + toBase58String(d))) | |
301 | 301 | if ($isInstanceOf(t, "Int")) | |
302 | 302 | then { | |
303 | - | let | |
304 | - | | |
303 | + | let aJ = t | |
304 | + | aJ | |
305 | 305 | } | |
306 | 306 | else throw("Price undefined in oracle") | |
307 | 307 | } | |
308 | - | if (( | |
309 | - | then throw(("Payment amount should be " + toString( | |
308 | + | if ((aG != aI)) | |
309 | + | then throw(("Payment amount should be " + toString(aI))) | |
310 | 310 | else { | |
311 | - | let | |
312 | - | if (( | |
311 | + | let aK = r(ak(A, aE)) | |
312 | + | if ((aK != "")) | |
313 | 313 | then throw("You already added this artwork on Sign Art") | |
314 | 314 | else { | |
315 | - | let | |
316 | - | if (( | |
315 | + | let aL = r(ah(A)) | |
316 | + | if ((aL != "")) | |
317 | 317 | then throw("This artwork hash is already registered on Sign Art") | |
318 | 318 | else { | |
319 | - | let | |
320 | - | if (!( | |
319 | + | let aM = x(y, aE, A) | |
320 | + | if (!(aM)) | |
321 | 321 | then throw("Sign Certificate not found on Sign-web.app smart contract for this address.") | |
322 | - | else if ((size( | |
322 | + | else if ((size(az) == 0)) | |
323 | 323 | then throw("Display CID cannot be empty") | |
324 | 324 | else if ((size(al) == 0)) | |
325 | 325 | then throw("Title cannot be empty") | |
330 | 330 | else if ((size(am) == 0)) | |
331 | 331 | then throw("Description cannot be empty") | |
332 | 332 | else { | |
333 | - | let | |
334 | - | if ((size( | |
333 | + | let aN = split(aw, ",") | |
334 | + | if ((size(aN) > 5)) | |
335 | 335 | then throw("Tags should be maximum 5 single word separated by space.") | |
336 | 336 | else { | |
337 | - | let | |
338 | - | let t = getString(this, ("user_status_" + | |
337 | + | let aO = { | |
338 | + | let t = getString(this, ("user_status_" + aE)) | |
339 | 339 | if ($isInstanceOf(t, "String")) | |
340 | 340 | then { | |
341 | - | let | |
342 | - | | |
341 | + | let aP = t | |
342 | + | aP | |
343 | 343 | } | |
344 | 344 | else n | |
345 | 345 | } | |
346 | 346 | let aq = lastBlock.timestamp | |
347 | - | if (if (isDefined( | |
348 | - | then ( | |
347 | + | if (if (isDefined(aO)) | |
348 | + | then (aO == n) | |
349 | 349 | else false) | |
350 | 350 | then throw("Please register this account first with \"User infos\" tab") | |
351 | - | else if (( | |
351 | + | else if ((aO == l)) | |
352 | 352 | then throw("Your account is suspended") | |
353 | - | else if (( | |
353 | + | else if ((aO == m)) | |
354 | 354 | then throw("Your account have been removed") | |
355 | - | else if (( | |
355 | + | else if ((ay > 10)) | |
356 | 356 | then throw("Maximum 10 editions per artwork") | |
357 | 357 | else if ((size(A) != 64)) | |
358 | 358 | then throw("Hash should be sha256 string composed of 64 char.") | |
359 | - | else [StringEntry(ah(A), | |
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)] | |
360 | 360 | } | |
361 | 361 | } | |
362 | 362 | } | |
367 | 367 | ||
368 | 368 | ||
369 | 369 | ||
370 | - | @Callable( | |
371 | - | func updateArtwork (ag,al,am | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | if (( | |
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 == "")) | |
376 | 376 | then throw("This entry doesn't exist or you are not the owner") | |
377 | 377 | else if ((size(al) == 0)) | |
378 | 378 | then throw("Title cannot be empty") | |
383 | 383 | else if ((size(am) == 0)) | |
384 | 384 | then throw("Description cannot be empty") | |
385 | 385 | else { | |
386 | - | let | |
387 | - | let t = getInteger(this, Z( | |
386 | + | let aR = { | |
387 | + | let t = getInteger(this, Z(aE, ag)) | |
388 | 388 | if ($isInstanceOf(t, "Int")) | |
389 | 389 | then { | |
390 | 390 | let H = t | |
394 | 394 | } | |
395 | 395 | else false | |
396 | 396 | } | |
397 | - | let | |
398 | - | if ((size( | |
397 | + | let aN = split(aw, ",") | |
398 | + | if ((size(aN) > 5)) | |
399 | 399 | then throw("Tags should be maximum 5 single word separated by space.") | |
400 | 400 | else { | |
401 | - | let | |
402 | - | let t = getString(this, ("user_status_" + | |
401 | + | let aO = { | |
402 | + | let t = getString(this, ("user_status_" + aE)) | |
403 | 403 | if ($isInstanceOf(t, "String")) | |
404 | 404 | then { | |
405 | - | let | |
406 | - | | |
405 | + | let aP = t | |
406 | + | aP | |
407 | 407 | } | |
408 | 408 | else n | |
409 | 409 | } | |
410 | - | if (if (isDefined( | |
411 | - | then ( | |
410 | + | if (if (isDefined(aO)) | |
411 | + | then (aO == n) | |
412 | 412 | else false) | |
413 | 413 | then throw("Please register this account first with \"User infos\" tab") | |
414 | - | else if (( | |
414 | + | else if ((aO == l)) | |
415 | 415 | then throw("Your account is suspended") | |
416 | - | else if (( | |
416 | + | else if ((aO == m)) | |
417 | 417 | then throw("Your account have been removed") | |
418 | - | else if (( | |
418 | + | else if ((ay > 10)) | |
419 | 419 | then throw("Maximum 10 editions per artwork") | |
420 | - | else if (!( | |
421 | - | then [StringEntry(S( | |
422 | - | else [StringEntry(S( | |
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)] | |
423 | 423 | } | |
424 | 424 | } | |
425 | 425 | } | |
427 | 427 | ||
428 | 428 | ||
429 | 429 | @Callable(w) | |
430 | - | func deleteArtwork (R, | |
431 | - | let | |
430 | + | func deleteArtwork (R,as) = { | |
431 | + | let aE = toString(addressFromPublicKey(w.callerPublicKey)) | |
432 | 432 | let D = toBase58String(w.transactionId) | |
433 | - | let | |
433 | + | let aS = if (if ((aE == f)) | |
434 | 434 | then true | |
435 | - | else ( | |
436 | - | then | |
437 | - | else | |
438 | - | let | |
439 | - | let t = getString(this, S( | |
435 | + | else (aE == g)) | |
436 | + | then as | |
437 | + | else aE | |
438 | + | let aK = { | |
439 | + | let t = getString(this, S(aS, R)) | |
440 | 440 | if ($isInstanceOf(t, "String")) | |
441 | 441 | then { | |
442 | - | let | |
443 | - | | |
442 | + | let aP = t | |
443 | + | aP | |
444 | 444 | } | |
445 | 445 | else throw("No artwork matching this request or you are not allowed") | |
446 | 446 | } | |
447 | - | let | |
448 | - | let t = getInteger(this, Z( | |
447 | + | let aR = { | |
448 | + | let t = getInteger(this, Z(aS, R)) | |
449 | 449 | if ($isInstanceOf(t, "Int")) | |
450 | 450 | then { | |
451 | 451 | let H = t | |
456 | 456 | else false | |
457 | 457 | } | |
458 | 458 | let A = { | |
459 | - | let t = getString(this, af( | |
459 | + | let t = getString(this, af(aS, R)) | |
460 | 460 | if ($isInstanceOf(t, "String")) | |
461 | 461 | then { | |
462 | - | let | |
463 | - | | |
462 | + | let aP = t | |
463 | + | aP | |
464 | 464 | } | |
465 | 465 | else throw("No artwork hash matching this request") | |
466 | 466 | } | |
467 | 467 | let y = { | |
468 | - | let t = getString(this, Y( | |
468 | + | let t = getString(this, Y(aS, R)) | |
469 | 469 | if ($isInstanceOf(t, "String")) | |
470 | 470 | then { | |
471 | - | let | |
472 | - | | |
471 | + | let aP = t | |
472 | + | aP | |
473 | 473 | } | |
474 | 474 | else throw("No SIGN ID matching this request") | |
475 | 475 | } | |
476 | - | let | |
477 | - | if (if (( | |
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)) | |
478 | 478 | then true | |
479 | - | else ( | |
480 | - | then | |
481 | - | else if (!( | |
482 | - | then | |
479 | + | else (aE == g)) | |
480 | + | then aT | |
481 | + | else if (!(aR)) | |
482 | + | then aT | |
483 | 483 | else throw("This artwork already have minted NFT, you cannot delete it") | |
484 | 484 | } | |
485 | 485 | ||
486 | 486 | ||
487 | 487 | ||
488 | - | @Callable( | |
489 | - | func sellArtwork ( | |
490 | - | let D = toBase58String( | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | if (!(isDefined( | |
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))) | |
495 | 495 | then throw("This artwork doesn't exit or you are not the owner") | |
496 | 496 | else { | |
497 | - | let | |
498 | - | if (( | |
497 | + | let aO = r(("user_status_" + aE)) | |
498 | + | if ((aO == "")) | |
499 | 499 | then throw("Please register this account first") | |
500 | 500 | else { | |
501 | - | let | |
502 | - | let | |
503 | - | if (( | |
501 | + | let aX = v(((("art_issued_" + aW) + "_") + aE)) | |
502 | + | let aY = v(((("art_maxmint_" + aW) + "_") + aE)) | |
503 | + | if ((aX == aY)) | |
504 | 504 | then throw("You reached the max edition allowed to sell for this edition.") | |
505 | - | else if (( | |
505 | + | else if ((aO == l)) | |
506 | 506 | then throw("Your account is suspended") | |
507 | - | else if (!(isDefined( | |
507 | + | else if (!(isDefined(aW))) | |
508 | 508 | then throw("This artwork desn't exist") | |
509 | - | else if ((size( | |
509 | + | else if ((size(aU) != 64)) | |
510 | 510 | then throw("This hash is incorrect.") | |
511 | 511 | else { | |
512 | - | let | |
512 | + | let aZ = if ((aJ > 0)) | |
513 | 513 | then true | |
514 | 514 | else false | |
515 | - | [BooleanEntry(((("art_onsale_" + | |
515 | + | [BooleanEntry(((("art_onsale_" + aW) + "_") + aE), aZ), IntegerEntry(((("art_price_" + aW) + "_") + aE), aJ), StringEntry("last_invoke_id", D)] | |
516 | 516 | } | |
517 | 517 | } | |
518 | 518 | } | |
520 | 520 | ||
521 | 521 | ||
522 | 522 | ||
523 | - | @Callable( | |
524 | - | func buyArtwork ( | |
525 | - | let D = toBase58String( | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | if (( | |
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 == "")) | |
530 | 530 | then throw("This artwork doesn't exit or you are not the owner") | |
531 | 531 | else { | |
532 | - | let | |
533 | - | if (!(isDefined( | |
532 | + | let aO = r(("user_status_" + aE)) | |
533 | + | if (!(isDefined(aO))) | |
534 | 534 | then throw("Please register this account first") | |
535 | 535 | else { | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | if (( | |
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)) | |
540 | 540 | then throw("This artwork is not for sell") | |
541 | 541 | else { | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
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)) | |
546 | 546 | then throw("Only Waves token accepted at the moment") | |
547 | 547 | else unit | |
548 | - | if (( | |
548 | + | if ((aX == aY)) | |
549 | 549 | then throw("Cannot buy this artwork anymore") | |
550 | - | else if (( | |
550 | + | else if ((bd != aG)) | |
551 | 551 | then throw("Payment don't match seller price") | |
552 | 552 | else { | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
557 | - | let | |
558 | - | let | |
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)) | |
559 | 559 | then false | |
560 | 560 | else true | |
561 | - | [IntegerEntry(((("art_issued_" + | |
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)] | |
562 | 562 | } | |
563 | 563 | } | |
564 | 564 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | 5 | ||
6 | 6 | let b = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
7 | 7 | ||
8 | 8 | let c = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
9 | 9 | ||
10 | 10 | let d = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
11 | 11 | ||
12 | 12 | let e = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC" | |
13 | 13 | ||
14 | 14 | let f = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
15 | 15 | ||
16 | 16 | let g = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
17 | 17 | ||
18 | 18 | let h = true | |
19 | 19 | ||
20 | 20 | let i = "ALLOWED" | |
21 | 21 | ||
22 | 22 | let j = "REGISTERED" | |
23 | 23 | ||
24 | 24 | let k = "VERIFIED" | |
25 | 25 | ||
26 | 26 | let l = "SUSPENDED" | |
27 | 27 | ||
28 | 28 | let m = "REMOVED" | |
29 | 29 | ||
30 | 30 | let n = "UNREGISTERED" | |
31 | 31 | ||
32 | 32 | let o = "ON_SALE" | |
33 | 33 | ||
34 | 34 | let p = "SOLD" | |
35 | 35 | ||
36 | 36 | let q = "CANCELED" | |
37 | 37 | ||
38 | 38 | func r (s) = { | |
39 | 39 | let t = getString(this, s) | |
40 | 40 | if ($isInstanceOf(t, "String")) | |
41 | 41 | then { | |
42 | 42 | let u = t | |
43 | 43 | u | |
44 | 44 | } | |
45 | 45 | else "" | |
46 | 46 | } | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func v (s) = { | |
50 | 50 | let t = getInteger(this, s) | |
51 | 51 | if ($isInstanceOf(t, "Int")) | |
52 | 52 | then { | |
53 | 53 | let w = t | |
54 | 54 | w | |
55 | 55 | } | |
56 | 56 | else 0 | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func x (y,z,A) = { | |
61 | 61 | let t = getString(b, ((("data_fc_" + y) + "_") + z)) | |
62 | 62 | if ($isInstanceOf(t, "String")) | |
63 | 63 | then { | |
64 | 64 | let u = t | |
65 | 65 | if (contains(u, A)) | |
66 | 66 | then true | |
67 | 67 | else false | |
68 | 68 | } | |
69 | 69 | else false | |
70 | 70 | } | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func B (C,D) = { | |
74 | 74 | let E = value(assetInfo(fromBase58String(D))) | |
75 | 75 | if (if (if ((E.quantity != 1)) | |
76 | 76 | then true | |
77 | 77 | else (E.decimals != 0)) | |
78 | 78 | then true | |
79 | 79 | else (E.reissuable != false)) | |
80 | 80 | then (C + 0) | |
81 | 81 | else (C + 1) | |
82 | 82 | } | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func F (G) = { | |
86 | 86 | let t = getString(this, ("user_status_" + G)) | |
87 | 87 | if ($isInstanceOf(t, "String")) | |
88 | 88 | then { | |
89 | 89 | let H = t | |
90 | 90 | H | |
91 | 91 | } | |
92 | 92 | else throw("Something went wrong.") | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func I (J) = ("user_" + J) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func K (J) = ("user_name_" + J) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func L (J) = ("user_desc_" + J) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func M (J) = ("user_social_" + J) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func N (J) = ("user_thumb_" + J) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func O (J) = ("user_status_" + J) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func P (J) = ("user_date_" + J) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func Q (J,R) = ((("art_date_" + R) + "_") + J) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func S (J,R) = ((("art_name_" + R) + "_") + J) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func T (J,R) = ((("art_desc_" + R) + "_") + J) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func U (J,R) = ((("art_display_cid_" + R) + "_") + J) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func V (J,R) = ((("art_export_hash_" + R) + "_") + J) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func W (J,R) = ((("art_export_cid_" + R) + "_") + J) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func X (J,R) = ((("art_maxmint_" + R) + "_") + J) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func Y (J,R) = ((("art_signid_" + R) + "_") + J) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func Z (J,R) = ((("art_issued_" + R) + "_") + J) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func aa (J,R) = ((("art_onsale_" + R) + "_") + J) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func ab (J,R) = ((("art_licence_hash_" + R) + "_") + J) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func ac (J,R) = ((("art_licence_cid_" + R) + "_") + J) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func ad (J,R) = ((("art_tags_" + R) + "_") + J) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func ae (J,R) = ((("art_type_" + R) + "_") + J) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func af (J,ag) = ((("get_hashbytxidaddr_" + ag) + "_") + J) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func ah (A) = ("get_owner_by_hash_" + A) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func ai (J,aj) = ((("get_artidbysignid_" + aj) + "_") + J) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func ak (A,J) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((A + J))))) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | @Callable(w) | |
172 | 172 | func registerUser (al,am,an,ao) = { | |
173 | 173 | let J = toString(addressFromPublicKey(w.callerPublicKey)) | |
174 | 174 | let ap = r(O(J)) | |
175 | 175 | let D = toBase58String(w.transactionId) | |
176 | 176 | let aq = lastBlock.timestamp | |
177 | 177 | if (if ((ap == l)) | |
178 | 178 | then true | |
179 | 179 | else (ap == m)) | |
180 | 180 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
181 | 181 | else if ((ap == j)) | |
182 | 182 | then throw("You are already registered, please use update method instead.") | |
183 | 183 | else if (if ((ap == "")) | |
184 | 184 | then h | |
185 | 185 | else false) | |
186 | 186 | then throw("You are now allowed to register yet, please contact us first to get approved.") | |
187 | 187 | else if (if ((al == "")) | |
188 | 188 | then true | |
189 | 189 | else (am == "")) | |
190 | 190 | then throw("Name and description cannot be empty") | |
191 | 191 | else if ((size(am) > 600)) | |
192 | 192 | then throw("600 Characters maximum for the description") | |
193 | 193 | 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)] | |
194 | 194 | } | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | ||
198 | 198 | @Callable(w) | |
199 | - | func deleteEntry () = { | |
199 | + | func deleteEntry (ar) = { | |
200 | 200 | let J = toString(addressFromPublicKey(w.callerPublicKey)) | |
201 | 201 | if ((J == f)) | |
202 | - | then [DeleteEntry( | |
202 | + | then [DeleteEntry(ar)] | |
203 | 203 | else throw("no") | |
204 | 204 | } | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | ||
208 | 208 | @Callable(w) | |
209 | 209 | func updateUser (al,am,an,ao) = { | |
210 | 210 | let J = toString(addressFromPublicKey(w.callerPublicKey)) | |
211 | 211 | let ap = r(O(J)) | |
212 | 212 | if (if ((ap == l)) | |
213 | 213 | then true | |
214 | 214 | else (ap == m)) | |
215 | 215 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
216 | 216 | else if (if ((ap == "")) | |
217 | 217 | then true | |
218 | 218 | else (ap == i)) | |
219 | 219 | then throw("Please register first with registerUser") | |
220 | 220 | else { | |
221 | 221 | let D = toBase58String(w.transactionId) | |
222 | 222 | let aq = lastBlock.timestamp | |
223 | 223 | if (if ((al == "")) | |
224 | 224 | then true | |
225 | 225 | else (am == "")) | |
226 | 226 | then throw("Name and description cannot be empty") | |
227 | 227 | else if ((size(am) > 600)) | |
228 | 228 | then throw("600 Characters maximum for the description") | |
229 | 229 | else [StringEntry(K(J), al), StringEntry(L(J), am), StringEntry(M(J), ao), StringEntry(N(J), an), StringEntry("last_invoke_id", D)] | |
230 | 230 | } | |
231 | 231 | } | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | ||
235 | 235 | @Callable(w) | |
236 | - | func changeUserStatus ( | |
236 | + | func changeUserStatus (as,at) = { | |
237 | 237 | let J = toString(addressFromPublicKey(w.callerPublicKey)) | |
238 | 238 | let D = toBase58String(w.transactionId) | |
239 | - | let | |
239 | + | let au = if ((at == k)) | |
240 | 240 | then k | |
241 | - | else if (( | |
241 | + | else if ((at == j)) | |
242 | 242 | then j | |
243 | - | else if (( | |
243 | + | else if ((at == l)) | |
244 | 244 | then l | |
245 | - | else if (( | |
245 | + | else if ((at == m)) | |
246 | 246 | then m | |
247 | - | else if (( | |
247 | + | else if ((at == i)) | |
248 | 248 | then i | |
249 | 249 | else throw("Unknown status") | |
250 | 250 | if (if ((J == f)) | |
251 | 251 | then true | |
252 | 252 | else (J == g)) | |
253 | - | then [StringEntry(O( | |
253 | + | then [StringEntry(O(as), au), StringEntry("last_invoke_id", D)] | |
254 | 254 | else throw(((("You are not allowed to change user status " + J) + " / ") + f)) | |
255 | 255 | } | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | ||
259 | 259 | @Callable(w) | |
260 | - | func deleteUser ( | |
260 | + | func deleteUser (as) = { | |
261 | 261 | let J = toString(addressFromPublicKey(w.callerPublicKey)) | |
262 | 262 | let D = toBase58String(w.transactionId) | |
263 | 263 | if (if ((J == f)) | |
264 | 264 | then true | |
265 | 265 | else (J == g)) | |
266 | - | then [DeleteEntry(P( | |
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)] | |
267 | 267 | else throw("You are not allowed to do that") | |
268 | 268 | } | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | ||
272 | 272 | @Callable(w) | |
273 | - | func creditUser ( | |
273 | + | func creditUser (as) = { | |
274 | 274 | let J = toString(addressFromPublicKey(w.callerPublicKey)) | |
275 | 275 | let D = toBase58String(w.transactionId) | |
276 | 276 | if (if ((J == f)) | |
277 | 277 | then true | |
278 | 278 | else (J == g)) | |
279 | - | then [ScriptTransfer(Address(fromBase58String( | |
279 | + | then [ScriptTransfer(Address(fromBase58String(as)), 150000000000, d)] | |
280 | 280 | else throw("You are not allowed to do that") | |
281 | 281 | } | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | ||
285 | - | @Callable( | |
286 | - | func addArtwork (A,y,al,am | |
287 | - | let R = toBase58String( | |
288 | - | let | |
289 | - | if ((size( | |
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)) | |
290 | 290 | then throw("No payment attached") | |
291 | 291 | else { | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | then ( | |
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) | |
296 | 296 | else false) | |
297 | - | then | |
297 | + | then aF.assetId | |
298 | 298 | else throw("Only SIGN token accepted at the moment") | |
299 | - | let | |
299 | + | let aI = { | |
300 | 300 | let t = getInteger(a, ("certification_fee_" + toBase58String(d))) | |
301 | 301 | if ($isInstanceOf(t, "Int")) | |
302 | 302 | then { | |
303 | - | let | |
304 | - | | |
303 | + | let aJ = t | |
304 | + | aJ | |
305 | 305 | } | |
306 | 306 | else throw("Price undefined in oracle") | |
307 | 307 | } | |
308 | - | if (( | |
309 | - | then throw(("Payment amount should be " + toString( | |
308 | + | if ((aG != aI)) | |
309 | + | then throw(("Payment amount should be " + toString(aI))) | |
310 | 310 | else { | |
311 | - | let | |
312 | - | if (( | |
311 | + | let aK = r(ak(A, aE)) | |
312 | + | if ((aK != "")) | |
313 | 313 | then throw("You already added this artwork on Sign Art") | |
314 | 314 | else { | |
315 | - | let | |
316 | - | if (( | |
315 | + | let aL = r(ah(A)) | |
316 | + | if ((aL != "")) | |
317 | 317 | then throw("This artwork hash is already registered on Sign Art") | |
318 | 318 | else { | |
319 | - | let | |
320 | - | if (!( | |
319 | + | let aM = x(y, aE, A) | |
320 | + | if (!(aM)) | |
321 | 321 | then throw("Sign Certificate not found on Sign-web.app smart contract for this address.") | |
322 | - | else if ((size( | |
322 | + | else if ((size(az) == 0)) | |
323 | 323 | then throw("Display CID cannot be empty") | |
324 | 324 | else if ((size(al) == 0)) | |
325 | 325 | then throw("Title cannot be empty") | |
326 | 326 | else if ((size(al) > 100)) | |
327 | 327 | then throw("100 Characters maximum for the name") | |
328 | 328 | else if ((size(am) > 1000)) | |
329 | 329 | then throw("1000 Characters maximum for the description") | |
330 | 330 | else if ((size(am) == 0)) | |
331 | 331 | then throw("Description cannot be empty") | |
332 | 332 | else { | |
333 | - | let | |
334 | - | if ((size( | |
333 | + | let aN = split(aw, ",") | |
334 | + | if ((size(aN) > 5)) | |
335 | 335 | then throw("Tags should be maximum 5 single word separated by space.") | |
336 | 336 | else { | |
337 | - | let | |
338 | - | let t = getString(this, ("user_status_" + | |
337 | + | let aO = { | |
338 | + | let t = getString(this, ("user_status_" + aE)) | |
339 | 339 | if ($isInstanceOf(t, "String")) | |
340 | 340 | then { | |
341 | - | let | |
342 | - | | |
341 | + | let aP = t | |
342 | + | aP | |
343 | 343 | } | |
344 | 344 | else n | |
345 | 345 | } | |
346 | 346 | let aq = lastBlock.timestamp | |
347 | - | if (if (isDefined( | |
348 | - | then ( | |
347 | + | if (if (isDefined(aO)) | |
348 | + | then (aO == n) | |
349 | 349 | else false) | |
350 | 350 | then throw("Please register this account first with \"User infos\" tab") | |
351 | - | else if (( | |
351 | + | else if ((aO == l)) | |
352 | 352 | then throw("Your account is suspended") | |
353 | - | else if (( | |
353 | + | else if ((aO == m)) | |
354 | 354 | then throw("Your account have been removed") | |
355 | - | else if (( | |
355 | + | else if ((ay > 10)) | |
356 | 356 | then throw("Maximum 10 editions per artwork") | |
357 | 357 | else if ((size(A) != 64)) | |
358 | 358 | then throw("Hash should be sha256 string composed of 64 char.") | |
359 | - | else [StringEntry(ah(A), | |
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)] | |
360 | 360 | } | |
361 | 361 | } | |
362 | 362 | } | |
363 | 363 | } | |
364 | 364 | } | |
365 | 365 | } | |
366 | 366 | } | |
367 | 367 | ||
368 | 368 | ||
369 | 369 | ||
370 | - | @Callable( | |
371 | - | func updateArtwork (ag,al,am | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | if (( | |
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 == "")) | |
376 | 376 | then throw("This entry doesn't exist or you are not the owner") | |
377 | 377 | else if ((size(al) == 0)) | |
378 | 378 | then throw("Title cannot be empty") | |
379 | 379 | else if ((size(al) > 100)) | |
380 | 380 | then throw("100 Characters maximum for the name") | |
381 | 381 | else if ((size(am) > 1000)) | |
382 | 382 | then throw("1000 Characters maximum for the description") | |
383 | 383 | else if ((size(am) == 0)) | |
384 | 384 | then throw("Description cannot be empty") | |
385 | 385 | else { | |
386 | - | let | |
387 | - | let t = getInteger(this, Z( | |
386 | + | let aR = { | |
387 | + | let t = getInteger(this, Z(aE, ag)) | |
388 | 388 | if ($isInstanceOf(t, "Int")) | |
389 | 389 | then { | |
390 | 390 | let H = t | |
391 | 391 | if ((H == 0)) | |
392 | 392 | then false | |
393 | 393 | else true | |
394 | 394 | } | |
395 | 395 | else false | |
396 | 396 | } | |
397 | - | let | |
398 | - | if ((size( | |
397 | + | let aN = split(aw, ",") | |
398 | + | if ((size(aN) > 5)) | |
399 | 399 | then throw("Tags should be maximum 5 single word separated by space.") | |
400 | 400 | else { | |
401 | - | let | |
402 | - | let t = getString(this, ("user_status_" + | |
401 | + | let aO = { | |
402 | + | let t = getString(this, ("user_status_" + aE)) | |
403 | 403 | if ($isInstanceOf(t, "String")) | |
404 | 404 | then { | |
405 | - | let | |
406 | - | | |
405 | + | let aP = t | |
406 | + | aP | |
407 | 407 | } | |
408 | 408 | else n | |
409 | 409 | } | |
410 | - | if (if (isDefined( | |
411 | - | then ( | |
410 | + | if (if (isDefined(aO)) | |
411 | + | then (aO == n) | |
412 | 412 | else false) | |
413 | 413 | then throw("Please register this account first with \"User infos\" tab") | |
414 | - | else if (( | |
414 | + | else if ((aO == l)) | |
415 | 415 | then throw("Your account is suspended") | |
416 | - | else if (( | |
416 | + | else if ((aO == m)) | |
417 | 417 | then throw("Your account have been removed") | |
418 | - | else if (( | |
418 | + | else if ((ay > 10)) | |
419 | 419 | then throw("Maximum 10 editions per artwork") | |
420 | - | else if (!( | |
421 | - | then [StringEntry(S( | |
422 | - | else [StringEntry(S( | |
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)] | |
423 | 423 | } | |
424 | 424 | } | |
425 | 425 | } | |
426 | 426 | ||
427 | 427 | ||
428 | 428 | ||
429 | 429 | @Callable(w) | |
430 | - | func deleteArtwork (R, | |
431 | - | let | |
430 | + | func deleteArtwork (R,as) = { | |
431 | + | let aE = toString(addressFromPublicKey(w.callerPublicKey)) | |
432 | 432 | let D = toBase58String(w.transactionId) | |
433 | - | let | |
433 | + | let aS = if (if ((aE == f)) | |
434 | 434 | then true | |
435 | - | else ( | |
436 | - | then | |
437 | - | else | |
438 | - | let | |
439 | - | let t = getString(this, S( | |
435 | + | else (aE == g)) | |
436 | + | then as | |
437 | + | else aE | |
438 | + | let aK = { | |
439 | + | let t = getString(this, S(aS, R)) | |
440 | 440 | if ($isInstanceOf(t, "String")) | |
441 | 441 | then { | |
442 | - | let | |
443 | - | | |
442 | + | let aP = t | |
443 | + | aP | |
444 | 444 | } | |
445 | 445 | else throw("No artwork matching this request or you are not allowed") | |
446 | 446 | } | |
447 | - | let | |
448 | - | let t = getInteger(this, Z( | |
447 | + | let aR = { | |
448 | + | let t = getInteger(this, Z(aS, R)) | |
449 | 449 | if ($isInstanceOf(t, "Int")) | |
450 | 450 | then { | |
451 | 451 | let H = t | |
452 | 452 | if ((H == 0)) | |
453 | 453 | then false | |
454 | 454 | else true | |
455 | 455 | } | |
456 | 456 | else false | |
457 | 457 | } | |
458 | 458 | let A = { | |
459 | - | let t = getString(this, af( | |
459 | + | let t = getString(this, af(aS, R)) | |
460 | 460 | if ($isInstanceOf(t, "String")) | |
461 | 461 | then { | |
462 | - | let | |
463 | - | | |
462 | + | let aP = t | |
463 | + | aP | |
464 | 464 | } | |
465 | 465 | else throw("No artwork hash matching this request") | |
466 | 466 | } | |
467 | 467 | let y = { | |
468 | - | let t = getString(this, Y( | |
468 | + | let t = getString(this, Y(aS, R)) | |
469 | 469 | if ($isInstanceOf(t, "String")) | |
470 | 470 | then { | |
471 | - | let | |
472 | - | | |
471 | + | let aP = t | |
472 | + | aP | |
473 | 473 | } | |
474 | 474 | else throw("No SIGN ID matching this request") | |
475 | 475 | } | |
476 | - | let | |
477 | - | if (if (( | |
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)) | |
478 | 478 | then true | |
479 | - | else ( | |
480 | - | then | |
481 | - | else if (!( | |
482 | - | then | |
479 | + | else (aE == g)) | |
480 | + | then aT | |
481 | + | else if (!(aR)) | |
482 | + | then aT | |
483 | 483 | else throw("This artwork already have minted NFT, you cannot delete it") | |
484 | 484 | } | |
485 | 485 | ||
486 | 486 | ||
487 | 487 | ||
488 | - | @Callable( | |
489 | - | func sellArtwork ( | |
490 | - | let D = toBase58String( | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | if (!(isDefined( | |
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))) | |
495 | 495 | then throw("This artwork doesn't exit or you are not the owner") | |
496 | 496 | else { | |
497 | - | let | |
498 | - | if (( | |
497 | + | let aO = r(("user_status_" + aE)) | |
498 | + | if ((aO == "")) | |
499 | 499 | then throw("Please register this account first") | |
500 | 500 | else { | |
501 | - | let | |
502 | - | let | |
503 | - | if (( | |
501 | + | let aX = v(((("art_issued_" + aW) + "_") + aE)) | |
502 | + | let aY = v(((("art_maxmint_" + aW) + "_") + aE)) | |
503 | + | if ((aX == aY)) | |
504 | 504 | then throw("You reached the max edition allowed to sell for this edition.") | |
505 | - | else if (( | |
505 | + | else if ((aO == l)) | |
506 | 506 | then throw("Your account is suspended") | |
507 | - | else if (!(isDefined( | |
507 | + | else if (!(isDefined(aW))) | |
508 | 508 | then throw("This artwork desn't exist") | |
509 | - | else if ((size( | |
509 | + | else if ((size(aU) != 64)) | |
510 | 510 | then throw("This hash is incorrect.") | |
511 | 511 | else { | |
512 | - | let | |
512 | + | let aZ = if ((aJ > 0)) | |
513 | 513 | then true | |
514 | 514 | else false | |
515 | - | [BooleanEntry(((("art_onsale_" + | |
515 | + | [BooleanEntry(((("art_onsale_" + aW) + "_") + aE), aZ), IntegerEntry(((("art_price_" + aW) + "_") + aE), aJ), StringEntry("last_invoke_id", D)] | |
516 | 516 | } | |
517 | 517 | } | |
518 | 518 | } | |
519 | 519 | } | |
520 | 520 | ||
521 | 521 | ||
522 | 522 | ||
523 | - | @Callable( | |
524 | - | func buyArtwork ( | |
525 | - | let D = toBase58String( | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | if (( | |
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 == "")) | |
530 | 530 | then throw("This artwork doesn't exit or you are not the owner") | |
531 | 531 | else { | |
532 | - | let | |
533 | - | if (!(isDefined( | |
532 | + | let aO = r(("user_status_" + aE)) | |
533 | + | if (!(isDefined(aO))) | |
534 | 534 | then throw("Please register this account first") | |
535 | 535 | else { | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | if (( | |
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)) | |
540 | 540 | then throw("This artwork is not for sell") | |
541 | 541 | else { | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
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)) | |
546 | 546 | then throw("Only Waves token accepted at the moment") | |
547 | 547 | else unit | |
548 | - | if (( | |
548 | + | if ((aX == aY)) | |
549 | 549 | then throw("Cannot buy this artwork anymore") | |
550 | - | else if (( | |
550 | + | else if ((bd != aG)) | |
551 | 551 | then throw("Payment don't match seller price") | |
552 | 552 | else { | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
557 | - | let | |
558 | - | let | |
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)) | |
559 | 559 | then false | |
560 | 560 | else true | |
561 | - | [IntegerEntry(((("art_issued_" + | |
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)] | |
562 | 562 | } | |
563 | 563 | } | |
564 | 564 | } | |
565 | 565 | } | |
566 | 566 | } | |
567 | 567 | ||
568 | 568 |
github/deemru/w8io/169f3d6 198.38 ms ◑