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