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