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