tx · CmsnHAQ3nK9sECHusTnnVcg34oviHzneKgnVDgW2hPtz 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY: -0.02500000 Waves 2023.09.13 12:14 [2753429] smart account 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY > SELF 0.00000000 Waves
{ "type": 13, "id": "CmsnHAQ3nK9sECHusTnnVcg34oviHzneKgnVDgW2hPtz", "fee": 2500000, "feeAssetId": null, "timestamp": 1694596465941, "version": 2, "chainId": 84, "sender": "3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY", "senderPublicKey": "J9DCtJJxJBWZdtDR12BA1U94Q3cZzMi4R6k5hYkAzmzC", "proofs": [ "2csLVH93R2qeukFD1Q4tGggyyYFwYcAf31zBqz5kGk49P9wiQqV7E5Hr9e4uWct7mS1RasMSzndSb1qFKbJ1C5tN" ], "script": "base64:BgJeCAISBAoCCAgSDgoMCAgICAgICAgICAEIEg8KDQgICAgICAgICAgIAQgSBgoECAgICBIECgIICBIICgYIAQEIAQgSBAoCCAgSBAoCCAgSBwoFCAgICAgSBgoECAgICFkAB1ZFUlNJT04CBTIuMC4wAQ5nZXRTdHJpbmdCeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCdCAIFBHRoaXMFA2tleQIAAAh1bml0VGVzdAcACW9yYWNsZUZlZQkBBXZhbHVlAQkApggBCQEOZ2V0U3RyaW5nQnlLZXkBAg9jb25mX29yYWNsZV9mZWUACHNpZ25EYXBwCQEFdmFsdWUBCQCmCAEJAQ5nZXRTdHJpbmdCeUtleQECEWNvbmZfc2lnbndlYl9kYXBwAAtmZWVSZWNlaXZlcgkBDmdldFN0cmluZ0J5S2V5AQIRY29uZl9mZWVfcmVjZWl2ZXIACHVzZXJEYXBwAwUIdW5pdFRlc3QJAQV2YWx1ZQEJAKYIAQIjM010NFJHTUV5alNXWUFvY1RQcWQ1NXdkSFFRQjNQVTJVQ20JAQV2YWx1ZQEJAKYIAQkBDmdldFN0cmluZ0J5S2V5AQIPY29uZl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BnByb29mcwAACQDZBAEJAQhhc1N0cmluZwEJAJEDAggFA2ludgRhcmdzAAsDAwMDCQAAAggFA2ludghmdW5jdGlvbgINdXBkYXRlQXJ0d29yawkAAAIIBQNpbnYEZEFwcAUEdGhpcwcJAAACCAUDaW52A2ZlZQCgwh4HCQAAAggFA2ludgpmZWVBc3NldElkBQR1bml0BwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAkA2QQBCQEIYXNTdHJpbmcBCQCRAwIIBQNpbnYEYXJncwAMAwMDAwkAAAIIBQNpbnYIZnVuY3Rpb24CC3NlbGxBcnR3b3JrCQAAAggFA2ludgRkQXBwBQR0aGlzBwkAAAIIBQNpbnYDZmVlAKDCHgcJAAACCAUDaW52CmZlZUFzc2V0SWQFBHVuaXQHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACQDZBAEJAQhhc1N0cmluZwEJAJEDAggFA2ludgRhcmdzAAUDAwMDCQAAAggFA2ludghmdW5jdGlvbgIJYWNjZXB0QmlkCQAAAggFA2ludgRkQXBwBQR0aGlzBwkAAAIIBQNpbnYDZmVlAKDCHgcJAAACCAUDaW52CmZlZUFzc2V0SWQFBHVuaXQHCQDIEwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACQDZBAEJAQhhc1N0cmluZwEJAJEDAggFA2ludgRhcmdzAAQJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXmFcW54", "height": 2753429, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CDxpDMUEM8Sha7yAfHJjRsMKNbiSv4bnjU9FpGdo4yQb Next: GsV3nboydm8e3U2tc3Vvc5pxuiWnv1PTNBkMzuwijk5r Diff:
Old | New | Differences | |
---|---|---|---|
20 | 20 | ||
21 | 21 | let whitelistDapp = value(addressFromString(getStringByKey("conf_whitelist_dapp"))) | |
22 | 22 | ||
23 | - | let | |
23 | + | let usdtPPAssetId_str = getStringByKey("conf_accepted_asset_USDT_PP") | |
24 | 24 | ||
25 | - | let | |
25 | + | let artAssetId_str = getStringByKey("conf_accepted_asset_ART") | |
26 | 26 | ||
27 | - | let | |
27 | + | let usdcPPAssetId_str = getStringByKey("conf_accepted_asset_USDC_PP") | |
28 | 28 | ||
29 | - | let usdtPPAssetId = fromBase58String(getStringByKey("conf_accepted_asset_USDT_PP")) | |
29 | + | let eastAssetId_str = getStringByKey("conf_accepted_asset_EAST") | |
30 | + | ||
31 | + | let puzzleAssetId_str = getStringByKey("conf_accepted_asset_PUZZLE") | |
32 | + | ||
33 | + | let ethPPAssetId_str = getStringByKey("conf_accepted_asset_ETH_PP") | |
34 | + | ||
35 | + | let wavesAssetId_str = "WAVES" | |
36 | + | ||
37 | + | let usdtPPAssetId = fromBase58String(usdtPPAssetId_str) | |
38 | + | ||
39 | + | let artAssetId = fromBase58String(artAssetId_str) | |
40 | + | ||
41 | + | let usdcPPAssetId = fromBase58String(usdcPPAssetId_str) | |
42 | + | ||
43 | + | let eastAssetId = fromBase58String(eastAssetId_str) | |
44 | + | ||
45 | + | let puzzleAssetId = fromBase58String(puzzleAssetId_str) | |
46 | + | ||
47 | + | let ethPPAssetId = fromBase58String(ethPPAssetId_str) | |
30 | 48 | ||
31 | 49 | let wavesAssetId = base58'' | |
50 | + | ||
51 | + | let all_accepted_assets = [usdtPPAssetId_str, artAssetId_str, usdcPPAssetId_str, eastAssetId_str, puzzleAssetId_str, wavesAssetId_str, ethPPAssetId_str] | |
32 | 52 | ||
33 | 53 | let chris = getStringByKey("conf_admin_1") | |
34 | 54 | ||
62 | 82 | ||
63 | 83 | let userAllowed = "ALLOWED" | |
64 | 84 | ||
65 | - | let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String( | |
85 | + | let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(artAssetId))) | |
66 | 86 | ||
67 | 87 | func getArtworkRoyalties (key) = valueOrElse(getInteger(this, key), 1000) | |
68 | - | ||
69 | - | ||
70 | - | func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signDapp, ((("data_fc_" + signID) + "_") + Owner)) { | |
71 | - | case a: String => | |
72 | - | if (contains(a, sha256Hash)) | |
73 | - | then true | |
74 | - | else false | |
75 | - | case _ => | |
76 | - | false | |
77 | - | } | |
78 | 88 | ||
79 | 89 | ||
80 | 90 | func validateCID (cid) = if (contains(cid, "/")) | |
176 | 186 | func keyidBySignid (caller,signId) = ((("get_artidbysignid_" + signId) + "_") + caller) | |
177 | 187 | ||
178 | 188 | ||
179 | - | func keyTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller))))) | |
180 | - | ||
181 | - | ||
182 | 189 | func validateAllCID (cidDisplay,cidExport,cidLicence) = if (!(validateCID(cidDisplay))) | |
183 | 190 | then throw("Wrong Display CID") | |
184 | 191 | else if (!(validateCID(cidExport))) | |
263 | 270 | ||
264 | 271 | ||
265 | 272 | func validatePayment (i) = { | |
266 | - | let $ | |
267 | - | let payment = $ | |
268 | - | let amount = $ | |
273 | + | let $t01001410050 = isPayment(i) | |
274 | + | let payment = $t01001410050._1 | |
275 | + | let amount = $t01001410050._2 | |
269 | 276 | let assetId = if (if (isDefined(payment.assetId)) | |
270 | - | then (payment.assetId == | |
277 | + | then (payment.assetId == artAssetId) | |
271 | 278 | else false) | |
272 | 279 | then payment.assetId | |
273 | 280 | else throw("Only SIGN token accepted as transaction fee") | |
288 | 295 | ||
289 | 296 | ||
290 | 297 | func validatePriceAssetId (i,priceAssetId,artworkPrice) = { | |
291 | - | let $ | |
292 | - | let payment = $ | |
293 | - | let amount = $ | |
298 | + | let $t01063710673 = isPayment(i) | |
299 | + | let payment = $t01063710673._1 | |
300 | + | let amount = $t01063710673._2 | |
294 | 301 | let assetId = if (!(isDefined(payment.assetId))) | |
295 | 302 | then unit | |
296 | 303 | else if (if ((size(priceAssetId) > 0)) | |
308 | 315 | } | |
309 | 316 | ||
310 | 317 | ||
311 | - | func acceptedAssetIds (assetId) = if (if (if (if (if (if ((assetId != toBase58String(signAssetId))) | |
312 | - | then (assetId != toBase58String(wavesAssetId)) | |
313 | - | else false) | |
314 | - | then (assetId != "WAVES") | |
315 | - | else false) | |
316 | - | then (assetId != toBase58String(usdnAssetId)) | |
317 | - | else false) | |
318 | - | then (assetId != toBase58String(usdtAssetId)) | |
319 | - | else false) | |
320 | - | then (assetId != toBase58String(usdtPPAssetId)) | |
321 | - | else false) | |
322 | - | then throw("Only SIGN, USDN,USDT or WAVES accepted") | |
318 | + | func acceptedAssetIds (assetId) = if (!(containsElement(all_accepted_assets, assetId))) | |
319 | + | then throw("Only $ART, USDT-PP, USDC-PP, EAST, PUZZLE, ETH or WAVES accepted") | |
323 | 320 | else true | |
324 | 321 | ||
325 | 322 | ||
326 | - | func validateMinSell (assetId,price) = { | |
327 | - | let minSellWaves = if (unitTest) | |
328 | - | then 10 | |
329 | - | else getIntegerByKeyFromOracle("waves_min_sell") | |
330 | - | let minSellUsdn = 1000000 | |
331 | - | let minSellSign = if (unitTest) | |
332 | - | then 1 | |
333 | - | else (currentCertificationPrice * 2) | |
334 | - | if (if (if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
335 | - | then (minSellUsdn > price) | |
336 | - | else false) | |
337 | - | then (price != 0) | |
338 | - | else false) | |
339 | - | then true | |
340 | - | else if (if ((assetId == toBase58String(usdtAssetId))) | |
341 | - | then (minSellUsdn > price) | |
342 | - | else false) | |
343 | - | then (price != 0) | |
344 | - | else false) | |
345 | - | then true | |
346 | - | else if (if ((assetId == toBase58String(usdtPPAssetId))) | |
347 | - | then (minSellUsdn > price) | |
348 | - | else false) | |
349 | - | then (price != 0) | |
350 | - | else false) | |
351 | - | then true | |
352 | - | else if (if ((assetId == toBase58String(signAssetId))) | |
353 | - | then (minSellSign > price) | |
354 | - | else false) | |
355 | - | then (price != 0) | |
356 | - | else false) | |
357 | - | then true | |
358 | - | else if (if (if ((assetId == toBase58String(wavesAssetId))) | |
359 | - | then true | |
360 | - | else (assetId == "WAVES")) | |
361 | - | then (minSellWaves > price) | |
362 | - | else false) | |
363 | - | then (price != 0) | |
364 | - | else false) | |
365 | - | then throw("Wrong minimum sell price") | |
366 | - | else true | |
367 | - | } | |
323 | + | func validateMinSell (price) = if ((0 >= price)) | |
324 | + | then throw("Wrong minimum sell price") | |
325 | + | else true | |
368 | 326 | ||
369 | 327 | ||
370 | 328 | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
414 | 372 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
415 | 373 | ||
416 | 374 | ||
375 | + | func getBalance (assetId) = match assetId { | |
376 | + | case b: ByteVector => | |
377 | + | assetBalance(this, b) | |
378 | + | case _ => | |
379 | + | wavesBalance(this).available | |
380 | + | } | |
381 | + | ||
382 | + | ||
417 | 383 | func buyMint (i,artId,issuer,bidId,bidOwner,pubKey) = { | |
418 | - | let $ | |
419 | - | let id = $ | |
420 | - | let caller = $ | |
421 | - | let date = $ | |
422 | - | let isSponsored = $ | |
384 | + | let $t01327813367 = idCallerDateSponsored(i, pubKey) | |
385 | + | let id = $t01327813367._1 | |
386 | + | let caller = $t01327813367._2 | |
387 | + | let date = $t01327813367._3 | |
388 | + | let isSponsored = $t01327813367._4 | |
423 | 389 | let isBid = if (if (if ((caller == issuer)) | |
424 | 390 | then (bidOwner != "") | |
425 | 391 | else false) | |
442 | 408 | else { | |
443 | 409 | let callerIsIssuer = (caller == issuer) | |
444 | 410 | let totalNFT = getIntegerByKey("total_nft_issued") | |
445 | - | let signID = getStringByKey(keySignID(issuer, artId)) | |
446 | 411 | let artworkName = getStringByKey(keyName(issuer, artId)) | |
447 | 412 | if ((artworkName == "")) | |
448 | 413 | then throw("Art doesn't exist") | |
453 | 418 | then (currentCertificationPrice * 2) | |
454 | 419 | else getIntegerByKey(keyPrice(issuer, artId)) | |
455 | 420 | let priceAssetId = if (callerIsIssuer) | |
456 | - | then toBase58String( | |
421 | + | then toBase58String(artAssetId) | |
457 | 422 | else getStringByKey(keyAssetIdAccepted(issuer, artId)) | |
458 | 423 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
459 | 424 | if (if (if (!(isBid)) | |
480 | 445 | then throw(checkUser) | |
481 | 446 | else { | |
482 | 447 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
483 | - | let $ | |
448 | + | let $t01496515157 = if (isBid) | |
484 | 449 | then getPriceAssetIdFromBid(bidDataKey) | |
485 | 450 | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
486 | - | let amount = $ | |
487 | - | let assetId = $ | |
451 | + | let amount = $t01496515157._1 | |
452 | + | let assetId = $t01496515157._2 | |
488 | 453 | let agent = valueOrElse(getString(userDapp, keyArtistAgentAddr(issuer)), feeReceiver) | |
489 | 454 | let agentShare = valueOrElse(getInteger(userDapp, keyPrimaryShareAgent(issuer)), 0) | |
490 | 455 | let publicAgent = valueOrElse(getString(userDapp, keyArtistPublicAgentAddr(issuer)), feeReceiver) | |
510 | 475 | then throw("Art sold out") | |
511 | 476 | else { | |
512 | 477 | let newAmountSold = (amountSold + 1) | |
513 | - | let issueMeta = ((((((((( | |
478 | + | let issueMeta = ((((((((("Creator: " + issuer) + ", | |
514 | 479 | ArtID: ") + artId) + ", | |
515 | - | SignID: ") + signID) + ", | |
516 | 480 | Artwork name: ") + artworkName) + ", | |
517 | 481 | Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) | |
518 | 482 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
583 | 547 | ||
584 | 548 | ||
585 | 549 | @Callable(i) | |
586 | - | func addArtwork (sha256Hash,signID,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = { | |
587 | - | let $t02047220545 = idCallerDateSponsored(i, pubKey) | |
588 | - | let artId = $t02047220545._1 | |
589 | - | let caller = $t02047220545._2 | |
590 | - | let date = $t02047220545._3 | |
591 | - | let isSponsored = $t02047220545._4 | |
592 | - | if (!(validateHash(sha256Hash))) | |
593 | - | then throw("Hash should be 64 characters maximum") | |
550 | + | func addArtwork (name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = { | |
551 | + | let $t02074820821 = idCallerDateSponsored(i, pubKey) | |
552 | + | let artId = $t02074820821._1 | |
553 | + | let caller = $t02074820821._2 | |
554 | + | let date = $t02074820821._3 | |
555 | + | let isSponsored = $t02074820821._4 | |
556 | + | let $t02083120900 = setLIcence(cidLicence, sha256Licence) | |
557 | + | let licenceCID = $t02083120900._1 | |
558 | + | let licenceHash = $t02083120900._2 | |
559 | + | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
560 | + | if ((validateArtwork != "")) | |
561 | + | then throw("Something went wrong!") | |
594 | 562 | else { | |
595 | - | let $t02064620715 = setLIcence(cidLicence, sha256Licence) | |
596 | - | let licenceCID = $t02064620715._1 | |
597 | - | let licenceHash = $t02064620715._2 | |
598 | - | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
599 | - | if ((validateArtwork != "")) | |
600 | - | then throw("Something went wrong!") | |
563 | + | let whitelisted_drop = (checkWhitelist((caller + "_free_drops")) > 0) | |
564 | + | let $t02119921287 = if (whitelisted_drop) | |
565 | + | then $Tuple2(0, artAssetId) | |
566 | + | else validatePayment(i) | |
567 | + | let amount = $t02119921287._1 | |
568 | + | let assetId = $t02119921287._2 | |
569 | + | if (!(isDefined(amount))) | |
570 | + | then throw("Something went wrong") | |
601 | 571 | else { | |
602 | - | let whitelisted_drop = (checkWhitelist((caller + "_free_drops")) > 0) | |
603 | - | let $t02101421098 = if (whitelisted_drop) | |
604 | - | then $Tuple2(0, signID) | |
605 | - | else validatePayment(i) | |
606 | - | let amount = $t02101421098._1 | |
607 | - | let assetId = $t02101421098._2 | |
608 | - | if (!(isDefined(amount))) | |
609 | - | then throw("Something went wrong") | |
610 | - | else { | |
611 | - | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
612 | - | if ((entryExist != "")) | |
613 | - | then throw("You already added it") | |
614 | - | else { | |
615 | - | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
616 | - | if ((hashExist != "")) | |
617 | - | then throw("Hash already registered") | |
618 | - | else { | |
619 | - | let isSignCertified = checkSignCertificate(signID, caller, sha256Hash) | |
620 | - | if (!(isSignCertified)) | |
621 | - | then throw("Sign Certificate not found for this address.") | |
622 | - | else { | |
623 | - | let decrease_whitelist_drop = if (whitelisted_drop) | |
624 | - | then invoke(whitelistDapp, "useFreeDrop", [caller], nil) | |
625 | - | else unit | |
626 | - | if ((decrease_whitelist_drop == decrease_whitelist_drop)) | |
627 | - | then { | |
628 | - | let txToCaller = if (isSponsored) | |
629 | - | then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)] | |
630 | - | else nil | |
631 | - | ([StringEntry(keyOwnerByHash(sha256Hash), caller), StringEntry(keyTxidByHashOwner(sha256Hash, caller), artId), IntegerEntry(keyDate(caller, artId), date), StringEntry(keyName(caller, artId), name), StringEntry(keyDesc(caller, artId), description), StringEntry(keyDisplayCid(caller, artId), cidDisplay), StringEntry(keyExportCid(caller, artId), cidExport), StringEntry(keyExportHash(caller, artId), sha256Export), StringEntry(keyLicenceHash(caller, artId), licenceHash), StringEntry(keyLicenceCid(caller, artId), licenceCID), StringEntry(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), StringEntry(keySignID(caller, artId), signID), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyidBySignid(caller, signID), artId), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), StringEntry(keyCrawler(caller, artId), crawler), IntegerEntry(keyRoyalties(caller, artId), royalties), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, signAssetId)] ++ txToCaller) | |
632 | - | } | |
633 | - | else throw("Strict value is not equal to itself.") | |
634 | - | } | |
635 | - | } | |
636 | - | } | |
572 | + | let decrease_whitelist_drop = if (whitelisted_drop) | |
573 | + | then invoke(whitelistDapp, "useFreeDrop", [caller], nil) | |
574 | + | else unit | |
575 | + | if ((decrease_whitelist_drop == decrease_whitelist_drop)) | |
576 | + | then { | |
577 | + | let txToCaller = if (isSponsored) | |
578 | + | then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)] | |
579 | + | else nil | |
580 | + | ([IntegerEntry(keyDate(caller, artId), date), StringEntry(keyName(caller, artId), name), StringEntry(keyDesc(caller, artId), description), StringEntry(keyDisplayCid(caller, artId), cidDisplay), StringEntry(keyExportCid(caller, artId), cidExport), StringEntry(keyExportHash(caller, artId), sha256Export), StringEntry(keyLicenceHash(caller, artId), licenceHash), StringEntry(keyLicenceCid(caller, artId), licenceCID), StringEntry(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyCrawler(caller, artId), crawler), IntegerEntry(keyRoyalties(caller, artId), royalties), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, artAssetId)] ++ txToCaller) | |
637 | 581 | } | |
582 | + | else throw("Strict value is not equal to itself.") | |
638 | 583 | } | |
639 | 584 | } | |
640 | 585 | } | |
645 | 590 | func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = if (!(dappRunning)) | |
646 | 591 | then throw(maintenanceMSG) | |
647 | 592 | else { | |
648 | - | let $ | |
649 | - | let id = $ | |
650 | - | let caller = $ | |
651 | - | let date = $ | |
652 | - | let isSponsored = $ | |
653 | - | let $ | |
654 | - | let licenceCID = $ | |
655 | - | let licenceHash = $ | |
593 | + | let $t02320223272 = idCallerDateSponsored(i, pubKey) | |
594 | + | let id = $t02320223272._1 | |
595 | + | let caller = $t02320223272._2 | |
596 | + | let date = $t02320223272._3 | |
597 | + | let isSponsored = $t02320223272._4 | |
598 | + | let $t02328223351 = setLIcence(cidLicence, sha256Licence) | |
599 | + | let licenceCID = $t02328223351._1 | |
600 | + | let licenceHash = $t02328223351._2 | |
656 | 601 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
657 | 602 | if ((validateArtwork != "")) | |
658 | 603 | then throw("Something went wrong!") | |
680 | 625 | ||
681 | 626 | @Callable(i) | |
682 | 627 | func flagArtwork (artId,addr,flag,note) = { | |
683 | - | let $ | |
684 | - | let id = $ | |
685 | - | let caller = $ | |
628 | + | let $t02497825012 = idCallerDate(i) | |
629 | + | let id = $t02497825012._1 | |
630 | + | let caller = $t02497825012._2 | |
686 | 631 | if (containsElement([chris, toString(this)], caller)) | |
687 | 632 | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag)) | |
688 | 633 | then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyNote(addr, artId), note)] | |
694 | 639 | ||
695 | 640 | @Callable(i) | |
696 | 641 | func deleteArtwork (artId,addr) = { | |
697 | - | let $ | |
698 | - | let id = $ | |
699 | - | let caller = $ | |
642 | + | let $t02544825482 = idCallerDate(i) | |
643 | + | let id = $t02544825482._1 | |
644 | + | let caller = $t02544825482._2 | |
700 | 645 | let addrToUse = if (containsElement([chris, toString(this)], caller)) | |
701 | 646 | then addr | |
702 | 647 | else caller | |
705 | 650 | then throw("No art matching for this address") | |
706 | 651 | else { | |
707 | 652 | let sha256Hash = getStringByKey(keyHashByTxidAddr(addrToUse, artId)) | |
708 | - | if ((sha256Hash == "")) | |
709 | - | then throw("No art hash matching for this address") | |
710 | - | else { | |
711 | - | let signID = getStringByKey(keySignID(addrToUse, artId)) | |
712 | - | if ((signID == "")) | |
713 | - | then throw("No SIGN ID matching") | |
714 | - | else { | |
715 | - | let dataToDelete = [DeleteEntry(keyDate(addrToUse, artId)), DeleteEntry(keyName(addrToUse, artId)), DeleteEntry(keyDesc(addrToUse, artId)), DeleteEntry(keyDisplayCid(addrToUse, artId)), DeleteEntry(keyExportCid(addrToUse, artId)), DeleteEntry(keyExportHash(addrToUse, artId)), DeleteEntry(keyLicenceHash(addrToUse, artId)), DeleteEntry(keyLicenceCid(addrToUse, artId)), DeleteEntry(keyType(addrToUse, artId)), DeleteEntry(keyTags(addrToUse, artId)), DeleteEntry(keyMaxMint(addrToUse, artId)), DeleteEntry(keySignID(addrToUse, artId)), DeleteEntry(keyIssued(addrToUse, artId)), DeleteEntry(keyOnSale(addrToUse, artId)), DeleteEntry(keyFlag(addrToUse, artId)), DeleteEntry(keyPrice(addrToUse, artId)), DeleteEntry(keyAssetIdAccepted(addrToUse, artId)), DeleteEntry(keyOwnerByHash(sha256Hash)), DeleteEntry(keyidBySignid(addrToUse, signID)), DeleteEntry(keyTxidByHashOwner(sha256Hash, addrToUse)), DeleteEntry(keyEndSale(addrToUse, artId)), DeleteEntry(keyNote(addrToUse, artId)), DeleteEntry(keyCrawler(addrToUse, artId)), DeleteEntry(keyRoyalties(addrToUse, artId))] | |
716 | - | if (!(isArtMinted(addrToUse, artId))) | |
717 | - | then if (!(dappRunning)) | |
718 | - | then throw(maintenanceMSG) | |
719 | - | else dataToDelete | |
720 | - | else if (containsElement([chris, toString(this)], caller)) | |
721 | - | then dataToDelete | |
722 | - | else throw("Art already minted, you cannot delete it") | |
723 | - | } | |
724 | - | } | |
653 | + | let signID = if ((sha256Hash == "")) | |
654 | + | then getStringByKey(keySignID(addrToUse, artId)) | |
655 | + | else "" | |
656 | + | let signID_legacy = if ((signID == "")) | |
657 | + | then nil | |
658 | + | else [DeleteEntry(keyidBySignid(addrToUse, signID))] | |
659 | + | let dataToDelete = ([DeleteEntry(keyDate(addrToUse, artId)), DeleteEntry(keyName(addrToUse, artId)), DeleteEntry(keyDesc(addrToUse, artId)), DeleteEntry(keyDisplayCid(addrToUse, artId)), DeleteEntry(keyExportCid(addrToUse, artId)), DeleteEntry(keyExportHash(addrToUse, artId)), DeleteEntry(keyLicenceHash(addrToUse, artId)), DeleteEntry(keyLicenceCid(addrToUse, artId)), DeleteEntry(keyType(addrToUse, artId)), DeleteEntry(keyTags(addrToUse, artId)), DeleteEntry(keyMaxMint(addrToUse, artId)), DeleteEntry(keySignID(addrToUse, artId)), DeleteEntry(keyIssued(addrToUse, artId)), DeleteEntry(keyOnSale(addrToUse, artId)), DeleteEntry(keyFlag(addrToUse, artId)), DeleteEntry(keyPrice(addrToUse, artId)), DeleteEntry(keyAssetIdAccepted(addrToUse, artId)), DeleteEntry(keyOwnerByHash(sha256Hash)), DeleteEntry(keyEndSale(addrToUse, artId)), DeleteEntry(keyNote(addrToUse, artId)), DeleteEntry(keyCrawler(addrToUse, artId)), DeleteEntry(keyRoyalties(addrToUse, artId))] ++ signID_legacy) | |
660 | + | if (!(isArtMinted(addrToUse, artId))) | |
661 | + | then if (!(dappRunning)) | |
662 | + | then throw(maintenanceMSG) | |
663 | + | else dataToDelete | |
664 | + | else if (containsElement([chris, toString(this)], caller)) | |
665 | + | then dataToDelete | |
666 | + | else throw("Art already minted, you cannot delete it") | |
725 | 667 | } | |
726 | 668 | } | |
727 | 669 | ||
729 | 671 | ||
730 | 672 | @Callable(i) | |
731 | 673 | func sellArtwork (artId,price,maxMint,assetId,blockEnd,pubKey) = { | |
732 | - | let $ | |
733 | - | let id = $ | |
734 | - | let caller = $ | |
735 | - | let date = $ | |
736 | - | let isSponsored = $ | |
674 | + | let $t02826128331 = idCallerDateSponsored(i, pubKey) | |
675 | + | let id = $t02826128331._1 | |
676 | + | let caller = $t02826128331._2 | |
677 | + | let date = $t02826128331._3 | |
678 | + | let isSponsored = $t02826128331._4 | |
737 | 679 | let artworkName = getStringByKey(keyName(caller, artId)) | |
738 | 680 | if ((artworkName == "")) | |
739 | 681 | then throw("This art doesn't match your account") | |
757 | 699 | else height | |
758 | 700 | if (!(acceptedAssetIds(assetId))) | |
759 | 701 | then throw("Something went wrong!") | |
760 | - | else if (!(validateMinSell( | |
702 | + | else if (!(validateMinSell(price))) | |
761 | 703 | then throw("Something went wrong!") | |
762 | 704 | else { | |
763 | 705 | let checkUser = validateUser(caller) | |
807 | 749 | ||
808 | 750 | @Callable(i) | |
809 | 751 | func setBid (artId,issuer) = { | |
810 | - | let $ | |
811 | - | let id = $ | |
812 | - | let caller = $ | |
813 | - | let date = $ | |
814 | - | let $ | |
815 | - | let payment = $ | |
816 | - | let amount = $ | |
752 | + | let $t03070430744 = idCallerDate(i) | |
753 | + | let id = $t03070430744._1 | |
754 | + | let caller = $t03070430744._2 | |
755 | + | let date = $t03070430744._3 | |
756 | + | let $t03074930785 = isPayment(i) | |
757 | + | let payment = $t03074930785._1 | |
758 | + | let amount = $t03074930785._2 | |
817 | 759 | let assetId = if (!(isDefined(payment.assetId))) | |
818 | 760 | then "WAVES" | |
819 | 761 | else toBase58String(value(payment.assetId)) | |
826 | 768 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
827 | 769 | if (!(acceptedAssetIds(assetId))) | |
828 | 770 | then throw("asset not accepted") | |
829 | - | else if (!(validateMinSell( | |
771 | + | else if (!(validateMinSell(amount))) | |
830 | 772 | then throw("Wrong min sell") | |
831 | 773 | else { | |
832 | 774 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
849 | 791 | ||
850 | 792 | @Callable(i) | |
851 | 793 | func cancelBid (artId,issuer,bidId,bidOwner) = { | |
852 | - | let $ | |
853 | - | let id = $ | |
854 | - | let caller = $ | |
855 | - | let date = $ | |
794 | + | let $t03210932170 = idCallerDate(i) | |
795 | + | let id = $t03210932170._1 | |
796 | + | let caller = $t03210932170._2 | |
797 | + | let date = $t03210932170._3 | |
856 | 798 | if (if ((caller != bidOwner)) | |
857 | 799 | then (caller != issuer) | |
858 | 800 | else false) | |
886 | 828 | else false) | |
887 | 829 | then (inv.feeAssetId == unit) | |
888 | 830 | else false) | |
889 | - | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[ | |
831 | + | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[11]))) | |
890 | 832 | else if (if (if (if ((inv.function == "updateArtwork")) | |
891 | 833 | then (inv.dApp == this) | |
892 | 834 | else false) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let VERSION = "2.0.0" | |
5 | 5 | ||
6 | 6 | func getStringByKey (key) = valueOrElse(getString(this, key), "") | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | let unitTest = false | |
10 | 10 | ||
11 | 11 | let oracleFee = value(addressFromString(getStringByKey("conf_oracle_fee"))) | |
12 | 12 | ||
13 | 13 | let signDapp = value(addressFromString(getStringByKey("conf_signweb_dapp"))) | |
14 | 14 | ||
15 | 15 | let feeReceiver = getStringByKey("conf_fee_receiver") | |
16 | 16 | ||
17 | 17 | let userDapp = if (unitTest) | |
18 | 18 | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
19 | 19 | else value(addressFromString(getStringByKey("conf_users_dapp"))) | |
20 | 20 | ||
21 | 21 | let whitelistDapp = value(addressFromString(getStringByKey("conf_whitelist_dapp"))) | |
22 | 22 | ||
23 | - | let | |
23 | + | let usdtPPAssetId_str = getStringByKey("conf_accepted_asset_USDT_PP") | |
24 | 24 | ||
25 | - | let | |
25 | + | let artAssetId_str = getStringByKey("conf_accepted_asset_ART") | |
26 | 26 | ||
27 | - | let | |
27 | + | let usdcPPAssetId_str = getStringByKey("conf_accepted_asset_USDC_PP") | |
28 | 28 | ||
29 | - | let usdtPPAssetId = fromBase58String(getStringByKey("conf_accepted_asset_USDT_PP")) | |
29 | + | let eastAssetId_str = getStringByKey("conf_accepted_asset_EAST") | |
30 | + | ||
31 | + | let puzzleAssetId_str = getStringByKey("conf_accepted_asset_PUZZLE") | |
32 | + | ||
33 | + | let ethPPAssetId_str = getStringByKey("conf_accepted_asset_ETH_PP") | |
34 | + | ||
35 | + | let wavesAssetId_str = "WAVES" | |
36 | + | ||
37 | + | let usdtPPAssetId = fromBase58String(usdtPPAssetId_str) | |
38 | + | ||
39 | + | let artAssetId = fromBase58String(artAssetId_str) | |
40 | + | ||
41 | + | let usdcPPAssetId = fromBase58String(usdcPPAssetId_str) | |
42 | + | ||
43 | + | let eastAssetId = fromBase58String(eastAssetId_str) | |
44 | + | ||
45 | + | let puzzleAssetId = fromBase58String(puzzleAssetId_str) | |
46 | + | ||
47 | + | let ethPPAssetId = fromBase58String(ethPPAssetId_str) | |
30 | 48 | ||
31 | 49 | let wavesAssetId = base58'' | |
50 | + | ||
51 | + | let all_accepted_assets = [usdtPPAssetId_str, artAssetId_str, usdcPPAssetId_str, eastAssetId_str, puzzleAssetId_str, wavesAssetId_str, ethPPAssetId_str] | |
32 | 52 | ||
33 | 53 | let chris = getStringByKey("conf_admin_1") | |
34 | 54 | ||
35 | 55 | func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle") | |
36 | 56 | ||
37 | 57 | ||
38 | 58 | func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0) | |
39 | 59 | ||
40 | 60 | ||
41 | 61 | func checkWhitelist (key) = valueOrElse(getInteger(whitelistDapp, key), 0) | |
42 | 62 | ||
43 | 63 | ||
44 | 64 | func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false) | |
45 | 65 | ||
46 | 66 | ||
47 | 67 | let commission_fee = 8 | |
48 | 68 | ||
49 | 69 | let defaultLicence = getStringByKey("conf_default_licence") | |
50 | 70 | ||
51 | 71 | let defaultHashLicence = getStringByKey("conf_default_licence_hash") | |
52 | 72 | ||
53 | 73 | let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true) | |
54 | 74 | ||
55 | 75 | let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "") | |
56 | 76 | ||
57 | 77 | let userSuspended = "SUSPENDED" | |
58 | 78 | ||
59 | 79 | let userRemoved = "REMOVED" | |
60 | 80 | ||
61 | 81 | let userUnregistered = "UNREGISTERED" | |
62 | 82 | ||
63 | 83 | let userAllowed = "ALLOWED" | |
64 | 84 | ||
65 | - | let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String( | |
85 | + | let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(artAssetId))) | |
66 | 86 | ||
67 | 87 | func getArtworkRoyalties (key) = valueOrElse(getInteger(this, key), 1000) | |
68 | - | ||
69 | - | ||
70 | - | func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signDapp, ((("data_fc_" + signID) + "_") + Owner)) { | |
71 | - | case a: String => | |
72 | - | if (contains(a, sha256Hash)) | |
73 | - | then true | |
74 | - | else false | |
75 | - | case _ => | |
76 | - | false | |
77 | - | } | |
78 | 88 | ||
79 | 89 | ||
80 | 90 | func validateCID (cid) = if (contains(cid, "/")) | |
81 | 91 | then if (if ((76 > size(cid))) | |
82 | 92 | then (size(split(cid, "/")[0]) == 59) | |
83 | 93 | else false) | |
84 | 94 | then (16 > size(split(cid, "/")[1])) | |
85 | 95 | else false | |
86 | 96 | else false | |
87 | 97 | ||
88 | 98 | ||
89 | 99 | func validateHash (hash) = (size(hash) == 64) | |
90 | 100 | ||
91 | 101 | ||
92 | 102 | func keyUserStatus (caller) = ("user_status_" + caller) | |
93 | 103 | ||
94 | 104 | ||
95 | 105 | func keyDate (caller,artId) = ((("art_date_" + artId) + "_") + caller) | |
96 | 106 | ||
97 | 107 | ||
98 | 108 | func keyName (caller,artId) = ((("art_name_" + artId) + "_") + caller) | |
99 | 109 | ||
100 | 110 | ||
101 | 111 | func keyDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller) | |
102 | 112 | ||
103 | 113 | ||
104 | 114 | func keyDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller) | |
105 | 115 | ||
106 | 116 | ||
107 | 117 | func keyExportHash (caller,artId) = ((("art_export_hash_" + artId) + "_") + caller) | |
108 | 118 | ||
109 | 119 | ||
110 | 120 | func keyExportCid (caller,artId) = ((("art_export_cid_" + artId) + "_") + caller) | |
111 | 121 | ||
112 | 122 | ||
113 | 123 | func keyMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller) | |
114 | 124 | ||
115 | 125 | ||
116 | 126 | func keySignID (caller,artId) = ((("art_signid_" + artId) + "_") + caller) | |
117 | 127 | ||
118 | 128 | ||
119 | 129 | func keyIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller) | |
120 | 130 | ||
121 | 131 | ||
122 | 132 | func keyOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller) | |
123 | 133 | ||
124 | 134 | ||
125 | 135 | func keyLicenceHash (caller,artId) = ((("art_licence_hash_" + artId) + "_") + caller) | |
126 | 136 | ||
127 | 137 | ||
128 | 138 | func keyLicenceCid (caller,artId) = ((("art_licence_cid_" + artId) + "_") + caller) | |
129 | 139 | ||
130 | 140 | ||
131 | 141 | func keyTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller) | |
132 | 142 | ||
133 | 143 | ||
134 | 144 | func keyType (caller,artId) = ((("art_type_" + artId) + "_") + caller) | |
135 | 145 | ||
136 | 146 | ||
137 | 147 | func keyNote (caller,artId) = ((("art_note_" + artId) + "_") + caller) | |
138 | 148 | ||
139 | 149 | ||
140 | 150 | func keyCrawler (caller,artId) = ((("art_crawler_cid_" + artId) + "_") + caller) | |
141 | 151 | ||
142 | 152 | ||
143 | 153 | func keyRoyalties (caller,artId) = ((("art_royalties_" + artId) + "_") + caller) | |
144 | 154 | ||
145 | 155 | ||
146 | 156 | func keyPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller) | |
147 | 157 | ||
148 | 158 | ||
149 | 159 | func keyEndSale (caller,artId) = ((("art_endsale_" + artId) + "_") + caller) | |
150 | 160 | ||
151 | 161 | ||
152 | 162 | func keyAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller) | |
153 | 163 | ||
154 | 164 | ||
155 | 165 | func keyFlag (caller,artId) = ((("art_flag_" + artId) + "_") + caller) | |
156 | 166 | ||
157 | 167 | ||
158 | 168 | func keyArtistAgentAddr (artistAddr) = ("artist_agent_" + artistAddr) | |
159 | 169 | ||
160 | 170 | ||
161 | 171 | func keyPrimaryShareAgent (artistAddr) = ("artist_agent_primary_" + artistAddr) | |
162 | 172 | ||
163 | 173 | ||
164 | 174 | func keyArtistPublicAgentAddr (artistAddr) = ("artist_public_agent_" + artistAddr) | |
165 | 175 | ||
166 | 176 | ||
167 | 177 | func keyPrimarySharePublicAgent (artistAddr) = ("artist_public_agent_primary_" + artistAddr) | |
168 | 178 | ||
169 | 179 | ||
170 | 180 | func keyHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller) | |
171 | 181 | ||
172 | 182 | ||
173 | 183 | func keyOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
174 | 184 | ||
175 | 185 | ||
176 | 186 | func keyidBySignid (caller,signId) = ((("get_artidbysignid_" + signId) + "_") + caller) | |
177 | 187 | ||
178 | 188 | ||
179 | - | func keyTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller))))) | |
180 | - | ||
181 | - | ||
182 | 189 | func validateAllCID (cidDisplay,cidExport,cidLicence) = if (!(validateCID(cidDisplay))) | |
183 | 190 | then throw("Wrong Display CID") | |
184 | 191 | else if (!(validateCID(cidExport))) | |
185 | 192 | then throw("Wrong Export CID") | |
186 | 193 | else if (if ((cidLicence != "")) | |
187 | 194 | then !(validateCID(cidLicence)) | |
188 | 195 | else false) | |
189 | 196 | then throw("Wrong Licence CID") | |
190 | 197 | else true | |
191 | 198 | ||
192 | 199 | ||
193 | 200 | func validateAllHash (sha256Export,sha256Licence) = if (!(validateHash(sha256Export))) | |
194 | 201 | then throw("Export Hash 64 char. max") | |
195 | 202 | else if (!(validateHash(sha256Licence))) | |
196 | 203 | then throw("Licence Hash 64 char. max") | |
197 | 204 | else true | |
198 | 205 | ||
199 | 206 | ||
200 | 207 | func validateString (str,max) = if ((size(str) == 0)) | |
201 | 208 | then throw("Field cannot be is empty") | |
202 | 209 | else if ((size(str) > max)) | |
203 | 210 | then throw((str + " is too long")) | |
204 | 211 | else true | |
205 | 212 | ||
206 | 213 | ||
207 | 214 | func validateUser (caller) = { | |
208 | 215 | let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered) | |
209 | 216 | if (if ((userStatus == userUnregistered)) | |
210 | 217 | then true | |
211 | 218 | else (userStatus == userAllowed)) | |
212 | 219 | then "Register this account first with \"Account\" tab" | |
213 | 220 | else if ((userStatus == userSuspended)) | |
214 | 221 | then "Account suspended" | |
215 | 222 | else if ((userStatus == userRemoved)) | |
216 | 223 | then "Account removed" | |
217 | 224 | else "" | |
218 | 225 | } | |
219 | 226 | ||
220 | 227 | ||
221 | 228 | func setLIcence (cidLicence,sha256Licence) = { | |
222 | 229 | let cid = if ((size(cidLicence) == 0)) | |
223 | 230 | then defaultLicence | |
224 | 231 | else cidLicence | |
225 | 232 | let hash = if ((size(sha256Licence) == 0)) | |
226 | 233 | then defaultHashLicence | |
227 | 234 | else sha256Licence | |
228 | 235 | $Tuple2(cid, hash) | |
229 | 236 | } | |
230 | 237 | ||
231 | 238 | ||
232 | 239 | func validateArtworkData (caller,cidDisplay,cidExport,licenceCID,sha256Export,licenceHash,name,description,tags,royalties) = { | |
233 | 240 | let checkUser = validateUser(caller) | |
234 | 241 | if ((checkUser != "")) | |
235 | 242 | then throw(checkUser) | |
236 | 243 | else if ((size(cidDisplay) == 0)) | |
237 | 244 | then throw("Display CID cannot be empty") | |
238 | 245 | else if (!(validateAllCID(cidDisplay, cidExport, licenceCID))) | |
239 | 246 | then throw("Problem with CID") | |
240 | 247 | else if (!(validateAllHash(sha256Export, licenceHash))) | |
241 | 248 | then throw("Problem with Hashes") | |
242 | 249 | else if (!(validateString(name, 100))) | |
243 | 250 | then throw("100 Char. max name") | |
244 | 251 | else if (!(validateString(description, 1000))) | |
245 | 252 | then throw("1000 Char. max description") | |
246 | 253 | else if (if ((0 > royalties)) | |
247 | 254 | then true | |
248 | 255 | else (royalties > 1000)) | |
249 | 256 | then throw("Royalties cannot be less than 0% or higher than 10%") | |
250 | 257 | else if ((size(split(tags, ",")) > 5)) | |
251 | 258 | then throw("5 tags max.") | |
252 | 259 | else "" | |
253 | 260 | } | |
254 | 261 | ||
255 | 262 | ||
256 | 263 | func isPayment (i) = if ((size(i.payments) == 0)) | |
257 | 264 | then throw("No payment attached") | |
258 | 265 | else { | |
259 | 266 | let payment = value(i.payments[0]) | |
260 | 267 | let amount = value(payment.amount) | |
261 | 268 | $Tuple2(payment, amount) | |
262 | 269 | } | |
263 | 270 | ||
264 | 271 | ||
265 | 272 | func validatePayment (i) = { | |
266 | - | let $ | |
267 | - | let payment = $ | |
268 | - | let amount = $ | |
273 | + | let $t01001410050 = isPayment(i) | |
274 | + | let payment = $t01001410050._1 | |
275 | + | let amount = $t01001410050._2 | |
269 | 276 | let assetId = if (if (isDefined(payment.assetId)) | |
270 | - | then (payment.assetId == | |
277 | + | then (payment.assetId == artAssetId) | |
271 | 278 | else false) | |
272 | 279 | then payment.assetId | |
273 | 280 | else throw("Only SIGN token accepted as transaction fee") | |
274 | 281 | if ((amount != currentCertificationPrice)) | |
275 | 282 | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
276 | 283 | else $Tuple2(amount, assetId) | |
277 | 284 | } | |
278 | 285 | ||
279 | 286 | ||
280 | 287 | func isArtMinted (addrToUse,artId) = match getInteger(this, keyIssued(addrToUse, artId)) { | |
281 | 288 | case b: Int => | |
282 | 289 | if ((b != 0)) | |
283 | 290 | then true | |
284 | 291 | else false | |
285 | 292 | case _ => | |
286 | 293 | false | |
287 | 294 | } | |
288 | 295 | ||
289 | 296 | ||
290 | 297 | func validatePriceAssetId (i,priceAssetId,artworkPrice) = { | |
291 | - | let $ | |
292 | - | let payment = $ | |
293 | - | let amount = $ | |
298 | + | let $t01063710673 = isPayment(i) | |
299 | + | let payment = $t01063710673._1 | |
300 | + | let amount = $t01063710673._2 | |
294 | 301 | let assetId = if (!(isDefined(payment.assetId))) | |
295 | 302 | then unit | |
296 | 303 | else if (if ((size(priceAssetId) > 0)) | |
297 | 304 | then (toBase58String(value(payment.assetId)) == priceAssetId) | |
298 | 305 | else false) | |
299 | 306 | then payment.assetId | |
300 | 307 | else throw("Wrong asset id") | |
301 | 308 | if (if ((assetId == unit)) | |
302 | 309 | then (priceAssetId != "") | |
303 | 310 | else false) | |
304 | 311 | then throw("Wrong asset id") | |
305 | 312 | else if ((artworkPrice != amount)) | |
306 | 313 | then throw("Payment don't match") | |
307 | 314 | else $Tuple2(amount, assetId) | |
308 | 315 | } | |
309 | 316 | ||
310 | 317 | ||
311 | - | func acceptedAssetIds (assetId) = if (if (if (if (if (if ((assetId != toBase58String(signAssetId))) | |
312 | - | then (assetId != toBase58String(wavesAssetId)) | |
313 | - | else false) | |
314 | - | then (assetId != "WAVES") | |
315 | - | else false) | |
316 | - | then (assetId != toBase58String(usdnAssetId)) | |
317 | - | else false) | |
318 | - | then (assetId != toBase58String(usdtAssetId)) | |
319 | - | else false) | |
320 | - | then (assetId != toBase58String(usdtPPAssetId)) | |
321 | - | else false) | |
322 | - | then throw("Only SIGN, USDN,USDT or WAVES accepted") | |
318 | + | func acceptedAssetIds (assetId) = if (!(containsElement(all_accepted_assets, assetId))) | |
319 | + | then throw("Only $ART, USDT-PP, USDC-PP, EAST, PUZZLE, ETH or WAVES accepted") | |
323 | 320 | else true | |
324 | 321 | ||
325 | 322 | ||
326 | - | func validateMinSell (assetId,price) = { | |
327 | - | let minSellWaves = if (unitTest) | |
328 | - | then 10 | |
329 | - | else getIntegerByKeyFromOracle("waves_min_sell") | |
330 | - | let minSellUsdn = 1000000 | |
331 | - | let minSellSign = if (unitTest) | |
332 | - | then 1 | |
333 | - | else (currentCertificationPrice * 2) | |
334 | - | if (if (if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
335 | - | then (minSellUsdn > price) | |
336 | - | else false) | |
337 | - | then (price != 0) | |
338 | - | else false) | |
339 | - | then true | |
340 | - | else if (if ((assetId == toBase58String(usdtAssetId))) | |
341 | - | then (minSellUsdn > price) | |
342 | - | else false) | |
343 | - | then (price != 0) | |
344 | - | else false) | |
345 | - | then true | |
346 | - | else if (if ((assetId == toBase58String(usdtPPAssetId))) | |
347 | - | then (minSellUsdn > price) | |
348 | - | else false) | |
349 | - | then (price != 0) | |
350 | - | else false) | |
351 | - | then true | |
352 | - | else if (if ((assetId == toBase58String(signAssetId))) | |
353 | - | then (minSellSign > price) | |
354 | - | else false) | |
355 | - | then (price != 0) | |
356 | - | else false) | |
357 | - | then true | |
358 | - | else if (if (if ((assetId == toBase58String(wavesAssetId))) | |
359 | - | then true | |
360 | - | else (assetId == "WAVES")) | |
361 | - | then (minSellWaves > price) | |
362 | - | else false) | |
363 | - | then (price != 0) | |
364 | - | else false) | |
365 | - | then throw("Wrong minimum sell price") | |
366 | - | else true | |
367 | - | } | |
323 | + | func validateMinSell (price) = if ((0 >= price)) | |
324 | + | then throw("Wrong minimum sell price") | |
325 | + | else true | |
368 | 326 | ||
369 | 327 | ||
370 | 328 | func getBidAssetId (assetId) = if ((assetId == "WAVES")) | |
371 | 329 | then unit | |
372 | 330 | else fromBase58String(assetId) | |
373 | 331 | ||
374 | 332 | ||
375 | 333 | func getPriceAssetIdFromBid (bidDataKey) = { | |
376 | 334 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
377 | 335 | if ((bidData == "")) | |
378 | 336 | then throw("Bid not found") | |
379 | 337 | else { | |
380 | 338 | let bidDataArr = split(bidData, "_") | |
381 | 339 | let bidAmount = parseIntValue(bidDataArr[1]) | |
382 | 340 | let bidAssetId = getBidAssetId(bidDataArr[0]) | |
383 | 341 | if ((0 >= bidAmount)) | |
384 | 342 | then throw("Wrong amount") | |
385 | 343 | else $Tuple2(bidAmount, bidAssetId) | |
386 | 344 | } | |
387 | 345 | } | |
388 | 346 | ||
389 | 347 | ||
390 | 348 | func idCallerDateSponsored (i,pubKey) = if (!(dappRunning)) | |
391 | 349 | then throw(maintenanceMSG) | |
392 | 350 | else { | |
393 | 351 | let isSponsored = if ((pubKey != "")) | |
394 | 352 | then valueOrElse(checkWhitelist((toString(addressFromPublicKey(fromBase58String(pubKey))) + "_free_txs")), 0) | |
395 | 353 | else 0 | |
396 | 354 | let caller = if (if ((toBase58String(i.caller.bytes) == toString(this))) | |
397 | 355 | then (isSponsored > 0) | |
398 | 356 | else false) | |
399 | 357 | then toString(addressFromPublicKey(fromBase58String(pubKey))) | |
400 | 358 | else toBase58String(i.caller.bytes) | |
401 | 359 | let get_sponsored_waves = if (if ((pubKey != "")) | |
402 | 360 | then (isSponsored > 0) | |
403 | 361 | else false) | |
404 | 362 | then invoke(whitelistDapp, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(pubKey)))], nil) | |
405 | 363 | else unit | |
406 | 364 | if ((get_sponsored_waves == get_sponsored_waves)) | |
407 | 365 | then $Tuple4(toBase58String(i.transactionId), caller, lastBlock.timestamp, (isSponsored > 0)) | |
408 | 366 | else throw("Strict value is not equal to itself.") | |
409 | 367 | } | |
410 | 368 | ||
411 | 369 | ||
412 | 370 | func idCallerDate (i) = if (!(dappRunning)) | |
413 | 371 | then throw(maintenanceMSG) | |
414 | 372 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
415 | 373 | ||
416 | 374 | ||
375 | + | func getBalance (assetId) = match assetId { | |
376 | + | case b: ByteVector => | |
377 | + | assetBalance(this, b) | |
378 | + | case _ => | |
379 | + | wavesBalance(this).available | |
380 | + | } | |
381 | + | ||
382 | + | ||
417 | 383 | func buyMint (i,artId,issuer,bidId,bidOwner,pubKey) = { | |
418 | - | let $ | |
419 | - | let id = $ | |
420 | - | let caller = $ | |
421 | - | let date = $ | |
422 | - | let isSponsored = $ | |
384 | + | let $t01327813367 = idCallerDateSponsored(i, pubKey) | |
385 | + | let id = $t01327813367._1 | |
386 | + | let caller = $t01327813367._2 | |
387 | + | let date = $t01327813367._3 | |
388 | + | let isSponsored = $t01327813367._4 | |
423 | 389 | let isBid = if (if (if ((caller == issuer)) | |
424 | 390 | then (bidOwner != "") | |
425 | 391 | else false) | |
426 | 392 | then (bidId != "") | |
427 | 393 | else false) | |
428 | 394 | then true | |
429 | 395 | else false | |
430 | 396 | if (if (isBid) | |
431 | 397 | then (caller != issuer) | |
432 | 398 | else false) | |
433 | 399 | then throw("You cannot do this action") | |
434 | 400 | else { | |
435 | 401 | let blockEnd = getIntegerByKey(keyEndSale(caller, artId)) | |
436 | 402 | if (if (if ((blockEnd != 0)) | |
437 | 403 | then (height >= blockEnd) | |
438 | 404 | else false) | |
439 | 405 | then !(isBid) | |
440 | 406 | else false) | |
441 | 407 | then throw("Sale ended.") | |
442 | 408 | else { | |
443 | 409 | let callerIsIssuer = (caller == issuer) | |
444 | 410 | let totalNFT = getIntegerByKey("total_nft_issued") | |
445 | - | let signID = getStringByKey(keySignID(issuer, artId)) | |
446 | 411 | let artworkName = getStringByKey(keyName(issuer, artId)) | |
447 | 412 | if ((artworkName == "")) | |
448 | 413 | then throw("Art doesn't exist") | |
449 | 414 | else { | |
450 | 415 | let isOnSale = getBooleanByKey(keyOnSale(issuer, artId)) | |
451 | 416 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
452 | 417 | let artworkPrice = if (callerIsIssuer) | |
453 | 418 | then (currentCertificationPrice * 2) | |
454 | 419 | else getIntegerByKey(keyPrice(issuer, artId)) | |
455 | 420 | let priceAssetId = if (callerIsIssuer) | |
456 | - | then toBase58String( | |
421 | + | then toBase58String(artAssetId) | |
457 | 422 | else getStringByKey(keyAssetIdAccepted(issuer, artId)) | |
458 | 423 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
459 | 424 | if (if (if (!(isBid)) | |
460 | 425 | then !(callerIsIssuer) | |
461 | 426 | else false) | |
462 | 427 | then if (if ((0 >= artworkPrice)) | |
463 | 428 | then true | |
464 | 429 | else !(isOnSale)) | |
465 | 430 | then true | |
466 | 431 | else (0 >= maxCanSell) | |
467 | 432 | else false) | |
468 | 433 | then throw("Art not for sale") | |
469 | 434 | else if (if (if (!(isBid)) | |
470 | 435 | then callerIsIssuer | |
471 | 436 | else false) | |
472 | 437 | then (0 >= maxCanSell) | |
473 | 438 | else false) | |
474 | 439 | then throw("Max issuable not set") | |
475 | 440 | else { | |
476 | 441 | let checkUser = validateUser(issuer) | |
477 | 442 | if (if (isBid) | |
478 | 443 | then (checkUser != "") | |
479 | 444 | else false) | |
480 | 445 | then throw(checkUser) | |
481 | 446 | else { | |
482 | 447 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
483 | - | let $ | |
448 | + | let $t01496515157 = if (isBid) | |
484 | 449 | then getPriceAssetIdFromBid(bidDataKey) | |
485 | 450 | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
486 | - | let amount = $ | |
487 | - | let assetId = $ | |
451 | + | let amount = $t01496515157._1 | |
452 | + | let assetId = $t01496515157._2 | |
488 | 453 | let agent = valueOrElse(getString(userDapp, keyArtistAgentAddr(issuer)), feeReceiver) | |
489 | 454 | let agentShare = valueOrElse(getInteger(userDapp, keyPrimaryShareAgent(issuer)), 0) | |
490 | 455 | let publicAgent = valueOrElse(getString(userDapp, keyArtistPublicAgentAddr(issuer)), feeReceiver) | |
491 | 456 | let publicAgentShare = valueOrElse(getInteger(userDapp, keyPrimarySharePublicAgent(issuer)), 0) | |
492 | 457 | let isWhitelisted = checkWhitelist(issuer) | |
493 | 458 | let amountForSign = fraction(amount, commission_fee, 100) | |
494 | 459 | let amountForAgent = if (if (if ((agent != feeReceiver)) | |
495 | 460 | then (agentShare > 0) | |
496 | 461 | else false) | |
497 | 462 | then (height > isWhitelisted) | |
498 | 463 | else false) | |
499 | 464 | then fraction(amount, agentShare, 10000) | |
500 | 465 | else 0 | |
501 | 466 | let amountForPublicAgent = if (if (if ((publicAgent != feeReceiver)) | |
502 | 467 | then (publicAgentShare > 0) | |
503 | 468 | else false) | |
504 | 469 | then (height > isWhitelisted) | |
505 | 470 | else false) | |
506 | 471 | then fraction(amount, publicAgentShare, 10000) | |
507 | 472 | else 0 | |
508 | 473 | let amountForCreator = (amount - amountForSign) | |
509 | 474 | if ((amountSold == maxCanSell)) | |
510 | 475 | then throw("Art sold out") | |
511 | 476 | else { | |
512 | 477 | let newAmountSold = (amountSold + 1) | |
513 | - | let issueMeta = ((((((((( | |
478 | + | let issueMeta = ((((((((("Creator: " + issuer) + ", | |
514 | 479 | ArtID: ") + artId) + ", | |
515 | - | SignID: ") + signID) + ", | |
516 | 480 | Artwork name: ") + artworkName) + ", | |
517 | 481 | Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) | |
518 | 482 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
519 | 483 | let idNFT = calculateAssetId(issueNFT) | |
520 | 484 | let sellStatus = if (if ((newAmountSold == maxCanSell)) | |
521 | 485 | then true | |
522 | 486 | else !(isOnSale)) | |
523 | 487 | then false | |
524 | 488 | else true | |
525 | 489 | let receiveNFT = if (if (if ((caller == issuer)) | |
526 | 490 | then (bidOwner != "") | |
527 | 491 | else false) | |
528 | 492 | then (bidId != "") | |
529 | 493 | else false) | |
530 | 494 | then addressFromStringValue(bidOwner) | |
531 | 495 | else i.caller | |
532 | 496 | let assetIdBid = if (!(isDefined(assetId))) | |
533 | 497 | then "WAVES" | |
534 | 498 | else toBase58String(value(assetId)) | |
535 | 499 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
536 | 500 | let bidDelOld = DeleteEntry((bidDataKey + "_OPEN")) | |
537 | 501 | let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((bidData + "_") + toString(date))) | |
538 | 502 | let soldKey = ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer) | |
539 | 503 | let soldValue = if (!(isBid)) | |
540 | 504 | then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT)) | |
541 | 505 | else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT)) | |
542 | 506 | let soldData = StringEntry(soldKey, soldValue) | |
543 | 507 | let commissionsWithAgent = if ((amountForAgent != 0)) | |
544 | 508 | then [ScriptTransfer(Address(fromBase58String(feeReceiver)), (amountForSign - amountForAgent), assetId), ScriptTransfer(Address(fromBase58String(agent)), amountForAgent, assetId)] | |
545 | 509 | else [ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId)] | |
546 | 510 | let commissionsWithPublicAgent = if ((amountForPublicAgent != 0)) | |
547 | 511 | then [ScriptTransfer(Address(fromBase58String(publicAgent)), amountForPublicAgent, assetId), ScriptTransfer(Address(fromBase58String(issuer)), (amountForCreator - amountForPublicAgent), assetId)] | |
548 | 512 | else [ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId)] | |
549 | 513 | let txToCaller = if (isSponsored) | |
550 | 514 | then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)] | |
551 | 515 | else nil | |
552 | 516 | let buyRes = ((([IntegerEntry(keyIssued(issuer, artId), newAmountSold), StringEntry(("nft_" + toBase58String(idNFT)), soldKey), IntegerEntry("total_nft_issued", (totalNFT + 1)), IntegerEntry(keyEndSale(issuer, artId), 0), BooleanEntry(keyOnSale(issuer, artId), sellStatus), issueNFT, ScriptTransfer(receiveNFT, 1, idNFT)] ++ commissionsWithAgent) ++ commissionsWithPublicAgent) ++ txToCaller) | |
553 | 517 | if (isBid) | |
554 | 518 | then [soldData, bidUpdate, bidDelOld] :: buyRes | |
555 | 519 | else soldData :: buyRes | |
556 | 520 | } | |
557 | 521 | } | |
558 | 522 | } | |
559 | 523 | } | |
560 | 524 | } | |
561 | 525 | } | |
562 | 526 | } | |
563 | 527 | ||
564 | 528 | ||
565 | 529 | func asString (bv) = match bv { | |
566 | 530 | case bv0: String => | |
567 | 531 | bv0 | |
568 | 532 | case _ => | |
569 | 533 | throw("Sponsored Public Key String expected") | |
570 | 534 | } | |
571 | 535 | ||
572 | 536 | ||
573 | 537 | @Callable(invoke) | |
574 | 538 | func setConf (key,val) = { | |
575 | 539 | let caller = toString(invoke.caller) | |
576 | 540 | if (containsElement([chris, toString(this)], caller)) | |
577 | 541 | then if (contains(key, "conf_")) | |
578 | 542 | then [StringEntry(key, val)] | |
579 | 543 | else throw("Entries starting with conf_ only") | |
580 | 544 | else throw("You are not allowed to change this") | |
581 | 545 | } | |
582 | 546 | ||
583 | 547 | ||
584 | 548 | ||
585 | 549 | @Callable(i) | |
586 | - | func addArtwork (sha256Hash,signID,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = { | |
587 | - | let $t02047220545 = idCallerDateSponsored(i, pubKey) | |
588 | - | let artId = $t02047220545._1 | |
589 | - | let caller = $t02047220545._2 | |
590 | - | let date = $t02047220545._3 | |
591 | - | let isSponsored = $t02047220545._4 | |
592 | - | if (!(validateHash(sha256Hash))) | |
593 | - | then throw("Hash should be 64 characters maximum") | |
550 | + | func addArtwork (name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = { | |
551 | + | let $t02074820821 = idCallerDateSponsored(i, pubKey) | |
552 | + | let artId = $t02074820821._1 | |
553 | + | let caller = $t02074820821._2 | |
554 | + | let date = $t02074820821._3 | |
555 | + | let isSponsored = $t02074820821._4 | |
556 | + | let $t02083120900 = setLIcence(cidLicence, sha256Licence) | |
557 | + | let licenceCID = $t02083120900._1 | |
558 | + | let licenceHash = $t02083120900._2 | |
559 | + | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
560 | + | if ((validateArtwork != "")) | |
561 | + | then throw("Something went wrong!") | |
594 | 562 | else { | |
595 | - | let $t02064620715 = setLIcence(cidLicence, sha256Licence) | |
596 | - | let licenceCID = $t02064620715._1 | |
597 | - | let licenceHash = $t02064620715._2 | |
598 | - | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
599 | - | if ((validateArtwork != "")) | |
600 | - | then throw("Something went wrong!") | |
563 | + | let whitelisted_drop = (checkWhitelist((caller + "_free_drops")) > 0) | |
564 | + | let $t02119921287 = if (whitelisted_drop) | |
565 | + | then $Tuple2(0, artAssetId) | |
566 | + | else validatePayment(i) | |
567 | + | let amount = $t02119921287._1 | |
568 | + | let assetId = $t02119921287._2 | |
569 | + | if (!(isDefined(amount))) | |
570 | + | then throw("Something went wrong") | |
601 | 571 | else { | |
602 | - | let whitelisted_drop = (checkWhitelist((caller + "_free_drops")) > 0) | |
603 | - | let $t02101421098 = if (whitelisted_drop) | |
604 | - | then $Tuple2(0, signID) | |
605 | - | else validatePayment(i) | |
606 | - | let amount = $t02101421098._1 | |
607 | - | let assetId = $t02101421098._2 | |
608 | - | if (!(isDefined(amount))) | |
609 | - | then throw("Something went wrong") | |
610 | - | else { | |
611 | - | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
612 | - | if ((entryExist != "")) | |
613 | - | then throw("You already added it") | |
614 | - | else { | |
615 | - | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
616 | - | if ((hashExist != "")) | |
617 | - | then throw("Hash already registered") | |
618 | - | else { | |
619 | - | let isSignCertified = checkSignCertificate(signID, caller, sha256Hash) | |
620 | - | if (!(isSignCertified)) | |
621 | - | then throw("Sign Certificate not found for this address.") | |
622 | - | else { | |
623 | - | let decrease_whitelist_drop = if (whitelisted_drop) | |
624 | - | then invoke(whitelistDapp, "useFreeDrop", [caller], nil) | |
625 | - | else unit | |
626 | - | if ((decrease_whitelist_drop == decrease_whitelist_drop)) | |
627 | - | then { | |
628 | - | let txToCaller = if (isSponsored) | |
629 | - | then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)] | |
630 | - | else nil | |
631 | - | ([StringEntry(keyOwnerByHash(sha256Hash), caller), StringEntry(keyTxidByHashOwner(sha256Hash, caller), artId), IntegerEntry(keyDate(caller, artId), date), StringEntry(keyName(caller, artId), name), StringEntry(keyDesc(caller, artId), description), StringEntry(keyDisplayCid(caller, artId), cidDisplay), StringEntry(keyExportCid(caller, artId), cidExport), StringEntry(keyExportHash(caller, artId), sha256Export), StringEntry(keyLicenceHash(caller, artId), licenceHash), StringEntry(keyLicenceCid(caller, artId), licenceCID), StringEntry(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), StringEntry(keySignID(caller, artId), signID), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyidBySignid(caller, signID), artId), StringEntry(keyHashByTxidAddr(caller, artId), sha256Hash), StringEntry(keyCrawler(caller, artId), crawler), IntegerEntry(keyRoyalties(caller, artId), royalties), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, signAssetId)] ++ txToCaller) | |
632 | - | } | |
633 | - | else throw("Strict value is not equal to itself.") | |
634 | - | } | |
635 | - | } | |
636 | - | } | |
572 | + | let decrease_whitelist_drop = if (whitelisted_drop) | |
573 | + | then invoke(whitelistDapp, "useFreeDrop", [caller], nil) | |
574 | + | else unit | |
575 | + | if ((decrease_whitelist_drop == decrease_whitelist_drop)) | |
576 | + | then { | |
577 | + | let txToCaller = if (isSponsored) | |
578 | + | then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)] | |
579 | + | else nil | |
580 | + | ([IntegerEntry(keyDate(caller, artId), date), StringEntry(keyName(caller, artId), name), StringEntry(keyDesc(caller, artId), description), StringEntry(keyDisplayCid(caller, artId), cidDisplay), StringEntry(keyExportCid(caller, artId), cidExport), StringEntry(keyExportHash(caller, artId), sha256Export), StringEntry(keyLicenceHash(caller, artId), licenceHash), StringEntry(keyLicenceCid(caller, artId), licenceCID), StringEntry(keyType(caller, artId), type), StringEntry(keyTags(caller, artId), tags), IntegerEntry(keyMaxMint(caller, artId), 0), IntegerEntry(keyIssued(caller, artId), 0), BooleanEntry(keyOnSale(caller, artId), false), StringEntry(keyCrawler(caller, artId), crawler), IntegerEntry(keyRoyalties(caller, artId), royalties), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, artAssetId)] ++ txToCaller) | |
637 | 581 | } | |
582 | + | else throw("Strict value is not equal to itself.") | |
638 | 583 | } | |
639 | 584 | } | |
640 | 585 | } | |
641 | 586 | ||
642 | 587 | ||
643 | 588 | ||
644 | 589 | @Callable(i) | |
645 | 590 | func updateArtwork (txid,name,description,tags,type,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence,crawler,royalties,pubKey) = if (!(dappRunning)) | |
646 | 591 | then throw(maintenanceMSG) | |
647 | 592 | else { | |
648 | - | let $ | |
649 | - | let id = $ | |
650 | - | let caller = $ | |
651 | - | let date = $ | |
652 | - | let isSponsored = $ | |
653 | - | let $ | |
654 | - | let licenceCID = $ | |
655 | - | let licenceHash = $ | |
593 | + | let $t02320223272 = idCallerDateSponsored(i, pubKey) | |
594 | + | let id = $t02320223272._1 | |
595 | + | let caller = $t02320223272._2 | |
596 | + | let date = $t02320223272._3 | |
597 | + | let isSponsored = $t02320223272._4 | |
598 | + | let $t02328223351 = setLIcence(cidLicence, sha256Licence) | |
599 | + | let licenceCID = $t02328223351._1 | |
600 | + | let licenceHash = $t02328223351._2 | |
656 | 601 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, royalties) | |
657 | 602 | if ((validateArtwork != "")) | |
658 | 603 | then throw("Something went wrong!") | |
659 | 604 | else { | |
660 | 605 | let entryExist = getStringByKey(keyName(caller, txid)) | |
661 | 606 | if ((entryExist == "")) | |
662 | 607 | then throw("Entry not found") | |
663 | 608 | else { | |
664 | 609 | let flag = getStringByKey(keyFlag(caller, txid)) | |
665 | 610 | if ((flag == "ILLEGAL")) | |
666 | 611 | then throw("Cannot update ILLEGAL artwork") | |
667 | 612 | else if (!(isArtMinted(caller, txid))) | |
668 | 613 | then { | |
669 | 614 | let txToCaller = if (isSponsored) | |
670 | 615 | then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)] | |
671 | 616 | else nil | |
672 | 617 | ([StringEntry(keyName(caller, txid), name), StringEntry(keyDesc(caller, txid), description), StringEntry(keyDisplayCid(caller, txid), cidDisplay), StringEntry(keyExportCid(caller, txid), cidExport), StringEntry(keyExportHash(caller, txid), sha256Export), StringEntry(keyLicenceCid(caller, txid), licenceCID), StringEntry(keyLicenceHash(caller, txid), licenceHash), StringEntry(keyTags(caller, txid), tags), StringEntry(keyType(caller, txid), type), StringEntry(keyCrawler(caller, txid), crawler), IntegerEntry(keyRoyalties(caller, txid), royalties)] ++ txToCaller) | |
673 | 618 | } | |
674 | 619 | else throw("Already minted") | |
675 | 620 | } | |
676 | 621 | } | |
677 | 622 | } | |
678 | 623 | ||
679 | 624 | ||
680 | 625 | ||
681 | 626 | @Callable(i) | |
682 | 627 | func flagArtwork (artId,addr,flag,note) = { | |
683 | - | let $ | |
684 | - | let id = $ | |
685 | - | let caller = $ | |
628 | + | let $t02497825012 = idCallerDate(i) | |
629 | + | let id = $t02497825012._1 | |
630 | + | let caller = $t02497825012._2 | |
686 | 631 | if (containsElement([chris, toString(this)], caller)) | |
687 | 632 | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag)) | |
688 | 633 | then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyNote(addr, artId), note)] | |
689 | 634 | else throw(("Unknow status " + flag)) | |
690 | 635 | else throw("You are not allowed") | |
691 | 636 | } | |
692 | 637 | ||
693 | 638 | ||
694 | 639 | ||
695 | 640 | @Callable(i) | |
696 | 641 | func deleteArtwork (artId,addr) = { | |
697 | - | let $ | |
698 | - | let id = $ | |
699 | - | let caller = $ | |
642 | + | let $t02544825482 = idCallerDate(i) | |
643 | + | let id = $t02544825482._1 | |
644 | + | let caller = $t02544825482._2 | |
700 | 645 | let addrToUse = if (containsElement([chris, toString(this)], caller)) | |
701 | 646 | then addr | |
702 | 647 | else caller | |
703 | 648 | let entryExist = valueOrErrorMessage(getStringByKey(keyName(addrToUse, artId)), "No art matching for this address") | |
704 | 649 | if ((entryExist == "")) | |
705 | 650 | then throw("No art matching for this address") | |
706 | 651 | else { | |
707 | 652 | let sha256Hash = getStringByKey(keyHashByTxidAddr(addrToUse, artId)) | |
708 | - | if ((sha256Hash == "")) | |
709 | - | then throw("No art hash matching for this address") | |
710 | - | else { | |
711 | - | let signID = getStringByKey(keySignID(addrToUse, artId)) | |
712 | - | if ((signID == "")) | |
713 | - | then throw("No SIGN ID matching") | |
714 | - | else { | |
715 | - | let dataToDelete = [DeleteEntry(keyDate(addrToUse, artId)), DeleteEntry(keyName(addrToUse, artId)), DeleteEntry(keyDesc(addrToUse, artId)), DeleteEntry(keyDisplayCid(addrToUse, artId)), DeleteEntry(keyExportCid(addrToUse, artId)), DeleteEntry(keyExportHash(addrToUse, artId)), DeleteEntry(keyLicenceHash(addrToUse, artId)), DeleteEntry(keyLicenceCid(addrToUse, artId)), DeleteEntry(keyType(addrToUse, artId)), DeleteEntry(keyTags(addrToUse, artId)), DeleteEntry(keyMaxMint(addrToUse, artId)), DeleteEntry(keySignID(addrToUse, artId)), DeleteEntry(keyIssued(addrToUse, artId)), DeleteEntry(keyOnSale(addrToUse, artId)), DeleteEntry(keyFlag(addrToUse, artId)), DeleteEntry(keyPrice(addrToUse, artId)), DeleteEntry(keyAssetIdAccepted(addrToUse, artId)), DeleteEntry(keyOwnerByHash(sha256Hash)), DeleteEntry(keyidBySignid(addrToUse, signID)), DeleteEntry(keyTxidByHashOwner(sha256Hash, addrToUse)), DeleteEntry(keyEndSale(addrToUse, artId)), DeleteEntry(keyNote(addrToUse, artId)), DeleteEntry(keyCrawler(addrToUse, artId)), DeleteEntry(keyRoyalties(addrToUse, artId))] | |
716 | - | if (!(isArtMinted(addrToUse, artId))) | |
717 | - | then if (!(dappRunning)) | |
718 | - | then throw(maintenanceMSG) | |
719 | - | else dataToDelete | |
720 | - | else if (containsElement([chris, toString(this)], caller)) | |
721 | - | then dataToDelete | |
722 | - | else throw("Art already minted, you cannot delete it") | |
723 | - | } | |
724 | - | } | |
653 | + | let signID = if ((sha256Hash == "")) | |
654 | + | then getStringByKey(keySignID(addrToUse, artId)) | |
655 | + | else "" | |
656 | + | let signID_legacy = if ((signID == "")) | |
657 | + | then nil | |
658 | + | else [DeleteEntry(keyidBySignid(addrToUse, signID))] | |
659 | + | let dataToDelete = ([DeleteEntry(keyDate(addrToUse, artId)), DeleteEntry(keyName(addrToUse, artId)), DeleteEntry(keyDesc(addrToUse, artId)), DeleteEntry(keyDisplayCid(addrToUse, artId)), DeleteEntry(keyExportCid(addrToUse, artId)), DeleteEntry(keyExportHash(addrToUse, artId)), DeleteEntry(keyLicenceHash(addrToUse, artId)), DeleteEntry(keyLicenceCid(addrToUse, artId)), DeleteEntry(keyType(addrToUse, artId)), DeleteEntry(keyTags(addrToUse, artId)), DeleteEntry(keyMaxMint(addrToUse, artId)), DeleteEntry(keySignID(addrToUse, artId)), DeleteEntry(keyIssued(addrToUse, artId)), DeleteEntry(keyOnSale(addrToUse, artId)), DeleteEntry(keyFlag(addrToUse, artId)), DeleteEntry(keyPrice(addrToUse, artId)), DeleteEntry(keyAssetIdAccepted(addrToUse, artId)), DeleteEntry(keyOwnerByHash(sha256Hash)), DeleteEntry(keyEndSale(addrToUse, artId)), DeleteEntry(keyNote(addrToUse, artId)), DeleteEntry(keyCrawler(addrToUse, artId)), DeleteEntry(keyRoyalties(addrToUse, artId))] ++ signID_legacy) | |
660 | + | if (!(isArtMinted(addrToUse, artId))) | |
661 | + | then if (!(dappRunning)) | |
662 | + | then throw(maintenanceMSG) | |
663 | + | else dataToDelete | |
664 | + | else if (containsElement([chris, toString(this)], caller)) | |
665 | + | then dataToDelete | |
666 | + | else throw("Art already minted, you cannot delete it") | |
725 | 667 | } | |
726 | 668 | } | |
727 | 669 | ||
728 | 670 | ||
729 | 671 | ||
730 | 672 | @Callable(i) | |
731 | 673 | func sellArtwork (artId,price,maxMint,assetId,blockEnd,pubKey) = { | |
732 | - | let $ | |
733 | - | let id = $ | |
734 | - | let caller = $ | |
735 | - | let date = $ | |
736 | - | let isSponsored = $ | |
674 | + | let $t02826128331 = idCallerDateSponsored(i, pubKey) | |
675 | + | let id = $t02826128331._1 | |
676 | + | let caller = $t02826128331._2 | |
677 | + | let date = $t02826128331._3 | |
678 | + | let isSponsored = $t02826128331._4 | |
737 | 679 | let artworkName = getStringByKey(keyName(caller, artId)) | |
738 | 680 | if ((artworkName == "")) | |
739 | 681 | then throw("This art doesn't match your account") | |
740 | 682 | else { | |
741 | 683 | let flag = getStringByKey(keyFlag(caller, artId)) | |
742 | 684 | if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag)) | |
743 | 685 | then throw("Flagged artwork") | |
744 | 686 | else { | |
745 | 687 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
746 | 688 | if ((0 > blockEnd)) | |
747 | 689 | then throw("Negative end") | |
748 | 690 | else if (if ((blockEnd > 0)) | |
749 | 691 | then if ((maxMint != 1)) | |
750 | 692 | then true | |
751 | 693 | else (price != 0) | |
752 | 694 | else false) | |
753 | 695 | then throw("Timed offer only allowed for unique edition and offer only") | |
754 | 696 | else { | |
755 | 697 | let baseHeight = if ((blockEnd == 0)) | |
756 | 698 | then 0 | |
757 | 699 | else height | |
758 | 700 | if (!(acceptedAssetIds(assetId))) | |
759 | 701 | then throw("Something went wrong!") | |
760 | - | else if (!(validateMinSell( | |
702 | + | else if (!(validateMinSell(price))) | |
761 | 703 | then throw("Something went wrong!") | |
762 | 704 | else { | |
763 | 705 | let checkUser = validateUser(caller) | |
764 | 706 | if ((checkUser != "")) | |
765 | 707 | then throw(checkUser) | |
766 | 708 | else { | |
767 | 709 | let amountSold = getIntegerByKey(keyIssued(caller, artId)) | |
768 | 710 | let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId)) | |
769 | 711 | if ((maxMint > 100)) | |
770 | 712 | then throw("100 editions max per artwork") | |
771 | 713 | else if (if ((amountSold != 0)) | |
772 | 714 | then (amountSold == maxCanSell) | |
773 | 715 | else false) | |
774 | 716 | then throw("Max edition reached.") | |
775 | 717 | else if (if ((amountSold > 0)) | |
776 | 718 | then (maxCanSell != maxMint) | |
777 | 719 | else false) | |
778 | 720 | then throw("Cannot change maximum issuable anymore") | |
779 | 721 | else if (if ((bidNbr > 0)) | |
780 | 722 | then (maxCanSell != maxMint) | |
781 | 723 | else false) | |
782 | 724 | then throw("Cannot change maximum issuable with active orders") | |
783 | 725 | else { | |
784 | 726 | let sellStatus = if (if ((price > 0)) | |
785 | 727 | then (maxMint > 0) | |
786 | 728 | else false) | |
787 | 729 | then true | |
788 | 730 | else false | |
789 | 731 | let txToCaller = if (isSponsored) | |
790 | 732 | then [ScriptTransfer(Address(fromBase58String(caller)), 0, unit)] | |
791 | 733 | else nil | |
792 | 734 | ([BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), StringEntry(keyAssetIdAccepted(caller, artId), assetId), IntegerEntry(keyEndSale(caller, artId), (baseHeight + blockEnd))] ++ txToCaller) | |
793 | 735 | } | |
794 | 736 | } | |
795 | 737 | } | |
796 | 738 | } | |
797 | 739 | } | |
798 | 740 | } | |
799 | 741 | } | |
800 | 742 | ||
801 | 743 | ||
802 | 744 | ||
803 | 745 | @Callable(i) | |
804 | 746 | func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "", "") | |
805 | 747 | ||
806 | 748 | ||
807 | 749 | ||
808 | 750 | @Callable(i) | |
809 | 751 | func setBid (artId,issuer) = { | |
810 | - | let $ | |
811 | - | let id = $ | |
812 | - | let caller = $ | |
813 | - | let date = $ | |
814 | - | let $ | |
815 | - | let payment = $ | |
816 | - | let amount = $ | |
752 | + | let $t03070430744 = idCallerDate(i) | |
753 | + | let id = $t03070430744._1 | |
754 | + | let caller = $t03070430744._2 | |
755 | + | let date = $t03070430744._3 | |
756 | + | let $t03074930785 = isPayment(i) | |
757 | + | let payment = $t03074930785._1 | |
758 | + | let amount = $t03074930785._2 | |
817 | 759 | let assetId = if (!(isDefined(payment.assetId))) | |
818 | 760 | then "WAVES" | |
819 | 761 | else toBase58String(value(payment.assetId)) | |
820 | 762 | let blockEnd = getIntegerByKey(keyEndSale(issuer, artId)) | |
821 | 763 | if (if ((blockEnd != 0)) | |
822 | 764 | then (height >= blockEnd) | |
823 | 765 | else false) | |
824 | 766 | then throw("Sale ended.") | |
825 | 767 | else { | |
826 | 768 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
827 | 769 | if (!(acceptedAssetIds(assetId))) | |
828 | 770 | then throw("asset not accepted") | |
829 | - | else if (!(validateMinSell( | |
771 | + | else if (!(validateMinSell(amount))) | |
830 | 772 | then throw("Wrong min sell") | |
831 | 773 | else { | |
832 | 774 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
833 | 775 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
834 | 776 | if ((0 >= maxCanSell)) | |
835 | 777 | then throw("No max edition set for this artwork") | |
836 | 778 | else if ((amountSold >= maxCanSell)) | |
837 | 779 | then throw("Sold out, you cannot bid") | |
838 | 780 | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr + 1))] | |
839 | 781 | } | |
840 | 782 | } | |
841 | 783 | } | |
842 | 784 | ||
843 | 785 | ||
844 | 786 | ||
845 | 787 | @Callable(i) | |
846 | 788 | func acceptBid (artId,issuer,bidId,bidOwner,pubKey) = buyMint(i, artId, issuer, bidId, bidOwner, pubKey) | |
847 | 789 | ||
848 | 790 | ||
849 | 791 | ||
850 | 792 | @Callable(i) | |
851 | 793 | func cancelBid (artId,issuer,bidId,bidOwner) = { | |
852 | - | let $ | |
853 | - | let id = $ | |
854 | - | let caller = $ | |
855 | - | let date = $ | |
794 | + | let $t03210932170 = idCallerDate(i) | |
795 | + | let id = $t03210932170._1 | |
796 | + | let caller = $t03210932170._2 | |
797 | + | let date = $t03210932170._3 | |
856 | 798 | if (if ((caller != bidOwner)) | |
857 | 799 | then (caller != issuer) | |
858 | 800 | else false) | |
859 | 801 | then throw("You cannot do this action") | |
860 | 802 | else { | |
861 | 803 | let returnMoneyTo = if ((caller == issuer)) | |
862 | 804 | then bidOwner | |
863 | 805 | else caller | |
864 | 806 | let bidNbr = getIntegerByKey(("current_bidamount_" + artId)) | |
865 | 807 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
866 | 808 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
867 | 809 | if ((bidData == "")) | |
868 | 810 | then throw("Bid not found") | |
869 | 811 | else { | |
870 | 812 | let bidDataArr = split(bidData, "_") | |
871 | 813 | let assetId = getBidAssetId(bidDataArr[0]) | |
872 | 814 | let bidStatus = "CANCELED" | |
873 | 815 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), IntegerEntry(("current_bidamount_" + artId), (bidNbr - 1)), ScriptTransfer(Address(fromBase58String(returnMoneyTo)), parseIntValue(bidDataArr[1]), assetId)] | |
874 | 816 | } | |
875 | 817 | } | |
876 | 818 | } | |
877 | 819 | ||
878 | 820 | ||
879 | 821 | @Verifier(tx) | |
880 | 822 | func verifier () = match tx { | |
881 | 823 | case inv: InvokeScriptTransaction => | |
882 | 824 | if (if (if (if ((inv.function == "addArtwork")) | |
883 | 825 | then (inv.dApp == this) | |
884 | 826 | else false) | |
885 | 827 | then (inv.fee == 500000) | |
886 | 828 | else false) | |
887 | 829 | then (inv.feeAssetId == unit) | |
888 | 830 | else false) | |
889 | - | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[ | |
831 | + | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[11]))) | |
890 | 832 | else if (if (if (if ((inv.function == "updateArtwork")) | |
891 | 833 | then (inv.dApp == this) | |
892 | 834 | else false) | |
893 | 835 | then (inv.fee == 500000) | |
894 | 836 | else false) | |
895 | 837 | then (inv.feeAssetId == unit) | |
896 | 838 | else false) | |
897 | 839 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[12]))) | |
898 | 840 | else if (if (if (if ((inv.function == "sellArtwork")) | |
899 | 841 | then (inv.dApp == this) | |
900 | 842 | else false) | |
901 | 843 | then (inv.fee == 500000) | |
902 | 844 | else false) | |
903 | 845 | then (inv.feeAssetId == unit) | |
904 | 846 | else false) | |
905 | 847 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[5]))) | |
906 | 848 | else if (if (if (if ((inv.function == "acceptBid")) | |
907 | 849 | then (inv.dApp == this) | |
908 | 850 | else false) | |
909 | 851 | then (inv.fee == 500000) | |
910 | 852 | else false) | |
911 | 853 | then (inv.feeAssetId == unit) | |
912 | 854 | else false) | |
913 | 855 | then sigVerify_128Kb(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[4]))) | |
914 | 856 | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
915 | 857 | case _ => | |
916 | 858 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
917 | 859 | } | |
918 | 860 |
github/deemru/w8io/026f985 104.46 ms ◑