tx · CiYKPth81pSYC2eVr2X7514LYkLyY9A1AyaWrpTjF8aQ 3NBtrx7mHYY7HTxBohNtqxSV9Zoa5SPoXCp: -0.01400000 Waves 2020.09.28 13:44 [1197074] smart account 3NBtrx7mHYY7HTxBohNtqxSV9Zoa5SPoXCp > SELF 0.00000000 Waves
{ "type": 13, "id": "CiYKPth81pSYC2eVr2X7514LYkLyY9A1AyaWrpTjF8aQ", "fee": 1400000, "feeAssetId": null, "timestamp": 1601289886102, "version": 2, "chainId": 84, "sender": "3NBtrx7mHYY7HTxBohNtqxSV9Zoa5SPoXCp", "senderPublicKey": "59qhZgfTkAKq9Ztgyx7uceWbSvHRmyMSdQ1EfZVGknby", "proofs": [ "5TKs1fbxPUrx3ZP5teUPGDQYv1TqVBNVgGBtZfc5LEzfLY6tdg3mjpna7SesvBVkhqjKPa3wp7Egh3vrGrocsj8C" ], "script": "base64:AAIEAAAAAAAAAE4IAhIGCgQICAgIEgYKBAgICAgSBAoCCAgSAwoBCBIOCgwICAgICAgBCAgICAgSDQoLCAgICAgBCAgICAgSBAoCCAgSBAoCCAESBAoCCAgAAAAuAAAAAA9zdG9yYWdlVmVyaWZpZXIJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAADHNpZ25WZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTkMyOGhTaXZybXNUVVhhWUQxeDZMMzYySjRacFVub1RkQgAAAAALZmVlUmVjZWl2ZXICAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAAtzaWduQXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAABnVzZG5JRAIAAAAsM0tGWEJHR0xDakE1WjJEdVc0RHE5ZkREckhqSkpQMVpFa2FvYWpTenVLc0MAAAAABWFkbWluAgAAACMzTXNHN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AAAhpc3N1ZU5GVAkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAALYXJ0X29uc2FsZV8FAAAAB2VudHJ5SUQCAAAAAV8FAAAADWNhbGxlckFkZHJlc3MFAAAACnNlbGxTdGF0dXMJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAABmlzc3VlcgUAAAAGYW1vdW50BQAAAAdhc3NldElkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAZpbnZva2UAAAAGY2FsbGVyAAAAAAAAAAABBQAAAAVpZE5GVAUAAAADbmlsAAAAAL3suto=", "height": 1197074, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GTw1QZPkDFrjzCmDPpdhLrLZqcy3FEF1ZDJQk1S5ye8L Next: none Diff:
Old | New | Differences | |
---|---|---|---|
108 | 108 | func N (J) = ("user_thumb_" + J) | |
109 | 109 | ||
110 | 110 | ||
111 | - | func O (J) = ("user_ | |
111 | + | func O (J) = ("user_status_" + J) | |
112 | 112 | ||
113 | 113 | ||
114 | - | func P (J) = ("user_ | |
114 | + | func P (J) = ("user_date_" + J) | |
115 | 115 | ||
116 | 116 | ||
117 | - | func Q (J) = (" | |
117 | + | func Q (J,R) = ((("art_date_" + R) + "_") + J) | |
118 | 118 | ||
119 | 119 | ||
120 | - | func | |
120 | + | func S (J,R) = ((("art_name_" + R) + "_") + J) | |
121 | 121 | ||
122 | 122 | ||
123 | - | func T (J, | |
123 | + | func T (J,R) = ((("art_desc_" + R) + "_") + J) | |
124 | 124 | ||
125 | 125 | ||
126 | - | func U (J, | |
126 | + | func U (J,R) = ((("art_display_cid_" + R) + "_") + J) | |
127 | 127 | ||
128 | 128 | ||
129 | - | func V (J, | |
129 | + | func V (J,R) = ((("art_export_hash_" + R) + "_") + J) | |
130 | 130 | ||
131 | 131 | ||
132 | - | func W (J, | |
132 | + | func W (J,R) = ((("art_export_cid_" + R) + "_") + J) | |
133 | 133 | ||
134 | 134 | ||
135 | - | func X (J, | |
135 | + | func X (J,R) = ((("art_maxmint_" + R) + "_") + J) | |
136 | 136 | ||
137 | 137 | ||
138 | - | func Y (J, | |
138 | + | func Y (J,R) = ((("art_signid_" + R) + "_") + J) | |
139 | 139 | ||
140 | 140 | ||
141 | - | func Z (J, | |
141 | + | func Z (J,R) = ((("art_issued_" + R) + "_") + J) | |
142 | 142 | ||
143 | 143 | ||
144 | - | func aa (J, | |
144 | + | func aa (J,R) = ((("art_onsale_" + R) + "_") + J) | |
145 | 145 | ||
146 | 146 | ||
147 | - | func ab (J, | |
147 | + | func ab (J,R) = ((("art_licence_hash_" + R) + "_") + J) | |
148 | 148 | ||
149 | 149 | ||
150 | - | func ac (J, | |
150 | + | func ac (J,R) = ((("art_licence_cid_" + R) + "_") + J) | |
151 | 151 | ||
152 | 152 | ||
153 | - | func ad (J, | |
153 | + | func ad (J,R) = ((("art_tags_" + R) + "_") + J) | |
154 | 154 | ||
155 | 155 | ||
156 | - | func ae (J, | |
156 | + | func ae (J,R) = ((("art_type_" + R) + "_") + J) | |
157 | 157 | ||
158 | 158 | ||
159 | - | func af ( | |
159 | + | func af (A) = ("get_owner_by_hash_" + A) | |
160 | 160 | ||
161 | 161 | ||
162 | - | func ag ( | |
162 | + | func ag (J,ah) = ((("get_artidbysignid_" + ah) + "_") + J) | |
163 | 163 | ||
164 | 164 | ||
165 | - | func ah (J,ai) = ((("art_artidbysignid_" + ai) + "_") + J) | |
166 | - | ||
167 | - | ||
168 | - | func aj (A,J) = ("art_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((A + J))))) | |
165 | + | func ai (A,J) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((A + J))))) | |
169 | 166 | ||
170 | 167 | ||
171 | 168 | @Callable(w) | |
172 | - | func registerUser (ak,al,am | |
169 | + | func registerUser (aj,ak,al,am) = { | |
173 | 170 | let J = toString(addressFromPublicKey(w.callerPublicKey)) | |
174 | - | let | |
171 | + | let an = r(O(J)) | |
175 | 172 | let D = toBase58String(w.transactionId) | |
176 | - | let | |
177 | - | if (if (( | |
173 | + | let ao = lastBlock.timestamp | |
174 | + | if (if ((an == l)) | |
178 | 175 | then true | |
179 | - | else ( | |
176 | + | else (an == m)) | |
180 | 177 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
181 | - | else if (( | |
178 | + | else if ((an == j)) | |
182 | 179 | then throw("You are already registered, please use update method instead.") | |
183 | - | else if (if (( | |
180 | + | else if (if ((an == "")) | |
184 | 181 | then h | |
185 | 182 | else false) | |
186 | 183 | then throw("You are now allowed to register yet, please contact us first to get approved.") | |
187 | - | else if (if (( | |
184 | + | else if (if ((aj == "")) | |
188 | 185 | then true | |
189 | - | else ( | |
186 | + | else (ak == "")) | |
190 | 187 | then throw("Name and description cannot be empty") | |
191 | - | else if ((size( | |
188 | + | else if ((size(ak) > 600)) | |
192 | 189 | then throw("600 Characters maximum for the description") | |
193 | - | else [IntegerEntry( | |
190 | + | else [IntegerEntry(P(J), ao), StringEntry(I(J), ((D + "_") + toString(lastBlock.timestamp))), StringEntry(K(J), aj), StringEntry(L(J), ak), StringEntry(M(J), am), StringEntry(N(J), al), StringEntry(O(J), j), StringEntry("last_invoke_id", D)] | |
194 | 191 | } | |
195 | 192 | ||
196 | 193 | ||
197 | 194 | ||
198 | 195 | @Callable(w) | |
199 | - | func updateUser (ak,al,am | |
196 | + | func updateUser (aj,ak,al,am) = { | |
200 | 197 | let J = toString(addressFromPublicKey(w.callerPublicKey)) | |
201 | - | let | |
202 | - | if (if (( | |
198 | + | let an = r(O(J)) | |
199 | + | if (if ((an == l)) | |
203 | 200 | then true | |
204 | - | else ( | |
201 | + | else (an == m)) | |
205 | 202 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
206 | - | else if (if (( | |
203 | + | else if (if ((an == "")) | |
207 | 204 | then true | |
208 | - | else ( | |
205 | + | else (an == i)) | |
209 | 206 | then throw("Please register first with registerUser") | |
210 | 207 | else { | |
211 | 208 | let D = toBase58String(w.transactionId) | |
212 | - | let | |
213 | - | if (if (( | |
209 | + | let ao = lastBlock.timestamp | |
210 | + | if (if ((aj == "")) | |
214 | 211 | then true | |
215 | - | else ( | |
212 | + | else (ak == "")) | |
216 | 213 | then throw("Name and description cannot be empty") | |
217 | - | else if ((size( | |
214 | + | else if ((size(ak) > 600)) | |
218 | 215 | then throw("600 Characters maximum for the description") | |
219 | - | else [StringEntry(K(J), | |
216 | + | else [StringEntry(K(J), aj), StringEntry(L(J), ak), StringEntry(M(J), am), StringEntry(N(J), al), StringEntry("last_invoke_id", D)] | |
220 | 217 | } | |
221 | 218 | } | |
222 | 219 | ||
223 | 220 | ||
224 | 221 | ||
225 | 222 | @Callable(w) | |
226 | - | func changeUserStatus (aq | |
223 | + | func changeUserStatus (ap,aq) = { | |
227 | 224 | let J = toString(addressFromPublicKey(w.callerPublicKey)) | |
228 | 225 | let D = toBase58String(w.transactionId) | |
229 | - | let | |
226 | + | let ar = if ((aq == k)) | |
230 | 227 | then k | |
231 | - | else if (( | |
228 | + | else if ((aq == j)) | |
232 | 229 | then j | |
233 | - | else if (( | |
230 | + | else if ((aq == l)) | |
234 | 231 | then l | |
235 | - | else if (( | |
232 | + | else if ((aq == m)) | |
236 | 233 | then m | |
237 | - | else if (( | |
234 | + | else if ((aq == i)) | |
238 | 235 | then i | |
239 | 236 | else throw("Unknown status") | |
240 | 237 | if (if ((J == f)) | |
241 | 238 | then true | |
242 | 239 | else (J == g)) | |
243 | - | then [StringEntry( | |
240 | + | then [StringEntry(O(ap), ar), StringEntry("last_invoke_id", D)] | |
244 | 241 | else throw(((("You are not allowed to change user status " + J) + " / ") + f)) | |
245 | 242 | } | |
246 | 243 | ||
247 | 244 | ||
248 | 245 | ||
249 | 246 | @Callable(w) | |
250 | - | func deleteUser ( | |
247 | + | func deleteUser (ap) = { | |
251 | 248 | let J = toString(addressFromPublicKey(w.callerPublicKey)) | |
252 | 249 | let D = toBase58String(w.transactionId) | |
253 | 250 | if (if ((J == f)) | |
254 | 251 | then true | |
255 | 252 | else (J == g)) | |
256 | - | then [DeleteEntry( | |
253 | + | then [DeleteEntry(P(ap)), DeleteEntry(I(ap)), DeleteEntry(K(ap)), DeleteEntry(L(ap)), DeleteEntry(M(ap)), DeleteEntry(N(ap)), StringEntry(O(ap), m), StringEntry("last_invoke_id", D)] | |
257 | 254 | else throw("You are not allowed to do that") | |
258 | 255 | } | |
259 | 256 | ||
260 | 257 | ||
261 | 258 | ||
262 | - | @Callable( | |
263 | - | func addArtwork (A,y,ak, | |
264 | - | let | |
265 | - | let | |
266 | - | if ((size( | |
259 | + | @Callable(as) | |
260 | + | func addArtwork (A,y,aj,ak,at,au,av,aw,ax,ay,az,aA) = { | |
261 | + | let R = toBase58String(as.transactionId) | |
262 | + | let aB = toBase58String(as.caller.bytes) | |
263 | + | if ((size(as.payments) == 0)) | |
267 | 264 | then throw("No payment attached") | |
268 | 265 | else { | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | then ( | |
266 | + | let aC = value(as.payments[0]) | |
267 | + | let aD = value(aC.amount) | |
268 | + | let aE = if (if (isDefined(aC.assetId)) | |
269 | + | then (aC.assetId == d) | |
273 | 270 | else false) | |
274 | - | then | |
271 | + | then aC.assetId | |
275 | 272 | else throw("Only SIGN token accepted at the moment") | |
276 | - | let | |
273 | + | let aF = { | |
277 | 274 | let t = getInteger(a, ("certification_fee_" + toBase58String(d))) | |
278 | 275 | if ($isInstanceOf(t, "Int")) | |
279 | 276 | then { | |
280 | - | let | |
281 | - | | |
277 | + | let aG = t | |
278 | + | aG | |
282 | 279 | } | |
283 | 280 | else throw("Price undefined in oracle") | |
284 | 281 | } | |
285 | - | if (( | |
286 | - | then throw(("Payment amount should be " + toString( | |
282 | + | if ((aD != aF)) | |
283 | + | then throw(("Payment amount should be " + toString(aF))) | |
287 | 284 | else { | |
288 | - | let | |
289 | - | if (( | |
285 | + | let aH = r(ai(A, aB)) | |
286 | + | if ((aH != "")) | |
290 | 287 | then throw("You already added this artwork on Sign Art") | |
291 | 288 | else { | |
292 | - | let | |
293 | - | if (( | |
289 | + | let aI = r(af(A)) | |
290 | + | if ((aI != "")) | |
294 | 291 | then throw("This artwork hash is already registered on Sign Art") | |
295 | 292 | else { | |
296 | - | let | |
297 | - | if (!( | |
293 | + | let aJ = x(y, aB, A) | |
294 | + | if (!(aJ)) | |
298 | 295 | then throw("Sign Certificate not found on Sign-web.app smart contract for this address.") | |
299 | - | else if ((size( | |
296 | + | else if ((size(aw) == 0)) | |
300 | 297 | then throw("Display CID cannot be empty") | |
301 | - | else if ((size( | |
298 | + | else if ((size(aj) == 0)) | |
302 | 299 | then throw("Title cannot be empty") | |
303 | - | else if ((size( | |
300 | + | else if ((size(aj) > 100)) | |
304 | 301 | then throw("100 Characters maximum for the name") | |
305 | - | else if ((size( | |
302 | + | else if ((size(ak) > 1000)) | |
306 | 303 | then throw("1000 Characters maximum for the description") | |
307 | - | else if ((size( | |
304 | + | else if ((size(ak) == 0)) | |
308 | 305 | then throw("Description cannot be empty") | |
309 | 306 | else { | |
310 | - | let | |
311 | - | if ((size( | |
307 | + | let aK = split(at, ",") | |
308 | + | if ((size(aK) > 5)) | |
312 | 309 | then throw("Tags should be maximum 5 single word separated by space.") | |
313 | 310 | else { | |
314 | - | let | |
315 | - | let t = getString(this, ("user_status_" + | |
311 | + | let aL = { | |
312 | + | let t = getString(this, ("user_status_" + aB)) | |
316 | 313 | if ($isInstanceOf(t, "String")) | |
317 | 314 | then { | |
318 | - | let | |
319 | - | | |
315 | + | let aM = t | |
316 | + | aM | |
320 | 317 | } | |
321 | 318 | else n | |
322 | 319 | } | |
323 | - | let | |
324 | - | if (if (isDefined( | |
325 | - | then ( | |
320 | + | let ao = lastBlock.timestamp | |
321 | + | if (if (isDefined(aL)) | |
322 | + | then (aL == n) | |
326 | 323 | else false) | |
327 | 324 | then throw("Please register this account first with \"User infos\" tab") | |
328 | - | else if (( | |
325 | + | else if ((aL == l)) | |
329 | 326 | then throw("Your account is suspended") | |
330 | - | else if (( | |
327 | + | else if ((aL == m)) | |
331 | 328 | then throw("Your account have been removed") | |
332 | - | else if (( | |
329 | + | else if ((av > 10)) | |
333 | 330 | then throw("Maximum 10 editions per artwork") | |
334 | 331 | else if ((size(A) != 64)) | |
335 | 332 | then throw("Hash should be sha256 string composed of 64 char.") | |
336 | - | else [StringEntry( | |
333 | + | else [StringEntry(af(A), aB), StringEntry(ai(A, aB), R), IntegerEntry(Q(aB, R), ao), StringEntry(S(aB, R), aj), StringEntry(T(aB, R), ak), StringEntry(U(aB, R), aw), StringEntry(W(aB, R), ay), StringEntry(V(aB, R), ax), StringEntry(ab(aB, R), az), StringEntry(ac(aB, R), aA), StringEntry(ae(aB, R), au), StringEntry(ad(aB, R), at), IntegerEntry(X(aB, R), av), StringEntry(Y(aB, R), y), IntegerEntry(Z(aB, R), 0), BooleanEntry(aa(aB, R), false), StringEntry(ag(aB, y), R), StringEntry("last_invoke_id", R), ScriptTransfer(Address(fromBase58String(c)), aD, aE)] | |
337 | 334 | } | |
338 | 335 | } | |
339 | 336 | } | |
344 | 341 | ||
345 | 342 | ||
346 | 343 | ||
347 | - | @Callable( | |
348 | - | func updateArtwork ( | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | if (( | |
344 | + | @Callable(as) | |
345 | + | func updateArtwork (aN,aj,ak,at,au,av,aw,ax,ay,az,aA) = { | |
346 | + | let aO = toBase58String(as.transactionId) | |
347 | + | let aB = toBase58String(as.caller.bytes) | |
348 | + | let aH = r(S(aB, aN)) | |
349 | + | if ((aH == "")) | |
353 | 350 | then throw("This entry doesn't exist or you are not the owner") | |
354 | - | else if ((size( | |
351 | + | else if ((size(aj) == 0)) | |
355 | 352 | then throw("Title cannot be empty") | |
356 | - | else if ((size( | |
353 | + | else if ((size(aj) > 100)) | |
357 | 354 | then throw("100 Characters maximum for the name") | |
358 | - | else if ((size( | |
355 | + | else if ((size(ak) > 1000)) | |
359 | 356 | then throw("1000 Characters maximum for the description") | |
360 | - | else if ((size( | |
357 | + | else if ((size(ak) == 0)) | |
361 | 358 | then throw("Description cannot be empty") | |
362 | 359 | else { | |
363 | - | let | |
364 | - | let t = getInteger(this, | |
360 | + | let aP = { | |
361 | + | let t = getInteger(this, Z(aB, aN)) | |
365 | 362 | if ($isInstanceOf(t, "Int")) | |
366 | 363 | then { | |
367 | 364 | let H = t | |
371 | 368 | } | |
372 | 369 | else false | |
373 | 370 | } | |
374 | - | let | |
375 | - | if ((size( | |
371 | + | let aK = split(at, ",") | |
372 | + | if ((size(aK) > 5)) | |
376 | 373 | then throw("Tags should be maximum 5 single word separated by space.") | |
377 | 374 | else { | |
378 | - | let | |
379 | - | let t = getString(this, ("user_status_" + | |
375 | + | let aL = { | |
376 | + | let t = getString(this, ("user_status_" + aB)) | |
380 | 377 | if ($isInstanceOf(t, "String")) | |
381 | 378 | then { | |
382 | - | let | |
383 | - | | |
379 | + | let aM = t | |
380 | + | aM | |
384 | 381 | } | |
385 | 382 | else n | |
386 | 383 | } | |
387 | - | if (if (isDefined( | |
388 | - | then ( | |
384 | + | if (if (isDefined(aL)) | |
385 | + | then (aL == n) | |
389 | 386 | else false) | |
390 | 387 | then throw("Please register this account first with \"User infos\" tab") | |
391 | - | else if (( | |
388 | + | else if ((aL == l)) | |
392 | 389 | then throw("Your account is suspended") | |
393 | - | else if (( | |
390 | + | else if ((aL == m)) | |
394 | 391 | then throw("Your account have been removed") | |
395 | - | else if (( | |
392 | + | else if ((av > 10)) | |
396 | 393 | then throw("Maximum 10 editions per artwork") | |
397 | - | else if (!( | |
398 | - | then [StringEntry(T( | |
399 | - | else [StringEntry(T( | |
394 | + | else if (!(aP)) | |
395 | + | then [StringEntry(S(aB, aN), aj), StringEntry(T(aB, aN), ak), StringEntry(U(aB, aN), aw), StringEntry(W(aB, aN), ay), StringEntry(V(aB, aN), ax), StringEntry(ac(aB, aN), aA), StringEntry(ab(aB, aN), az), IntegerEntry(X(aB, aN), av), StringEntry(ad(aB, aN), at), StringEntry(ae(aB, aN), au), StringEntry("last_invoke_id", aO)] | |
396 | + | else [StringEntry(S(aB, aN), aj), StringEntry(T(aB, aN), ak), StringEntry(U(aB, aN), aw), StringEntry(ae(aB, aN), au), StringEntry(ad(aB, aN), at), StringEntry("last_invoke_id", aO)] | |
400 | 397 | } | |
401 | 398 | } | |
402 | 399 | } | |
404 | 401 | ||
405 | 402 | ||
406 | 403 | @Callable(w) | |
407 | - | func deleteArtwork ( | |
408 | - | let | |
404 | + | func deleteArtwork (R,ap) = { | |
405 | + | let aB = toString(addressFromPublicKey(w.callerPublicKey)) | |
409 | 406 | let D = toBase58String(w.transactionId) | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let t = getInteger(this, | |
407 | + | let aH = r(S(aB, R)) | |
408 | + | let aQ = r(S(ap, R)) | |
409 | + | let aP = { | |
410 | + | let t = getInteger(this, Z(aB, R)) | |
414 | 411 | if ($isInstanceOf(t, "Int")) | |
415 | 412 | then { | |
416 | 413 | let H = t | |
420 | 417 | } | |
421 | 418 | else false | |
422 | 419 | } | |
423 | - | let | |
420 | + | let aR = if (if ((aB == f)) | |
424 | 421 | then true | |
425 | - | else ( | |
426 | - | then | |
427 | - | else | |
428 | - | let | |
429 | - | if (if (( | |
422 | + | else (aB == g)) | |
423 | + | then ap | |
424 | + | else aB | |
425 | + | let aS = [DeleteEntry(Q(aR, R)), DeleteEntry(S(aR, R)), DeleteEntry(T(aR, R)), DeleteEntry(U(aR, R)), DeleteEntry(W(aR, R)), DeleteEntry(V(aR, R)), DeleteEntry(ab(aR, R)), DeleteEntry(ac(aR, R)), DeleteEntry(ae(aR, R)), DeleteEntry(ad(aR, R)), DeleteEntry(X(aR, R)), DeleteEntry(Y(aR, R)), DeleteEntry(Z(aR, R)), DeleteEntry(aa(aR, R)), StringEntry("last_invoke_id", D)] | |
426 | + | if (if ((aB == f)) | |
430 | 427 | then true | |
431 | - | else ( | |
432 | - | then | |
433 | - | else if (if (( | |
428 | + | else (aB == g)) | |
429 | + | then aS | |
430 | + | else if (if ((aH == "")) | |
434 | 431 | then true | |
435 | - | else ( | |
432 | + | else (aQ == "")) | |
436 | 433 | then throw("This entry doesn't exist or you are not the owner") | |
437 | - | else if (!( | |
438 | - | then | |
434 | + | else if (!(aP)) | |
435 | + | then aS | |
439 | 436 | else throw("This artwork already have minted NFT, you cannot delete it") | |
440 | 437 | } | |
441 | 438 | ||
442 | 439 | ||
443 | 440 | ||
444 | - | @Callable( | |
445 | - | func sellArtwork ( | |
446 | - | let D = toBase58String( | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | if (!(isDefined( | |
441 | + | @Callable(as) | |
442 | + | func sellArtwork (aT,aG) = { | |
443 | + | let D = toBase58String(as.transactionId) | |
444 | + | let aB = toBase58String(as.caller.bytes) | |
445 | + | let aU = lastBlock.timestamp | |
446 | + | let aV = r(((aT + "_") + aB)) | |
447 | + | if (!(isDefined(aV))) | |
451 | 448 | then throw("This artwork doesn't exit or you are not the owner") | |
452 | 449 | else { | |
453 | - | let | |
454 | - | if (( | |
450 | + | let aL = r(("user_status_" + aB)) | |
451 | + | if ((aL == "")) | |
455 | 452 | then throw("Please register this account first") | |
456 | 453 | else { | |
457 | - | let | |
458 | - | let | |
459 | - | if (( | |
454 | + | let aW = v(((("art_issued_" + aV) + "_") + aB)) | |
455 | + | let aX = v(((("art_maxmint_" + aV) + "_") + aB)) | |
456 | + | if ((aW == aX)) | |
460 | 457 | then throw("You reached the max edition allowed to sell for this edition.") | |
461 | - | else if (( | |
458 | + | else if ((aL == l)) | |
462 | 459 | then throw("Your account is suspended") | |
463 | - | else if (!(isDefined( | |
460 | + | else if (!(isDefined(aV))) | |
464 | 461 | then throw("This artwork desn't exist") | |
465 | - | else if ((size( | |
462 | + | else if ((size(aT) != 64)) | |
466 | 463 | then throw("This hash is incorrect.") | |
467 | 464 | else { | |
468 | - | let | |
465 | + | let aY = if ((aG > 0)) | |
469 | 466 | then true | |
470 | 467 | else false | |
471 | - | [BooleanEntry(((("art_onsale_" + | |
468 | + | [BooleanEntry(((("art_onsale_" + aV) + "_") + aB), aY), IntegerEntry(((("art_price_" + aV) + "_") + aB), aG), StringEntry("last_invoke_id", D)] | |
472 | 469 | } | |
473 | 470 | } | |
474 | 471 | } | |
476 | 473 | ||
477 | 474 | ||
478 | 475 | ||
479 | - | @Callable( | |
480 | - | func buyArtwork ( | |
481 | - | let D = toBase58String( | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | if (( | |
476 | + | @Callable(as) | |
477 | + | func buyArtwork (aT,aZ) = { | |
478 | + | let D = toBase58String(as.transactionId) | |
479 | + | let aB = toBase58String(as.caller.bytes) | |
480 | + | let ba = v("total_nft_issued") | |
481 | + | let aV = r(((aT + "_") + aZ)) | |
482 | + | if ((aV == "")) | |
486 | 483 | then throw("This artwork doesn't exit or you are not the owner") | |
487 | 484 | else { | |
488 | - | let | |
489 | - | if (!(isDefined( | |
485 | + | let aL = r(("user_status_" + aB)) | |
486 | + | if (!(isDefined(aL))) | |
490 | 487 | then throw("Please register this account first") | |
491 | 488 | else { | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | if (( | |
489 | + | let bb = r(((("art_sold_" + aV) + "_") + aZ)) | |
490 | + | let aW = v(((("art_issued_" + aV) + "_") + aZ)) | |
491 | + | let bc = v(((("art_price_" + aV) + "_") + aZ)) | |
492 | + | if ((bc == 0)) | |
496 | 493 | then throw("This artwork is not for sell") | |
497 | 494 | else { | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
495 | + | let aX = v(((("art_maxmint_" + aV) + "_") + aZ)) | |
496 | + | let aC = value(as.payments[0]) | |
497 | + | let aD = value(aC.amount) | |
498 | + | let aE = if (isDefined(aC.assetId)) | |
502 | 499 | then throw("Only Waves token accepted at the moment") | |
503 | 500 | else unit | |
504 | - | if (( | |
501 | + | if ((aW == aX)) | |
505 | 502 | then throw("Cannot buy this artwork anymore") | |
506 | - | else if (( | |
503 | + | else if ((bc != aD)) | |
507 | 504 | then throw("Payment don't match seller price") | |
508 | 505 | else { | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
506 | + | let bd = (aW + 1) | |
507 | + | let aU = lastBlock.timestamp | |
508 | + | let be = (((((((((((((("{\"version\": 1,\"artID\": \"" + aV) + "\",\"maxIssuable\": \"") + toString(aX)) + "\",\"signID\": \"SA_") + toString((ba + 1))) + "\", \"creator\": \"") + aZ) + "\", \"issue\": \"") + toString(bd)) + "/") + toString(aX)) + "\", \"hash\": ") + aT) + "}") | |
509 | + | let bf = Issue(("SA_" + toString((ba + 1))), be, 1, 0, false) | |
510 | + | let bg = calculateAssetId(bf) | |
511 | + | let aY = if ((bd == aX)) | |
515 | 512 | then false | |
516 | 513 | else true | |
517 | - | [IntegerEntry(((("art_issued_" + | |
514 | + | [IntegerEntry(((("art_issued_" + aV) + "_") + aZ), bd), StringEntry(((((((("art_sold_" + toString(bd)) + "_of_") + toString(aX)) + "_") + aV) + "_") + aZ), ((((((aB + "_") + toString(aU)) + "_") + D) + "_") + toString(bc))), IntegerEntry("total_nft_issued", (ba + 1)), StringEntry("last_invoke_id", D), bf, BooleanEntry(((("art_onsale_" + aV) + "_") + aB), aY), ScriptTransfer(Address(fromBase58String(aZ)), aD, aE), ScriptTransfer(as.caller, 1, bg)] | |
518 | 515 | } | |
519 | 516 | } | |
520 | 517 | } |
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 = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC" | |
13 | 13 | ||
14 | 14 | let f = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
15 | 15 | ||
16 | 16 | let g = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
17 | 17 | ||
18 | 18 | let h = true | |
19 | 19 | ||
20 | 20 | let i = "ALLOWED" | |
21 | 21 | ||
22 | 22 | let j = "REGISTERED" | |
23 | 23 | ||
24 | 24 | let k = "VERIFIED" | |
25 | 25 | ||
26 | 26 | let l = "SUSPENDED" | |
27 | 27 | ||
28 | 28 | let m = "REMOVED" | |
29 | 29 | ||
30 | 30 | let n = "UNREGISTERED" | |
31 | 31 | ||
32 | 32 | let o = "ON_SALE" | |
33 | 33 | ||
34 | 34 | let p = "SOLD" | |
35 | 35 | ||
36 | 36 | let q = "CANCELED" | |
37 | 37 | ||
38 | 38 | func r (s) = { | |
39 | 39 | let t = getString(this, s) | |
40 | 40 | if ($isInstanceOf(t, "String")) | |
41 | 41 | then { | |
42 | 42 | let u = t | |
43 | 43 | u | |
44 | 44 | } | |
45 | 45 | else "" | |
46 | 46 | } | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func v (s) = { | |
50 | 50 | let t = getInteger(this, s) | |
51 | 51 | if ($isInstanceOf(t, "Int")) | |
52 | 52 | then { | |
53 | 53 | let w = t | |
54 | 54 | w | |
55 | 55 | } | |
56 | 56 | else 0 | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func x (y,z,A) = { | |
61 | 61 | let t = getString(b, ((("data_fc_" + y) + "_") + z)) | |
62 | 62 | if ($isInstanceOf(t, "String")) | |
63 | 63 | then { | |
64 | 64 | let u = t | |
65 | 65 | if (contains(u, A)) | |
66 | 66 | then true | |
67 | 67 | else false | |
68 | 68 | } | |
69 | 69 | else false | |
70 | 70 | } | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func B (C,D) = { | |
74 | 74 | let E = value(assetInfo(fromBase58String(D))) | |
75 | 75 | if (if (if ((E.quantity != 1)) | |
76 | 76 | then true | |
77 | 77 | else (E.decimals != 0)) | |
78 | 78 | then true | |
79 | 79 | else (E.reissuable != false)) | |
80 | 80 | then (C + 0) | |
81 | 81 | else (C + 1) | |
82 | 82 | } | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func F (G) = { | |
86 | 86 | let t = getString(this, ("user_status_" + G)) | |
87 | 87 | if ($isInstanceOf(t, "String")) | |
88 | 88 | then { | |
89 | 89 | let H = t | |
90 | 90 | H | |
91 | 91 | } | |
92 | 92 | else throw("Something went wrong.") | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func I (J) = ("user_" + J) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func K (J) = ("user_name_" + J) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func L (J) = ("user_desc_" + J) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func M (J) = ("user_social_" + J) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func N (J) = ("user_thumb_" + J) | |
109 | 109 | ||
110 | 110 | ||
111 | - | func O (J) = ("user_ | |
111 | + | func O (J) = ("user_status_" + J) | |
112 | 112 | ||
113 | 113 | ||
114 | - | func P (J) = ("user_ | |
114 | + | func P (J) = ("user_date_" + J) | |
115 | 115 | ||
116 | 116 | ||
117 | - | func Q (J) = (" | |
117 | + | func Q (J,R) = ((("art_date_" + R) + "_") + J) | |
118 | 118 | ||
119 | 119 | ||
120 | - | func | |
120 | + | func S (J,R) = ((("art_name_" + R) + "_") + J) | |
121 | 121 | ||
122 | 122 | ||
123 | - | func T (J, | |
123 | + | func T (J,R) = ((("art_desc_" + R) + "_") + J) | |
124 | 124 | ||
125 | 125 | ||
126 | - | func U (J, | |
126 | + | func U (J,R) = ((("art_display_cid_" + R) + "_") + J) | |
127 | 127 | ||
128 | 128 | ||
129 | - | func V (J, | |
129 | + | func V (J,R) = ((("art_export_hash_" + R) + "_") + J) | |
130 | 130 | ||
131 | 131 | ||
132 | - | func W (J, | |
132 | + | func W (J,R) = ((("art_export_cid_" + R) + "_") + J) | |
133 | 133 | ||
134 | 134 | ||
135 | - | func X (J, | |
135 | + | func X (J,R) = ((("art_maxmint_" + R) + "_") + J) | |
136 | 136 | ||
137 | 137 | ||
138 | - | func Y (J, | |
138 | + | func Y (J,R) = ((("art_signid_" + R) + "_") + J) | |
139 | 139 | ||
140 | 140 | ||
141 | - | func Z (J, | |
141 | + | func Z (J,R) = ((("art_issued_" + R) + "_") + J) | |
142 | 142 | ||
143 | 143 | ||
144 | - | func aa (J, | |
144 | + | func aa (J,R) = ((("art_onsale_" + R) + "_") + J) | |
145 | 145 | ||
146 | 146 | ||
147 | - | func ab (J, | |
147 | + | func ab (J,R) = ((("art_licence_hash_" + R) + "_") + J) | |
148 | 148 | ||
149 | 149 | ||
150 | - | func ac (J, | |
150 | + | func ac (J,R) = ((("art_licence_cid_" + R) + "_") + J) | |
151 | 151 | ||
152 | 152 | ||
153 | - | func ad (J, | |
153 | + | func ad (J,R) = ((("art_tags_" + R) + "_") + J) | |
154 | 154 | ||
155 | 155 | ||
156 | - | func ae (J, | |
156 | + | func ae (J,R) = ((("art_type_" + R) + "_") + J) | |
157 | 157 | ||
158 | 158 | ||
159 | - | func af ( | |
159 | + | func af (A) = ("get_owner_by_hash_" + A) | |
160 | 160 | ||
161 | 161 | ||
162 | - | func ag ( | |
162 | + | func ag (J,ah) = ((("get_artidbysignid_" + ah) + "_") + J) | |
163 | 163 | ||
164 | 164 | ||
165 | - | func ah (J,ai) = ((("art_artidbysignid_" + ai) + "_") + J) | |
166 | - | ||
167 | - | ||
168 | - | func aj (A,J) = ("art_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((A + J))))) | |
165 | + | func ai (A,J) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((A + J))))) | |
169 | 166 | ||
170 | 167 | ||
171 | 168 | @Callable(w) | |
172 | - | func registerUser (ak,al,am | |
169 | + | func registerUser (aj,ak,al,am) = { | |
173 | 170 | let J = toString(addressFromPublicKey(w.callerPublicKey)) | |
174 | - | let | |
171 | + | let an = r(O(J)) | |
175 | 172 | let D = toBase58String(w.transactionId) | |
176 | - | let | |
177 | - | if (if (( | |
173 | + | let ao = lastBlock.timestamp | |
174 | + | if (if ((an == l)) | |
178 | 175 | then true | |
179 | - | else ( | |
176 | + | else (an == m)) | |
180 | 177 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
181 | - | else if (( | |
178 | + | else if ((an == j)) | |
182 | 179 | then throw("You are already registered, please use update method instead.") | |
183 | - | else if (if (( | |
180 | + | else if (if ((an == "")) | |
184 | 181 | then h | |
185 | 182 | else false) | |
186 | 183 | then throw("You are now allowed to register yet, please contact us first to get approved.") | |
187 | - | else if (if (( | |
184 | + | else if (if ((aj == "")) | |
188 | 185 | then true | |
189 | - | else ( | |
186 | + | else (ak == "")) | |
190 | 187 | then throw("Name and description cannot be empty") | |
191 | - | else if ((size( | |
188 | + | else if ((size(ak) > 600)) | |
192 | 189 | then throw("600 Characters maximum for the description") | |
193 | - | else [IntegerEntry( | |
190 | + | else [IntegerEntry(P(J), ao), StringEntry(I(J), ((D + "_") + toString(lastBlock.timestamp))), StringEntry(K(J), aj), StringEntry(L(J), ak), StringEntry(M(J), am), StringEntry(N(J), al), StringEntry(O(J), j), StringEntry("last_invoke_id", D)] | |
194 | 191 | } | |
195 | 192 | ||
196 | 193 | ||
197 | 194 | ||
198 | 195 | @Callable(w) | |
199 | - | func updateUser (ak,al,am | |
196 | + | func updateUser (aj,ak,al,am) = { | |
200 | 197 | let J = toString(addressFromPublicKey(w.callerPublicKey)) | |
201 | - | let | |
202 | - | if (if (( | |
198 | + | let an = r(O(J)) | |
199 | + | if (if ((an == l)) | |
203 | 200 | then true | |
204 | - | else ( | |
201 | + | else (an == m)) | |
205 | 202 | then throw("You are now allowed to register, your account have been suspended/ removed.") | |
206 | - | else if (if (( | |
203 | + | else if (if ((an == "")) | |
207 | 204 | then true | |
208 | - | else ( | |
205 | + | else (an == i)) | |
209 | 206 | then throw("Please register first with registerUser") | |
210 | 207 | else { | |
211 | 208 | let D = toBase58String(w.transactionId) | |
212 | - | let | |
213 | - | if (if (( | |
209 | + | let ao = lastBlock.timestamp | |
210 | + | if (if ((aj == "")) | |
214 | 211 | then true | |
215 | - | else ( | |
212 | + | else (ak == "")) | |
216 | 213 | then throw("Name and description cannot be empty") | |
217 | - | else if ((size( | |
214 | + | else if ((size(ak) > 600)) | |
218 | 215 | then throw("600 Characters maximum for the description") | |
219 | - | else [StringEntry(K(J), | |
216 | + | else [StringEntry(K(J), aj), StringEntry(L(J), ak), StringEntry(M(J), am), StringEntry(N(J), al), StringEntry("last_invoke_id", D)] | |
220 | 217 | } | |
221 | 218 | } | |
222 | 219 | ||
223 | 220 | ||
224 | 221 | ||
225 | 222 | @Callable(w) | |
226 | - | func changeUserStatus (aq | |
223 | + | func changeUserStatus (ap,aq) = { | |
227 | 224 | let J = toString(addressFromPublicKey(w.callerPublicKey)) | |
228 | 225 | let D = toBase58String(w.transactionId) | |
229 | - | let | |
226 | + | let ar = if ((aq == k)) | |
230 | 227 | then k | |
231 | - | else if (( | |
228 | + | else if ((aq == j)) | |
232 | 229 | then j | |
233 | - | else if (( | |
230 | + | else if ((aq == l)) | |
234 | 231 | then l | |
235 | - | else if (( | |
232 | + | else if ((aq == m)) | |
236 | 233 | then m | |
237 | - | else if (( | |
234 | + | else if ((aq == i)) | |
238 | 235 | then i | |
239 | 236 | else throw("Unknown status") | |
240 | 237 | if (if ((J == f)) | |
241 | 238 | then true | |
242 | 239 | else (J == g)) | |
243 | - | then [StringEntry( | |
240 | + | then [StringEntry(O(ap), ar), StringEntry("last_invoke_id", D)] | |
244 | 241 | else throw(((("You are not allowed to change user status " + J) + " / ") + f)) | |
245 | 242 | } | |
246 | 243 | ||
247 | 244 | ||
248 | 245 | ||
249 | 246 | @Callable(w) | |
250 | - | func deleteUser ( | |
247 | + | func deleteUser (ap) = { | |
251 | 248 | let J = toString(addressFromPublicKey(w.callerPublicKey)) | |
252 | 249 | let D = toBase58String(w.transactionId) | |
253 | 250 | if (if ((J == f)) | |
254 | 251 | then true | |
255 | 252 | else (J == g)) | |
256 | - | then [DeleteEntry( | |
253 | + | then [DeleteEntry(P(ap)), DeleteEntry(I(ap)), DeleteEntry(K(ap)), DeleteEntry(L(ap)), DeleteEntry(M(ap)), DeleteEntry(N(ap)), StringEntry(O(ap), m), StringEntry("last_invoke_id", D)] | |
257 | 254 | else throw("You are not allowed to do that") | |
258 | 255 | } | |
259 | 256 | ||
260 | 257 | ||
261 | 258 | ||
262 | - | @Callable( | |
263 | - | func addArtwork (A,y,ak, | |
264 | - | let | |
265 | - | let | |
266 | - | if ((size( | |
259 | + | @Callable(as) | |
260 | + | func addArtwork (A,y,aj,ak,at,au,av,aw,ax,ay,az,aA) = { | |
261 | + | let R = toBase58String(as.transactionId) | |
262 | + | let aB = toBase58String(as.caller.bytes) | |
263 | + | if ((size(as.payments) == 0)) | |
267 | 264 | then throw("No payment attached") | |
268 | 265 | else { | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | then ( | |
266 | + | let aC = value(as.payments[0]) | |
267 | + | let aD = value(aC.amount) | |
268 | + | let aE = if (if (isDefined(aC.assetId)) | |
269 | + | then (aC.assetId == d) | |
273 | 270 | else false) | |
274 | - | then | |
271 | + | then aC.assetId | |
275 | 272 | else throw("Only SIGN token accepted at the moment") | |
276 | - | let | |
273 | + | let aF = { | |
277 | 274 | let t = getInteger(a, ("certification_fee_" + toBase58String(d))) | |
278 | 275 | if ($isInstanceOf(t, "Int")) | |
279 | 276 | then { | |
280 | - | let | |
281 | - | | |
277 | + | let aG = t | |
278 | + | aG | |
282 | 279 | } | |
283 | 280 | else throw("Price undefined in oracle") | |
284 | 281 | } | |
285 | - | if (( | |
286 | - | then throw(("Payment amount should be " + toString( | |
282 | + | if ((aD != aF)) | |
283 | + | then throw(("Payment amount should be " + toString(aF))) | |
287 | 284 | else { | |
288 | - | let | |
289 | - | if (( | |
285 | + | let aH = r(ai(A, aB)) | |
286 | + | if ((aH != "")) | |
290 | 287 | then throw("You already added this artwork on Sign Art") | |
291 | 288 | else { | |
292 | - | let | |
293 | - | if (( | |
289 | + | let aI = r(af(A)) | |
290 | + | if ((aI != "")) | |
294 | 291 | then throw("This artwork hash is already registered on Sign Art") | |
295 | 292 | else { | |
296 | - | let | |
297 | - | if (!( | |
293 | + | let aJ = x(y, aB, A) | |
294 | + | if (!(aJ)) | |
298 | 295 | then throw("Sign Certificate not found on Sign-web.app smart contract for this address.") | |
299 | - | else if ((size( | |
296 | + | else if ((size(aw) == 0)) | |
300 | 297 | then throw("Display CID cannot be empty") | |
301 | - | else if ((size( | |
298 | + | else if ((size(aj) == 0)) | |
302 | 299 | then throw("Title cannot be empty") | |
303 | - | else if ((size( | |
300 | + | else if ((size(aj) > 100)) | |
304 | 301 | then throw("100 Characters maximum for the name") | |
305 | - | else if ((size( | |
302 | + | else if ((size(ak) > 1000)) | |
306 | 303 | then throw("1000 Characters maximum for the description") | |
307 | - | else if ((size( | |
304 | + | else if ((size(ak) == 0)) | |
308 | 305 | then throw("Description cannot be empty") | |
309 | 306 | else { | |
310 | - | let | |
311 | - | if ((size( | |
307 | + | let aK = split(at, ",") | |
308 | + | if ((size(aK) > 5)) | |
312 | 309 | then throw("Tags should be maximum 5 single word separated by space.") | |
313 | 310 | else { | |
314 | - | let | |
315 | - | let t = getString(this, ("user_status_" + | |
311 | + | let aL = { | |
312 | + | let t = getString(this, ("user_status_" + aB)) | |
316 | 313 | if ($isInstanceOf(t, "String")) | |
317 | 314 | then { | |
318 | - | let | |
319 | - | | |
315 | + | let aM = t | |
316 | + | aM | |
320 | 317 | } | |
321 | 318 | else n | |
322 | 319 | } | |
323 | - | let | |
324 | - | if (if (isDefined( | |
325 | - | then ( | |
320 | + | let ao = lastBlock.timestamp | |
321 | + | if (if (isDefined(aL)) | |
322 | + | then (aL == n) | |
326 | 323 | else false) | |
327 | 324 | then throw("Please register this account first with \"User infos\" tab") | |
328 | - | else if (( | |
325 | + | else if ((aL == l)) | |
329 | 326 | then throw("Your account is suspended") | |
330 | - | else if (( | |
327 | + | else if ((aL == m)) | |
331 | 328 | then throw("Your account have been removed") | |
332 | - | else if (( | |
329 | + | else if ((av > 10)) | |
333 | 330 | then throw("Maximum 10 editions per artwork") | |
334 | 331 | else if ((size(A) != 64)) | |
335 | 332 | then throw("Hash should be sha256 string composed of 64 char.") | |
336 | - | else [StringEntry( | |
333 | + | else [StringEntry(af(A), aB), StringEntry(ai(A, aB), R), IntegerEntry(Q(aB, R), ao), StringEntry(S(aB, R), aj), StringEntry(T(aB, R), ak), StringEntry(U(aB, R), aw), StringEntry(W(aB, R), ay), StringEntry(V(aB, R), ax), StringEntry(ab(aB, R), az), StringEntry(ac(aB, R), aA), StringEntry(ae(aB, R), au), StringEntry(ad(aB, R), at), IntegerEntry(X(aB, R), av), StringEntry(Y(aB, R), y), IntegerEntry(Z(aB, R), 0), BooleanEntry(aa(aB, R), false), StringEntry(ag(aB, y), R), StringEntry("last_invoke_id", R), ScriptTransfer(Address(fromBase58String(c)), aD, aE)] | |
337 | 334 | } | |
338 | 335 | } | |
339 | 336 | } | |
340 | 337 | } | |
341 | 338 | } | |
342 | 339 | } | |
343 | 340 | } | |
344 | 341 | ||
345 | 342 | ||
346 | 343 | ||
347 | - | @Callable( | |
348 | - | func updateArtwork ( | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | if (( | |
344 | + | @Callable(as) | |
345 | + | func updateArtwork (aN,aj,ak,at,au,av,aw,ax,ay,az,aA) = { | |
346 | + | let aO = toBase58String(as.transactionId) | |
347 | + | let aB = toBase58String(as.caller.bytes) | |
348 | + | let aH = r(S(aB, aN)) | |
349 | + | if ((aH == "")) | |
353 | 350 | then throw("This entry doesn't exist or you are not the owner") | |
354 | - | else if ((size( | |
351 | + | else if ((size(aj) == 0)) | |
355 | 352 | then throw("Title cannot be empty") | |
356 | - | else if ((size( | |
353 | + | else if ((size(aj) > 100)) | |
357 | 354 | then throw("100 Characters maximum for the name") | |
358 | - | else if ((size( | |
355 | + | else if ((size(ak) > 1000)) | |
359 | 356 | then throw("1000 Characters maximum for the description") | |
360 | - | else if ((size( | |
357 | + | else if ((size(ak) == 0)) | |
361 | 358 | then throw("Description cannot be empty") | |
362 | 359 | else { | |
363 | - | let | |
364 | - | let t = getInteger(this, | |
360 | + | let aP = { | |
361 | + | let t = getInteger(this, Z(aB, aN)) | |
365 | 362 | if ($isInstanceOf(t, "Int")) | |
366 | 363 | then { | |
367 | 364 | let H = t | |
368 | 365 | if ((H == 0)) | |
369 | 366 | then false | |
370 | 367 | else true | |
371 | 368 | } | |
372 | 369 | else false | |
373 | 370 | } | |
374 | - | let | |
375 | - | if ((size( | |
371 | + | let aK = split(at, ",") | |
372 | + | if ((size(aK) > 5)) | |
376 | 373 | then throw("Tags should be maximum 5 single word separated by space.") | |
377 | 374 | else { | |
378 | - | let | |
379 | - | let t = getString(this, ("user_status_" + | |
375 | + | let aL = { | |
376 | + | let t = getString(this, ("user_status_" + aB)) | |
380 | 377 | if ($isInstanceOf(t, "String")) | |
381 | 378 | then { | |
382 | - | let | |
383 | - | | |
379 | + | let aM = t | |
380 | + | aM | |
384 | 381 | } | |
385 | 382 | else n | |
386 | 383 | } | |
387 | - | if (if (isDefined( | |
388 | - | then ( | |
384 | + | if (if (isDefined(aL)) | |
385 | + | then (aL == n) | |
389 | 386 | else false) | |
390 | 387 | then throw("Please register this account first with \"User infos\" tab") | |
391 | - | else if (( | |
388 | + | else if ((aL == l)) | |
392 | 389 | then throw("Your account is suspended") | |
393 | - | else if (( | |
390 | + | else if ((aL == m)) | |
394 | 391 | then throw("Your account have been removed") | |
395 | - | else if (( | |
392 | + | else if ((av > 10)) | |
396 | 393 | then throw("Maximum 10 editions per artwork") | |
397 | - | else if (!( | |
398 | - | then [StringEntry(T( | |
399 | - | else [StringEntry(T( | |
394 | + | else if (!(aP)) | |
395 | + | then [StringEntry(S(aB, aN), aj), StringEntry(T(aB, aN), ak), StringEntry(U(aB, aN), aw), StringEntry(W(aB, aN), ay), StringEntry(V(aB, aN), ax), StringEntry(ac(aB, aN), aA), StringEntry(ab(aB, aN), az), IntegerEntry(X(aB, aN), av), StringEntry(ad(aB, aN), at), StringEntry(ae(aB, aN), au), StringEntry("last_invoke_id", aO)] | |
396 | + | else [StringEntry(S(aB, aN), aj), StringEntry(T(aB, aN), ak), StringEntry(U(aB, aN), aw), StringEntry(ae(aB, aN), au), StringEntry(ad(aB, aN), at), StringEntry("last_invoke_id", aO)] | |
400 | 397 | } | |
401 | 398 | } | |
402 | 399 | } | |
403 | 400 | ||
404 | 401 | ||
405 | 402 | ||
406 | 403 | @Callable(w) | |
407 | - | func deleteArtwork ( | |
408 | - | let | |
404 | + | func deleteArtwork (R,ap) = { | |
405 | + | let aB = toString(addressFromPublicKey(w.callerPublicKey)) | |
409 | 406 | let D = toBase58String(w.transactionId) | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let t = getInteger(this, | |
407 | + | let aH = r(S(aB, R)) | |
408 | + | let aQ = r(S(ap, R)) | |
409 | + | let aP = { | |
410 | + | let t = getInteger(this, Z(aB, R)) | |
414 | 411 | if ($isInstanceOf(t, "Int")) | |
415 | 412 | then { | |
416 | 413 | let H = t | |
417 | 414 | if ((H == 0)) | |
418 | 415 | then false | |
419 | 416 | else true | |
420 | 417 | } | |
421 | 418 | else false | |
422 | 419 | } | |
423 | - | let | |
420 | + | let aR = if (if ((aB == f)) | |
424 | 421 | then true | |
425 | - | else ( | |
426 | - | then | |
427 | - | else | |
428 | - | let | |
429 | - | if (if (( | |
422 | + | else (aB == g)) | |
423 | + | then ap | |
424 | + | else aB | |
425 | + | let aS = [DeleteEntry(Q(aR, R)), DeleteEntry(S(aR, R)), DeleteEntry(T(aR, R)), DeleteEntry(U(aR, R)), DeleteEntry(W(aR, R)), DeleteEntry(V(aR, R)), DeleteEntry(ab(aR, R)), DeleteEntry(ac(aR, R)), DeleteEntry(ae(aR, R)), DeleteEntry(ad(aR, R)), DeleteEntry(X(aR, R)), DeleteEntry(Y(aR, R)), DeleteEntry(Z(aR, R)), DeleteEntry(aa(aR, R)), StringEntry("last_invoke_id", D)] | |
426 | + | if (if ((aB == f)) | |
430 | 427 | then true | |
431 | - | else ( | |
432 | - | then | |
433 | - | else if (if (( | |
428 | + | else (aB == g)) | |
429 | + | then aS | |
430 | + | else if (if ((aH == "")) | |
434 | 431 | then true | |
435 | - | else ( | |
432 | + | else (aQ == "")) | |
436 | 433 | then throw("This entry doesn't exist or you are not the owner") | |
437 | - | else if (!( | |
438 | - | then | |
434 | + | else if (!(aP)) | |
435 | + | then aS | |
439 | 436 | else throw("This artwork already have minted NFT, you cannot delete it") | |
440 | 437 | } | |
441 | 438 | ||
442 | 439 | ||
443 | 440 | ||
444 | - | @Callable( | |
445 | - | func sellArtwork ( | |
446 | - | let D = toBase58String( | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | if (!(isDefined( | |
441 | + | @Callable(as) | |
442 | + | func sellArtwork (aT,aG) = { | |
443 | + | let D = toBase58String(as.transactionId) | |
444 | + | let aB = toBase58String(as.caller.bytes) | |
445 | + | let aU = lastBlock.timestamp | |
446 | + | let aV = r(((aT + "_") + aB)) | |
447 | + | if (!(isDefined(aV))) | |
451 | 448 | then throw("This artwork doesn't exit or you are not the owner") | |
452 | 449 | else { | |
453 | - | let | |
454 | - | if (( | |
450 | + | let aL = r(("user_status_" + aB)) | |
451 | + | if ((aL == "")) | |
455 | 452 | then throw("Please register this account first") | |
456 | 453 | else { | |
457 | - | let | |
458 | - | let | |
459 | - | if (( | |
454 | + | let aW = v(((("art_issued_" + aV) + "_") + aB)) | |
455 | + | let aX = v(((("art_maxmint_" + aV) + "_") + aB)) | |
456 | + | if ((aW == aX)) | |
460 | 457 | then throw("You reached the max edition allowed to sell for this edition.") | |
461 | - | else if (( | |
458 | + | else if ((aL == l)) | |
462 | 459 | then throw("Your account is suspended") | |
463 | - | else if (!(isDefined( | |
460 | + | else if (!(isDefined(aV))) | |
464 | 461 | then throw("This artwork desn't exist") | |
465 | - | else if ((size( | |
462 | + | else if ((size(aT) != 64)) | |
466 | 463 | then throw("This hash is incorrect.") | |
467 | 464 | else { | |
468 | - | let | |
465 | + | let aY = if ((aG > 0)) | |
469 | 466 | then true | |
470 | 467 | else false | |
471 | - | [BooleanEntry(((("art_onsale_" + | |
468 | + | [BooleanEntry(((("art_onsale_" + aV) + "_") + aB), aY), IntegerEntry(((("art_price_" + aV) + "_") + aB), aG), StringEntry("last_invoke_id", D)] | |
472 | 469 | } | |
473 | 470 | } | |
474 | 471 | } | |
475 | 472 | } | |
476 | 473 | ||
477 | 474 | ||
478 | 475 | ||
479 | - | @Callable( | |
480 | - | func buyArtwork ( | |
481 | - | let D = toBase58String( | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | if (( | |
476 | + | @Callable(as) | |
477 | + | func buyArtwork (aT,aZ) = { | |
478 | + | let D = toBase58String(as.transactionId) | |
479 | + | let aB = toBase58String(as.caller.bytes) | |
480 | + | let ba = v("total_nft_issued") | |
481 | + | let aV = r(((aT + "_") + aZ)) | |
482 | + | if ((aV == "")) | |
486 | 483 | then throw("This artwork doesn't exit or you are not the owner") | |
487 | 484 | else { | |
488 | - | let | |
489 | - | if (!(isDefined( | |
485 | + | let aL = r(("user_status_" + aB)) | |
486 | + | if (!(isDefined(aL))) | |
490 | 487 | then throw("Please register this account first") | |
491 | 488 | else { | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | if (( | |
489 | + | let bb = r(((("art_sold_" + aV) + "_") + aZ)) | |
490 | + | let aW = v(((("art_issued_" + aV) + "_") + aZ)) | |
491 | + | let bc = v(((("art_price_" + aV) + "_") + aZ)) | |
492 | + | if ((bc == 0)) | |
496 | 493 | then throw("This artwork is not for sell") | |
497 | 494 | else { | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
495 | + | let aX = v(((("art_maxmint_" + aV) + "_") + aZ)) | |
496 | + | let aC = value(as.payments[0]) | |
497 | + | let aD = value(aC.amount) | |
498 | + | let aE = if (isDefined(aC.assetId)) | |
502 | 499 | then throw("Only Waves token accepted at the moment") | |
503 | 500 | else unit | |
504 | - | if (( | |
501 | + | if ((aW == aX)) | |
505 | 502 | then throw("Cannot buy this artwork anymore") | |
506 | - | else if (( | |
503 | + | else if ((bc != aD)) | |
507 | 504 | then throw("Payment don't match seller price") | |
508 | 505 | else { | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
506 | + | let bd = (aW + 1) | |
507 | + | let aU = lastBlock.timestamp | |
508 | + | let be = (((((((((((((("{\"version\": 1,\"artID\": \"" + aV) + "\",\"maxIssuable\": \"") + toString(aX)) + "\",\"signID\": \"SA_") + toString((ba + 1))) + "\", \"creator\": \"") + aZ) + "\", \"issue\": \"") + toString(bd)) + "/") + toString(aX)) + "\", \"hash\": ") + aT) + "}") | |
509 | + | let bf = Issue(("SA_" + toString((ba + 1))), be, 1, 0, false) | |
510 | + | let bg = calculateAssetId(bf) | |
511 | + | let aY = if ((bd == aX)) | |
515 | 512 | then false | |
516 | 513 | else true | |
517 | - | [IntegerEntry(((("art_issued_" + | |
514 | + | [IntegerEntry(((("art_issued_" + aV) + "_") + aZ), bd), StringEntry(((((((("art_sold_" + toString(bd)) + "_of_") + toString(aX)) + "_") + aV) + "_") + aZ), ((((((aB + "_") + toString(aU)) + "_") + D) + "_") + toString(bc))), IntegerEntry("total_nft_issued", (ba + 1)), StringEntry("last_invoke_id", D), bf, BooleanEntry(((("art_onsale_" + aV) + "_") + aB), aY), ScriptTransfer(Address(fromBase58String(aZ)), aD, aE), ScriptTransfer(as.caller, 1, bg)] | |
518 | 515 | } | |
519 | 516 | } | |
520 | 517 | } | |
521 | 518 | } | |
522 | 519 | } | |
523 | 520 | ||
524 | 521 |
github/deemru/w8io/169f3d6 231.21 ms ◑