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