tx · GLJKD2fnS1x23FQSNnUMx5m8enZ1uf5i6iECwpHQZggs 3NBquYd5fTq8HRDkagrtNLQ3HmWd7wcZoeL: -0.01400000 Waves 2021.01.22 13:20 [1364522] smart account 3NBquYd5fTq8HRDkagrtNLQ3HmWd7wcZoeL > SELF 0.00000000 Waves
{ "type": 13, "id": "GLJKD2fnS1x23FQSNnUMx5m8enZ1uf5i6iECwpHQZggs", "fee": 1400000, "feeAssetId": null, "timestamp": 1611310866707, "version": 2, "chainId": 84, "sender": "3NBquYd5fTq8HRDkagrtNLQ3HmWd7wcZoeL", "senderPublicKey": "7irc2VpK5czoyVdwrCuQqr2JU9ZaZnEZn8RPChnfi3yL", "proofs": [ "4DWeFoLoJwtVM4wi7oBcKHXZn7nMzMLF5njVdLTG67ac2MD7LPt9TYwMXXv3uMAV7iXPgwoiGtEA2J3bhHN5fbZs" ], "script": "base64:AAIEAAAAAAAAAE8IAhIOCgwICAgICAgBCAgICAgSDQoLCAgICAgBCAgICAgSBQoDCAgIEgQKAggIEgYKBAgBAQgSBAoCCAgSBAoCCAgSBgoECAgICBIDCgEIAAAAQQAAAAAIdW5pdFRlc3QHAAAAAAlvcmFjbGVGZWUJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAACHNpZ25EYXBwCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOQzI4aFNpdnJtc1RVWGFZRDF4NkwzNjJKNFpwVW5vVGRCAAAAAAtmZWVSZWNlaXZlcgIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAACHVzZXJEYXBwAwUAAAAIdW5pdFRlc3QJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM010NFJHTUV5alNXWUFvY1RQcWQ1NXdkSFFRQjNQVTJVQ20JAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAA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lRW50cnkAAAABAAAABWVudHJ5BAAAAAZjYWxsZXIJAAQlAAAAAQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5AwkAAAAAAAACBQAAAAZjYWxsZXIFAAAABWNocmlzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABWVudHJ5BQAAAANuaWwJAAACAAAAAQIAAAACbm8AAAAAIvkBlg==", "height": 1364522, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: A5LiwtMDwgZ1KvJ5eM6vHr6WaFVxzoSa1115CAr5fexm Next: DbwPZqDw6T6hTbJcHJYg4zvreTj2HXRhssSJu4mHoRFU Diff:
Old | New | Differences | |
---|---|---|---|
313 | 313 | let bidData = getStringByKey((((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) + "_OPEN")) | |
314 | 314 | if (!(isDefined(bidData))) | |
315 | 315 | then throw("Bid not found") | |
316 | - | else { | |
317 | - | let bidDataArr = split(bidData, "_") | |
318 | - | let bidAmount = parseIntValue(bidDataArr[1]) | |
319 | - | let bidAssetId = if ((bidDataArr[0] == "WAVES")) | |
320 | - | then unit | |
321 | - | else fromBase58String(bidDataArr[0]) | |
322 | - | if ((0 >= bidAmount)) | |
323 | - | then throw("Wrong amount") | |
324 | - | else $Tuple2(bidAmount, bidAssetId) | |
325 | - | } | |
316 | + | else if (true) | |
317 | + | then throw(bidData) | |
318 | + | else { | |
319 | + | let bidDataArr = split(bidData, "_") | |
320 | + | let bidAmount = parseIntValue(bidDataArr[1]) | |
321 | + | let bidAssetId = if ((bidDataArr[0] == "WAVES")) | |
322 | + | then unit | |
323 | + | else fromBase58String(bidDataArr[0]) | |
324 | + | if ((0 >= bidAmount)) | |
325 | + | then throw("Wrong amount") | |
326 | + | else $Tuple2(bidAmount, bidAssetId) | |
327 | + | } | |
326 | 328 | } | |
327 | 329 | ||
328 | 330 | ||
354 | 356 | else (0 >= maxCanSell)) | |
355 | 357 | then throw("Art not for sale") | |
356 | 358 | else { | |
357 | - | let $ | |
359 | + | let $t01297813176 = if (if (if ((caller == issuer)) | |
358 | 360 | then (bidOwner != "") | |
359 | 361 | else false) | |
360 | 362 | then (bidId != "") | |
361 | 363 | else false) | |
362 | 364 | then getPriceAssetIdFromBid(artId, issuer, bidId, bidOwner) | |
363 | 365 | else validatePriceAssetId(invoke, priceAssetId, artworkPrice) | |
364 | - | let amount = $ | |
365 | - | let assetId = $ | |
366 | + | let amount = $t01297813176._1 | |
367 | + | let assetId = $t01297813176._2 | |
366 | 368 | let isWhitelisted = checkWhitelist(issuer) | |
367 | 369 | let cut = if ((isWhitelisted > height)) | |
368 | 370 | then 0 | |
433 | 435 | if (!(validateHash(sha256Hash))) | |
434 | 436 | then throw("Hash should be 64 characters maximum") | |
435 | 437 | else { | |
436 | - | let $ | |
437 | - | let licenceCID = $ | |
438 | - | let licenceHash = $ | |
438 | + | let $t01720917278 = setLIcence(cidLicence, sha256Licence) | |
439 | + | let licenceCID = $t01720917278._1 | |
440 | + | let licenceHash = $t01720917278._2 | |
439 | 441 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
440 | 442 | if ((validateArtwork != "")) | |
441 | 443 | then throw("Something went wrong!") | |
442 | 444 | else { | |
443 | - | let $ | |
444 | - | let amount = $ | |
445 | - | let assetId = $ | |
445 | + | let $t01750617553 = validatePayment(invoke) | |
446 | + | let amount = $t01750617553._1 | |
447 | + | let assetId = $t01750617553._2 | |
446 | 448 | if (!(isDefined(amount))) | |
447 | 449 | then throw("Something went wrong") | |
448 | 450 | else { | |
473 | 475 | else { | |
474 | 476 | let updateId = toBase58String(invoke.transactionId) | |
475 | 477 | let caller = toBase58String(invoke.caller.bytes) | |
476 | - | let $ | |
477 | - | let licenceCID = $ | |
478 | - | let licenceHash = $ | |
478 | + | let $t02040820477 = setLIcence(cidLicence, sha256Licence) | |
479 | + | let licenceCID = $t02040820477._1 | |
480 | + | let licenceHash = $t02040820477._2 | |
479 | 481 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
480 | 482 | if ((validateArtwork != "")) | |
481 | 483 | then throw("Something went wrong!") |
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 keyArtDate (caller,artId) = ((("art_date_" + artId) + "_") + caller) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func keyArtName (caller,artId) = ((("art_name_" + artId) + "_") + caller) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func keyArtDesc (caller,artId) = ((("art_desc_" + artId) + "_") + caller) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func keyArtDisplayCid (caller,artId) = ((("art_display_cid_" + artId) + "_") + caller) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func keyArtExportHash (caller,artId) = ((("art_export_hash_" + artId) + "_") + caller) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func keyArtExportCid (caller,artId) = ((("art_export_cid_" + artId) + "_") + caller) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func keyArtMaxMint (caller,artId) = ((("art_maxmint_" + artId) + "_") + caller) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func keyArtSignID (caller,artId) = ((("art_signid_" + artId) + "_") + caller) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func keyArtIssued (caller,artId) = ((("art_issued_" + artId) + "_") + caller) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func keyArtOnSale (caller,artId) = ((("art_onsale_" + artId) + "_") + caller) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func keyArtLicenceHash (caller,artId) = ((("art_licence_hash_" + artId) + "_") + caller) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func keyArtLicenceCid (caller,artId) = ((("art_licence_cid_" + artId) + "_") + caller) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func keyArtTags (caller,artId) = ((("art_tags_" + artId) + "_") + caller) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func keyArtType (caller,artId) = ((("art_type_" + artId) + "_") + caller) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func keyArtPrice (caller,artId) = ((("art_price_" + artId) + "_") + caller) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func keyArtAssetIdAccepted (caller,artId) = ((("art_assetAccepted_" + artId) + "_") + caller) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func keyArtFlag (caller,artId) = ((("art_flag_" + artId) + "_") + caller) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func keyArtHashByTxidAddr (caller,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + caller) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func keyArtOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func keyArtArtidBySignid (caller,signId) = ((("get_artidbysignid_" + signId) + "_") + caller) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func keyArtTxidByHashOwner (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 validatePayment (invoke) = if ((size(invoke.payments) == 0)) | |
227 | 227 | then throw("No payment attached") | |
228 | 228 | else { | |
229 | 229 | let payment = value(invoke.payments[0]) | |
230 | 230 | let amount = value(payment.amount) | |
231 | 231 | let assetId = if (if (isDefined(payment.assetId)) | |
232 | 232 | then (payment.assetId == signAssetId) | |
233 | 233 | else false) | |
234 | 234 | then payment.assetId | |
235 | 235 | else throw("Only SIGN token accepted as transaction fee") | |
236 | 236 | let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) | |
237 | 237 | if ((amount != currentCertificationPrice)) | |
238 | 238 | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
239 | 239 | else $Tuple2(amount, assetId) | |
240 | 240 | } | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | func isArtMinted (addressToUse,artId) = match getInteger(this, keyArtIssued(addressToUse, artId)) { | |
244 | 244 | case b: Int => | |
245 | 245 | if ((b != 0)) | |
246 | 246 | then true | |
247 | 247 | else false | |
248 | 248 | case _ => | |
249 | 249 | false | |
250 | 250 | } | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | func validatePriceAssetId (invoke,priceAssetId,artworkPrice) = { | |
254 | 254 | let payment = value(invoke.payments[0]) | |
255 | 255 | let amount = value(payment.amount) | |
256 | 256 | let assetId = if (!(isDefined(payment.assetId))) | |
257 | 257 | then unit | |
258 | 258 | else if (if ((size(priceAssetId) > 0)) | |
259 | 259 | then (toBase58String(value(payment.assetId)) == priceAssetId) | |
260 | 260 | else false) | |
261 | 261 | then payment.assetId | |
262 | 262 | else throw("Wrong asset id") | |
263 | 263 | if (if ((assetId == unit)) | |
264 | 264 | then (priceAssetId != "") | |
265 | 265 | else false) | |
266 | 266 | then throw("Wrong asset id") | |
267 | 267 | else if ((artworkPrice != amount)) | |
268 | 268 | then throw("Payment don't match") | |
269 | 269 | else $Tuple2(amount, assetId) | |
270 | 270 | } | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | func acceptedAssetIds (assetId) = if (if (if ((assetId != toBase58String(signAssetId))) | |
274 | 274 | then (assetId != toBase58String(wavesAssetId)) | |
275 | 275 | else false) | |
276 | 276 | then (assetId != toBase58String(usdnAssetId)) | |
277 | 277 | else false) | |
278 | 278 | then throw("Only SIGN, USDN or WAVES accepted") | |
279 | 279 | else true | |
280 | 280 | ||
281 | 281 | ||
282 | 282 | func validateMinSell (assetId,price) = { | |
283 | 283 | let minSellWaves = if (unitTest) | |
284 | 284 | then 1 | |
285 | 285 | else getIntegerByKeyFromOracle("waves_min_sell") | |
286 | 286 | let minSellUsdn = 1000000 | |
287 | 287 | let minSellSign = if (unitTest) | |
288 | 288 | then 1 | |
289 | 289 | else (getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) * 2) | |
290 | 290 | if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
291 | 291 | then (minSellUsdn > price) | |
292 | 292 | else false) | |
293 | 293 | then (price != 0) | |
294 | 294 | else false) | |
295 | 295 | then true | |
296 | 296 | else if (if ((assetId == toBase58String(signAssetId))) | |
297 | 297 | then (minSellSign > price) | |
298 | 298 | else false) | |
299 | 299 | then (price != 0) | |
300 | 300 | else false) | |
301 | 301 | then true | |
302 | 302 | else if (if ((assetId == toBase58String(wavesAssetId))) | |
303 | 303 | then (minSellWaves > price) | |
304 | 304 | else false) | |
305 | 305 | then (price != 0) | |
306 | 306 | else false) | |
307 | 307 | then throw("Wrong minimum sell price") | |
308 | 308 | else true | |
309 | 309 | } | |
310 | 310 | ||
311 | 311 | ||
312 | 312 | func getPriceAssetIdFromBid (artId,issuer,bidId,bidOwner) = { | |
313 | 313 | let bidData = getStringByKey((((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) + "_OPEN")) | |
314 | 314 | if (!(isDefined(bidData))) | |
315 | 315 | then throw("Bid not found") | |
316 | - | else { | |
317 | - | let bidDataArr = split(bidData, "_") | |
318 | - | let bidAmount = parseIntValue(bidDataArr[1]) | |
319 | - | let bidAssetId = if ((bidDataArr[0] == "WAVES")) | |
320 | - | then unit | |
321 | - | else fromBase58String(bidDataArr[0]) | |
322 | - | if ((0 >= bidAmount)) | |
323 | - | then throw("Wrong amount") | |
324 | - | else $Tuple2(bidAmount, bidAssetId) | |
325 | - | } | |
316 | + | else if (true) | |
317 | + | then throw(bidData) | |
318 | + | else { | |
319 | + | let bidDataArr = split(bidData, "_") | |
320 | + | let bidAmount = parseIntValue(bidDataArr[1]) | |
321 | + | let bidAssetId = if ((bidDataArr[0] == "WAVES")) | |
322 | + | then unit | |
323 | + | else fromBase58String(bidDataArr[0]) | |
324 | + | if ((0 >= bidAmount)) | |
325 | + | then throw("Wrong amount") | |
326 | + | else $Tuple2(bidAmount, bidAssetId) | |
327 | + | } | |
326 | 328 | } | |
327 | 329 | ||
328 | 330 | ||
329 | 331 | func buyMint (invoke,artId,issuer,bidId,bidOwner) = { | |
330 | 332 | let id = toBase58String(invoke.transactionId) | |
331 | 333 | let caller = toBase58String(invoke.caller.bytes) | |
332 | 334 | let totalNFT = getIntegerByKey("total_nft_issued") | |
333 | 335 | let signID = getStringByKey(keyArtSignID(issuer, artId)) | |
334 | 336 | let artworkName = getStringByKey(keyArtName(issuer, artId)) | |
335 | 337 | if ((artworkName == "")) | |
336 | 338 | then throw("Art doesn't exist") | |
337 | 339 | else { | |
338 | 340 | let displayCID = getStringByKey(keyArtDisplayCid(issuer, artId)) | |
339 | 341 | let exportCID = getStringByKey(keyArtExportCid(issuer, artId)) | |
340 | 342 | let exportHash = getStringByKey(keyArtExportHash(issuer, artId)) | |
341 | 343 | let licenceCID = getStringByKey(keyArtLicenceCid(issuer, artId)) | |
342 | 344 | let licenceHash = getStringByKey(keyArtLicenceHash(issuer, artId)) | |
343 | 345 | let description = take(getStringByKey(keyArtDesc(issuer, artId)), 50) | |
344 | 346 | let isOnSale = getBooleanByKey(keyArtOnSale(issuer, artId)) | |
345 | 347 | let amountSold = getIntegerByKey(keyArtIssued(issuer, artId)) | |
346 | 348 | let artworkPrice = getIntegerByKey(keyArtPrice(issuer, artId)) | |
347 | 349 | let priceAssetId = getStringByKey(keyArtAssetIdAccepted(issuer, artId)) | |
348 | 350 | let sourceHash = getStringByKey(keyArtHashByTxidAddr(issuer, artId)) | |
349 | 351 | let maxCanSell = getIntegerByKey(keyArtMaxMint(issuer, artId)) | |
350 | 352 | if (if (if ((0 >= artworkPrice)) | |
351 | 353 | then true | |
352 | 354 | else !(isOnSale)) | |
353 | 355 | then true | |
354 | 356 | else (0 >= maxCanSell)) | |
355 | 357 | then throw("Art not for sale") | |
356 | 358 | else { | |
357 | - | let $ | |
359 | + | let $t01297813176 = if (if (if ((caller == issuer)) | |
358 | 360 | then (bidOwner != "") | |
359 | 361 | else false) | |
360 | 362 | then (bidId != "") | |
361 | 363 | else false) | |
362 | 364 | then getPriceAssetIdFromBid(artId, issuer, bidId, bidOwner) | |
363 | 365 | else validatePriceAssetId(invoke, priceAssetId, artworkPrice) | |
364 | - | let amount = $ | |
365 | - | let assetId = $ | |
366 | + | let amount = $t01297813176._1 | |
367 | + | let assetId = $t01297813176._2 | |
366 | 368 | let isWhitelisted = checkWhitelist(issuer) | |
367 | 369 | let cut = if ((isWhitelisted > height)) | |
368 | 370 | then 0 | |
369 | 371 | else if ((priceAssetId == toBase58String(signAssetId))) | |
370 | 372 | then signCut | |
371 | 373 | else usdnWaveCut | |
372 | 374 | let amountForSign = fraction(amount, cut, 100) | |
373 | 375 | let amountForCreator = (amount - amountForSign) | |
374 | 376 | if ((amountSold == maxCanSell)) | |
375 | 377 | then throw("Art sold out") | |
376 | 378 | else { | |
377 | 379 | let newAmountSold = (amountSold + 1) | |
378 | 380 | let entryDate = lastBlock.timestamp | |
379 | 381 | let issueMeta = ((((((((((((((((((((((((((("Creator: " + issuer) + ", | |
380 | 382 | ArtID: ") + artId) + ", | |
381 | 383 | SignID: ") + signID) + ", | |
382 | 384 | Artwork name: ") + artworkName) + ", | |
383 | 385 | Artwork description: ") + description) + ", | |
384 | 386 | Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + ", | |
385 | 387 | Max issuable: ") + toString(maxCanSell)) + ", | |
386 | 388 | Source hash: ") + sourceHash) + ", | |
387 | 389 | Display cid: ") + displayCID) + ", | |
388 | 390 | Export cid: ") + exportCID) + ", | |
389 | 391 | Export hash: ") + exportHash) + ", | |
390 | 392 | Licence cid: ") + licenceCID) + ", | |
391 | 393 | Licence hash: ") + licenceHash) | |
392 | 394 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
393 | 395 | let idNFT = calculateAssetId(issueNFT) | |
394 | 396 | let sellStatus = if ((newAmountSold == maxCanSell)) | |
395 | 397 | then false | |
396 | 398 | else true | |
397 | 399 | let receiveNFT = if (if (if ((caller == issuer)) | |
398 | 400 | then (bidOwner != "") | |
399 | 401 | else false) | |
400 | 402 | then (bidId != "") | |
401 | 403 | else false) | |
402 | 404 | then addressFromStringValue(bidOwner) | |
403 | 405 | else invoke.caller | |
404 | 406 | let buyRes = [IntegerEntry(keyArtIssued(issuer, artId), newAmountSold), StringEntry(("nft_" + toBase58String(idNFT)), ((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer)), IntegerEntry("total_nft_issued", (totalNFT + 1)), BooleanEntry(keyArtOnSale(issuer, artId), sellStatus), issueNFT, ScriptTransfer(Address(fromBase58String(issuer)), amountForCreator, assetId), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId), ScriptTransfer(receiveNFT, 1, idNFT)] | |
405 | 407 | let soldData = StringEntry(((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer), ((((((((((caller + "_") + toString(entryDate)) + "_") + id) + "_") + toString(artworkPrice)) + "_") + priceAssetId) + "_") + toBase58String(idNFT))) | |
406 | 408 | let assetIdBid = if (!(isDefined(assetId))) | |
407 | 409 | then "WAVES" | |
408 | 410 | else toBase58String(value(assetId)) | |
409 | 411 | let getBidData = getStringByKey((((((((("bid_" + artId) + "_") + issuer) + "_") + bidOwner) + "_") + bidId) + "_OPEN")) | |
410 | 412 | let bidDelOld = DeleteEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN")) | |
411 | 413 | let bidUpdate = StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_CLOSED"), getBidData) | |
412 | 414 | let bidSoldData = StringEntry(((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer), ((((((((((toString(receiveNFT) + "_") + toString(entryDate)) + "_") + id) + "_") + toString(amount)) + "_") + assetIdBid) + "_") + toBase58String(idNFT))) | |
413 | 415 | if (if (if ((caller == issuer)) | |
414 | 416 | then (bidOwner != "") | |
415 | 417 | else false) | |
416 | 418 | then (bidId != "") | |
417 | 419 | else false) | |
418 | 420 | then [bidSoldData, bidUpdate, bidDelOld] :: buyRes | |
419 | 421 | else soldData :: buyRes | |
420 | 422 | } | |
421 | 423 | } | |
422 | 424 | } | |
423 | 425 | } | |
424 | 426 | ||
425 | 427 | ||
426 | 428 | @Callable(invoke) | |
427 | 429 | func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning)) | |
428 | 430 | then throw(maintenanceMSG) | |
429 | 431 | else { | |
430 | 432 | let artId = toBase58String(invoke.transactionId) | |
431 | 433 | let timestamp = lastBlock.timestamp | |
432 | 434 | let caller = toBase58String(invoke.caller.bytes) | |
433 | 435 | if (!(validateHash(sha256Hash))) | |
434 | 436 | then throw("Hash should be 64 characters maximum") | |
435 | 437 | else { | |
436 | - | let $ | |
437 | - | let licenceCID = $ | |
438 | - | let licenceHash = $ | |
438 | + | let $t01720917278 = setLIcence(cidLicence, sha256Licence) | |
439 | + | let licenceCID = $t01720917278._1 | |
440 | + | let licenceHash = $t01720917278._2 | |
439 | 441 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
440 | 442 | if ((validateArtwork != "")) | |
441 | 443 | then throw("Something went wrong!") | |
442 | 444 | else { | |
443 | - | let $ | |
444 | - | let amount = $ | |
445 | - | let assetId = $ | |
445 | + | let $t01750617553 = validatePayment(invoke) | |
446 | + | let amount = $t01750617553._1 | |
447 | + | let assetId = $t01750617553._2 | |
446 | 448 | if (!(isDefined(amount))) | |
447 | 449 | then throw("Something went wrong") | |
448 | 450 | else { | |
449 | 451 | let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, caller)) | |
450 | 452 | if ((entryExist != "")) | |
451 | 453 | then throw("You already added it") | |
452 | 454 | else { | |
453 | 455 | let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash)) | |
454 | 456 | if ((hashExist != "")) | |
455 | 457 | then throw("Hash already registered") | |
456 | 458 | else { | |
457 | 459 | let isSignCertified = checkSignCertificate(signID, caller, sha256Hash) | |
458 | 460 | if (!(isSignCertified)) | |
459 | 461 | then throw("Sign Certificate not found for this address.") | |
460 | 462 | else [StringEntry(keyArtOwnerByHash(sha256Hash), caller), StringEntry(keyArtTxidByHashOwner(sha256Hash, caller), artId), IntegerEntry(keyArtDate(caller, artId), timestamp), StringEntry(keyArtName(caller, artId), name), StringEntry(keyArtDesc(caller, artId), description), StringEntry(keyArtDisplayCid(caller, artId), cidDisplay), StringEntry(keyArtExportCid(caller, artId), cidExport), StringEntry(keyArtExportHash(caller, artId), sha256Export), StringEntry(keyArtLicenceHash(caller, artId), licenceHash), StringEntry(keyArtLicenceCid(caller, artId), licenceCID), StringEntry(keyArtType(caller, artId), type), StringEntry(keyArtTags(caller, artId), tags), IntegerEntry(keyArtMaxMint(caller, artId), maxmint), StringEntry(keyArtSignID(caller, artId), signID), IntegerEntry(keyArtIssued(caller, artId), 0), BooleanEntry(keyArtOnSale(caller, artId), false), StringEntry(keyArtArtidBySignid(caller, signID), artId), StringEntry(keyArtHashByTxidAddr(caller, artId), sha256Hash), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)] | |
461 | 463 | } | |
462 | 464 | } | |
463 | 465 | } | |
464 | 466 | } | |
465 | 467 | } | |
466 | 468 | } | |
467 | 469 | ||
468 | 470 | ||
469 | 471 | ||
470 | 472 | @Callable(invoke) | |
471 | 473 | func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning)) | |
472 | 474 | then throw(maintenanceMSG) | |
473 | 475 | else { | |
474 | 476 | let updateId = toBase58String(invoke.transactionId) | |
475 | 477 | let caller = toBase58String(invoke.caller.bytes) | |
476 | - | let $ | |
477 | - | let licenceCID = $ | |
478 | - | let licenceHash = $ | |
478 | + | let $t02040820477 = setLIcence(cidLicence, sha256Licence) | |
479 | + | let licenceCID = $t02040820477._1 | |
480 | + | let licenceHash = $t02040820477._2 | |
479 | 481 | let validateArtwork = validateArtworkData(caller, cidDisplay, cidExport, licenceCID, sha256Export, licenceHash, name, description, tags, maxmint) | |
480 | 482 | if ((validateArtwork != "")) | |
481 | 483 | then throw("Something went wrong!") | |
482 | 484 | else { | |
483 | 485 | let entryExist = getStringByKey(keyArtName(caller, txid)) | |
484 | 486 | if ((entryExist == "")) | |
485 | 487 | then throw("Entry not found") | |
486 | 488 | else { | |
487 | 489 | let flag = getStringByKey(keyArtFlag(caller, txid)) | |
488 | 490 | if ((flag == "ILLEGAL")) | |
489 | 491 | then throw("Cannot update ILLEGAL artwork") | |
490 | 492 | else if (!(isArtMinted(caller, txid))) | |
491 | 493 | then [StringEntry(keyArtName(caller, txid), name), StringEntry(keyArtDesc(caller, txid), description), StringEntry(keyArtDisplayCid(caller, txid), cidDisplay), StringEntry(keyArtExportCid(caller, txid), cidExport), StringEntry(keyArtExportHash(caller, txid), sha256Export), StringEntry(keyArtLicenceCid(caller, txid), licenceCID), StringEntry(keyArtLicenceHash(caller, txid), licenceHash), IntegerEntry(keyArtMaxMint(caller, txid), maxmint), StringEntry(keyArtTags(caller, txid), tags), StringEntry(keyArtType(caller, txid), type)] | |
492 | 494 | else throw("Already minted") | |
493 | 495 | } | |
494 | 496 | } | |
495 | 497 | } | |
496 | 498 | ||
497 | 499 | ||
498 | 500 | ||
499 | 501 | @Callable(invoke) | |
500 | 502 | func flagArtwork (artId,addr,flag) = { | |
501 | 503 | let caller = toString(addressFromPublicKey(invoke.callerPublicKey)) | |
502 | 504 | let id = toBase58String(invoke.transactionId) | |
503 | 505 | if (containsElement([chris, joep, toString(this)], caller)) | |
504 | 506 | then if ((flag == "CONSENT")) | |
505 | 507 | then [StringEntry(keyArtFlag(addr, artId), flag)] | |
506 | 508 | else if ((flag == "")) | |
507 | 509 | then [StringEntry(keyArtFlag(addr, artId), flag)] | |
508 | 510 | else if ((flag == "ILLEGAL")) | |
509 | 511 | then [StringEntry(keyArtFlag(addr, artId), flag), StringEntry(keyArtName(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyArtDesc(addr, artId), "ILLEGAL CONTENT"), StringEntry(keyArtDisplayCid(addr, artId), ""), StringEntry(keyArtExportCid(addr, artId), ""), StringEntry(keyArtLicenceCid(addr, artId), "")] | |
510 | 512 | else throw(("Unknow status " + flag)) | |
511 | 513 | else throw("You are not allowed") | |
512 | 514 | } | |
513 | 515 | ||
514 | 516 | ||
515 | 517 | ||
516 | 518 | @Callable(invoke) | |
517 | 519 | func deleteArtwork (artId,addr) = { | |
518 | 520 | let caller = toString(addressFromPublicKey(invoke.callerPublicKey)) | |
519 | 521 | let id = toBase58String(invoke.transactionId) | |
520 | 522 | let addressToUse = if (containsElement([chris, joep, toString(this)], caller)) | |
521 | 523 | then addr | |
522 | 524 | else caller | |
523 | 525 | let entryExist = getStringByKey(keyArtName(addressToUse, artId)) | |
524 | 526 | if ((entryExist == "")) | |
525 | 527 | then throw("No art matching for this address") | |
526 | 528 | else { | |
527 | 529 | let sha256Hash = getStringByKey(keyArtHashByTxidAddr(addressToUse, artId)) | |
528 | 530 | if ((sha256Hash == "")) | |
529 | 531 | then throw("No art hash matching for this address") | |
530 | 532 | else { | |
531 | 533 | let signID = getStringByKey(keyArtSignID(addressToUse, artId)) | |
532 | 534 | if ((signID == "")) | |
533 | 535 | then throw("No SIGN ID matching") | |
534 | 536 | else { | |
535 | 537 | let dataToDelete = [DeleteEntry(keyArtDate(addressToUse, artId)), DeleteEntry(keyArtName(addressToUse, artId)), DeleteEntry(keyArtDesc(addressToUse, artId)), DeleteEntry(keyArtDisplayCid(addressToUse, artId)), DeleteEntry(keyArtExportCid(addressToUse, artId)), DeleteEntry(keyArtExportHash(addressToUse, artId)), DeleteEntry(keyArtLicenceHash(addressToUse, artId)), DeleteEntry(keyArtLicenceCid(addressToUse, artId)), DeleteEntry(keyArtType(addressToUse, artId)), DeleteEntry(keyArtTags(addressToUse, artId)), DeleteEntry(keyArtMaxMint(addressToUse, artId)), DeleteEntry(keyArtSignID(addressToUse, artId)), DeleteEntry(keyArtIssued(addressToUse, artId)), DeleteEntry(keyArtOnSale(addressToUse, artId)), DeleteEntry(keyArtFlag(addr, artId)), DeleteEntry(keyArtPrice(addr, artId)), DeleteEntry(keyArtAssetIdAccepted(addr, artId)), DeleteEntry(keyArtOwnerByHash(sha256Hash)), DeleteEntry(keyArtArtidBySignid(addressToUse, signID)), DeleteEntry(keyArtTxidByHashOwner(sha256Hash, addressToUse))] | |
536 | 538 | if (!(isArtMinted(addressToUse, artId))) | |
537 | 539 | then if (!(dappRunning)) | |
538 | 540 | then throw(maintenanceMSG) | |
539 | 541 | else dataToDelete | |
540 | 542 | else if (containsElement([chris, toString(this)], caller)) | |
541 | 543 | then dataToDelete | |
542 | 544 | else throw("Art already minted, you cannot delete it") | |
543 | 545 | } | |
544 | 546 | } | |
545 | 547 | } | |
546 | 548 | } | |
547 | 549 | ||
548 | 550 | ||
549 | 551 | ||
550 | 552 | @Callable(invoke) | |
551 | 553 | func sellArtwork (artId,price,maxMint,assetId) = if (!(dappRunning)) | |
552 | 554 | then throw(maintenanceMSG) | |
553 | 555 | else { | |
554 | 556 | let id = toBase58String(invoke.transactionId) | |
555 | 557 | let caller = toBase58String(invoke.caller.bytes) | |
556 | 558 | let sellDate = lastBlock.timestamp | |
557 | 559 | let artworkName = getStringByKey(keyArtName(caller, artId)) | |
558 | 560 | if ((artworkName == "")) | |
559 | 561 | then throw("This art doesn't match match your account") | |
560 | 562 | else { | |
561 | 563 | let exportCID = getStringByKey(keyArtExportCid(caller, artId)) | |
562 | 564 | if ((size(split(exportCID, "/")[0]) != 59)) | |
563 | 565 | then throw("You cannot sell art with no export file") | |
564 | 566 | else { | |
565 | 567 | let exportHash = getStringByKey(keyArtExportHash(caller, artId)) | |
566 | 568 | if ((size(exportHash) != 64)) | |
567 | 569 | then throw("You cannot sell art with no export hash") | |
568 | 570 | else if (!(acceptedAssetIds(assetId))) | |
569 | 571 | then throw("Something went wrong!") | |
570 | 572 | else if (!(validateMinSell(assetId, price))) | |
571 | 573 | then throw("Something went wrong!") | |
572 | 574 | else { | |
573 | 575 | let checkUser = validateUser(caller) | |
574 | 576 | if ((checkUser != "")) | |
575 | 577 | then throw(checkUser) | |
576 | 578 | else { | |
577 | 579 | let amountSold = getIntegerByKey(keyArtIssued(caller, artId)) | |
578 | 580 | let maxCanSell = getIntegerByKey(keyArtMaxMint(caller, artId)) | |
579 | 581 | if ((maxMint > 10)) | |
580 | 582 | then throw("10 editions max per artwork") | |
581 | 583 | else if (if ((amountSold != 0)) | |
582 | 584 | then (amountSold == maxCanSell) | |
583 | 585 | else false) | |
584 | 586 | then throw("Max edition reached.") | |
585 | 587 | else if (if ((amountSold > 0)) | |
586 | 588 | then (maxCanSell != maxMint) | |
587 | 589 | else false) | |
588 | 590 | then throw("Cannot change maximum issuable anymore") | |
589 | 591 | else { | |
590 | 592 | let sellStatus = if (if ((price > 0)) | |
591 | 593 | then (maxMint > 0) | |
592 | 594 | else false) | |
593 | 595 | then true | |
594 | 596 | else false | |
595 | 597 | [BooleanEntry(keyArtOnSale(caller, artId), sellStatus), IntegerEntry(keyArtPrice(caller, artId), price), IntegerEntry(keyArtMaxMint(caller, artId), maxMint), StringEntry(keyArtAssetIdAccepted(caller, artId), assetId)] | |
596 | 598 | } | |
597 | 599 | } | |
598 | 600 | } | |
599 | 601 | } | |
600 | 602 | } | |
601 | 603 | } | |
602 | 604 | ||
603 | 605 | ||
604 | 606 | ||
605 | 607 | @Callable(invoke) | |
606 | 608 | func buyArtwork (artId,issuer) = if (!(dappRunning)) | |
607 | 609 | then throw(maintenanceMSG) | |
608 | 610 | else buyMint(invoke, artId, issuer, "", "") | |
609 | 611 | ||
610 | 612 | ||
611 | 613 | ||
612 | 614 | @Callable(invoke) | |
613 | 615 | func setBid (artId,issuer) = if (!(dappRunning)) | |
614 | 616 | then throw(maintenanceMSG) | |
615 | 617 | else { | |
616 | 618 | let id = toBase58String(invoke.transactionId) | |
617 | 619 | let caller = toBase58String(invoke.caller.bytes) | |
618 | 620 | let timestamp = lastBlock.timestamp | |
619 | 621 | if ((size(invoke.payments) == 0)) | |
620 | 622 | then throw("No payment attached") | |
621 | 623 | else { | |
622 | 624 | let payment = value(invoke.payments[0]) | |
623 | 625 | let amount = value(payment.amount) | |
624 | 626 | let assetId = if (!(isDefined(payment.assetId))) | |
625 | 627 | then "WAVES" | |
626 | 628 | else toBase58String(value(payment.assetId)) | |
627 | 629 | let amountSold = getIntegerByKey(keyArtIssued(issuer, artId)) | |
628 | 630 | let maxCanSell = getIntegerByKey(keyArtMaxMint(issuer, artId)) | |
629 | 631 | if ((amountSold >= maxCanSell)) | |
630 | 632 | then throw("Sold out, you cannot bid") | |
631 | 633 | else [StringEntry((((((((("bid_" + artId) + "_") + issuer) + "_") + caller) + "_") + id) + "_OPEN"), ((((assetId + "_") + toString(amount)) + "_") + toString(timestamp)))] | |
632 | 634 | } | |
633 | 635 | } | |
634 | 636 | ||
635 | 637 | ||
636 | 638 | ||
637 | 639 | @Callable(invoke) | |
638 | 640 | func acceptBid (artId,issuer,bidId,bidOwner) = if (!(dappRunning)) | |
639 | 641 | then throw(maintenanceMSG) | |
640 | 642 | else { | |
641 | 643 | let caller = toBase58String(invoke.caller.bytes) | |
642 | 644 | if ((caller != issuer)) | |
643 | 645 | then throw("You cannot do this action") | |
644 | 646 | else buyMint(invoke, artId, issuer, bidId, bidOwner) | |
645 | 647 | } | |
646 | 648 | ||
647 | 649 | ||
648 | 650 | ||
649 | 651 | @Callable(i) | |
650 | 652 | func deleteEntry (entry) = { | |
651 | 653 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
652 | 654 | if ((caller == chris)) | |
653 | 655 | then [DeleteEntry(entry)] | |
654 | 656 | else throw("no") | |
655 | 657 | } | |
656 | 658 | ||
657 | 659 |
github/deemru/w8io/026f985 104.67 ms ◑