tx · 6QGjizNy9AsStvktpSqGGfxdxCtTfFwu8ihg2DZuAjyo 3MrWmZaT2EbepZbjCUMCZUaoaVLdJyuF1GS: -0.01300000 Waves 2022.11.03 13:57 [2300842] smart account 3MrWmZaT2EbepZbjCUMCZUaoaVLdJyuF1GS > SELF 0.00000000 Waves
{ "type": 13, "id": "6QGjizNy9AsStvktpSqGGfxdxCtTfFwu8ihg2DZuAjyo", "fee": 1300000, "feeAssetId": null, "timestamp": 1667473049977, "version": 2, "chainId": 84, "sender": "3MrWmZaT2EbepZbjCUMCZUaoaVLdJyuF1GS", "senderPublicKey": "4P3GWdtoxzZm4hgroUCqWxduGY1Zg1LPMMz6SWPc9gMi", "proofs": [ "2GpWu985M2pTVd3yGHK1VR7siRLkDZrsoxiW22kC6RUgG4a5uvfuo1qhVK2PZobndJy2p6CRBWh1jkyBM4fUTaYc" ], "script": "base64:BgI4CAISBAoCCAgSBAoCBAgSAwoBARIECgIIARIDCgEIEgMKAQgSAwoBCBIFCgMICAgSBwoFCAgICAgpAAdWRVJTSU9OAgUxLjAuMAEJZ2V0U3RyQnlLAQNrZXkJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwUDa2V5AgAAC2ZlZVJlY2VpdmVyCQEJZ2V0U3RyQnlLAQIRY29uZl9mZWVfcmVjZWl2ZXIACmV2ZW50c0RhcHAJAQV2YWx1ZQEJAKYIAQkBCWdldFN0ckJ5SwECEGNvbmZfZXZlbnRzX2RhcHAACHVzZXJEYXBwCQEFdmFsdWUBCQCmCAEJAQlnZXRTdHJCeUsBAg9jb25mX3VzZXJzX2RhcHAAC3NpZ25Bc3NldElkCQDZBAEJAQlnZXRTdHJCeUsBAhhjb25mX2FjY2VwdGVkX2Fzc2V0X1NJR04ABWNocmlzCQEJZ2V0U3RyQnlLAQIMY29uZl9hZG1pbl8xAAdzaWduQ3V0AAMADG9yZ2FuaXplckN1dAAKAA11c2VyU3VzcGVuZGVkAglTVVNQRU5ERUQADGV2ZW50SWxsZ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Q0FOQ0VMTEVEXwkApAMBBQRkYXRlAgFfBQJpZAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEJANkEAQUGY2FsbGVyCQENcGFyc2VJbnRWYWx1ZQEJAJEDAgUKYmlkRGF0YUFycgABBQdhc3NldElkBQNuaWwAPfqFeA==", "height": 2300842, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 44B9YfDAxiv2YeGa3hyY6q1fNCBnLqWzFNSpykXQtiqT Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = "1.0.0" | |
5 | + | ||
6 | + | func b (c) = valueOrElse(getString(this, c), "") | |
7 | + | ||
8 | + | ||
9 | + | let d = b("conf_fee_receiver") | |
10 | + | ||
11 | + | let e = value(addressFromString(b("conf_events_dapp"))) | |
12 | + | ||
13 | + | let f = value(addressFromString(b("conf_users_dapp"))) | |
14 | + | ||
15 | + | let g = fromBase58String(b("conf_accepted_asset_SIGN")) | |
16 | + | ||
17 | + | let h = b("conf_admin_1") | |
18 | + | ||
19 | + | let i = 3 | |
20 | + | ||
21 | + | let j = 10 | |
22 | + | ||
23 | + | let k = "SUSPENDED" | |
24 | + | ||
25 | + | let l = "ILLEGAL" | |
26 | + | ||
27 | + | let m = "SUSPENDED" | |
28 | + | ||
29 | + | let n = "conf_dapp_is_running" | |
30 | + | ||
31 | + | let o = "conf_maintenance_msg" | |
32 | + | ||
33 | + | let p = valueOrElse(getBoolean(this, n), true) | |
34 | + | ||
35 | + | let q = valueOrElse(getString(this, o), "") | |
36 | + | ||
37 | + | let r = "num_sales" | |
38 | + | ||
39 | + | func s (c) = valueOrElse(getString(f, c), "Error") | |
40 | + | ||
41 | + | ||
42 | + | func t (c) = valueOrElse(getString(e, c), "") | |
43 | + | ||
44 | + | ||
45 | + | func u (c) = valueOrElse(getInteger(this, c), 0) | |
46 | + | ||
47 | + | ||
48 | + | func v (w) = ("user_status_" + w) | |
49 | + | ||
50 | + | ||
51 | + | func x (y,z) = ((("event_flag_" + z) + "_") + y) | |
52 | + | ||
53 | + | ||
54 | + | func A (B) = ("nft_" + B) | |
55 | + | ||
56 | + | ||
57 | + | func C (D,E,z,y,F) = ((((((((("sale2nd_info_" + D) + "_") + E) + "_") + z) + "_") + y) + "_") + F) | |
58 | + | ||
59 | + | ||
60 | + | func G (H,E,I,J,F) = ((((((((("offer2nd_" + H) + "_") + E) + "_") + I) + "_") + J) + "_") + F) | |
61 | + | ||
62 | + | ||
63 | + | func K (L) = if (!(p)) | |
64 | + | then throw(q) | |
65 | + | else $Tuple3(toBase58String(L.transactionId), toBase58String(L.caller.bytes), lastBlock.timestamp) | |
66 | + | ||
67 | + | ||
68 | + | func M (L) = if ((size(L.payments) == 0)) | |
69 | + | then throw("No payment attached") | |
70 | + | else { | |
71 | + | let N = value(L.payments[0]) | |
72 | + | let O = value(N.amount) | |
73 | + | $Tuple2(N, O) | |
74 | + | } | |
75 | + | ||
76 | + | ||
77 | + | func P (Q) = if (if (if ((Q.quantity == 1)) | |
78 | + | then (Q.decimals == 0) | |
79 | + | else false) | |
80 | + | then (Q.reissuable == false) | |
81 | + | else false) | |
82 | + | then (Q.issuer == e) | |
83 | + | else false | |
84 | + | ||
85 | + | ||
86 | + | func R (B) = { | |
87 | + | let Q = value(assetInfo(B)) | |
88 | + | P(Q) | |
89 | + | } | |
90 | + | ||
91 | + | ||
92 | + | func S (T) = if ((T != toBase58String(g))) | |
93 | + | then false | |
94 | + | else true | |
95 | + | ||
96 | + | ||
97 | + | func U (T) = fromBase58String(T) | |
98 | + | ||
99 | + | ||
100 | + | func V (E) = { | |
101 | + | let I = b(("current_owner_on_dapp_" + E)) | |
102 | + | if ((size(I) == 0)) | |
103 | + | then throw("Ticket not found") | |
104 | + | else { | |
105 | + | let W = b(((("sale2nd_status_" + I) + "_") + E)) | |
106 | + | if ((W != "OPEN")) | |
107 | + | then throw("Ticket not for sale") | |
108 | + | else I | |
109 | + | } | |
110 | + | } | |
111 | + | ||
112 | + | ||
113 | + | func X (c) = { | |
114 | + | let Y = b((c + "_OPEN")) | |
115 | + | if ((Y == "")) | |
116 | + | then throw("Offer not found") | |
117 | + | else { | |
118 | + | let Z = split(Y, "_") | |
119 | + | let T = U(Z[2]) | |
120 | + | $Tuple3(Z, T, Y) | |
121 | + | } | |
122 | + | } | |
123 | + | ||
124 | + | ||
125 | + | func aa (ab) = if ((ab != l)) | |
126 | + | then (ab != m) | |
127 | + | else false | |
128 | + | ||
129 | + | ||
130 | + | func ac (w,B) = { | |
131 | + | let ab = t(x(w, B)) | |
132 | + | if (aa(ab)) | |
133 | + | then true | |
134 | + | else throw(("Original event flagged as " + ab)) | |
135 | + | } | |
136 | + | ||
137 | + | ||
138 | + | func ad (w) = { | |
139 | + | let ae = s(v(w)) | |
140 | + | if (containsElement([k], ae)) | |
141 | + | then throw(("Original organizer " + ae)) | |
142 | + | else true | |
143 | + | } | |
144 | + | ||
145 | + | ||
146 | + | func af (T) = { | |
147 | + | let ag = split(t(A(T)), "_") | |
148 | + | if (if (!(ac(ag[6], ag[5]))) | |
149 | + | then !(ad(ag[6])) | |
150 | + | else false) | |
151 | + | then $Tuple4(false, ag[5], ag[6], ag[7]) | |
152 | + | else $Tuple4(true, ag[5], ag[6], ag[7]) | |
153 | + | } | |
154 | + | ||
155 | + | ||
156 | + | func ah (z,y) = if (if (!(ac(y, z))) | |
157 | + | then !(ad(y)) | |
158 | + | else false) | |
159 | + | then false | |
160 | + | else true | |
161 | + | ||
162 | + | ||
163 | + | func ai (O,T,F,y,I,D) = { | |
164 | + | let aj = fraction(O, i, 100) | |
165 | + | let ak = fraction(O, j, 100) | |
166 | + | let al = (O - (aj + ak)) | |
167 | + | let am = [ScriptTransfer(Address(fromBase58String(d)), aj, T)] | |
168 | + | let an = ScriptTransfer(Address(fromBase58String(y)), ak, T) | |
169 | + | let ao = ScriptTransfer(Address(fromBase58String(I)), al, T) | |
170 | + | let ap = ScriptTransfer(Address(fromBase58String(D)), 1, fromBase58String(F)) | |
171 | + | $Tuple4(am, an, ao, ap) | |
172 | + | } | |
173 | + | ||
174 | + | ||
175 | + | func aq (L,F) = { | |
176 | + | let ar = K(L) | |
177 | + | let B = ar._1 | |
178 | + | let D = ar._2 | |
179 | + | let as = ar._3 | |
180 | + | let at = af(F) | |
181 | + | let au = at._1 | |
182 | + | let z = at._2 | |
183 | + | let y = at._3 | |
184 | + | let E = at._4 | |
185 | + | $Tuple7(B, D, as, au, z, y, E) | |
186 | + | } | |
187 | + | ||
188 | + | ||
189 | + | func av () = { | |
190 | + | let aw = u(r) | |
191 | + | IntegerEntry(r, (aw + 1)) | |
192 | + | } | |
193 | + | ||
194 | + | ||
195 | + | @Callable(ax) | |
196 | + | func setConf (c,ay) = { | |
197 | + | let D = toString(ax.caller) | |
198 | + | if (containsElement([h, toString(this)], D)) | |
199 | + | then if (contains(c, "conf_")) | |
200 | + | then [StringEntry(c, ay)] | |
201 | + | else throw("Entries starting with conf_ only") | |
202 | + | else throw("You are not allowed to change this") | |
203 | + | } | |
204 | + | ||
205 | + | ||
206 | + | ||
207 | + | @Callable(ax) | |
208 | + | func appRunning (az,aA) = { | |
209 | + | let D = toString(ax.caller) | |
210 | + | let B = toBase58String(ax.transactionId) | |
211 | + | if (containsElement([h, toString(this)], D)) | |
212 | + | then [BooleanEntry(n, az), StringEntry(o, aA)] | |
213 | + | else throw("You are not allowed to change this") | |
214 | + | } | |
215 | + | ||
216 | + | ||
217 | + | ||
218 | + | @Callable(L) | |
219 | + | func sellNFT (aB) = { | |
220 | + | let aC = M(L) | |
221 | + | let N = aC._1 | |
222 | + | let O = aC._2 | |
223 | + | if ((O != 1)) | |
224 | + | then throw("No Ticket attached") | |
225 | + | else { | |
226 | + | let F = if (if (isDefined(N.assetId)) | |
227 | + | then R(value(N.assetId)) | |
228 | + | else false) | |
229 | + | then toBase58String(value(N.assetId)) | |
230 | + | else throw("Only SIGN Event NFT accepted.") | |
231 | + | let aD = aq(L, F) | |
232 | + | let B = aD._1 | |
233 | + | let D = aD._2 | |
234 | + | let as = aD._3 | |
235 | + | let au = aD._4 | |
236 | + | let z = aD._5 | |
237 | + | let y = aD._6 | |
238 | + | let E = aD._7 | |
239 | + | if (!(au)) | |
240 | + | then throw("Not a valid ticket") | |
241 | + | else [StringEntry((C(D, E, z, y, F) + "_OPEN"), ((((((((((((((toString(as) + "_") + toString(aB)) + "_") + toBase58String(g)) + "_") + F) + "_") + E) + "_") + z) + "_") + y) + "_") + B)), StringEntry(((("sale2nd_status_" + D) + "_") + F), "OPEN"), StringEntry(("current_owner_on_dapp_" + F), D)] | |
242 | + | } | |
243 | + | } | |
244 | + | ||
245 | + | ||
246 | + | ||
247 | + | @Callable(L) | |
248 | + | func updateSalePrice (F,aB) = { | |
249 | + | let aE = aq(L, F) | |
250 | + | let B = aE._1 | |
251 | + | let D = aE._2 | |
252 | + | let as = aE._3 | |
253 | + | let au = aE._4 | |
254 | + | let z = aE._5 | |
255 | + | let y = aE._6 | |
256 | + | let E = aE._7 | |
257 | + | if (!(au)) | |
258 | + | then throw("Not a valid ticket") | |
259 | + | else { | |
260 | + | let I = b(("current_owner_on_dapp_" + F)) | |
261 | + | if ((I != D)) | |
262 | + | then throw("You don't own this ticket") | |
263 | + | else { | |
264 | + | let W = b(((("sale2nd_status_" + D) + "_") + F)) | |
265 | + | if ((W != "OPEN")) | |
266 | + | then throw("Sale not active") | |
267 | + | else { | |
268 | + | let aF = C(D, E, z, y, F) | |
269 | + | let aG = split(b((aF + "_OPEN")), "_") | |
270 | + | [StringEntry((aF + "_OPEN"), ((((((((((((((aG[0] + "_") + toString(aB)) + "_") + toBase58String(g)) + "_") + aG[3]) + "_") + aG[4]) + "_") + aG[5]) + "_") + aG[6]) + "_") + aG[7]))] | |
271 | + | } | |
272 | + | } | |
273 | + | } | |
274 | + | } | |
275 | + | ||
276 | + | ||
277 | + | ||
278 | + | @Callable(L) | |
279 | + | func cancelSale (F) = { | |
280 | + | let aH = aq(L, F) | |
281 | + | let B = aH._1 | |
282 | + | let D = aH._2 | |
283 | + | let as = aH._3 | |
284 | + | let au = aH._4 | |
285 | + | let z = aH._5 | |
286 | + | let y = aH._6 | |
287 | + | let E = aH._7 | |
288 | + | let I = b(("current_owner_on_dapp_" + F)) | |
289 | + | if ((I != D)) | |
290 | + | then throw("You don't own this ticket") | |
291 | + | else { | |
292 | + | let W = b(((("sale2nd_status_" + D) + "_") + F)) | |
293 | + | if ((W != "OPEN")) | |
294 | + | then throw("Sale not active") | |
295 | + | else { | |
296 | + | let aF = C(D, E, z, y, F) | |
297 | + | let aG = b((aF + "_OPEN")) | |
298 | + | [DeleteEntry((aF + "_OPEN")), DeleteEntry(((("sale2nd_status_" + D) + "_") + F)), DeleteEntry(("current_owner_on_dapp_" + F)), StringEntry((((aF + "_") + B) + "_CANCELLED"), ((((aG + "_CANCELLED_") + toString(as)) + "_") + B)), ScriptTransfer(Address(fromBase58String(D)), 1, fromBase58String(E))] | |
299 | + | } | |
300 | + | } | |
301 | + | } | |
302 | + | ||
303 | + | ||
304 | + | ||
305 | + | @Callable(L) | |
306 | + | func buyNFT (F) = { | |
307 | + | let aI = aq(L, F) | |
308 | + | let B = aI._1 | |
309 | + | let D = aI._2 | |
310 | + | let as = aI._3 | |
311 | + | let au = aI._4 | |
312 | + | let z = aI._5 | |
313 | + | let y = aI._6 | |
314 | + | let E = aI._7 | |
315 | + | if (!(au)) | |
316 | + | then throw("Not a valid ticket") | |
317 | + | else { | |
318 | + | let I = V(F) | |
319 | + | let aF = C(I, E, z, y, F) | |
320 | + | let aG = b((aF + "_OPEN")) | |
321 | + | if ((size(aG) == 0)) | |
322 | + | then throw("Sale Not found!") | |
323 | + | else { | |
324 | + | let aJ = split(aG, "_") | |
325 | + | if ((parseInt(aJ[1]) == 0)) | |
326 | + | then throw("Offer only") | |
327 | + | else { | |
328 | + | let aK = M(L) | |
329 | + | let N = aK._1 | |
330 | + | let O = aK._2 | |
331 | + | let aL = toBase58String(value(N.assetId)) | |
332 | + | if (if ((aJ[1] != toString(O))) | |
333 | + | then true | |
334 | + | else (aJ[2] != aL)) | |
335 | + | then throw("Payment infos don't match.") | |
336 | + | else { | |
337 | + | let aM = ai(O, N.assetId, F, y, I, D) | |
338 | + | let am = aM._1 | |
339 | + | let aN = aM._2 | |
340 | + | let ao = aM._3 | |
341 | + | let ap = aM._4 | |
342 | + | ([DeleteEntry((aF + "_OPEN")), DeleteEntry(((("sale2nd_status_" + I) + "_") + F)), DeleteEntry(("current_owner_on_dapp_" + F)), StringEntry((((aF + "_") + B) + "_CLOSED"), ((((((aG + "_CLOSED_") + toString(as)) + "_") + B) + "_") + D)), av(), aN, ao, ap] ++ am) | |
343 | + | } | |
344 | + | } | |
345 | + | } | |
346 | + | } | |
347 | + | } | |
348 | + | ||
349 | + | ||
350 | + | ||
351 | + | @Callable(L) | |
352 | + | func setOffer (F) = { | |
353 | + | let aO = aq(L, F) | |
354 | + | let B = aO._1 | |
355 | + | let H = aO._2 | |
356 | + | let as = aO._3 | |
357 | + | let au = aO._4 | |
358 | + | let z = aO._5 | |
359 | + | let y = aO._6 | |
360 | + | let E = aO._7 | |
361 | + | if (!(au)) | |
362 | + | then throw("Not a valid ticket") | |
363 | + | else { | |
364 | + | let aP = M(L) | |
365 | + | let N = aP._1 | |
366 | + | let O = aP._2 | |
367 | + | let T = toBase58String(value(N.assetId)) | |
368 | + | if (!(S(T))) | |
369 | + | then throw("asset not accepted") | |
370 | + | else if ((O == 0)) | |
371 | + | then throw("Offer of 0 not allowed") | |
372 | + | else { | |
373 | + | let I = V(F) | |
374 | + | [StringEntry((G(H, E, I, B, F) + "_OPEN"), ((((((((((((((toString(as) + "_") + toString(O)) + "_") + T) + "_") + F) + "_") + z) + "_") + y) + "_") + H) + "_") + B))] | |
375 | + | } | |
376 | + | } | |
377 | + | } | |
378 | + | ||
379 | + | ||
380 | + | ||
381 | + | @Callable(L) | |
382 | + | func acceptOffer (F,J,H) = { | |
383 | + | let aQ = aq(L, F) | |
384 | + | let B = aQ._1 | |
385 | + | let D = aQ._2 | |
386 | + | let as = aQ._3 | |
387 | + | let au = aQ._4 | |
388 | + | let z = aQ._5 | |
389 | + | let y = aQ._6 | |
390 | + | let E = aQ._7 | |
391 | + | if (!(au)) | |
392 | + | then throw("Not a valid ticket") | |
393 | + | else { | |
394 | + | let I = V(F) | |
395 | + | if ((D != I)) | |
396 | + | then throw("Only sale owner can accept offer") | |
397 | + | else { | |
398 | + | let aR = G(H, E, I, J, F) | |
399 | + | let aS = X(aR) | |
400 | + | let Z = aS._1 | |
401 | + | let T = aS._2 | |
402 | + | let Y = aS._3 | |
403 | + | let aF = C(I, E, z, y, F) | |
404 | + | let aG = b((aF + "_OPEN")) | |
405 | + | if ((size(aG) == 0)) | |
406 | + | then throw("Sale Not found!") | |
407 | + | else { | |
408 | + | let O = value(parseInt(Z[1])) | |
409 | + | let aT = ai(O, T, F, y, I, Z[6]) | |
410 | + | let am = aT._1 | |
411 | + | let aN = aT._2 | |
412 | + | let ao = aT._3 | |
413 | + | let ap = aT._4 | |
414 | + | let aU = toBase58String(value(T)) | |
415 | + | ([DeleteEntry((aF + "_OPEN")), DeleteEntry((aR + "_OPEN")), DeleteEntry(((("sale2nd_status_" + I) + "_") + F)), DeleteEntry(("current_owner_on_dapp_" + F)), StringEntry((aR + "_CLOSED"), ((((Y + "_CLOSED_") + toString(as)) + "_") + B)), StringEntry((((aF + "_") + B) + "_CLOSED"), ((((((((((aG + "_CLOSED-OFFER_") + toString(as)) + "_") + B) + "_") + H) + "_") + toString(O)) + "_") + aU)), av(), aN, ao, ap] ++ am) | |
416 | + | } | |
417 | + | } | |
418 | + | } | |
419 | + | } | |
420 | + | ||
421 | + | ||
422 | + | ||
423 | + | @Callable(L) | |
424 | + | func cancelOffer (F,J,H,I,E) = { | |
425 | + | let aV = K(L) | |
426 | + | let B = aV._1 | |
427 | + | let D = aV._2 | |
428 | + | let as = aV._3 | |
429 | + | if (if ((D != H)) | |
430 | + | then (D != I) | |
431 | + | else false) | |
432 | + | then throw("You cannot cancel this offer.") | |
433 | + | else { | |
434 | + | let aR = G(H, E, I, J, F) | |
435 | + | let aW = X(aR) | |
436 | + | let Z = aW._1 | |
437 | + | let T = aW._2 | |
438 | + | let Y = aW._3 | |
439 | + | [DeleteEntry((aR + "_OPEN")), StringEntry((aR + "_CANCELLED"), ((((Y + "_CANCELLED_") + toString(as)) + "_") + B)), ScriptTransfer(Address(fromBase58String(D)), parseIntValue(Z[1]), T)] | |
440 | + | } | |
441 | + | } | |
442 | + | ||
443 | + |
github/deemru/w8io/169f3d6 29.35 ms ◑