tx · AXkpMFTsvHYbYy78WopdFM3uPigxPJ49HeaV5kU5eZ6D 3NBquYd5fTq8HRDkagrtNLQ3HmWd7wcZoeL: -0.01400000 Waves 2021.02.09 11:37 [1390415] smart account 3NBquYd5fTq8HRDkagrtNLQ3HmWd7wcZoeL > SELF 0.00000000 Waves
{ "type": 13, "id": "AXkpMFTsvHYbYy78WopdFM3uPigxPJ49HeaV5kU5eZ6D", "fee": 1400000, "feeAssetId": null, "timestamp": 1612859885139, "version": 2, "chainId": 84, "sender": "3NBquYd5fTq8HRDkagrtNLQ3HmWd7wcZoeL", "senderPublicKey": "7irc2VpK5czoyVdwrCuQqr2JU9ZaZnEZn8RPChnfi3yL", "proofs": [ "3BjYezJm1b8RrhH6T8wzWq8RQUKNQPfW1Ay3c6G9DP1rFkg4fBEuR8d8pXLSgFTd5T5dJqD6e4B5pE3axE3RgnRh" ], "script": "base64:AAIEAAAAAAAAAFcIAhIOCgwICAgICAgBCAgICAgSDQoLCAgICAgBCAgICAgSBQoDCAgIEgQKAggIEgYKBAgBAQgSBAoCCAgSBAoCCAgSBgoECAgICBIGCgQICAgIEgMKAQgAAABDAAAAAAh1bml0VGVzdAcAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAIc2lnbkRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAAC2ZlZVJlY2VpdmVyAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAIdXNlckRhcHADBQAAAAh1bml0VGVzdAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTXQ0UkdNRXlqU1dZQW9jVFBxZDU1d2RIUVFCM1BVMlVDbQkBAAAABXZhbHVlAAAAAQkABCYAAAABAg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uc2ZlcgAAAAMJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAAAhiaWRPd25lcgkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIFAAAACmJpZERhdGFBcnIAAAAAAAAAAAEFAAAAB2Fzc2V0SWQFAAAAA25pbAAAAAFpAQAAAAtkZWxldGVFbnRyeQAAAAEAAAAFZW50cnkEAAAABmNhbGxlcgkABCUAAAABCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQAAAAAAAAIFAAAABmNhbGxlcgUAAAAFY2hyaXMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFZW50cnkFAAAAA25pbAkAAAIAAAABAgAAAAJubwAAAABcaxaU", "height": 1390415, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FLQeUW8kFqVPCgBrZGG1NgNW69q9G4vL5ibtWLxYWQgn Next: CD7MpHk8PdFLugx4qk3qNRgQx7n1d38hxuTo99LGkAzr Diff:
Old | New | Differences | |
---|---|---|---|
233 | 233 | ||
234 | 234 | ||
235 | 235 | func validatePayment (i) = { | |
236 | - | let $ | |
237 | - | let payment = $ | |
238 | - | let amount = $ | |
236 | + | let $t089098945 = isPayment(i) | |
237 | + | let payment = $t089098945._1 | |
238 | + | let amount = $t089098945._2 | |
239 | 239 | let assetId = if (if (isDefined(payment.assetId)) | |
240 | 240 | then (payment.assetId == signAssetId) | |
241 | 241 | else false) | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | func validatePriceAssetId (i,priceAssetId,artworkPrice) = { | |
262 | - | let $ | |
263 | - | let payment = $ | |
264 | - | let amount = $ | |
262 | + | let $t096459681 = isPayment(i) | |
263 | + | let payment = $t096459681._1 | |
264 | + | let amount = $t096459681._2 | |
265 | 265 | let assetId = if (!(isDefined(payment.assetId))) | |
266 | 266 | then unit | |
267 | 267 | else if (if ((size(priceAssetId) > 0)) | |
310 | 310 | then (price != 0) | |
311 | 311 | else false) | |
312 | 312 | then true | |
313 | - | else if (if ((assetId == toBase58String(wavesAssetId))) | |
313 | + | else if (if (if ((assetId == toBase58String(wavesAssetId))) | |
314 | + | then true | |
315 | + | else (assetId == "WAVES")) | |
314 | 316 | then (minSellWaves > price) | |
315 | 317 | else false) | |
316 | 318 | then (price != 0) | |
343 | 345 | ||
344 | 346 | ||
345 | 347 | func buyMint (i,artId,issuer,bidId,bidOwner) = { | |
346 | - | let $ | |
347 | - | let id = $ | |
348 | - | let caller = $ | |
349 | - | let date = $ | |
348 | + | let $t01180611844 = idCallerDate(i) | |
349 | + | let id = $t01180611844._1 | |
350 | + | let caller = $t01180611844._2 | |
351 | + | let date = $t01180611844._3 | |
350 | 352 | let totalNFT = getIntegerByKey("total_nft_issued") | |
351 | 353 | let signID = getStringByKey(keySignID(issuer, artId)) | |
352 | 354 | let artworkName = getStringByKey(keyName(issuer, artId)) | |
373 | 375 | else (0 >= maxCanSell)) | |
374 | 376 | then throw("Art not for sale") | |
375 | 377 | else { | |
376 | - | let $ | |
378 | + | let $t01269112820 = if (isBid) | |
377 | 379 | then getPriceAssetIdFromBid(bidDataKey) | |
378 | 380 | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
379 | - | let amount = $ | |
380 | - | let assetId = $ | |
381 | + | let amount = $t01269112820._1 | |
382 | + | let assetId = $t01269112820._2 | |
381 | 383 | let isWhitelisted = checkWhitelist(issuer) | |
382 | 384 | let cut = if ((isWhitelisted > height)) | |
383 | 385 | then 0 | |
429 | 431 | ||
430 | 432 | @Callable(i) | |
431 | 433 | func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
432 | - | let $ | |
433 | - | let artId = $ | |
434 | - | let caller = $ | |
435 | - | let date = $ | |
434 | + | let $t01584615887 = idCallerDate(i) | |
435 | + | let artId = $t01584615887._1 | |
436 | + | let caller = $t01584615887._2 | |
437 | + | let date = $t01584615887._3 | |
436 | 438 | if (!(validateHash(sha256Hash))) | |
437 | 439 | then throw("Hash should be 64 characters maximum") | |
438 | 440 | else { | |
439 | - | let $ | |
440 | - | let licenceCID = $ | |
441 | - | let licenceHash = $ | |
441 | + | let $t01598816057 = setLIcence(cidLicence, sha256Licence) | |
442 | + | let licenceCID = $t01598816057._1 | |
443 | + | let licenceHash = $t01598816057._2 | |
442 | 444 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
443 | 445 | if ((validateArtwork != "")) | |
444 | 446 | then throw("Something went wrong!") | |
445 | 447 | else { | |
446 | - | let $ | |
447 | - | let amount = $ | |
448 | - | let assetId = $ | |
448 | + | let $t01628516327 = validatePayment(i) | |
449 | + | let amount = $t01628516327._1 | |
450 | + | let assetId = $t01628516327._2 | |
449 | 451 | if (!(isDefined(amount))) | |
450 | 452 | then throw("Something went wrong") | |
451 | 453 | else { | |
475 | 477 | then throw(maintenanceMSG) | |
476 | 478 | else { | |
477 | 479 | let caller = toBase58String(i.caller.bytes) | |
478 | - | let $ | |
479 | - | let licenceCID = $ | |
480 | - | let licenceHash = $ | |
480 | + | let $t01904819117 = setLIcence(cidLicence, sha256Licence) | |
481 | + | let licenceCID = $t01904819117._1 | |
482 | + | let licenceHash = $t01904819117._2 | |
481 | 483 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
482 | 484 | if ((validateArtwork != "")) | |
483 | 485 | then throw("Something went wrong!") | |
500 | 502 | ||
501 | 503 | @Callable(i) | |
502 | 504 | func flagArtwork (artId,addr,flag) = { | |
503 | - | let $ | |
504 | - | let id = $ | |
505 | - | let caller = $ | |
505 | + | let $t02059020623 = idCallerDate(i) | |
506 | + | let id = $t02059020623._1 | |
507 | + | let caller = $t02059020623._2 | |
506 | 508 | if (containsElement([chris, joep, toString(this)], caller)) | |
507 | 509 | then if ((flag == "CONSENT")) | |
508 | 510 | then [StringEntry(keyFlag(addr, artId), flag)] | |
522 | 524 | ||
523 | 525 | @Callable(i) | |
524 | 526 | func deleteArtwork (artId,addr) = { | |
525 | - | let $ | |
526 | - | let id = $ | |
527 | - | let caller = $ | |
527 | + | let $t02164221675 = idCallerDate(i) | |
528 | + | let id = $t02164221675._1 | |
529 | + | let caller = $t02164221675._2 | |
528 | 530 | let addrToUse = if (containsElement([chris, joep, toString(this)], caller)) | |
529 | 531 | then addr | |
530 | 532 | else caller | |
557 | 559 | ||
558 | 560 | @Callable(i) | |
559 | 561 | func sellArtwork (artId,price,maxMint,assetId) = { | |
560 | - | let $ | |
561 | - | let id = $ | |
562 | - | let caller = $ | |
562 | + | let $t02404124074 = idCallerDate(i) | |
563 | + | let id = $t02404124074._1 | |
564 | + | let caller = $t02404124074._2 | |
563 | 565 | let artworkName = getStringByKey(keyName(caller, artId)) | |
564 | 566 | if ((artworkName == "")) | |
565 | 567 | then throw("This art doesn't match your account") | |
610 | 612 | ||
611 | 613 | @Callable(i) | |
612 | 614 | func setBid (artId,issuer) = { | |
613 | - | let $ | |
614 | - | let id = $ | |
615 | - | let caller = $ | |
616 | - | let date = $ | |
617 | - | let $ | |
618 | - | let payment = $ | |
619 | - | let amount = $ | |
615 | + | let $t02587025908 = idCallerDate(i) | |
616 | + | let id = $t02587025908._1 | |
617 | + | let caller = $t02587025908._2 | |
618 | + | let date = $t02587025908._3 | |
619 | + | let $t02591325949 = isPayment(i) | |
620 | + | let payment = $t02591325949._1 | |
621 | + | let amount = $t02591325949._2 | |
620 | 622 | let assetId = if (!(isDefined(payment.assetId))) | |
621 | 623 | then "WAVES" | |
622 | 624 | else toBase58String(value(payment.assetId)) | |
647 | 649 | ||
648 | 650 | @Callable(i) | |
649 | 651 | func cancelBid (artId,issuer,bidId,bidOwner) = { | |
650 | - | let $ | |
651 | - | let id = $ | |
652 | - | let caller = $ | |
653 | - | let date = $ | |
652 | + | let $t02693026968 = idCallerDate(i) | |
653 | + | let id = $t02693026968._1 | |
654 | + | let caller = $t02693026968._2 | |
655 | + | let date = $t02693026968._3 | |
654 | 656 | if (if ((caller != bidOwner)) | |
655 | 657 | then (caller != issuer) | |
656 | 658 | else false) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let unitTest = false | |
5 | 5 | ||
6 | 6 | let oracleFee = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
7 | 7 | ||
8 | 8 | let signDapp = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
9 | 9 | ||
10 | 10 | let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
11 | 11 | ||
12 | 12 | let userDapp = if (unitTest) | |
13 | 13 | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
14 | 14 | else value(addressFromString("3MwDZagoYEiNfQLc31cGpYoaE54MGMwoFrZ")) | |
15 | 15 | ||
16 | 16 | let whitelistDapp = value(addressFromString("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq")) | |
17 | 17 | ||
18 | 18 | let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
19 | 19 | ||
20 | 20 | let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
21 | 21 | ||
22 | 22 | let wavesAssetId = base58'' | |
23 | 23 | ||
24 | 24 | let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
25 | 25 | ||
26 | 26 | let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
27 | 27 | ||
28 | 28 | let signCut = 7 | |
29 | 29 | ||
30 | 30 | let usdnWaveCut = 10 | |
31 | 31 | ||
32 | 32 | let defaultLicence = "bafybeifuyo4pqu54ismqgtb6e4h6kkvgx7zg4u3zibh2r7y6mb64i7bzza/licence.pdf" | |
33 | 33 | ||
34 | 34 | let defaultHashLicence = "a87758c354e30a9e78fb84fa3a0010a5090ab20df0be11ad45b5720cc187e639" | |
35 | 35 | ||
36 | 36 | let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true) | |
37 | 37 | ||
38 | 38 | let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "") | |
39 | 39 | ||
40 | 40 | let userSuspended = "SUSPENDED" | |
41 | 41 | ||
42 | 42 | let userRemoved = "REMOVED" | |
43 | 43 | ||
44 | 44 | let userUnregistered = "UNREGISTERED" | |
45 | 45 | ||
46 | 46 | let userAllowed = "ALLOWED" | |
47 | 47 | ||
48 | 48 | func getStringByKeyFromUsers (key) = valueOrElse(getString(userDapp, key), "") | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func getStringByKey (key) = valueOrElse(getString(this, key), "") | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func getIntegerByKeyFromOracle (key) = valueOrErrorMessage(getInteger(oracleFee, key), "Integer undefine or 0 in oracle") | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func checkWhitelist (key) = valueOrElse(getInteger(whitelistDapp, key), 0) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signDapp, ((("data_fc_" + signID) + "_") + Owner)) { | |
67 | 67 | case a: String => | |
68 | 68 | if (contains(a, sha256Hash)) | |
69 | 69 | then true | |
70 | 70 | else false | |
71 | 71 | case _ => | |
72 | 72 | false | |
73 | 73 | } | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func validateCID (cid) = if (contains(cid, "/")) | |
77 | 77 | then if (if ((76 > size(cid))) | |
78 | 78 | then (size(split(cid, "/")[0]) == 59) | |
79 | 79 | else false) | |
80 | 80 | then (16 > size(split(cid, "/")[1])) | |
81 | 81 | else false | |
82 | 82 | else false | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func validateHash (hash) = (size(hash) == 64) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func keyUserStatus (caller) = ("user_status_" + caller) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func keyDate (caller,artId) = ((("art_date_" + artId) + "_") + caller) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func keyName (caller,artId) = ((("art_name_" + artId) + "_") + caller) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func keyDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func keyDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func keyExportHash (caller,artId) = ((("art_export_hash_" + artId) + "_") + caller) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func keyExportCid (caller,artId) = ((("art_export_cid_" + artId) + "_") + caller) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func keyMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func keySignID (caller,artId) = ((("art_signid_" + artId) + "_") + caller) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func keyIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func keyOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func keyLicenceHash (caller,artId) = ((("art_licence_hash_" + artId) + "_") + caller) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func keyLicenceCid (caller,artId) = ((("art_licence_cid_" + artId) + "_") + caller) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func keyTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func keyType (caller,artId) = ((("art_type_" + artId) + "_") + caller) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func keyPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func keyAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func keyFlag (caller,artId) = ((("art_flag_" + artId) + "_") + caller) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func keyHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func keyOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func keyidBySignid (caller,signId) = ((("get_artidbysignid_" + signId) + "_") + caller) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func keyTxidByHashOwner (sha256Hash,caller) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + caller))))) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func validateAllCID (cidDisplay,cidExport,cidLicence) = if (!(validateCID(cidDisplay))) | |
155 | 155 | then throw("Wrong Display CID") | |
156 | 156 | else if (!(validateCID(cidExport))) | |
157 | 157 | then throw("Wrong Export CID") | |
158 | 158 | else if (if ((cidLicence != "")) | |
159 | 159 | then !(validateCID(cidLicence)) | |
160 | 160 | else false) | |
161 | 161 | then throw("Wrong Licence CID") | |
162 | 162 | else true | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func validateAllHash (sha256Export,sha256Licence) = if (!(validateHash(sha256Export))) | |
166 | 166 | then throw("Export Hash 64 char. max") | |
167 | 167 | else if (!(validateHash(sha256Licence))) | |
168 | 168 | then throw("Licence Hash 64 char. max") | |
169 | 169 | else true | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func validateString (str,max) = if ((size(str) == 0)) | |
173 | 173 | then throw("Field cannot be is empty") | |
174 | 174 | else if ((size(str) > max)) | |
175 | 175 | then throw((str + " is too long")) | |
176 | 176 | else true | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func validateUser (caller) = { | |
180 | 180 | let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered) | |
181 | 181 | if (if ((userStatus == userUnregistered)) | |
182 | 182 | then true | |
183 | 183 | else (userStatus == userAllowed)) | |
184 | 184 | then "Register this account first with \"Account\" tab" | |
185 | 185 | else if ((userStatus == userSuspended)) | |
186 | 186 | then "Account suspended" | |
187 | 187 | else if ((userStatus == userRemoved)) | |
188 | 188 | then "Account removed" | |
189 | 189 | else "" | |
190 | 190 | } | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func setLIcence (cidLicence,sha256Licence) = { | |
194 | 194 | let cid = if ((size(cidLicence) == 0)) | |
195 | 195 | then defaultLicence | |
196 | 196 | else cidLicence | |
197 | 197 | let hash = if ((size(sha256Licence) == 0)) | |
198 | 198 | then defaultHashLicence | |
199 | 199 | else sha256Licence | |
200 | 200 | $Tuple2(cid, hash) | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func validateArtworkData (caller,cidDisplay,cidExport,licenceCID,sha256Export,licenceHash,name,description,tags,maxmint) = { | |
205 | 205 | let checkUser = validateUser(caller) | |
206 | 206 | if ((checkUser != "")) | |
207 | 207 | then throw(checkUser) | |
208 | 208 | else if ((size(cidDisplay) == 0)) | |
209 | 209 | then throw("Display CID cannot be empty") | |
210 | 210 | else if (!(validateAllCID(cidDisplay, cidExport, licenceCID))) | |
211 | 211 | then throw("Problem with CID") | |
212 | 212 | else if (!(validateAllHash(sha256Export, licenceHash))) | |
213 | 213 | then throw("Problem with Hashes") | |
214 | 214 | else if (!(validateString(name, 100))) | |
215 | 215 | then throw("100 Char. max name") | |
216 | 216 | else if (!(validateString(description, 1000))) | |
217 | 217 | then throw("1000 Char. max description") | |
218 | 218 | else if ((size(split(tags, ",")) > 5)) | |
219 | 219 | then throw("5 tags max.") | |
220 | 220 | else if ((maxmint > 10)) | |
221 | 221 | then throw("10 editions max per artwork") | |
222 | 222 | else "" | |
223 | 223 | } | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func isPayment (i) = if ((size(i.payments) == 0)) | |
227 | 227 | then throw("No payment attached") | |
228 | 228 | else { | |
229 | 229 | let payment = value(i.payments[0]) | |
230 | 230 | let amount = value(payment.amount) | |
231 | 231 | $Tuple2(payment, amount) | |
232 | 232 | } | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | func validatePayment (i) = { | |
236 | - | let $ | |
237 | - | let payment = $ | |
238 | - | let amount = $ | |
236 | + | let $t089098945 = isPayment(i) | |
237 | + | let payment = $t089098945._1 | |
238 | + | let amount = $t089098945._2 | |
239 | 239 | let assetId = if (if (isDefined(payment.assetId)) | |
240 | 240 | then (payment.assetId == signAssetId) | |
241 | 241 | else false) | |
242 | 242 | then payment.assetId | |
243 | 243 | else throw("Only SIGN token accepted as transaction fee") | |
244 | 244 | let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) | |
245 | 245 | if ((amount != currentCertificationPrice)) | |
246 | 246 | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
247 | 247 | else $Tuple2(amount, assetId) | |
248 | 248 | } | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func isArtMinted (addrToUse,artId) = match getInteger(this, keyIssued(addrToUse, artId)) { | |
252 | 252 | case b: Int => | |
253 | 253 | if ((b != 0)) | |
254 | 254 | then true | |
255 | 255 | else false | |
256 | 256 | case _ => | |
257 | 257 | false | |
258 | 258 | } | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | func validatePriceAssetId (i,priceAssetId,artworkPrice) = { | |
262 | - | let $ | |
263 | - | let payment = $ | |
264 | - | let amount = $ | |
262 | + | let $t096459681 = isPayment(i) | |
263 | + | let payment = $t096459681._1 | |
264 | + | let amount = $t096459681._2 | |
265 | 265 | let assetId = if (!(isDefined(payment.assetId))) | |
266 | 266 | then unit | |
267 | 267 | else if (if ((size(priceAssetId) > 0)) | |
268 | 268 | then (toBase58String(value(payment.assetId)) == priceAssetId) | |
269 | 269 | else false) | |
270 | 270 | then payment.assetId | |
271 | 271 | else throw("Wrong asset id") | |
272 | 272 | if (if ((assetId == unit)) | |
273 | 273 | then (priceAssetId != "") | |
274 | 274 | else false) | |
275 | 275 | then throw("Wrong asset id") | |
276 | 276 | else if ((artworkPrice != amount)) | |
277 | 277 | then throw("Payment don't match") | |
278 | 278 | else $Tuple2(amount, assetId) | |
279 | 279 | } | |
280 | 280 | ||
281 | 281 | ||
282 | 282 | func acceptedAssetIds (assetId) = if (if (if (if ((assetId != toBase58String(signAssetId))) | |
283 | 283 | then (assetId != toBase58String(wavesAssetId)) | |
284 | 284 | else false) | |
285 | 285 | then (assetId != "WAVES") | |
286 | 286 | else false) | |
287 | 287 | then (assetId != toBase58String(usdnAssetId)) | |
288 | 288 | else false) | |
289 | 289 | then throw("Only SIGN, USDN or WAVES accepted") | |
290 | 290 | else true | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | func validateMinSell (assetId,price) = { | |
294 | 294 | let minSellWaves = if (unitTest) | |
295 | 295 | then 1 | |
296 | 296 | else getIntegerByKeyFromOracle("waves_min_sell") | |
297 | 297 | let minSellUsdn = 1000000 | |
298 | 298 | let minSellSign = if (unitTest) | |
299 | 299 | then 1 | |
300 | 300 | else (getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) * 2) | |
301 | 301 | if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
302 | 302 | then (minSellUsdn > price) | |
303 | 303 | else false) | |
304 | 304 | then (price != 0) | |
305 | 305 | else false) | |
306 | 306 | then true | |
307 | 307 | else if (if ((assetId == toBase58String(signAssetId))) | |
308 | 308 | then (minSellSign > price) | |
309 | 309 | else false) | |
310 | 310 | then (price != 0) | |
311 | 311 | else false) | |
312 | 312 | then true | |
313 | - | else if (if ((assetId == toBase58String(wavesAssetId))) | |
313 | + | else if (if (if ((assetId == toBase58String(wavesAssetId))) | |
314 | + | then true | |
315 | + | else (assetId == "WAVES")) | |
314 | 316 | then (minSellWaves > price) | |
315 | 317 | else false) | |
316 | 318 | then (price != 0) | |
317 | 319 | else false) | |
318 | 320 | then throw("Wrong minimum sell price") | |
319 | 321 | else true | |
320 | 322 | } | |
321 | 323 | ||
322 | 324 | ||
323 | 325 | func getPriceAssetIdFromBid (bidDataKey) = { | |
324 | 326 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
325 | 327 | if ((bidData == "")) | |
326 | 328 | then throw("Bid not found") | |
327 | 329 | else { | |
328 | 330 | let bidDataArr = split(bidData, "_") | |
329 | 331 | let bidAmount = parseIntValue(bidDataArr[1]) | |
330 | 332 | let bidAssetId = if ((bidDataArr[0] == "WAVES")) | |
331 | 333 | then unit | |
332 | 334 | else fromBase58String(bidDataArr[0]) | |
333 | 335 | if ((0 >= bidAmount)) | |
334 | 336 | then throw("Wrong amount") | |
335 | 337 | else $Tuple2(bidAmount, bidAssetId) | |
336 | 338 | } | |
337 | 339 | } | |
338 | 340 | ||
339 | 341 | ||
340 | 342 | func idCallerDate (i) = if (!(dappRunning)) | |
341 | 343 | then throw(maintenanceMSG) | |
342 | 344 | else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp) | |
343 | 345 | ||
344 | 346 | ||
345 | 347 | func buyMint (i,artId,issuer,bidId,bidOwner) = { | |
346 | - | let $ | |
347 | - | let id = $ | |
348 | - | let caller = $ | |
349 | - | let date = $ | |
348 | + | let $t01180611844 = idCallerDate(i) | |
349 | + | let id = $t01180611844._1 | |
350 | + | let caller = $t01180611844._2 | |
351 | + | let date = $t01180611844._3 | |
350 | 352 | let totalNFT = getIntegerByKey("total_nft_issued") | |
351 | 353 | let signID = getStringByKey(keySignID(issuer, artId)) | |
352 | 354 | let artworkName = getStringByKey(keyName(issuer, artId)) | |
353 | 355 | if ((artworkName == "")) | |
354 | 356 | then throw("Art doesn't exist") | |
355 | 357 | else { | |
356 | 358 | let isOnSale = getBooleanByKey(keyOnSale(issuer, artId)) | |
357 | 359 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
358 | 360 | let artworkPrice = getIntegerByKey(keyPrice(issuer, artId)) | |
359 | 361 | let priceAssetId = getStringByKey(keyAssetIdAccepted(issuer, artId)) | |
360 | 362 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
361 | 363 | let isBid = if (if (if ((caller == issuer)) | |
362 | 364 | then (bidOwner != "") | |
363 | 365 | else false) | |
364 | 366 | then (bidId != "") | |
365 | 367 | else false) | |
366 | 368 | then true | |
367 | 369 | else false | |
368 | 370 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
369 | 371 | if (if (if ((0 >= artworkPrice)) | |
370 | 372 | then true | |
371 | 373 | else !(isOnSale)) | |
372 | 374 | then true | |
373 | 375 | else (0 >= maxCanSell)) | |
374 | 376 | then throw("Art not for sale") | |
375 | 377 | else { | |
376 | - | let $ | |
378 | + | let $t01269112820 = if (isBid) | |
377 | 379 | then getPriceAssetIdFromBid(bidDataKey) | |
378 | 380 | else validatePriceAssetId(i, priceAssetId, artworkPrice) | |
379 | - | let amount = $ | |
380 | - | let assetId = $ | |
381 | + | let amount = $t01269112820._1 | |
382 | + | let assetId = $t01269112820._2 | |
381 | 383 | let isWhitelisted = checkWhitelist(issuer) | |
382 | 384 | let cut = if ((isWhitelisted > height)) | |
383 | 385 | then 0 | |
384 | 386 | else if ((priceAssetId == toBase58String(signAssetId))) | |
385 | 387 | then signCut | |
386 | 388 | else usdnWaveCut | |
387 | 389 | let amountForSign = fraction(amount, cut, 100) | |
388 | 390 | let amountForCreator = (amount - amountForSign) | |
389 | 391 | if ((amountSold == maxCanSell)) | |
390 | 392 | then throw("Art sold out") | |
391 | 393 | else { | |
392 | 394 | let newAmountSold = (amountSold + 1) | |
393 | 395 | let issueMeta = ((((((((((("Creator: " + issuer) + ", | |
394 | 396 | ArtID: ") + artId) + ", | |
395 | 397 | SignID: ") + signID) + ", | |
396 | 398 | Artwork name: ") + artworkName) + ", | |
397 | 399 | Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) | |
398 | 400 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
399 | 401 | let idNFT = calculateAssetId(issueNFT) | |
400 | 402 | let sellStatus = if ((newAmountSold == maxCanSell)) | |
401 | 403 | then false | |
402 | 404 | else true | |
403 | 405 | let receiveNFT = if (if (if ((caller == issuer)) | |
404 | 406 | then (bidOwner != "") | |
405 | 407 | else false) | |
406 | 408 | then (bidId != "") | |
407 | 409 | else false) | |
408 | 410 | then addressFromStringValue(bidOwner) | |
409 | 411 | else i.caller | |
410 | 412 | let buyRes = [IntegerEntry(keyIssued(issuer, artId), newAmountSold), StringEntry(("nft_" + toBase58String(idNFT)), ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer)), IntegerEntry("total_nft_issued", (totalNFT + 1)), BooleanEntry(keyOnSale(issuer, artId), sellStatus), issueNFT, ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId), ScriptTransfer(receiveNFT, 1, idNFT)] | |
411 | 413 | let assetIdBid = if (!(isDefined(assetId))) | |
412 | 414 | then "WAVES" | |
413 | 415 | else toBase58String(value(assetId)) | |
414 | 416 | let getBidData = getStringByKey((bidDataKey + "_OPEN")) | |
415 | 417 | let bidDelOld = DeleteEntry((bidDataKey + "_OPEN")) | |
416 | 418 | let bidUpdate = StringEntry((bidDataKey + "_CLOSED"), ((getBidData + "_") + toString(date))) | |
417 | 419 | let soldValue = if (!(isBid)) | |
418 | 420 | then ((((((((((caller + "_") + toString(date)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT)) | |
419 | 421 | else ((((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT)) | |
420 | 422 | let soldData = StringEntry(((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer), soldValue) | |
421 | 423 | if (isBid) | |
422 | 424 | then [soldData, bidUpdate, bidDelOld] :: buyRes | |
423 | 425 | else soldData :: buyRes | |
424 | 426 | } | |
425 | 427 | } | |
426 | 428 | } | |
427 | 429 | } | |
428 | 430 | ||
429 | 431 | ||
430 | 432 | @Callable(i) | |
431 | 433 | func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
432 | - | let $ | |
433 | - | let artId = $ | |
434 | - | let caller = $ | |
435 | - | let date = $ | |
434 | + | let $t01584615887 = idCallerDate(i) | |
435 | + | let artId = $t01584615887._1 | |
436 | + | let caller = $t01584615887._2 | |
437 | + | let date = $t01584615887._3 | |
436 | 438 | if (!(validateHash(sha256Hash))) | |
437 | 439 | then throw("Hash should be 64 characters maximum") | |
438 | 440 | else { | |
439 | - | let $ | |
440 | - | let licenceCID = $ | |
441 | - | let licenceHash = $ | |
441 | + | let $t01598816057 = setLIcence(cidLicence, sha256Licence) | |
442 | + | let licenceCID = $t01598816057._1 | |
443 | + | let licenceHash = $t01598816057._2 | |
442 | 444 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
443 | 445 | if ((validateArtwork != "")) | |
444 | 446 | then throw("Something went wrong!") | |
445 | 447 | else { | |
446 | - | let $ | |
447 | - | let amount = $ | |
448 | - | let assetId = $ | |
448 | + | let $t01628516327 = validatePayment(i) | |
449 | + | let amount = $t01628516327._1 | |
450 | + | let assetId = $t01628516327._2 | |
449 | 451 | if (!(isDefined(amount))) | |
450 | 452 | then throw("Something went wrong") | |
451 | 453 | else { | |
452 | 454 | let entryExist = getStringByKey(keyTxidByHashOwner(sha256Hash, caller)) | |
453 | 455 | if ((entryExist != "")) | |
454 | 456 | then throw("You already added it") | |
455 | 457 | else { | |
456 | 458 | let hashExist = getStringByKey(keyOwnerByHash(sha256Hash)) | |
457 | 459 | if ((hashExist != "")) | |
458 | 460 | then throw("Hash already registered") | |
459 | 461 | else { | |
460 | 462 | let isSignCertified = checkSignCertificate(signID, caller, sha256Hash) | |
461 | 463 | if (!(isSignCertified)) | |
462 | 464 | then throw("Sign Certificate not found for this address.") | |
463 | 465 | else [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), maxmint), 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), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)] | |
464 | 466 | } | |
465 | 467 | } | |
466 | 468 | } | |
467 | 469 | } | |
468 | 470 | } | |
469 | 471 | } | |
470 | 472 | ||
471 | 473 | ||
472 | 474 | ||
473 | 475 | @Callable(i) | |
474 | 476 | func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning)) | |
475 | 477 | then throw(maintenanceMSG) | |
476 | 478 | else { | |
477 | 479 | let caller = toBase58String(i.caller.bytes) | |
478 | - | let $ | |
479 | - | let licenceCID = $ | |
480 | - | let licenceHash = $ | |
480 | + | let $t01904819117 = setLIcence(cidLicence, sha256Licence) | |
481 | + | let licenceCID = $t01904819117._1 | |
482 | + | let licenceHash = $t01904819117._2 | |
481 | 483 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
482 | 484 | if ((validateArtwork != "")) | |
483 | 485 | then throw("Something went wrong!") | |
484 | 486 | else { | |
485 | 487 | let entryExist = getStringByKey(keyName(caller, txid)) | |
486 | 488 | if ((entryExist == "")) | |
487 | 489 | then throw("Entry not found") | |
488 | 490 | else { | |
489 | 491 | let flag = getStringByKey(keyFlag(caller, txid)) | |
490 | 492 | if ((flag == "ILLEGAL")) | |
491 | 493 | then throw("Cannot update ILLEGAL artwork") | |
492 | 494 | else if (!(isArtMinted(caller, txid))) | |
493 | 495 | then [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), IntegerEntry(keyMaxMint(caller, txid), maxmint), StringEntry(keyTags(caller, txid), tags), StringEntry(keyType(caller, txid), type)] | |
494 | 496 | else throw("Already minted") | |
495 | 497 | } | |
496 | 498 | } | |
497 | 499 | } | |
498 | 500 | ||
499 | 501 | ||
500 | 502 | ||
501 | 503 | @Callable(i) | |
502 | 504 | func flagArtwork (artId,addr,flag) = { | |
503 | - | let $ | |
504 | - | let id = $ | |
505 | - | let caller = $ | |
505 | + | let $t02059020623 = idCallerDate(i) | |
506 | + | let id = $t02059020623._1 | |
507 | + | let caller = $t02059020623._2 | |
506 | 508 | if (containsElement([chris, joep, toString(this)], caller)) | |
507 | 509 | then if ((flag == "CONSENT")) | |
508 | 510 | then [StringEntry(keyFlag(addr, artId), flag)] | |
509 | 511 | else if ((flag == "")) | |
510 | 512 | then [StringEntry(keyFlag(addr, artId), flag)] | |
511 | 513 | else if ((flag == "CHANGE_REQUIRED")) | |
512 | 514 | then [StringEntry(keyFlag(addr, artId), flag)] | |
513 | 515 | else if (if ((flag == "ILLEGAL")) | |
514 | 516 | then containsElement([chris, toString(this)], caller) | |
515 | 517 | else false) | |
516 | 518 | then [StringEntry(keyFlag(addr, artId), flag), StringEntry(keyName(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyDesc(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyDisplayCid(addr, artId), ""), StringEntry(keyExportCid(addr, artId), ""), StringEntry(keyLicenceCid(addr, artId), "")] | |
517 | 519 | else throw(("Unknow status " + flag)) | |
518 | 520 | else throw("You are not allowed") | |
519 | 521 | } | |
520 | 522 | ||
521 | 523 | ||
522 | 524 | ||
523 | 525 | @Callable(i) | |
524 | 526 | func deleteArtwork (artId,addr) = { | |
525 | - | let $ | |
526 | - | let id = $ | |
527 | - | let caller = $ | |
527 | + | let $t02164221675 = idCallerDate(i) | |
528 | + | let id = $t02164221675._1 | |
529 | + | let caller = $t02164221675._2 | |
528 | 530 | let addrToUse = if (containsElement([chris, joep, toString(this)], caller)) | |
529 | 531 | then addr | |
530 | 532 | else caller | |
531 | 533 | let entryExist = valueOrErrorMessage(getStringByKey(keyName(addrToUse, artId)), "No art matching for this address") | |
532 | 534 | if ((entryExist == "")) | |
533 | 535 | then throw("No art matching for this address") | |
534 | 536 | else { | |
535 | 537 | let sha256Hash = getStringByKey(keyHashByTxidAddr(addrToUse, artId)) | |
536 | 538 | if ((sha256Hash == "")) | |
537 | 539 | then throw("No art hash matching for this address") | |
538 | 540 | else { | |
539 | 541 | let signID = getStringByKey(keySignID(addrToUse, artId)) | |
540 | 542 | if ((signID == "")) | |
541 | 543 | then throw("No SIGN ID matching") | |
542 | 544 | else { | |
543 | 545 | 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(addr, artId)), DeleteEntry(keyPrice(addr, artId)), DeleteEntry(keyAssetIdAccepted(addr, artId)), DeleteEntry(keyOwnerByHash(sha256Hash)), DeleteEntry(keyidBySignid(addrToUse, signID)), DeleteEntry(keyTxidByHashOwner(sha256Hash, addrToUse))] | |
544 | 546 | if (!(isArtMinted(addrToUse, artId))) | |
545 | 547 | then if (!(dappRunning)) | |
546 | 548 | then throw(maintenanceMSG) | |
547 | 549 | else dataToDelete | |
548 | 550 | else if (containsElement([chris, toString(this)], caller)) | |
549 | 551 | then dataToDelete | |
550 | 552 | else throw("Art already minted, you cannot delete it") | |
551 | 553 | } | |
552 | 554 | } | |
553 | 555 | } | |
554 | 556 | } | |
555 | 557 | ||
556 | 558 | ||
557 | 559 | ||
558 | 560 | @Callable(i) | |
559 | 561 | func sellArtwork (artId,price,maxMint,assetId) = { | |
560 | - | let $ | |
561 | - | let id = $ | |
562 | - | let caller = $ | |
562 | + | let $t02404124074 = idCallerDate(i) | |
563 | + | let id = $t02404124074._1 | |
564 | + | let caller = $t02404124074._2 | |
563 | 565 | let artworkName = getStringByKey(keyName(caller, artId)) | |
564 | 566 | if ((artworkName == "")) | |
565 | 567 | then throw("This art doesn't match your account") | |
566 | 568 | else { | |
567 | 569 | let exportCID = getStringByKey(keyExportCid(caller, artId)) | |
568 | 570 | if ((size(split(exportCID, "/")[0]) != 59)) | |
569 | 571 | then throw("You cannot sell art with no export file") | |
570 | 572 | else if (!(acceptedAssetIds(assetId))) | |
571 | 573 | then throw("Something went wrong!") | |
572 | 574 | else if (!(validateMinSell(assetId, price))) | |
573 | 575 | then throw("Something went wrong!") | |
574 | 576 | else { | |
575 | 577 | let checkUser = validateUser(caller) | |
576 | 578 | if ((checkUser != "")) | |
577 | 579 | then throw(checkUser) | |
578 | 580 | else { | |
579 | 581 | let amountSold = getIntegerByKey(keyIssued(caller, artId)) | |
580 | 582 | let maxCanSell = getIntegerByKey(keyMaxMint(caller, artId)) | |
581 | 583 | if ((maxMint > 10)) | |
582 | 584 | then throw("10 editions max per artwork") | |
583 | 585 | else if (if ((amountSold != 0)) | |
584 | 586 | then (amountSold == maxCanSell) | |
585 | 587 | else false) | |
586 | 588 | then throw("Max edition reached.") | |
587 | 589 | else if (if ((amountSold > 0)) | |
588 | 590 | then (maxCanSell != maxMint) | |
589 | 591 | else false) | |
590 | 592 | then throw("Cannot change maximum issuable anymore") | |
591 | 593 | else { | |
592 | 594 | let sellStatus = if (if ((price > 0)) | |
593 | 595 | then (maxMint > 0) | |
594 | 596 | else false) | |
595 | 597 | then true | |
596 | 598 | else false | |
597 | 599 | [BooleanEntry(keyOnSale(caller, artId), sellStatus), IntegerEntry(keyPrice(caller, artId), price), IntegerEntry(keyMaxMint(caller, artId), maxMint), StringEntry(keyAssetIdAccepted(caller, artId), assetId)] | |
598 | 600 | } | |
599 | 601 | } | |
600 | 602 | } | |
601 | 603 | } | |
602 | 604 | } | |
603 | 605 | ||
604 | 606 | ||
605 | 607 | ||
606 | 608 | @Callable(i) | |
607 | 609 | func buyArtwork (artId,issuer) = buyMint(i, artId, issuer, "", "") | |
608 | 610 | ||
609 | 611 | ||
610 | 612 | ||
611 | 613 | @Callable(i) | |
612 | 614 | func setBid (artId,issuer) = { | |
613 | - | let $ | |
614 | - | let id = $ | |
615 | - | let caller = $ | |
616 | - | let date = $ | |
617 | - | let $ | |
618 | - | let payment = $ | |
619 | - | let amount = $ | |
615 | + | let $t02587025908 = idCallerDate(i) | |
616 | + | let id = $t02587025908._1 | |
617 | + | let caller = $t02587025908._2 | |
618 | + | let date = $t02587025908._3 | |
619 | + | let $t02591325949 = isPayment(i) | |
620 | + | let payment = $t02591325949._1 | |
621 | + | let amount = $t02591325949._2 | |
620 | 622 | let assetId = if (!(isDefined(payment.assetId))) | |
621 | 623 | then "WAVES" | |
622 | 624 | else toBase58String(value(payment.assetId)) | |
623 | 625 | if (!(acceptedAssetIds(assetId))) | |
624 | 626 | then throw("Something went wrong!") | |
625 | 627 | else if (!(validateMinSell(assetId, amount))) | |
626 | 628 | then throw("Something went wrong!") | |
627 | 629 | else { | |
628 | 630 | let amountSold = getIntegerByKey(keyIssued(issuer, artId)) | |
629 | 631 | let maxCanSell = getIntegerByKey(keyMaxMint(issuer, artId)) | |
630 | 632 | if ((amountSold >= maxCanSell)) | |
631 | 633 | then throw("Sold out, you cannot bid") | |
632 | 634 | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(date)))] | |
633 | 635 | } | |
634 | 636 | } | |
635 | 637 | ||
636 | 638 | ||
637 | 639 | ||
638 | 640 | @Callable(i) | |
639 | 641 | func acceptBid (artId,issuer,bidId,bidOwner) = { | |
640 | 642 | let caller = toBase58String(i.caller.bytes) | |
641 | 643 | if ((caller != issuer)) | |
642 | 644 | then throw("You cannot do this action") | |
643 | 645 | else buyMint(i, artId, issuer, bidId, bidOwner) | |
644 | 646 | } | |
645 | 647 | ||
646 | 648 | ||
647 | 649 | ||
648 | 650 | @Callable(i) | |
649 | 651 | func cancelBid (artId,issuer,bidId,bidOwner) = { | |
650 | - | let $ | |
651 | - | let id = $ | |
652 | - | let caller = $ | |
653 | - | let date = $ | |
652 | + | let $t02693026968 = idCallerDate(i) | |
653 | + | let id = $t02693026968._1 | |
654 | + | let caller = $t02693026968._2 | |
655 | + | let date = $t02693026968._3 | |
654 | 656 | if (if ((caller != bidOwner)) | |
655 | 657 | then (caller != issuer) | |
656 | 658 | else false) | |
657 | 659 | then throw("You cannot do this action") | |
658 | 660 | else { | |
659 | 661 | let bidDataKey = ((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) | |
660 | 662 | let bidData = getStringByKey((bidDataKey + "_OPEN")) | |
661 | 663 | if ((bidData == "")) | |
662 | 664 | then throw("Bid not found") | |
663 | 665 | else { | |
664 | 666 | let bidDataArr = split(bidData, "_") | |
665 | 667 | let assetId = if ((bidDataArr[0] == "WAVES")) | |
666 | 668 | then unit | |
667 | 669 | else fromBase58String(bidDataArr[0]) | |
668 | 670 | let bidStatus = if ((caller == bidOwner)) | |
669 | 671 | then "CANCELED" | |
670 | 672 | else "REJECTED" | |
671 | 673 | [DeleteEntry((bidDataKey + "_OPEN")), StringEntry(((bidDataKey + "_") + bidStatus), ((bidData + "_") + toString(date))), ScriptTransfer(Address(fromBase58String(bidOwner)), parseIntValue(bidDataArr[1]), assetId)] | |
672 | 674 | } | |
673 | 675 | } | |
674 | 676 | } | |
675 | 677 | ||
676 | 678 | ||
677 | 679 | ||
678 | 680 | @Callable(i) | |
679 | 681 | func deleteEntry (entry) = { | |
680 | 682 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
681 | 683 | if ((caller == chris)) | |
682 | 684 | then [DeleteEntry(entry)] | |
683 | 685 | else throw("no") | |
684 | 686 | } | |
685 | 687 | ||
686 | 688 |
github/deemru/w8io/026f985 83.20 ms ◑