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