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