tx · 8aqnMtMq3mMoGKvXFPvtghf41gL2ZvmvPYthkxAQRNeE 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG: -0.01400000 Waves 2020.10.10 11:28 [1214237] smart account 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG > SELF 0.00000000 Waves
{ "type": 13, "id": "8aqnMtMq3mMoGKvXFPvtghf41gL2ZvmvPYthkxAQRNeE", "fee": 1400000, "feeAssetId": null, "timestamp": 1602318559395, "version": 2, "chainId": 84, "sender": "3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG", "senderPublicKey": "9SULUbW7L2jV2nv8v48Kdzox4cZ8jEfg778yJHJpgVwM", "proofs": [ "T8VXwo7aQEUYQoTuE9hcp4Pz4LyaisKuqE9ufdCSwK1Tof36zhRDvrqUuu76cwFWCUnqGT2yHgYxj7sPTMatXyR" ], "script": "base64:AAIEAAAAAAAAAFoIAhIGCgQICAgIEgMKAQgSBgoECAgICBIECgIICBIDCgEIEg4KDAgICAgICAEICAgICBINCgsICAgICAEICAgICBIECgIICBIGCgQIAQEIEgQKAggIEgMKAQgAAAA2AAAAAA9zdG9yYWdlVmVyaWZpZXIJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAADHNpZ25WZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAtzaWduQXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAAC3VzZG5Bc3NldElkAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAMd2F2ZXNBc3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QAAAAEJAQAAAA1rZXlVc2VyU29jaWFsAAAAAQUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAAMa2V5VXNlclRodW1iAAAAAQUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAANa2V5VXNlclN0YXR1cwAAAAEFAAAAB2FkZHJlc3MFAAAAC3VzZXJSZW1vdmVkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAADmxhc3RfaW52b2tlX2lkBQAAAAJpZAUAAAADbmlsCQAAAgAAAAECAAAAHllvdSBhcmUgbm90IGFsbG93ZWQgdG8gZG8gdGhhdAAAAAAKJ14E", "height": 1214237, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: A5ewwrzvGtgchFzDoDUdqoSPybwsBJbTiWMzqhdLcnHU Next: 4P6M3R6iXLaeJhfUwdmGC9Z3AzSSzyH7ywrhEkKxYNEm Full:
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 signVerifier = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
7 | 7 | ||
8 | 8 | let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
9 | 9 | ||
10 | 10 | let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
11 | 11 | ||
12 | 12 | let usdnAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
13 | 13 | ||
14 | 14 | let wavesAssetId = base58'' | |
15 | 15 | ||
16 | 16 | let usdnID = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC" | |
17 | 17 | ||
18 | 18 | let admin = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
19 | 19 | ||
20 | 20 | let admin2 = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
21 | 21 | ||
22 | 22 | let WHITELISTEDONLY = true | |
23 | 23 | ||
24 | 24 | let userAllowed = "ALLOWED" | |
25 | 25 | ||
26 | 26 | let userRegistered = "REGISTERED" | |
27 | 27 | ||
28 | 28 | let userVerified = "VERIFIED" | |
29 | 29 | ||
30 | 30 | let userSuspended = "SUSPENDED" | |
31 | 31 | ||
32 | 32 | let userRemoved = "REMOVED" | |
33 | 33 | ||
34 | 34 | let userUnregistered = "UNREGISTERED" | |
35 | 35 | ||
36 | 36 | let onSale = "ON_SALE" | |
37 | 37 | ||
38 | 38 | let sold = "SOLD" | |
39 | 39 | ||
40 | 40 | let canceled = "CANCELED" | |
41 | 41 | ||
42 | 42 | func getStringByKey (key) = match getString(this, key) { | |
43 | 43 | case a: String => | |
44 | 44 | a | |
45 | 45 | case _ => | |
46 | 46 | "" | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func getIntegerByKey (key) = match getInteger(this, key) { | |
51 | 51 | case i: Int => | |
52 | 52 | i | |
53 | 53 | case _ => | |
54 | 54 | 0 | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func getBooleanByKey (key) = match getBoolean(this, key) { | |
59 | 59 | case i: Boolean => | |
60 | 60 | i | |
61 | 61 | case _ => | |
62 | 62 | false | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func checkSignCertificate (signID,Owner,sha256Hash) = match getString(signVerifier, ((("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 validateNFTs (accumulator,id) = { | |
77 | 77 | let assetDetails = value(assetInfo(fromBase58String(id))) | |
78 | 78 | if (if (if ((assetDetails.quantity != 1)) | |
79 | 79 | then true | |
80 | 80 | else (assetDetails.decimals != 0)) | |
81 | 81 | then true | |
82 | 82 | else (assetDetails.reissuable != false)) | |
83 | 83 | then (accumulator + 0) | |
84 | 84 | else (accumulator + 1) | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func validateCID (cid) = if (if ((75 > size(cid))) | |
89 | 89 | then (60 > size(split(cid, "/")[0])) | |
90 | 90 | else false) | |
91 | 91 | then (16 > size(split(cid, "/")[1])) | |
92 | 92 | else false | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func validateHash (hash) = (65 > size(hash)) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func verifyStatus (addr) = match getString(this, ("user_status_" + addr)) { | |
99 | 99 | case b: String => | |
100 | 100 | b | |
101 | 101 | case _ => | |
102 | 102 | throw("Something went wrong.") | |
103 | 103 | } | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func keyUserAddr (callerAddr) = ("user_" + callerAddr) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func keyUserName (callerAddr) = ("user_name_" + callerAddr) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func keyUserDesc (callerAddr) = ("user_desc_" + callerAddr) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func keyUserSocial (callerAddr) = ("user_social_" + callerAddr) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func keyUserThumb (callerAddr) = ("user_thumb_" + callerAddr) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func keyUserStatus (callerAddr) = ("user_status_" + callerAddr) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func keyUserDate (callerAddr) = ("user_date_" + callerAddr) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func keyArtDate (callerAddr,artId) = ((("art_date_" + artId) + "_") + callerAddr) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func keyArtName (callerAddr,artId) = ((("art_name_" + artId) + "_") + callerAddr) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func keyArtDesc (callerAddr,artId) = ((("art_desc_" + artId) + "_") + callerAddr) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func keyArtDisplayCid (callerAddr,artId) = ((("art_display_cid_" + artId) + "_") + callerAddr) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func keyArtExportHash (callerAddr,artId) = ((("art_export_hash_" + artId) + "_") + callerAddr) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func keyArtExportCid (callerAddr,artId) = ((("art_export_cid_" + artId) + "_") + callerAddr) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func keyArtMaxMint (callerAddr,artId) = ((("art_maxmint_" + artId) + "_") + callerAddr) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func keyArtSignID (callerAddr,artId) = ((("art_signid_" + artId) + "_") + callerAddr) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func keyArtIssued (callerAddr,artId) = ((("art_issued_" + artId) + "_") + callerAddr) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func keyArtOnSale (callerAddr,artId) = ((("art_onsale_" + artId) + "_") + callerAddr) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func keyArtLicenceHash (callerAddr,artId) = ((("art_licence_hash_" + artId) + "_") + callerAddr) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func keyArtLicenceCid (callerAddr,artId) = ((("art_licence_cid_" + artId) + "_") + callerAddr) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func keyArtTags (callerAddr,artId) = ((("art_tags_" + artId) + "_") + callerAddr) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func keyArtType (callerAddr,artId) = ((("art_type_" + artId) + "_") + callerAddr) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func keyArtPrice (callerAddr,artId) = ((("art_price_" + artId) + "_") + callerAddr) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func keyArtAssetIdAccepted (callerAddr,artId) = ((("art_assetAccepted_" + artId) + "_") + callerAddr) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func keyArtHashByTxidAddr (callerAddr,txid) = ((("get_hashbytxidaddr_" + txid) + "_") + callerAddr) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func keyArtOwnerByHash (sha256Hash) = ("get_owner_by_hash_" + sha256Hash) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func keyArtArtidBySignid (callerAddr,signId) = ((("get_artidbysignid_" + signId) + "_") + callerAddr) | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func keyArtTxidByHashOwner (sha256Hash,callerAddr) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((sha256Hash + callerAddr))))) | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | @Callable(i) | |
188 | 188 | func registerUser (name,description,thumb,social) = { | |
189 | 189 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
190 | 190 | let userCanRegister = getStringByKey(keyUserStatus(callerAddr)) | |
191 | 191 | let id = toBase58String(i.transactionId) | |
192 | 192 | let timestamp = lastBlock.timestamp | |
193 | 193 | if (if ((userCanRegister == userSuspended)) | |
194 | 194 | then true | |
195 | 195 | else (userCanRegister == userRemoved)) | |
196 | 196 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
197 | 197 | else if ((userCanRegister == userRegistered)) | |
198 | 198 | then throw("You are already registered, please use update method instead.") | |
199 | 199 | else if (if ((userCanRegister == "")) | |
200 | 200 | then WHITELISTEDONLY | |
201 | 201 | else false) | |
202 | 202 | then throw("You are now allowed to register yet, please contact us first to get approved.") | |
203 | 203 | else if (if ((name == "")) | |
204 | 204 | then true | |
205 | 205 | else (description == "")) | |
206 | 206 | then throw("Name and description cannot be empty") | |
207 | 207 | else if ((size(description) > 600)) | |
208 | 208 | then throw("600 Characters maximum for the description") | |
209 | 209 | 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), StringEntry(keyUserStatus(callerAddr), userRegistered), StringEntry("last_invoke_id", id)] | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | ||
214 | 214 | @Callable(i) | |
215 | 215 | func deleteEntry (entry) = { | |
216 | 216 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
217 | 217 | if ((callerAddr == admin)) | |
218 | 218 | then [DeleteEntry(entry)] | |
219 | 219 | else throw("no") | |
220 | 220 | } | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | ||
224 | 224 | @Callable(i) | |
225 | 225 | func updateUser (name,description,thumb,social) = { | |
226 | 226 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
227 | 227 | let userCanRegister = getStringByKey(keyUserStatus(callerAddr)) | |
228 | 228 | if (if ((userCanRegister == userSuspended)) | |
229 | 229 | then true | |
230 | 230 | else (userCanRegister == userRemoved)) | |
231 | 231 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
232 | 232 | else if (if ((userCanRegister == "")) | |
233 | 233 | then true | |
234 | 234 | else (userCanRegister == userAllowed)) | |
235 | 235 | then throw("Please register first with registerUser") | |
236 | 236 | else { | |
237 | 237 | let id = toBase58String(i.transactionId) | |
238 | 238 | let timestamp = lastBlock.timestamp | |
239 | 239 | if (if ((name == "")) | |
240 | 240 | then true | |
241 | 241 | else (description == "")) | |
242 | 242 | then throw("Name and description cannot be empty") | |
243 | 243 | else if ((size(description) > 600)) | |
244 | 244 | then throw("600 Characters maximum for the description") | |
245 | 245 | else [StringEntry(keyUserName(callerAddr), name), StringEntry(keyUserDesc(callerAddr), description), StringEntry(keyUserSocial(callerAddr), social), StringEntry(keyUserThumb(callerAddr), thumb), StringEntry("last_invoke_id", id)] | |
246 | 246 | } | |
247 | 247 | } | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | ||
251 | 251 | @Callable(i) | |
252 | 252 | func changeUserStatus (address,status) = { | |
253 | 253 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
254 | 254 | let id = toBase58String(i.transactionId) | |
255 | 255 | let statusToSet = if ((status == userVerified)) | |
256 | 256 | then userVerified | |
257 | 257 | else if ((status == userRegistered)) | |
258 | 258 | then userRegistered | |
259 | 259 | else if ((status == userSuspended)) | |
260 | 260 | then userSuspended | |
261 | 261 | else if ((status == userRemoved)) | |
262 | 262 | then userRemoved | |
263 | 263 | else if ((status == userAllowed)) | |
264 | 264 | then userAllowed | |
265 | 265 | else throw("Unknown status") | |
266 | 266 | if (if ((callerAddr == admin)) | |
267 | 267 | then true | |
268 | 268 | else (callerAddr == admin2)) | |
269 | 269 | then [StringEntry(keyUserStatus(address), statusToSet), StringEntry("last_invoke_id", id)] | |
270 | 270 | else throw(((("You are not allowed to change user status " + callerAddr) + " / ") + admin)) | |
271 | 271 | } | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | ||
275 | 275 | @Callable(i) | |
276 | 276 | func creditUser (address) = { | |
277 | 277 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
278 | 278 | let id = toBase58String(i.transactionId) | |
279 | 279 | if (if ((callerAddr == admin)) | |
280 | 280 | then true | |
281 | 281 | else (callerAddr == admin2)) | |
282 | 282 | then [ScriptTransfer(Address(fromBase58String(address)), 150000000000, signAssetId)] | |
283 | 283 | else throw("You are not allowed to do that") | |
284 | 284 | } | |
285 | 285 | ||
286 | 286 | ||
287 | 287 | ||
288 | 288 | @Callable(invoke) | |
289 | 289 | func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
290 | 290 | let artId = toBase58String(invoke.transactionId) | |
291 | 291 | let callerAddress = toBase58String(invoke.caller.bytes) | |
292 | 292 | if (!(validateCID(cidDisplay))) | |
293 | 293 | then throw("Wrong Display CID length") | |
294 | 294 | else if (!(validateCID(cidExport))) | |
295 | 295 | then throw("Wrong Export CID length") | |
296 | 296 | else if (!(validateCID(cidLicence))) | |
297 | 297 | then throw("Wrong Licence CID length") | |
298 | 298 | else if (!(validateHash(sha256Hash))) | |
299 | 299 | then throw("Source Hash should be 64 characters maximum") | |
300 | 300 | else if (!(validateHash(sha256Export))) | |
301 | 301 | then throw("Export Hash should be 64 characters maximum") | |
302 | 302 | else if (!(validateHash(sha256Licence))) | |
303 | 303 | then throw("Licence Hash should be 64 characters maximum") | |
304 | 304 | else if ((size(invoke.payments) == 0)) | |
305 | 305 | then throw("No payment attached") | |
306 | 306 | else { | |
307 | 307 | let payment = value(invoke.payments[0]) | |
308 | 308 | let amount = value(payment.amount) | |
309 | 309 | let assetId = if (if (isDefined(payment.assetId)) | |
310 | 310 | then (payment.assetId == signAssetId) | |
311 | 311 | else false) | |
312 | 312 | then payment.assetId | |
313 | 313 | else throw("Only SIGN token accepted at the moment") | |
314 | 314 | let currentCertificationPrice = match getInteger(storageVerifier, ("certification_fee_" + toBase58String(signAssetId))) { | |
315 | 315 | case price: Int => | |
316 | 316 | price | |
317 | 317 | case _ => | |
318 | 318 | throw("Price undefined in oracle") | |
319 | 319 | } | |
320 | 320 | if ((amount != currentCertificationPrice)) | |
321 | 321 | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
322 | 322 | else { | |
323 | 323 | let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, callerAddress)) | |
324 | 324 | if ((entryExist != "")) | |
325 | 325 | then throw("You already added this artwork on Sign Art") | |
326 | 326 | else { | |
327 | 327 | let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash)) | |
328 | 328 | if ((hashExist != "")) | |
329 | 329 | then throw("This artwork hash is already registered on Sign Art") | |
330 | 330 | else { | |
331 | 331 | let isSignCertified = checkSignCertificate(signID, callerAddress, sha256Hash) | |
332 | 332 | if (!(isSignCertified)) | |
333 | 333 | then throw("Sign Certificate not found on Sign-web.app smart contract for this address.") | |
334 | 334 | else if ((size(cidDisplay) == 0)) | |
335 | 335 | then throw("Display CID cannot be empty") | |
336 | 336 | else if ((size(name) == 0)) | |
337 | 337 | then throw("Title cannot be empty") | |
338 | 338 | else if ((size(name) > 100)) | |
339 | 339 | then throw("100 Characters maximum for the name") | |
340 | 340 | else if ((size(description) > 1000)) | |
341 | 341 | then throw("1000 Characters maximum for the description") | |
342 | 342 | else if ((size(description) == 0)) | |
343 | 343 | then throw("Description cannot be empty") | |
344 | 344 | else { | |
345 | 345 | let tagsList = split(tags, ",") | |
346 | 346 | if ((size(tagsList) > 5)) | |
347 | 347 | then throw("Tags should be maximum 5 single word separated by space.") | |
348 | 348 | else { | |
349 | 349 | let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) { | |
350 | 350 | case s: String => | |
351 | 351 | s | |
352 | 352 | case _ => | |
353 | 353 | userUnregistered | |
354 | 354 | } | |
355 | 355 | let timestamp = lastBlock.timestamp | |
356 | 356 | if (if (isDefined(userIsRegistered)) | |
357 | 357 | then (userIsRegistered == userUnregistered) | |
358 | 358 | else false) | |
359 | 359 | then throw("Please register this account first with \"User infos\" tab") | |
360 | 360 | else if ((userIsRegistered == userSuspended)) | |
361 | 361 | then throw("Your account is suspended") | |
362 | 362 | else if ((userIsRegistered == userRemoved)) | |
363 | 363 | then throw("Your account have been removed") | |
364 | 364 | else if ((maxmint > 10)) | |
365 | 365 | then throw("Maximum 10 editions per artwork") | |
366 | 366 | else if ((size(sha256Hash) != 64)) | |
367 | 367 | then throw("Hash should be sha256 string composed of 64 char.") | |
368 | 368 | else [StringEntry(keyArtOwnerByHash(sha256Hash), callerAddress), StringEntry(keyArtTxidByHashOwner(sha256Hash, callerAddress), artId), 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), StringEntry(keyArtHashByTxidAddr(callerAddress, artId), sha256Hash), ScriptTransfer(Address(fromBase58String(feeReceiver)), amount, assetId)] | |
369 | 369 | } | |
370 | 370 | } | |
371 | 371 | } | |
372 | 372 | } | |
373 | 373 | } | |
374 | 374 | } | |
375 | 375 | } | |
376 | 376 | ||
377 | 377 | ||
378 | 378 | ||
379 | 379 | @Callable(invoke) | |
380 | 380 | func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
381 | 381 | let updateId = toBase58String(invoke.transactionId) | |
382 | 382 | let callerAddress = toBase58String(invoke.caller.bytes) | |
383 | 383 | if (!(validateCID(cidDisplay))) | |
384 | 384 | then throw("Wrong Display CID length") | |
385 | 385 | else if (!(validateCID(cidExport))) | |
386 | 386 | then throw("Wrong Export CID length") | |
387 | 387 | else if (!(validateCID(cidLicence))) | |
388 | 388 | then throw("Wrong Licence CID length") | |
389 | 389 | else if (!(validateHash(sha256Export))) | |
390 | 390 | then throw("Export Hash should be 64 characters maximum") | |
391 | 391 | else if (!(validateHash(sha256Licence))) | |
392 | 392 | then throw("Licence Hash should be 64 characters maximum") | |
393 | 393 | else { | |
394 | 394 | let entryExist = getStringByKey(keyArtName(callerAddress, txid)) | |
395 | 395 | if ((entryExist == "")) | |
396 | 396 | then throw("This entry doesn't exist or you are not the owner") | |
397 | 397 | else if ((size(name) == 0)) | |
398 | 398 | then throw("Title cannot be empty") | |
399 | 399 | else if ((size(name) > 100)) | |
400 | 400 | then throw("100 Characters maximum for the name") | |
401 | 401 | else if ((size(description) > 1000)) | |
402 | 402 | then throw("1000 Characters maximum for the description") | |
403 | 403 | else if ((size(description) == 0)) | |
404 | 404 | then throw("Description cannot be empty") | |
405 | 405 | else { | |
406 | 406 | let artworkMinted = match getInteger(this, keyArtIssued(callerAddress, txid)) { | |
407 | 407 | case b: Int => | |
408 | 408 | if ((b == 0)) | |
409 | 409 | then false | |
410 | 410 | else true | |
411 | 411 | case _ => | |
412 | 412 | false | |
413 | 413 | } | |
414 | 414 | let tagsList = split(tags, ",") | |
415 | 415 | if ((size(tagsList) > 5)) | |
416 | 416 | then throw("Tags should be maximum 5 single word separated by space.") | |
417 | 417 | else { | |
418 | 418 | let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) { | |
419 | 419 | case s: String => | |
420 | 420 | s | |
421 | 421 | case _ => | |
422 | 422 | userUnregistered | |
423 | 423 | } | |
424 | 424 | if (if (isDefined(userIsRegistered)) | |
425 | 425 | then (userIsRegistered == userUnregistered) | |
426 | 426 | else false) | |
427 | 427 | then throw("Please register this account first with \"User infos\" tab") | |
428 | 428 | else if ((userIsRegistered == userSuspended)) | |
429 | 429 | then throw("Your account is suspended") | |
430 | 430 | else if ((userIsRegistered == userRemoved)) | |
431 | 431 | then throw("Your account have been removed") | |
432 | 432 | else if ((maxmint > 10)) | |
433 | 433 | then throw("Maximum 10 editions per artwork") | |
434 | 434 | else if (!(artworkMinted)) | |
435 | 435 | 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)] | |
436 | 436 | else throw("You cannot edit artwork that have already minted NFT(s)") | |
437 | 437 | } | |
438 | 438 | } | |
439 | 439 | } | |
440 | 440 | } | |
441 | 441 | ||
442 | 442 | ||
443 | 443 | ||
444 | 444 | @Callable(i) | |
445 | 445 | func deleteArtwork (artId,address) = { | |
446 | 446 | let callerAddress = toString(addressFromPublicKey(i.callerPublicKey)) | |
447 | 447 | let id = toBase58String(i.transactionId) | |
448 | 448 | let addressToUse = if (if ((callerAddress == admin)) | |
449 | 449 | then true | |
450 | 450 | else (callerAddress == admin2)) | |
451 | 451 | then address | |
452 | 452 | else callerAddress | |
453 | 453 | let entryExist = match getString(this, keyArtName(addressToUse, artId)) { | |
454 | 454 | case s: String => | |
455 | 455 | s | |
456 | 456 | case _ => | |
457 | 457 | throw("No artwork matching this request or you are not allowed") | |
458 | 458 | } | |
459 | 459 | let artworkMinted = match getInteger(this, keyArtIssued(addressToUse, artId)) { | |
460 | 460 | case b: Int => | |
461 | 461 | if ((b == 0)) | |
462 | 462 | then false | |
463 | 463 | else true | |
464 | 464 | case _ => | |
465 | 465 | false | |
466 | 466 | } | |
467 | 467 | let sha256Hash = match getString(this, keyArtHashByTxidAddr(addressToUse, artId)) { | |
468 | 468 | case s: String => | |
469 | 469 | s | |
470 | 470 | case _ => | |
471 | 471 | throw("No artwork hash matching this request") | |
472 | 472 | } | |
473 | 473 | let signID = match getString(this, keyArtSignID(addressToUse, artId)) { | |
474 | 474 | case s: String => | |
475 | 475 | s | |
476 | 476 | case _ => | |
477 | 477 | throw("No SIGN ID matching this request") | |
478 | 478 | } | |
479 | 479 | 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), DeleteEntry(keyArtOwnerByHash(sha256Hash)), DeleteEntry(keyArtArtidBySignid(addressToUse, signID)), DeleteEntry(keyArtTxidByHashOwner(sha256Hash, addressToUse))] | |
480 | 480 | if (if ((callerAddress == admin)) | |
481 | 481 | then true | |
482 | 482 | else (callerAddress == admin2)) | |
483 | 483 | then dataToDelete | |
484 | 484 | else if (!(artworkMinted)) | |
485 | 485 | then dataToDelete | |
486 | 486 | else throw("This artwork already have minted NFT, you cannot delete it") | |
487 | 487 | } | |
488 | 488 | ||
489 | 489 | ||
490 | 490 | ||
491 | 491 | @Callable(invoke) | |
492 | 492 | func sellArtwork (artId,price,maxMint,assetId) = { | |
493 | 493 | let id = toBase58String(invoke.transactionId) | |
494 | 494 | let callerAddress = toBase58String(invoke.caller.bytes) | |
495 | 495 | let sellDate = lastBlock.timestamp | |
496 | 496 | let exportCID = getStringByKey(keyArtExportCid(callerAddress, artId)) | |
497 | 497 | if ((size(split(exportCID, "/")[0]) != 59)) | |
498 | 498 | then throw("You cannot sell artwork with no export file") | |
499 | 499 | else { | |
500 | 500 | let exportHash = getStringByKey(keyArtExportHash(callerAddress, artId)) | |
501 | 501 | if ((size(exportHash) != 64)) | |
502 | 502 | then throw("You cannot sell artwork with no export hash") | |
503 | 503 | else if (if (if ((assetId != toBase58String(signAssetId))) | |
504 | 504 | then (assetId != toBase58String(wavesAssetId)) | |
505 | 505 | else false) | |
506 | 506 | then (assetId != toBase58String(usdnAssetId)) | |
507 | 507 | else false) | |
508 | 508 | then throw("Only SIGN, USDN or WAVES currency accepted at the moment") | |
509 | 509 | else { | |
510 | 510 | let artworkName = match getString(this, keyArtName(callerAddress, artId)) { | |
511 | 511 | case s: String => | |
512 | 512 | s | |
513 | 513 | case _ => | |
514 | 514 | throw("This artwork doesn't exit or you are not the owner") | |
515 | 515 | } | |
516 | 516 | let userIsRegistered = match getString(this, keyUserStatus(callerAddress)) { | |
517 | 517 | case s: String => | |
518 | 518 | s | |
519 | 519 | case _ => | |
520 | 520 | throw("Please register this account first") | |
521 | 521 | } | |
522 | 522 | let amountSold = match getInteger(this, keyArtIssued(callerAddress, artId)) { | |
523 | 523 | case n: Int => | |
524 | 524 | n | |
525 | 525 | case _ => | |
526 | 526 | 0 | |
527 | 527 | } | |
528 | 528 | let maxCanSell = match getInteger(this, keyArtMaxMint(callerAddress, artId)) { | |
529 | 529 | case n: Int => | |
530 | 530 | n | |
531 | 531 | case _ => | |
532 | 532 | 0 | |
533 | 533 | } | |
534 | 534 | if (if ((amountSold != 0)) | |
535 | 535 | then (amountSold == maxCanSell) | |
536 | 536 | else false) | |
537 | 537 | then throw("You reached the max edition allowed to sell for this edition.") | |
538 | 538 | else if (if ((amountSold > 0)) | |
539 | 539 | then (maxCanSell != maxMint) | |
540 | 540 | else false) | |
541 | 541 | then throw("You cannot change the maximum issuable anymore") | |
542 | 542 | else if ((userIsRegistered == userSuspended)) | |
543 | 543 | then throw("Your account is suspended") | |
544 | 544 | else if ((userIsRegistered == userRemoved)) | |
545 | 545 | then throw("Your account have been deleted") | |
546 | 546 | else { | |
547 | 547 | let sellStatus = if ((price > 0)) | |
548 | 548 | then true | |
549 | 549 | else false | |
550 | 550 | [BooleanEntry(keyArtOnSale(callerAddress, artId), sellStatus), IntegerEntry(keyArtPrice(callerAddress, artId), price), IntegerEntry(keyArtMaxMint(callerAddress, artId), maxMint), StringEntry(keyArtAssetIdAccepted(callerAddress, artId), assetId), StringEntry("last_invoke_id", id)] | |
551 | 551 | } | |
552 | 552 | } | |
553 | 553 | } | |
554 | 554 | } | |
555 | 555 | ||
556 | 556 | ||
557 | 557 | ||
558 | 558 | @Callable(invoke) | |
559 | 559 | func buyArtwork (artId,issuer) = { | |
560 | 560 | let id = toBase58String(invoke.transactionId) | |
561 | 561 | let callerAddress = toBase58String(invoke.caller.bytes) | |
562 | 562 | let totalNFT = getIntegerByKey("total_nft_issued") | |
563 | 563 | let signID = getStringByKey(keyArtSignID(issuer, artId)) | |
564 | 564 | let artworkName = match getString(this, keyArtName(issuer, artId)) { | |
565 | 565 | case s: String => | |
566 | 566 | s | |
567 | 567 | case _ => | |
568 | 568 | throw("This artwork doesn't exit") | |
569 | 569 | } | |
570 | 570 | let displayCID = getStringByKey(keyArtDisplayCid(issuer, artId)) | |
571 | 571 | let exportCID = getStringByKey(keyArtExportCid(issuer, artId)) | |
572 | 572 | let exportHash = getStringByKey(keyArtExportHash(issuer, artId)) | |
573 | 573 | let licenceCID = getStringByKey(keyArtLicenceCid(issuer, artId)) | |
574 | 574 | let licenceHash = getStringByKey(keyArtLicenceHash(issuer, artId)) | |
575 | 575 | let description = take(getStringByKey(keyArtDesc(issuer, artId)), 50) | |
576 | 576 | let amountSold = getIntegerByKey(keyArtIssued(issuer, artId)) | |
577 | 577 | let artworkPrice = getIntegerByKey(keyArtPrice(issuer, artId)) | |
578 | 578 | let isOnSale = getBooleanByKey(keyArtOnSale(issuer, artId)) | |
579 | 579 | let priceAssetId = getStringByKey(keyArtAssetIdAccepted(issuer, artId)) | |
580 | 580 | let sourceHash = getStringByKey(keyArtHashByTxidAddr(issuer, artId)) | |
581 | 581 | if ((artworkPrice == 0)) | |
582 | 582 | then throw("This artwork is not for sell") | |
583 | 583 | else if (!(isOnSale)) | |
584 | 584 | then throw("This artwork is not for sale") | |
585 | 585 | else { | |
586 | 586 | let maxCanSell = getIntegerByKey(keyArtMaxMint(issuer, artId)) | |
587 | 587 | let payment = value(invoke.payments[0]) | |
588 | 588 | let amount = value(payment.amount) | |
589 | 589 | let assetId = if (if (isDefined(payment.assetId)) | |
590 | 590 | then (payment.assetId == fromBase58String(priceAssetId)) | |
591 | 591 | else false) | |
592 | 592 | then payment.assetId | |
593 | 593 | else throw((("Only " + priceAssetId) + " token id accepted at the moment")) | |
594 | 594 | if ((amountSold == maxCanSell)) | |
595 | 595 | then throw("Cannot buy this artwork anymore, maximum editions reached") | |
596 | 596 | else if ((artworkPrice != amount)) | |
597 | 597 | then throw(((("Payment don't match seller price: " + toString(artworkPrice)) + " vs ") + toString(amount))) | |
598 | 598 | else { | |
599 | 599 | let newAmountSold = (amountSold + 1) | |
600 | 600 | let entryDate = lastBlock.timestamp | |
601 | 601 | let issueMeta = (((((((((((((((((((((((((((("{\"version\": 1, | |
602 | 602 | \"creator\": \"" + issuer) + "\", | |
603 | 603 | \"artID\": \"") + artId) + "\", | |
604 | 604 | \"signID\": \"") + signID) + "\", | |
605 | 605 | \"artwork_name\": \"") + artworkName) + "\", | |
606 | 606 | \"artwork_desc\": \"") + description) + "\", | |
607 | 607 | \"issue\": \"") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + "\", | |
608 | 608 | \"maxIssuable\": \"") + toString(maxCanSell)) + "\", | |
609 | 609 | \"source_hash\": \"") + sourceHash) + "\", | |
610 | 610 | \"display_cid\": \"") + displayCID) + "\", | |
611 | 611 | \"export_cid\": \"") + exportCID) + "\", | |
612 | 612 | \"export_hash\": \"") + exportHash) + "\", | |
613 | 613 | \"licence_cid\": \"") + licenceCID) + "\", | |
614 | 614 | \"licence_hash\": \"") + licenceHash) + "\"}") | |
615 | 615 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
616 | 616 | let idNFT = calculateAssetId(issueNFT) | |
617 | 617 | let sellStatus = if ((newAmountSold == maxCanSell)) | |
618 | 618 | then false | |
619 | 619 | else true | |
620 | 620 | [IntegerEntry(keyArtIssued(issuer, artId), newAmountSold), StringEntry(((((((("art_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + artId) + "_") + issuer), ((((((callerAddress + "_") + toString(entryDate)) + "_") + id) + "_") + toString(artworkPrice))), IntegerEntry("total_nft_issued", (totalNFT + 1)), BooleanEntry(keyArtOnSale(issuer, artId), sellStatus), StringEntry("last_invoke_id", id), issueNFT, ScriptTransfer(Address(fromBase58String(issuer)), amount, assetId), ScriptTransfer(invoke.caller, 1, idNFT)] | |
621 | 621 | } | |
622 | 622 | } | |
623 | 623 | } | |
624 | 624 | ||
625 | 625 | ||
626 | 626 | ||
627 | 627 | @Callable(i) | |
628 | 628 | func deleteUser (address) = { | |
629 | 629 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
630 | 630 | let id = toBase58String(i.transactionId) | |
631 | 631 | if (if ((callerAddr == admin)) | |
632 | 632 | then true | |
633 | 633 | else (callerAddr == admin2)) | |
634 | 634 | then [DeleteEntry(keyUserDate(address)), DeleteEntry(keyUserAddr(address)), DeleteEntry(keyUserName(address)), DeleteEntry(keyUserDesc(address)), DeleteEntry(keyUserSocial(address)), DeleteEntry(keyUserThumb(address)), StringEntry(keyUserStatus(address), userRemoved), StringEntry("last_invoke_id", id)] | |
635 | 635 | else throw("You are not allowed to do that") | |
636 | 636 | } | |
637 | 637 | ||
638 | 638 |
github/deemru/w8io/026f985 71.88 ms ◑