tx · CH8RfwJeTC1dHRFUwk69MJEmoxNgvnTX5hrUpKBLRDFa 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG: -0.01400000 Waves 2020.10.15 12:15 [1221479] smart account 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG > SELF 0.00000000 Waves
{ "type": 13, "id": "CH8RfwJeTC1dHRFUwk69MJEmoxNgvnTX5hrUpKBLRDFa", "fee": 1400000, "feeAssetId": null, "timestamp": 1602753358746, "version": 2, "chainId": 84, "sender": "3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG", "senderPublicKey": "9SULUbW7L2jV2nv8v48Kdzox4cZ8jEfg778yJHJpgVwM", "proofs": [ "4H1om6KcNCYba8koUtXkUCp6a28H37bWfLEMoCsVsbMJ77W9ucbBpyBV5LrKMb7aCzZLgRjKZPnxZzdjA6TnETVi" ], "script": "base64:AAIEAAAAAAAAAFoIAhIGCgQICAgIEgMKAQgSBgoECAgICBIECgIICBIDCgEIEg4KDAgICAgICAEICAgICBINCgsICAgICAEICAgICBIECgIICBIGCgQIAQEIEgQKAggIEgMKAQgAAAA5AAAAAA9zdG9yYWdlVmVyaWZpZXIJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAADHNpZ25WZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAtzaWduQXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAAC3VzZG5Bc3NldElkAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAMd2F2ZXNBc3N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AQkBAAAADGtleVVzZXJUaHVtYgAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAADWtleVVzZXJTdGF0dXMAAAABBQAAAAdhZGRyZXNzBQAAAAt1c2VyUmVtb3ZlZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAA5sYXN0X2ludm9rZV9pZAUAAAACaWQFAAAAA25pbAkAAAIAAAABAgAAAB5Zb3UgYXJlIG5vdCBhbGxvd2VkIHRvIGRvIHRoYXQAAAAAooWYYQ==", "height": 1221479, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5uZnCPwUarrGz2LEibga1H8sxL5tGvNHf989xrJj5V2K Next: 56MYmwbemRvZyvpFLYRLUh2oJg54KSqjLFNo9rn9mdHV Diff:
Old | New | Differences | |
---|---|---|---|
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 | - | if (!(validateCID(cidDisplay))) | |
315 | + | if (if ((cidDisplay != "")) | |
316 | + | then !(validateCID(cidDisplay)) | |
317 | + | else false) | |
316 | 318 | then throw("Wrong Display CID length") | |
317 | - | else if (!(validateCID(cidExport))) | |
319 | + | else if (if ((cidExport != "")) | |
320 | + | then !(validateCID(cidExport)) | |
321 | + | else false) | |
318 | 322 | then throw("Wrong Export CID length") | |
319 | - | else if (!(validateCID(cidLicence))) | |
323 | + | else if (if ((cidLicence != "")) | |
324 | + | then !(validateCID(cidLicence)) | |
325 | + | else false) | |
320 | 326 | then throw("Wrong Licence CID length") | |
321 | 327 | else if (!(validateHash(sha256Hash))) | |
322 | 328 | then throw("Source Hash should be 64 characters maximum") | |
323 | - | else if (!(validateHash(sha256Export))) | |
329 | + | else if (if ((sha256Export != "")) | |
330 | + | then !(validateHash(sha256Export)) | |
331 | + | else false) | |
324 | 332 | then throw("Export Hash should be 64 characters maximum") | |
325 | - | else if (!(validateHash(sha256Licence))) | |
333 | + | else if (if ((sha256Licence != "")) | |
334 | + | then !(validateHash(sha256Licence)) | |
335 | + | else false) | |
326 | 336 | then throw("Licence Hash should be 64 characters maximum") | |
327 | 337 | else if ((size(invoke.payments) == 0)) | |
328 | 338 | then throw("No payment attached") | |
403 | 413 | func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
404 | 414 | let updateId = toBase58String(invoke.transactionId) | |
405 | 415 | let callerAddress = toBase58String(invoke.caller.bytes) | |
406 | - | if (!(validateCID(cidDisplay))) | |
416 | + | if (if ((cidDisplay != "")) | |
417 | + | then !(validateCID(cidDisplay)) | |
418 | + | else false) | |
407 | 419 | then throw("Wrong Display CID length") | |
408 | - | else if (!(validateCID(cidExport))) | |
420 | + | else if (if ((cidExport != "")) | |
421 | + | then !(validateCID(cidExport)) | |
422 | + | else false) | |
409 | 423 | then throw("Wrong Export CID length") | |
410 | - | else if (!(validateCID(cidLicence))) | |
424 | + | else if (if ((cidLicence != "")) | |
425 | + | then !(validateCID(cidLicence)) | |
426 | + | else false) | |
411 | 427 | then throw("Wrong Licence CID length") | |
412 | - | else if (!(validateHash(sha256Export))) | |
428 | + | else if (if ((sha256Export != "")) | |
429 | + | then !(validateHash(sha256Export)) | |
430 | + | else false) | |
413 | 431 | then throw("Export Hash should be 64 characters maximum") | |
414 | - | else if (!(validateHash(sha256Licence))) | |
432 | + | else if (if ((sha256Licence != "")) | |
433 | + | then !(validateHash(sha256Licence)) | |
434 | + | else false) | |
415 | 435 | then throw("Licence Hash should be 64 characters maximum") | |
416 | 436 | else { | |
417 | 437 | let entryExist = getStringByKey(keyArtName(callerAddress, txid)) |
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 | - | if (!(validateCID(cidDisplay))) | |
315 | + | if (if ((cidDisplay != "")) | |
316 | + | then !(validateCID(cidDisplay)) | |
317 | + | else false) | |
316 | 318 | then throw("Wrong Display CID length") | |
317 | - | else if (!(validateCID(cidExport))) | |
319 | + | else if (if ((cidExport != "")) | |
320 | + | then !(validateCID(cidExport)) | |
321 | + | else false) | |
318 | 322 | then throw("Wrong Export CID length") | |
319 | - | else if (!(validateCID(cidLicence))) | |
323 | + | else if (if ((cidLicence != "")) | |
324 | + | then !(validateCID(cidLicence)) | |
325 | + | else false) | |
320 | 326 | then throw("Wrong Licence CID length") | |
321 | 327 | else if (!(validateHash(sha256Hash))) | |
322 | 328 | then throw("Source Hash should be 64 characters maximum") | |
323 | - | else if (!(validateHash(sha256Export))) | |
329 | + | else if (if ((sha256Export != "")) | |
330 | + | then !(validateHash(sha256Export)) | |
331 | + | else false) | |
324 | 332 | then throw("Export Hash should be 64 characters maximum") | |
325 | - | else if (!(validateHash(sha256Licence))) | |
333 | + | else if (if ((sha256Licence != "")) | |
334 | + | then !(validateHash(sha256Licence)) | |
335 | + | else false) | |
326 | 336 | then throw("Licence Hash should be 64 characters maximum") | |
327 | 337 | else if ((size(invoke.payments) == 0)) | |
328 | 338 | then throw("No payment attached") | |
329 | 339 | else { | |
330 | 340 | let payment = value(invoke.payments[0]) | |
331 | 341 | let amount = value(payment.amount) | |
332 | 342 | let assetId = if (if (isDefined(payment.assetId)) | |
333 | 343 | then (payment.assetId == signAssetId) | |
334 | 344 | else false) | |
335 | 345 | then payment.assetId | |
336 | 346 | else throw("Only SIGN token accepted at the moment") | |
337 | 347 | let currentCertificationPrice = match getInteger(storageVerifier, ("certification_fee_" + toBase58String(signAssetId))) { | |
338 | 348 | case price: Int => | |
339 | 349 | price | |
340 | 350 | case _ => | |
341 | 351 | throw("Price undefined in oracle") | |
342 | 352 | } | |
343 | 353 | if ((amount != currentCertificationPrice)) | |
344 | 354 | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
345 | 355 | else { | |
346 | 356 | let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, callerAddress)) | |
347 | 357 | if ((entryExist != "")) | |
348 | 358 | then throw("You already added this artwork on Sign Art") | |
349 | 359 | else { | |
350 | 360 | let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash)) | |
351 | 361 | if ((hashExist != "")) | |
352 | 362 | then throw("This artwork hash is already registered on Sign Art") | |
353 | 363 | else { | |
354 | 364 | let isSignCertified = checkSignCertificate(signID, callerAddress, sha256Hash) | |
355 | 365 | if (!(isSignCertified)) | |
356 | 366 | then throw("Sign Certificate not found on Sign-web.app smart contract for this address.") | |
357 | 367 | else if ((size(cidDisplay) == 0)) | |
358 | 368 | then throw("Display CID cannot be empty") | |
359 | 369 | else if ((size(name) == 0)) | |
360 | 370 | then throw("Title cannot be empty") | |
361 | 371 | else if ((size(name) > 100)) | |
362 | 372 | then throw("100 Characters maximum for the name") | |
363 | 373 | else if ((size(description) > 1000)) | |
364 | 374 | then throw("1000 Characters maximum for the description") | |
365 | 375 | else if ((size(description) == 0)) | |
366 | 376 | then throw("Description cannot be empty") | |
367 | 377 | else { | |
368 | 378 | let tagsList = split(tags, ",") | |
369 | 379 | if ((size(tagsList) > 5)) | |
370 | 380 | then throw("Tags should be maximum 5 single word separated by space.") | |
371 | 381 | else { | |
372 | 382 | let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) { | |
373 | 383 | case s: String => | |
374 | 384 | s | |
375 | 385 | case _ => | |
376 | 386 | userUnregistered | |
377 | 387 | } | |
378 | 388 | let timestamp = lastBlock.timestamp | |
379 | 389 | if (if (isDefined(userIsRegistered)) | |
380 | 390 | then (userIsRegistered == userUnregistered) | |
381 | 391 | else false) | |
382 | 392 | then throw("Please register this account first with \"User infos\" tab") | |
383 | 393 | else if ((userIsRegistered == userSuspended)) | |
384 | 394 | then throw("Your account is suspended") | |
385 | 395 | else if ((userIsRegistered == userRemoved)) | |
386 | 396 | then throw("Your account have been removed") | |
387 | 397 | else if ((maxmint > 10)) | |
388 | 398 | then throw("Maximum 10 editions per artwork") | |
389 | 399 | else if ((size(sha256Hash) != 64)) | |
390 | 400 | then throw("Hash should be sha256 string composed of 64 char.") | |
391 | 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)] | |
392 | 402 | } | |
393 | 403 | } | |
394 | 404 | } | |
395 | 405 | } | |
396 | 406 | } | |
397 | 407 | } | |
398 | 408 | } | |
399 | 409 | ||
400 | 410 | ||
401 | 411 | ||
402 | 412 | @Callable(invoke) | |
403 | 413 | func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = { | |
404 | 414 | let updateId = toBase58String(invoke.transactionId) | |
405 | 415 | let callerAddress = toBase58String(invoke.caller.bytes) | |
406 | - | if (!(validateCID(cidDisplay))) | |
416 | + | if (if ((cidDisplay != "")) | |
417 | + | then !(validateCID(cidDisplay)) | |
418 | + | else false) | |
407 | 419 | then throw("Wrong Display CID length") | |
408 | - | else if (!(validateCID(cidExport))) | |
420 | + | else if (if ((cidExport != "")) | |
421 | + | then !(validateCID(cidExport)) | |
422 | + | else false) | |
409 | 423 | then throw("Wrong Export CID length") | |
410 | - | else if (!(validateCID(cidLicence))) | |
424 | + | else if (if ((cidLicence != "")) | |
425 | + | then !(validateCID(cidLicence)) | |
426 | + | else false) | |
411 | 427 | then throw("Wrong Licence CID length") | |
412 | - | else if (!(validateHash(sha256Export))) | |
428 | + | else if (if ((sha256Export != "")) | |
429 | + | then !(validateHash(sha256Export)) | |
430 | + | else false) | |
413 | 431 | then throw("Export Hash should be 64 characters maximum") | |
414 | - | else if (!(validateHash(sha256Licence))) | |
432 | + | else if (if ((sha256Licence != "")) | |
433 | + | then !(validateHash(sha256Licence)) | |
434 | + | else false) | |
415 | 435 | then throw("Licence Hash should be 64 characters maximum") | |
416 | 436 | else { | |
417 | 437 | let entryExist = getStringByKey(keyArtName(callerAddress, txid)) | |
418 | 438 | if ((entryExist == "")) | |
419 | 439 | then throw("This entry doesn't exist or you are not the owner") | |
420 | 440 | else if ((size(name) == 0)) | |
421 | 441 | then throw("Title cannot be empty") | |
422 | 442 | else if ((size(name) > 100)) | |
423 | 443 | then throw("100 Characters maximum for the name") | |
424 | 444 | else if ((size(description) > 1000)) | |
425 | 445 | then throw("1000 Characters maximum for the description") | |
426 | 446 | else if ((size(description) == 0)) | |
427 | 447 | then throw("Description cannot be empty") | |
428 | 448 | else { | |
429 | 449 | let artworkMinted = match getInteger(this, keyArtIssued(callerAddress, txid)) { | |
430 | 450 | case b: Int => | |
431 | 451 | if ((b == 0)) | |
432 | 452 | then false | |
433 | 453 | else true | |
434 | 454 | case _ => | |
435 | 455 | false | |
436 | 456 | } | |
437 | 457 | let tagsList = split(tags, ",") | |
438 | 458 | if ((size(tagsList) > 5)) | |
439 | 459 | then throw("Tags should be maximum 5 single word separated by space.") | |
440 | 460 | else { | |
441 | 461 | let userIsRegistered = match getString(this, ("user_status_" + callerAddress)) { | |
442 | 462 | case s: String => | |
443 | 463 | s | |
444 | 464 | case _ => | |
445 | 465 | userUnregistered | |
446 | 466 | } | |
447 | 467 | if (if (isDefined(userIsRegistered)) | |
448 | 468 | then (userIsRegistered == userUnregistered) | |
449 | 469 | else false) | |
450 | 470 | then throw("Please register this account first with \"User infos\" tab") | |
451 | 471 | else if ((userIsRegistered == userSuspended)) | |
452 | 472 | then throw("Your account is suspended") | |
453 | 473 | else if ((userIsRegistered == userRemoved)) | |
454 | 474 | then throw("Your account have been removed") | |
455 | 475 | else if ((maxmint > 10)) | |
456 | 476 | then throw("Maximum 10 editions per artwork") | |
457 | 477 | else if (!(artworkMinted)) | |
458 | 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)] | |
459 | 479 | else throw("You cannot edit artwork that have already minted NFT(s)") | |
460 | 480 | } | |
461 | 481 | } | |
462 | 482 | } | |
463 | 483 | } | |
464 | 484 | ||
465 | 485 | ||
466 | 486 | ||
467 | 487 | @Callable(i) | |
468 | 488 | func deleteArtwork (artId,address) = { | |
469 | 489 | let callerAddress = toString(addressFromPublicKey(i.callerPublicKey)) | |
470 | 490 | let id = toBase58String(i.transactionId) | |
471 | 491 | let addressToUse = if (if ((callerAddress == admin)) | |
472 | 492 | then true | |
473 | 493 | else (callerAddress == admin2)) | |
474 | 494 | then address | |
475 | 495 | else callerAddress | |
476 | 496 | let entryExist = match getString(this, keyArtName(addressToUse, artId)) { | |
477 | 497 | case s: String => | |
478 | 498 | s | |
479 | 499 | case _ => | |
480 | 500 | throw("No artwork matching this request or you are not allowed") | |
481 | 501 | } | |
482 | 502 | let artworkMinted = match getInteger(this, keyArtIssued(addressToUse, artId)) { | |
483 | 503 | case b: Int => | |
484 | 504 | if ((b == 0)) | |
485 | 505 | then false | |
486 | 506 | else true | |
487 | 507 | case _ => | |
488 | 508 | false | |
489 | 509 | } | |
490 | 510 | let sha256Hash = match getString(this, keyArtHashByTxidAddr(addressToUse, artId)) { | |
491 | 511 | case s: String => | |
492 | 512 | s | |
493 | 513 | case _ => | |
494 | 514 | throw("No artwork hash matching this request") | |
495 | 515 | } | |
496 | 516 | let signID = match getString(this, keyArtSignID(addressToUse, artId)) { | |
497 | 517 | case s: String => | |
498 | 518 | s | |
499 | 519 | case _ => | |
500 | 520 | throw("No SIGN ID matching this request") | |
501 | 521 | } | |
502 | 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))] | |
503 | 523 | if (if ((callerAddress == admin)) | |
504 | 524 | then true | |
505 | 525 | else (callerAddress == admin2)) | |
506 | 526 | then dataToDelete | |
507 | 527 | else if (!(artworkMinted)) | |
508 | 528 | then dataToDelete | |
509 | 529 | else throw("This artwork already have minted NFT, you cannot delete it") | |
510 | 530 | } | |
511 | 531 | ||
512 | 532 | ||
513 | 533 | ||
514 | 534 | @Callable(invoke) | |
515 | 535 | func sellArtwork (artId,price,maxMint,assetId) = { | |
516 | 536 | let id = toBase58String(invoke.transactionId) | |
517 | 537 | let callerAddress = toBase58String(invoke.caller.bytes) | |
518 | 538 | let sellDate = lastBlock.timestamp | |
519 | 539 | let exportCID = getStringByKey(keyArtExportCid(callerAddress, artId)) | |
520 | 540 | if ((size(split(exportCID, "/")[0]) != 59)) | |
521 | 541 | then throw("You cannot sell artwork with no export file") | |
522 | 542 | else { | |
523 | 543 | let exportHash = getStringByKey(keyArtExportHash(callerAddress, artId)) | |
524 | 544 | if ((size(exportHash) != 64)) | |
525 | 545 | then throw("You cannot sell artwork with no export hash") | |
526 | 546 | else if (if (if ((assetId != toBase58String(signAssetId))) | |
527 | 547 | then (assetId != toBase58String(wavesAssetId)) | |
528 | 548 | else false) | |
529 | 549 | then (assetId != toBase58String(usdnAssetId)) | |
530 | 550 | else false) | |
531 | 551 | then throw("Only SIGN, USDN or WAVES currency accepted at the moment") | |
532 | 552 | else { | |
533 | 553 | let artworkName = match getString(this, keyArtName(callerAddress, artId)) { | |
534 | 554 | case s: String => | |
535 | 555 | s | |
536 | 556 | case _ => | |
537 | 557 | throw("This artwork doesn't exit or you are not the owner") | |
538 | 558 | } | |
539 | 559 | let userIsRegistered = match getString(this, keyUserStatus(callerAddress)) { | |
540 | 560 | case s: String => | |
541 | 561 | s | |
542 | 562 | case _ => | |
543 | 563 | throw("Please register this account first") | |
544 | 564 | } | |
545 | 565 | let amountSold = match getInteger(this, keyArtIssued(callerAddress, artId)) { | |
546 | 566 | case n: Int => | |
547 | 567 | n | |
548 | 568 | case _ => | |
549 | 569 | 0 | |
550 | 570 | } | |
551 | 571 | let maxCanSell = match getInteger(this, keyArtMaxMint(callerAddress, artId)) { | |
552 | 572 | case n: Int => | |
553 | 573 | n | |
554 | 574 | case _ => | |
555 | 575 | 0 | |
556 | 576 | } | |
557 | 577 | if (if ((amountSold != 0)) | |
558 | 578 | then (amountSold == maxCanSell) | |
559 | 579 | else false) | |
560 | 580 | then throw("You reached the max edition allowed to sell for this edition.") | |
561 | 581 | else if (if ((amountSold > 0)) | |
562 | 582 | then (maxCanSell != maxMint) | |
563 | 583 | else false) | |
564 | 584 | then throw("You cannot change the maximum issuable anymore") | |
565 | 585 | else if ((userIsRegistered == userSuspended)) | |
566 | 586 | then throw("Your account is suspended") | |
567 | 587 | else if ((userIsRegistered == userRemoved)) | |
568 | 588 | then throw("Your account have been deleted") | |
569 | 589 | else { | |
570 | 590 | let sellStatus = if ((price > 0)) | |
571 | 591 | then true | |
572 | 592 | else false | |
573 | 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)] | |
574 | 594 | } | |
575 | 595 | } | |
576 | 596 | } | |
577 | 597 | } | |
578 | 598 | ||
579 | 599 | ||
580 | 600 | ||
581 | 601 | @Callable(invoke) | |
582 | 602 | func buyArtwork (artId,issuer) = { | |
583 | 603 | let id = toBase58String(invoke.transactionId) | |
584 | 604 | let callerAddress = toBase58String(invoke.caller.bytes) | |
585 | 605 | let totalNFT = getIntegerByKey("total_nft_issued") | |
586 | 606 | let signID = getStringByKey(keyArtSignID(issuer, artId)) | |
587 | 607 | let artworkName = match getString(this, keyArtName(issuer, artId)) { | |
588 | 608 | case s: String => | |
589 | 609 | s | |
590 | 610 | case _ => | |
591 | 611 | throw("This artwork doesn't exit") | |
592 | 612 | } | |
593 | 613 | let displayCID = getStringByKey(keyArtDisplayCid(issuer, artId)) | |
594 | 614 | let exportCID = getStringByKey(keyArtExportCid(issuer, artId)) | |
595 | 615 | let exportHash = getStringByKey(keyArtExportHash(issuer, artId)) | |
596 | 616 | let licenceCID = getStringByKey(keyArtLicenceCid(issuer, artId)) | |
597 | 617 | let licenceHash = getStringByKey(keyArtLicenceHash(issuer, artId)) | |
598 | 618 | let description = take(getStringByKey(keyArtDesc(issuer, artId)), 50) | |
599 | 619 | let amountSold = getIntegerByKey(keyArtIssued(issuer, artId)) | |
600 | 620 | let artworkPrice = getIntegerByKey(keyArtPrice(issuer, artId)) | |
601 | 621 | let isOnSale = getBooleanByKey(keyArtOnSale(issuer, artId)) | |
602 | 622 | let priceAssetId = getStringByKey(keyArtAssetIdAccepted(issuer, artId)) | |
603 | 623 | let sourceHash = getStringByKey(keyArtHashByTxidAddr(issuer, artId)) | |
604 | 624 | if ((artworkPrice == 0)) | |
605 | 625 | then throw("This artwork is not for sell") | |
606 | 626 | else if (!(isOnSale)) | |
607 | 627 | then throw("This artwork is not for sale") | |
608 | 628 | else { | |
609 | 629 | let maxCanSell = getIntegerByKey(keyArtMaxMint(issuer, artId)) | |
610 | 630 | let payment = value(invoke.payments[0]) | |
611 | 631 | let amount = value(payment.amount) | |
612 | 632 | let assetId = if (if (isDefined(payment.assetId)) | |
613 | 633 | then (payment.assetId == fromBase58String(priceAssetId)) | |
614 | 634 | else false) | |
615 | 635 | then payment.assetId | |
616 | 636 | else throw((("Only " + priceAssetId) + " token id accepted at the moment")) | |
617 | 637 | let cut = if ((priceAssetId == toBase58String(signAssetId))) | |
618 | 638 | then 8 | |
619 | 639 | else 10 | |
620 | 640 | let amountForSign = ((amount / 100) * cut) | |
621 | 641 | let amountForCreator = (amount - amountForSign) | |
622 | 642 | if ((amountSold == maxCanSell)) | |
623 | 643 | then throw("Cannot buy this artwork anymore, maximum editions reached") | |
624 | 644 | else if ((artworkPrice != amount)) | |
625 | 645 | then throw(((("Payment don't match seller price: " + toString(artworkPrice)) + " vs ") + toString(amount))) | |
626 | 646 | else { | |
627 | 647 | let newAmountSold = (amountSold + 1) | |
628 | 648 | let entryDate = lastBlock.timestamp | |
629 | 649 | let issueMeta = (((((((((((((((((((((((((((("{\"version\": 1, | |
630 | 650 | \"creator\": \"" + issuer) + "\", | |
631 | 651 | \"artID\": \"") + artId) + "\", | |
632 | 652 | \"signID\": \"") + signID) + "\", | |
633 | 653 | \"artwork_name\": \"") + artworkName) + "\", | |
634 | 654 | \"artwork_desc\": \"") + description) + "\", | |
635 | 655 | \"issue\": \"") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + "\", | |
636 | 656 | \"maxIssuable\": \"") + toString(maxCanSell)) + "\", | |
637 | 657 | \"source_hash\": \"") + sourceHash) + "\", | |
638 | 658 | \"display_cid\": \"") + displayCID) + "\", | |
639 | 659 | \"export_cid\": \"") + exportCID) + "\", | |
640 | 660 | \"export_hash\": \"") + exportHash) + "\", | |
641 | 661 | \"licence_cid\": \"") + licenceCID) + "\", | |
642 | 662 | \"licence_hash\": \"") + licenceHash) + "\"}") | |
643 | 663 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
644 | 664 | let idNFT = calculateAssetId(issueNFT) | |
645 | 665 | let sellStatus = if ((newAmountSold == maxCanSell)) | |
646 | 666 | then false | |
647 | 667 | else true | |
648 | 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)] | |
649 | 669 | } | |
650 | 670 | } | |
651 | 671 | } | |
652 | 672 | ||
653 | 673 | ||
654 | 674 | ||
655 | 675 | @Callable(i) | |
656 | 676 | func deleteUser (address) = { | |
657 | 677 | let callerAddr = toString(addressFromPublicKey(i.callerPublicKey)) | |
658 | 678 | let id = toBase58String(i.transactionId) | |
659 | 679 | if (if ((callerAddr == admin)) | |
660 | 680 | then true | |
661 | 681 | else (callerAddr == admin2)) | |
662 | 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)] | |
663 | 683 | else throw("You are not allowed to do that") | |
664 | 684 | } | |
665 | 685 | ||
666 | 686 |
github/deemru/w8io/026f985 71.71 ms ◑