tx · 9aDpQzaGt6r77N2pfZB94oWno4ttNGaqJUV2yGv1zx46 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY: -0.02600000 Waves 2023.10.11 06:34 [2793429] smart account 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY > SELF 0.00000000 Waves
{ "type": 13, "id": "9aDpQzaGt6r77N2pfZB94oWno4ttNGaqJUV2yGv1zx46", "fee": 2600000, "feeAssetId": null, "timestamp": 1696995251362, "version": 2, "chainId": 84, "sender": "3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY", "senderPublicKey": "J9DCtJJxJBWZdtDR12BA1U94Q3cZzMi4R6k5hYkAzmzC", "proofs": [ "2oKuUksiepfurGaUc9Nba4Nb7PU4QBfws6uQzLAzSJ5bUwHNgKXi3LswQ7QKSASCLNLmeURDsBXA8d42ZTZf73L" ], "script": "base64:BgJeCAISBAoCCAgSDgoMCAgICAgICAgICAEIEg8KDQgICAgICAgICAgIAQgSBgoECAgICBIECgIICBIICgYIAQEIAQgSBAoCCAgSBAoCCAgSBwoFCAgICAgSBgoECAgICFsAB1ZFUlNJT04CBTIuMC4wAQ5nZXRTdHJpbmdCeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCdCAIFBHRoaXMFA2tleQIAAAh1bml0VGVzdAcACW9yYWNsZUZlZQkBBXZhbHVlAQkApggBCQEOZ2V0U3RyaW5nQnlLZXkBAg9jb25mX29yYWNsZV9mZWUACHNpZ25EYXBwCQEFdmFsdWUBCQCmCAEJAQ5nZXRTdHJpbmdCeUtleQECEWNvbmZfc2lnbndlYl9kYXBwAAtmZWVSZWNlaXZlcgkBDmdldFN0cmluZ0J5S2V5AQIRY29uZl9mZWVfcmVjZWl2ZXIACHVzZXJEYXBwAwUIdW5pdFRlc3QJAQV2YWx1ZQEJAKYIAQIjM010NFJHTUV5alNXWUFvY1RQcWQ1NXdkSFFRQjNQVTJVQ20JAQV2YWx1ZQEJAKYIAQkBDmdldFN0cmluZ0J5S2V5AQIPY29uZ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JncwAECQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5CQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5RXB/dg==", "height": 2793429, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3t6X93kTV3unW1Ffy3ji5ACySWT3aGvLizpmbRsTtg7F Next: 758yPX1H9pHFqs9E5y7z28sqDGYgEpvUY2R1oHXpEVdo Diff:
Old | New | Differences | |
---|---|---|---|
523 | 523 | let cq = if ((be != s)) | |
524 | 524 | then invoke(Address(fromBase58String(j)), "swap", [l, 1], [AttachedPayment(if (isDefined(be)) | |
525 | 525 | then be | |
526 | - | else | |
526 | + | else value(be), co)]) | |
527 | 527 | else unit | |
528 | 528 | if ((cq == cq)) | |
529 | 529 | then if ((be == unit)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "2.0.0" | |
5 | 5 | ||
6 | 6 | func b (c) = valueOrElse(getString(this, c), "") | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | let d = false | |
10 | 10 | ||
11 | 11 | let e = value(addressFromString(b("conf_oracle_fee"))) | |
12 | 12 | ||
13 | 13 | let f = value(addressFromString(b("conf_signweb_dapp"))) | |
14 | 14 | ||
15 | 15 | let g = b("conf_fee_receiver") | |
16 | 16 | ||
17 | 17 | let h = if (d) | |
18 | 18 | then value(addressFromString("3Mt4RGMEyjSWYAocTPqd55wdHQQB3PU2UCm")) | |
19 | 19 | else value(addressFromString(b("conf_users_dapp"))) | |
20 | 20 | ||
21 | 21 | let i = value(addressFromString(b("conf_whitelist_dapp"))) | |
22 | 22 | ||
23 | 23 | let j = b("conf_puzzle_art_pool") | |
24 | 24 | ||
25 | 25 | let k = b("conf_accepted_asset_USDT_PP") | |
26 | 26 | ||
27 | 27 | let l = b("conf_accepted_asset_ART") | |
28 | 28 | ||
29 | 29 | let m = b("conf_accepted_asset_USDC_PP") | |
30 | 30 | ||
31 | 31 | let n = b("conf_accepted_asset_EAST") | |
32 | 32 | ||
33 | 33 | let o = b("conf_accepted_asset_PUZZLE") | |
34 | 34 | ||
35 | 35 | let p = b("conf_accepted_asset_ETH_PP") | |
36 | 36 | ||
37 | 37 | let q = "WAVES" | |
38 | 38 | ||
39 | 39 | let r = fromBase58String(k) | |
40 | 40 | ||
41 | 41 | let s = fromBase58String(l) | |
42 | 42 | ||
43 | 43 | let t = fromBase58String(m) | |
44 | 44 | ||
45 | 45 | let u = fromBase58String(n) | |
46 | 46 | ||
47 | 47 | let v = fromBase58String(o) | |
48 | 48 | ||
49 | 49 | let w = fromBase58String(p) | |
50 | 50 | ||
51 | 51 | let x = base58'' | |
52 | 52 | ||
53 | 53 | let y = [k, l, m, n, o, q, p] | |
54 | 54 | ||
55 | 55 | let z = b("conf_admin_1") | |
56 | 56 | ||
57 | 57 | func A (c) = valueOrErrorMessage(getInteger(e, c), "Integer undefine or 0 in oracle") | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func B (c) = valueOrElse(getInteger(this, c), 0) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func C (c) = valueOrElse(getInteger(i, c), 0) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func D (c) = valueOrElse(getBoolean(this, c), false) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | let E = 8 | |
70 | 70 | ||
71 | 71 | let F = b("conf_default_licence") | |
72 | 72 | ||
73 | 73 | let G = b("conf_default_licence_hash") | |
74 | 74 | ||
75 | 75 | let H = valueOrElse(getBoolean(h, "conf_dapp_is_running"), true) | |
76 | 76 | ||
77 | 77 | let I = valueOrElse(getString(h, "conf_maintenance_msg"), "") | |
78 | 78 | ||
79 | 79 | let J = "SUSPENDED" | |
80 | 80 | ||
81 | 81 | let K = "REMOVED" | |
82 | 82 | ||
83 | 83 | let L = "UNREGISTERED" | |
84 | 84 | ||
85 | 85 | let M = "ALLOWED" | |
86 | 86 | ||
87 | 87 | let N = A(("certification_fee_" + toBase58String(s))) | |
88 | 88 | ||
89 | 89 | let O = A(("mint_fee_" + toBase58String(s))) | |
90 | 90 | ||
91 | 91 | func P (c) = valueOrElse(getInteger(this, c), 1000) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func Q (R) = if (contains(R, "/")) | |
95 | 95 | then if (if ((76 > size(R))) | |
96 | 96 | then (size(split(R, "/")[0]) == 59) | |
97 | 97 | else false) | |
98 | 98 | then (16 > size(split(R, "/")[1])) | |
99 | 99 | else false | |
100 | 100 | else false | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func S (T) = (size(T) == 64) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func U (V) = ("user_status_" + V) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func W (V,X) = ((("art_date_" + X) + "_") + V) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func Y (V,X) = ((("art_name_" + X) + "_") + V) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func Z (V,X) = ((("art_desc_" + X) + "_") + V) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func aa (V,X) = ((("art_display_cid_" + X) + "_") + V) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func ab (V,X) = ((("art_export_hash_" + X) + "_") + V) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func ac (V,X) = ((("art_export_cid_" + X) + "_") + V) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func ad (V,X) = ((("art_maxmint_" + X) + "_") + V) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func ae (V,X) = ((("art_signid_" + X) + "_") + V) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func af (V,X) = ((("art_issued_" + X) + "_") + V) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func ag (V,X) = ((("art_onsale_" + X) + "_") + V) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func ah (V,X) = ((("art_licence_hash_" + X) + "_") + V) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func ai (V,X) = ((("art_licence_cid_" + X) + "_") + V) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func aj (V,X) = ((("art_tags_" + X) + "_") + V) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func ak (V,X) = ((("art_type_" + X) + "_") + V) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func al (V,X) = ((("art_note_" + X) + "_") + V) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func am (V,X) = ((("art_crawler_cid_" + X) + "_") + V) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func an (V,X) = ((("art_royalties_" + X) + "_") + V) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func ao (V,X) = ((("art_price_" + X) + "_") + V) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func ap (V,X) = ((("art_endsale_" + X) + "_") + V) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func aq (V,X) = ((("art_assetAccepted_" + X) + "_") + V) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func ar (V,X) = ((("art_flag_" + X) + "_") + V) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func as (at) = ("artist_agent_" + at) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func au (at) = ("artist_agent_primary_" + at) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func av (at) = ("artist_public_agent_" + at) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func aw (at) = ("artist_public_agent_primary_" + at) | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func ax (V,ay) = ((("get_hashbytxidaddr_" + ay) + "_") + V) | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func az (aA) = ("get_owner_by_hash_" + aA) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func aB (V,aC) = ((("get_artidbysignid_" + aC) + "_") + V) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func aD (aE,aF,aG) = if (!(Q(aE))) | |
194 | 194 | then throw("Wrong Display CID") | |
195 | 195 | else if (!(Q(aF))) | |
196 | 196 | then throw("Wrong Export CID") | |
197 | 197 | else if (if ((aG != "")) | |
198 | 198 | then !(Q(aG)) | |
199 | 199 | else false) | |
200 | 200 | then throw("Wrong Licence CID") | |
201 | 201 | else true | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func aH (aI,aJ) = if (!(S(aI))) | |
205 | 205 | then throw("Export Hash 64 char. max") | |
206 | 206 | else if (!(S(aJ))) | |
207 | 207 | then throw("Licence Hash 64 char. max") | |
208 | 208 | else true | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func aK (aL,aM) = if ((size(aL) == 0)) | |
212 | 212 | then throw("Field cannot be is empty") | |
213 | 213 | else if ((size(aL) > aM)) | |
214 | 214 | then throw((aL + " is too long")) | |
215 | 215 | else true | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func aN (V) = { | |
219 | 219 | let aO = valueOrElse(getString(h, U(V)), L) | |
220 | 220 | if (if ((aO == L)) | |
221 | 221 | then true | |
222 | 222 | else (aO == M)) | |
223 | 223 | then "Register this account first with \"Account\" tab" | |
224 | 224 | else if ((aO == J)) | |
225 | 225 | then "Account suspended" | |
226 | 226 | else if ((aO == K)) | |
227 | 227 | then "Account removed" | |
228 | 228 | else "" | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | func aP (aG,aJ) = { | |
233 | 233 | let R = if ((size(aG) == 0)) | |
234 | 234 | then F | |
235 | 235 | else aG | |
236 | 236 | let T = if ((size(aJ) == 0)) | |
237 | 237 | then G | |
238 | 238 | else aJ | |
239 | 239 | $Tuple2(R, T) | |
240 | 240 | } | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | func aQ (V,aE,aF,aR,aI,aS,aT,aU,aV,aW) = { | |
244 | 244 | let aX = aN(V) | |
245 | 245 | if ((aX != "")) | |
246 | 246 | then throw(aX) | |
247 | 247 | else if ((size(aE) == 0)) | |
248 | 248 | then throw("Display CID cannot be empty") | |
249 | 249 | else if (!(aD(aE, aF, aR))) | |
250 | 250 | then throw("Problem with CID") | |
251 | 251 | else if (!(aH(aI, aS))) | |
252 | 252 | then throw("Problem with Hashes") | |
253 | 253 | else if (!(aK(aT, 100))) | |
254 | 254 | then throw("100 Char. max name") | |
255 | 255 | else if (!(aK(aU, 1000))) | |
256 | 256 | then throw("1000 Char. max description") | |
257 | 257 | else if (if ((0 > aW)) | |
258 | 258 | then true | |
259 | 259 | else (aW > 1000)) | |
260 | 260 | then throw("Royalties cannot be less than 0% or higher than 10%") | |
261 | 261 | else if ((size(split(aV, ",")) > 5)) | |
262 | 262 | then throw("5 tags max.") | |
263 | 263 | else "" | |
264 | 264 | } | |
265 | 265 | ||
266 | 266 | ||
267 | 267 | func aY (aZ) = if ((size(aZ.payments) == 0)) | |
268 | 268 | then throw("No payment attached") | |
269 | 269 | else { | |
270 | 270 | let ba = value(aZ.payments[0]) | |
271 | 271 | let bb = value(ba.amount) | |
272 | 272 | $Tuple2(ba, bb) | |
273 | 273 | } | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | func bc (aZ) = { | |
277 | 277 | let bd = aY(aZ) | |
278 | 278 | let ba = bd._1 | |
279 | 279 | let bb = bd._2 | |
280 | 280 | let be = if (if (isDefined(ba.assetId)) | |
281 | 281 | then (ba.assetId == s) | |
282 | 282 | else false) | |
283 | 283 | then ba.assetId | |
284 | 284 | else throw("Only SIGN token accepted as transaction fee") | |
285 | 285 | if ((bb != N)) | |
286 | 286 | then throw(("Payment amount should be " + toString(N))) | |
287 | 287 | else $Tuple2(bb, be) | |
288 | 288 | } | |
289 | 289 | ||
290 | 290 | ||
291 | 291 | func bf (bg,X) = { | |
292 | 292 | let bh = getInteger(this, af(bg, X)) | |
293 | 293 | if ($isInstanceOf(bh, "Int")) | |
294 | 294 | then { | |
295 | 295 | let bi = bh | |
296 | 296 | if ((bi != 0)) | |
297 | 297 | then true | |
298 | 298 | else false | |
299 | 299 | } | |
300 | 300 | else false | |
301 | 301 | } | |
302 | 302 | ||
303 | 303 | ||
304 | 304 | func bj (aZ,bk,bl) = { | |
305 | 305 | let bm = aY(aZ) | |
306 | 306 | let ba = bm._1 | |
307 | 307 | let bb = bm._2 | |
308 | 308 | let be = if (!(isDefined(ba.assetId))) | |
309 | 309 | then unit | |
310 | 310 | else if (if ((size(bk) > 0)) | |
311 | 311 | then (toBase58String(value(ba.assetId)) == bk) | |
312 | 312 | else false) | |
313 | 313 | then ba.assetId | |
314 | 314 | else throw("Wrong asset id") | |
315 | 315 | if (if ((be == unit)) | |
316 | 316 | then (bk != "") | |
317 | 317 | else false) | |
318 | 318 | then throw("Wrong asset id") | |
319 | 319 | else if ((bl != bb)) | |
320 | 320 | then throw("Payment don't match") | |
321 | 321 | else $Tuple2(bb, be) | |
322 | 322 | } | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | func bn (be) = if (!(containsElement(y, be))) | |
326 | 326 | then throw("Only $ART, USDT-PP, USDC-PP, EAST, PUZZLE, ETH or WAVES accepted") | |
327 | 327 | else true | |
328 | 328 | ||
329 | 329 | ||
330 | 330 | func bo (bp) = if ((0 >= bp)) | |
331 | 331 | then throw("Wrong minimum sell price") | |
332 | 332 | else true | |
333 | 333 | ||
334 | 334 | ||
335 | 335 | func bq (be) = if ((be == "WAVES")) | |
336 | 336 | then unit | |
337 | 337 | else fromBase58String(be) | |
338 | 338 | ||
339 | 339 | ||
340 | 340 | func br (bs) = { | |
341 | 341 | let bt = b((bs + "_OPEN")) | |
342 | 342 | if ((bt == "")) | |
343 | 343 | then throw("Bid not found") | |
344 | 344 | else { | |
345 | 345 | let bu = split(bt, "_") | |
346 | 346 | let bv = parseIntValue(bu[1]) | |
347 | 347 | let bw = bq(bu[0]) | |
348 | 348 | if ((0 >= bv)) | |
349 | 349 | then throw("Wrong amount") | |
350 | 350 | else $Tuple2(bv, bw) | |
351 | 351 | } | |
352 | 352 | } | |
353 | 353 | ||
354 | 354 | ||
355 | 355 | func bx (aZ,by) = if (!(H)) | |
356 | 356 | then throw(I) | |
357 | 357 | else { | |
358 | 358 | let bz = if ((by != "")) | |
359 | 359 | then valueOrElse(C((toString(addressFromPublicKey(fromBase58String(by))) + "_free_txs")), 0) | |
360 | 360 | else 0 | |
361 | 361 | let V = if (if ((toBase58String(aZ.caller.bytes) == toString(this))) | |
362 | 362 | then (bz > 0) | |
363 | 363 | else false) | |
364 | 364 | then toString(addressFromPublicKey(fromBase58String(by))) | |
365 | 365 | else toBase58String(aZ.caller.bytes) | |
366 | 366 | let bA = if (if ((by != "")) | |
367 | 367 | then (bz > 0) | |
368 | 368 | else false) | |
369 | 369 | then invoke(i, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(by)))], nil) | |
370 | 370 | else unit | |
371 | 371 | if ((bA == bA)) | |
372 | 372 | then $Tuple4(toBase58String(aZ.transactionId), V, lastBlock.timestamp, (bz > 0)) | |
373 | 373 | else throw("Strict value is not equal to itself.") | |
374 | 374 | } | |
375 | 375 | ||
376 | 376 | ||
377 | 377 | func bB (aZ) = if (!(H)) | |
378 | 378 | then throw(I) | |
379 | 379 | else $Tuple3(toBase58String(aZ.transactionId), toBase58String(aZ.caller.bytes), lastBlock.timestamp) | |
380 | 380 | ||
381 | 381 | ||
382 | 382 | func bC (be) = { | |
383 | 383 | let bh = be | |
384 | 384 | if ($isInstanceOf(bh, "ByteVector")) | |
385 | 385 | then { | |
386 | 386 | let bi = bh | |
387 | 387 | assetBalance(this, bi) | |
388 | 388 | } | |
389 | 389 | else wavesBalance(this).available | |
390 | 390 | } | |
391 | 391 | ||
392 | 392 | ||
393 | 393 | func bD (aZ,X,bE,bF,bG,by) = { | |
394 | 394 | let bH = bx(aZ, by) | |
395 | 395 | let bI = bH._1 | |
396 | 396 | let V = bH._2 | |
397 | 397 | let bJ = bH._3 | |
398 | 398 | let bz = bH._4 | |
399 | 399 | let bK = if (if (if ((V == bE)) | |
400 | 400 | then (bG != "") | |
401 | 401 | else false) | |
402 | 402 | then (bF != "") | |
403 | 403 | else false) | |
404 | 404 | then true | |
405 | 405 | else false | |
406 | 406 | if (if (bK) | |
407 | 407 | then (V != bE) | |
408 | 408 | else false) | |
409 | 409 | then throw("You cannot do this action") | |
410 | 410 | else { | |
411 | 411 | let bL = B(ap(V, X)) | |
412 | 412 | if (if (if ((bL != 0)) | |
413 | 413 | then (height >= bL) | |
414 | 414 | else false) | |
415 | 415 | then !(bK) | |
416 | 416 | else false) | |
417 | 417 | then throw("Sale ended.") | |
418 | 418 | else { | |
419 | 419 | let bM = (V == bE) | |
420 | 420 | let bN = B("total_nft_issued") | |
421 | 421 | let bO = b(Y(bE, X)) | |
422 | 422 | if ((bO == "")) | |
423 | 423 | then throw("Art doesn't exist") | |
424 | 424 | else { | |
425 | 425 | let bP = D(ag(bE, X)) | |
426 | 426 | let bQ = B(af(bE, X)) | |
427 | 427 | let bl = if (bM) | |
428 | 428 | then O | |
429 | 429 | else B(ao(bE, X)) | |
430 | 430 | let bk = if (bM) | |
431 | 431 | then toBase58String(s) | |
432 | 432 | else b(aq(bE, X)) | |
433 | 433 | let bR = B(ad(bE, X)) | |
434 | 434 | if (if (if (!(bK)) | |
435 | 435 | then !(bM) | |
436 | 436 | else false) | |
437 | 437 | then if (if ((0 >= bl)) | |
438 | 438 | then true | |
439 | 439 | else !(bP)) | |
440 | 440 | then true | |
441 | 441 | else (0 >= bR) | |
442 | 442 | else false) | |
443 | 443 | then throw("Art not for sale") | |
444 | 444 | else if (if (if (!(bK)) | |
445 | 445 | then bM | |
446 | 446 | else false) | |
447 | 447 | then (0 >= bR) | |
448 | 448 | else false) | |
449 | 449 | then throw("Max issuable not set") | |
450 | 450 | else { | |
451 | 451 | let aX = aN(bE) | |
452 | 452 | if (if (bK) | |
453 | 453 | then (aX != "") | |
454 | 454 | else false) | |
455 | 455 | then throw(aX) | |
456 | 456 | else { | |
457 | 457 | let bs = ((((((("bid_" + X) + "_") + bE) + "_") + bG) + "_") + bF) | |
458 | 458 | let bS = if (bK) | |
459 | 459 | then br(bs) | |
460 | 460 | else bj(aZ, bk, bl) | |
461 | 461 | let bb = bS._1 | |
462 | 462 | let be = bS._2 | |
463 | 463 | let bT = valueOrElse(getString(h, as(bE)), g) | |
464 | 464 | let bU = valueOrElse(getInteger(h, au(bE)), 0) | |
465 | 465 | let bV = valueOrElse(getString(h, av(bE)), g) | |
466 | 466 | let bW = valueOrElse(getInteger(h, aw(bE)), 0) | |
467 | 467 | let bX = C(bE) | |
468 | 468 | let bY = fraction(bb, E, 100) | |
469 | 469 | let bZ = if (if (if ((bT != g)) | |
470 | 470 | then (bU > 0) | |
471 | 471 | else false) | |
472 | 472 | then (height > bX) | |
473 | 473 | else false) | |
474 | 474 | then fraction(bb, bU, 10000) | |
475 | 475 | else 0 | |
476 | 476 | let ca = if (if (if ((bV != g)) | |
477 | 477 | then (bW > 0) | |
478 | 478 | else false) | |
479 | 479 | then (height > bX) | |
480 | 480 | else false) | |
481 | 481 | then fraction(bb, bW, 10000) | |
482 | 482 | else 0 | |
483 | 483 | let cb = (bb - bY) | |
484 | 484 | if ((bQ == bR)) | |
485 | 485 | then throw("Art sold out") | |
486 | 486 | else { | |
487 | 487 | let cc = (bQ + 1) | |
488 | 488 | let cd = ((((((((("Creator: " + bE) + ", | |
489 | 489 | ArtID: ") + X) + ", | |
490 | 490 | Artwork name: ") + bO) + ", | |
491 | 491 | Issue: ") + toString(cc)) + "/") + toString(bR)) | |
492 | 492 | let ce = Issue(("SA_" + toString((bN + 1))), cd, 1, 0, false) | |
493 | 493 | let cf = calculateAssetId(ce) | |
494 | 494 | let cg = if (if ((cc == bR)) | |
495 | 495 | then true | |
496 | 496 | else !(bP)) | |
497 | 497 | then false | |
498 | 498 | else true | |
499 | 499 | let ch = if (if (if ((V == bE)) | |
500 | 500 | then (bG != "") | |
501 | 501 | else false) | |
502 | 502 | then (bF != "") | |
503 | 503 | else false) | |
504 | 504 | then addressFromStringValue(bG) | |
505 | 505 | else aZ.caller | |
506 | 506 | let ci = if (!(isDefined(be))) | |
507 | 507 | then "WAVES" | |
508 | 508 | else toBase58String(value(be)) | |
509 | 509 | let bt = b((bs + "_OPEN")) | |
510 | 510 | let cj = DeleteEntry((bs + "_OPEN")) | |
511 | 511 | let ck = StringEntry((bs + "_CLOSED"), ((bt + "_") + toString(bJ))) | |
512 | 512 | let cl = ((((((("art_sold_" + toString(cc)) + "_of_") + toString(bR)) + "_") + X) + "_") + bE) | |
513 | 513 | let cm = if (!(bK)) | |
514 | 514 | then ((((((((((V + "_") + toString(bJ)) + "_") + bI) + "_") + toString(bl)) + "_") + bk) + "_") + toBase58String(cf)) | |
515 | 515 | else ((((((((((toString(ch) + "_") + toString(bJ)) + "_") + bI) + "_") + toString(bb)) + "_") + ci) + "_") + toBase58String(cf)) | |
516 | 516 | let cn = StringEntry(cl, cm) | |
517 | 517 | let co = if ((bZ != 0)) | |
518 | 518 | then (bY - bZ) | |
519 | 519 | else bY | |
520 | 520 | let cp = bC(s) | |
521 | 521 | if ((cp == cp)) | |
522 | 522 | then { | |
523 | 523 | let cq = if ((be != s)) | |
524 | 524 | then invoke(Address(fromBase58String(j)), "swap", [l, 1], [AttachedPayment(if (isDefined(be)) | |
525 | 525 | then be | |
526 | - | else | |
526 | + | else value(be), co)]) | |
527 | 527 | else unit | |
528 | 528 | if ((cq == cq)) | |
529 | 529 | then if ((be == unit)) | |
530 | 530 | then throw(toString(isDefined(be))) | |
531 | 531 | else { | |
532 | 532 | let cr = bC(s) | |
533 | 533 | if ((cr == cr)) | |
534 | 534 | then { | |
535 | 535 | let cs = if ((bZ != 0)) | |
536 | 536 | then [ScriptTransfer(Address(fromBase58String(g)), if ((be == s)) | |
537 | 537 | then (bY - bZ) | |
538 | 538 | else (cr - cp), s), ScriptTransfer(Address(fromBase58String(bT)), bZ, be)] | |
539 | 539 | else [ScriptTransfer(Address(fromBase58String(g)), if ((be == s)) | |
540 | 540 | then bY | |
541 | 541 | else (cr - cp), s)] | |
542 | 542 | let ct = if ((ca != 0)) | |
543 | 543 | then [ScriptTransfer(Address(fromBase58String(bV)), ca, be), ScriptTransfer(Address(fromBase58String(bE)), (cb - ca), be)] | |
544 | 544 | else [ScriptTransfer(Address(fromBase58String(bE)), cb, be)] | |
545 | 545 | let cu = if (bz) | |
546 | 546 | then [ScriptTransfer(Address(fromBase58String(V)), 0, unit)] | |
547 | 547 | else nil | |
548 | 548 | let cv = ((([IntegerEntry(af(bE, X), cc), StringEntry(("nft_" + toBase58String(cf)), cl), IntegerEntry("total_nft_issued", (bN + 1)), IntegerEntry(ap(bE, X), 0), BooleanEntry(ag(bE, X), cg), ce, ScriptTransfer(ch, 1, cf)] ++ cs) ++ ct) ++ cu) | |
549 | 549 | if (bK) | |
550 | 550 | then [cn, ck, cj] :: cv | |
551 | 551 | else cn :: cv | |
552 | 552 | } | |
553 | 553 | else throw("Strict value is not equal to itself.") | |
554 | 554 | } | |
555 | 555 | else throw("Strict value is not equal to itself.") | |
556 | 556 | } | |
557 | 557 | else throw("Strict value is not equal to itself.") | |
558 | 558 | } | |
559 | 559 | } | |
560 | 560 | } | |
561 | 561 | } | |
562 | 562 | } | |
563 | 563 | } | |
564 | 564 | } | |
565 | 565 | ||
566 | 566 | ||
567 | 567 | func cw (cx) = { | |
568 | 568 | let bh = cx | |
569 | 569 | if ($isInstanceOf(bh, "String")) | |
570 | 570 | then { | |
571 | 571 | let cy = bh | |
572 | 572 | cy | |
573 | 573 | } | |
574 | 574 | else throw("Sponsored Public Key String expected") | |
575 | 575 | } | |
576 | 576 | ||
577 | 577 | ||
578 | 578 | @Callable(cz) | |
579 | 579 | func setConf (c,cA) = { | |
580 | 580 | let V = toString(cz.caller) | |
581 | 581 | if (containsElement([z, toString(this)], V)) | |
582 | 582 | then if (contains(c, "conf_")) | |
583 | 583 | then [StringEntry(c, cA)] | |
584 | 584 | else throw("Entries starting with conf_ only") | |
585 | 585 | else throw("You are not allowed to change this") | |
586 | 586 | } | |
587 | 587 | ||
588 | 588 | ||
589 | 589 | ||
590 | 590 | @Callable(aZ) | |
591 | 591 | func addArtwork (aT,aU,aV,cB,aE,aI,aF,aJ,aG,cC,aW,by) = { | |
592 | 592 | let cD = bx(aZ, by) | |
593 | 593 | let X = cD._1 | |
594 | 594 | let V = cD._2 | |
595 | 595 | let bJ = cD._3 | |
596 | 596 | let bz = cD._4 | |
597 | 597 | let cE = aP(aG, aJ) | |
598 | 598 | let aR = cE._1 | |
599 | 599 | let aS = cE._2 | |
600 | 600 | let cF = aQ(V, aE, aF, aR, aI, aS, aT, aU, aV, aW) | |
601 | 601 | if ((cF != "")) | |
602 | 602 | then throw("Something went wrong!") | |
603 | 603 | else { | |
604 | 604 | let cG = (C((V + "_free_drops")) > 0) | |
605 | 605 | let cH = if (cG) | |
606 | 606 | then $Tuple2(0, s) | |
607 | 607 | else bc(aZ) | |
608 | 608 | let bb = cH._1 | |
609 | 609 | let be = cH._2 | |
610 | 610 | if (!(isDefined(bb))) | |
611 | 611 | then throw("Something went wrong") | |
612 | 612 | else { | |
613 | 613 | let cI = if (cG) | |
614 | 614 | then invoke(i, "useFreeDrop", [V], nil) | |
615 | 615 | else unit | |
616 | 616 | if ((cI == cI)) | |
617 | 617 | then { | |
618 | 618 | let cu = if (bz) | |
619 | 619 | then [ScriptTransfer(Address(fromBase58String(V)), 0, unit)] | |
620 | 620 | else nil | |
621 | 621 | ([IntegerEntry(W(V, X), bJ), StringEntry(Y(V, X), aT), StringEntry(Z(V, X), aU), StringEntry(aa(V, X), aE), StringEntry(ac(V, X), aF), StringEntry(ab(V, X), aI), StringEntry(ah(V, X), aS), StringEntry(ai(V, X), aR), StringEntry(ak(V, X), cB), StringEntry(aj(V, X), aV), IntegerEntry(ad(V, X), 0), IntegerEntry(af(V, X), 0), BooleanEntry(ag(V, X), false), StringEntry(am(V, X), cC), IntegerEntry(an(V, X), aW), ScriptTransfer(Address(fromBase58String(g)), bb, s)] ++ cu) | |
622 | 622 | } | |
623 | 623 | else throw("Strict value is not equal to itself.") | |
624 | 624 | } | |
625 | 625 | } | |
626 | 626 | } | |
627 | 627 | ||
628 | 628 | ||
629 | 629 | ||
630 | 630 | @Callable(aZ) | |
631 | 631 | func updateArtwork (ay,aT,aU,aV,cB,aE,aI,aF,aJ,aG,cC,aW,by) = if (!(H)) | |
632 | 632 | then throw(I) | |
633 | 633 | else { | |
634 | 634 | let cJ = bx(aZ, by) | |
635 | 635 | let bI = cJ._1 | |
636 | 636 | let V = cJ._2 | |
637 | 637 | let bJ = cJ._3 | |
638 | 638 | let bz = cJ._4 | |
639 | 639 | let cK = aP(aG, aJ) | |
640 | 640 | let aR = cK._1 | |
641 | 641 | let aS = cK._2 | |
642 | 642 | let cF = aQ(V, aE, aF, aR, aI, aS, aT, aU, aV, aW) | |
643 | 643 | if ((cF != "")) | |
644 | 644 | then throw("Something went wrong!") | |
645 | 645 | else { | |
646 | 646 | let cL = b(Y(V, ay)) | |
647 | 647 | if ((cL == "")) | |
648 | 648 | then throw("Entry not found") | |
649 | 649 | else { | |
650 | 650 | let cM = b(ar(V, ay)) | |
651 | 651 | if ((cM == "ILLEGAL")) | |
652 | 652 | then throw("Cannot update ILLEGAL artwork") | |
653 | 653 | else if (!(bf(V, ay))) | |
654 | 654 | then { | |
655 | 655 | let cu = if (bz) | |
656 | 656 | then [ScriptTransfer(Address(fromBase58String(V)), 0, unit)] | |
657 | 657 | else nil | |
658 | 658 | ([StringEntry(Y(V, ay), aT), StringEntry(Z(V, ay), aU), StringEntry(aa(V, ay), aE), StringEntry(ac(V, ay), aF), StringEntry(ab(V, ay), aI), StringEntry(ai(V, ay), aR), StringEntry(ah(V, ay), aS), StringEntry(aj(V, ay), aV), StringEntry(ak(V, ay), cB), StringEntry(am(V, ay), cC), IntegerEntry(an(V, ay), aW)] ++ cu) | |
659 | 659 | } | |
660 | 660 | else throw("Already minted") | |
661 | 661 | } | |
662 | 662 | } | |
663 | 663 | } | |
664 | 664 | ||
665 | 665 | ||
666 | 666 | ||
667 | 667 | @Callable(aZ) | |
668 | 668 | func flagArtwork (X,cN,cM,cO) = { | |
669 | 669 | let cP = bB(aZ) | |
670 | 670 | let bI = cP._1 | |
671 | 671 | let V = cP._2 | |
672 | 672 | if (containsElement([z, toString(this)], V)) | |
673 | 673 | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], cM)) | |
674 | 674 | then [StringEntry(ar(cN, X), cM), StringEntry(al(cN, X), cO)] | |
675 | 675 | else throw(("Unknow status " + cM)) | |
676 | 676 | else throw("You are not allowed") | |
677 | 677 | } | |
678 | 678 | ||
679 | 679 | ||
680 | 680 | ||
681 | 681 | @Callable(aZ) | |
682 | 682 | func deleteArtwork (X,cN) = { | |
683 | 683 | let cQ = bB(aZ) | |
684 | 684 | let bI = cQ._1 | |
685 | 685 | let V = cQ._2 | |
686 | 686 | let bg = if (containsElement([z, toString(this)], V)) | |
687 | 687 | then cN | |
688 | 688 | else V | |
689 | 689 | let cL = valueOrErrorMessage(b(Y(bg, X)), "No art matching for this address") | |
690 | 690 | if ((cL == "")) | |
691 | 691 | then throw("No art matching for this address") | |
692 | 692 | else { | |
693 | 693 | let aA = b(ax(bg, X)) | |
694 | 694 | let cR = if ((aA != "")) | |
695 | 695 | then b(ae(bg, X)) | |
696 | 696 | else "" | |
697 | 697 | let cS = if ((cR == "")) | |
698 | 698 | then nil | |
699 | 699 | else [DeleteEntry(aB(bg, cR))] | |
700 | 700 | let cT = ([DeleteEntry(W(bg, X)), DeleteEntry(Y(bg, X)), DeleteEntry(Z(bg, X)), DeleteEntry(aa(bg, X)), DeleteEntry(ac(bg, X)), DeleteEntry(ab(bg, X)), DeleteEntry(ah(bg, X)), DeleteEntry(ai(bg, X)), DeleteEntry(ak(bg, X)), DeleteEntry(aj(bg, X)), DeleteEntry(ad(bg, X)), DeleteEntry(ae(bg, X)), DeleteEntry(af(bg, X)), DeleteEntry(ag(bg, X)), DeleteEntry(ar(bg, X)), DeleteEntry(ao(bg, X)), DeleteEntry(aq(bg, X)), DeleteEntry(az(aA)), DeleteEntry(ap(bg, X)), DeleteEntry(al(bg, X)), DeleteEntry(am(bg, X)), DeleteEntry(an(bg, X))] ++ cS) | |
701 | 701 | if (!(bf(bg, X))) | |
702 | 702 | then if (!(H)) | |
703 | 703 | then throw(I) | |
704 | 704 | else cT | |
705 | 705 | else if (containsElement([z, toString(this)], V)) | |
706 | 706 | then cT | |
707 | 707 | else throw("Art already minted, you cannot delete it") | |
708 | 708 | } | |
709 | 709 | } | |
710 | 710 | ||
711 | 711 | ||
712 | 712 | ||
713 | 713 | @Callable(aZ) | |
714 | 714 | func sellArtwork (X,bp,cU,be,bL,by) = { | |
715 | 715 | let cV = bx(aZ, by) | |
716 | 716 | let bI = cV._1 | |
717 | 717 | let V = cV._2 | |
718 | 718 | let bJ = cV._3 | |
719 | 719 | let bz = cV._4 | |
720 | 720 | let bO = b(Y(V, X)) | |
721 | 721 | if ((bO == "")) | |
722 | 722 | then throw("This art doesn't match your account") | |
723 | 723 | else { | |
724 | 724 | let cM = b(ar(V, X)) | |
725 | 725 | if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], cM)) | |
726 | 726 | then throw("Flagged artwork") | |
727 | 727 | else { | |
728 | 728 | let cW = B(("current_bidamount_" + X)) | |
729 | 729 | if ((0 > bL)) | |
730 | 730 | then throw("Negative end") | |
731 | 731 | else if (if ((bL > 0)) | |
732 | 732 | then if ((cU != 1)) | |
733 | 733 | then true | |
734 | 734 | else (bp != 0) | |
735 | 735 | else false) | |
736 | 736 | then throw("Timed offer only allowed for unique edition and offer only") | |
737 | 737 | else { | |
738 | 738 | let cX = if ((bL == 0)) | |
739 | 739 | then 0 | |
740 | 740 | else height | |
741 | 741 | if (!(bn(be))) | |
742 | 742 | then throw("Something went wrong!") | |
743 | 743 | else if (!(bo(bp))) | |
744 | 744 | then throw("Something went wrong!") | |
745 | 745 | else { | |
746 | 746 | let aX = aN(V) | |
747 | 747 | if ((aX != "")) | |
748 | 748 | then throw(aX) | |
749 | 749 | else { | |
750 | 750 | let bQ = B(af(V, X)) | |
751 | 751 | let bR = B(ad(V, X)) | |
752 | 752 | if ((cU > 100)) | |
753 | 753 | then throw("100 editions max per artwork") | |
754 | 754 | else if (if ((bQ != 0)) | |
755 | 755 | then (bQ == bR) | |
756 | 756 | else false) | |
757 | 757 | then throw("Max edition reached.") | |
758 | 758 | else if (if ((bQ > 0)) | |
759 | 759 | then (bR != cU) | |
760 | 760 | else false) | |
761 | 761 | then throw("Cannot change maximum issuable anymore") | |
762 | 762 | else if (if ((cW > 0)) | |
763 | 763 | then (bR != cU) | |
764 | 764 | else false) | |
765 | 765 | then throw("Cannot change maximum issuable with active orders") | |
766 | 766 | else { | |
767 | 767 | let cg = if (if ((bp > 0)) | |
768 | 768 | then (cU > 0) | |
769 | 769 | else false) | |
770 | 770 | then true | |
771 | 771 | else false | |
772 | 772 | let cu = if (bz) | |
773 | 773 | then [ScriptTransfer(Address(fromBase58String(V)), 0, unit)] | |
774 | 774 | else nil | |
775 | 775 | ([BooleanEntry(ag(V, X), cg), IntegerEntry(ao(V, X), bp), IntegerEntry(ad(V, X), cU), StringEntry(aq(V, X), be), IntegerEntry(ap(V, X), (cX + bL))] ++ cu) | |
776 | 776 | } | |
777 | 777 | } | |
778 | 778 | } | |
779 | 779 | } | |
780 | 780 | } | |
781 | 781 | } | |
782 | 782 | } | |
783 | 783 | ||
784 | 784 | ||
785 | 785 | ||
786 | 786 | @Callable(aZ) | |
787 | 787 | func buyArtwork (X,bE) = bD(aZ, X, bE, "", "", "") | |
788 | 788 | ||
789 | 789 | ||
790 | 790 | ||
791 | 791 | @Callable(aZ) | |
792 | 792 | func setBid (X,bE) = { | |
793 | 793 | let cY = bB(aZ) | |
794 | 794 | let bI = cY._1 | |
795 | 795 | let V = cY._2 | |
796 | 796 | let bJ = cY._3 | |
797 | 797 | let cZ = aY(aZ) | |
798 | 798 | let ba = cZ._1 | |
799 | 799 | let bb = cZ._2 | |
800 | 800 | let be = if (!(isDefined(ba.assetId))) | |
801 | 801 | then "WAVES" | |
802 | 802 | else toBase58String(value(ba.assetId)) | |
803 | 803 | let bL = B(ap(bE, X)) | |
804 | 804 | if (if ((bL != 0)) | |
805 | 805 | then (height >= bL) | |
806 | 806 | else false) | |
807 | 807 | then throw("Sale ended.") | |
808 | 808 | else { | |
809 | 809 | let cW = B(("current_bidamount_" + X)) | |
810 | 810 | if (!(bn(be))) | |
811 | 811 | then throw("asset not accepted") | |
812 | 812 | else if (!(bo(bb))) | |
813 | 813 | then throw("Wrong min sell") | |
814 | 814 | else { | |
815 | 815 | let bQ = B(af(bE, X)) | |
816 | 816 | let bR = B(ad(bE, X)) | |
817 | 817 | if ((0 >= bR)) | |
818 | 818 | then throw("No max edition set for this artwork") | |
819 | 819 | else if ((bQ >= bR)) | |
820 | 820 | then throw("Sold out, you cannot bid") | |
821 | 821 | else [StringEntry((((((((("bid_" + X) + "_") + bE) + "_") + V) + "_") + bI) + "_OPEN"), ((((be + "_") + toString(bb)) + "_") + toString(bJ))), IntegerEntry(("current_bidamount_" + X), (cW + 1))] | |
822 | 822 | } | |
823 | 823 | } | |
824 | 824 | } | |
825 | 825 | ||
826 | 826 | ||
827 | 827 | ||
828 | 828 | @Callable(aZ) | |
829 | 829 | func acceptBid (X,bE,bF,bG,by) = bD(aZ, X, bE, bF, bG, by) | |
830 | 830 | ||
831 | 831 | ||
832 | 832 | ||
833 | 833 | @Callable(aZ) | |
834 | 834 | func cancelBid (X,bE,bF,bG) = { | |
835 | 835 | let da = bB(aZ) | |
836 | 836 | let bI = da._1 | |
837 | 837 | let V = da._2 | |
838 | 838 | let bJ = da._3 | |
839 | 839 | if (if ((V != bG)) | |
840 | 840 | then (V != bE) | |
841 | 841 | else false) | |
842 | 842 | then throw("You cannot do this action") | |
843 | 843 | else { | |
844 | 844 | let db = if ((V == bE)) | |
845 | 845 | then bG | |
846 | 846 | else V | |
847 | 847 | let cW = B(("current_bidamount_" + X)) | |
848 | 848 | let bs = ((((((("bid_" + X) + "_") + bE) + "_") + bG) + "_") + bF) | |
849 | 849 | let bt = b((bs + "_OPEN")) | |
850 | 850 | if ((bt == "")) | |
851 | 851 | then throw("Bid not found") | |
852 | 852 | else { | |
853 | 853 | let bu = split(bt, "_") | |
854 | 854 | let be = bq(bu[0]) | |
855 | 855 | let dc = "CANCELED" | |
856 | 856 | [DeleteEntry((bs + "_OPEN")), StringEntry(((bs + "_") + dc), ((bt + "_") + toString(bJ))), IntegerEntry(("current_bidamount_" + X), (cW - 1)), ScriptTransfer(Address(fromBase58String(db)), parseIntValue(bu[1]), be)] | |
857 | 857 | } | |
858 | 858 | } | |
859 | 859 | } | |
860 | 860 | ||
861 | 861 | ||
862 | 862 | @Verifier(dd) | |
863 | 863 | func de () = { | |
864 | 864 | let bh = dd | |
865 | 865 | if ($isInstanceOf(bh, "InvokeScriptTransaction")) | |
866 | 866 | then { | |
867 | 867 | let df = bh | |
868 | 868 | if (if (if (if ((df.function == "addArtwork")) | |
869 | 869 | then (df.dApp == this) | |
870 | 870 | else false) | |
871 | 871 | then (df.fee == 500000) | |
872 | 872 | else false) | |
873 | 873 | then (df.feeAssetId == unit) | |
874 | 874 | else false) | |
875 | 875 | then sigVerify(dd.bodyBytes, dd.proofs[0], fromBase58String(cw(df.args[11]))) | |
876 | 876 | else if (if (if (if ((df.function == "updateArtwork")) | |
877 | 877 | then (df.dApp == this) | |
878 | 878 | else false) | |
879 | 879 | then (df.fee == 500000) | |
880 | 880 | else false) | |
881 | 881 | then (df.feeAssetId == unit) | |
882 | 882 | else false) | |
883 | 883 | then sigVerify(dd.bodyBytes, dd.proofs[0], fromBase58String(cw(df.args[12]))) | |
884 | 884 | else if (if (if (if ((df.function == "sellArtwork")) | |
885 | 885 | then (df.dApp == this) | |
886 | 886 | else false) | |
887 | 887 | then (df.fee == 500000) | |
888 | 888 | else false) | |
889 | 889 | then (df.feeAssetId == unit) | |
890 | 890 | else false) | |
891 | 891 | then sigVerify(dd.bodyBytes, dd.proofs[0], fromBase58String(cw(df.args[5]))) | |
892 | 892 | else if (if (if (if ((df.function == "acceptBid")) | |
893 | 893 | then (df.dApp == this) | |
894 | 894 | else false) | |
895 | 895 | then (df.fee == 500000) | |
896 | 896 | else false) | |
897 | 897 | then (df.feeAssetId == unit) | |
898 | 898 | else false) | |
899 | 899 | then sigVerify_128Kb(dd.bodyBytes, dd.proofs[0], fromBase58String(cw(df.args[4]))) | |
900 | 900 | else sigVerify(dd.bodyBytes, dd.proofs[0], dd.senderPublicKey) | |
901 | 901 | } | |
902 | 902 | else sigVerify(dd.bodyBytes, dd.proofs[0], dd.senderPublicKey) | |
903 | 903 | } | |
904 | 904 |
github/deemru/w8io/026f985 121.54 ms ◑