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