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