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