tx · 8orFhj3AyJFL1AJUSEi31sHAagofQrmcPH167R74bb6V 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG: -0.01400000 Waves 2020.10.10 11:22 [1214232] smart account 3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG > SELF 0.00000000 Waves
{ "type": 13, "id": "8orFhj3AyJFL1AJUSEi31sHAagofQrmcPH167R74bb6V", "fee": 1400000, "feeAssetId": null, "timestamp": 1602318224475, "version": 2, "chainId": 84, "sender": "3N2Tdcx5fzxJAKP5hMp9W35Cp1EFzfiJ1zG", "senderPublicKey": "9SULUbW7L2jV2nv8v48Kdzox4cZ8jEfg778yJHJpgVwM", "proofs": [ "4SyH1JAmStw8da6traKgY2w7defHqA6KM3xhTrbeXuEMJJ7meE8dfHAP9CYMfQotBqW9bBQ4RuCsMEnzfkuxD839" ], "script": "base64:AAIEAAAAAAAAAFoIAhIGCgQICAgIEgMKAQgSBgoECAgICBIECgIICBIDCgEIEg4KDAgICAgICAEICAgICBINCgsICAgICAEICAgICBIECgIICBIGCgQIAQEIEgQKAggIEgMKAQgAAAA2AAAAAA9zdG9yYWdlVmVyaWZpZXIJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAADHNpZ25WZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAtzaWduQXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAAC3VzZG5Bc3NldElkAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAMd2F2ZXNBc3NldElkAQAAAAAAAA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YWRkcmVzcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAANa2V5VXNlclNvY2lhbAAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAADGtleVVzZXJUaHVtYgAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAADWtleVVzZXJTdGF0dXMAAAABBQAAAAdhZGRyZXNzBQAAAAt1c2VyUmVtb3ZlZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAA5sYXN0X2ludm9rZV9pZAUAAAACaWQFAAAAA25pbAkAAAIAAAABAgAAAB5Zb3UgYXJlIG5vdCBhbGxvd2VkIHRvIGRvIHRoYXQAAAAACzhqSQ==", "height": 1214232, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G72qiqcFjCDoriQCoyoZ2tpPv4Tp8dua9gGQYWsPFZts Next: A5ewwrzvGtgchFzDoDUdqoSPybwsBJbTiWMzqhdLcnHU Diff:
Old | New | Differences | |
---|---|---|---|
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | - | func I (J) = { | |
101 | - | let v = getString(this, ("user_status_" + J)) | |
100 | + | func I (J) = if (if ((75 > size(J))) | |
101 | + | then (60 > size(split(J, "/")[0])) | |
102 | + | else false) | |
103 | + | then (16 > size(split(J, "/")[1])) | |
104 | + | else false | |
105 | + | ||
106 | + | ||
107 | + | func K (L) = (65 > size(L)) | |
108 | + | ||
109 | + | ||
110 | + | func M (N) = { | |
111 | + | let v = getString(this, ("user_status_" + N)) | |
102 | 112 | if ($isInstanceOf(v, "String")) | |
103 | 113 | then { | |
104 | - | let | |
105 | - | | |
114 | + | let O = v | |
115 | + | O | |
106 | 116 | } | |
107 | 117 | else throw("Something went wrong.") | |
108 | 118 | } | |
109 | 119 | ||
110 | 120 | ||
111 | - | func | |
121 | + | func P (Q) = ("user_" + Q) | |
112 | 122 | ||
113 | 123 | ||
114 | - | func | |
124 | + | func R (Q) = ("user_name_" + Q) | |
115 | 125 | ||
116 | 126 | ||
117 | - | func | |
127 | + | func S (Q) = ("user_desc_" + Q) | |
118 | 128 | ||
119 | 129 | ||
120 | - | func | |
130 | + | func T (Q) = ("user_social_" + Q) | |
121 | 131 | ||
122 | 132 | ||
123 | - | func | |
133 | + | func U (Q) = ("user_thumb_" + Q) | |
124 | 134 | ||
125 | 135 | ||
126 | - | func | |
136 | + | func V (Q) = ("user_status_" + Q) | |
127 | 137 | ||
128 | 138 | ||
129 | - | func | |
139 | + | func W (Q) = ("user_date_" + Q) | |
130 | 140 | ||
131 | 141 | ||
132 | - | func | |
142 | + | func X (Q,Y) = ((("art_date_" + Y) + "_") + Q) | |
133 | 143 | ||
134 | 144 | ||
135 | - | func | |
145 | + | func Z (Q,Y) = ((("art_name_" + Y) + "_") + Q) | |
136 | 146 | ||
137 | 147 | ||
138 | - | func | |
148 | + | func aa (Q,Y) = ((("art_desc_" + Y) + "_") + Q) | |
139 | 149 | ||
140 | 150 | ||
141 | - | func | |
151 | + | func ab (Q,Y) = ((("art_display_cid_" + Y) + "_") + Q) | |
142 | 152 | ||
143 | 153 | ||
144 | - | func | |
154 | + | func ac (Q,Y) = ((("art_export_hash_" + Y) + "_") + Q) | |
145 | 155 | ||
146 | 156 | ||
147 | - | func | |
157 | + | func ad (Q,Y) = ((("art_export_cid_" + Y) + "_") + Q) | |
148 | 158 | ||
149 | 159 | ||
150 | - | func | |
160 | + | func ae (Q,Y) = ((("art_maxmint_" + Y) + "_") + Q) | |
151 | 161 | ||
152 | 162 | ||
153 | - | func | |
163 | + | func af (Q,Y) = ((("art_signid_" + Y) + "_") + Q) | |
154 | 164 | ||
155 | 165 | ||
156 | - | func | |
166 | + | func ag (Q,Y) = ((("art_issued_" + Y) + "_") + Q) | |
157 | 167 | ||
158 | 168 | ||
159 | - | func | |
169 | + | func ah (Q,Y) = ((("art_onsale_" + Y) + "_") + Q) | |
160 | 170 | ||
161 | 171 | ||
162 | - | func | |
172 | + | func ai (Q,Y) = ((("art_licence_hash_" + Y) + "_") + Q) | |
163 | 173 | ||
164 | 174 | ||
165 | - | func | |
175 | + | func aj (Q,Y) = ((("art_licence_cid_" + Y) + "_") + Q) | |
166 | 176 | ||
167 | 177 | ||
168 | - | func | |
178 | + | func ak (Q,Y) = ((("art_tags_" + Y) + "_") + Q) | |
169 | 179 | ||
170 | 180 | ||
171 | - | func | |
181 | + | func al (Q,Y) = ((("art_type_" + Y) + "_") + Q) | |
172 | 182 | ||
173 | 183 | ||
174 | - | func | |
184 | + | func am (Q,Y) = ((("art_price_" + Y) + "_") + Q) | |
175 | 185 | ||
176 | 186 | ||
177 | - | func | |
187 | + | func an (Q,Y) = ((("art_assetAccepted_" + Y) + "_") + Q) | |
178 | 188 | ||
179 | 189 | ||
180 | - | func | |
190 | + | func ao (Q,ap) = ((("get_hashbytxidaddr_" + ap) + "_") + Q) | |
181 | 191 | ||
182 | 192 | ||
183 | - | func | |
193 | + | func aq (D) = ("get_owner_by_hash_" + D) | |
184 | 194 | ||
185 | 195 | ||
186 | - | func | |
196 | + | func ar (Q,as) = ((("get_artidbysignid_" + as) + "_") + Q) | |
187 | 197 | ||
188 | 198 | ||
189 | - | func | |
199 | + | func at (D,Q) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((D + Q))))) | |
190 | 200 | ||
191 | 201 | ||
192 | 202 | @Callable(y) | |
193 | - | func registerUser ( | |
194 | - | let | |
195 | - | let | |
203 | + | func registerUser (au,av,aw,ax) = { | |
204 | + | let Q = toString(addressFromPublicKey(y.callerPublicKey)) | |
205 | + | let ay = t(V(Q)) | |
196 | 206 | let G = toBase58String(y.transactionId) | |
197 | - | let | |
198 | - | if (if (( | |
207 | + | let az = lastBlock.timestamp | |
208 | + | if (if ((ay == n)) | |
199 | 209 | then true | |
200 | - | else ( | |
210 | + | else (ay == o)) | |
201 | 211 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
202 | - | else if (( | |
212 | + | else if ((ay == l)) | |
203 | 213 | then throw("You are already registered, please use update method instead.") | |
204 | - | else if (if (( | |
214 | + | else if (if ((ay == "")) | |
205 | 215 | then j | |
206 | 216 | else false) | |
207 | 217 | then throw("You are now allowed to register yet, please contact us first to get approved.") | |
208 | - | else if (if (( | |
218 | + | else if (if ((au == "")) | |
209 | 219 | then true | |
210 | - | else ( | |
220 | + | else (av == "")) | |
211 | 221 | then throw("Name and description cannot be empty") | |
212 | - | else if ((size( | |
222 | + | else if ((size(av) > 600)) | |
213 | 223 | then throw("600 Characters maximum for the description") | |
214 | - | else [IntegerEntry( | |
224 | + | else [IntegerEntry(W(Q), az), StringEntry(P(Q), ((G + "_") + toString(lastBlock.timestamp))), StringEntry(R(Q), au), StringEntry(S(Q), av), StringEntry(T(Q), ax), StringEntry(U(Q), aw), StringEntry(V(Q), l), StringEntry("last_invoke_id", G)] | |
215 | 225 | } | |
216 | 226 | ||
217 | 227 | ||
218 | 228 | ||
219 | 229 | @Callable(y) | |
220 | - | func deleteEntry ( | |
221 | - | let | |
222 | - | if (( | |
223 | - | then [DeleteEntry( | |
230 | + | func deleteEntry (aA) = { | |
231 | + | let Q = toString(addressFromPublicKey(y.callerPublicKey)) | |
232 | + | if ((Q == h)) | |
233 | + | then [DeleteEntry(aA)] | |
224 | 234 | else throw("no") | |
225 | 235 | } | |
226 | 236 | ||
227 | 237 | ||
228 | 238 | ||
229 | 239 | @Callable(y) | |
230 | - | func updateUser ( | |
231 | - | let | |
232 | - | let | |
233 | - | if (if (( | |
240 | + | func updateUser (au,av,aw,ax) = { | |
241 | + | let Q = toString(addressFromPublicKey(y.callerPublicKey)) | |
242 | + | let ay = t(V(Q)) | |
243 | + | if (if ((ay == n)) | |
234 | 244 | then true | |
235 | - | else ( | |
245 | + | else (ay == o)) | |
236 | 246 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
237 | - | else if (if (( | |
247 | + | else if (if ((ay == "")) | |
238 | 248 | then true | |
239 | - | else ( | |
249 | + | else (ay == k)) | |
240 | 250 | then throw("Please register first with registerUser") | |
241 | 251 | else { | |
242 | 252 | let G = toBase58String(y.transactionId) | |
243 | - | let | |
244 | - | if (if (( | |
253 | + | let az = lastBlock.timestamp | |
254 | + | if (if ((au == "")) | |
245 | 255 | then true | |
246 | - | else ( | |
256 | + | else (av == "")) | |
247 | 257 | then throw("Name and description cannot be empty") | |
248 | - | else if ((size( | |
258 | + | else if ((size(av) > 600)) | |
249 | 259 | then throw("600 Characters maximum for the description") | |
250 | - | else [StringEntry( | |
260 | + | else [StringEntry(R(Q), au), StringEntry(S(Q), av), StringEntry(T(Q), ax), StringEntry(U(Q), aw), StringEntry("last_invoke_id", G)] | |
251 | 261 | } | |
252 | 262 | } | |
253 | 263 | ||
254 | 264 | ||
255 | 265 | ||
256 | 266 | @Callable(y) | |
257 | - | func changeUserStatus ( | |
258 | - | let | |
267 | + | func changeUserStatus (aB,aC) = { | |
268 | + | let Q = toString(addressFromPublicKey(y.callerPublicKey)) | |
259 | 269 | let G = toBase58String(y.transactionId) | |
260 | - | let | |
270 | + | let aD = if ((aC == m)) | |
261 | 271 | then m | |
262 | - | else if (( | |
272 | + | else if ((aC == l)) | |
263 | 273 | then l | |
264 | - | else if (( | |
274 | + | else if ((aC == n)) | |
265 | 275 | then n | |
266 | - | else if (( | |
276 | + | else if ((aC == o)) | |
267 | 277 | then o | |
268 | - | else if (( | |
278 | + | else if ((aC == k)) | |
269 | 279 | then k | |
270 | 280 | else throw("Unknown status") | |
271 | - | if (if (( | |
281 | + | if (if ((Q == h)) | |
272 | 282 | then true | |
273 | - | else ( | |
274 | - | then [StringEntry( | |
275 | - | else throw(((("You are not allowed to change user status " + | |
283 | + | else (Q == i)) | |
284 | + | then [StringEntry(V(aB), aD), StringEntry("last_invoke_id", G)] | |
285 | + | else throw(((("You are not allowed to change user status " + Q) + " / ") + h)) | |
276 | 286 | } | |
277 | 287 | ||
278 | 288 | ||
279 | 289 | ||
280 | 290 | @Callable(y) | |
281 | - | func creditUser ( | |
282 | - | let | |
291 | + | func creditUser (aB) = { | |
292 | + | let Q = toString(addressFromPublicKey(y.callerPublicKey)) | |
283 | 293 | let G = toBase58String(y.transactionId) | |
284 | - | if (if (( | |
294 | + | if (if ((Q == h)) | |
285 | 295 | then true | |
286 | - | else ( | |
287 | - | then [ScriptTransfer(Address(fromBase58String( | |
296 | + | else (Q == i)) | |
297 | + | then [ScriptTransfer(Address(fromBase58String(aB)), 150000000000, d)] | |
288 | 298 | else throw("You are not allowed to do that") | |
289 | 299 | } | |
290 | 300 | ||
291 | 301 | ||
292 | 302 | ||
293 | - | @Callable(aA) | |
294 | - | func addArtwork (D,B,aq,ar,aB,aC,aD,aE,aF,aG,aH,aI) = { | |
295 | - | let U = toBase58String(aA.transactionId) | |
296 | - | let aJ = toBase58String(aA.caller.bytes) | |
297 | - | if ((size(aA.payments) == 0)) | |
298 | - | then throw("No payment attached") | |
299 | - | else { | |
300 | - | let aK = value(aA.payments[0]) | |
301 | - | let aL = value(aK.amount) | |
302 | - | let aM = if (if (isDefined(aK.assetId)) | |
303 | - | then (aK.assetId == d) | |
304 | - | else false) | |
305 | - | then aK.assetId | |
306 | - | else throw("Only SIGN token accepted at the moment") | |
307 | - | let aN = { | |
308 | - | let v = getInteger(a, ("certification_fee_" + toBase58String(d))) | |
309 | - | if ($isInstanceOf(v, "Int")) | |
310 | - | then { | |
311 | - | let aO = v | |
312 | - | aO | |
313 | - | } | |
314 | - | else throw("Price undefined in oracle") | |
315 | - | } | |
316 | - | if ((aL != aN)) | |
317 | - | then throw(("Payment amount should be " + toString(aN))) | |
318 | - | else { | |
319 | - | let aP = t(ap(D, aJ)) | |
320 | - | if ((aP != "")) | |
321 | - | then throw("You already added this artwork on Sign Art") | |
322 | - | else { | |
323 | - | let aQ = t(am(D)) | |
324 | - | if ((aQ != "")) | |
325 | - | then throw("This artwork hash is already registered on Sign Art") | |
303 | + | @Callable(aE) | |
304 | + | func addArtwork (D,B,au,av,aF,aG,aH,aI,aJ,aK,aL,aM) = { | |
305 | + | let Y = toBase58String(aE.transactionId) | |
306 | + | let aN = toBase58String(aE.caller.bytes) | |
307 | + | if (!(I(aI))) | |
308 | + | then throw("Wrong Display CID length") | |
309 | + | else if (!(I(aK))) | |
310 | + | then throw("Wrong Export CID length") | |
311 | + | else if (!(I(aM))) | |
312 | + | then throw("Wrong Licence CID length") | |
313 | + | else if (!(K(D))) | |
314 | + | then throw("Source Hash should be 64 characters maximum") | |
315 | + | else if (!(K(aJ))) | |
316 | + | then throw("Export Hash should be 64 characters maximum") | |
317 | + | else if (!(K(aL))) | |
318 | + | then throw("Licence Hash should be 64 characters maximum") | |
319 | + | else if ((size(aE.payments) == 0)) | |
320 | + | then throw("No payment attached") | |
326 | 321 | else { | |
327 | - | let aR = A(B, aJ, D) | |
328 | - | if (!(aR)) | |
329 | - | then throw("Sign Certificate not found on Sign-web.app smart contract for this address.") | |
330 | - | else if ((size(aE) == 0)) | |
331 | - | then throw("Display CID cannot be empty") | |
332 | - | else if ((size(aq) == 0)) | |
333 | - | then throw("Title cannot be empty") | |
334 | - | else if ((size(aq) > 100)) | |
335 | - | then throw("100 Characters maximum for the name") | |
336 | - | else if ((size(ar) > 1000)) | |
337 | - | then throw("1000 Characters maximum for the description") | |
338 | - | else if ((size(ar) == 0)) | |
339 | - | then throw("Description cannot be empty") | |
340 | - | else { | |
341 | - | let aS = split(aB, ",") | |
342 | - | if ((size(aS) > 5)) | |
343 | - | then throw("Tags should be maximum 5 single word separated by space.") | |
344 | - | else { | |
345 | - | let aT = { | |
346 | - | let v = getString(this, ("user_status_" + aJ)) | |
347 | - | if ($isInstanceOf(v, "String")) | |
348 | - | then { | |
349 | - | let aU = v | |
350 | - | aU | |
351 | - | } | |
352 | - | else p | |
353 | - | } | |
354 | - | let av = lastBlock.timestamp | |
355 | - | if (if (isDefined(aT)) | |
356 | - | then (aT == p) | |
357 | - | else false) | |
358 | - | then throw("Please register this account first with \"User infos\" tab") | |
359 | - | else if ((aT == n)) | |
360 | - | then throw("Your account is suspended") | |
361 | - | else if ((aT == o)) | |
362 | - | then throw("Your account have been removed") | |
363 | - | else if ((aD > 10)) | |
364 | - | then throw("Maximum 10 editions per artwork") | |
365 | - | else if ((size(D) != 64)) | |
366 | - | then throw("Hash should be sha256 string composed of 64 char.") | |
367 | - | else [StringEntry(am(D), aJ), StringEntry(ap(D, aJ), U), IntegerEntry(T(aJ, U), av), StringEntry(V(aJ, U), aq), StringEntry(W(aJ, U), ar), StringEntry(X(aJ, U), aE), StringEntry(Z(aJ, U), aG), StringEntry(Y(aJ, U), aF), StringEntry(ae(aJ, U), aH), StringEntry(af(aJ, U), aI), StringEntry(ah(aJ, U), aC), StringEntry(ag(aJ, U), aB), IntegerEntry(aa(aJ, U), aD), StringEntry(ab(aJ, U), B), IntegerEntry(ac(aJ, U), 0), BooleanEntry(ad(aJ, U), false), StringEntry(an(aJ, B), U), StringEntry("last_invoke_id", U), StringEntry(ak(aJ, U), D), ScriptTransfer(Address(fromBase58String(c)), aL, aM)] | |
368 | - | } | |
369 | - | } | |
322 | + | let aO = value(aE.payments[0]) | |
323 | + | let aP = value(aO.amount) | |
324 | + | let aQ = if (if (isDefined(aO.assetId)) | |
325 | + | then (aO.assetId == d) | |
326 | + | else false) | |
327 | + | then aO.assetId | |
328 | + | else throw("Only SIGN token accepted at the moment") | |
329 | + | let aR = { | |
330 | + | let v = getInteger(a, ("certification_fee_" + toBase58String(d))) | |
331 | + | if ($isInstanceOf(v, "Int")) | |
332 | + | then { | |
333 | + | let aS = v | |
334 | + | aS | |
335 | + | } | |
336 | + | else throw("Price undefined in oracle") | |
337 | + | } | |
338 | + | if ((aP != aR)) | |
339 | + | then throw(("Payment amount should be " + toString(aR))) | |
340 | + | else { | |
341 | + | let aT = t(at(D, aN)) | |
342 | + | if ((aT != "")) | |
343 | + | then throw("You already added this artwork on Sign Art") | |
344 | + | else { | |
345 | + | let aU = t(aq(D)) | |
346 | + | if ((aU != "")) | |
347 | + | then throw("This artwork hash is already registered on Sign Art") | |
348 | + | else { | |
349 | + | let aV = A(B, aN, D) | |
350 | + | if (!(aV)) | |
351 | + | then throw("Sign Certificate not found on Sign-web.app smart contract for this address.") | |
352 | + | else if ((size(aI) == 0)) | |
353 | + | then throw("Display CID cannot be empty") | |
354 | + | else if ((size(au) == 0)) | |
355 | + | then throw("Title cannot be empty") | |
356 | + | else if ((size(au) > 100)) | |
357 | + | then throw("100 Characters maximum for the name") | |
358 | + | else if ((size(av) > 1000)) | |
359 | + | then throw("1000 Characters maximum for the description") | |
360 | + | else if ((size(av) == 0)) | |
361 | + | then throw("Description cannot be empty") | |
362 | + | else { | |
363 | + | let aW = split(aF, ",") | |
364 | + | if ((size(aW) > 5)) | |
365 | + | then throw("Tags should be maximum 5 single word separated by space.") | |
366 | + | else { | |
367 | + | let aX = { | |
368 | + | let v = getString(this, ("user_status_" + aN)) | |
369 | + | if ($isInstanceOf(v, "String")) | |
370 | + | then { | |
371 | + | let aY = v | |
372 | + | aY | |
373 | + | } | |
374 | + | else p | |
375 | + | } | |
376 | + | let az = lastBlock.timestamp | |
377 | + | if (if (isDefined(aX)) | |
378 | + | then (aX == p) | |
379 | + | else false) | |
380 | + | then throw("Please register this account first with \"User infos\" tab") | |
381 | + | else if ((aX == n)) | |
382 | + | then throw("Your account is suspended") | |
383 | + | else if ((aX == o)) | |
384 | + | then throw("Your account have been removed") | |
385 | + | else if ((aH > 10)) | |
386 | + | then throw("Maximum 10 editions per artwork") | |
387 | + | else if ((size(D) != 64)) | |
388 | + | then throw("Hash should be sha256 string composed of 64 char.") | |
389 | + | else [StringEntry(aq(D), aN), StringEntry(at(D, aN), Y), IntegerEntry(X(aN, Y), az), StringEntry(Z(aN, Y), au), StringEntry(aa(aN, Y), av), StringEntry(ab(aN, Y), aI), StringEntry(ad(aN, Y), aK), StringEntry(ac(aN, Y), aJ), StringEntry(ai(aN, Y), aL), StringEntry(aj(aN, Y), aM), StringEntry(al(aN, Y), aG), StringEntry(ak(aN, Y), aF), IntegerEntry(ae(aN, Y), aH), StringEntry(af(aN, Y), B), IntegerEntry(ag(aN, Y), 0), BooleanEntry(ah(aN, Y), false), StringEntry(ar(aN, B), Y), StringEntry("last_invoke_id", Y), StringEntry(ao(aN, Y), D), ScriptTransfer(Address(fromBase58String(c)), aP, aQ)] | |
390 | + | } | |
391 | + | } | |
392 | + | } | |
393 | + | } | |
394 | + | } | |
370 | 395 | } | |
371 | - | } | |
372 | - | } | |
373 | - | } | |
374 | 396 | } | |
375 | 397 | ||
376 | 398 | ||
377 | 399 | ||
378 | - | @Callable(aA) | |
379 | - | func updateArtwork (al,aq,ar,aB,aC,aD,aE,aF,aG,aH,aI) = { | |
380 | - | let aV = toBase58String(aA.transactionId) | |
381 | - | let aJ = toBase58String(aA.caller.bytes) | |
382 | - | let aP = t(V(aJ, al)) | |
383 | - | if ((aP == "")) | |
384 | - | then throw("This entry doesn't exist or you are not the owner") | |
385 | - | else if ((size(aq) == 0)) | |
386 | - | then throw("Title cannot be empty") | |
387 | - | else if ((size(aq) > 100)) | |
388 | - | then throw("100 Characters maximum for the name") | |
389 | - | else if ((size(ar) > 1000)) | |
390 | - | then throw("1000 Characters maximum for the description") | |
391 | - | else if ((size(ar) == 0)) | |
392 | - | then throw("Description cannot be empty") | |
400 | + | @Callable(aE) | |
401 | + | func updateArtwork (ap,au,av,aF,aG,aH,aI,aJ,aK,aL,aM) = { | |
402 | + | let aZ = toBase58String(aE.transactionId) | |
403 | + | let aN = toBase58String(aE.caller.bytes) | |
404 | + | if (!(I(aI))) | |
405 | + | then throw("Display CID should be 59 characters maximum") | |
406 | + | else if (!(I(aK))) | |
407 | + | then throw("Export CID should be 59 characters maximum") | |
408 | + | else if (!(I(aM))) | |
409 | + | then throw("Licence CID should be 59 characters maximum") | |
410 | + | else if (!(K(aJ))) | |
411 | + | then throw("Export Hash should be 64 characters maximum") | |
412 | + | else if (!(K(aL))) | |
413 | + | then throw("Licence Hash should be 64 characters maximum") | |
393 | 414 | else { | |
394 | - | let aW = { | |
395 | - | let v = getInteger(this, ac(aJ, al)) | |
396 | - | if ($isInstanceOf(v, "Int")) | |
397 | - | then { | |
398 | - | let K = v | |
399 | - | if ((K == 0)) | |
400 | - | then false | |
401 | - | else true | |
402 | - | } | |
403 | - | else false | |
404 | - | } | |
405 | - | let aS = split(aB, ",") | |
406 | - | if ((size(aS) > 5)) | |
407 | - | then throw("Tags should be maximum 5 single word separated by space.") | |
408 | - | else { | |
409 | - | let aT = { | |
410 | - | let v = getString(this, ("user_status_" + aJ)) | |
411 | - | if ($isInstanceOf(v, "String")) | |
412 | - | then { | |
413 | - | let aU = v | |
414 | - | aU | |
415 | - | } | |
416 | - | else p | |
417 | - | } | |
418 | - | if (if (isDefined(aT)) | |
419 | - | then (aT == p) | |
420 | - | else false) | |
421 | - | then throw("Please register this account first with \"User infos\" tab") | |
422 | - | else if ((aT == n)) | |
423 | - | then throw("Your account is suspended") | |
424 | - | else if ((aT == o)) | |
425 | - | then throw("Your account have been removed") | |
426 | - | else if ((aD > 10)) | |
427 | - | then throw("Maximum 10 editions per artwork") | |
428 | - | else if (!(aW)) | |
429 | - | then [StringEntry(V(aJ, al), aq), StringEntry(W(aJ, al), ar), StringEntry(X(aJ, al), aE), StringEntry(Z(aJ, al), aG), StringEntry(Y(aJ, al), aF), StringEntry(af(aJ, al), aI), StringEntry(ae(aJ, al), aH), IntegerEntry(aa(aJ, al), aD), StringEntry(ag(aJ, al), aB), StringEntry(ah(aJ, al), aC), StringEntry("last_invoke_id", aV)] | |
430 | - | else [StringEntry(V(aJ, al), aq), StringEntry(W(aJ, al), ar), StringEntry(X(aJ, al), aE), StringEntry(ah(aJ, al), aC), StringEntry(ag(aJ, al), aB), StringEntry("last_invoke_id", aV)] | |
431 | - | } | |
415 | + | let aT = t(Z(aN, ap)) | |
416 | + | if ((aT == "")) | |
417 | + | then throw("This entry doesn't exist or you are not the owner") | |
418 | + | else if ((size(au) == 0)) | |
419 | + | then throw("Title cannot be empty") | |
420 | + | else if ((size(au) > 100)) | |
421 | + | then throw("100 Characters maximum for the name") | |
422 | + | else if ((size(av) > 1000)) | |
423 | + | then throw("1000 Characters maximum for the description") | |
424 | + | else if ((size(av) == 0)) | |
425 | + | then throw("Description cannot be empty") | |
426 | + | else { | |
427 | + | let ba = { | |
428 | + | let v = getInteger(this, ag(aN, ap)) | |
429 | + | if ($isInstanceOf(v, "Int")) | |
430 | + | then { | |
431 | + | let O = v | |
432 | + | if ((O == 0)) | |
433 | + | then false | |
434 | + | else true | |
435 | + | } | |
436 | + | else false | |
437 | + | } | |
438 | + | let aW = split(aF, ",") | |
439 | + | if ((size(aW) > 5)) | |
440 | + | then throw("Tags should be maximum 5 single word separated by space.") | |
441 | + | else { | |
442 | + | let aX = { | |
443 | + | let v = getString(this, ("user_status_" + aN)) | |
444 | + | if ($isInstanceOf(v, "String")) | |
445 | + | then { | |
446 | + | let aY = v | |
447 | + | aY | |
448 | + | } | |
449 | + | else p | |
450 | + | } | |
451 | + | if (if (isDefined(aX)) | |
452 | + | then (aX == p) | |
453 | + | else false) | |
454 | + | then throw("Please register this account first with \"User infos\" tab") | |
455 | + | else if ((aX == n)) | |
456 | + | then throw("Your account is suspended") | |
457 | + | else if ((aX == o)) | |
458 | + | then throw("Your account have been removed") | |
459 | + | else if ((aH > 10)) | |
460 | + | then throw("Maximum 10 editions per artwork") | |
461 | + | else if (!(ba)) | |
462 | + | then [StringEntry(Z(aN, ap), au), StringEntry(aa(aN, ap), av), StringEntry(ab(aN, ap), aI), StringEntry(ad(aN, ap), aK), StringEntry(ac(aN, ap), aJ), StringEntry(aj(aN, ap), aM), StringEntry(ai(aN, ap), aL), IntegerEntry(ae(aN, ap), aH), StringEntry(ak(aN, ap), aF), StringEntry(al(aN, ap), aG), StringEntry("last_invoke_id", aZ)] | |
463 | + | else throw("You cannot edit artwork that have already minted NFT") | |
464 | + | } | |
465 | + | } | |
432 | 466 | } | |
433 | 467 | } | |
434 | 468 | ||
435 | 469 | ||
436 | 470 | ||
437 | 471 | @Callable(y) | |
438 | - | func deleteArtwork ( | |
439 | - | let | |
472 | + | func deleteArtwork (Y,aB) = { | |
473 | + | let aN = toString(addressFromPublicKey(y.callerPublicKey)) | |
440 | 474 | let G = toBase58String(y.transactionId) | |
441 | - | let | |
475 | + | let bb = if (if ((aN == h)) | |
442 | 476 | then true | |
443 | - | else ( | |
444 | - | then | |
445 | - | else | |
446 | - | let | |
447 | - | let v = getString(this, | |
477 | + | else (aN == i)) | |
478 | + | then aB | |
479 | + | else aN | |
480 | + | let aT = { | |
481 | + | let v = getString(this, Z(bb, Y)) | |
448 | 482 | if ($isInstanceOf(v, "String")) | |
449 | 483 | then { | |
450 | - | let | |
451 | - | | |
484 | + | let aY = v | |
485 | + | aY | |
452 | 486 | } | |
453 | 487 | else throw("No artwork matching this request or you are not allowed") | |
454 | 488 | } | |
455 | - | let | |
456 | - | let v = getInteger(this, | |
489 | + | let ba = { | |
490 | + | let v = getInteger(this, ag(bb, Y)) | |
457 | 491 | if ($isInstanceOf(v, "Int")) | |
458 | 492 | then { | |
459 | - | let | |
460 | - | if (( | |
493 | + | let O = v | |
494 | + | if ((O == 0)) | |
461 | 495 | then false | |
462 | 496 | else true | |
463 | 497 | } | |
464 | 498 | else false | |
465 | 499 | } | |
466 | 500 | let D = { | |
467 | - | let v = getString(this, | |
501 | + | let v = getString(this, ao(bb, Y)) | |
468 | 502 | if ($isInstanceOf(v, "String")) | |
469 | 503 | then { | |
470 | - | let | |
471 | - | | |
504 | + | let aY = v | |
505 | + | aY | |
472 | 506 | } | |
473 | 507 | else throw("No artwork hash matching this request") | |
474 | 508 | } | |
475 | 509 | let B = { | |
476 | - | let v = getString(this, | |
510 | + | let v = getString(this, af(bb, Y)) | |
477 | 511 | if ($isInstanceOf(v, "String")) | |
478 | 512 | then { | |
479 | - | let | |
480 | - | | |
513 | + | let aY = v | |
514 | + | aY | |
481 | 515 | } | |
482 | 516 | else throw("No SIGN ID matching this request") | |
483 | 517 | } | |
484 | - | let | |
485 | - | if (if (( | |
518 | + | let bc = [DeleteEntry(X(bb, Y)), DeleteEntry(Z(bb, Y)), DeleteEntry(aa(bb, Y)), DeleteEntry(ab(bb, Y)), DeleteEntry(ad(bb, Y)), DeleteEntry(ac(bb, Y)), DeleteEntry(ai(bb, Y)), DeleteEntry(aj(bb, Y)), DeleteEntry(al(bb, Y)), DeleteEntry(ak(bb, Y)), DeleteEntry(ae(bb, Y)), DeleteEntry(af(bb, Y)), DeleteEntry(ag(bb, Y)), DeleteEntry(ah(bb, Y)), StringEntry("last_invoke_id", G), DeleteEntry(aq(D)), DeleteEntry(ar(bb, B)), DeleteEntry(at(D, bb))] | |
519 | + | if (if ((aN == h)) | |
486 | 520 | then true | |
487 | - | else ( | |
488 | - | then | |
489 | - | else if (!( | |
490 | - | then | |
521 | + | else (aN == i)) | |
522 | + | then bc | |
523 | + | else if (!(ba)) | |
524 | + | then bc | |
491 | 525 | else throw("This artwork already have minted NFT, you cannot delete it") | |
492 | 526 | } | |
493 | 527 | ||
494 | 528 | ||
495 | 529 | ||
496 | - | @Callable( | |
497 | - | func sellArtwork ( | |
498 | - | let G = toBase58String( | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | if ((size( | |
530 | + | @Callable(aE) | |
531 | + | func sellArtwork (Y,aS,bd,aQ) = { | |
532 | + | let G = toBase58String(aE.transactionId) | |
533 | + | let aN = toBase58String(aE.caller.bytes) | |
534 | + | let be = lastBlock.timestamp | |
535 | + | let bf = t(ad(aN, Y)) | |
536 | + | if ((size(bf) == 0)) | |
503 | 537 | then throw("You cannot sell artwork with no export file") | |
504 | 538 | else { | |
505 | - | let | |
506 | - | if ((size( | |
539 | + | let bg = t(ac(aN, Y)) | |
540 | + | if ((size(bg) == 0)) | |
507 | 541 | then throw("You cannot sell artwork with no export hash") | |
508 | - | else if (if (if (( | |
509 | - | then ( | |
542 | + | else if (if (if ((aQ != toBase58String(d))) | |
543 | + | then (aQ != toBase58String(f)) | |
510 | 544 | else false) | |
511 | - | then ( | |
545 | + | then (aQ != toBase58String(e)) | |
512 | 546 | else false) | |
513 | 547 | then throw("Only SIGN, USDN or WAVES currency accepted at the moment") | |
514 | 548 | else { | |
515 | - | let | |
516 | - | let v = getString(this, | |
549 | + | let bh = { | |
550 | + | let v = getString(this, Z(aN, Y)) | |
517 | 551 | if ($isInstanceOf(v, "String")) | |
518 | 552 | then { | |
519 | - | let | |
520 | - | | |
553 | + | let aY = v | |
554 | + | aY | |
521 | 555 | } | |
522 | 556 | else throw("This artwork doesn't exit or you are not the owner") | |
523 | 557 | } | |
524 | - | let | |
525 | - | let v = getString(this, | |
558 | + | let aX = { | |
559 | + | let v = getString(this, V(aN)) | |
526 | 560 | if ($isInstanceOf(v, "String")) | |
527 | 561 | then { | |
528 | - | let | |
529 | - | | |
562 | + | let aY = v | |
563 | + | aY | |
530 | 564 | } | |
531 | 565 | else throw("Please register this account first") | |
532 | 566 | } | |
533 | - | let | |
534 | - | let v = getInteger(this, | |
567 | + | let bi = { | |
568 | + | let v = getInteger(this, ag(aN, Y)) | |
535 | 569 | if ($isInstanceOf(v, "Int")) | |
536 | 570 | then { | |
537 | - | let | |
538 | - | | |
571 | + | let bj = v | |
572 | + | bj | |
539 | 573 | } | |
540 | 574 | else 0 | |
541 | 575 | } | |
542 | - | let | |
543 | - | let v = getInteger(this, | |
576 | + | let bk = { | |
577 | + | let v = getInteger(this, ae(aN, Y)) | |
544 | 578 | if ($isInstanceOf(v, "Int")) | |
545 | 579 | then { | |
546 | - | let | |
547 | - | | |
580 | + | let bj = v | |
581 | + | bj | |
548 | 582 | } | |
549 | 583 | else 0 | |
550 | 584 | } | |
551 | - | if (if (( | |
552 | - | then ( | |
585 | + | if (if ((bi != 0)) | |
586 | + | then (bi == bk) | |
553 | 587 | else false) | |
554 | 588 | then throw("You reached the max edition allowed to sell for this edition.") | |
555 | - | else if (if (( | |
556 | - | then ( | |
589 | + | else if (if ((bi > 0)) | |
590 | + | then (bk != bd) | |
557 | 591 | else false) | |
558 | 592 | then throw("You cannot change the maximum issuable anymore") | |
559 | - | else if (( | |
593 | + | else if ((aX == n)) | |
560 | 594 | then throw("Your account is suspended") | |
561 | - | else if (( | |
595 | + | else if ((aX == o)) | |
562 | 596 | then throw("Your account have been deleted") | |
563 | 597 | else { | |
564 | - | let | |
598 | + | let bl = if ((aS > 0)) | |
565 | 599 | then true | |
566 | 600 | else false | |
567 | - | [BooleanEntry( | |
601 | + | [BooleanEntry(ah(aN, Y), bl), IntegerEntry(am(aN, Y), aS), IntegerEntry(ae(aN, Y), bd), StringEntry(an(aN, Y), aQ), StringEntry("last_invoke_id", G)] | |
568 | 602 | } | |
569 | 603 | } | |
570 | 604 | } | |
572 | 606 | ||
573 | 607 | ||
574 | 608 | ||
575 | - | @Callable( | |
576 | - | func buyArtwork ( | |
577 | - | let G = toBase58String( | |
578 | - | let | |
579 | - | let | |
580 | - | let B = t( | |
581 | - | let | |
582 | - | let v = getString(this, | |
609 | + | @Callable(aE) | |
610 | + | func buyArtwork (Y,bm) = { | |
611 | + | let G = toBase58String(aE.transactionId) | |
612 | + | let aN = toBase58String(aE.caller.bytes) | |
613 | + | let bn = x("total_nft_issued") | |
614 | + | let B = t(af(bm, Y)) | |
615 | + | let bh = { | |
616 | + | let v = getString(this, Z(bm, Y)) | |
583 | 617 | if ($isInstanceOf(v, "String")) | |
584 | 618 | then { | |
585 | - | let | |
586 | - | | |
619 | + | let aY = v | |
620 | + | aY | |
587 | 621 | } | |
588 | 622 | else throw("This artwork doesn't exit") | |
589 | 623 | } | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | if (( | |
624 | + | let bo = t(ab(bm, Y)) | |
625 | + | let bf = t(ad(bm, Y)) | |
626 | + | let bg = t(ac(bm, Y)) | |
627 | + | let bp = t(aj(bm, Y)) | |
628 | + | let bq = t(ai(bm, Y)) | |
629 | + | let av = take(t(aa(bm, Y)), 50) | |
630 | + | let bi = x(ag(bm, Y)) | |
631 | + | let br = x(am(bm, Y)) | |
632 | + | let bs = z(ah(bm, Y)) | |
633 | + | let bt = t(an(bm, Y)) | |
634 | + | let bu = t(ao(bm, Y)) | |
635 | + | if ((br == 0)) | |
602 | 636 | then throw("This artwork is not for sell") | |
603 | - | else if (!( | |
637 | + | else if (!(bs)) | |
604 | 638 | then throw("This artwork is not for sale") | |
605 | 639 | else { | |
606 | - | let | |
607 | - | let | |
608 | - | let | |
609 | - | let | |
610 | - | then ( | |
640 | + | let bk = x(ae(bm, Y)) | |
641 | + | let aO = value(aE.payments[0]) | |
642 | + | let aP = value(aO.amount) | |
643 | + | let aQ = if (if (isDefined(aO.assetId)) | |
644 | + | then (aO.assetId == fromBase58String(bt)) | |
611 | 645 | else false) | |
612 | - | then | |
613 | - | else throw((("Only " + | |
614 | - | if (( | |
646 | + | then aO.assetId | |
647 | + | else throw((("Only " + bt) + " token id accepted at the moment")) | |
648 | + | if ((bi == bk)) | |
615 | 649 | then throw("Cannot buy this artwork anymore, maximum editions reached") | |
616 | - | else if (( | |
617 | - | then throw(((("Payment don't match seller price: " + toString( | |
650 | + | else if ((br != aP)) | |
651 | + | then throw(((("Payment don't match seller price: " + toString(br)) + " vs ") + toString(aP))) | |
618 | 652 | else { | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | \"creator\": \"" + | |
623 | - | \"artID\": \"") + | |
624 | - | \"maxIssuable\": \"") + toString( | |
653 | + | let bv = (bi + 1) | |
654 | + | let bw = lastBlock.timestamp | |
655 | + | let bx = (((((((((((((((((((((((((((("{\"version\": 1, | |
656 | + | \"creator\": \"" + bm) + "\", | |
657 | + | \"artID\": \"") + Y) + "\", | |
658 | + | \"maxIssuable\": \"") + toString(bk)) + "\", | |
625 | 659 | \"signID\": \"") + B) + "\", | |
626 | - | \"issue\": \"") + toString( | |
627 | - | \"source_hash\": \"") + | |
628 | - | \"artwork_name\": \"") + | |
629 | - | \"artwork_desc\": \"") + | |
630 | - | \"display_cid\": \"") + | |
631 | - | \"export_cid\": \"") + | |
632 | - | \"export_hash\": \"") + | |
633 | - | \"licence_cid\": \"") + | |
634 | - | \"licence_hash\": \"") + | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
660 | + | \"issue\": \"") + toString(bv)) + "/") + toString(bk)) + "\", | |
661 | + | \"source_hash\": \"") + bu) + "\", | |
662 | + | \"artwork_name\": \"") + bh) + "\", | |
663 | + | \"artwork_desc\": \"") + av) + "\", | |
664 | + | \"display_cid\": \"") + bo) + "\", | |
665 | + | \"export_cid\": \"") + bf) + "\", | |
666 | + | \"export_hash\": \"") + bg) + "\", | |
667 | + | \"licence_cid\": \"") + bp) + "\", | |
668 | + | \"licence_hash\": \"") + bq) + "\"}") | |
669 | + | let by = Issue(("SA_" + toString((bn + 1))), bx, 1, 0, false) | |
670 | + | let bz = calculateAssetId(by) | |
671 | + | let bl = if ((bv == bk)) | |
638 | 672 | then false | |
639 | 673 | else true | |
640 | - | [IntegerEntry( | |
674 | + | [IntegerEntry(ag(bm, Y), bv), StringEntry(((((((("art_sold_" + toString(bv)) + "_of_") + toString(bk)) + "_") + Y) + "_") + bm), ((((((aN + "_") + toString(bw)) + "_") + G) + "_") + toString(br))), IntegerEntry("total_nft_issued", (bn + 1)), BooleanEntry(ah(bm, Y), bl), StringEntry("last_invoke_id", G), by, ScriptTransfer(Address(fromBase58String(bm)), aP, aQ), ScriptTransfer(aE.caller, 1, bz)] | |
641 | 675 | } | |
642 | 676 | } | |
643 | 677 | } | |
645 | 679 | ||
646 | 680 | ||
647 | 681 | @Callable(y) | |
648 | - | func deleteUser ( | |
649 | - | let | |
682 | + | func deleteUser (aB) = { | |
683 | + | let Q = toString(addressFromPublicKey(y.callerPublicKey)) | |
650 | 684 | let G = toBase58String(y.transactionId) | |
651 | - | if (if (( | |
685 | + | if (if ((Q == h)) | |
652 | 686 | then true | |
653 | - | else ( | |
654 | - | then [DeleteEntry( | |
687 | + | else (Q == i)) | |
688 | + | then [DeleteEntry(W(aB)), DeleteEntry(P(aB)), DeleteEntry(R(aB)), DeleteEntry(S(aB)), DeleteEntry(T(aB)), DeleteEntry(U(aB)), StringEntry(V(aB), o), StringEntry("last_invoke_id", G)] | |
655 | 689 | else throw("You are not allowed to do that") | |
656 | 690 | } | |
657 | 691 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | 5 | ||
6 | 6 | let b = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
7 | 7 | ||
8 | 8 | let c = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
9 | 9 | ||
10 | 10 | let d = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
11 | 11 | ||
12 | 12 | let e = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
13 | 13 | ||
14 | 14 | let f = base58'' | |
15 | 15 | ||
16 | 16 | let g = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC" | |
17 | 17 | ||
18 | 18 | let h = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
19 | 19 | ||
20 | 20 | let i = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
21 | 21 | ||
22 | 22 | let j = true | |
23 | 23 | ||
24 | 24 | let k = "ALLOWED" | |
25 | 25 | ||
26 | 26 | let l = "REGISTERED" | |
27 | 27 | ||
28 | 28 | let m = "VERIFIED" | |
29 | 29 | ||
30 | 30 | let n = "SUSPENDED" | |
31 | 31 | ||
32 | 32 | let o = "REMOVED" | |
33 | 33 | ||
34 | 34 | let p = "UNREGISTERED" | |
35 | 35 | ||
36 | 36 | let q = "ON_SALE" | |
37 | 37 | ||
38 | 38 | let r = "SOLD" | |
39 | 39 | ||
40 | 40 | let s = "CANCELED" | |
41 | 41 | ||
42 | 42 | func t (u) = { | |
43 | 43 | let v = getString(this, u) | |
44 | 44 | if ($isInstanceOf(v, "String")) | |
45 | 45 | then { | |
46 | 46 | let w = v | |
47 | 47 | w | |
48 | 48 | } | |
49 | 49 | else "" | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func x (u) = { | |
54 | 54 | let v = getInteger(this, u) | |
55 | 55 | if ($isInstanceOf(v, "Int")) | |
56 | 56 | then { | |
57 | 57 | let y = v | |
58 | 58 | y | |
59 | 59 | } | |
60 | 60 | else 0 | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func z (u) = { | |
65 | 65 | let v = getBoolean(this, u) | |
66 | 66 | if ($isInstanceOf(v, "Boolean")) | |
67 | 67 | then { | |
68 | 68 | let y = v | |
69 | 69 | y | |
70 | 70 | } | |
71 | 71 | else false | |
72 | 72 | } | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func A (B,C,D) = { | |
76 | 76 | let v = getString(b, ((("data_fc_" + B) + "_") + C)) | |
77 | 77 | if ($isInstanceOf(v, "String")) | |
78 | 78 | then { | |
79 | 79 | let w = v | |
80 | 80 | if (contains(w, D)) | |
81 | 81 | then true | |
82 | 82 | else false | |
83 | 83 | } | |
84 | 84 | else false | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func E (F,G) = { | |
89 | 89 | let H = value(assetInfo(fromBase58String(G))) | |
90 | 90 | if (if (if ((H.quantity != 1)) | |
91 | 91 | then true | |
92 | 92 | else (H.decimals != 0)) | |
93 | 93 | then true | |
94 | 94 | else (H.reissuable != false)) | |
95 | 95 | then (F + 0) | |
96 | 96 | else (F + 1) | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | - | func I (J) = { | |
101 | - | let v = getString(this, ("user_status_" + J)) | |
100 | + | func I (J) = if (if ((75 > size(J))) | |
101 | + | then (60 > size(split(J, "/")[0])) | |
102 | + | else false) | |
103 | + | then (16 > size(split(J, "/")[1])) | |
104 | + | else false | |
105 | + | ||
106 | + | ||
107 | + | func K (L) = (65 > size(L)) | |
108 | + | ||
109 | + | ||
110 | + | func M (N) = { | |
111 | + | let v = getString(this, ("user_status_" + N)) | |
102 | 112 | if ($isInstanceOf(v, "String")) | |
103 | 113 | then { | |
104 | - | let | |
105 | - | | |
114 | + | let O = v | |
115 | + | O | |
106 | 116 | } | |
107 | 117 | else throw("Something went wrong.") | |
108 | 118 | } | |
109 | 119 | ||
110 | 120 | ||
111 | - | func | |
121 | + | func P (Q) = ("user_" + Q) | |
112 | 122 | ||
113 | 123 | ||
114 | - | func | |
124 | + | func R (Q) = ("user_name_" + Q) | |
115 | 125 | ||
116 | 126 | ||
117 | - | func | |
127 | + | func S (Q) = ("user_desc_" + Q) | |
118 | 128 | ||
119 | 129 | ||
120 | - | func | |
130 | + | func T (Q) = ("user_social_" + Q) | |
121 | 131 | ||
122 | 132 | ||
123 | - | func | |
133 | + | func U (Q) = ("user_thumb_" + Q) | |
124 | 134 | ||
125 | 135 | ||
126 | - | func | |
136 | + | func V (Q) = ("user_status_" + Q) | |
127 | 137 | ||
128 | 138 | ||
129 | - | func | |
139 | + | func W (Q) = ("user_date_" + Q) | |
130 | 140 | ||
131 | 141 | ||
132 | - | func | |
142 | + | func X (Q,Y) = ((("art_date_" + Y) + "_") + Q) | |
133 | 143 | ||
134 | 144 | ||
135 | - | func | |
145 | + | func Z (Q,Y) = ((("art_name_" + Y) + "_") + Q) | |
136 | 146 | ||
137 | 147 | ||
138 | - | func | |
148 | + | func aa (Q,Y) = ((("art_desc_" + Y) + "_") + Q) | |
139 | 149 | ||
140 | 150 | ||
141 | - | func | |
151 | + | func ab (Q,Y) = ((("art_display_cid_" + Y) + "_") + Q) | |
142 | 152 | ||
143 | 153 | ||
144 | - | func | |
154 | + | func ac (Q,Y) = ((("art_export_hash_" + Y) + "_") + Q) | |
145 | 155 | ||
146 | 156 | ||
147 | - | func | |
157 | + | func ad (Q,Y) = ((("art_export_cid_" + Y) + "_") + Q) | |
148 | 158 | ||
149 | 159 | ||
150 | - | func | |
160 | + | func ae (Q,Y) = ((("art_maxmint_" + Y) + "_") + Q) | |
151 | 161 | ||
152 | 162 | ||
153 | - | func | |
163 | + | func af (Q,Y) = ((("art_signid_" + Y) + "_") + Q) | |
154 | 164 | ||
155 | 165 | ||
156 | - | func | |
166 | + | func ag (Q,Y) = ((("art_issued_" + Y) + "_") + Q) | |
157 | 167 | ||
158 | 168 | ||
159 | - | func | |
169 | + | func ah (Q,Y) = ((("art_onsale_" + Y) + "_") + Q) | |
160 | 170 | ||
161 | 171 | ||
162 | - | func | |
172 | + | func ai (Q,Y) = ((("art_licence_hash_" + Y) + "_") + Q) | |
163 | 173 | ||
164 | 174 | ||
165 | - | func | |
175 | + | func aj (Q,Y) = ((("art_licence_cid_" + Y) + "_") + Q) | |
166 | 176 | ||
167 | 177 | ||
168 | - | func | |
178 | + | func ak (Q,Y) = ((("art_tags_" + Y) + "_") + Q) | |
169 | 179 | ||
170 | 180 | ||
171 | - | func | |
181 | + | func al (Q,Y) = ((("art_type_" + Y) + "_") + Q) | |
172 | 182 | ||
173 | 183 | ||
174 | - | func | |
184 | + | func am (Q,Y) = ((("art_price_" + Y) + "_") + Q) | |
175 | 185 | ||
176 | 186 | ||
177 | - | func | |
187 | + | func an (Q,Y) = ((("art_assetAccepted_" + Y) + "_") + Q) | |
178 | 188 | ||
179 | 189 | ||
180 | - | func | |
190 | + | func ao (Q,ap) = ((("get_hashbytxidaddr_" + ap) + "_") + Q) | |
181 | 191 | ||
182 | 192 | ||
183 | - | func | |
193 | + | func aq (D) = ("get_owner_by_hash_" + D) | |
184 | 194 | ||
185 | 195 | ||
186 | - | func | |
196 | + | func ar (Q,as) = ((("get_artidbysignid_" + as) + "_") + Q) | |
187 | 197 | ||
188 | 198 | ||
189 | - | func | |
199 | + | func at (D,Q) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((D + Q))))) | |
190 | 200 | ||
191 | 201 | ||
192 | 202 | @Callable(y) | |
193 | - | func registerUser ( | |
194 | - | let | |
195 | - | let | |
203 | + | func registerUser (au,av,aw,ax) = { | |
204 | + | let Q = toString(addressFromPublicKey(y.callerPublicKey)) | |
205 | + | let ay = t(V(Q)) | |
196 | 206 | let G = toBase58String(y.transactionId) | |
197 | - | let | |
198 | - | if (if (( | |
207 | + | let az = lastBlock.timestamp | |
208 | + | if (if ((ay == n)) | |
199 | 209 | then true | |
200 | - | else ( | |
210 | + | else (ay == o)) | |
201 | 211 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
202 | - | else if (( | |
212 | + | else if ((ay == l)) | |
203 | 213 | then throw("You are already registered, please use update method instead.") | |
204 | - | else if (if (( | |
214 | + | else if (if ((ay == "")) | |
205 | 215 | then j | |
206 | 216 | else false) | |
207 | 217 | then throw("You are now allowed to register yet, please contact us first to get approved.") | |
208 | - | else if (if (( | |
218 | + | else if (if ((au == "")) | |
209 | 219 | then true | |
210 | - | else ( | |
220 | + | else (av == "")) | |
211 | 221 | then throw("Name and description cannot be empty") | |
212 | - | else if ((size( | |
222 | + | else if ((size(av) > 600)) | |
213 | 223 | then throw("600 Characters maximum for the description") | |
214 | - | else [IntegerEntry( | |
224 | + | else [IntegerEntry(W(Q), az), StringEntry(P(Q), ((G + "_") + toString(lastBlock.timestamp))), StringEntry(R(Q), au), StringEntry(S(Q), av), StringEntry(T(Q), ax), StringEntry(U(Q), aw), StringEntry(V(Q), l), StringEntry("last_invoke_id", G)] | |
215 | 225 | } | |
216 | 226 | ||
217 | 227 | ||
218 | 228 | ||
219 | 229 | @Callable(y) | |
220 | - | func deleteEntry ( | |
221 | - | let | |
222 | - | if (( | |
223 | - | then [DeleteEntry( | |
230 | + | func deleteEntry (aA) = { | |
231 | + | let Q = toString(addressFromPublicKey(y.callerPublicKey)) | |
232 | + | if ((Q == h)) | |
233 | + | then [DeleteEntry(aA)] | |
224 | 234 | else throw("no") | |
225 | 235 | } | |
226 | 236 | ||
227 | 237 | ||
228 | 238 | ||
229 | 239 | @Callable(y) | |
230 | - | func updateUser ( | |
231 | - | let | |
232 | - | let | |
233 | - | if (if (( | |
240 | + | func updateUser (au,av,aw,ax) = { | |
241 | + | let Q = toString(addressFromPublicKey(y.callerPublicKey)) | |
242 | + | let ay = t(V(Q)) | |
243 | + | if (if ((ay == n)) | |
234 | 244 | then true | |
235 | - | else ( | |
245 | + | else (ay == o)) | |
236 | 246 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
237 | - | else if (if (( | |
247 | + | else if (if ((ay == "")) | |
238 | 248 | then true | |
239 | - | else ( | |
249 | + | else (ay == k)) | |
240 | 250 | then throw("Please register first with registerUser") | |
241 | 251 | else { | |
242 | 252 | let G = toBase58String(y.transactionId) | |
243 | - | let | |
244 | - | if (if (( | |
253 | + | let az = lastBlock.timestamp | |
254 | + | if (if ((au == "")) | |
245 | 255 | then true | |
246 | - | else ( | |
256 | + | else (av == "")) | |
247 | 257 | then throw("Name and description cannot be empty") | |
248 | - | else if ((size( | |
258 | + | else if ((size(av) > 600)) | |
249 | 259 | then throw("600 Characters maximum for the description") | |
250 | - | else [StringEntry( | |
260 | + | else [StringEntry(R(Q), au), StringEntry(S(Q), av), StringEntry(T(Q), ax), StringEntry(U(Q), aw), StringEntry("last_invoke_id", G)] | |
251 | 261 | } | |
252 | 262 | } | |
253 | 263 | ||
254 | 264 | ||
255 | 265 | ||
256 | 266 | @Callable(y) | |
257 | - | func changeUserStatus ( | |
258 | - | let | |
267 | + | func changeUserStatus (aB,aC) = { | |
268 | + | let Q = toString(addressFromPublicKey(y.callerPublicKey)) | |
259 | 269 | let G = toBase58String(y.transactionId) | |
260 | - | let | |
270 | + | let aD = if ((aC == m)) | |
261 | 271 | then m | |
262 | - | else if (( | |
272 | + | else if ((aC == l)) | |
263 | 273 | then l | |
264 | - | else if (( | |
274 | + | else if ((aC == n)) | |
265 | 275 | then n | |
266 | - | else if (( | |
276 | + | else if ((aC == o)) | |
267 | 277 | then o | |
268 | - | else if (( | |
278 | + | else if ((aC == k)) | |
269 | 279 | then k | |
270 | 280 | else throw("Unknown status") | |
271 | - | if (if (( | |
281 | + | if (if ((Q == h)) | |
272 | 282 | then true | |
273 | - | else ( | |
274 | - | then [StringEntry( | |
275 | - | else throw(((("You are not allowed to change user status " + | |
283 | + | else (Q == i)) | |
284 | + | then [StringEntry(V(aB), aD), StringEntry("last_invoke_id", G)] | |
285 | + | else throw(((("You are not allowed to change user status " + Q) + " / ") + h)) | |
276 | 286 | } | |
277 | 287 | ||
278 | 288 | ||
279 | 289 | ||
280 | 290 | @Callable(y) | |
281 | - | func creditUser ( | |
282 | - | let | |
291 | + | func creditUser (aB) = { | |
292 | + | let Q = toString(addressFromPublicKey(y.callerPublicKey)) | |
283 | 293 | let G = toBase58String(y.transactionId) | |
284 | - | if (if (( | |
294 | + | if (if ((Q == h)) | |
285 | 295 | then true | |
286 | - | else ( | |
287 | - | then [ScriptTransfer(Address(fromBase58String( | |
296 | + | else (Q == i)) | |
297 | + | then [ScriptTransfer(Address(fromBase58String(aB)), 150000000000, d)] | |
288 | 298 | else throw("You are not allowed to do that") | |
289 | 299 | } | |
290 | 300 | ||
291 | 301 | ||
292 | 302 | ||
293 | - | @Callable(aA) | |
294 | - | func addArtwork (D,B,aq,ar,aB,aC,aD,aE,aF,aG,aH,aI) = { | |
295 | - | let U = toBase58String(aA.transactionId) | |
296 | - | let aJ = toBase58String(aA.caller.bytes) | |
297 | - | if ((size(aA.payments) == 0)) | |
298 | - | then throw("No payment attached") | |
299 | - | else { | |
300 | - | let aK = value(aA.payments[0]) | |
301 | - | let aL = value(aK.amount) | |
302 | - | let aM = if (if (isDefined(aK.assetId)) | |
303 | - | then (aK.assetId == d) | |
304 | - | else false) | |
305 | - | then aK.assetId | |
306 | - | else throw("Only SIGN token accepted at the moment") | |
307 | - | let aN = { | |
308 | - | let v = getInteger(a, ("certification_fee_" + toBase58String(d))) | |
309 | - | if ($isInstanceOf(v, "Int")) | |
310 | - | then { | |
311 | - | let aO = v | |
312 | - | aO | |
313 | - | } | |
314 | - | else throw("Price undefined in oracle") | |
315 | - | } | |
316 | - | if ((aL != aN)) | |
317 | - | then throw(("Payment amount should be " + toString(aN))) | |
318 | - | else { | |
319 | - | let aP = t(ap(D, aJ)) | |
320 | - | if ((aP != "")) | |
321 | - | then throw("You already added this artwork on Sign Art") | |
322 | - | else { | |
323 | - | let aQ = t(am(D)) | |
324 | - | if ((aQ != "")) | |
325 | - | then throw("This artwork hash is already registered on Sign Art") | |
303 | + | @Callable(aE) | |
304 | + | func addArtwork (D,B,au,av,aF,aG,aH,aI,aJ,aK,aL,aM) = { | |
305 | + | let Y = toBase58String(aE.transactionId) | |
306 | + | let aN = toBase58String(aE.caller.bytes) | |
307 | + | if (!(I(aI))) | |
308 | + | then throw("Wrong Display CID length") | |
309 | + | else if (!(I(aK))) | |
310 | + | then throw("Wrong Export CID length") | |
311 | + | else if (!(I(aM))) | |
312 | + | then throw("Wrong Licence CID length") | |
313 | + | else if (!(K(D))) | |
314 | + | then throw("Source Hash should be 64 characters maximum") | |
315 | + | else if (!(K(aJ))) | |
316 | + | then throw("Export Hash should be 64 characters maximum") | |
317 | + | else if (!(K(aL))) | |
318 | + | then throw("Licence Hash should be 64 characters maximum") | |
319 | + | else if ((size(aE.payments) == 0)) | |
320 | + | then throw("No payment attached") | |
326 | 321 | else { | |
327 | - | let aR = A(B, aJ, D) | |
328 | - | if (!(aR)) | |
329 | - | then throw("Sign Certificate not found on Sign-web.app smart contract for this address.") | |
330 | - | else if ((size(aE) == 0)) | |
331 | - | then throw("Display CID cannot be empty") | |
332 | - | else if ((size(aq) == 0)) | |
333 | - | then throw("Title cannot be empty") | |
334 | - | else if ((size(aq) > 100)) | |
335 | - | then throw("100 Characters maximum for the name") | |
336 | - | else if ((size(ar) > 1000)) | |
337 | - | then throw("1000 Characters maximum for the description") | |
338 | - | else if ((size(ar) == 0)) | |
339 | - | then throw("Description cannot be empty") | |
340 | - | else { | |
341 | - | let aS = split(aB, ",") | |
342 | - | if ((size(aS) > 5)) | |
343 | - | then throw("Tags should be maximum 5 single word separated by space.") | |
344 | - | else { | |
345 | - | let aT = { | |
346 | - | let v = getString(this, ("user_status_" + aJ)) | |
347 | - | if ($isInstanceOf(v, "String")) | |
348 | - | then { | |
349 | - | let aU = v | |
350 | - | aU | |
351 | - | } | |
352 | - | else p | |
353 | - | } | |
354 | - | let av = lastBlock.timestamp | |
355 | - | if (if (isDefined(aT)) | |
356 | - | then (aT == p) | |
357 | - | else false) | |
358 | - | then throw("Please register this account first with \"User infos\" tab") | |
359 | - | else if ((aT == n)) | |
360 | - | then throw("Your account is suspended") | |
361 | - | else if ((aT == o)) | |
362 | - | then throw("Your account have been removed") | |
363 | - | else if ((aD > 10)) | |
364 | - | then throw("Maximum 10 editions per artwork") | |
365 | - | else if ((size(D) != 64)) | |
366 | - | then throw("Hash should be sha256 string composed of 64 char.") | |
367 | - | else [StringEntry(am(D), aJ), StringEntry(ap(D, aJ), U), IntegerEntry(T(aJ, U), av), StringEntry(V(aJ, U), aq), StringEntry(W(aJ, U), ar), StringEntry(X(aJ, U), aE), StringEntry(Z(aJ, U), aG), StringEntry(Y(aJ, U), aF), StringEntry(ae(aJ, U), aH), StringEntry(af(aJ, U), aI), StringEntry(ah(aJ, U), aC), StringEntry(ag(aJ, U), aB), IntegerEntry(aa(aJ, U), aD), StringEntry(ab(aJ, U), B), IntegerEntry(ac(aJ, U), 0), BooleanEntry(ad(aJ, U), false), StringEntry(an(aJ, B), U), StringEntry("last_invoke_id", U), StringEntry(ak(aJ, U), D), ScriptTransfer(Address(fromBase58String(c)), aL, aM)] | |
368 | - | } | |
369 | - | } | |
322 | + | let aO = value(aE.payments[0]) | |
323 | + | let aP = value(aO.amount) | |
324 | + | let aQ = if (if (isDefined(aO.assetId)) | |
325 | + | then (aO.assetId == d) | |
326 | + | else false) | |
327 | + | then aO.assetId | |
328 | + | else throw("Only SIGN token accepted at the moment") | |
329 | + | let aR = { | |
330 | + | let v = getInteger(a, ("certification_fee_" + toBase58String(d))) | |
331 | + | if ($isInstanceOf(v, "Int")) | |
332 | + | then { | |
333 | + | let aS = v | |
334 | + | aS | |
335 | + | } | |
336 | + | else throw("Price undefined in oracle") | |
337 | + | } | |
338 | + | if ((aP != aR)) | |
339 | + | then throw(("Payment amount should be " + toString(aR))) | |
340 | + | else { | |
341 | + | let aT = t(at(D, aN)) | |
342 | + | if ((aT != "")) | |
343 | + | then throw("You already added this artwork on Sign Art") | |
344 | + | else { | |
345 | + | let aU = t(aq(D)) | |
346 | + | if ((aU != "")) | |
347 | + | then throw("This artwork hash is already registered on Sign Art") | |
348 | + | else { | |
349 | + | let aV = A(B, aN, D) | |
350 | + | if (!(aV)) | |
351 | + | then throw("Sign Certificate not found on Sign-web.app smart contract for this address.") | |
352 | + | else if ((size(aI) == 0)) | |
353 | + | then throw("Display CID cannot be empty") | |
354 | + | else if ((size(au) == 0)) | |
355 | + | then throw("Title cannot be empty") | |
356 | + | else if ((size(au) > 100)) | |
357 | + | then throw("100 Characters maximum for the name") | |
358 | + | else if ((size(av) > 1000)) | |
359 | + | then throw("1000 Characters maximum for the description") | |
360 | + | else if ((size(av) == 0)) | |
361 | + | then throw("Description cannot be empty") | |
362 | + | else { | |
363 | + | let aW = split(aF, ",") | |
364 | + | if ((size(aW) > 5)) | |
365 | + | then throw("Tags should be maximum 5 single word separated by space.") | |
366 | + | else { | |
367 | + | let aX = { | |
368 | + | let v = getString(this, ("user_status_" + aN)) | |
369 | + | if ($isInstanceOf(v, "String")) | |
370 | + | then { | |
371 | + | let aY = v | |
372 | + | aY | |
373 | + | } | |
374 | + | else p | |
375 | + | } | |
376 | + | let az = lastBlock.timestamp | |
377 | + | if (if (isDefined(aX)) | |
378 | + | then (aX == p) | |
379 | + | else false) | |
380 | + | then throw("Please register this account first with \"User infos\" tab") | |
381 | + | else if ((aX == n)) | |
382 | + | then throw("Your account is suspended") | |
383 | + | else if ((aX == o)) | |
384 | + | then throw("Your account have been removed") | |
385 | + | else if ((aH > 10)) | |
386 | + | then throw("Maximum 10 editions per artwork") | |
387 | + | else if ((size(D) != 64)) | |
388 | + | then throw("Hash should be sha256 string composed of 64 char.") | |
389 | + | else [StringEntry(aq(D), aN), StringEntry(at(D, aN), Y), IntegerEntry(X(aN, Y), az), StringEntry(Z(aN, Y), au), StringEntry(aa(aN, Y), av), StringEntry(ab(aN, Y), aI), StringEntry(ad(aN, Y), aK), StringEntry(ac(aN, Y), aJ), StringEntry(ai(aN, Y), aL), StringEntry(aj(aN, Y), aM), StringEntry(al(aN, Y), aG), StringEntry(ak(aN, Y), aF), IntegerEntry(ae(aN, Y), aH), StringEntry(af(aN, Y), B), IntegerEntry(ag(aN, Y), 0), BooleanEntry(ah(aN, Y), false), StringEntry(ar(aN, B), Y), StringEntry("last_invoke_id", Y), StringEntry(ao(aN, Y), D), ScriptTransfer(Address(fromBase58String(c)), aP, aQ)] | |
390 | + | } | |
391 | + | } | |
392 | + | } | |
393 | + | } | |
394 | + | } | |
370 | 395 | } | |
371 | - | } | |
372 | - | } | |
373 | - | } | |
374 | 396 | } | |
375 | 397 | ||
376 | 398 | ||
377 | 399 | ||
378 | - | @Callable(aA) | |
379 | - | func updateArtwork (al,aq,ar,aB,aC,aD,aE,aF,aG,aH,aI) = { | |
380 | - | let aV = toBase58String(aA.transactionId) | |
381 | - | let aJ = toBase58String(aA.caller.bytes) | |
382 | - | let aP = t(V(aJ, al)) | |
383 | - | if ((aP == "")) | |
384 | - | then throw("This entry doesn't exist or you are not the owner") | |
385 | - | else if ((size(aq) == 0)) | |
386 | - | then throw("Title cannot be empty") | |
387 | - | else if ((size(aq) > 100)) | |
388 | - | then throw("100 Characters maximum for the name") | |
389 | - | else if ((size(ar) > 1000)) | |
390 | - | then throw("1000 Characters maximum for the description") | |
391 | - | else if ((size(ar) == 0)) | |
392 | - | then throw("Description cannot be empty") | |
400 | + | @Callable(aE) | |
401 | + | func updateArtwork (ap,au,av,aF,aG,aH,aI,aJ,aK,aL,aM) = { | |
402 | + | let aZ = toBase58String(aE.transactionId) | |
403 | + | let aN = toBase58String(aE.caller.bytes) | |
404 | + | if (!(I(aI))) | |
405 | + | then throw("Display CID should be 59 characters maximum") | |
406 | + | else if (!(I(aK))) | |
407 | + | then throw("Export CID should be 59 characters maximum") | |
408 | + | else if (!(I(aM))) | |
409 | + | then throw("Licence CID should be 59 characters maximum") | |
410 | + | else if (!(K(aJ))) | |
411 | + | then throw("Export Hash should be 64 characters maximum") | |
412 | + | else if (!(K(aL))) | |
413 | + | then throw("Licence Hash should be 64 characters maximum") | |
393 | 414 | else { | |
394 | - | let aW = { | |
395 | - | let v = getInteger(this, ac(aJ, al)) | |
396 | - | if ($isInstanceOf(v, "Int")) | |
397 | - | then { | |
398 | - | let K = v | |
399 | - | if ((K == 0)) | |
400 | - | then false | |
401 | - | else true | |
402 | - | } | |
403 | - | else false | |
404 | - | } | |
405 | - | let aS = split(aB, ",") | |
406 | - | if ((size(aS) > 5)) | |
407 | - | then throw("Tags should be maximum 5 single word separated by space.") | |
408 | - | else { | |
409 | - | let aT = { | |
410 | - | let v = getString(this, ("user_status_" + aJ)) | |
411 | - | if ($isInstanceOf(v, "String")) | |
412 | - | then { | |
413 | - | let aU = v | |
414 | - | aU | |
415 | - | } | |
416 | - | else p | |
417 | - | } | |
418 | - | if (if (isDefined(aT)) | |
419 | - | then (aT == p) | |
420 | - | else false) | |
421 | - | then throw("Please register this account first with \"User infos\" tab") | |
422 | - | else if ((aT == n)) | |
423 | - | then throw("Your account is suspended") | |
424 | - | else if ((aT == o)) | |
425 | - | then throw("Your account have been removed") | |
426 | - | else if ((aD > 10)) | |
427 | - | then throw("Maximum 10 editions per artwork") | |
428 | - | else if (!(aW)) | |
429 | - | then [StringEntry(V(aJ, al), aq), StringEntry(W(aJ, al), ar), StringEntry(X(aJ, al), aE), StringEntry(Z(aJ, al), aG), StringEntry(Y(aJ, al), aF), StringEntry(af(aJ, al), aI), StringEntry(ae(aJ, al), aH), IntegerEntry(aa(aJ, al), aD), StringEntry(ag(aJ, al), aB), StringEntry(ah(aJ, al), aC), StringEntry("last_invoke_id", aV)] | |
430 | - | else [StringEntry(V(aJ, al), aq), StringEntry(W(aJ, al), ar), StringEntry(X(aJ, al), aE), StringEntry(ah(aJ, al), aC), StringEntry(ag(aJ, al), aB), StringEntry("last_invoke_id", aV)] | |
431 | - | } | |
415 | + | let aT = t(Z(aN, ap)) | |
416 | + | if ((aT == "")) | |
417 | + | then throw("This entry doesn't exist or you are not the owner") | |
418 | + | else if ((size(au) == 0)) | |
419 | + | then throw("Title cannot be empty") | |
420 | + | else if ((size(au) > 100)) | |
421 | + | then throw("100 Characters maximum for the name") | |
422 | + | else if ((size(av) > 1000)) | |
423 | + | then throw("1000 Characters maximum for the description") | |
424 | + | else if ((size(av) == 0)) | |
425 | + | then throw("Description cannot be empty") | |
426 | + | else { | |
427 | + | let ba = { | |
428 | + | let v = getInteger(this, ag(aN, ap)) | |
429 | + | if ($isInstanceOf(v, "Int")) | |
430 | + | then { | |
431 | + | let O = v | |
432 | + | if ((O == 0)) | |
433 | + | then false | |
434 | + | else true | |
435 | + | } | |
436 | + | else false | |
437 | + | } | |
438 | + | let aW = split(aF, ",") | |
439 | + | if ((size(aW) > 5)) | |
440 | + | then throw("Tags should be maximum 5 single word separated by space.") | |
441 | + | else { | |
442 | + | let aX = { | |
443 | + | let v = getString(this, ("user_status_" + aN)) | |
444 | + | if ($isInstanceOf(v, "String")) | |
445 | + | then { | |
446 | + | let aY = v | |
447 | + | aY | |
448 | + | } | |
449 | + | else p | |
450 | + | } | |
451 | + | if (if (isDefined(aX)) | |
452 | + | then (aX == p) | |
453 | + | else false) | |
454 | + | then throw("Please register this account first with \"User infos\" tab") | |
455 | + | else if ((aX == n)) | |
456 | + | then throw("Your account is suspended") | |
457 | + | else if ((aX == o)) | |
458 | + | then throw("Your account have been removed") | |
459 | + | else if ((aH > 10)) | |
460 | + | then throw("Maximum 10 editions per artwork") | |
461 | + | else if (!(ba)) | |
462 | + | then [StringEntry(Z(aN, ap), au), StringEntry(aa(aN, ap), av), StringEntry(ab(aN, ap), aI), StringEntry(ad(aN, ap), aK), StringEntry(ac(aN, ap), aJ), StringEntry(aj(aN, ap), aM), StringEntry(ai(aN, ap), aL), IntegerEntry(ae(aN, ap), aH), StringEntry(ak(aN, ap), aF), StringEntry(al(aN, ap), aG), StringEntry("last_invoke_id", aZ)] | |
463 | + | else throw("You cannot edit artwork that have already minted NFT") | |
464 | + | } | |
465 | + | } | |
432 | 466 | } | |
433 | 467 | } | |
434 | 468 | ||
435 | 469 | ||
436 | 470 | ||
437 | 471 | @Callable(y) | |
438 | - | func deleteArtwork ( | |
439 | - | let | |
472 | + | func deleteArtwork (Y,aB) = { | |
473 | + | let aN = toString(addressFromPublicKey(y.callerPublicKey)) | |
440 | 474 | let G = toBase58String(y.transactionId) | |
441 | - | let | |
475 | + | let bb = if (if ((aN == h)) | |
442 | 476 | then true | |
443 | - | else ( | |
444 | - | then | |
445 | - | else | |
446 | - | let | |
447 | - | let v = getString(this, | |
477 | + | else (aN == i)) | |
478 | + | then aB | |
479 | + | else aN | |
480 | + | let aT = { | |
481 | + | let v = getString(this, Z(bb, Y)) | |
448 | 482 | if ($isInstanceOf(v, "String")) | |
449 | 483 | then { | |
450 | - | let | |
451 | - | | |
484 | + | let aY = v | |
485 | + | aY | |
452 | 486 | } | |
453 | 487 | else throw("No artwork matching this request or you are not allowed") | |
454 | 488 | } | |
455 | - | let | |
456 | - | let v = getInteger(this, | |
489 | + | let ba = { | |
490 | + | let v = getInteger(this, ag(bb, Y)) | |
457 | 491 | if ($isInstanceOf(v, "Int")) | |
458 | 492 | then { | |
459 | - | let | |
460 | - | if (( | |
493 | + | let O = v | |
494 | + | if ((O == 0)) | |
461 | 495 | then false | |
462 | 496 | else true | |
463 | 497 | } | |
464 | 498 | else false | |
465 | 499 | } | |
466 | 500 | let D = { | |
467 | - | let v = getString(this, | |
501 | + | let v = getString(this, ao(bb, Y)) | |
468 | 502 | if ($isInstanceOf(v, "String")) | |
469 | 503 | then { | |
470 | - | let | |
471 | - | | |
504 | + | let aY = v | |
505 | + | aY | |
472 | 506 | } | |
473 | 507 | else throw("No artwork hash matching this request") | |
474 | 508 | } | |
475 | 509 | let B = { | |
476 | - | let v = getString(this, | |
510 | + | let v = getString(this, af(bb, Y)) | |
477 | 511 | if ($isInstanceOf(v, "String")) | |
478 | 512 | then { | |
479 | - | let | |
480 | - | | |
513 | + | let aY = v | |
514 | + | aY | |
481 | 515 | } | |
482 | 516 | else throw("No SIGN ID matching this request") | |
483 | 517 | } | |
484 | - | let | |
485 | - | if (if (( | |
518 | + | let bc = [DeleteEntry(X(bb, Y)), DeleteEntry(Z(bb, Y)), DeleteEntry(aa(bb, Y)), DeleteEntry(ab(bb, Y)), DeleteEntry(ad(bb, Y)), DeleteEntry(ac(bb, Y)), DeleteEntry(ai(bb, Y)), DeleteEntry(aj(bb, Y)), DeleteEntry(al(bb, Y)), DeleteEntry(ak(bb, Y)), DeleteEntry(ae(bb, Y)), DeleteEntry(af(bb, Y)), DeleteEntry(ag(bb, Y)), DeleteEntry(ah(bb, Y)), StringEntry("last_invoke_id", G), DeleteEntry(aq(D)), DeleteEntry(ar(bb, B)), DeleteEntry(at(D, bb))] | |
519 | + | if (if ((aN == h)) | |
486 | 520 | then true | |
487 | - | else ( | |
488 | - | then | |
489 | - | else if (!( | |
490 | - | then | |
521 | + | else (aN == i)) | |
522 | + | then bc | |
523 | + | else if (!(ba)) | |
524 | + | then bc | |
491 | 525 | else throw("This artwork already have minted NFT, you cannot delete it") | |
492 | 526 | } | |
493 | 527 | ||
494 | 528 | ||
495 | 529 | ||
496 | - | @Callable( | |
497 | - | func sellArtwork ( | |
498 | - | let G = toBase58String( | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | if ((size( | |
530 | + | @Callable(aE) | |
531 | + | func sellArtwork (Y,aS,bd,aQ) = { | |
532 | + | let G = toBase58String(aE.transactionId) | |
533 | + | let aN = toBase58String(aE.caller.bytes) | |
534 | + | let be = lastBlock.timestamp | |
535 | + | let bf = t(ad(aN, Y)) | |
536 | + | if ((size(bf) == 0)) | |
503 | 537 | then throw("You cannot sell artwork with no export file") | |
504 | 538 | else { | |
505 | - | let | |
506 | - | if ((size( | |
539 | + | let bg = t(ac(aN, Y)) | |
540 | + | if ((size(bg) == 0)) | |
507 | 541 | then throw("You cannot sell artwork with no export hash") | |
508 | - | else if (if (if (( | |
509 | - | then ( | |
542 | + | else if (if (if ((aQ != toBase58String(d))) | |
543 | + | then (aQ != toBase58String(f)) | |
510 | 544 | else false) | |
511 | - | then ( | |
545 | + | then (aQ != toBase58String(e)) | |
512 | 546 | else false) | |
513 | 547 | then throw("Only SIGN, USDN or WAVES currency accepted at the moment") | |
514 | 548 | else { | |
515 | - | let | |
516 | - | let v = getString(this, | |
549 | + | let bh = { | |
550 | + | let v = getString(this, Z(aN, Y)) | |
517 | 551 | if ($isInstanceOf(v, "String")) | |
518 | 552 | then { | |
519 | - | let | |
520 | - | | |
553 | + | let aY = v | |
554 | + | aY | |
521 | 555 | } | |
522 | 556 | else throw("This artwork doesn't exit or you are not the owner") | |
523 | 557 | } | |
524 | - | let | |
525 | - | let v = getString(this, | |
558 | + | let aX = { | |
559 | + | let v = getString(this, V(aN)) | |
526 | 560 | if ($isInstanceOf(v, "String")) | |
527 | 561 | then { | |
528 | - | let | |
529 | - | | |
562 | + | let aY = v | |
563 | + | aY | |
530 | 564 | } | |
531 | 565 | else throw("Please register this account first") | |
532 | 566 | } | |
533 | - | let | |
534 | - | let v = getInteger(this, | |
567 | + | let bi = { | |
568 | + | let v = getInteger(this, ag(aN, Y)) | |
535 | 569 | if ($isInstanceOf(v, "Int")) | |
536 | 570 | then { | |
537 | - | let | |
538 | - | | |
571 | + | let bj = v | |
572 | + | bj | |
539 | 573 | } | |
540 | 574 | else 0 | |
541 | 575 | } | |
542 | - | let | |
543 | - | let v = getInteger(this, | |
576 | + | let bk = { | |
577 | + | let v = getInteger(this, ae(aN, Y)) | |
544 | 578 | if ($isInstanceOf(v, "Int")) | |
545 | 579 | then { | |
546 | - | let | |
547 | - | | |
580 | + | let bj = v | |
581 | + | bj | |
548 | 582 | } | |
549 | 583 | else 0 | |
550 | 584 | } | |
551 | - | if (if (( | |
552 | - | then ( | |
585 | + | if (if ((bi != 0)) | |
586 | + | then (bi == bk) | |
553 | 587 | else false) | |
554 | 588 | then throw("You reached the max edition allowed to sell for this edition.") | |
555 | - | else if (if (( | |
556 | - | then ( | |
589 | + | else if (if ((bi > 0)) | |
590 | + | then (bk != bd) | |
557 | 591 | else false) | |
558 | 592 | then throw("You cannot change the maximum issuable anymore") | |
559 | - | else if (( | |
593 | + | else if ((aX == n)) | |
560 | 594 | then throw("Your account is suspended") | |
561 | - | else if (( | |
595 | + | else if ((aX == o)) | |
562 | 596 | then throw("Your account have been deleted") | |
563 | 597 | else { | |
564 | - | let | |
598 | + | let bl = if ((aS > 0)) | |
565 | 599 | then true | |
566 | 600 | else false | |
567 | - | [BooleanEntry( | |
601 | + | [BooleanEntry(ah(aN, Y), bl), IntegerEntry(am(aN, Y), aS), IntegerEntry(ae(aN, Y), bd), StringEntry(an(aN, Y), aQ), StringEntry("last_invoke_id", G)] | |
568 | 602 | } | |
569 | 603 | } | |
570 | 604 | } | |
571 | 605 | } | |
572 | 606 | ||
573 | 607 | ||
574 | 608 | ||
575 | - | @Callable( | |
576 | - | func buyArtwork ( | |
577 | - | let G = toBase58String( | |
578 | - | let | |
579 | - | let | |
580 | - | let B = t( | |
581 | - | let | |
582 | - | let v = getString(this, | |
609 | + | @Callable(aE) | |
610 | + | func buyArtwork (Y,bm) = { | |
611 | + | let G = toBase58String(aE.transactionId) | |
612 | + | let aN = toBase58String(aE.caller.bytes) | |
613 | + | let bn = x("total_nft_issued") | |
614 | + | let B = t(af(bm, Y)) | |
615 | + | let bh = { | |
616 | + | let v = getString(this, Z(bm, Y)) | |
583 | 617 | if ($isInstanceOf(v, "String")) | |
584 | 618 | then { | |
585 | - | let | |
586 | - | | |
619 | + | let aY = v | |
620 | + | aY | |
587 | 621 | } | |
588 | 622 | else throw("This artwork doesn't exit") | |
589 | 623 | } | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | if (( | |
624 | + | let bo = t(ab(bm, Y)) | |
625 | + | let bf = t(ad(bm, Y)) | |
626 | + | let bg = t(ac(bm, Y)) | |
627 | + | let bp = t(aj(bm, Y)) | |
628 | + | let bq = t(ai(bm, Y)) | |
629 | + | let av = take(t(aa(bm, Y)), 50) | |
630 | + | let bi = x(ag(bm, Y)) | |
631 | + | let br = x(am(bm, Y)) | |
632 | + | let bs = z(ah(bm, Y)) | |
633 | + | let bt = t(an(bm, Y)) | |
634 | + | let bu = t(ao(bm, Y)) | |
635 | + | if ((br == 0)) | |
602 | 636 | then throw("This artwork is not for sell") | |
603 | - | else if (!( | |
637 | + | else if (!(bs)) | |
604 | 638 | then throw("This artwork is not for sale") | |
605 | 639 | else { | |
606 | - | let | |
607 | - | let | |
608 | - | let | |
609 | - | let | |
610 | - | then ( | |
640 | + | let bk = x(ae(bm, Y)) | |
641 | + | let aO = value(aE.payments[0]) | |
642 | + | let aP = value(aO.amount) | |
643 | + | let aQ = if (if (isDefined(aO.assetId)) | |
644 | + | then (aO.assetId == fromBase58String(bt)) | |
611 | 645 | else false) | |
612 | - | then | |
613 | - | else throw((("Only " + | |
614 | - | if (( | |
646 | + | then aO.assetId | |
647 | + | else throw((("Only " + bt) + " token id accepted at the moment")) | |
648 | + | if ((bi == bk)) | |
615 | 649 | then throw("Cannot buy this artwork anymore, maximum editions reached") | |
616 | - | else if (( | |
617 | - | then throw(((("Payment don't match seller price: " + toString( | |
650 | + | else if ((br != aP)) | |
651 | + | then throw(((("Payment don't match seller price: " + toString(br)) + " vs ") + toString(aP))) | |
618 | 652 | else { | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | \"creator\": \"" + | |
623 | - | \"artID\": \"") + | |
624 | - | \"maxIssuable\": \"") + toString( | |
653 | + | let bv = (bi + 1) | |
654 | + | let bw = lastBlock.timestamp | |
655 | + | let bx = (((((((((((((((((((((((((((("{\"version\": 1, | |
656 | + | \"creator\": \"" + bm) + "\", | |
657 | + | \"artID\": \"") + Y) + "\", | |
658 | + | \"maxIssuable\": \"") + toString(bk)) + "\", | |
625 | 659 | \"signID\": \"") + B) + "\", | |
626 | - | \"issue\": \"") + toString( | |
627 | - | \"source_hash\": \"") + | |
628 | - | \"artwork_name\": \"") + | |
629 | - | \"artwork_desc\": \"") + | |
630 | - | \"display_cid\": \"") + | |
631 | - | \"export_cid\": \"") + | |
632 | - | \"export_hash\": \"") + | |
633 | - | \"licence_cid\": \"") + | |
634 | - | \"licence_hash\": \"") + | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
660 | + | \"issue\": \"") + toString(bv)) + "/") + toString(bk)) + "\", | |
661 | + | \"source_hash\": \"") + bu) + "\", | |
662 | + | \"artwork_name\": \"") + bh) + "\", | |
663 | + | \"artwork_desc\": \"") + av) + "\", | |
664 | + | \"display_cid\": \"") + bo) + "\", | |
665 | + | \"export_cid\": \"") + bf) + "\", | |
666 | + | \"export_hash\": \"") + bg) + "\", | |
667 | + | \"licence_cid\": \"") + bp) + "\", | |
668 | + | \"licence_hash\": \"") + bq) + "\"}") | |
669 | + | let by = Issue(("SA_" + toString((bn + 1))), bx, 1, 0, false) | |
670 | + | let bz = calculateAssetId(by) | |
671 | + | let bl = if ((bv == bk)) | |
638 | 672 | then false | |
639 | 673 | else true | |
640 | - | [IntegerEntry( | |
674 | + | [IntegerEntry(ag(bm, Y), bv), StringEntry(((((((("art_sold_" + toString(bv)) + "_of_") + toString(bk)) + "_") + Y) + "_") + bm), ((((((aN + "_") + toString(bw)) + "_") + G) + "_") + toString(br))), IntegerEntry("total_nft_issued", (bn + 1)), BooleanEntry(ah(bm, Y), bl), StringEntry("last_invoke_id", G), by, ScriptTransfer(Address(fromBase58String(bm)), aP, aQ), ScriptTransfer(aE.caller, 1, bz)] | |
641 | 675 | } | |
642 | 676 | } | |
643 | 677 | } | |
644 | 678 | ||
645 | 679 | ||
646 | 680 | ||
647 | 681 | @Callable(y) | |
648 | - | func deleteUser ( | |
649 | - | let | |
682 | + | func deleteUser (aB) = { | |
683 | + | let Q = toString(addressFromPublicKey(y.callerPublicKey)) | |
650 | 684 | let G = toBase58String(y.transactionId) | |
651 | - | if (if (( | |
685 | + | if (if ((Q == h)) | |
652 | 686 | then true | |
653 | - | else ( | |
654 | - | then [DeleteEntry( | |
687 | + | else (Q == i)) | |
688 | + | then [DeleteEntry(W(aB)), DeleteEntry(P(aB)), DeleteEntry(R(aB)), DeleteEntry(S(aB)), DeleteEntry(T(aB)), DeleteEntry(U(aB)), StringEntry(V(aB), o), StringEntry("last_invoke_id", G)] | |
655 | 689 | else throw("You are not allowed to do that") | |
656 | 690 | } | |
657 | 691 | ||
658 | 692 |
github/deemru/w8io/026f985 207.88 ms ◑