tx · 4tKjbNpfXA5VfZuGzfHqoAB5ooB7GQRRPAa5diZJLsEQ 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG: -0.01400000 Waves 2020.11.14 09:36 [1264692] smart account 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG > SELF 0.00000000 Waves
{ "type": 13, "id": "4tKjbNpfXA5VfZuGzfHqoAB5ooB7GQRRPAa5diZJLsEQ", "fee": 1400000, "feeAssetId": null, "timestamp": 1605335835208, "version": 2, "chainId": 84, "sender": "3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG", "senderPublicKey": "9SULUbW7L2jV2nv8v48Kdzox4cZ8jEfg778yJHJpgVwM", "proofs": [ "3837W6qhFj3t8fKLgyXKvnKCs96ox3sJEaXkCGJzBZAU895d95b7GGcja85zPoyQrruskdtEMFSqvfnz3VFyWAcL" ], "script": "base64:AAIEAAAAAAAAAGEIAhIGCgQICAgIEgYKBAgICAgSBAoCCAgSDgoMCAgICAgIAQgICAgIEg0KCwgICAgIAQgICAgIEgUKAwgICBIECgIICBIGCgQIAQEIEgQKAggIEgMKAQgSAwoBCBIDCgEIAAAAOwAAAAAJb3JhY2xlRmVlCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNOMnM1UnRhSFBCZW5Dc3gyRUNjb0ZSYllIeDNub1poWFcxAAAAAAhzaWduRGFwcAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAtzaWduQXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAAC3VzZG5Bc3NldElkAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAMd2F2ZXNBc3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ACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAANa2V5VXNlclN0YXR1cwAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAObGFzdF9pbnZva2VfaWQFAAAAAmlkBQAAAANuaWwJAAACAAAAAQIAAAALTm90IGFsbG93ZWQAAAABaQEAAAALZGVsZXRlRW50cnkAAAABAAAABWVudHJ5BAAAAAZjYWxsZXIJAAQlAAAAAQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5AwkAAAAAAAACBQAAAAZjYWxsZXIFAAAABWNocmlzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABWVudHJ5BQAAAANuaWwJAAACAAAAAQIAAAACbm8AAAABaQEAAAAKY3JlZGl0VXNlcgAAAAEAAAAHYWRkcmVzcwQAAAAGY2FsbGVyCQAEJQAAAAEJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQQAAAACaWQJAAJYAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAMJAQAAAA9jb250YWluc0VsZW1lbnQAAAACCQAETAAAAAIFAAAABWNocmlzCQAETAAAAAIFAAAABGpvZXAFAAAAA25pbAUAAAAGY2FsbGVyCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAAAdhZGRyZXNzAAAAACLsslwABQAAAAtzaWduQXNzZXRJZAUAAAADbmlsCQAAAgAAAAECAAAAC05vdCBhbGxvd2VkAAAAALCBoUY=", "height": 1264692, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 98Pa2kvtNVWtCx7GjJxkoNRtdrwjSTfuZiusS9f4EsSC Next: 9DguinN29FXChhQXLecGEmZdy5pdyN36mFG35AL1ePdp Diff:
Old | New | Differences | |
---|---|---|---|
674 | 674 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
675 | 675 | let id = toBase58String(i.transactionId) | |
676 | 676 | if (containsElement([chris, joep], caller)) | |
677 | - | then [DeleteEntry(keyUserDate(address)), DeleteEntry(keyUserAddr(address)), DeleteEntry(keyUserName(address)), DeleteEntry(keyUserDesc(address)), DeleteEntry(keyUserSocial(address)), DeleteEntry(keyUserThumb(address)), | |
677 | + | then [DeleteEntry(keyUserDate(address)), DeleteEntry(keyUserAddr(address)), DeleteEntry(keyUserName(address)), DeleteEntry(keyUserDesc(address)), DeleteEntry(keyUserSocial(address)), DeleteEntry(keyUserThumb(address)), DeleteEntry(keyUserStatus(address)), StringEntry("last_invoke_id", id)] | |
678 | 678 | else throw("Not allowed") | |
679 | 679 | } | |
680 | 680 |
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 if ((size(name) > 45)) | |
240 | 240 | then throw("45 Char. max name") | |
241 | 241 | else [IntegerEntry(keyUserDate(caller), timestamp), StringEntry(keyUserAddr(caller), ((id + "_") + toString(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)] | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | ||
246 | 246 | @Callable(i) | |
247 | 247 | func updateUser (name,description,thumb,social) = if (!(dappRunning)) | |
248 | 248 | then throw(maintenanceMSG) | |
249 | 249 | else { | |
250 | 250 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
251 | 251 | let id = toBase58String(i.transactionId) | |
252 | 252 | let canUpdate = getStringByKey(keyUserStatus(caller)) | |
253 | 253 | if (if ((canUpdate == userSuspended)) | |
254 | 254 | then true | |
255 | 255 | else (canUpdate == userRemoved)) | |
256 | 256 | then throw("Account suspended/ removed.") | |
257 | 257 | else if (if ((canUpdate == "")) | |
258 | 258 | then true | |
259 | 259 | else (canUpdate == userAllowed)) | |
260 | 260 | then throw("Register first") | |
261 | 261 | else if (if ((name == "")) | |
262 | 262 | then true | |
263 | 263 | else (description == "")) | |
264 | 264 | then throw("Name & description cannot be empty") | |
265 | 265 | else if ((size(description) > 600)) | |
266 | 266 | then throw("600 Char. max for description") | |
267 | 267 | else if ((size(name) > 45)) | |
268 | 268 | then throw("45 Char. max name") | |
269 | 269 | else [StringEntry(keyUserName(caller), name), StringEntry(keyUserDesc(caller), description), StringEntry(keyUserSocial(caller), social), StringEntry(keyUserThumb(caller), thumb), StringEntry("last_invoke_id", id)] | |
270 | 270 | } | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | ||
274 | 274 | @Callable(i) | |
275 | 275 | func changeUserStatus (address,status) = if (!(dappRunning)) | |
276 | 276 | then throw(maintenanceMSG) | |
277 | 277 | else { | |
278 | 278 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
279 | 279 | let id = toBase58String(i.transactionId) | |
280 | 280 | let currentStatus = getStringByKey(keyUserStatus(address)) | |
281 | 281 | let statusToSet = if ((status == userVerified)) | |
282 | 282 | then userVerified | |
283 | 283 | else if ((status == userRegistered)) | |
284 | 284 | then userRegistered | |
285 | 285 | else if ((status == userSuspended)) | |
286 | 286 | then userSuspended | |
287 | 287 | else if ((status == userRemoved)) | |
288 | 288 | then userRemoved | |
289 | 289 | else if ((status == userAllowed)) | |
290 | 290 | then userAllowed | |
291 | 291 | else if (if ((status == userReset)) | |
292 | 292 | then (currentStatus == userAllowed) | |
293 | 293 | else false) | |
294 | 294 | then "" | |
295 | 295 | else throw("Unknown status") | |
296 | 296 | if (if ((currentStatus == userAllowed)) | |
297 | 297 | then (status == userAllowed) | |
298 | 298 | else false) | |
299 | 299 | then throw("User already allowed") | |
300 | 300 | else if (if ((currentStatus == userRegistered)) | |
301 | 301 | then (status == userAllowed) | |
302 | 302 | else false) | |
303 | 303 | then throw("User already allowed & registered") | |
304 | 304 | else if (if ((currentStatus == userVerified)) | |
305 | 305 | then (status == userAllowed) | |
306 | 306 | else false) | |
307 | 307 | then throw("User already allowed & verified") | |
308 | 308 | else if (containsElement([chris, joep], caller)) | |
309 | 309 | then [StringEntry(keyUserStatus(address), statusToSet), StringEntry("last_invoke_id", id)] | |
310 | 310 | else throw(((("Not allowed to change user status " + caller) + " / ") + chris)) | |
311 | 311 | } | |
312 | 312 | ||
313 | 313 | ||
314 | 314 | ||
315 | 315 | @Callable(invoke) | |
316 | 316 | func addArtwork (sha256Hash,signID,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning)) | |
317 | 317 | then throw(maintenanceMSG) | |
318 | 318 | else { | |
319 | 319 | let artId = toBase58String(invoke.transactionId) | |
320 | 320 | let caller = toBase58String(invoke.caller.bytes) | |
321 | 321 | if (!(validateAllCID(cidDisplay, cidExport, cidLicence))) | |
322 | 322 | then throw("Problem with CID") | |
323 | 323 | else if (!(validateHash(sha256Hash))) | |
324 | 324 | then throw("Hash should be 64 characters maximum") | |
325 | 325 | else if (!(validateAllHash(sha256Export, sha256Licence))) | |
326 | 326 | then throw("Problem with Hashes") | |
327 | 327 | else if ((size(invoke.payments) == 0)) | |
328 | 328 | then throw("No payment attached") | |
329 | 329 | else { | |
330 | 330 | let payment = value(invoke.payments[0]) | |
331 | 331 | let amount = value(payment.amount) | |
332 | 332 | let assetId = if (if (isDefined(payment.assetId)) | |
333 | 333 | then (payment.assetId == signAssetId) | |
334 | 334 | else false) | |
335 | 335 | then payment.assetId | |
336 | 336 | else throw("Only SIGN token accepted at the moment") | |
337 | 337 | let currentCertificationPrice = getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) | |
338 | 338 | if ((amount != currentCertificationPrice)) | |
339 | 339 | then throw(("Payment amount should be " + toString(currentCertificationPrice))) | |
340 | 340 | else { | |
341 | 341 | let entryExist = getStringByKey(keyArtTxidByHashOwner(sha256Hash, caller)) | |
342 | 342 | if ((entryExist != "")) | |
343 | 343 | then throw("You already added it") | |
344 | 344 | else { | |
345 | 345 | let hashExist = getStringByKey(keyArtOwnerByHash(sha256Hash)) | |
346 | 346 | if ((hashExist != "")) | |
347 | 347 | then throw("Hash already registered") | |
348 | 348 | else { | |
349 | 349 | let isSignCertified = checkSignCertificate(signID, caller, sha256Hash) | |
350 | 350 | if (!(isSignCertified)) | |
351 | 351 | then throw("Sign Certificate not found for this address.") | |
352 | 352 | else if ((size(cidDisplay) == 0)) | |
353 | 353 | then throw("Display CID cannot be empty") | |
354 | 354 | else if (!(validateString(name, 100))) | |
355 | 355 | then throw("100 Char. max name") | |
356 | 356 | else if (!(validateString(description, 1000))) | |
357 | 357 | then throw("1000 Char. max description") | |
358 | 358 | else if ((size(split(tags, ",")) > 5)) | |
359 | 359 | then throw("5 tags max.") | |
360 | 360 | else { | |
361 | 361 | let userIsRegistered = match getString(this, ("user_status_" + caller)) { | |
362 | 362 | case s: String => | |
363 | 363 | s | |
364 | 364 | case _ => | |
365 | 365 | userUnregistered | |
366 | 366 | } | |
367 | 367 | let timestamp = lastBlock.timestamp | |
368 | 368 | if (if (isDefined(userIsRegistered)) | |
369 | 369 | then (userIsRegistered == userUnregistered) | |
370 | 370 | else false) | |
371 | 371 | then throw("Register this account first with \"User infos\" tab") | |
372 | 372 | else if ((userIsRegistered == userSuspended)) | |
373 | 373 | then throw("Account suspended") | |
374 | 374 | else if ((userIsRegistered == userRemoved)) | |
375 | 375 | then throw("Account removed") | |
376 | 376 | else if ((maxmint > 10)) | |
377 | 377 | then throw("10 editions max") | |
378 | 378 | else if ((size(sha256Hash) != 64)) | |
379 | 379 | then throw("Hash 64 char. max") | |
380 | 380 | 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)] | |
381 | 381 | } | |
382 | 382 | } | |
383 | 383 | } | |
384 | 384 | } | |
385 | 385 | } | |
386 | 386 | } | |
387 | 387 | ||
388 | 388 | ||
389 | 389 | ||
390 | 390 | @Callable(invoke) | |
391 | 391 | func updateArtwork (txid,name,description,tags,type,maxmint,cidDisplay,sha256Export,cidExport,sha256Licence,cidLicence) = if (!(dappRunning)) | |
392 | 392 | then throw(maintenanceMSG) | |
393 | 393 | else { | |
394 | 394 | let updateId = toBase58String(invoke.transactionId) | |
395 | 395 | let caller = toBase58String(invoke.caller.bytes) | |
396 | 396 | if (!(validateAllCID(cidDisplay, cidExport, cidLicence))) | |
397 | 397 | then throw("Problem with CID") | |
398 | 398 | else if (!(validateAllHash(sha256Export, sha256Licence))) | |
399 | 399 | then throw("Problem with Hashes") | |
400 | 400 | else { | |
401 | 401 | let entryExist = getStringByKey(keyArtName(caller, txid)) | |
402 | 402 | if ((entryExist == "")) | |
403 | 403 | then throw("Entry not found") | |
404 | 404 | else if (!(validateString(name, 100))) | |
405 | 405 | then throw("100 Char. max name") | |
406 | 406 | else if (!(validateString(description, 1000))) | |
407 | 407 | then throw("1000 Char. max description") | |
408 | 408 | else { | |
409 | 409 | let flag = getStringByKey(keyArtFlag(caller, txid)) | |
410 | 410 | if ((flag == "ILLEGAL")) | |
411 | 411 | then throw("Cannot update") | |
412 | 412 | else { | |
413 | 413 | let artworkMinted = match getInteger(this, keyArtIssued(caller, txid)) { | |
414 | 414 | case b: Int => | |
415 | 415 | if ((b == 0)) | |
416 | 416 | then false | |
417 | 417 | else true | |
418 | 418 | case _ => | |
419 | 419 | false | |
420 | 420 | } | |
421 | 421 | if ((size(split(tags, ",")) > 5)) | |
422 | 422 | then throw("5 tags max.") | |
423 | 423 | else { | |
424 | 424 | let userIsRegistered = match getString(this, ("user_status_" + caller)) { | |
425 | 425 | case s: String => | |
426 | 426 | s | |
427 | 427 | case _ => | |
428 | 428 | userUnregistered | |
429 | 429 | } | |
430 | 430 | if (if (isDefined(userIsRegistered)) | |
431 | 431 | then (userIsRegistered == userUnregistered) | |
432 | 432 | else false) | |
433 | 433 | then throw("Register first with \"User infos\"") | |
434 | 434 | else if ((userIsRegistered == userSuspended)) | |
435 | 435 | then throw("Account suspended") | |
436 | 436 | else if ((userIsRegistered == userRemoved)) | |
437 | 437 | then throw("Account removed") | |
438 | 438 | else if ((maxmint > 10)) | |
439 | 439 | then throw("10 editions max per artwork") | |
440 | 440 | else if (!(artworkMinted)) | |
441 | 441 | 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)] | |
442 | 442 | else throw("Already minted") | |
443 | 443 | } | |
444 | 444 | } | |
445 | 445 | } | |
446 | 446 | } | |
447 | 447 | } | |
448 | 448 | ||
449 | 449 | ||
450 | 450 | ||
451 | 451 | @Callable(i) | |
452 | 452 | func flagArtwork (artId,addr,flag) = { | |
453 | 453 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
454 | 454 | let id = toBase58String(i.transactionId) | |
455 | 455 | if (containsElement([chris, joep], caller)) | |
456 | 456 | then if ((flag == "CONSENT")) | |
457 | 457 | then [StringEntry(keyArtFlag(addr, artId), flag), StringEntry("last_invoke_id", id)] | |
458 | 458 | else if ((flag == "")) | |
459 | 459 | then [StringEntry(keyArtFlag(addr, artId), flag), StringEntry("last_invoke_id", id)] | |
460 | 460 | else if ((flag == "ILLEGAL")) | |
461 | 461 | 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)] | |
462 | 462 | else throw(("Unknow status" + flag)) | |
463 | 463 | else throw("no") | |
464 | 464 | } | |
465 | 465 | ||
466 | 466 | ||
467 | 467 | ||
468 | 468 | @Callable(i) | |
469 | 469 | func deleteArtwork (artId,addr) = { | |
470 | 470 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
471 | 471 | let id = toBase58String(i.transactionId) | |
472 | 472 | let addressToUse = if (containsElement([chris, joep], caller)) | |
473 | 473 | then addr | |
474 | 474 | else caller | |
475 | 475 | let entryExist = match getString(this, keyArtName(addressToUse, artId)) { | |
476 | 476 | case s: String => | |
477 | 477 | s | |
478 | 478 | case _ => | |
479 | 479 | throw("No art matching") | |
480 | 480 | } | |
481 | 481 | let artworkMinted = match getInteger(this, keyArtIssued(addressToUse, artId)) { | |
482 | 482 | case b: Int => | |
483 | 483 | if ((b != 0)) | |
484 | 484 | then true | |
485 | 485 | else false | |
486 | 486 | case _ => | |
487 | 487 | false | |
488 | 488 | } | |
489 | 489 | let maxMint = getIntegerByKey(keyArtMaxMint(addressToUse, artId)) | |
490 | 490 | let sha256Hash = match getString(this, keyArtHashByTxidAddr(addressToUse, artId)) { | |
491 | 491 | case s: String => | |
492 | 492 | s | |
493 | 493 | case _ => | |
494 | 494 | throw("No art hash matching") | |
495 | 495 | } | |
496 | 496 | let signID = match getString(this, keyArtSignID(addressToUse, artId)) { | |
497 | 497 | case s: String => | |
498 | 498 | s | |
499 | 499 | case _ => | |
500 | 500 | throw("No SIGN ID matching") | |
501 | 501 | } | |
502 | 502 | 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))] | |
503 | 503 | if (!(artworkMinted)) | |
504 | 504 | then if (!(dappRunning)) | |
505 | 505 | then throw(maintenanceMSG) | |
506 | 506 | else dataToDelete | |
507 | 507 | else throw("Art already minted, cannot delete") | |
508 | 508 | } | |
509 | 509 | ||
510 | 510 | ||
511 | 511 | ||
512 | 512 | @Callable(i) | |
513 | 513 | func sellArtwork (artId,price,maxMint,assetId) = if (!(dappRunning)) | |
514 | 514 | then throw(maintenanceMSG) | |
515 | 515 | else { | |
516 | 516 | let id = toBase58String(i.transactionId) | |
517 | 517 | let caller = toBase58String(i.caller.bytes) | |
518 | 518 | let sellDate = lastBlock.timestamp | |
519 | 519 | let exportCID = getStringByKey(keyArtExportCid(caller, artId)) | |
520 | 520 | if ((size(split(exportCID, "/")[0]) != 59)) | |
521 | 521 | then throw("You cannot sell art with no export file") | |
522 | 522 | else { | |
523 | 523 | let exportHash = getStringByKey(keyArtExportHash(caller, artId)) | |
524 | 524 | if ((size(exportHash) != 64)) | |
525 | 525 | then throw("You cannot sell art with no export hash") | |
526 | 526 | else if (if (if ((assetId != toBase58String(signAssetId))) | |
527 | 527 | then (assetId != toBase58String(wavesAssetId)) | |
528 | 528 | else false) | |
529 | 529 | then (assetId != toBase58String(usdnAssetId)) | |
530 | 530 | else false) | |
531 | 531 | then throw("Only SIGN, USDN or WAVES accepted") | |
532 | 532 | else { | |
533 | 533 | let minSellWaves = getIntegerByKeyFromOracle("waves_min_sell") | |
534 | 534 | let minSellUsdn = 1000000 | |
535 | 535 | let minSellSign = (getIntegerByKeyFromOracle(("certification_fee_" + toBase58String(signAssetId))) * 2) | |
536 | 536 | if (if (if (if (if ((assetId == toBase58String(usdnAssetId))) | |
537 | 537 | then (minSellUsdn > price) | |
538 | 538 | else false) | |
539 | 539 | then (price != 0) | |
540 | 540 | else false) | |
541 | 541 | then true | |
542 | 542 | else if (if ((assetId == toBase58String(signAssetId))) | |
543 | 543 | then (minSellSign > price) | |
544 | 544 | else false) | |
545 | 545 | then (price != 0) | |
546 | 546 | else false) | |
547 | 547 | then true | |
548 | 548 | else if (if ((assetId == toBase58String(wavesAssetId))) | |
549 | 549 | then (minSellWaves > price) | |
550 | 550 | else false) | |
551 | 551 | then (price != 0) | |
552 | 552 | else false) | |
553 | 553 | then throw("Wrong minimum sell price") | |
554 | 554 | else { | |
555 | 555 | let artworkName = match getString(this, keyArtName(caller, artId)) { | |
556 | 556 | case s: String => | |
557 | 557 | s | |
558 | 558 | case _ => | |
559 | 559 | throw("This art doesn't match") | |
560 | 560 | } | |
561 | 561 | let userIsRegistered = match getString(this, keyUserStatus(caller)) { | |
562 | 562 | case s: String => | |
563 | 563 | s | |
564 | 564 | case _ => | |
565 | 565 | throw("Register this account first") | |
566 | 566 | } | |
567 | 567 | let amountSold = getIntegerByKey(keyArtIssued(caller, artId)) | |
568 | 568 | let maxCanSell = getIntegerByKey(keyArtMaxMint(caller, artId)) | |
569 | 569 | if (if ((amountSold != 0)) | |
570 | 570 | then (amountSold == maxCanSell) | |
571 | 571 | else false) | |
572 | 572 | then throw("Max edition reached.") | |
573 | 573 | else if (if ((amountSold > 0)) | |
574 | 574 | then (maxCanSell != maxMint) | |
575 | 575 | else false) | |
576 | 576 | then throw("Cannot change maximum issuable anymore") | |
577 | 577 | else if ((userIsRegistered == userSuspended)) | |
578 | 578 | then throw("Account suspended") | |
579 | 579 | else if ((userIsRegistered == userRemoved)) | |
580 | 580 | then throw("Account deleted") | |
581 | 581 | else { | |
582 | 582 | let sellStatus = if ((price > 0)) | |
583 | 583 | then true | |
584 | 584 | else false | |
585 | 585 | [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)] | |
586 | 586 | } | |
587 | 587 | } | |
588 | 588 | } | |
589 | 589 | } | |
590 | 590 | } | |
591 | 591 | ||
592 | 592 | ||
593 | 593 | ||
594 | 594 | @Callable(i) | |
595 | 595 | func buyArtwork (artId,issuer) = if (!(dappRunning)) | |
596 | 596 | then throw(maintenanceMSG) | |
597 | 597 | else { | |
598 | 598 | let id = toBase58String(i.transactionId) | |
599 | 599 | let caller = toBase58String(i.caller.bytes) | |
600 | 600 | let totalNFT = getIntegerByKey("total_nft_issued") | |
601 | 601 | let signID = getStringByKey(keyArtSignID(issuer, artId)) | |
602 | 602 | let artworkName = match getString(this, keyArtName(issuer, artId)) { | |
603 | 603 | case s: String => | |
604 | 604 | s | |
605 | 605 | case _ => | |
606 | 606 | throw("Art doesn't exist") | |
607 | 607 | } | |
608 | 608 | let displayCID = getStringByKey(keyArtDisplayCid(issuer, artId)) | |
609 | 609 | let exportCID = getStringByKey(keyArtExportCid(issuer, artId)) | |
610 | 610 | let exportHash = getStringByKey(keyArtExportHash(issuer, artId)) | |
611 | 611 | let licenceCID = getStringByKey(keyArtLicenceCid(issuer, artId)) | |
612 | 612 | let licenceHash = getStringByKey(keyArtLicenceHash(issuer, artId)) | |
613 | 613 | let description = take(getStringByKey(keyArtDesc(issuer, artId)), 50) | |
614 | 614 | let amountSold = getIntegerByKey(keyArtIssued(issuer, artId)) | |
615 | 615 | let artworkPrice = getIntegerByKey(keyArtPrice(issuer, artId)) | |
616 | 616 | let isOnSale = getBooleanByKey(keyArtOnSale(issuer, artId)) | |
617 | 617 | let priceAssetId = getStringByKey(keyArtAssetIdAccepted(issuer, artId)) | |
618 | 618 | let sourceHash = getStringByKey(keyArtHashByTxidAddr(issuer, artId)) | |
619 | 619 | if ((artworkPrice == 0)) | |
620 | 620 | then throw("Art not for sell") | |
621 | 621 | else if (!(isOnSale)) | |
622 | 622 | then throw("Art not for sale") | |
623 | 623 | else { | |
624 | 624 | let maxCanSell = getIntegerByKey(keyArtMaxMint(issuer, artId)) | |
625 | 625 | let payment = value(i.payments[0]) | |
626 | 626 | let amount = value(payment.amount) | |
627 | 627 | let assetId = if (if (if (isDefined(payment.assetId)) | |
628 | 628 | then (size(fromBase58String(priceAssetId)) > 0) | |
629 | 629 | else false) | |
630 | 630 | then (payment.assetId == fromBase58String(priceAssetId)) | |
631 | 631 | else false) | |
632 | 632 | then payment.assetId | |
633 | 633 | else unit | |
634 | 634 | let cut = if ((priceAssetId == toBase58String(signAssetId))) | |
635 | 635 | then 8 | |
636 | 636 | else 10 | |
637 | 637 | let amountForSign = fraction(amount, cut, 100) | |
638 | 638 | let amountForCreator = (amount - amountForSign) | |
639 | 639 | if ((amountSold == maxCanSell)) | |
640 | 640 | then throw("Art sold out") | |
641 | 641 | else if ((artworkPrice != amount)) | |
642 | 642 | then throw("Payment don't match") | |
643 | 643 | else { | |
644 | 644 | let newAmountSold = (amountSold + 1) | |
645 | 645 | let entryDate = lastBlock.timestamp | |
646 | 646 | let issueMeta = (((((((((((((((((((((((((((("{\"version\": 1, | |
647 | 647 | \"creator\": \"" + issuer) + "\", | |
648 | 648 | \"artID\": \"") + artId) + "\", | |
649 | 649 | \"signID\": \"") + signID) + "\", | |
650 | 650 | \"artwork_name\": \"") + artworkName) + "\", | |
651 | 651 | \"artwork_desc\": \"") + description) + "\", | |
652 | 652 | \"issue\": \"") + toString(newAmountSold)) + "/") + toString(maxCanSell)) + "\", | |
653 | 653 | \"maxIssuable\": \"") + toString(maxCanSell)) + "\", | |
654 | 654 | \"source_hash\": \"") + sourceHash) + "\", | |
655 | 655 | \"display_cid\": \"") + displayCID) + "\", | |
656 | 656 | \"export_cid\": \"") + exportCID) + "\", | |
657 | 657 | \"export_hash\": \"") + exportHash) + "\", | |
658 | 658 | \"licence_cid\": \"") + licenceCID) + "\", | |
659 | 659 | \"licence_hash\": \"") + licenceHash) + "\"}") | |
660 | 660 | let issueNFT = Issue(("SA_" + toString((totalNFT + 1))), issueMeta, 1, 0, false) | |
661 | 661 | let idNFT = calculateAssetId(issueNFT) | |
662 | 662 | let sellStatus = if ((newAmountSold == maxCanSell)) | |
663 | 663 | then false | |
664 | 664 | else true | |
665 | 665 | [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)] | |
666 | 666 | } | |
667 | 667 | } | |
668 | 668 | } | |
669 | 669 | ||
670 | 670 | ||
671 | 671 | ||
672 | 672 | @Callable(i) | |
673 | 673 | func deleteUser (address) = { | |
674 | 674 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
675 | 675 | let id = toBase58String(i.transactionId) | |
676 | 676 | if (containsElement([chris, joep], caller)) | |
677 | - | then [DeleteEntry(keyUserDate(address)), DeleteEntry(keyUserAddr(address)), DeleteEntry(keyUserName(address)), DeleteEntry(keyUserDesc(address)), DeleteEntry(keyUserSocial(address)), DeleteEntry(keyUserThumb(address)), | |
677 | + | then [DeleteEntry(keyUserDate(address)), DeleteEntry(keyUserAddr(address)), DeleteEntry(keyUserName(address)), DeleteEntry(keyUserDesc(address)), DeleteEntry(keyUserSocial(address)), DeleteEntry(keyUserThumb(address)), DeleteEntry(keyUserStatus(address)), StringEntry("last_invoke_id", id)] | |
678 | 678 | else throw("Not allowed") | |
679 | 679 | } | |
680 | 680 | ||
681 | 681 | ||
682 | 682 | ||
683 | 683 | @Callable(i) | |
684 | 684 | func deleteEntry (entry) = { | |
685 | 685 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
686 | 686 | if ((caller == chris)) | |
687 | 687 | then [DeleteEntry(entry)] | |
688 | 688 | else throw("no") | |
689 | 689 | } | |
690 | 690 | ||
691 | 691 | ||
692 | 692 | ||
693 | 693 | @Callable(i) | |
694 | 694 | func creditUser (address) = { | |
695 | 695 | let caller = toString(addressFromPublicKey(i.callerPublicKey)) | |
696 | 696 | let id = toBase58String(i.transactionId) | |
697 | 697 | if (containsElement([chris, joep], caller)) | |
698 | 698 | then [ScriptTransfer(Address(fromBase58String(address)), 150000000000, signAssetId)] | |
699 | 699 | else throw("Not allowed") | |
700 | 700 | } | |
701 | 701 | ||
702 | 702 |
github/deemru/w8io/026f985 71.35 ms ◑