tx · 6Rves9b77nNNdiPQadB7YZUBaVVqckYwnNSPXR6Sm3fs 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY: -0.01400000 Waves 2021.12.13 14:18 [1832412] smart account 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY > SELF 0.00000000 Waves
{ "type": 13, "id": "6Rves9b77nNNdiPQadB7YZUBaVVqckYwnNSPXR6Sm3fs", "fee": 1400000, "feeAssetId": null, "timestamp": 1639394318818, "version": 2, "chainId": 84, "sender": "3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY", "senderPublicKey": "J9DCtJJxJBWZdtDR12BA1U94Q3cZzMi4R6k5hYkAzmzC", "proofs": [ "2JCd8ezx3gWaeA39MU84kbzoD2r3LwPaYXPmEkicBbhhZ3ZrWmQKDyi9tfhtAj5JQ57t4NyoDk36QugjnGmMFkyQ" ], "script": "base64:AAIFAAAAAAAAAFQIAhIOCgwICAgICAgICAgICAgSDQoLCAgICAgICAgICAgSBgoECAgICBIECgIICBIHCgUIAQEIARIECgIICBIECgIICBIGCgQICAgIEgYKBAgICAgAAABHAAAAAAh1bml0VGVzdAcAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAIc2lnbkRhcHAJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM05DMjhoU2l2cm1zVFVYYVlEMXg2TDM2Mko0WnBVbm9UZEIAAAAAC2ZlZVJlY2VpdmVyAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAIdXNlckRhcHADBQAAAAh1bml0VGVzdAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTXQ0UkdNRXlqU1dZQW9jVFBxZDU1d2RIUVFCM1BVMlVDbQkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjh4WGFZakUyN0FhNzlkNW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XJuTW9uZXlUbwkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIFAAAACmJpZERhdGFBcnIAAAAAAAAAAAEFAAAAB2Fzc2V0SWQFAAAAA25pbAAAAADij7Kv", "height": 1832412, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CH9pLBHaZidKNNdTU4VZrcyQAUWvuVehNE6NpoNArzfn Next: GNsKB5a6Aon6bv6eCFXUTNx8sNBzXEWes2DFMkRyRRKi Diff:
Old | New | Differences | |
---|---|---|---|
132 | 132 | func ac (N,P) = ((("art_type_" + P) + "_") + N) | |
133 | 133 | ||
134 | 134 | ||
135 | - | func ad (N,P) = ((("art_ | |
135 | + | func ad (N,P) = ((("art_note_" + P) + "_") + N) | |
136 | 136 | ||
137 | 137 | ||
138 | - | func ae (N,P) = ((("art_ | |
138 | + | func ae (N,P) = ((("art_crawler_" + P) + "_") + N) | |
139 | 139 | ||
140 | 140 | ||
141 | - | func af (N,P) = ((("art_ | |
141 | + | func af (N,P) = ((("art_price_" + P) + "_") + N) | |
142 | 142 | ||
143 | 143 | ||
144 | - | func ag (N,P) = ((("art_ | |
144 | + | func ag (N,P) = ((("art_endsale_" + P) + "_") + N) | |
145 | 145 | ||
146 | 146 | ||
147 | - | func ah (N, | |
147 | + | func ah (N,P) = ((("art_assetAccepted_" + P) + "_") + N) | |
148 | 148 | ||
149 | 149 | ||
150 | - | func | |
150 | + | func ai (N,P) = ((("art_flag_" + P) + "_") + N) | |
151 | 151 | ||
152 | 152 | ||
153 | - | func | |
153 | + | func aj (N,ak) = ((("get_hashbytxidaddr_" + ak) + "_") + N) | |
154 | 154 | ||
155 | 155 | ||
156 | - | func | |
156 | + | func al (F) = ("get_owner_by_hash_" + F) | |
157 | 157 | ||
158 | 158 | ||
159 | - | func an (ao,ap,aq) = if (!(I(ao))) | |
159 | + | func am (N,an) = ((("get_artidbysignid_" + an) + "_") + N) | |
160 | + | ||
161 | + | ||
162 | + | func ao (F,N) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((F + N))))) | |
163 | + | ||
164 | + | ||
165 | + | func ap (aq,ar,as) = if (!(I(aq))) | |
160 | 166 | then throw("Wrong Display CID") | |
161 | - | else if (!(I( | |
167 | + | else if (!(I(ar))) | |
162 | 168 | then throw("Wrong Export CID") | |
163 | - | else if (if (( | |
164 | - | then !(I( | |
169 | + | else if (if ((as != "")) | |
170 | + | then !(I(as)) | |
165 | 171 | else false) | |
166 | 172 | then throw("Wrong Licence CID") | |
167 | 173 | else true | |
168 | 174 | ||
169 | 175 | ||
170 | - | func | |
176 | + | func at (au,av) = if (!(K(au))) | |
171 | 177 | then throw("Export Hash 64 char. max") | |
172 | - | else if (!(K( | |
178 | + | else if (!(K(av))) | |
173 | 179 | then throw("Licence Hash 64 char. max") | |
174 | 180 | else true | |
175 | 181 | ||
176 | 182 | ||
177 | - | func | |
183 | + | func aw (ax,ay) = if ((size(ax) == 0)) | |
178 | 184 | then throw("Field cannot be is empty") | |
179 | - | else if ((size( | |
180 | - | then throw(( | |
185 | + | else if ((size(ax) > ay)) | |
186 | + | then throw((ax + " is too long")) | |
181 | 187 | else true | |
182 | 188 | ||
183 | 189 | ||
184 | - | func | |
185 | - | let | |
186 | - | if (if (( | |
190 | + | func az (N) = { | |
191 | + | let aA = valueOrElse(getString(e, M(N)), t) | |
192 | + | if (if ((aA == t)) | |
187 | 193 | then true | |
188 | - | else ( | |
194 | + | else (aA == u)) | |
189 | 195 | then "Register this account first with \"Account\" tab" | |
190 | - | else if (( | |
196 | + | else if ((aA == r)) | |
191 | 197 | then "Account suspended" | |
192 | - | else if (( | |
198 | + | else if ((aA == s)) | |
193 | 199 | then "Account removed" | |
194 | 200 | else "" | |
195 | 201 | } | |
196 | 202 | ||
197 | 203 | ||
198 | - | func | |
199 | - | let J = if ((size( | |
204 | + | func aB (as,av) = { | |
205 | + | let J = if ((size(as) == 0)) | |
200 | 206 | then n | |
201 | - | else | |
202 | - | let L = if ((size( | |
207 | + | else as | |
208 | + | let L = if ((size(av) == 0)) | |
203 | 209 | then o | |
204 | - | else | |
210 | + | else av | |
205 | 211 | $Tuple2(J, L) | |
206 | 212 | } | |
207 | 213 | ||
208 | 214 | ||
209 | - | func | |
210 | - | let | |
211 | - | if (( | |
212 | - | then throw( | |
213 | - | else if ((size( | |
215 | + | func aC (N,aq,ar,aD,au,aE,aF,aG,aH) = { | |
216 | + | let aI = az(N) | |
217 | + | if ((aI != "")) | |
218 | + | then throw(aI) | |
219 | + | else if ((size(aq) == 0)) | |
214 | 220 | then throw("Display CID cannot be empty") | |
215 | - | else if (!( | |
221 | + | else if (!(ap(aq, ar, aD))) | |
216 | 222 | then throw("Problem with CID") | |
217 | - | else if (!( | |
223 | + | else if (!(at(au, aE))) | |
218 | 224 | then throw("Problem with Hashes") | |
219 | - | else if (!( | |
225 | + | else if (!(aw(aF, 100))) | |
220 | 226 | then throw("100 Char. max name") | |
221 | - | else if (!( | |
227 | + | else if (!(aw(aG, 1000))) | |
222 | 228 | then throw("1000 Char. max description") | |
223 | - | else if ((size(split( | |
229 | + | else if ((size(split(aH, ",")) > 5)) | |
224 | 230 | then throw("5 tags max.") | |
225 | 231 | else "" | |
226 | 232 | } | |
227 | 233 | ||
228 | 234 | ||
229 | - | func | |
235 | + | func aJ (aK) = if ((size(aK.payments) == 0)) | |
230 | 236 | then throw("No payment attached") | |
231 | 237 | else { | |
232 | - | let | |
233 | - | let | |
234 | - | $Tuple2( | |
238 | + | let aL = value(aK.payments[0]) | |
239 | + | let aM = value(aL.amount) | |
240 | + | $Tuple2(aL, aM) | |
235 | 241 | } | |
236 | 242 | ||
237 | 243 | ||
238 | - | func | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | then ( | |
244 | + | func aN (aK) = { | |
245 | + | let aO = aJ(aK) | |
246 | + | let aL = aO._1 | |
247 | + | let aM = aO._2 | |
248 | + | let aP = if (if (isDefined(aL.assetId)) | |
249 | + | then (aL.assetId == g) | |
244 | 250 | else false) | |
245 | - | then | |
251 | + | then aL.assetId | |
246 | 252 | else throw("Only SIGN token accepted as transaction fee") | |
247 | - | if (( | |
253 | + | if ((aM != B)) | |
248 | 254 | then throw(("Payment amount should be " + toString(B))) | |
249 | - | else $Tuple2( | |
255 | + | else $Tuple2(aM, aP) | |
250 | 256 | } | |
251 | 257 | ||
252 | 258 | ||
253 | - | func | |
254 | - | let G = getInteger(this, X( | |
259 | + | func aQ (aR,P) = { | |
260 | + | let G = getInteger(this, X(aR, P)) | |
255 | 261 | if ($isInstanceOf(G, "Int")) | |
256 | 262 | then { | |
257 | - | let | |
258 | - | if (( | |
263 | + | let aS = G | |
264 | + | if ((aS != 0)) | |
259 | 265 | then true | |
260 | 266 | else false | |
261 | 267 | } | |
263 | 269 | } | |
264 | 270 | ||
265 | 271 | ||
266 | - | func | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
272 | + | func aT (aK,aU,aV) = { | |
273 | + | let aW = aJ(aK) | |
274 | + | let aL = aW._1 | |
275 | + | let aM = aW._2 | |
276 | + | let aP = if (!(isDefined(aL.assetId))) | |
271 | 277 | then unit | |
272 | - | else if (if ((size( | |
273 | - | then (toBase58String(value( | |
278 | + | else if (if ((size(aU) > 0)) | |
279 | + | then (toBase58String(value(aL.assetId)) == aU) | |
274 | 280 | else false) | |
275 | - | then | |
281 | + | then aL.assetId | |
276 | 282 | else throw("Wrong asset id") | |
277 | - | if (if (( | |
278 | - | then ( | |
283 | + | if (if ((aP == unit)) | |
284 | + | then (aU != "") | |
279 | 285 | else false) | |
280 | 286 | then throw("Wrong asset id") | |
281 | - | else if (( | |
287 | + | else if ((aV != aM)) | |
282 | 288 | then throw("Payment don't match") | |
283 | - | else $Tuple2( | |
289 | + | else $Tuple2(aM, aP) | |
284 | 290 | } | |
285 | 291 | ||
286 | 292 | ||
287 | - | func | |
288 | - | then ( | |
293 | + | func aX (aP) = if (if (if (if ((aP != toBase58String(g))) | |
294 | + | then (aP != toBase58String(i)) | |
289 | 295 | else false) | |
290 | - | then ( | |
296 | + | then (aP != "WAVES") | |
291 | 297 | else false) | |
292 | - | then ( | |
298 | + | then (aP != toBase58String(h)) | |
293 | 299 | else false) | |
294 | 300 | then throw("Only SIGN, USDN or WAVES accepted") | |
295 | 301 | else true | |
296 | 302 | ||
297 | 303 | ||
298 | - | func | |
299 | - | let | |
304 | + | func aY (aP,aZ) = { | |
305 | + | let ba = if (a) | |
300 | 306 | then 10 | |
301 | 307 | else x("waves_min_sell") | |
302 | - | let | |
303 | - | let | |
308 | + | let bb = 1000000 | |
309 | + | let bc = if (a) | |
304 | 310 | then 1 | |
305 | 311 | else (B * 2) | |
306 | - | if (if (if (if (if (( | |
307 | - | then ( | |
312 | + | if (if (if (if (if ((aP == toBase58String(h))) | |
313 | + | then (bb > aZ) | |
308 | 314 | else false) | |
309 | - | then ( | |
315 | + | then (aZ != 0) | |
310 | 316 | else false) | |
311 | 317 | then true | |
312 | - | else if (if (( | |
313 | - | then ( | |
318 | + | else if (if ((aP == toBase58String(g))) | |
319 | + | then (bc > aZ) | |
314 | 320 | else false) | |
315 | - | then ( | |
321 | + | then (aZ != 0) | |
316 | 322 | else false) | |
317 | 323 | then true | |
318 | - | else if (if (if (( | |
324 | + | else if (if (if ((aP == toBase58String(i))) | |
319 | 325 | then true | |
320 | - | else ( | |
321 | - | then ( | |
326 | + | else (aP == "WAVES")) | |
327 | + | then (ba > aZ) | |
322 | 328 | else false) | |
323 | - | then ( | |
329 | + | then (aZ != 0) | |
324 | 330 | else false) | |
325 | 331 | then throw("Wrong minimum sell price") | |
326 | 332 | else true | |
327 | 333 | } | |
328 | 334 | ||
329 | 335 | ||
330 | - | func | |
336 | + | func bd (aP) = if ((aP == "WAVES")) | |
331 | 337 | then unit | |
332 | - | else fromBase58String( | |
338 | + | else fromBase58String(aP) | |
333 | 339 | ||
334 | 340 | ||
335 | - | func | |
336 | - | let | |
337 | - | if (( | |
341 | + | func be (bf) = { | |
342 | + | let bg = v((bf + "_OPEN")) | |
343 | + | if ((bg == "")) | |
338 | 344 | then throw("Bid not found") | |
339 | 345 | else { | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | if ((0 >= | |
346 | + | let bh = split(bg, "_") | |
347 | + | let bi = parseIntValue(bh[1]) | |
348 | + | let bj = bd(bh[0]) | |
349 | + | if ((0 >= bi)) | |
344 | 350 | then throw("Wrong amount") | |
345 | - | else $Tuple2( | |
351 | + | else $Tuple2(bi, bj) | |
346 | 352 | } | |
347 | 353 | } | |
348 | 354 | ||
349 | 355 | ||
350 | - | func | |
356 | + | func bk (aK) = if (!(p)) | |
351 | 357 | then throw(q) | |
352 | - | else $Tuple3(toBase58String( | |
358 | + | else $Tuple3(toBase58String(aK.transactionId), toBase58String(aK.caller.bytes), lastBlock.timestamp) | |
353 | 359 | ||
354 | 360 | ||
355 | - | func | |
356 | - | let | |
357 | - | let | |
358 | - | let N = | |
359 | - | let | |
360 | - | let | |
361 | - | then ( | |
361 | + | func bl (aK,P,bm,bn,bo) = { | |
362 | + | let bp = bk(aK) | |
363 | + | let bq = bp._1 | |
364 | + | let N = bp._2 | |
365 | + | let br = bp._3 | |
366 | + | let bs = if (if (if ((toBase58String(aK.caller.bytes) == bm)) | |
367 | + | then (bo != "") | |
362 | 368 | else false) | |
363 | - | then ( | |
369 | + | then (bn != "") | |
364 | 370 | else false) | |
365 | 371 | then true | |
366 | 372 | else false | |
367 | - | let | |
368 | - | if (if (if (( | |
369 | - | then (height >= | |
373 | + | let bt = y(ag(N, P)) | |
374 | + | if (if (if ((bt != 0)) | |
375 | + | then (height >= bt) | |
370 | 376 | else false) | |
371 | - | then !( | |
377 | + | then !(bs) | |
372 | 378 | else false) | |
373 | 379 | then throw("Sale ended.") | |
374 | 380 | else { | |
375 | - | let | |
376 | - | let | |
377 | - | let D = v(W( | |
378 | - | let | |
379 | - | if (( | |
381 | + | let bu = (toBase58String(aK.caller.bytes) == bm) | |
382 | + | let bv = y("total_nft_issued") | |
383 | + | let D = v(W(bm, P)) | |
384 | + | let bw = v(Q(bm, P)) | |
385 | + | if ((bw == "")) | |
380 | 386 | then throw("Art doesn't exist") | |
381 | 387 | else { | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
388 | + | let bx = A(Y(bm, P)) | |
389 | + | let by = y(X(bm, P)) | |
390 | + | let aV = if (bu) | |
385 | 391 | then (B * 2) | |
386 | - | else y( | |
387 | - | let | |
392 | + | else y(af(bm, P)) | |
393 | + | let aU = if (bu) | |
388 | 394 | then toBase58String(g) | |
389 | - | else v( | |
390 | - | let | |
391 | - | if (if (if (!( | |
392 | - | then !( | |
395 | + | else v(ah(bm, P)) | |
396 | + | let bz = y(V(bm, P)) | |
397 | + | if (if (if (!(bs)) | |
398 | + | then !(bu) | |
393 | 399 | else false) | |
394 | - | then if (if ((0 >= | |
400 | + | then if (if ((0 >= aV)) | |
395 | 401 | then true | |
396 | - | else !( | |
402 | + | else !(bx)) | |
397 | 403 | then true | |
398 | - | else (0 >= | |
404 | + | else (0 >= bz) | |
399 | 405 | else false) | |
400 | 406 | then throw("Art not for sale") | |
401 | - | else if (if (if (!( | |
402 | - | then | |
407 | + | else if (if (if (!(bs)) | |
408 | + | then bu | |
403 | 409 | else false) | |
404 | - | then (0 >= | |
410 | + | then (0 >= bz) | |
405 | 411 | else false) | |
406 | 412 | then throw("Max issuable not set") | |
407 | 413 | else { | |
408 | - | let | |
409 | - | if (if ( | |
410 | - | then ( | |
414 | + | let aI = az(bm) | |
415 | + | if (if (bs) | |
416 | + | then (aI != "") | |
411 | 417 | else false) | |
412 | - | then throw( | |
418 | + | then throw(aI) | |
413 | 419 | else { | |
414 | - | let | |
415 | - | let | |
416 | - | then | |
417 | - | else | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
420 | + | let bf = ((((((("bid_" + P) + "_") + bm) + "_") + bo) + "_") + bn) | |
421 | + | let bA = if (bs) | |
422 | + | then be(bf) | |
423 | + | else aT(aK, aU, aV) | |
424 | + | let aM = bA._1 | |
425 | + | let aP = bA._2 | |
426 | + | let bB = z(bm) | |
427 | + | let bC = if ((bB > height)) | |
422 | 428 | then 0 | |
423 | - | else if (( | |
429 | + | else if ((aP == g)) | |
424 | 430 | then l | |
425 | 431 | else m | |
426 | - | let | |
427 | - | let | |
428 | - | if (( | |
432 | + | let bD = fraction(aM, bC, 100) | |
433 | + | let bE = (aM - bD) | |
434 | + | if ((by == bz)) | |
429 | 435 | then throw("Art sold out") | |
430 | 436 | else { | |
431 | - | let | |
432 | - | let | |
437 | + | let bF = (by + 1) | |
438 | + | let bG = ((((((((((("Creator: " + bm) + ", | |
433 | 439 | ArtID: ") + P) + ", | |
434 | 440 | SignID: ") + D) + ", | |
435 | - | Artwork name: ") + | |
436 | - | Issue: ") + toString( | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
441 | + | Artwork name: ") + bw) + ", | |
442 | + | Issue: ") + toString(bF)) + "/") + toString(bz)) | |
443 | + | let bH = Issue(("SA_" + toString((bv + 1))), bG, 1, 0, false) | |
444 | + | let bI = calculateAssetId(bH) | |
445 | + | let bJ = if (if ((bF == bz)) | |
440 | 446 | then true | |
441 | - | else !( | |
447 | + | else !(bx)) | |
442 | 448 | then false | |
443 | 449 | else true | |
444 | - | let | |
445 | - | then ( | |
450 | + | let bK = if (if (if ((N == bm)) | |
451 | + | then (bo != "") | |
446 | 452 | else false) | |
447 | - | then ( | |
453 | + | then (bn != "") | |
448 | 454 | else false) | |
449 | - | then addressFromStringValue( | |
450 | - | else | |
451 | - | let | |
455 | + | then addressFromStringValue(bo) | |
456 | + | else aK.caller | |
457 | + | let bL = if (!(isDefined(aP))) | |
452 | 458 | then "WAVES" | |
453 | - | else toBase58String(value( | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | then ((((((((((N + "_") + toString( | |
460 | - | else ((((((((((toString( | |
461 | - | let | |
462 | - | let | |
463 | - | if ( | |
464 | - | then [ | |
465 | - | else | |
459 | + | else toBase58String(value(aP)) | |
460 | + | let bg = v((bf + "_OPEN")) | |
461 | + | let bM = DeleteEntry((bf + "_OPEN")) | |
462 | + | let bN = StringEntry((bf + "_CLOSED"), ((bg + "_") + toString(br))) | |
463 | + | let bO = ((((((("art_sold_" + toString(bF)) + "_of_") + toString(bz)) + "_") + P) + "_") + bm) | |
464 | + | let bP = if (!(bs)) | |
465 | + | then ((((((((((N + "_") + toString(br)) + "_") + bq) + "_") + toString(aV)) + "_") + aU) + "_") + toBase58String(bI)) | |
466 | + | else ((((((((((toString(bK) + "_") + toString(br)) + "_") + bq) + "_") + toString(aM)) + "_") + bL) + "_") + toBase58String(bI)) | |
467 | + | let bQ = StringEntry(bO, bP) | |
468 | + | let bR = [IntegerEntry(X(bm, P), bF), StringEntry(("nft_" + toBase58String(bI)), bO), IntegerEntry("total_nft_issued", (bv + 1)), IntegerEntry(ag(bm, P), 0), BooleanEntry(Y(bm, P), bJ), bH, ScriptTransfer(Address(fromBase58String(bm)), bE, aP), ScriptTransfer(Address(fromBase58String(d)), bD, aP), ScriptTransfer(bK, 1, bI)] | |
469 | + | if (bs) | |
470 | + | then [bQ, bN, bM] :: bR | |
471 | + | else bQ :: bR | |
466 | 472 | } | |
467 | 473 | } | |
468 | 474 | } | |
471 | 477 | } | |
472 | 478 | ||
473 | 479 | ||
474 | - | @Callable( | |
475 | - | func addArtwork (F,D, | |
476 | - | let | |
477 | - | let P = | |
478 | - | let N = | |
479 | - | let | |
480 | + | @Callable(aK) | |
481 | + | func addArtwork (F,D,aF,aG,aH,bS,aq,au,ar,av,as,bT) = { | |
482 | + | let bU = bk(aK) | |
483 | + | let P = bU._1 | |
484 | + | let N = bU._2 | |
485 | + | let br = bU._3 | |
480 | 486 | if (!(K(F))) | |
481 | 487 | then throw("Hash should be 64 characters maximum") | |
482 | 488 | else { | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | if (( | |
489 | + | let bV = aB(as, av) | |
490 | + | let aD = bV._1 | |
491 | + | let aE = bV._2 | |
492 | + | let bW = aC(N, aq, ar, aD, au, aE, aF, aG, aH) | |
493 | + | if ((bW != "")) | |
488 | 494 | then throw("Something went wrong!") | |
489 | 495 | else { | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | if (!(isDefined( | |
496 | + | let bX = aN(aK) | |
497 | + | let aM = bX._1 | |
498 | + | let aP = bX._2 | |
499 | + | if (!(isDefined(aM))) | |
494 | 500 | then throw("Something went wrong") | |
495 | 501 | else { | |
496 | - | let | |
497 | - | if (( | |
502 | + | let bY = v(ao(F, N)) | |
503 | + | if ((bY != "")) | |
498 | 504 | then throw("You already added it") | |
499 | 505 | else { | |
500 | - | let | |
501 | - | if (( | |
506 | + | let bZ = v(al(F)) | |
507 | + | if ((bZ != "")) | |
502 | 508 | then throw("Hash already registered") | |
503 | 509 | else { | |
504 | - | let | |
505 | - | if (!( | |
510 | + | let ca = C(D, N, F) | |
511 | + | if (!(ca)) | |
506 | 512 | then throw("Sign Certificate not found for this address.") | |
507 | - | else [StringEntry( | |
513 | + | else [StringEntry(al(F), N), StringEntry(ao(F, N), P), IntegerEntry(O(N, P), br), StringEntry(Q(N, P), aF), StringEntry(R(N, P), aG), StringEntry(S(N, P), aq), StringEntry(U(N, P), ar), StringEntry(T(N, P), au), StringEntry(Z(N, P), aE), StringEntry(aa(N, P), aD), StringEntry(ac(N, P), bS), StringEntry(ab(N, P), aH), IntegerEntry(V(N, P), 0), StringEntry(W(N, P), D), IntegerEntry(X(N, P), 0), BooleanEntry(Y(N, P), false), StringEntry(am(N, D), P), StringEntry(aj(N, P), F), StringEntry(ae(N, P), bT), ScriptTransfer(Address(fromBase58String(d)), aM, aP)] | |
508 | 514 | } | |
509 | 515 | } | |
510 | 516 | } | |
514 | 520 | ||
515 | 521 | ||
516 | 522 | ||
517 | - | @Callable( | |
518 | - | func updateArtwork ( | |
523 | + | @Callable(aK) | |
524 | + | func updateArtwork (ak,aF,aG,aH,bS,aq,au,ar,av,as,bT) = if (!(p)) | |
519 | 525 | then throw(q) | |
520 | 526 | else { | |
521 | - | let N = toBase58String( | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
526 | - | if (( | |
527 | + | let N = toBase58String(aK.caller.bytes) | |
528 | + | let cb = aB(as, av) | |
529 | + | let aD = cb._1 | |
530 | + | let aE = cb._2 | |
531 | + | let bW = aC(N, aq, ar, aD, au, aE, aF, aG, aH) | |
532 | + | if ((bW != "")) | |
527 | 533 | then throw("Something went wrong!") | |
528 | 534 | else { | |
529 | - | let | |
530 | - | if (( | |
535 | + | let bY = v(Q(N, ak)) | |
536 | + | if ((bY == "")) | |
531 | 537 | then throw("Entry not found") | |
532 | 538 | else { | |
533 | - | let | |
534 | - | if (( | |
539 | + | let cc = v(ai(N, ak)) | |
540 | + | if ((cc == "ILLEGAL")) | |
535 | 541 | then throw("Cannot update ILLEGAL artwork") | |
536 | - | else if (!( | |
537 | - | then [StringEntry(Q(N, | |
542 | + | else if (!(aQ(N, ak))) | |
543 | + | then [StringEntry(Q(N, ak), aF), StringEntry(R(N, ak), aG), StringEntry(S(N, ak), aq), StringEntry(U(N, ak), ar), StringEntry(T(N, ak), au), StringEntry(aa(N, ak), aD), StringEntry(Z(N, ak), aE), StringEntry(ab(N, ak), aH), StringEntry(ac(N, ak), bS), StringEntry(ae(N, ak), bT)] | |
538 | 544 | else throw("Already minted") | |
539 | 545 | } | |
540 | 546 | } | |
542 | 548 | ||
543 | 549 | ||
544 | 550 | ||
545 | - | @Callable( | |
546 | - | func flagArtwork (P, | |
547 | - | let | |
548 | - | let | |
549 | - | let N = | |
551 | + | @Callable(aK) | |
552 | + | func flagArtwork (P,cd,cc,ce) = { | |
553 | + | let cf = bk(aK) | |
554 | + | let bq = cf._1 | |
555 | + | let N = cf._2 | |
550 | 556 | if (containsElement([j, toString(this)], N)) | |
551 | - | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", " | |
552 | - | then [StringEntry( | |
553 | - | else throw(("Unknow status " + | |
557 | + | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], cc)) | |
558 | + | then [StringEntry(ai(cd, P), cc), StringEntry(ad(cd, P), ce)] | |
559 | + | else throw(("Unknow status " + cc)) | |
554 | 560 | else throw("You are not allowed") | |
555 | 561 | } | |
556 | 562 | ||
557 | 563 | ||
558 | 564 | ||
559 | - | @Callable( | |
560 | - | func deleteArtwork (P, | |
561 | - | let | |
562 | - | let | |
563 | - | let N = | |
564 | - | let | |
565 | - | then | |
565 | + | @Callable(aK) | |
566 | + | func deleteArtwork (P,cd) = { | |
567 | + | let cg = bk(aK) | |
568 | + | let bq = cg._1 | |
569 | + | let N = cg._2 | |
570 | + | let aR = if (containsElement([j, k, toString(this)], N)) | |
571 | + | then cd | |
566 | 572 | else N | |
567 | - | let | |
568 | - | if (( | |
573 | + | let bY = valueOrErrorMessage(v(Q(aR, P)), "No art matching for this address") | |
574 | + | if ((bY == "")) | |
569 | 575 | then throw("No art matching for this address") | |
570 | 576 | else { | |
571 | - | let F = v( | |
577 | + | let F = v(aj(aR, P)) | |
572 | 578 | if ((F == "")) | |
573 | 579 | then throw("No art hash matching for this address") | |
574 | 580 | else { | |
575 | - | let D = v(W( | |
581 | + | let D = v(W(aR, P)) | |
576 | 582 | if ((D == "")) | |
577 | 583 | then throw("No SIGN ID matching") | |
578 | 584 | else { | |
579 | - | let | |
580 | - | if (!( | |
585 | + | let ch = [DeleteEntry(O(aR, P)), DeleteEntry(Q(aR, P)), DeleteEntry(R(aR, P)), DeleteEntry(S(aR, P)), DeleteEntry(U(aR, P)), DeleteEntry(T(aR, P)), DeleteEntry(Z(aR, P)), DeleteEntry(aa(aR, P)), DeleteEntry(ac(aR, P)), DeleteEntry(ab(aR, P)), DeleteEntry(V(aR, P)), DeleteEntry(W(aR, P)), DeleteEntry(X(aR, P)), DeleteEntry(Y(aR, P)), DeleteEntry(ai(aR, P)), DeleteEntry(af(aR, P)), DeleteEntry(ah(aR, P)), DeleteEntry(al(F)), DeleteEntry(am(aR, D)), DeleteEntry(ao(F, aR)), DeleteEntry(ag(aR, P)), DeleteEntry(ad(aR, P)), DeleteEntry(ae(aR, P))] | |
586 | + | if (!(aQ(aR, P))) | |
581 | 587 | then if (!(p)) | |
582 | 588 | then throw(q) | |
583 | - | else | |
589 | + | else ch | |
584 | 590 | else if (containsElement([j, toString(this)], N)) | |
585 | - | then | |
591 | + | then ch | |
586 | 592 | else throw("Art already minted, you cannot delete it") | |
587 | 593 | } | |
588 | 594 | } | |
591 | 597 | ||
592 | 598 | ||
593 | 599 | ||
594 | - | @Callable( | |
595 | - | func sellArtwork (P, | |
596 | - | let | |
597 | - | let | |
598 | - | let N = | |
599 | - | let | |
600 | - | if (( | |
600 | + | @Callable(aK) | |
601 | + | func sellArtwork (P,aZ,ci,aP,bt) = { | |
602 | + | let cj = bk(aK) | |
603 | + | let bq = cj._1 | |
604 | + | let N = cj._2 | |
605 | + | let bw = v(Q(N, P)) | |
606 | + | if ((bw == "")) | |
601 | 607 | then throw("This art doesn't match your account") | |
602 | 608 | else { | |
603 | - | let | |
604 | - | if (containsElement(["CHANGE_REQUIRED", " | |
609 | + | let cc = v(ai(N, P)) | |
610 | + | if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], cc)) | |
605 | 611 | then throw("Flagged artwork") | |
606 | 612 | else { | |
607 | - | let | |
608 | - | if ((0 > | |
613 | + | let ck = y(("current_bidamount_" + P)) | |
614 | + | if ((0 > bt)) | |
609 | 615 | then throw("Negative end") | |
610 | - | else if (if (( | |
611 | - | then if (( | |
616 | + | else if (if ((bt > 0)) | |
617 | + | then if ((ci != 1)) | |
612 | 618 | then true | |
613 | - | else ( | |
619 | + | else (aZ != 0) | |
614 | 620 | else false) | |
615 | 621 | then throw("Timed offer only allowed for unique edition and offer only") | |
616 | 622 | else { | |
617 | - | let | |
623 | + | let cl = if ((bt == 0)) | |
618 | 624 | then 0 | |
619 | 625 | else height | |
620 | - | if (!( | |
626 | + | if (!(aX(aP))) | |
621 | 627 | then throw("Something went wrong!") | |
622 | - | else if (!( | |
628 | + | else if (!(aY(aP, aZ))) | |
623 | 629 | then throw("Something went wrong!") | |
624 | 630 | else { | |
625 | - | let | |
626 | - | if (( | |
627 | - | then throw( | |
631 | + | let aI = az(N) | |
632 | + | if ((aI != "")) | |
633 | + | then throw(aI) | |
628 | 634 | else { | |
629 | - | let | |
630 | - | let | |
631 | - | if (( | |
635 | + | let by = y(X(N, P)) | |
636 | + | let bz = y(V(N, P)) | |
637 | + | if ((ci > 100)) | |
632 | 638 | then throw("100 editions max per artwork") | |
633 | - | else if (if (( | |
634 | - | then ( | |
639 | + | else if (if ((by != 0)) | |
640 | + | then (by == bz) | |
635 | 641 | else false) | |
636 | 642 | then throw("Max edition reached.") | |
637 | - | else if (if (( | |
638 | - | then ( | |
643 | + | else if (if ((by > 0)) | |
644 | + | then (bz != ci) | |
639 | 645 | else false) | |
640 | 646 | then throw("Cannot change maximum issuable anymore") | |
641 | - | else if (if (( | |
642 | - | then ( | |
647 | + | else if (if ((ck > 0)) | |
648 | + | then (bz != ci) | |
643 | 649 | else false) | |
644 | 650 | then throw("Cannot change maximum issuable with active orders") | |
645 | 651 | else { | |
646 | - | let | |
647 | - | then ( | |
652 | + | let bJ = if (if ((aZ > 0)) | |
653 | + | then (ci > 0) | |
648 | 654 | else false) | |
649 | 655 | then true | |
650 | 656 | else false | |
651 | - | [BooleanEntry(Y(N, P), | |
657 | + | [BooleanEntry(Y(N, P), bJ), IntegerEntry(af(N, P), aZ), IntegerEntry(V(N, P), ci), StringEntry(ah(N, P), aP), IntegerEntry(ag(N, P), (cl + bt))] | |
652 | 658 | } | |
653 | 659 | } | |
654 | 660 | } | |
659 | 665 | ||
660 | 666 | ||
661 | 667 | ||
662 | - | @Callable( | |
663 | - | func buyArtwork (P, | |
668 | + | @Callable(aK) | |
669 | + | func buyArtwork (P,bm) = bl(aK, P, bm, "", "") | |
664 | 670 | ||
665 | 671 | ||
666 | 672 | ||
667 | - | @Callable( | |
668 | - | func setBid (P, | |
669 | - | let | |
670 | - | let | |
671 | - | let N = | |
672 | - | let | |
673 | - | let | |
674 | - | let | |
675 | - | let | |
676 | - | let | |
673 | + | @Callable(aK) | |
674 | + | func setBid (P,bm) = { | |
675 | + | let cm = bk(aK) | |
676 | + | let bq = cm._1 | |
677 | + | let N = cm._2 | |
678 | + | let br = cm._3 | |
679 | + | let cn = aJ(aK) | |
680 | + | let aL = cn._1 | |
681 | + | let aM = cn._2 | |
682 | + | let aP = if (!(isDefined(aL.assetId))) | |
677 | 683 | then "WAVES" | |
678 | - | else toBase58String(value( | |
679 | - | let | |
680 | - | if (if (( | |
681 | - | then (height >= | |
684 | + | else toBase58String(value(aL.assetId)) | |
685 | + | let bt = y(ag(bm, P)) | |
686 | + | if (if ((bt != 0)) | |
687 | + | then (height >= bt) | |
682 | 688 | else false) | |
683 | 689 | then throw("Sale ended.") | |
684 | 690 | else { | |
685 | - | let | |
686 | - | if (!( | |
691 | + | let ck = y(("current_bidamount_" + P)) | |
692 | + | if (!(aX(aP))) | |
687 | 693 | then throw("asset not accepted") | |
688 | - | else if (!( | |
694 | + | else if (!(aY(aP, aM))) | |
689 | 695 | then throw("Wrong min sell") | |
690 | 696 | else { | |
691 | - | let | |
692 | - | let | |
693 | - | if ((0 >= | |
697 | + | let by = y(X(bm, P)) | |
698 | + | let bz = y(V(bm, P)) | |
699 | + | if ((0 >= bz)) | |
694 | 700 | then throw("No max edition set for this artwork") | |
695 | - | else if (( | |
701 | + | else if ((by >= bz)) | |
696 | 702 | then throw("Sold out, you cannot bid") | |
697 | - | else [StringEntry((((((((("bid_" + P) + "_") + | |
703 | + | else [StringEntry((((((((("bid_" + P) + "_") + bm) + "_") + N) + "_") + bq) + "_OPEN"), ((((aP + "_") + toString(aM)) + "_") + toString(br))), IntegerEntry(("current_bidamount_" + P), (ck + 1))] | |
698 | 704 | } | |
699 | 705 | } | |
700 | 706 | } | |
701 | 707 | ||
702 | 708 | ||
703 | 709 | ||
704 | - | @Callable( | |
705 | - | func acceptBid (P, | |
706 | - | let N = toBase58String( | |
707 | - | if ((N != | |
710 | + | @Callable(aK) | |
711 | + | func acceptBid (P,bm,bn,bo) = { | |
712 | + | let N = toBase58String(aK.caller.bytes) | |
713 | + | if ((N != bm)) | |
708 | 714 | then throw("You cannot do this action") | |
709 | - | else | |
715 | + | else bl(aK, P, bm, bn, bo) | |
710 | 716 | } | |
711 | 717 | ||
712 | 718 | ||
713 | 719 | ||
714 | - | @Callable( | |
715 | - | func cancelBid (P, | |
716 | - | let | |
717 | - | let | |
718 | - | let N = | |
719 | - | let | |
720 | - | if (if ((N != | |
721 | - | then (N != | |
720 | + | @Callable(aK) | |
721 | + | func cancelBid (P,bm,bn,bo) = { | |
722 | + | let co = bk(aK) | |
723 | + | let bq = co._1 | |
724 | + | let N = co._2 | |
725 | + | let br = co._3 | |
726 | + | if (if ((N != bo)) | |
727 | + | then (N != bm) | |
722 | 728 | else false) | |
723 | 729 | then throw("You cannot do this action") | |
724 | 730 | else { | |
725 | - | let | |
726 | - | then | |
731 | + | let cp = if ((N == bm)) | |
732 | + | then bo | |
727 | 733 | else N | |
728 | - | let | |
729 | - | let | |
730 | - | let | |
731 | - | if (( | |
734 | + | let ck = y(("current_bidamount_" + P)) | |
735 | + | let bf = ((((((("bid_" + P) + "_") + bm) + "_") + bo) + "_") + bn) | |
736 | + | let bg = v((bf + "_OPEN")) | |
737 | + | if ((bg == "")) | |
732 | 738 | then throw("Bid not found") | |
733 | 739 | else { | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | [DeleteEntry(( | |
740 | + | let bh = split(bg, "_") | |
741 | + | let aP = bd(bh[0]) | |
742 | + | let cq = "CANCELED" | |
743 | + | [DeleteEntry((bf + "_OPEN")), StringEntry(((bf + "_") + cq), ((bg + "_") + toString(br))), IntegerEntry(("current_bidamount_" + P), (ck - 1)), ScriptTransfer(Address(fromBase58String(cp)), parseIntValue(bh[1]), aP)] | |
738 | 744 | } | |
739 | 745 | } | |
740 | 746 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = false | |
5 | 5 | ||
6 | 6 | let b = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
7 | 7 | ||
8 | 8 | let c = value(addressFromString("3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB")) | |
9 | 9 | ||
10 | 10 | let d = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
11 | 11 | ||
12 | 12 | let e = if (a) | |
13 | 13 | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
14 | 14 | else value(addressFromString("3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj")) | |
15 | 15 | ||
16 | 16 | let f = value(addressFromString("3N6BaV1dCB4zg43goNNHaCtvR13BcyJ5Gsq")) | |
17 | 17 | ||
18 | 18 | let g = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
19 | 19 | ||
20 | 20 | let h = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
21 | 21 | ||
22 | 22 | let i = base58'' | |
23 | 23 | ||
24 | 24 | let j = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp" | |
25 | 25 | ||
26 | 26 | let k = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN" | |
27 | 27 | ||
28 | 28 | let l = 7 | |
29 | 29 | ||
30 | 30 | let m = 10 | |
31 | 31 | ||
32 | 32 | let n = "bafybeifuyo4pqu54ismqgtb6e4h6kkvgx7zg4u3zibh2r7y6mb64i7bzza/licence.pdf" | |
33 | 33 | ||
34 | 34 | let o = "a87758c354e30a9e78fb84fa3a0010a5090ab20df0be11ad45b5720cc187e639" | |
35 | 35 | ||
36 | 36 | let p = valueOrElse(getBoolean(e, "conf_dapp_is_running"), true) | |
37 | 37 | ||
38 | 38 | let q = valueOrElse(getString(e, "conf_maintenance_msg"), "") | |
39 | 39 | ||
40 | 40 | let r = "SUSPENDED" | |
41 | 41 | ||
42 | 42 | let s = "REMOVED" | |
43 | 43 | ||
44 | 44 | let t = "UNREGISTERED" | |
45 | 45 | ||
46 | 46 | let u = "ALLOWED" | |
47 | 47 | ||
48 | 48 | func v (w) = valueOrElse(getString(this, w), "") | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func x (w) = valueOrErrorMessage(getInteger(b, w), "Integer undefine or 0 in oracle") | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func y (w) = valueOrElse(getInteger(this, w), 0) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func z (w) = valueOrElse(getInteger(f, w), 0) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func A (w) = valueOrElse(getBoolean(this, w), false) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | let B = x(("certification_fee_" + toBase58String(g))) | |
64 | 64 | ||
65 | 65 | func C (D,E,F) = { | |
66 | 66 | let G = getString(c, ((("data_fc_" + D) + "_") + E)) | |
67 | 67 | if ($isInstanceOf(G, "String")) | |
68 | 68 | then { | |
69 | 69 | let H = G | |
70 | 70 | if (contains(H, F)) | |
71 | 71 | then true | |
72 | 72 | else false | |
73 | 73 | } | |
74 | 74 | else false | |
75 | 75 | } | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func I (J) = if (contains(J, "/")) | |
79 | 79 | then if (if ((76 > size(J))) | |
80 | 80 | then (size(split(J, "/")[0]) == 59) | |
81 | 81 | else false) | |
82 | 82 | then (16 > size(split(J, "/")[1])) | |
83 | 83 | else false | |
84 | 84 | else false | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func K (L) = (size(L) == 64) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func M (N) = ("user_status_" + N) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func O (N,P) = ((("art_date_" + P) + "_") + N) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func Q (N,P) = ((("art_name_" + P) + "_") + N) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func R (N,P) = ((("art_desc_" + P) + "_") + N) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func S (N,P) = ((("art_display_cid_" + P) + "_") + N) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func T (N,P) = ((("art_export_hash_" + P) + "_") + N) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func U (N,P) = ((("art_export_cid_" + P) + "_") + N) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func V (N,P) = ((("art_maxmint_" + P) + "_") + N) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func W (N,P) = ((("art_signid_" + P) + "_") + N) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func X (N,P) = ((("art_issued_" + P) + "_") + N) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func Y (N,P) = ((("art_onsale_" + P) + "_") + N) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func Z (N,P) = ((("art_licence_hash_" + P) + "_") + N) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func aa (N,P) = ((("art_licence_cid_" + P) + "_") + N) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func ab (N,P) = ((("art_tags_" + P) + "_") + N) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func ac (N,P) = ((("art_type_" + P) + "_") + N) | |
133 | 133 | ||
134 | 134 | ||
135 | - | func ad (N,P) = ((("art_ | |
135 | + | func ad (N,P) = ((("art_note_" + P) + "_") + N) | |
136 | 136 | ||
137 | 137 | ||
138 | - | func ae (N,P) = ((("art_ | |
138 | + | func ae (N,P) = ((("art_crawler_" + P) + "_") + N) | |
139 | 139 | ||
140 | 140 | ||
141 | - | func af (N,P) = ((("art_ | |
141 | + | func af (N,P) = ((("art_price_" + P) + "_") + N) | |
142 | 142 | ||
143 | 143 | ||
144 | - | func ag (N,P) = ((("art_ | |
144 | + | func ag (N,P) = ((("art_endsale_" + P) + "_") + N) | |
145 | 145 | ||
146 | 146 | ||
147 | - | func ah (N, | |
147 | + | func ah (N,P) = ((("art_assetAccepted_" + P) + "_") + N) | |
148 | 148 | ||
149 | 149 | ||
150 | - | func | |
150 | + | func ai (N,P) = ((("art_flag_" + P) + "_") + N) | |
151 | 151 | ||
152 | 152 | ||
153 | - | func | |
153 | + | func aj (N,ak) = ((("get_hashbytxidaddr_" + ak) + "_") + N) | |
154 | 154 | ||
155 | 155 | ||
156 | - | func | |
156 | + | func al (F) = ("get_owner_by_hash_" + F) | |
157 | 157 | ||
158 | 158 | ||
159 | - | func an (ao,ap,aq) = if (!(I(ao))) | |
159 | + | func am (N,an) = ((("get_artidbysignid_" + an) + "_") + N) | |
160 | + | ||
161 | + | ||
162 | + | func ao (F,N) = ("get_txid_by_hash_owner_" + toBase58String(sha256_16Kb(toBytes((F + N))))) | |
163 | + | ||
164 | + | ||
165 | + | func ap (aq,ar,as) = if (!(I(aq))) | |
160 | 166 | then throw("Wrong Display CID") | |
161 | - | else if (!(I( | |
167 | + | else if (!(I(ar))) | |
162 | 168 | then throw("Wrong Export CID") | |
163 | - | else if (if (( | |
164 | - | then !(I( | |
169 | + | else if (if ((as != "")) | |
170 | + | then !(I(as)) | |
165 | 171 | else false) | |
166 | 172 | then throw("Wrong Licence CID") | |
167 | 173 | else true | |
168 | 174 | ||
169 | 175 | ||
170 | - | func | |
176 | + | func at (au,av) = if (!(K(au))) | |
171 | 177 | then throw("Export Hash 64 char. max") | |
172 | - | else if (!(K( | |
178 | + | else if (!(K(av))) | |
173 | 179 | then throw("Licence Hash 64 char. max") | |
174 | 180 | else true | |
175 | 181 | ||
176 | 182 | ||
177 | - | func | |
183 | + | func aw (ax,ay) = if ((size(ax) == 0)) | |
178 | 184 | then throw("Field cannot be is empty") | |
179 | - | else if ((size( | |
180 | - | then throw(( | |
185 | + | else if ((size(ax) > ay)) | |
186 | + | then throw((ax + " is too long")) | |
181 | 187 | else true | |
182 | 188 | ||
183 | 189 | ||
184 | - | func | |
185 | - | let | |
186 | - | if (if (( | |
190 | + | func az (N) = { | |
191 | + | let aA = valueOrElse(getString(e, M(N)), t) | |
192 | + | if (if ((aA == t)) | |
187 | 193 | then true | |
188 | - | else ( | |
194 | + | else (aA == u)) | |
189 | 195 | then "Register this account first with \"Account\" tab" | |
190 | - | else if (( | |
196 | + | else if ((aA == r)) | |
191 | 197 | then "Account suspended" | |
192 | - | else if (( | |
198 | + | else if ((aA == s)) | |
193 | 199 | then "Account removed" | |
194 | 200 | else "" | |
195 | 201 | } | |
196 | 202 | ||
197 | 203 | ||
198 | - | func | |
199 | - | let J = if ((size( | |
204 | + | func aB (as,av) = { | |
205 | + | let J = if ((size(as) == 0)) | |
200 | 206 | then n | |
201 | - | else | |
202 | - | let L = if ((size( | |
207 | + | else as | |
208 | + | let L = if ((size(av) == 0)) | |
203 | 209 | then o | |
204 | - | else | |
210 | + | else av | |
205 | 211 | $Tuple2(J, L) | |
206 | 212 | } | |
207 | 213 | ||
208 | 214 | ||
209 | - | func | |
210 | - | let | |
211 | - | if (( | |
212 | - | then throw( | |
213 | - | else if ((size( | |
215 | + | func aC (N,aq,ar,aD,au,aE,aF,aG,aH) = { | |
216 | + | let aI = az(N) | |
217 | + | if ((aI != "")) | |
218 | + | then throw(aI) | |
219 | + | else if ((size(aq) == 0)) | |
214 | 220 | then throw("Display CID cannot be empty") | |
215 | - | else if (!( | |
221 | + | else if (!(ap(aq, ar, aD))) | |
216 | 222 | then throw("Problem with CID") | |
217 | - | else if (!( | |
223 | + | else if (!(at(au, aE))) | |
218 | 224 | then throw("Problem with Hashes") | |
219 | - | else if (!( | |
225 | + | else if (!(aw(aF, 100))) | |
220 | 226 | then throw("100 Char. max name") | |
221 | - | else if (!( | |
227 | + | else if (!(aw(aG, 1000))) | |
222 | 228 | then throw("1000 Char. max description") | |
223 | - | else if ((size(split( | |
229 | + | else if ((size(split(aH, ",")) > 5)) | |
224 | 230 | then throw("5 tags max.") | |
225 | 231 | else "" | |
226 | 232 | } | |
227 | 233 | ||
228 | 234 | ||
229 | - | func | |
235 | + | func aJ (aK) = if ((size(aK.payments) == 0)) | |
230 | 236 | then throw("No payment attached") | |
231 | 237 | else { | |
232 | - | let | |
233 | - | let | |
234 | - | $Tuple2( | |
238 | + | let aL = value(aK.payments[0]) | |
239 | + | let aM = value(aL.amount) | |
240 | + | $Tuple2(aL, aM) | |
235 | 241 | } | |
236 | 242 | ||
237 | 243 | ||
238 | - | func | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | then ( | |
244 | + | func aN (aK) = { | |
245 | + | let aO = aJ(aK) | |
246 | + | let aL = aO._1 | |
247 | + | let aM = aO._2 | |
248 | + | let aP = if (if (isDefined(aL.assetId)) | |
249 | + | then (aL.assetId == g) | |
244 | 250 | else false) | |
245 | - | then | |
251 | + | then aL.assetId | |
246 | 252 | else throw("Only SIGN token accepted as transaction fee") | |
247 | - | if (( | |
253 | + | if ((aM != B)) | |
248 | 254 | then throw(("Payment amount should be " + toString(B))) | |
249 | - | else $Tuple2( | |
255 | + | else $Tuple2(aM, aP) | |
250 | 256 | } | |
251 | 257 | ||
252 | 258 | ||
253 | - | func | |
254 | - | let G = getInteger(this, X( | |
259 | + | func aQ (aR,P) = { | |
260 | + | let G = getInteger(this, X(aR, P)) | |
255 | 261 | if ($isInstanceOf(G, "Int")) | |
256 | 262 | then { | |
257 | - | let | |
258 | - | if (( | |
263 | + | let aS = G | |
264 | + | if ((aS != 0)) | |
259 | 265 | then true | |
260 | 266 | else false | |
261 | 267 | } | |
262 | 268 | else false | |
263 | 269 | } | |
264 | 270 | ||
265 | 271 | ||
266 | - | func | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
272 | + | func aT (aK,aU,aV) = { | |
273 | + | let aW = aJ(aK) | |
274 | + | let aL = aW._1 | |
275 | + | let aM = aW._2 | |
276 | + | let aP = if (!(isDefined(aL.assetId))) | |
271 | 277 | then unit | |
272 | - | else if (if ((size( | |
273 | - | then (toBase58String(value( | |
278 | + | else if (if ((size(aU) > 0)) | |
279 | + | then (toBase58String(value(aL.assetId)) == aU) | |
274 | 280 | else false) | |
275 | - | then | |
281 | + | then aL.assetId | |
276 | 282 | else throw("Wrong asset id") | |
277 | - | if (if (( | |
278 | - | then ( | |
283 | + | if (if ((aP == unit)) | |
284 | + | then (aU != "") | |
279 | 285 | else false) | |
280 | 286 | then throw("Wrong asset id") | |
281 | - | else if (( | |
287 | + | else if ((aV != aM)) | |
282 | 288 | then throw("Payment don't match") | |
283 | - | else $Tuple2( | |
289 | + | else $Tuple2(aM, aP) | |
284 | 290 | } | |
285 | 291 | ||
286 | 292 | ||
287 | - | func | |
288 | - | then ( | |
293 | + | func aX (aP) = if (if (if (if ((aP != toBase58String(g))) | |
294 | + | then (aP != toBase58String(i)) | |
289 | 295 | else false) | |
290 | - | then ( | |
296 | + | then (aP != "WAVES") | |
291 | 297 | else false) | |
292 | - | then ( | |
298 | + | then (aP != toBase58String(h)) | |
293 | 299 | else false) | |
294 | 300 | then throw("Only SIGN, USDN or WAVES accepted") | |
295 | 301 | else true | |
296 | 302 | ||
297 | 303 | ||
298 | - | func | |
299 | - | let | |
304 | + | func aY (aP,aZ) = { | |
305 | + | let ba = if (a) | |
300 | 306 | then 10 | |
301 | 307 | else x("waves_min_sell") | |
302 | - | let | |
303 | - | let | |
308 | + | let bb = 1000000 | |
309 | + | let bc = if (a) | |
304 | 310 | then 1 | |
305 | 311 | else (B * 2) | |
306 | - | if (if (if (if (if (( | |
307 | - | then ( | |
312 | + | if (if (if (if (if ((aP == toBase58String(h))) | |
313 | + | then (bb > aZ) | |
308 | 314 | else false) | |
309 | - | then ( | |
315 | + | then (aZ != 0) | |
310 | 316 | else false) | |
311 | 317 | then true | |
312 | - | else if (if (( | |
313 | - | then ( | |
318 | + | else if (if ((aP == toBase58String(g))) | |
319 | + | then (bc > aZ) | |
314 | 320 | else false) | |
315 | - | then ( | |
321 | + | then (aZ != 0) | |
316 | 322 | else false) | |
317 | 323 | then true | |
318 | - | else if (if (if (( | |
324 | + | else if (if (if ((aP == toBase58String(i))) | |
319 | 325 | then true | |
320 | - | else ( | |
321 | - | then ( | |
326 | + | else (aP == "WAVES")) | |
327 | + | then (ba > aZ) | |
322 | 328 | else false) | |
323 | - | then ( | |
329 | + | then (aZ != 0) | |
324 | 330 | else false) | |
325 | 331 | then throw("Wrong minimum sell price") | |
326 | 332 | else true | |
327 | 333 | } | |
328 | 334 | ||
329 | 335 | ||
330 | - | func | |
336 | + | func bd (aP) = if ((aP == "WAVES")) | |
331 | 337 | then unit | |
332 | - | else fromBase58String( | |
338 | + | else fromBase58String(aP) | |
333 | 339 | ||
334 | 340 | ||
335 | - | func | |
336 | - | let | |
337 | - | if (( | |
341 | + | func be (bf) = { | |
342 | + | let bg = v((bf + "_OPEN")) | |
343 | + | if ((bg == "")) | |
338 | 344 | then throw("Bid not found") | |
339 | 345 | else { | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | if ((0 >= | |
346 | + | let bh = split(bg, "_") | |
347 | + | let bi = parseIntValue(bh[1]) | |
348 | + | let bj = bd(bh[0]) | |
349 | + | if ((0 >= bi)) | |
344 | 350 | then throw("Wrong amount") | |
345 | - | else $Tuple2( | |
351 | + | else $Tuple2(bi, bj) | |
346 | 352 | } | |
347 | 353 | } | |
348 | 354 | ||
349 | 355 | ||
350 | - | func | |
356 | + | func bk (aK) = if (!(p)) | |
351 | 357 | then throw(q) | |
352 | - | else $Tuple3(toBase58String( | |
358 | + | else $Tuple3(toBase58String(aK.transactionId), toBase58String(aK.caller.bytes), lastBlock.timestamp) | |
353 | 359 | ||
354 | 360 | ||
355 | - | func | |
356 | - | let | |
357 | - | let | |
358 | - | let N = | |
359 | - | let | |
360 | - | let | |
361 | - | then ( | |
361 | + | func bl (aK,P,bm,bn,bo) = { | |
362 | + | let bp = bk(aK) | |
363 | + | let bq = bp._1 | |
364 | + | let N = bp._2 | |
365 | + | let br = bp._3 | |
366 | + | let bs = if (if (if ((toBase58String(aK.caller.bytes) == bm)) | |
367 | + | then (bo != "") | |
362 | 368 | else false) | |
363 | - | then ( | |
369 | + | then (bn != "") | |
364 | 370 | else false) | |
365 | 371 | then true | |
366 | 372 | else false | |
367 | - | let | |
368 | - | if (if (if (( | |
369 | - | then (height >= | |
373 | + | let bt = y(ag(N, P)) | |
374 | + | if (if (if ((bt != 0)) | |
375 | + | then (height >= bt) | |
370 | 376 | else false) | |
371 | - | then !( | |
377 | + | then !(bs) | |
372 | 378 | else false) | |
373 | 379 | then throw("Sale ended.") | |
374 | 380 | else { | |
375 | - | let | |
376 | - | let | |
377 | - | let D = v(W( | |
378 | - | let | |
379 | - | if (( | |
381 | + | let bu = (toBase58String(aK.caller.bytes) == bm) | |
382 | + | let bv = y("total_nft_issued") | |
383 | + | let D = v(W(bm, P)) | |
384 | + | let bw = v(Q(bm, P)) | |
385 | + | if ((bw == "")) | |
380 | 386 | then throw("Art doesn't exist") | |
381 | 387 | else { | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
388 | + | let bx = A(Y(bm, P)) | |
389 | + | let by = y(X(bm, P)) | |
390 | + | let aV = if (bu) | |
385 | 391 | then (B * 2) | |
386 | - | else y( | |
387 | - | let | |
392 | + | else y(af(bm, P)) | |
393 | + | let aU = if (bu) | |
388 | 394 | then toBase58String(g) | |
389 | - | else v( | |
390 | - | let | |
391 | - | if (if (if (!( | |
392 | - | then !( | |
395 | + | else v(ah(bm, P)) | |
396 | + | let bz = y(V(bm, P)) | |
397 | + | if (if (if (!(bs)) | |
398 | + | then !(bu) | |
393 | 399 | else false) | |
394 | - | then if (if ((0 >= | |
400 | + | then if (if ((0 >= aV)) | |
395 | 401 | then true | |
396 | - | else !( | |
402 | + | else !(bx)) | |
397 | 403 | then true | |
398 | - | else (0 >= | |
404 | + | else (0 >= bz) | |
399 | 405 | else false) | |
400 | 406 | then throw("Art not for sale") | |
401 | - | else if (if (if (!( | |
402 | - | then | |
407 | + | else if (if (if (!(bs)) | |
408 | + | then bu | |
403 | 409 | else false) | |
404 | - | then (0 >= | |
410 | + | then (0 >= bz) | |
405 | 411 | else false) | |
406 | 412 | then throw("Max issuable not set") | |
407 | 413 | else { | |
408 | - | let | |
409 | - | if (if ( | |
410 | - | then ( | |
414 | + | let aI = az(bm) | |
415 | + | if (if (bs) | |
416 | + | then (aI != "") | |
411 | 417 | else false) | |
412 | - | then throw( | |
418 | + | then throw(aI) | |
413 | 419 | else { | |
414 | - | let | |
415 | - | let | |
416 | - | then | |
417 | - | else | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
420 | + | let bf = ((((((("bid_" + P) + "_") + bm) + "_") + bo) + "_") + bn) | |
421 | + | let bA = if (bs) | |
422 | + | then be(bf) | |
423 | + | else aT(aK, aU, aV) | |
424 | + | let aM = bA._1 | |
425 | + | let aP = bA._2 | |
426 | + | let bB = z(bm) | |
427 | + | let bC = if ((bB > height)) | |
422 | 428 | then 0 | |
423 | - | else if (( | |
429 | + | else if ((aP == g)) | |
424 | 430 | then l | |
425 | 431 | else m | |
426 | - | let | |
427 | - | let | |
428 | - | if (( | |
432 | + | let bD = fraction(aM, bC, 100) | |
433 | + | let bE = (aM - bD) | |
434 | + | if ((by == bz)) | |
429 | 435 | then throw("Art sold out") | |
430 | 436 | else { | |
431 | - | let | |
432 | - | let | |
437 | + | let bF = (by + 1) | |
438 | + | let bG = ((((((((((("Creator: " + bm) + ", | |
433 | 439 | ArtID: ") + P) + ", | |
434 | 440 | SignID: ") + D) + ", | |
435 | - | Artwork name: ") + | |
436 | - | Issue: ") + toString( | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
441 | + | Artwork name: ") + bw) + ", | |
442 | + | Issue: ") + toString(bF)) + "/") + toString(bz)) | |
443 | + | let bH = Issue(("SA_" + toString((bv + 1))), bG, 1, 0, false) | |
444 | + | let bI = calculateAssetId(bH) | |
445 | + | let bJ = if (if ((bF == bz)) | |
440 | 446 | then true | |
441 | - | else !( | |
447 | + | else !(bx)) | |
442 | 448 | then false | |
443 | 449 | else true | |
444 | - | let | |
445 | - | then ( | |
450 | + | let bK = if (if (if ((N == bm)) | |
451 | + | then (bo != "") | |
446 | 452 | else false) | |
447 | - | then ( | |
453 | + | then (bn != "") | |
448 | 454 | else false) | |
449 | - | then addressFromStringValue( | |
450 | - | else | |
451 | - | let | |
455 | + | then addressFromStringValue(bo) | |
456 | + | else aK.caller | |
457 | + | let bL = if (!(isDefined(aP))) | |
452 | 458 | then "WAVES" | |
453 | - | else toBase58String(value( | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | then ((((((((((N + "_") + toString( | |
460 | - | else ((((((((((toString( | |
461 | - | let | |
462 | - | let | |
463 | - | if ( | |
464 | - | then [ | |
465 | - | else | |
459 | + | else toBase58String(value(aP)) | |
460 | + | let bg = v((bf + "_OPEN")) | |
461 | + | let bM = DeleteEntry((bf + "_OPEN")) | |
462 | + | let bN = StringEntry((bf + "_CLOSED"), ((bg + "_") + toString(br))) | |
463 | + | let bO = ((((((("art_sold_" + toString(bF)) + "_of_") + toString(bz)) + "_") + P) + "_") + bm) | |
464 | + | let bP = if (!(bs)) | |
465 | + | then ((((((((((N + "_") + toString(br)) + "_") + bq) + "_") + toString(aV)) + "_") + aU) + "_") + toBase58String(bI)) | |
466 | + | else ((((((((((toString(bK) + "_") + toString(br)) + "_") + bq) + "_") + toString(aM)) + "_") + bL) + "_") + toBase58String(bI)) | |
467 | + | let bQ = StringEntry(bO, bP) | |
468 | + | let bR = [IntegerEntry(X(bm, P), bF), StringEntry(("nft_" + toBase58String(bI)), bO), IntegerEntry("total_nft_issued", (bv + 1)), IntegerEntry(ag(bm, P), 0), BooleanEntry(Y(bm, P), bJ), bH, ScriptTransfer(Address(fromBase58String(bm)), bE, aP), ScriptTransfer(Address(fromBase58String(d)), bD, aP), ScriptTransfer(bK, 1, bI)] | |
469 | + | if (bs) | |
470 | + | then [bQ, bN, bM] :: bR | |
471 | + | else bQ :: bR | |
466 | 472 | } | |
467 | 473 | } | |
468 | 474 | } | |
469 | 475 | } | |
470 | 476 | } | |
471 | 477 | } | |
472 | 478 | ||
473 | 479 | ||
474 | - | @Callable( | |
475 | - | func addArtwork (F,D, | |
476 | - | let | |
477 | - | let P = | |
478 | - | let N = | |
479 | - | let | |
480 | + | @Callable(aK) | |
481 | + | func addArtwork (F,D,aF,aG,aH,bS,aq,au,ar,av,as,bT) = { | |
482 | + | let bU = bk(aK) | |
483 | + | let P = bU._1 | |
484 | + | let N = bU._2 | |
485 | + | let br = bU._3 | |
480 | 486 | if (!(K(F))) | |
481 | 487 | then throw("Hash should be 64 characters maximum") | |
482 | 488 | else { | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | if (( | |
489 | + | let bV = aB(as, av) | |
490 | + | let aD = bV._1 | |
491 | + | let aE = bV._2 | |
492 | + | let bW = aC(N, aq, ar, aD, au, aE, aF, aG, aH) | |
493 | + | if ((bW != "")) | |
488 | 494 | then throw("Something went wrong!") | |
489 | 495 | else { | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | if (!(isDefined( | |
496 | + | let bX = aN(aK) | |
497 | + | let aM = bX._1 | |
498 | + | let aP = bX._2 | |
499 | + | if (!(isDefined(aM))) | |
494 | 500 | then throw("Something went wrong") | |
495 | 501 | else { | |
496 | - | let | |
497 | - | if (( | |
502 | + | let bY = v(ao(F, N)) | |
503 | + | if ((bY != "")) | |
498 | 504 | then throw("You already added it") | |
499 | 505 | else { | |
500 | - | let | |
501 | - | if (( | |
506 | + | let bZ = v(al(F)) | |
507 | + | if ((bZ != "")) | |
502 | 508 | then throw("Hash already registered") | |
503 | 509 | else { | |
504 | - | let | |
505 | - | if (!( | |
510 | + | let ca = C(D, N, F) | |
511 | + | if (!(ca)) | |
506 | 512 | then throw("Sign Certificate not found for this address.") | |
507 | - | else [StringEntry( | |
513 | + | else [StringEntry(al(F), N), StringEntry(ao(F, N), P), IntegerEntry(O(N, P), br), StringEntry(Q(N, P), aF), StringEntry(R(N, P), aG), StringEntry(S(N, P), aq), StringEntry(U(N, P), ar), StringEntry(T(N, P), au), StringEntry(Z(N, P), aE), StringEntry(aa(N, P), aD), StringEntry(ac(N, P), bS), StringEntry(ab(N, P), aH), IntegerEntry(V(N, P), 0), StringEntry(W(N, P), D), IntegerEntry(X(N, P), 0), BooleanEntry(Y(N, P), false), StringEntry(am(N, D), P), StringEntry(aj(N, P), F), StringEntry(ae(N, P), bT), ScriptTransfer(Address(fromBase58String(d)), aM, aP)] | |
508 | 514 | } | |
509 | 515 | } | |
510 | 516 | } | |
511 | 517 | } | |
512 | 518 | } | |
513 | 519 | } | |
514 | 520 | ||
515 | 521 | ||
516 | 522 | ||
517 | - | @Callable( | |
518 | - | func updateArtwork ( | |
523 | + | @Callable(aK) | |
524 | + | func updateArtwork (ak,aF,aG,aH,bS,aq,au,ar,av,as,bT) = if (!(p)) | |
519 | 525 | then throw(q) | |
520 | 526 | else { | |
521 | - | let N = toBase58String( | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
526 | - | if (( | |
527 | + | let N = toBase58String(aK.caller.bytes) | |
528 | + | let cb = aB(as, av) | |
529 | + | let aD = cb._1 | |
530 | + | let aE = cb._2 | |
531 | + | let bW = aC(N, aq, ar, aD, au, aE, aF, aG, aH) | |
532 | + | if ((bW != "")) | |
527 | 533 | then throw("Something went wrong!") | |
528 | 534 | else { | |
529 | - | let | |
530 | - | if (( | |
535 | + | let bY = v(Q(N, ak)) | |
536 | + | if ((bY == "")) | |
531 | 537 | then throw("Entry not found") | |
532 | 538 | else { | |
533 | - | let | |
534 | - | if (( | |
539 | + | let cc = v(ai(N, ak)) | |
540 | + | if ((cc == "ILLEGAL")) | |
535 | 541 | then throw("Cannot update ILLEGAL artwork") | |
536 | - | else if (!( | |
537 | - | then [StringEntry(Q(N, | |
542 | + | else if (!(aQ(N, ak))) | |
543 | + | then [StringEntry(Q(N, ak), aF), StringEntry(R(N, ak), aG), StringEntry(S(N, ak), aq), StringEntry(U(N, ak), ar), StringEntry(T(N, ak), au), StringEntry(aa(N, ak), aD), StringEntry(Z(N, ak), aE), StringEntry(ab(N, ak), aH), StringEntry(ac(N, ak), bS), StringEntry(ae(N, ak), bT)] | |
538 | 544 | else throw("Already minted") | |
539 | 545 | } | |
540 | 546 | } | |
541 | 547 | } | |
542 | 548 | ||
543 | 549 | ||
544 | 550 | ||
545 | - | @Callable( | |
546 | - | func flagArtwork (P, | |
547 | - | let | |
548 | - | let | |
549 | - | let N = | |
551 | + | @Callable(aK) | |
552 | + | func flagArtwork (P,cd,cc,ce) = { | |
553 | + | let cf = bk(aK) | |
554 | + | let bq = cf._1 | |
555 | + | let N = cf._2 | |
550 | 556 | if (containsElement([j, toString(this)], N)) | |
551 | - | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", " | |
552 | - | then [StringEntry( | |
553 | - | else throw(("Unknow status " + | |
557 | + | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], cc)) | |
558 | + | then [StringEntry(ai(cd, P), cc), StringEntry(ad(cd, P), ce)] | |
559 | + | else throw(("Unknow status " + cc)) | |
554 | 560 | else throw("You are not allowed") | |
555 | 561 | } | |
556 | 562 | ||
557 | 563 | ||
558 | 564 | ||
559 | - | @Callable( | |
560 | - | func deleteArtwork (P, | |
561 | - | let | |
562 | - | let | |
563 | - | let N = | |
564 | - | let | |
565 | - | then | |
565 | + | @Callable(aK) | |
566 | + | func deleteArtwork (P,cd) = { | |
567 | + | let cg = bk(aK) | |
568 | + | let bq = cg._1 | |
569 | + | let N = cg._2 | |
570 | + | let aR = if (containsElement([j, k, toString(this)], N)) | |
571 | + | then cd | |
566 | 572 | else N | |
567 | - | let | |
568 | - | if (( | |
573 | + | let bY = valueOrErrorMessage(v(Q(aR, P)), "No art matching for this address") | |
574 | + | if ((bY == "")) | |
569 | 575 | then throw("No art matching for this address") | |
570 | 576 | else { | |
571 | - | let F = v( | |
577 | + | let F = v(aj(aR, P)) | |
572 | 578 | if ((F == "")) | |
573 | 579 | then throw("No art hash matching for this address") | |
574 | 580 | else { | |
575 | - | let D = v(W( | |
581 | + | let D = v(W(aR, P)) | |
576 | 582 | if ((D == "")) | |
577 | 583 | then throw("No SIGN ID matching") | |
578 | 584 | else { | |
579 | - | let | |
580 | - | if (!( | |
585 | + | let ch = [DeleteEntry(O(aR, P)), DeleteEntry(Q(aR, P)), DeleteEntry(R(aR, P)), DeleteEntry(S(aR, P)), DeleteEntry(U(aR, P)), DeleteEntry(T(aR, P)), DeleteEntry(Z(aR, P)), DeleteEntry(aa(aR, P)), DeleteEntry(ac(aR, P)), DeleteEntry(ab(aR, P)), DeleteEntry(V(aR, P)), DeleteEntry(W(aR, P)), DeleteEntry(X(aR, P)), DeleteEntry(Y(aR, P)), DeleteEntry(ai(aR, P)), DeleteEntry(af(aR, P)), DeleteEntry(ah(aR, P)), DeleteEntry(al(F)), DeleteEntry(am(aR, D)), DeleteEntry(ao(F, aR)), DeleteEntry(ag(aR, P)), DeleteEntry(ad(aR, P)), DeleteEntry(ae(aR, P))] | |
586 | + | if (!(aQ(aR, P))) | |
581 | 587 | then if (!(p)) | |
582 | 588 | then throw(q) | |
583 | - | else | |
589 | + | else ch | |
584 | 590 | else if (containsElement([j, toString(this)], N)) | |
585 | - | then | |
591 | + | then ch | |
586 | 592 | else throw("Art already minted, you cannot delete it") | |
587 | 593 | } | |
588 | 594 | } | |
589 | 595 | } | |
590 | 596 | } | |
591 | 597 | ||
592 | 598 | ||
593 | 599 | ||
594 | - | @Callable( | |
595 | - | func sellArtwork (P, | |
596 | - | let | |
597 | - | let | |
598 | - | let N = | |
599 | - | let | |
600 | - | if (( | |
600 | + | @Callable(aK) | |
601 | + | func sellArtwork (P,aZ,ci,aP,bt) = { | |
602 | + | let cj = bk(aK) | |
603 | + | let bq = cj._1 | |
604 | + | let N = cj._2 | |
605 | + | let bw = v(Q(N, P)) | |
606 | + | if ((bw == "")) | |
601 | 607 | then throw("This art doesn't match your account") | |
602 | 608 | else { | |
603 | - | let | |
604 | - | if (containsElement(["CHANGE_REQUIRED", " | |
609 | + | let cc = v(ai(N, P)) | |
610 | + | if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], cc)) | |
605 | 611 | then throw("Flagged artwork") | |
606 | 612 | else { | |
607 | - | let | |
608 | - | if ((0 > | |
613 | + | let ck = y(("current_bidamount_" + P)) | |
614 | + | if ((0 > bt)) | |
609 | 615 | then throw("Negative end") | |
610 | - | else if (if (( | |
611 | - | then if (( | |
616 | + | else if (if ((bt > 0)) | |
617 | + | then if ((ci != 1)) | |
612 | 618 | then true | |
613 | - | else ( | |
619 | + | else (aZ != 0) | |
614 | 620 | else false) | |
615 | 621 | then throw("Timed offer only allowed for unique edition and offer only") | |
616 | 622 | else { | |
617 | - | let | |
623 | + | let cl = if ((bt == 0)) | |
618 | 624 | then 0 | |
619 | 625 | else height | |
620 | - | if (!( | |
626 | + | if (!(aX(aP))) | |
621 | 627 | then throw("Something went wrong!") | |
622 | - | else if (!( | |
628 | + | else if (!(aY(aP, aZ))) | |
623 | 629 | then throw("Something went wrong!") | |
624 | 630 | else { | |
625 | - | let | |
626 | - | if (( | |
627 | - | then throw( | |
631 | + | let aI = az(N) | |
632 | + | if ((aI != "")) | |
633 | + | then throw(aI) | |
628 | 634 | else { | |
629 | - | let | |
630 | - | let | |
631 | - | if (( | |
635 | + | let by = y(X(N, P)) | |
636 | + | let bz = y(V(N, P)) | |
637 | + | if ((ci > 100)) | |
632 | 638 | then throw("100 editions max per artwork") | |
633 | - | else if (if (( | |
634 | - | then ( | |
639 | + | else if (if ((by != 0)) | |
640 | + | then (by == bz) | |
635 | 641 | else false) | |
636 | 642 | then throw("Max edition reached.") | |
637 | - | else if (if (( | |
638 | - | then ( | |
643 | + | else if (if ((by > 0)) | |
644 | + | then (bz != ci) | |
639 | 645 | else false) | |
640 | 646 | then throw("Cannot change maximum issuable anymore") | |
641 | - | else if (if (( | |
642 | - | then ( | |
647 | + | else if (if ((ck > 0)) | |
648 | + | then (bz != ci) | |
643 | 649 | else false) | |
644 | 650 | then throw("Cannot change maximum issuable with active orders") | |
645 | 651 | else { | |
646 | - | let | |
647 | - | then ( | |
652 | + | let bJ = if (if ((aZ > 0)) | |
653 | + | then (ci > 0) | |
648 | 654 | else false) | |
649 | 655 | then true | |
650 | 656 | else false | |
651 | - | [BooleanEntry(Y(N, P), | |
657 | + | [BooleanEntry(Y(N, P), bJ), IntegerEntry(af(N, P), aZ), IntegerEntry(V(N, P), ci), StringEntry(ah(N, P), aP), IntegerEntry(ag(N, P), (cl + bt))] | |
652 | 658 | } | |
653 | 659 | } | |
654 | 660 | } | |
655 | 661 | } | |
656 | 662 | } | |
657 | 663 | } | |
658 | 664 | } | |
659 | 665 | ||
660 | 666 | ||
661 | 667 | ||
662 | - | @Callable( | |
663 | - | func buyArtwork (P, | |
668 | + | @Callable(aK) | |
669 | + | func buyArtwork (P,bm) = bl(aK, P, bm, "", "") | |
664 | 670 | ||
665 | 671 | ||
666 | 672 | ||
667 | - | @Callable( | |
668 | - | func setBid (P, | |
669 | - | let | |
670 | - | let | |
671 | - | let N = | |
672 | - | let | |
673 | - | let | |
674 | - | let | |
675 | - | let | |
676 | - | let | |
673 | + | @Callable(aK) | |
674 | + | func setBid (P,bm) = { | |
675 | + | let cm = bk(aK) | |
676 | + | let bq = cm._1 | |
677 | + | let N = cm._2 | |
678 | + | let br = cm._3 | |
679 | + | let cn = aJ(aK) | |
680 | + | let aL = cn._1 | |
681 | + | let aM = cn._2 | |
682 | + | let aP = if (!(isDefined(aL.assetId))) | |
677 | 683 | then "WAVES" | |
678 | - | else toBase58String(value( | |
679 | - | let | |
680 | - | if (if (( | |
681 | - | then (height >= | |
684 | + | else toBase58String(value(aL.assetId)) | |
685 | + | let bt = y(ag(bm, P)) | |
686 | + | if (if ((bt != 0)) | |
687 | + | then (height >= bt) | |
682 | 688 | else false) | |
683 | 689 | then throw("Sale ended.") | |
684 | 690 | else { | |
685 | - | let | |
686 | - | if (!( | |
691 | + | let ck = y(("current_bidamount_" + P)) | |
692 | + | if (!(aX(aP))) | |
687 | 693 | then throw("asset not accepted") | |
688 | - | else if (!( | |
694 | + | else if (!(aY(aP, aM))) | |
689 | 695 | then throw("Wrong min sell") | |
690 | 696 | else { | |
691 | - | let | |
692 | - | let | |
693 | - | if ((0 >= | |
697 | + | let by = y(X(bm, P)) | |
698 | + | let bz = y(V(bm, P)) | |
699 | + | if ((0 >= bz)) | |
694 | 700 | then throw("No max edition set for this artwork") | |
695 | - | else if (( | |
701 | + | else if ((by >= bz)) | |
696 | 702 | then throw("Sold out, you cannot bid") | |
697 | - | else [StringEntry((((((((("bid_" + P) + "_") + | |
703 | + | else [StringEntry((((((((("bid_" + P) + "_") + bm) + "_") + N) + "_") + bq) + "_OPEN"), ((((aP + "_") + toString(aM)) + "_") + toString(br))), IntegerEntry(("current_bidamount_" + P), (ck + 1))] | |
698 | 704 | } | |
699 | 705 | } | |
700 | 706 | } | |
701 | 707 | ||
702 | 708 | ||
703 | 709 | ||
704 | - | @Callable( | |
705 | - | func acceptBid (P, | |
706 | - | let N = toBase58String( | |
707 | - | if ((N != | |
710 | + | @Callable(aK) | |
711 | + | func acceptBid (P,bm,bn,bo) = { | |
712 | + | let N = toBase58String(aK.caller.bytes) | |
713 | + | if ((N != bm)) | |
708 | 714 | then throw("You cannot do this action") | |
709 | - | else | |
715 | + | else bl(aK, P, bm, bn, bo) | |
710 | 716 | } | |
711 | 717 | ||
712 | 718 | ||
713 | 719 | ||
714 | - | @Callable( | |
715 | - | func cancelBid (P, | |
716 | - | let | |
717 | - | let | |
718 | - | let N = | |
719 | - | let | |
720 | - | if (if ((N != | |
721 | - | then (N != | |
720 | + | @Callable(aK) | |
721 | + | func cancelBid (P,bm,bn,bo) = { | |
722 | + | let co = bk(aK) | |
723 | + | let bq = co._1 | |
724 | + | let N = co._2 | |
725 | + | let br = co._3 | |
726 | + | if (if ((N != bo)) | |
727 | + | then (N != bm) | |
722 | 728 | else false) | |
723 | 729 | then throw("You cannot do this action") | |
724 | 730 | else { | |
725 | - | let | |
726 | - | then | |
731 | + | let cp = if ((N == bm)) | |
732 | + | then bo | |
727 | 733 | else N | |
728 | - | let | |
729 | - | let | |
730 | - | let | |
731 | - | if (( | |
734 | + | let ck = y(("current_bidamount_" + P)) | |
735 | + | let bf = ((((((("bid_" + P) + "_") + bm) + "_") + bo) + "_") + bn) | |
736 | + | let bg = v((bf + "_OPEN")) | |
737 | + | if ((bg == "")) | |
732 | 738 | then throw("Bid not found") | |
733 | 739 | else { | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | [DeleteEntry(( | |
740 | + | let bh = split(bg, "_") | |
741 | + | let aP = bd(bh[0]) | |
742 | + | let cq = "CANCELED" | |
743 | + | [DeleteEntry((bf + "_OPEN")), StringEntry(((bf + "_") + cq), ((bg + "_") + toString(br))), IntegerEntry(("current_bidamount_" + P), (ck - 1)), ScriptTransfer(Address(fromBase58String(cp)), parseIntValue(bh[1]), aP)] | |
738 | 744 | } | |
739 | 745 | } | |
740 | 746 | } | |
741 | 747 | ||
742 | 748 |
github/deemru/w8io/026f985 268.99 ms ◑