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