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