tx · 2zdvycWQd3mC5j7QTTSbJ9m9RXmyj3upDjbg8DBsJ44k 3N1rgNAEfetRH87WQqJan6zSy7Wp1byercW: -0.01800000 Waves 2022.10.26 08:02 [2288936] smart account 3N1rgNAEfetRH87WQqJan6zSy7Wp1byercW > SELF 0.00000000 Waves
{ "type": 13, "id": "2zdvycWQd3mC5j7QTTSbJ9m9RXmyj3upDjbg8DBsJ44k", "fee": 1800000, "feeAssetId": null, "timestamp": 1666760543465, "version": 2, "chainId": 84, "sender": "3N1rgNAEfetRH87WQqJan6zSy7Wp1byercW", "senderPublicKey": "4dLVvLszUGcr1uHnDX72QuZxqaZTntQWRbbhn8YQDgA4", "proofs": [ "XT2BR38CLRScQn3G7nHodRVa6RKFnxjofmwCegP2Kp8USXuKPF7hWcTtUo898oe5GgomA7xvvGDSu1TTaEnmTSa" ], "script": "base64:BgJmCAISBAoCCAgSCQoHCAgICAgICBIKCggICAgICAgICBIDCgEIEgQKAggIEgYKBAgICAgSCAoGCAgIAQEBEgkKBwgICAgBAQESBQoDCAEEEgQKAggIEgUKAwgICBIECgIICBIDCgEINQAHVkVSU0lPTgIFMS4wLjABDmdldFN0cmluZ0J5S2V5AQNrZXkJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwUDa2V5AgAACHVzZXJEYXBwCQEFdmFsdWUBCQCmCAEJAQ5nZXRTdHJpbmdCeUtleQECD2NvbmZfdXNlcnNfZGFwcAALZmVlUmVjZWl2ZXIJAQ5nZXRTdHJpbmdCeUtleQECEWNvbmZfZmVlX3JlY2VpdmVyAAtzaWduQXNzZXRJZAkA2QQBCQEOZ2V0U3RyaW5nQnlLZXkBAhhjb25mX2FjY2VwdGVkX2Fzc2V0X1NJR04ABWNocmlzCQEOZ2V0U3RyaW5nQnlLZXkBAgxjb25mX2FkbWluXzEBD2dldEludGVnZXJCeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCaCAIFBHRoaXMFA2tleQAAAQ9nZXRCb29sZWFuQnlLZXk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lbnRyeQUDbmlsCQACAQICbm8Ar3Sm+g==", "height": 2288936, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FM3GR4mX8F3GfyxApi8R7fPotqqREwvNcJ9MR8GciHC Next: EPdFjWDJjqVsMnkfaNxDDRo7eZmfhrsD4bo7GWqCWGHx Diff:
Old | New | Differences | |
---|---|---|---|
439 | 439 | then throw("Cannot delete ticket that sold already") | |
440 | 440 | else { | |
441 | 441 | let aP = h(E(r, t)) | |
442 | - | [DeleteEntry(I(r, t, J)), DeleteEntry(M(r, t, J)), DeleteEntry(K(r, t, J)), DeleteEntry(L(r, t, J)), DeleteEntry(N(r, t, J)), DeleteEntry(P(r, t, J)), DeleteEntry(R(r, t, J)), IntegerEntry(E(r, t), (aP - 1))] | |
442 | + | [DeleteEntry(I(r, t, J)), DeleteEntry(M(r, t, J)), DeleteEntry(K(r, t, J)), DeleteEntry(L(r, t, J)), DeleteEntry(N(r, t, J)), DeleteEntry(P(r, t, J)), DeleteEntry(R(r, t, J)), DeleteEntry(S(r, t, J)), IntegerEntry(E(r, t), (aP - 1))] | |
443 | 443 | } | |
444 | 444 | } | |
445 | 445 | } | |
533 | 533 | } | |
534 | 534 | ||
535 | 535 | ||
536 | + | ||
537 | + | @Callable(ap) | |
538 | + | func deleteEntry (bC) = { | |
539 | + | let r = toString(ap.caller) | |
540 | + | if ((r == g)) | |
541 | + | then [DeleteEntry(bC)] | |
542 | + | else throw("no") | |
543 | + | } | |
544 | + | ||
545 | + |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "1.0.0" | |
5 | 5 | ||
6 | 6 | func b (c) = valueOrElse(getString(this, c), "") | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | let d = value(addressFromString(b("conf_users_dapp"))) | |
10 | 10 | ||
11 | 11 | let e = b("conf_fee_receiver") | |
12 | 12 | ||
13 | 13 | let f = fromBase58String(b("conf_accepted_asset_SIGN")) | |
14 | 14 | ||
15 | 15 | let g = b("conf_admin_1") | |
16 | 16 | ||
17 | 17 | func h (c) = valueOrElse(getInteger(this, c), 0) | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func i (c) = valueOrElse(getBoolean(this, c), false) | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | let j = valueOrElse(getBoolean(d, "conf_dapp_is_running"), true) | |
24 | 24 | ||
25 | 25 | let k = valueOrElse(getString(d, "conf_maintenance_msg"), "") | |
26 | 26 | ||
27 | 27 | let l = "SUSPENDED" | |
28 | 28 | ||
29 | 29 | let m = "UNREGISTERED" | |
30 | 30 | ||
31 | 31 | func n (o) = if (contains(o, "/")) | |
32 | 32 | then if (if ((76 > size(o))) | |
33 | 33 | then (size(split(o, "/")[0]) == 59) | |
34 | 34 | else false) | |
35 | 35 | then (16 > size(split(o, "/")[1])) | |
36 | 36 | else false | |
37 | 37 | else false | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | let p = 2 | |
41 | 41 | ||
42 | 42 | func q (r) = ("user_status_" + r) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func s (t) = ("get_event_owner_" + t) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func u (r,t) = ((("event_addedDate_" + t) + "_") + r) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func v (r,t) = ((("event_date_" + t) + "_") + r) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func w (r,t) = ((("event_name_" + t) + "_") + r) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func x (r,t) = ((("event_desc_" + t) + "_") + r) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func y (r,t) = ((("event_displayCid_" + t) + "_") + r) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func z (r,t) = ((("event_tags_" + t) + "_") + r) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func A (r,t) = ((("event_flag_" + t) + "_") + r) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func B (r,t) = ((("event_note_" + t) + "_") + r) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func C (r,t) = ((("event_crawlerCid_" + t) + "_") + r) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func D (r,t) = ((("event_type_" + t) + "_") + r) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func E (r,t) = ((("event_totalTicketTypes_" + t) + "_") + r) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func F (r,t) = ((("event_totalIssued_" + t) + "_") + r) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func G (r,t) = ((("event_canceled_" + t) + "_") + r) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func H (r,t) = ((("event_canceledReason_" + t) + "_") + r) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func I (r,t,J) = ((((("ticket_name_" + t) + "_") + r) + "_") + J) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func K (r,t,J) = ((((("ticket_desc_" + t) + "_") + r) + "_") + J) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func L (r,t,J) = ((((("ticket_price_" + t) + "_") + r) + "_") + J) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func M (r,t,J) = ((((("ticket_date_" + t) + "_") + r) + "_") + J) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func N (r,t,J) = ((((("ticket_maxAvailable_" + t) + "_") + r) + "_") + J) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func O (r,t,J) = ((((("ticket_sold_" + t) + "_") + r) + "_") + J) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func P (r,t,J) = ((((("ticket_onSale_" + t) + "_") + r) + "_") + J) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func Q (r,t,J) = ((((("ticket_amountUsed_" + t) + "_") + r) + "_") + J) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func R (r,t,J) = ((((("ticket_maxUse_" + t) + "_") + r) + "_") + J) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func S (r,t,J) = ((((("ticket_totalIssued_" + t) + "_") + r) + "_") + J) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func T (U,V) = if ((size(U) == 0)) | |
121 | 121 | then throw("Field cannot be is empty") | |
122 | 122 | else if ((size(U) > V)) | |
123 | 123 | then throw((U + " is too long")) | |
124 | 124 | else true | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func W (X) = (0 > X) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func Y (t) = valueOrElse(getString(this, s(t)), "") | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func Z (r) = { | |
134 | 134 | let aa = valueOrElse(getString(d, q(r)), m) | |
135 | 135 | if ((aa == m)) | |
136 | 136 | then "Register this account first with \"Account\" tab" | |
137 | 137 | else if ((aa == l)) | |
138 | 138 | then "Account suspended" | |
139 | 139 | else "" | |
140 | 140 | } | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func ab (ac) = containsElement(["online", "offline", "both"], ac) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func ad (r,ae,af,ag,ah,ac,ai) = { | |
147 | 147 | let aj = Z(r) | |
148 | 148 | if ((aj != "")) | |
149 | 149 | then throw(aj) | |
150 | 150 | else if ((size(ae) == 0)) | |
151 | 151 | then throw("Display CID cannot be empty") | |
152 | 152 | else if (!(n(ae))) | |
153 | 153 | then throw("Problem with CID") | |
154 | 154 | else if (!(T(af, 200))) | |
155 | 155 | then throw("100 Char. max name") | |
156 | 156 | else if (!(ab(ac))) | |
157 | 157 | then throw("Wrong event type") | |
158 | 158 | else if (!(T(ag, 1000))) | |
159 | 159 | then throw("1000 Char. max description") | |
160 | 160 | else if (!(T(ai, 1000))) | |
161 | 161 | then throw("1000 Char. max date") | |
162 | 162 | else if ((size(split(ah, ",")) > 5)) | |
163 | 163 | then throw("5 tags max.") | |
164 | 164 | else "" | |
165 | 165 | } | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func ak (t,r,af,ag,al,am,an) = { | |
169 | 169 | let aj = Z(r) | |
170 | 170 | if ((aj != "")) | |
171 | 171 | then throw(aj) | |
172 | 172 | else if (!(T(af, 200))) | |
173 | 173 | then throw("100 Char. max name") | |
174 | 174 | else if (!(T(ag, 1000))) | |
175 | 175 | then throw("1000 Char. max description") | |
176 | 176 | else if (if (if (W(al)) | |
177 | 177 | then true | |
178 | 178 | else W(an)) | |
179 | 179 | then true | |
180 | 180 | else W(am)) | |
181 | 181 | then throw("Positive amount only") | |
182 | 182 | else if (!(T(ag, 1000))) | |
183 | 183 | then throw("1000 Char. max description") | |
184 | 184 | else "" | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func ao (ap) = if (!(j)) | |
189 | 189 | then throw(k) | |
190 | 190 | else $Tuple3(toBase58String(ap.transactionId), toBase58String(ap.caller.bytes), lastBlock.timestamp) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func aq (ap) = if ((size(ap.payments) == 0)) | |
194 | 194 | then throw("No payment attached") | |
195 | 195 | else { | |
196 | 196 | let ar = value(ap.payments[0]) | |
197 | 197 | let as = value(ar.amount) | |
198 | 198 | $Tuple2(ar, as) | |
199 | 199 | } | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func at (ap,au,av) = { | |
203 | 203 | let aw = aq(ap) | |
204 | 204 | let ar = aw._1 | |
205 | 205 | let as = aw._2 | |
206 | 206 | if (!(isDefined(ar.assetId))) | |
207 | 207 | then throw("Wrong asset attached") | |
208 | 208 | else { | |
209 | 209 | let ax = if (if ((size(au) > 0)) | |
210 | 210 | then (toBase58String(value(ar.assetId)) == au) | |
211 | 211 | else false) | |
212 | 212 | then ar.assetId | |
213 | 213 | else throw("Wrong asset attached") | |
214 | 214 | if ((av != as)) | |
215 | 215 | then throw("Payment amount don't match") | |
216 | 216 | else $Tuple2(as, ax) | |
217 | 217 | } | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func ay (t,r) = { | |
222 | 222 | let az = Y(t) | |
223 | 223 | if ((az == "")) | |
224 | 224 | then throw("Event not found") | |
225 | 225 | else (az == r) | |
226 | 226 | } | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func aA (r,t,J) = { | |
230 | 230 | let aB = b(I(r, t, J)) | |
231 | 231 | (size(aB) != 0) | |
232 | 232 | } | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | func aC (aD,t) = i(G(aD, t)) | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | @Callable(aE) | |
239 | 239 | func setConf (c,aF) = { | |
240 | 240 | let r = toString(aE.caller) | |
241 | 241 | if (containsElement([g, toString(this)], r)) | |
242 | 242 | then if (contains(c, "conf_")) | |
243 | 243 | then [StringEntry(c, aF)] | |
244 | 244 | else throw("Entries starting with conf_ only") | |
245 | 245 | else throw("You are not allowed to change this") | |
246 | 246 | } | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | ||
250 | 250 | @Callable(ap) | |
251 | 251 | func addEvent (af,ag,ah,ae,aG,ac,ai) = { | |
252 | 252 | let aH = ao(ap) | |
253 | 253 | let t = aH._1 | |
254 | 254 | let r = aH._2 | |
255 | 255 | let aI = aH._3 | |
256 | 256 | let aj = Z(r) | |
257 | 257 | if ((aj != "")) | |
258 | 258 | then throw(aj) | |
259 | 259 | else { | |
260 | 260 | let aJ = ad(r, ae, af, ag, ah, ac, ai) | |
261 | 261 | if ((aJ != "")) | |
262 | 262 | then throw("Something went wrong!") | |
263 | 263 | else [IntegerEntry(u(r, t), aI), StringEntry(v(r, t), ai), StringEntry(w(r, t), af), StringEntry(x(r, t), ag), StringEntry(y(r, t), ae), StringEntry(z(r, t), ah), StringEntry(C(r, t), aG), StringEntry(D(r, t), ac), IntegerEntry(F(r, t), 0), BooleanEntry(G(r, t), false), StringEntry(s(t), r)] | |
264 | 264 | } | |
265 | 265 | } | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | ||
269 | 269 | @Callable(ap) | |
270 | 270 | func editEvent (t,af,ag,ah,ae,aG,ac,ai) = if (!(j)) | |
271 | 271 | then throw(k) | |
272 | 272 | else { | |
273 | 273 | let r = toBase58String(ap.caller.bytes) | |
274 | 274 | let aj = Z(r) | |
275 | 275 | if ((aj != "")) | |
276 | 276 | then throw(aj) | |
277 | 277 | else { | |
278 | 278 | let aJ = ad(r, ae, af, ag, ah, ac, ai) | |
279 | 279 | if ((aJ != "")) | |
280 | 280 | then throw("Something went wrong!") | |
281 | 281 | else { | |
282 | 282 | let aK = b(w(r, t)) | |
283 | 283 | if ((aK == "")) | |
284 | 284 | then throw("Entry not found") | |
285 | 285 | else { | |
286 | 286 | let aL = b(A(r, t)) | |
287 | 287 | if ((aL == "ILLEGAL")) | |
288 | 288 | then throw("Cannot update ILLEGAL Event") | |
289 | 289 | else [StringEntry(w(r, t), af), StringEntry(v(r, t), ai), StringEntry(x(r, t), ag), StringEntry(z(r, t), ah), StringEntry(D(r, t), ac), StringEntry(C(r, t), aG)] | |
290 | 290 | } | |
291 | 291 | } | |
292 | 292 | } | |
293 | 293 | } | |
294 | 294 | ||
295 | 295 | ||
296 | 296 | ||
297 | 297 | @Callable(ap) | |
298 | 298 | func deleteEvent (t) = { | |
299 | 299 | let aM = ao(ap) | |
300 | 300 | let aN = aM._1 | |
301 | 301 | let r = aM._2 | |
302 | 302 | let aI = aM._3 | |
303 | 303 | let aj = Z(r) | |
304 | 304 | if ((aj != "")) | |
305 | 305 | then throw(aj) | |
306 | 306 | else if (!(ay(t, r))) | |
307 | 307 | then throw("You are not the owner of this event") | |
308 | 308 | else { | |
309 | 309 | let aO = h(F(r, t)) | |
310 | 310 | if ((aO != 0)) | |
311 | 311 | then throw("Cannot delete event with already sold tickets") | |
312 | 312 | else { | |
313 | 313 | let aP = h(E(r, t)) | |
314 | 314 | if ((aP > 0)) | |
315 | 315 | then throw("Delete all tickets first") | |
316 | 316 | else [DeleteEntry(u(r, t)), DeleteEntry(v(r, t)), DeleteEntry(w(r, t)), DeleteEntry(x(r, t)), DeleteEntry(y(r, t)), DeleteEntry(z(r, t)), DeleteEntry(C(r, t)), DeleteEntry(D(r, t)), DeleteEntry(F(r, t)), DeleteEntry(G(r, t)), DeleteEntry(s(t))] | |
317 | 317 | } | |
318 | 318 | } | |
319 | 319 | } | |
320 | 320 | ||
321 | 321 | ||
322 | 322 | ||
323 | 323 | @Callable(ap) | |
324 | 324 | func cancelEvent (t,aQ) = { | |
325 | 325 | let aR = ao(ap) | |
326 | 326 | let aN = aR._1 | |
327 | 327 | let r = aR._2 | |
328 | 328 | let aI = aR._3 | |
329 | 329 | let aj = Z(r) | |
330 | 330 | if ((aj != "")) | |
331 | 331 | then throw(aj) | |
332 | 332 | else if (!(ay(t, r))) | |
333 | 333 | then throw("You are not the owner of this event") | |
334 | 334 | else [BooleanEntry(G(r, t), true), StringEntry(H(r, t), aQ)] | |
335 | 335 | } | |
336 | 336 | ||
337 | 337 | ||
338 | 338 | ||
339 | 339 | @Callable(ap) | |
340 | 340 | func flagEvent (t,aS,aL,aT) = { | |
341 | 341 | let aU = ao(ap) | |
342 | 342 | let aN = aU._1 | |
343 | 343 | let r = aU._2 | |
344 | 344 | if (containsElement([g, toString(this)], r)) | |
345 | 345 | then if (containsElement(["", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], aL)) | |
346 | 346 | then [StringEntry(A(aS, t), aL), StringEntry(B(aS, t), aT)] | |
347 | 347 | else throw(("Unknow status " + aL)) | |
348 | 348 | else throw("You are not allowed") | |
349 | 349 | } | |
350 | 350 | ||
351 | 351 | ||
352 | 352 | ||
353 | 353 | @Callable(ap) | |
354 | 354 | func addTicket (t,af,ag,al,am,aV) = { | |
355 | 355 | let aW = ao(ap) | |
356 | 356 | let aN = aW._1 | |
357 | 357 | let r = aW._2 | |
358 | 358 | let ai = aW._3 | |
359 | 359 | let aj = Z(r) | |
360 | 360 | if ((aj != "")) | |
361 | 361 | then throw(aj) | |
362 | 362 | else if (aC(r, t)) | |
363 | 363 | then throw("Event have been canceled") | |
364 | 364 | else if (!(ay(t, r))) | |
365 | 365 | then throw("You are not the owner of this event") | |
366 | 366 | else { | |
367 | 367 | let aX = ak(t, r, af, ag, al, am, aV) | |
368 | 368 | if ((aX != "")) | |
369 | 369 | then throw("Something went wrong!") | |
370 | 370 | else { | |
371 | 371 | let aP = h(E(r, t)) | |
372 | 372 | [StringEntry(I(r, t, aN), af), IntegerEntry(M(r, t, aN), ai), StringEntry(K(r, t, aN), ag), IntegerEntry(L(r, t, aN), al), IntegerEntry(N(r, t, aN), am), BooleanEntry(P(r, t, aN), true), IntegerEntry(R(r, t, aN), aV), IntegerEntry(S(r, t, aN), 0), IntegerEntry(E(r, t), (aP + 1))] | |
373 | 373 | } | |
374 | 374 | } | |
375 | 375 | } | |
376 | 376 | ||
377 | 377 | ||
378 | 378 | ||
379 | 379 | @Callable(ap) | |
380 | 380 | func editTicket (J,t,af,ag,al,am,an) = { | |
381 | 381 | let aY = ao(ap) | |
382 | 382 | let aN = aY._1 | |
383 | 383 | let r = aY._2 | |
384 | 384 | let ai = aY._3 | |
385 | 385 | let aj = Z(r) | |
386 | 386 | if ((aj != "")) | |
387 | 387 | then throw(aj) | |
388 | 388 | else if (!(ay(t, r))) | |
389 | 389 | then throw("You are not the owner of this event") | |
390 | 390 | else if (!(aA(r, t, J))) | |
391 | 391 | then throw("Ticket not found") | |
392 | 392 | else { | |
393 | 393 | let aX = ak(t, r, af, ag, al, am, an) | |
394 | 394 | if ((aX != "")) | |
395 | 395 | then throw("Something went wrong!") | |
396 | 396 | else { | |
397 | 397 | let aZ = valueOrElse(getInteger(O(r, t, J)), 0) | |
398 | 398 | if ((aZ > am)) | |
399 | 399 | then throw("Max tickets available cannot be lower than amount already sold") | |
400 | 400 | else [StringEntry(I(r, t, J), af), StringEntry(K(r, t, J), ag), IntegerEntry(L(r, t, J), al), IntegerEntry(N(r, t, J), am), IntegerEntry(R(r, t, aN), an)] | |
401 | 401 | } | |
402 | 402 | } | |
403 | 403 | } | |
404 | 404 | ||
405 | 405 | ||
406 | 406 | ||
407 | 407 | @Callable(ap) | |
408 | 408 | func pauseTicketSale (t,J,ba) = { | |
409 | 409 | let bb = ao(ap) | |
410 | 410 | let aN = bb._1 | |
411 | 411 | let r = bb._2 | |
412 | 412 | let ai = bb._3 | |
413 | 413 | let aj = Z(r) | |
414 | 414 | if ((aj != "")) | |
415 | 415 | then throw(aj) | |
416 | 416 | else if (!(ay(t, r))) | |
417 | 417 | then throw("You are not the owner of this event") | |
418 | 418 | else [BooleanEntry(P(r, t, aN), ba)] | |
419 | 419 | } | |
420 | 420 | ||
421 | 421 | ||
422 | 422 | ||
423 | 423 | @Callable(ap) | |
424 | 424 | func deleteTicket (J,t) = { | |
425 | 425 | let bc = ao(ap) | |
426 | 426 | let aN = bc._1 | |
427 | 427 | let r = bc._2 | |
428 | 428 | let ai = bc._3 | |
429 | 429 | let aj = Z(r) | |
430 | 430 | if ((aj != "")) | |
431 | 431 | then throw(aj) | |
432 | 432 | else if (!(ay(t, r))) | |
433 | 433 | then throw("You are not the owner of this event") | |
434 | 434 | else if (!(aA(r, t, J))) | |
435 | 435 | then throw("Ticket not found") | |
436 | 436 | else { | |
437 | 437 | let bd = h(O(r, t, J)) | |
438 | 438 | if ((bd != 0)) | |
439 | 439 | then throw("Cannot delete ticket that sold already") | |
440 | 440 | else { | |
441 | 441 | let aP = h(E(r, t)) | |
442 | - | [DeleteEntry(I(r, t, J)), DeleteEntry(M(r, t, J)), DeleteEntry(K(r, t, J)), DeleteEntry(L(r, t, J)), DeleteEntry(N(r, t, J)), DeleteEntry(P(r, t, J)), DeleteEntry(R(r, t, J)), IntegerEntry(E(r, t), (aP - 1))] | |
442 | + | [DeleteEntry(I(r, t, J)), DeleteEntry(M(r, t, J)), DeleteEntry(K(r, t, J)), DeleteEntry(L(r, t, J)), DeleteEntry(N(r, t, J)), DeleteEntry(P(r, t, J)), DeleteEntry(R(r, t, J)), DeleteEntry(S(r, t, J)), IntegerEntry(E(r, t), (aP - 1))] | |
443 | 443 | } | |
444 | 444 | } | |
445 | 445 | } | |
446 | 446 | ||
447 | 447 | ||
448 | 448 | ||
449 | 449 | @Callable(ap) | |
450 | 450 | func buyTicket (J,t,aD) = { | |
451 | 451 | let be = ao(ap) | |
452 | 452 | let aN = be._1 | |
453 | 453 | let r = be._2 | |
454 | 454 | let ai = be._3 | |
455 | 455 | let bf = valueOrElse(h("total_tickets_issued"), 0) | |
456 | 456 | if (!(ay(t, aD))) | |
457 | 457 | then throw("Event ID and Issuer don't match") | |
458 | 458 | else if (!(aA(aD, t, J))) | |
459 | 459 | then throw("Ticket not found") | |
460 | 460 | else { | |
461 | 461 | let bg = b(w(aD, t)) | |
462 | 462 | if ((bg == "")) | |
463 | 463 | then throw("Art doesn't exist") | |
464 | 464 | else if (aC(aD, t)) | |
465 | 465 | then throw("Event have been canceled") | |
466 | 466 | else { | |
467 | 467 | let bh = i(P(aD, t, J)) | |
468 | 468 | if (!(bh)) | |
469 | 469 | then throw("Tickets not for sale") | |
470 | 470 | else { | |
471 | 471 | let bd = h(O(aD, t, J)) | |
472 | 472 | let bi = h(L(aD, t, J)) | |
473 | 473 | let au = toBase58String(f) | |
474 | 474 | let bj = at(ap, au, bi) | |
475 | 475 | let as = bj._1 | |
476 | 476 | let ax = bj._2 | |
477 | 477 | let bk = h(N(aD, t, J)) | |
478 | 478 | let bl = fraction(as, p, 100) | |
479 | 479 | let bm = (as - bl) | |
480 | 480 | if ((bd == bk)) | |
481 | 481 | then throw("Art sold out") | |
482 | 482 | else { | |
483 | 483 | let bn = (bd + 1) | |
484 | 484 | let bo = ((((((((((("Organizer: " + aD) + ", | |
485 | 485 | EventID: ") + t) + ", | |
486 | 486 | TicketID: ") + J) + ", | |
487 | 487 | EventName: ") + bg) + ", | |
488 | 488 | Issue: ") + toString(bn)) + "/") + toString(bk)) | |
489 | 489 | let bp = Issue(("ST_" + toString((bf + 1))), bo, 1, 0, false) | |
490 | 490 | let bq = calculateAssetId(bp) | |
491 | 491 | let br = if ((bn == bk)) | |
492 | 492 | then false | |
493 | 493 | else true | |
494 | 494 | let bs = ap.caller | |
495 | 495 | let bt = ((((((((("ticket_sold_" + toString(bn)) + "_of_") + toString(bk)) + "_") + t) + "_") + aD) + "_") + J) | |
496 | 496 | let bu = ((((((((toString(bs) + "_") + toString(ai)) + "_") + aN) + "_") + toString(as)) + "_") + toBase58String(bq)) | |
497 | 497 | let bv = StringEntry(bt, bu) | |
498 | 498 | let aO = h(F(aD, t)) | |
499 | 499 | let bw = h(S(aD, t, J)) | |
500 | 500 | let bx = [IntegerEntry(O(aD, t, J), bn), StringEntry(("nft_" + toBase58String(bq)), bt), IntegerEntry("total_nft_issued", (bf + 1)), IntegerEntry(F(aD, t), (aO + 1)), IntegerEntry(S(aD, t, J), (bw + 1)), StringEntry((("ST_" + toString((bf + 1))) + "_assetId"), toBase58String(bq)), BooleanEntry(P(aD, t, J), br), IntegerEntry(Q(aD, t, J), 0), bp, ScriptTransfer(Address(fromBase58String(aD)), bm, ax), ScriptTransfer(bs, 1, bq), ScriptTransfer(Address(fromBase58String(e)), bl, ax)] | |
501 | 501 | bv :: bx | |
502 | 502 | } | |
503 | 503 | } | |
504 | 504 | } | |
505 | 505 | } | |
506 | 506 | } | |
507 | 507 | ||
508 | 508 | ||
509 | 509 | ||
510 | 510 | @Callable(ap) | |
511 | 511 | func useTicket (t,aD) = { | |
512 | 512 | let by = ao(ap) | |
513 | 513 | let aN = by._1 | |
514 | 514 | let r = by._2 | |
515 | 515 | let ai = by._3 | |
516 | 516 | let bz = aq(ap) | |
517 | 517 | let ar = bz._1 | |
518 | 518 | let as = bz._2 | |
519 | 519 | if (!(isDefined(ar.assetId))) | |
520 | 520 | then throw("Wrong asset attached") | |
521 | 521 | else { | |
522 | 522 | let J = toBase58String(value(ar.assetId)) | |
523 | 523 | if (!(aA(aD, t, J))) | |
524 | 524 | then throw("Ticket not found") | |
525 | 525 | else { | |
526 | 526 | let bA = h(Q(aD, t, J)) | |
527 | 527 | let bB = h(R(aD, t, J)) | |
528 | 528 | if ((bB == bA)) | |
529 | 529 | then throw((("Ticket used " + toString(bA)) + " times already")) | |
530 | 530 | else [IntegerEntry(Q(aD, t, J), (bA + 1)), ScriptTransfer(Address(fromBase58String(r)), 1, ar.assetId)] | |
531 | 531 | } | |
532 | 532 | } | |
533 | 533 | } | |
534 | 534 | ||
535 | 535 | ||
536 | + | ||
537 | + | @Callable(ap) | |
538 | + | func deleteEntry (bC) = { | |
539 | + | let r = toString(ap.caller) | |
540 | + | if ((r == g)) | |
541 | + | then [DeleteEntry(bC)] | |
542 | + | else throw("no") | |
543 | + | } | |
544 | + | ||
545 | + |
github/deemru/w8io/169f3d6 72.63 ms ◑