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