tx · 9P7AaePoa3zjRbxndBSqnyMRMDvxmUXFQDxV7nDHNXeL 3NBegQZ2nQzhyAw5acz2w3dQtSr97S113xv: -0.01400000 Waves 2020.09.19 13:10 [1184048] smart account 3NBegQZ2nQzhyAw5acz2w3dQtSr97S113xv > SELF 0.00000000 Waves
{ "type": 13, "id": "9P7AaePoa3zjRbxndBSqnyMRMDvxmUXFQDxV7nDHNXeL", "fee": 1400000, "feeAssetId": null, "timestamp": 1600510222558, "version": 2, "chainId": 84, "sender": "3NBegQZ2nQzhyAw5acz2w3dQtSr97S113xv", "senderPublicKey": "BtPnYKkAuL3EfH845GBBfaiSZ4DeT3PPS4Ms7xkdBz4k", "proofs": [ "56UyyANddcaLtvQmHLFiRHrRxpuwrfro6ok1rGZKPaB721nfUYCPaNNui4poqZPaLWe7SkpX36eh1Sq2cxRvQMGi" ], "script": "base64:AAIEAAAAAAAAAE4IAhIGCgQICAgIEgYKBAgICAgSBAoCCAgSAwoBCBIOCgwICAgICAgBCAgICAgSDQoLCAgICAgBCAgICAgSBAoCCAgSBAoCCAESBAoCCAgAAAAxAAAAAA9zdG9yYWdlVmVyaWZpZXIJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAADXVzZXJXaGl0ZWxpc3QJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM01wSkViMzZaUXlrMWhhS25vY2F5SmNZTTMxY05QWFBpSzMAAAAADHNpZ25WZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAtzaWduQXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAABn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3MAAAABCQACWQAAAAEFAAAABmlzc3VlcgUAAAAGYW1vdW50BQAAAAdhc3NldElkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAZpbnZva2UAAAAGY2FsbGVyAAAAAAAAAAABBQAAAAVpZE5GVAUAAAADbmlsAAAAAFYtVKc=", "height": 1184048, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5FMxbg5tKDBHFMCzmx8eWZ3tDGHLUjyCbVfRorRNPWuS Next: none Diff:
Old | New | Differences | |
---|---|---|---|
360 | 360 | then false | |
361 | 361 | else true | |
362 | 362 | case _ => | |
363 | - | | |
363 | + | false | |
364 | 364 | } | |
365 | 365 | let tagsList = split(tags, ",") | |
366 | 366 | if ((size(tagsList) > 5)) | |
393 | 393 | ||
394 | 394 | @Callable(i) | |
395 | 395 | func deleteArtwork (artId,address) = { | |
396 | - | let | |
396 | + | let callerAddress = toString(addressFromPublicKey(i.callerPublicKey)) | |
397 | 397 | let id = toBase58String(i.transactionId) | |
398 | - | if (if ((callerAddr == admin)) | |
398 | + | let entryExist = getStringByKey(keyArtName(callerAddress, artId)) | |
399 | + | let entryExistBis = getStringByKey(keyArtName(address, artId)) | |
400 | + | let artworkMinted = match getInteger(this, keyArtIssued(callerAddress, artId)) { | |
401 | + | case b: Int => | |
402 | + | if ((b == 0)) | |
403 | + | then false | |
404 | + | else true | |
405 | + | case _ => | |
406 | + | false | |
407 | + | } | |
408 | + | let addressToUse = if (if ((callerAddress == admin)) | |
399 | 409 | then true | |
400 | - | else (callerAddr == admin2)) | |
401 | - | then [DeleteEntry(keyArtDate(address, artId)), DeleteEntry(keyArtName(address, artId)), DeleteEntry(keyArtDesc(address, artId)), DeleteEntry(keyArtDisplayCid(address, artId)), DeleteEntry(keyArtExportCid(address, artId)), DeleteEntry(keyArtExportHash(address, artId)), DeleteEntry(keyArtLicenceHash(address, artId)), DeleteEntry(keyArtLicenceCid(address, artId)), DeleteEntry(keyArtType(address, artId)), DeleteEntry(keyArtTags(address, artId)), DeleteEntry(keyArtMaxMint(address, artId)), DeleteEntry(keyArtSignID(address, artId)), DeleteEntry(keyArtIssued(address, artId)), DeleteEntry(keyArtOnSale(address, artId)), StringEntry("last_invoke_id", id)] | |
402 | - | else throw("You are not allowed to do that.") | |
410 | + | else (callerAddress == admin2)) | |
411 | + | then address | |
412 | + | else callerAddress | |
413 | + | 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)), StringEntry("last_invoke_id", id)] | |
414 | + | if (if ((callerAddress == admin)) | |
415 | + | then true | |
416 | + | else (callerAddress == admin2)) | |
417 | + | then dataToDelete | |
418 | + | else if (if ((entryExist == "")) | |
419 | + | then true | |
420 | + | else (entryExistBis == "")) | |
421 | + | then throw("This entry doesn't exist or you are not the owner") | |
422 | + | else if (!(artworkMinted)) | |
423 | + | then dataToDelete | |
424 | + | else throw("This artwork already have minted NFT, you cannot delete it") | |
403 | 425 | } | |
404 | 426 | ||
405 | 427 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let storageVerifier = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | 5 | ||
6 | 6 | let userWhitelist = value(addressFromString("3MpJEb36ZQyk1haKnocayJcYM31cNPXPiK3")) | |
7 | 7 | ||
8 | 8 | let signVerifier = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
9 | 9 | ||
10 | 10 | let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
11 | 11 | ||
12 | 12 | let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
13 | 13 | ||
14 | 14 | let usdnID = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC" | |
15 | 15 | ||
16 | 16 | let admin = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
17 | 17 | ||
18 | 18 | let admin2 = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
19 | 19 | ||
20 | 20 | let WHITELISTEDONLY = true | |
21 | 21 | ||
22 | 22 | let userAllowed = "ALLOWED" | |
23 | 23 | ||
24 | 24 | let userRegistered = "REGISTERED" | |
25 | 25 | ||
26 | 26 | let userVerified = "VERIFIED" | |
27 | 27 | ||
28 | 28 | let userSuspended = "SUSPENDED" | |
29 | 29 | ||
30 | 30 | let userRemoved = "REMOVED" | |
31 | 31 | ||
32 | 32 | let userUnregistered = "UNREGISTERED" | |
33 | 33 | ||
34 | 34 | let onSale = "ON_SALE" | |
35 | 35 | ||
36 | 36 | let sold = "SOLD" | |
37 | 37 | ||
38 | 38 | let canceled = "CANCELED" | |
39 | 39 | ||
40 | 40 | func getStringByKey (key) = match getString(this, key) { | |
41 | 41 | case a: String => | |
42 | 42 | a | |
43 | 43 | case _ => | |
44 | 44 | "" | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func getIntegerByKey (key) = match getInteger(this, key) { | |
49 | 49 | case i: Int => | |
50 | 50 | i | |
51 | 51 | case _ => | |
52 | 52 | 0 | |
53 | 53 | } | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signVerifier, ((("data_fc_" + signID) + "_") + Owner)) { | |
57 | 57 | case a: String => | |
58 | 58 | if (contains(a, sha256Hash)) | |
59 | 59 | then true | |
60 | 60 | else false | |
61 | 61 | case _ => | |
62 | 62 | false | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func validateNFTs (accumulator,id) = { | |
67 | 67 | let assetDetails = value(assetInfo(fromBase58String(id))) | |
68 | 68 | if (if (if ((assetDetails.quantity != 1)) | |
69 | 69 | then true | |
70 | 70 | else (assetDetails.decimals != 0)) | |
71 | 71 | then true | |
72 | 72 | else (assetDetails.reissuable != false)) | |
73 | 73 | then (accumulator + 0) | |
74 | 74 | else (accumulator + 1) | |
75 | 75 | } | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func verifyAddress (addr) = if (!(WHITELISTEDONLY)) | |
79 | 79 | then true | |
80 | 80 | else match getBoolean(userWhitelist, addr) { | |
81 | 81 | case b: Boolean => | |
82 | 82 | b | |
83 | 83 | case _ => | |
84 | 84 | throw("You are not allowed, please contact us first.") | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func verifyStatus (addr) = match getString(this, ("user_status_" + addr)) { | |
89 | 89 | case b: String => | |
90 | 90 | b | |
91 | 91 | case _ => | |
92 | 92 | throw("Something went wrong.") | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func keyUserAddr (callerAddr) = ("user_" + callerAddr) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func keyUserName (callerAddr) = ("user_name_" + callerAddr) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func keyUserDesc (callerAddr) = ("user_desc_" + callerAddr) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func keyUserSocial (callerAddr) = ("user_social_" + callerAddr) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func keyUserThumb (callerAddr) = ("user_thumb_" + callerAddr) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func keyUserIsArtist (callerAddr) = ("user_isartist_" + callerAddr) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func keyUserStatus (callerAddr) = ("user_status_" + callerAddr) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func keyUserDate (callerAddr) = ("user_date_" + callerAddr) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func keyArtDate (callerAddr,artId) = ((("art_date_" + artId) + "_") + callerAddr) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func keyArtName (callerAddr,artId) = ((("art_name_" + artId) + "_") + callerAddr) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func keyArtDesc (callerAddr,artId) = ((("art_desc_" + artId) + "_") + callerAddr) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func keyArtDisplayCid (callerAddr,artId) = ((("art_display_cid_" + artId) + "_") + callerAddr) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func keyArtExportHash (callerAddr,artId) = ((("art_export_hash_" + artId) + "_") + callerAddr) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func keyArtExportCid (callerAddr,artId) = ((("art_export_cid_" + artId) + "_") + callerAddr) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func keyArtMaxMint (callerAddr,artId) = ((("art_maxmint_" + artId) + "_") + callerAddr) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func keyArtSignID (callerAddr,artId) = ((("art_signid_" + artId) + "_") + callerAddr) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func keyArtIssued (callerAddr,artId) = ((("art_issued_" + artId) + "_") + callerAddr) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func keyArtOnSale (callerAddr,artId) = ((("art_onsale_" + artId) + "_") + callerAddr) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func keyArtLicenceHash (callerAddr,artId) = ((("art_licence_hash_" + artId) + "_") + callerAddr) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func keyArtLicenceCid (callerAddr,artId) = ((("art_licence_cid_" + artId) + "_") + callerAddr) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func keyArtTags (callerAddr,artId) = ((("art_tags_" + artId) + "_") + callerAddr) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func keyArtType (callerAddr,artId) = ((("art_type_" + artId) + "_") + callerAddr) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func keyArtOwnerByHash (sha256Hash) = ("art_owner_by_hash_" + sha256Hash) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func keyArtArtidBySignid (callerAddr,signId) = ((("art_artidbysignid_" + signId) + "_") + callerAddr) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func keyArtTxidByHashOwner (sha256Hash,callerAddr) = ("art_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + callerAddr))))) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | @Callable(i) | |
172 | 172 | func registerUser (name,description,thumb,social) = { | |
173 | 173 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
174 | 174 | let userCanRegister = getStringByKey(keyUserStatus(callerAddr)) | |
175 | 175 | let id = toBase58String(i.transactionId) | |
176 | 176 | let timestamp = lastBlock.timestamp | |
177 | 177 | if (if ((userCanRegister == userSuspended)) | |
178 | 178 | then true | |
179 | 179 | else (userCanRegister == userRemoved)) | |
180 | 180 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
181 | 181 | else if ((userCanRegister == userRegistered)) | |
182 | 182 | then throw("You are already registered, please use update method instead.") | |
183 | 183 | else if (if ((userCanRegister == "")) | |
184 | 184 | then WHITELISTEDONLY | |
185 | 185 | else false) | |
186 | 186 | then throw("You are now allowed to register yet, please contact us first to get approved.") | |
187 | 187 | else if (if ((name == "")) | |
188 | 188 | then true | |
189 | 189 | else (description == "")) | |
190 | 190 | then throw("Name and description cannot be empty") | |
191 | 191 | else if ((size(description) > 600)) | |
192 | 192 | then throw("600 Characters maximum for the description") | |
193 | 193 | else [IntegerEntry(keyUserDate(callerAddr), timestamp), StringEntry(keyUserAddr(callerAddr), ((id + "_") + toString(lastBlock.timestamp))), StringEntry(keyUserName(callerAddr), name), StringEntry(keyUserDesc(callerAddr), description), StringEntry(keyUserSocial(callerAddr), social), StringEntry(keyUserThumb(callerAddr), thumb), BooleanEntry(keyUserIsArtist(callerAddr), false), StringEntry(keyUserStatus(callerAddr), userRegistered), StringEntry("last_invoke_id", id)] | |
194 | 194 | } | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | ||
198 | 198 | @Callable(i) | |
199 | 199 | func updateUser (name,description,thumb,social) = { | |
200 | 200 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
201 | 201 | let userCanRegister = getStringByKey(keyUserStatus(callerAddr)) | |
202 | 202 | if (if ((userCanRegister == userSuspended)) | |
203 | 203 | then true | |
204 | 204 | else (userCanRegister == userRemoved)) | |
205 | 205 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
206 | 206 | else if (if ((userCanRegister == "")) | |
207 | 207 | then true | |
208 | 208 | else (userCanRegister == userAllowed)) | |
209 | 209 | then throw("Please register first with registerUser") | |
210 | 210 | else { | |
211 | 211 | let id = toBase58String(i.transactionId) | |
212 | 212 | let timestamp = lastBlock.timestamp | |
213 | 213 | if (if ((name == "")) | |
214 | 214 | then true | |
215 | 215 | else (description == "")) | |
216 | 216 | then throw("Name and description cannot be empty") | |
217 | 217 | else if ((size(description) > 600)) | |
218 | 218 | then throw("600 Characters maximum for the description") | |
219 | 219 | else [StringEntry(keyUserName(callerAddr), name), StringEntry(keyUserDesc(callerAddr), description), StringEntry(keyUserSocial(callerAddr), social), StringEntry(keyUserThumb(callerAddr), thumb), StringEntry("last_invoke_id", id)] | |
220 | 220 | } | |
221 | 221 | } | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | ||
225 | 225 | @Callable(i) | |
226 | 226 | func changeUserStatus (address,status) = { | |
227 | 227 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
228 | 228 | let id = toBase58String(i.transactionId) | |
229 | 229 | let statusToSet = if ((status == userVerified)) | |
230 | 230 | then userVerified | |
231 | 231 | else if ((status == userRegistered)) | |
232 | 232 | then userRegistered | |
233 | 233 | else if ((status == userSuspended)) | |
234 | 234 | then userSuspended | |
235 | 235 | else if ((status == userRemoved)) | |
236 | 236 | then userRemoved | |
237 | 237 | else if ((status == userAllowed)) | |
238 | 238 | then userAllowed | |
239 | 239 | else throw("Unknown status") | |
240 | 240 | if (if ((callerAddr == admin)) | |
241 | 241 | then true | |
242 | 242 | else (callerAddr == admin2)) | |
243 | 243 | then [StringEntry(keyUserStatus(address), statusToSet), StringEntry("last_invoke_id", id)] | |
244 | 244 | else throw(((("You are not allowed to change user status " + callerAddr) + " / ") + admin)) | |
245 | 245 | } | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | ||
249 | 249 | @Callable(i) | |
250 | 250 | func deleteUser (address) = { | |
251 | 251 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
252 | 252 | let id = toBase58String(i.transactionId) | |
253 | 253 | if (if ((callerAddr == admin)) | |
254 | 254 | then true | |
255 | 255 | else (callerAddr == admin2)) | |
256 | 256 | then [DeleteEntry(keyUserDate(address)), DeleteEntry(keyUserAddr(address)), DeleteEntry(keyUserName(address)), DeleteEntry(keyUserDesc(address)), DeleteEntry(keyUserSocial(address)), DeleteEntry(keyUserThumb(address)), DeleteEntry(keyUserIsArtist(address)), StringEntry(keyUserStatus(address), userRemoved), StringEntry("last_invoke_id", id)] | |
257 | 257 | else throw("You are not allowed to do that") | |
258 | 258 | } | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | ||
262 | 262 | @Callable(invoke) | |
263 | 263 | func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
264 | 264 | let artId = toBase58String(invoke.transactionId) | |
265 | 265 | let callerAddress = toBase58String(invoke.caller.bytes) | |
266 | 266 | if ((size(invoke.payments) == 0)) | |
267 | 267 | then throw("No payment attached") | |
268 | 268 | else { | |
269 | 269 | let payment = value(invoke.payments[0]) | |
270 | 270 | let amount = value(payment.amount) | |
271 | 271 | let assetId = if (if (isDefined(payment.assetId)) | |
272 | 272 | then (payment.assetId == signAssetId) | |
273 | 273 | else false) | |
274 | 274 | then payment.assetId | |
275 | 275 | else throw("Only SIGN token accepted at the moment") | |
276 | 276 | let currentCertificationPrice = match getInteger(storageVerifier, ("certification_fee_" + toBase58String(signAssetId))) { | |
277 | 277 | case price: Int => | |
278 | 278 | price | |
279 | 279 | case _ => | |
280 | 280 | throw("Price undefined in oracle") | |
281 | 281 | } | |
282 | 282 | if ((amount != currentCertificationPrice)) | |
283 | 283 | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
284 | 284 | else { | |
285 | 285 | let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, callerAddress)) | |
286 | 286 | if ((entryExist != "")) | |
287 | 287 | then throw("You already added this artwork on Sign Art") | |
288 | 288 | else { | |
289 | 289 | let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash)) | |
290 | 290 | if ((hashExist != "")) | |
291 | 291 | then throw("This artwork hash is already registered on Sign Art") | |
292 | 292 | else { | |
293 | 293 | let isSignCertified = checkSignCertificate(signID, callerAddress, sha256Hash) | |
294 | 294 | if (!(isSignCertified)) | |
295 | 295 | then throw("Sign Certificate not found on Sign-web.app smart contract for this address.") | |
296 | 296 | else if ((size(cidDisplay) == 0)) | |
297 | 297 | then throw("Display CID cannot be empty") | |
298 | 298 | else if ((size(name) == 0)) | |
299 | 299 | then throw("Title cannot be empty") | |
300 | 300 | else if ((size(name) > 100)) | |
301 | 301 | then throw("100 Characters maximum for the name") | |
302 | 302 | else if ((size(description) > 1000)) | |
303 | 303 | then throw("1000 Characters maximum for the description") | |
304 | 304 | else if ((size(description) == 0)) | |
305 | 305 | then throw("Description cannot be empty") | |
306 | 306 | else { | |
307 | 307 | let tagsList = split(tags, ",") | |
308 | 308 | if ((size(tagsList) > 5)) | |
309 | 309 | then throw("Tags should be maximum 5 single word separated by space.") | |
310 | 310 | else { | |
311 | 311 | let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) { | |
312 | 312 | case s: String => | |
313 | 313 | s | |
314 | 314 | case _ => | |
315 | 315 | userUnregistered | |
316 | 316 | } | |
317 | 317 | let timestamp = lastBlock.timestamp | |
318 | 318 | if (if (isDefined(userIsRegistered)) | |
319 | 319 | then (userIsRegistered == userUnregistered) | |
320 | 320 | else false) | |
321 | 321 | then throw("Please register this account first with \"User infos\" tab") | |
322 | 322 | else if ((userIsRegistered == userSuspended)) | |
323 | 323 | then throw("Your account is suspended") | |
324 | 324 | else if ((userIsRegistered == userRemoved)) | |
325 | 325 | then throw("Your account have been removed") | |
326 | 326 | else if ((maxmint > 10)) | |
327 | 327 | then throw("Maximum 10 editions per artwork") | |
328 | 328 | else if ((size(sha256Hash) != 64)) | |
329 | 329 | then throw("Hash should be sha256 string composed of 64 char.") | |
330 | 330 | else [StringEntry(keyArtOwnerByHash(sha256Hash), callerAddress), StringEntry(keyArtTxidByHashOwner(sha256Hash, callerAddress), artId), BooleanEntry(keyUserIsArtist(callerAddress), true), IntegerEntry(keyArtDate(callerAddress, artId), timestamp), StringEntry(keyArtName(callerAddress, artId), name), StringEntry(keyArtDesc(callerAddress, artId), description), StringEntry(keyArtDisplayCid(callerAddress, artId), cidDisplay), StringEntry(keyArtExportCid(callerAddress, artId), cidExport), StringEntry(keyArtExportHash(callerAddress, artId), sha256Export), StringEntry(keyArtLicenceHash(callerAddress, artId), sha256Licence), StringEntry(keyArtLicenceCid(callerAddress, artId), cidLicence), StringEntry(keyArtType(callerAddress, artId), type), StringEntry(keyArtTags(callerAddress, artId), tags), IntegerEntry(keyArtMaxMint(callerAddress, artId), maxmint), StringEntry(keyArtSignID(callerAddress, artId), signID), IntegerEntry(keyArtIssued(callerAddress, artId), 0), BooleanEntry(keyArtOnSale(callerAddress, artId), false), StringEntry(keyArtArtidBySignid(callerAddress, signID), artId), StringEntry("last_invoke_id", artId), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)] | |
331 | 331 | } | |
332 | 332 | } | |
333 | 333 | } | |
334 | 334 | } | |
335 | 335 | } | |
336 | 336 | } | |
337 | 337 | } | |
338 | 338 | ||
339 | 339 | ||
340 | 340 | ||
341 | 341 | @Callable(invoke) | |
342 | 342 | func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
343 | 343 | let updateId = toBase58String(invoke.transactionId) | |
344 | 344 | let callerAddress = toBase58String(invoke.caller.bytes) | |
345 | 345 | let entryExist = getStringByKey(keyArtName(callerAddress, txid)) | |
346 | 346 | if ((entryExist == "")) | |
347 | 347 | then throw("This entry doesn't exist or you are not the owner") | |
348 | 348 | else if ((size(name) == 0)) | |
349 | 349 | then throw("Title cannot be empty") | |
350 | 350 | else if ((size(name) > 100)) | |
351 | 351 | then throw("100 Characters maximum for the name") | |
352 | 352 | else if ((size(description) > 1000)) | |
353 | 353 | then throw("1000 Characters maximum for the description") | |
354 | 354 | else if ((size(description) == 0)) | |
355 | 355 | then throw("Description cannot be empty") | |
356 | 356 | else { | |
357 | 357 | let artworkMinted = match getInteger(this, keyArtIssued(callerAddress, txid)) { | |
358 | 358 | case b: Int => | |
359 | 359 | if ((b == 0)) | |
360 | 360 | then false | |
361 | 361 | else true | |
362 | 362 | case _ => | |
363 | - | | |
363 | + | false | |
364 | 364 | } | |
365 | 365 | let tagsList = split(tags, ",") | |
366 | 366 | if ((size(tagsList) > 5)) | |
367 | 367 | then throw("Tags should be maximum 5 single word separated by space.") | |
368 | 368 | else { | |
369 | 369 | let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) { | |
370 | 370 | case s: String => | |
371 | 371 | s | |
372 | 372 | case _ => | |
373 | 373 | userUnregistered | |
374 | 374 | } | |
375 | 375 | if (if (isDefined(userIsRegistered)) | |
376 | 376 | then (userIsRegistered == userUnregistered) | |
377 | 377 | else false) | |
378 | 378 | then throw("Please register this account first with \"User infos\" tab") | |
379 | 379 | else if ((userIsRegistered == userSuspended)) | |
380 | 380 | then throw("Your account is suspended") | |
381 | 381 | else if ((userIsRegistered == userRemoved)) | |
382 | 382 | then throw("Your account have been removed") | |
383 | 383 | else if ((maxmint > 10)) | |
384 | 384 | then throw("Maximum 10 editions per artwork") | |
385 | 385 | else if (!(artworkMinted)) | |
386 | 386 | then [StringEntry(keyArtName(callerAddress, txid), name), StringEntry(keyArtDesc(callerAddress, txid), description), StringEntry(keyArtDisplayCid(callerAddress, txid), cidDisplay), StringEntry(keyArtExportCid(callerAddress, txid), cidExport), StringEntry(keyArtExportHash(callerAddress, txid), sha256Export), StringEntry(keyArtLicenceCid(callerAddress, txid), cidLicence), StringEntry(keyArtLicenceHash(callerAddress, txid), sha256Licence), IntegerEntry(keyArtMaxMint(callerAddress, txid), maxmint), StringEntry(keyArtTags(callerAddress, txid), tags), StringEntry(keyArtType(callerAddress, txid), type), StringEntry("last_invoke_id", updateId)] | |
387 | 387 | else [StringEntry(keyArtName(callerAddress, txid), name), StringEntry(keyArtDesc(callerAddress, txid), description), StringEntry(keyArtDisplayCid(callerAddress, txid), cidDisplay), StringEntry(keyArtType(callerAddress, txid), type), StringEntry(keyArtTags(callerAddress, txid), tags), StringEntry("last_invoke_id", updateId)] | |
388 | 388 | } | |
389 | 389 | } | |
390 | 390 | } | |
391 | 391 | ||
392 | 392 | ||
393 | 393 | ||
394 | 394 | @Callable(i) | |
395 | 395 | func deleteArtwork (artId,address) = { | |
396 | - | let | |
396 | + | let callerAddress = toString(addressFromPublicKey(i.callerPublicKey)) | |
397 | 397 | let id = toBase58String(i.transactionId) | |
398 | - | if (if ((callerAddr == admin)) | |
398 | + | let entryExist = getStringByKey(keyArtName(callerAddress, artId)) | |
399 | + | let entryExistBis = getStringByKey(keyArtName(address, artId)) | |
400 | + | let artworkMinted = match getInteger(this, keyArtIssued(callerAddress, artId)) { | |
401 | + | case b: Int => | |
402 | + | if ((b == 0)) | |
403 | + | then false | |
404 | + | else true | |
405 | + | case _ => | |
406 | + | false | |
407 | + | } | |
408 | + | let addressToUse = if (if ((callerAddress == admin)) | |
399 | 409 | then true | |
400 | - | else (callerAddr == admin2)) | |
401 | - | then [DeleteEntry(keyArtDate(address, artId)), DeleteEntry(keyArtName(address, artId)), DeleteEntry(keyArtDesc(address, artId)), DeleteEntry(keyArtDisplayCid(address, artId)), DeleteEntry(keyArtExportCid(address, artId)), DeleteEntry(keyArtExportHash(address, artId)), DeleteEntry(keyArtLicenceHash(address, artId)), DeleteEntry(keyArtLicenceCid(address, artId)), DeleteEntry(keyArtType(address, artId)), DeleteEntry(keyArtTags(address, artId)), DeleteEntry(keyArtMaxMint(address, artId)), DeleteEntry(keyArtSignID(address, artId)), DeleteEntry(keyArtIssued(address, artId)), DeleteEntry(keyArtOnSale(address, artId)), StringEntry("last_invoke_id", id)] | |
402 | - | else throw("You are not allowed to do that.") | |
410 | + | else (callerAddress == admin2)) | |
411 | + | then address | |
412 | + | else callerAddress | |
413 | + | 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)), StringEntry("last_invoke_id", id)] | |
414 | + | if (if ((callerAddress == admin)) | |
415 | + | then true | |
416 | + | else (callerAddress == admin2)) | |
417 | + | then dataToDelete | |
418 | + | else if (if ((entryExist == "")) | |
419 | + | then true | |
420 | + | else (entryExistBis == "")) | |
421 | + | then throw("This entry doesn't exist or you are not the owner") | |
422 | + | else if (!(artworkMinted)) | |
423 | + | then dataToDelete | |
424 | + | else throw("This artwork already have minted NFT, you cannot delete it") | |
403 | 425 | } | |
404 | 426 | ||
405 | 427 | ||
406 | 428 | ||
407 | 429 | @Callable(invoke) | |
408 | 430 | func sellArtwork (hash,price) = { | |
409 | 431 | let id = toBase58String(invoke.transactionId) | |
410 | 432 | let callerAddress = toBase58String(invoke.caller.bytes) | |
411 | 433 | let entryDate = lastBlock.timestamp | |
412 | 434 | let entryID = getStringByKey(((hash + "_") + callerAddress)) | |
413 | 435 | if (!(isDefined(entryID))) | |
414 | 436 | then throw("This artwork doesn't exit or you are not the owner") | |
415 | 437 | else { | |
416 | 438 | let userIsRegistered = getStringByKey(("user_status_" + callerAddress)) | |
417 | 439 | if ((userIsRegistered == "")) | |
418 | 440 | then throw("Please register this account first") | |
419 | 441 | else { | |
420 | 442 | let amountSold = getIntegerByKey(((("art_issued_" + entryID) + "_") + callerAddress)) | |
421 | 443 | let maxCanSell = getIntegerByKey(((("art_maxmint_" + entryID) + "_") + callerAddress)) | |
422 | 444 | if ((amountSold == maxCanSell)) | |
423 | 445 | then throw("You reached the max edition allowed to sell for this edition.") | |
424 | 446 | else if ((userIsRegistered == userSuspended)) | |
425 | 447 | then throw("Your account is suspended") | |
426 | 448 | else if (!(isDefined(entryID))) | |
427 | 449 | then throw("This artwork desn't exist") | |
428 | 450 | else if ((size(hash) != 64)) | |
429 | 451 | then throw("This hash is incorrect.") | |
430 | 452 | else { | |
431 | 453 | let sellStatus = if ((price > 0)) | |
432 | 454 | then true | |
433 | 455 | else false | |
434 | 456 | [BooleanEntry(((("art_onsale_" + entryID) + "_") + callerAddress), sellStatus), IntegerEntry(((("art_price_" + entryID) + "_") + callerAddress), price), StringEntry("last_invoke_id", id)] | |
435 | 457 | } | |
436 | 458 | } | |
437 | 459 | } | |
438 | 460 | } | |
439 | 461 | ||
440 | 462 | ||
441 | 463 | ||
442 | 464 | @Callable(invoke) | |
443 | 465 | func buyArtwork (hash,issuer) = { | |
444 | 466 | let id = toBase58String(invoke.transactionId) | |
445 | 467 | let callerAddress = toBase58String(invoke.caller.bytes) | |
446 | 468 | let totalNFT = getIntegerByKey("total_nft_issued") | |
447 | 469 | let entryID = getStringByKey(((hash + "_") + issuer)) | |
448 | 470 | if ((entryID == "")) | |
449 | 471 | then throw("This artwork doesn't exit or you are not the owner") | |
450 | 472 | else { | |
451 | 473 | let userIsRegistered = getStringByKey(("user_status_" + callerAddress)) | |
452 | 474 | if (!(isDefined(userIsRegistered))) | |
453 | 475 | then throw("Please register this account first") | |
454 | 476 | else { | |
455 | 477 | let alreadySoldList = getStringByKey(((("art_sold_" + entryID) + "_") + issuer)) | |
456 | 478 | let amountSold = getIntegerByKey(((("art_issued_" + entryID) + "_") + issuer)) | |
457 | 479 | let artworkPrice = getIntegerByKey(((("art_price_" + entryID) + "_") + issuer)) | |
458 | 480 | if ((artworkPrice == 0)) | |
459 | 481 | then throw("This artwork is not for sell") | |
460 | 482 | else { | |
461 | 483 | let maxCanSell = getIntegerByKey(((("art_maxmint_" + entryID) + "_") + issuer)) | |
462 | 484 | let payment = value(invoke.payments[0]) | |
463 | 485 | let amount = value(payment.amount) | |
464 | 486 | let assetId = if (isDefined(payment.assetId)) | |
465 | 487 | then throw("Only Waves token accepted at the moment") | |
466 | 488 | else unit | |
467 | 489 | if ((amountSold == maxCanSell)) | |
468 | 490 | then throw("Cannot buy this artwork anymore") | |
469 | 491 | else if ((artworkPrice != amount)) | |
470 | 492 | then throw("Payment don't match seller price") | |
471 | 493 | else { | |
472 | 494 | let newAmountSold = (amountSold + 1) | |
473 | 495 | let entryDate = lastBlock.timestamp | |
474 | 496 | let issueMeta = (((((((((((((("{\"version\": 1,\"artID\": \"" + entryID) + "\",\"maxIssuable\": \"") + toString(maxCanSell)) + "\",\"signID\": \"SA_") + toString((totalNFT + 1))) + "\", \"creator\": \"") + issuer) + "\", \"issue\": \"") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + "\", \"hash\": ") + hash) + "}") | |
475 | 497 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
476 | 498 | let idNFT = calculateAssetId(issueNFT) | |
477 | 499 | let sellStatus = if ((newAmountSold == maxCanSell)) | |
478 | 500 | then false | |
479 | 501 | else true | |
480 | 502 | [IntegerEntry(((("art_issued_" + entryID) + "_") + issuer), newAmountSold), StringEntry(((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + entryID) + "_") + issuer), ((((((callerAddress + "_") + toString(entryDate)) + "_") + id) + "_") + toString(artworkPrice))), IntegerEntry("total_nft_issued", (totalNFT + 1)), StringEntry("last_invoke_id", id), issueNFT, BooleanEntry(((("art_onsale_" + entryID) + "_") + callerAddress), sellStatus), ScriptTransfer(Address(fromBase58String(issuer)), amount, assetId), ScriptTransfer(invoke.caller, 1, idNFT)] | |
481 | 503 | } | |
482 | 504 | } | |
483 | 505 | } | |
484 | 506 | } | |
485 | 507 | } | |
486 | 508 | ||
487 | 509 |
github/deemru/w8io/169f3d6 58.22 ms ◑