tx · BS3jKPAb3ZVHZRnbRMmz3fWvscMPGRvyyeXecwe5qvgz 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY: -0.01900000 Waves 2023.03.24 06:41 [2503560] smart account 3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY > SELF 0.00000000 Waves
{ "type": 13, "id": "BS3jKPAb3ZVHZRnbRMmz3fWvscMPGRvyyeXecwe5qvgz", "fee": 1900000, "feeAssetId": null, "timestamp": 1679629358484, "version": 2, "chainId": 84, "sender": "3NBynfbXC2KastUxhukcMUaE58K9cBdB9UY", "senderPublicKey": "J9DCtJJxJBWZdtDR12BA1U94Q3cZzMi4R6k5hYkAzmzC", "proofs": [ "3nh8goURNmJ4iNCKPsi498Vx5SMXmovykzUREbsrTzzxQkQ3bmX6Fux1NNXdUuVpDYN3FLUg7ANqGyx1zwboQGrR" ], "script": "base64:BgL+FAgCEgQKAggIEhAKDggICAgICAgICAgICAEIEg8KDQgICAgICAgICAgIAQgSBgoECAgICBIECgIICBIICgYIAQEIAQgSBAoCCAgSBAoCCAgSBwoFCAgICAgSBgoECAgICCIOZ2V0U3RyaW5nQnlLZXkiA2tleSIIdW5pdFRlc3QiCW9yYWNsZUZlZSIIc2lnbkRhcHAiC2ZlZVJlY2VpdmVyIgh1c2VyRGFwcCINd2hpdGVsaXN0RGFwcCILc2lnbkFzc2V0SWQiC3VzZG5Bc3NldElkIgt1c2R0QXNzZXRJZCIMd2F2ZXNBc3NldElkIgVjaHJpcyIZZ2V0SW50ZWdlckJ5S2V5RnJvbU9yYWNsZSIPZ2V0SW50ZWdlckJ5S2V5Ig5jaGVja1doaXRlbGlzdCIPZ2V0Qm9vbGVhbkJ5S2V5IgdzaWduQ3V0Igt1c2RuV2F2ZUN1dCIOZGVmYXVsdExpY2VuY2UiEmRlZmF1bHRIYXNoTGljZW5jZSILZGFwcFJ1bm5pbmciDm1haW50ZW5hbmNlTVNHIg11c2VyU3VzcGVuZGVkIgt1c2VyUmVtb3ZlZCIQdXNl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AQkBAmNtAQkAkQMCCAUCY1gEYXJncwAFAwMDAwkAAAIIBQJjWAhmdW5jdGlvbgIJYWNjZXB0QmlkCQAAAggFAmNYBGRBcHAFBHRoaXMHCQAAAggFAmNYA2ZlZQCgwh4HCQAAAggFAmNYCmZlZUFzc2V0SWQFBHVuaXQHCQDIEwMIBQJjVglib2R5Qnl0ZXMJAJEDAggFAmNWBnByb29mcwAACQDZBAEJAQJjbQEJAJEDAggFAmNYBGFyZ3MABAkA9AMDCAUCY1YJYm9keUJ5dGVzCQCRAwIIBQJjVgZwcm9vZnMAAAgFAmNWD3NlbmRlclB1YmxpY0tleQkA9AMDCAUCY1YJYm9keUJ5dGVzCQCRAwIIBQJjVgZwcm9vZnMAAAgFAmNWD3NlbmRlclB1YmxpY0tleTCgrt0=", "height": 2503560, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7KaffLqKAu5Yt1UNJKRcDApiKdYtWDyEwaaXg3CAScZH Next: 424W6tJ4RUixfDnJMdGeYvdyQem9Zq6h6huB4AJxztLK Diff:
Old | New | Differences | |
---|---|---|---|
386 | 386 | let bt = if ((bs != "")) | |
387 | 387 | then valueOrElse(p((toString(addressFromPublicKey(fromBase58String(bs))) + "_free_txs")), 0) | |
388 | 388 | else 0 | |
389 | - | let N = if (if ((toBase58String(aR.caller.bytes) == toString(this))) | |
390 | - | then (bt > 0) | |
391 | - | else false) | |
392 | - | then toString(addressFromPublicKey(fromBase58String(bs))) | |
393 | - | else toBase58String(aR.caller.bytes) | |
394 | - | if ((N == N)) | |
395 | - | then { | |
389 | + | if (true) | |
390 | + | then throw(((toString((toBase58String(aR.caller.bytes) == toString(this))) + " / ") + toString((bt > 0)))) | |
391 | + | else { | |
392 | + | let N = if (if ((toBase58String(aR.caller.bytes) == toString(this))) | |
393 | + | then (bt > 0) | |
394 | + | else false) | |
395 | + | then toString(addressFromPublicKey(fromBase58String(bs))) | |
396 | + | else toBase58String(aR.caller.bytes) | |
396 | 397 | let bu = if (if ((bs != "")) | |
397 | 398 | then (bt > 0) | |
398 | 399 | else false) | |
402 | 403 | then $Tuple4(toBase58String(aR.transactionId), N, lastBlock.timestamp, (bt > 0)) | |
403 | 404 | else throw("Strict value is not equal to itself.") | |
404 | 405 | } | |
405 | - | else throw("Strict value is not equal to itself.") | |
406 | 406 | } | |
407 | 407 | ||
408 | 408 |
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 | - | let N = if (if ((toBase58String(aR.caller.bytes) == toString(this))) | |
390 | - | then (bt > 0) | |
391 | - | else false) | |
392 | - | then toString(addressFromPublicKey(fromBase58String(bs))) | |
393 | - | else toBase58String(aR.caller.bytes) | |
394 | - | if ((N == N)) | |
395 | - | then { | |
389 | + | if (true) | |
390 | + | then throw(((toString((toBase58String(aR.caller.bytes) == toString(this))) + " / ") + toString((bt > 0)))) | |
391 | + | else { | |
392 | + | let N = if (if ((toBase58String(aR.caller.bytes) == toString(this))) | |
393 | + | then (bt > 0) | |
394 | + | else false) | |
395 | + | then toString(addressFromPublicKey(fromBase58String(bs))) | |
396 | + | else toBase58String(aR.caller.bytes) | |
396 | 397 | let bu = if (if ((bs != "")) | |
397 | 398 | then (bt > 0) | |
398 | 399 | else false) | |
399 | 400 | then invoke(h, "useFreeTx", [toString(addressFromPublicKey(fromBase58String(bs)))], nil) | |
400 | 401 | else unit | |
401 | 402 | if ((bu == bu)) | |
402 | 403 | then $Tuple4(toBase58String(aR.transactionId), N, lastBlock.timestamp, (bt > 0)) | |
403 | 404 | else throw("Strict value is not equal to itself.") | |
404 | 405 | } | |
405 | - | else throw("Strict value is not equal to itself.") | |
406 | 406 | } | |
407 | 407 | ||
408 | 408 | ||
409 | 409 | func bv (aR) = if (!(v)) | |
410 | 410 | then throw(w) | |
411 | 411 | else $Tuple3(toBase58String(aR.transactionId), toBase58String(aR.caller.bytes), lastBlock.timestamp) | |
412 | 412 | ||
413 | 413 | ||
414 | 414 | func bw (aR,P,bx,by,bz,bs) = { | |
415 | 415 | let bA = br(aR, bs) | |
416 | 416 | let bB = bA._1 | |
417 | 417 | let N = bA._2 | |
418 | 418 | let bC = bA._3 | |
419 | 419 | let bt = bA._4 | |
420 | 420 | if (true) | |
421 | 421 | then throw(((((((N + " / ") + bx) + " / ") + bz) + " / ") + bs)) | |
422 | 422 | else { | |
423 | 423 | let bD = if (if (if ((N == bx)) | |
424 | 424 | then (bz != "") | |
425 | 425 | else false) | |
426 | 426 | then (by != "") | |
427 | 427 | else false) | |
428 | 428 | then true | |
429 | 429 | else false | |
430 | 430 | let bE = o(ah(N, P)) | |
431 | 431 | if (if (if ((bE != 0)) | |
432 | 432 | then (height >= bE) | |
433 | 433 | else false) | |
434 | 434 | then !(bD) | |
435 | 435 | else false) | |
436 | 436 | then throw("Sale ended.") | |
437 | 437 | else { | |
438 | 438 | let bF = (N == bx) | |
439 | 439 | let bG = o("total_nft_issued") | |
440 | 440 | let D = a(W(bx, P)) | |
441 | 441 | let bH = a(Q(bx, P)) | |
442 | 442 | if ((bH == "")) | |
443 | 443 | then throw("Art doesn't exist") | |
444 | 444 | else { | |
445 | 445 | let bI = q(Y(bx, P)) | |
446 | 446 | let bJ = o(X(bx, P)) | |
447 | 447 | let bc = if (bF) | |
448 | 448 | then (B * 2) | |
449 | 449 | else o(ag(bx, P)) | |
450 | 450 | let bb = if (bF) | |
451 | 451 | then toBase58String(i) | |
452 | 452 | else a(ai(bx, P)) | |
453 | 453 | let bK = o(V(bx, P)) | |
454 | 454 | if (if (if (!(bD)) | |
455 | 455 | then !(bF) | |
456 | 456 | else false) | |
457 | 457 | then if (if ((0 >= bc)) | |
458 | 458 | then true | |
459 | 459 | else !(bI)) | |
460 | 460 | then true | |
461 | 461 | else (0 >= bK) | |
462 | 462 | else false) | |
463 | 463 | then throw("Art not for sale") | |
464 | 464 | else if (if (if (!(bD)) | |
465 | 465 | then bF | |
466 | 466 | else false) | |
467 | 467 | then (0 >= bK) | |
468 | 468 | else false) | |
469 | 469 | then throw("Max issuable not set") | |
470 | 470 | else { | |
471 | 471 | let aP = aF(bx) | |
472 | 472 | if (if (bD) | |
473 | 473 | then (aP != "") | |
474 | 474 | else false) | |
475 | 475 | then throw(aP) | |
476 | 476 | else { | |
477 | 477 | let bm = ((((((("bid_" + P) + "_") + bx) + "_") + bz) + "_") + by) | |
478 | 478 | let bL = if (bD) | |
479 | 479 | then bl(bm) | |
480 | 480 | else ba(aR, bb, bc) | |
481 | 481 | let aT = bL._1 | |
482 | 482 | let aW = bL._2 | |
483 | 483 | let bM = valueOrElse(getString(g, ak(bx)), f) | |
484 | 484 | let bN = valueOrElse(getInteger(g, am(bx)), 0) | |
485 | 485 | let bO = valueOrElse(getString(g, an(bx)), f) | |
486 | 486 | let bP = valueOrElse(getInteger(g, ao(bx)), 0) | |
487 | 487 | let bQ = p(bx) | |
488 | 488 | let bR = if ((bQ > height)) | |
489 | 489 | then 0 | |
490 | 490 | else if ((aW == i)) | |
491 | 491 | then r | |
492 | 492 | else s | |
493 | 493 | let bS = fraction(aT, bR, 100) | |
494 | 494 | let bT = if (if (if ((bM != f)) | |
495 | 495 | then (bN > 0) | |
496 | 496 | else false) | |
497 | 497 | then (height > bQ) | |
498 | 498 | else false) | |
499 | 499 | then fraction(aT, bN, 10000) | |
500 | 500 | else 0 | |
501 | 501 | let bU = if (if (if ((bO != f)) | |
502 | 502 | then (bP > 0) | |
503 | 503 | else false) | |
504 | 504 | then (height > bQ) | |
505 | 505 | else false) | |
506 | 506 | then fraction(aT, bP, 10000) | |
507 | 507 | else 0 | |
508 | 508 | let bV = (aT - bS) | |
509 | 509 | if ((bJ == bK)) | |
510 | 510 | then throw("Art sold out") | |
511 | 511 | else { | |
512 | 512 | let bW = (bJ + 1) | |
513 | 513 | let bX = ((((((((((("Creator: " + bx) + ", | |
514 | 514 | ArtID: ") + P) + ", | |
515 | 515 | SignID: ") + D) + ", | |
516 | 516 | Artwork name: ") + bH) + ", | |
517 | 517 | Issue: ") + toString(bW)) + "/") + toString(bK)) | |
518 | 518 | let bY = Issue(("SA_" + toString((bG + 1))), bX, 1, 0, false) | |
519 | 519 | let bZ = calculateAssetId(bY) | |
520 | 520 | let ca = if (if ((bW == bK)) | |
521 | 521 | then true | |
522 | 522 | else !(bI)) | |
523 | 523 | then false | |
524 | 524 | else true | |
525 | 525 | let cb = if (if (if ((N == bx)) | |
526 | 526 | then (bz != "") | |
527 | 527 | else false) | |
528 | 528 | then (by != "") | |
529 | 529 | else false) | |
530 | 530 | then addressFromStringValue(bz) | |
531 | 531 | else aR.caller | |
532 | 532 | let cc = if (!(isDefined(aW))) | |
533 | 533 | then "WAVES" | |
534 | 534 | else toBase58String(value(aW)) | |
535 | 535 | let bn = a((bm + "_OPEN")) | |
536 | 536 | let cd = DeleteEntry((bm + "_OPEN")) | |
537 | 537 | let ce = StringEntry((bm + "_CLOSED"), ((bn + "_") + toString(bC))) | |
538 | 538 | let cf = ((((((("art_sold_" + toString(bW)) + "_of_") + toString(bK)) + "_") + P) + "_") + bx) | |
539 | 539 | let cg = if (!(bD)) | |
540 | 540 | then ((((((((((N + "_") + toString(bC)) + "_") + bB) + "_") + toString(bc)) + "_") + bb) + "_") + toBase58String(bZ)) | |
541 | 541 | else ((((((((((toString(cb) + "_") + toString(bC)) + "_") + bB) + "_") + toString(aT)) + "_") + cc) + "_") + toBase58String(bZ)) | |
542 | 542 | let ch = StringEntry(cf, cg) | |
543 | 543 | let ci = if ((bT != 0)) | |
544 | 544 | then [ScriptTransfer(Address(fromBase58String(f)), (bS - bT), aW), ScriptTransfer(Address(fromBase58String(bM)), bT, aW)] | |
545 | 545 | else [ScriptTransfer(Address(fromBase58String(f)), bS, aW)] | |
546 | 546 | let cj = if ((bU != 0)) | |
547 | 547 | then [ScriptTransfer(Address(fromBase58String(bO)), bU, aW), ScriptTransfer(Address(fromBase58String(bx)), (bV - bU), aW)] | |
548 | 548 | else [ScriptTransfer(Address(fromBase58String(bx)), bV, aW)] | |
549 | 549 | let ck = if (bt) | |
550 | 550 | then [ScriptTransfer(Address(fromBase58String(N)), 0, unit)] | |
551 | 551 | else nil | |
552 | 552 | 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) | |
553 | 553 | if (bD) | |
554 | 554 | then [ch, ce, cd] :: cl | |
555 | 555 | else ch :: cl | |
556 | 556 | } | |
557 | 557 | } | |
558 | 558 | } | |
559 | 559 | } | |
560 | 560 | } | |
561 | 561 | } | |
562 | 562 | } | |
563 | 563 | ||
564 | 564 | ||
565 | 565 | func cm (cn) = { | |
566 | 566 | let G = cn | |
567 | 567 | if ($isInstanceOf(G, "String")) | |
568 | 568 | then { | |
569 | 569 | let co = G | |
570 | 570 | co | |
571 | 571 | } | |
572 | 572 | else throw("Sponsored Public Key String expected") | |
573 | 573 | } | |
574 | 574 | ||
575 | 575 | ||
576 | 576 | @Callable(cp) | |
577 | 577 | func setConf (b,cq) = { | |
578 | 578 | let N = toString(cp.caller) | |
579 | 579 | if (containsElement([m, toString(this)], N)) | |
580 | 580 | then if (contains(b, "conf_")) | |
581 | 581 | then [StringEntry(b, cq)] | |
582 | 582 | else throw("Entries starting with conf_ only") | |
583 | 583 | else throw("You are not allowed to change this") | |
584 | 584 | } | |
585 | 585 | ||
586 | 586 | ||
587 | 587 | ||
588 | 588 | @Callable(aR) | |
589 | 589 | func addArtwork (F,D,aL,aM,aN,cr,aw,aA,ax,aB,ay,cs,aO,bs) = { | |
590 | 590 | let ct = br(aR, bs) | |
591 | 591 | let P = ct._1 | |
592 | 592 | let N = ct._2 | |
593 | 593 | let bC = ct._3 | |
594 | 594 | let bt = ct._4 | |
595 | 595 | if (!(K(F))) | |
596 | 596 | then throw("Hash should be 64 characters maximum") | |
597 | 597 | else { | |
598 | 598 | let cu = aH(ay, aB) | |
599 | 599 | let aJ = cu._1 | |
600 | 600 | let aK = cu._2 | |
601 | 601 | let cv = aI(N, aw, ax, aJ, aA, aK, aL, aM, aN, aO) | |
602 | 602 | if ((cv != "")) | |
603 | 603 | then throw("Something went wrong!") | |
604 | 604 | else { | |
605 | 605 | let cw = (p((N + "_free_drops")) > 0) | |
606 | 606 | let cx = if (cw) | |
607 | 607 | then $Tuple2(0, D) | |
608 | 608 | else aU(aR) | |
609 | 609 | let aT = cx._1 | |
610 | 610 | let aW = cx._2 | |
611 | 611 | if (!(isDefined(aT))) | |
612 | 612 | then throw("Something went wrong") | |
613 | 613 | else { | |
614 | 614 | let cy = a(au(F, N)) | |
615 | 615 | if ((cy != "")) | |
616 | 616 | then throw("You already added it") | |
617 | 617 | else { | |
618 | 618 | let cz = a(ar(F)) | |
619 | 619 | if ((cz != "")) | |
620 | 620 | then throw("Hash already registered") | |
621 | 621 | else { | |
622 | 622 | let cA = C(D, N, F) | |
623 | 623 | if (!(cA)) | |
624 | 624 | then throw("Sign Certificate not found for this address.") | |
625 | 625 | else { | |
626 | 626 | let cB = if (cw) | |
627 | 627 | then invoke(h, "useFreeDrop", [N], nil) | |
628 | 628 | else unit | |
629 | 629 | if ((cB == cB)) | |
630 | 630 | then { | |
631 | 631 | let ck = if (bt) | |
632 | 632 | then [ScriptTransfer(Address(fromBase58String(N)), 0, unit)] | |
633 | 633 | else nil | |
634 | 634 | ([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) | |
635 | 635 | } | |
636 | 636 | else throw("Strict value is not equal to itself.") | |
637 | 637 | } | |
638 | 638 | } | |
639 | 639 | } | |
640 | 640 | } | |
641 | 641 | } | |
642 | 642 | } | |
643 | 643 | } | |
644 | 644 | ||
645 | 645 | ||
646 | 646 | ||
647 | 647 | @Callable(aR) | |
648 | 648 | func updateArtwork (aq,aL,aM,aN,cr,aw,aA,ax,aB,ay,cs,aO,bs) = if (!(v)) | |
649 | 649 | then throw(w) | |
650 | 650 | else { | |
651 | 651 | let cC = br(aR, bs) | |
652 | 652 | let bB = cC._1 | |
653 | 653 | let N = cC._2 | |
654 | 654 | let bC = cC._3 | |
655 | 655 | let bt = cC._4 | |
656 | 656 | let cD = aH(ay, aB) | |
657 | 657 | let aJ = cD._1 | |
658 | 658 | let aK = cD._2 | |
659 | 659 | let cv = aI(N, aw, ax, aJ, aA, aK, aL, aM, aN, aO) | |
660 | 660 | if ((cv != "")) | |
661 | 661 | then throw("Something went wrong!") | |
662 | 662 | else { | |
663 | 663 | let cy = a(Q(N, aq)) | |
664 | 664 | if ((cy == "")) | |
665 | 665 | then throw("Entry not found") | |
666 | 666 | else { | |
667 | 667 | let cE = a(aj(N, aq)) | |
668 | 668 | if ((cE == "ILLEGAL")) | |
669 | 669 | then throw("Cannot update ILLEGAL artwork") | |
670 | 670 | else if (!(aX(N, aq))) | |
671 | 671 | then { | |
672 | 672 | let ck = if (bt) | |
673 | 673 | then [ScriptTransfer(Address(fromBase58String(N)), 0, unit)] | |
674 | 674 | else nil | |
675 | 675 | ([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) | |
676 | 676 | } | |
677 | 677 | else throw("Already minted") | |
678 | 678 | } | |
679 | 679 | } | |
680 | 680 | } | |
681 | 681 | ||
682 | 682 | ||
683 | 683 | ||
684 | 684 | @Callable(aR) | |
685 | 685 | func flagArtwork (P,cF,cE,cG) = { | |
686 | 686 | let cH = bv(aR) | |
687 | 687 | let bB = cH._1 | |
688 | 688 | let N = cH._2 | |
689 | 689 | if (containsElement([m, toString(this)], N)) | |
690 | 690 | then if (containsElement(["CONSENT", "", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], cE)) | |
691 | 691 | then [StringEntry(aj(cF, P), cE), StringEntry(ad(cF, P), cG)] | |
692 | 692 | else throw(("Unknow status " + cE)) | |
693 | 693 | else throw("You are not allowed") | |
694 | 694 | } | |
695 | 695 | ||
696 | 696 | ||
697 | 697 | ||
698 | 698 | @Callable(aR) | |
699 | 699 | func deleteArtwork (P,cF) = { | |
700 | 700 | let cI = bv(aR) | |
701 | 701 | let bB = cI._1 | |
702 | 702 | let N = cI._2 | |
703 | 703 | let aY = if (containsElement([m, toString(this)], N)) | |
704 | 704 | then cF | |
705 | 705 | else N | |
706 | 706 | let cy = valueOrErrorMessage(a(Q(aY, P)), "No art matching for this address") | |
707 | 707 | if ((cy == "")) | |
708 | 708 | then throw("No art matching for this address") | |
709 | 709 | else { | |
710 | 710 | let F = a(ap(aY, P)) | |
711 | 711 | if ((F == "")) | |
712 | 712 | then throw("No art hash matching for this address") | |
713 | 713 | else { | |
714 | 714 | let D = a(W(aY, P)) | |
715 | 715 | if ((D == "")) | |
716 | 716 | then throw("No SIGN ID matching") | |
717 | 717 | else { | |
718 | 718 | 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))] | |
719 | 719 | if (!(aX(aY, P))) | |
720 | 720 | then if (!(v)) | |
721 | 721 | then throw(w) | |
722 | 722 | else cJ | |
723 | 723 | else if (containsElement([m, toString(this)], N)) | |
724 | 724 | then cJ | |
725 | 725 | else throw("Art already minted, you cannot delete it") | |
726 | 726 | } | |
727 | 727 | } | |
728 | 728 | } | |
729 | 729 | } | |
730 | 730 | ||
731 | 731 | ||
732 | 732 | ||
733 | 733 | @Callable(aR) | |
734 | 734 | func sellArtwork (P,bg,cK,aW,bE,bs) = { | |
735 | 735 | let cL = br(aR, bs) | |
736 | 736 | let bB = cL._1 | |
737 | 737 | let N = cL._2 | |
738 | 738 | let bC = cL._3 | |
739 | 739 | let bt = cL._4 | |
740 | 740 | let bH = a(Q(N, P)) | |
741 | 741 | if ((bH == "")) | |
742 | 742 | then throw("This art doesn't match your account") | |
743 | 743 | else { | |
744 | 744 | let cE = a(aj(N, P)) | |
745 | 745 | if (containsElement(["CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], cE)) | |
746 | 746 | then throw("Flagged artwork") | |
747 | 747 | else { | |
748 | 748 | let cM = o(("current_bidamount_" + P)) | |
749 | 749 | if ((0 > bE)) | |
750 | 750 | then throw("Negative end") | |
751 | 751 | else if (if ((bE > 0)) | |
752 | 752 | then if ((cK != 1)) | |
753 | 753 | then true | |
754 | 754 | else (bg != 0) | |
755 | 755 | else false) | |
756 | 756 | then throw("Timed offer only allowed for unique edition and offer only") | |
757 | 757 | else { | |
758 | 758 | let cN = if ((bE == 0)) | |
759 | 759 | then 0 | |
760 | 760 | else height | |
761 | 761 | if (!(be(aW))) | |
762 | 762 | then throw("Something went wrong!") | |
763 | 763 | else if (!(bf(aW, bg))) | |
764 | 764 | then throw("Something went wrong!") | |
765 | 765 | else { | |
766 | 766 | let aP = aF(N) | |
767 | 767 | if ((aP != "")) | |
768 | 768 | then throw(aP) | |
769 | 769 | else { | |
770 | 770 | let bJ = o(X(N, P)) | |
771 | 771 | let bK = o(V(N, P)) | |
772 | 772 | if ((cK > 100)) | |
773 | 773 | then throw("100 editions max per artwork") | |
774 | 774 | else if (if ((bJ != 0)) | |
775 | 775 | then (bJ == bK) | |
776 | 776 | else false) | |
777 | 777 | then throw("Max edition reached.") | |
778 | 778 | else if (if ((bJ > 0)) | |
779 | 779 | then (bK != cK) | |
780 | 780 | else false) | |
781 | 781 | then throw("Cannot change maximum issuable anymore") | |
782 | 782 | else if (if ((cM > 0)) | |
783 | 783 | then (bK != cK) | |
784 | 784 | else false) | |
785 | 785 | then throw("Cannot change maximum issuable with active orders") | |
786 | 786 | else { | |
787 | 787 | let ca = if (if ((bg > 0)) | |
788 | 788 | then (cK > 0) | |
789 | 789 | else false) | |
790 | 790 | then true | |
791 | 791 | else false | |
792 | 792 | let ck = if (bt) | |
793 | 793 | then [ScriptTransfer(Address(fromBase58String(N)), 0, unit)] | |
794 | 794 | else nil | |
795 | 795 | ([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) | |
796 | 796 | } | |
797 | 797 | } | |
798 | 798 | } | |
799 | 799 | } | |
800 | 800 | } | |
801 | 801 | } | |
802 | 802 | } | |
803 | 803 | ||
804 | 804 | ||
805 | 805 | ||
806 | 806 | @Callable(aR) | |
807 | 807 | func buyArtwork (P,bx) = bw(aR, P, bx, "", "", "") | |
808 | 808 | ||
809 | 809 | ||
810 | 810 | ||
811 | 811 | @Callable(aR) | |
812 | 812 | func setBid (P,bx) = { | |
813 | 813 | let cO = bv(aR) | |
814 | 814 | let bB = cO._1 | |
815 | 815 | let N = cO._2 | |
816 | 816 | let bC = cO._3 | |
817 | 817 | let cP = aQ(aR) | |
818 | 818 | let aS = cP._1 | |
819 | 819 | let aT = cP._2 | |
820 | 820 | let aW = if (!(isDefined(aS.assetId))) | |
821 | 821 | then "WAVES" | |
822 | 822 | else toBase58String(value(aS.assetId)) | |
823 | 823 | let bE = o(ah(bx, P)) | |
824 | 824 | if (if ((bE != 0)) | |
825 | 825 | then (height >= bE) | |
826 | 826 | else false) | |
827 | 827 | then throw("Sale ended.") | |
828 | 828 | else { | |
829 | 829 | let cM = o(("current_bidamount_" + P)) | |
830 | 830 | if (!(be(aW))) | |
831 | 831 | then throw("asset not accepted") | |
832 | 832 | else if (!(bf(aW, aT))) | |
833 | 833 | then throw("Wrong min sell") | |
834 | 834 | else { | |
835 | 835 | let bJ = o(X(bx, P)) | |
836 | 836 | let bK = o(V(bx, P)) | |
837 | 837 | if ((0 >= bK)) | |
838 | 838 | then throw("No max edition set for this artwork") | |
839 | 839 | else if ((bJ >= bK)) | |
840 | 840 | then throw("Sold out, you cannot bid") | |
841 | 841 | else [StringEntry((((((((("bid_" + P) + "_") + bx) + "_") + N) + "_") + bB) + "_OPEN"), ((((aW + "_") + toString(aT)) + "_") + toString(bC))), IntegerEntry(("current_bidamount_" + P), (cM + 1))] | |
842 | 842 | } | |
843 | 843 | } | |
844 | 844 | } | |
845 | 845 | ||
846 | 846 | ||
847 | 847 | ||
848 | 848 | @Callable(aR) | |
849 | 849 | func acceptBid (P,bx,by,bz,bs) = { | |
850 | 850 | let cQ = br(aR, bs) | |
851 | 851 | let bB = cQ._1 | |
852 | 852 | let cR = cQ._2 | |
853 | 853 | let bC = cQ._3 | |
854 | 854 | let bt = cQ._4 | |
855 | 855 | if ((cR != bx)) | |
856 | 856 | then throw("You cannot do this action") | |
857 | 857 | else bw(aR, P, bx, by, bz, bs) | |
858 | 858 | } | |
859 | 859 | ||
860 | 860 | ||
861 | 861 | ||
862 | 862 | @Callable(aR) | |
863 | 863 | func cancelBid (P,bx,by,bz) = { | |
864 | 864 | let cS = bv(aR) | |
865 | 865 | let bB = cS._1 | |
866 | 866 | let N = cS._2 | |
867 | 867 | let bC = cS._3 | |
868 | 868 | if (if ((N != bz)) | |
869 | 869 | then (N != bx) | |
870 | 870 | else false) | |
871 | 871 | then throw("You cannot do this action") | |
872 | 872 | else { | |
873 | 873 | let cT = if ((N == bx)) | |
874 | 874 | then bz | |
875 | 875 | else N | |
876 | 876 | let cM = o(("current_bidamount_" + P)) | |
877 | 877 | let bm = ((((((("bid_" + P) + "_") + bx) + "_") + bz) + "_") + by) | |
878 | 878 | let bn = a((bm + "_OPEN")) | |
879 | 879 | if ((bn == "")) | |
880 | 880 | then throw("Bid not found") | |
881 | 881 | else { | |
882 | 882 | let bo = split(bn, "_") | |
883 | 883 | let aW = bk(bo[0]) | |
884 | 884 | let cU = "CANCELED" | |
885 | 885 | [DeleteEntry((bm + "_OPEN")), StringEntry(((bm + "_") + cU), ((bn + "_") + toString(bC))), IntegerEntry(("current_bidamount_" + P), (cM - 1)), ScriptTransfer(Address(fromBase58String(cT)), parseIntValue(bo[1]), aW)] | |
886 | 886 | } | |
887 | 887 | } | |
888 | 888 | } | |
889 | 889 | ||
890 | 890 | ||
891 | 891 | @Verifier(cV) | |
892 | 892 | func cW () = { | |
893 | 893 | let G = cV | |
894 | 894 | if ($isInstanceOf(G, "InvokeScriptTransaction")) | |
895 | 895 | then { | |
896 | 896 | let cX = G | |
897 | 897 | if (if (if (if ((cX.function == "addArtwork")) | |
898 | 898 | then (cX.dApp == this) | |
899 | 899 | else false) | |
900 | 900 | then (cX.fee == 500000) | |
901 | 901 | else false) | |
902 | 902 | then (cX.feeAssetId == unit) | |
903 | 903 | else false) | |
904 | 904 | then sigVerify(cV.bodyBytes, cV.proofs[0], fromBase58String(cm(cX.args[13]))) | |
905 | 905 | else if (if (if (if ((cX.function == "updateArtwork")) | |
906 | 906 | then (cX.dApp == this) | |
907 | 907 | else false) | |
908 | 908 | then (cX.fee == 500000) | |
909 | 909 | else false) | |
910 | 910 | then (cX.feeAssetId == unit) | |
911 | 911 | else false) | |
912 | 912 | then sigVerify(cV.bodyBytes, cV.proofs[0], fromBase58String(cm(cX.args[12]))) | |
913 | 913 | else if (if (if (if ((cX.function == "sellArtwork")) | |
914 | 914 | then (cX.dApp == this) | |
915 | 915 | else false) | |
916 | 916 | then (cX.fee == 500000) | |
917 | 917 | else false) | |
918 | 918 | then (cX.feeAssetId == unit) | |
919 | 919 | else false) | |
920 | 920 | then sigVerify(cV.bodyBytes, cV.proofs[0], fromBase58String(cm(cX.args[5]))) | |
921 | 921 | else if (if (if (if ((cX.function == "acceptBid")) | |
922 | 922 | then (cX.dApp == this) | |
923 | 923 | else false) | |
924 | 924 | then (cX.fee == 500000) | |
925 | 925 | else false) | |
926 | 926 | then (cX.feeAssetId == unit) | |
927 | 927 | else false) | |
928 | 928 | then sigVerify_128Kb(cV.bodyBytes, cV.proofs[0], fromBase58String(cm(cX.args[4]))) | |
929 | 929 | else sigVerify(cV.bodyBytes, cV.proofs[0], cV.senderPublicKey) | |
930 | 930 | } | |
931 | 931 | else sigVerify(cV.bodyBytes, cV.proofs[0], cV.senderPublicKey) | |
932 | 932 | } | |
933 | 933 |
github/deemru/w8io/169f3d6 84.35 ms ◑