tx · bzyAH92iAHm7XFjzt4E2bHtNhUFLCUzSWgWBMkQxBNR

3N1rgNAEfetRH87WQqJan6zSy7Wp1byercW:  -0.01800000 Waves

2022.10.26 07:46 [2288920] smart account 3N1rgNAEfetRH87WQqJan6zSy7Wp1byercW > SELF 0.00000000 Waves

{ "type": 13, "id": "bzyAH92iAHm7XFjzt4E2bHtNhUFLCUzSWgWBMkQxBNR", "fee": 1800000, "feeAssetId": null, "timestamp": 1666759602114, "version": 2, "chainId": 84, "sender": "3N1rgNAEfetRH87WQqJan6zSy7Wp1byercW", "senderPublicKey": "4dLVvLszUGcr1uHnDX72QuZxqaZTntQWRbbhn8YQDgA4", "proofs": [ "KSkNFF5FvjLQ8Q3WtKsTKk9BvoZw1QuXhmxQWEvZxQZzurX2Ltxpruk1uoQrB7XFfcvtf19JGmWUDJJEN2Hquwc" ], "script": "base64:BgJhCAISBAoCCAgSCQoHCAgICAgICBIKCggICAgICAgICBIDCgEIEgQKAggIEgYKBAgICAgSCAoGCAgIAQEBEgkKBwgICAgBAQESBQoDCAEEEgQKAggIEgUKAwgICBIECgIICDUAB1ZFUlNJT04CBTEuMC4wAQ5nZXRTdHJpbmdCeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCdCAIFBHRoaXMFA2tleQIAAAh1c2VyRGFwcAkBBXZhbHVlAQkApggBCQEOZ2V0U3RyaW5nQnlLZXkBAg9jb25mX3VzZXJzX2RhcHAAC2ZlZVJlY2VpdmVyCQEOZ2V0U3RyaW5nQnlLZXkBAhFjb25mX2ZlZV9yZWNlaXZlcgALc2lnbkFzc2V0SWQJANkEAQkBDmdldFN0cmluZ0J5S2V5AQIYY29uZl9hY2NlcHRlZF9hc3NldF9TSUdOAAVjaHJpcwkBDmdldFN0cmluZ0J5S2V5AQIMY29uZl9hZG1pbl8xAQ9nZXRJbnRlZ2VyQnlLZXkBA2tleQkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBQNrZXkAAAEPZ2V0Qm9vbGVhbk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SWQDCQEBIQEJAQt0aWNrZXRFeGlzdAMFBmlzc3VlcgUHZXZlbnRJZAUIdGlja2V0SWQJAAIBAhBUaWNrZXQgbm90IGZvdW5kBAphbW91bnRVc2VkCQEPZ2V0SW50ZWdlckJ5S2V5AQkBE2tleVRpY2tldEFtb3VudFVzZWQDBQZpc3N1ZXIFB2V2ZW50SWQFCHRpY2tldElkBAxtYXhVc2luZ1RpbWUJAQ9nZXRJbnRlZ2VyQnlLZXkBCQEPa2V5VGlja2V0TWF4VXNlAwUGaXNzdWVyBQdldmVudElkBQh0aWNrZXRJZAMJAAACBQxtYXhVc2luZ1RpbWUFCmFtb3VudFVzZWQJAAIBCQCsAgIJAKwCAgIMVGlja2V0IHVzZWQgCQCkAwEFCmFtb3VudFVzZWQCDiB0aW1lcyBhbHJlYWR5CQDMCAIJAQxJbnRlZ2VyRW50cnkCCQETa2V5VGlja2V0QW1vdW50VXNlZAMFBmlzc3VlcgUHZXZlbnRJZAUIdGlja2V0SWQJAGQCBQphbW91bnRVc2VkAAEJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwkBB0FkZHJlc3MBCQDZBAEFBmNhbGxlcgABCAUHcGF5bWVudAdhc3NldElkBQNuaWwAaIMwKg==", "height": 2288920, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5gwopvTbjWqqHoJburCNDHWxg8YqJcaJ8uo6aQAJ16bk Next: FM3GR4mX8F3GfyxApi8R7fPotqqREwvNcJ9MR8GciHC Diff:
OldNewDifferences
431431 then throw(checkUser)
432432 else if (!(isEventOwner(eventId, caller)))
433433 then throw("You are not the owner of this event")
434- else if (!(ticketExist(caller, eventId, ticketId)))
435- then throw("Ticket not found")
436- else {
437- let amountSold = getIntegerByKey(keyTicketSold(caller, eventId, ticketId))
438- if ((amountSold != 0))
439- then throw("Cannot delete ticket that sold already")
440- else {
441- let totalTicketTypeForEvent = getIntegerByKey(keyEventTotalTicketTypes(caller, eventId))
434+ else {
435+ let amountSold = getIntegerByKey(keyTicketSold(caller, eventId, ticketId))
436+ if ((amountSold != 0))
437+ then throw("Cannot delete ticket that sold already")
438+ else {
439+ let totalTicketTypeForEvent = getIntegerByKey(keyEventTotalTicketTypes(caller, eventId))
442440 [DeleteEntry(keyTicketName(caller, eventId, ticketId)), DeleteEntry(keyTicketDate(caller, eventId, ticketId)), DeleteEntry(keyTicketDesc(caller, eventId, ticketId)), DeleteEntry(keyTicketPrice(caller, eventId, ticketId)), DeleteEntry(keyTicketMaxAvailable(caller, eventId, ticketId)), DeleteEntry(keyTicketOnSale(caller, eventId, ticketId)), DeleteEntry(keyTicketMaxUse(caller, eventId, ticketId)), IntegerEntry(keyEventTotalTicketTypes(caller, eventId), (totalTicketTypeForEvent - 1))]
443- }
444- }
441+ }
442+ }
445443 }
446444
447445
448446
449447 @Callable(i)
450448 func buyTicket (ticketId,eventId,issuer) = {
451- let $t01707117109 = idCallerDate(i)
452- let id = $t01707117109._1
453- let caller = $t01707117109._2
454- let date = $t01707117109._3
449+ let $t01707217110 = idCallerDate(i)
450+ let id = $t01707217110._1
451+ let caller = $t01707217110._2
452+ let date = $t01707217110._3
455453 let totalNFT = valueOrElse(getIntegerByKey("total_tickets_issued"), 0)
456454 if (!(isEventOwner(eventId, issuer)))
457455 then throw("Event ID and Issuer don't match")
471469 let amountSold = getIntegerByKey(keyTicketSold(issuer, eventId, ticketId))
472470 let ticketPrice = getIntegerByKey(keyTicketPrice(issuer, eventId, ticketId))
473471 let priceAssetId = toBase58String(signAssetId)
474- let $t01795518029 = validatePriceAssetId(i, priceAssetId, ticketPrice)
475- let amount = $t01795518029._1
476- let assetId = $t01795518029._2
472+ let $t01795618030 = validatePriceAssetId(i, priceAssetId, ticketPrice)
473+ let amount = $t01795618030._1
474+ let assetId = $t01795618030._2
477475 let maxCanSell = getIntegerByKey(keyTicketMaxAvailable(issuer, eventId, ticketId))
478476 let amountForSign = fraction(amount, signCut, 100)
479477 let amountForOrganizer = (amount - amountForSign)
509507
510508 @Callable(i)
511509 func useTicket (eventId,issuer) = {
512- let $t02030820346 = idCallerDate(i)
513- let id = $t02030820346._1
514- let caller = $t02030820346._2
515- let date = $t02030820346._3
516- let $t02035220388 = isPayment(i)
517- let payment = $t02035220388._1
518- let amount = $t02035220388._2
510+ let $t02030920347 = idCallerDate(i)
511+ let id = $t02030920347._1
512+ let caller = $t02030920347._2
513+ let date = $t02030920347._3
514+ let $t02035320389 = isPayment(i)
515+ let payment = $t02035320389._1
516+ let amount = $t02035320389._2
519517 if (!(isDefined(payment.assetId)))
520518 then throw("Wrong asset attached")
521519 else {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let VERSION = "1.0.0"
55
66 func getStringByKey (key) = valueOrElse(getString(this, key), "")
77
88
99 let userDapp = value(addressFromString(getStringByKey("conf_users_dapp")))
1010
1111 let feeReceiver = getStringByKey("conf_fee_receiver")
1212
1313 let signAssetId = fromBase58String(getStringByKey("conf_accepted_asset_SIGN"))
1414
1515 let chris = getStringByKey("conf_admin_1")
1616
1717 func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0)
1818
1919
2020 func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false)
2121
2222
2323 let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true)
2424
2525 let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "")
2626
2727 let userSuspended = "SUSPENDED"
2828
2929 let userUnregistered = "UNREGISTERED"
3030
3131 func validateCID (cid) = if (contains(cid, "/"))
3232 then if (if ((76 > size(cid)))
3333 then (size(split(cid, "/")[0]) == 59)
3434 else false)
3535 then (16 > size(split(cid, "/")[1]))
3636 else false
3737 else false
3838
3939
4040 let signCut = 2
4141
4242 func keyUserStatus (caller) = ("user_status_" + caller)
4343
4444
4545 func keyEventOwnerByEventId (eventId) = ("get_event_owner_" + eventId)
4646
4747
4848 func keyEventAddedDate (caller,eventId) = ((("event_addedDate_" + eventId) + "_") + caller)
4949
5050
5151 func keyEventDate (caller,eventId) = ((("event_date_" + eventId) + "_") + caller)
5252
5353
5454 func keyEventName (caller,eventId) = ((("event_name_" + eventId) + "_") + caller)
5555
5656
5757 func keyEventDesc (caller,eventId) = ((("event_desc_" + eventId) + "_") + caller)
5858
5959
6060 func keyEventDisplayCid (caller,eventId) = ((("event_displayCid_" + eventId) + "_") + caller)
6161
6262
6363 func keyEventTags (caller,eventId) = ((("event_tags_" + eventId) + "_") + caller)
6464
6565
6666 func keyEventFlag (caller,eventId) = ((("event_flag_" + eventId) + "_") + caller)
6767
6868
6969 func keyEventNote (caller,eventId) = ((("event_note_" + eventId) + "_") + caller)
7070
7171
7272 func keyEventCrawler (caller,eventId) = ((("event_crawlerCid_" + eventId) + "_") + caller)
7373
7474
7575 func keyEventType (caller,eventId) = ((("event_type_" + eventId) + "_") + caller)
7676
7777
7878 func keyEventTotalTicketTypes (caller,eventId) = ((("event_totalTicketTypes_" + eventId) + "_") + caller)
7979
8080
8181 func keyEventTotalTicketsIssued (caller,eventId) = ((("event_totalIssued_" + eventId) + "_") + caller)
8282
8383
8484 func keyEventCanceled (caller,eventId) = ((("event_canceled_" + eventId) + "_") + caller)
8585
8686
8787 func keyEventCanceledReason (caller,eventId) = ((("event_canceledReason_" + eventId) + "_") + caller)
8888
8989
9090 func keyTicketName (caller,eventId,ticketId) = ((((("ticket_name_" + eventId) + "_") + caller) + "_") + ticketId)
9191
9292
9393 func keyTicketDesc (caller,eventId,ticketId) = ((((("ticket_desc_" + eventId) + "_") + caller) + "_") + ticketId)
9494
9595
9696 func keyTicketPrice (caller,eventId,ticketId) = ((((("ticket_price_" + eventId) + "_") + caller) + "_") + ticketId)
9797
9898
9999 func keyTicketDate (caller,eventId,ticketId) = ((((("ticket_date_" + eventId) + "_") + caller) + "_") + ticketId)
100100
101101
102102 func keyTicketMaxAvailable (caller,eventId,ticketId) = ((((("ticket_maxAvailable_" + eventId) + "_") + caller) + "_") + ticketId)
103103
104104
105105 func keyTicketSold (caller,eventId,ticketId) = ((((("ticket_sold_" + eventId) + "_") + caller) + "_") + ticketId)
106106
107107
108108 func keyTicketOnSale (caller,eventId,ticketId) = ((((("ticket_onSale_" + eventId) + "_") + caller) + "_") + ticketId)
109109
110110
111111 func keyTicketAmountUsed (caller,eventId,ticketId) = ((((("ticket_amountUsed_" + eventId) + "_") + caller) + "_") + ticketId)
112112
113113
114114 func keyTicketMaxUse (caller,eventId,ticketId) = ((((("ticket_maxUse_" + eventId) + "_") + caller) + "_") + ticketId)
115115
116116
117117 func keyTicketTotalIssued (caller,eventId,ticketId) = ((((("ticket_totalIssued_" + eventId) + "_") + caller) + "_") + ticketId)
118118
119119
120120 func validateString (str,max) = if ((size(str) == 0))
121121 then throw("Field cannot be is empty")
122122 else if ((size(str) > max))
123123 then throw((str + " is too long"))
124124 else true
125125
126126
127127 func validateInt (num) = (0 > num)
128128
129129
130130 func getEventOwnerByEventId (eventId) = valueOrElse(getString(this, keyEventOwnerByEventId(eventId)), "")
131131
132132
133133 func validateUser (caller) = {
134134 let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered)
135135 if ((userStatus == userUnregistered))
136136 then "Register this account first with \"Account\" tab"
137137 else if ((userStatus == userSuspended))
138138 then "Account suspended"
139139 else ""
140140 }
141141
142142
143143 func validateType (type) = containsElement(["online", "offline", "both"], type)
144144
145145
146146 func validateEventData (caller,cidDisplay,name,description,tags,type,date) = {
147147 let checkUser = validateUser(caller)
148148 if ((checkUser != ""))
149149 then throw(checkUser)
150150 else if ((size(cidDisplay) == 0))
151151 then throw("Display CID cannot be empty")
152152 else if (!(validateCID(cidDisplay)))
153153 then throw("Problem with CID")
154154 else if (!(validateString(name, 200)))
155155 then throw("100 Char. max name")
156156 else if (!(validateType(type)))
157157 then throw("Wrong event type")
158158 else if (!(validateString(description, 1000)))
159159 then throw("1000 Char. max description")
160160 else if (!(validateString(date, 1000)))
161161 then throw("1000 Char. max date")
162162 else if ((size(split(tags, ",")) > 5))
163163 then throw("5 tags max.")
164164 else ""
165165 }
166166
167167
168168 func validateTicketData (eventId,caller,name,description,price,maxAvailable,maxUse) = {
169169 let checkUser = validateUser(caller)
170170 if ((checkUser != ""))
171171 then throw(checkUser)
172172 else if (!(validateString(name, 200)))
173173 then throw("100 Char. max name")
174174 else if (!(validateString(description, 1000)))
175175 then throw("1000 Char. max description")
176176 else if (if (if (validateInt(price))
177177 then true
178178 else validateInt(maxUse))
179179 then true
180180 else validateInt(maxAvailable))
181181 then throw("Positive amount only")
182182 else if (!(validateString(description, 1000)))
183183 then throw("1000 Char. max description")
184184 else ""
185185 }
186186
187187
188188 func idCallerDate (i) = if (!(dappRunning))
189189 then throw(maintenanceMSG)
190190 else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
191191
192192
193193 func isPayment (i) = if ((size(i.payments) == 0))
194194 then throw("No payment attached")
195195 else {
196196 let payment = value(i.payments[0])
197197 let amount = value(payment.amount)
198198 $Tuple2(payment, amount)
199199 }
200200
201201
202202 func validatePriceAssetId (i,priceAssetId,artworkPrice) = {
203203 let $t067396775 = isPayment(i)
204204 let payment = $t067396775._1
205205 let amount = $t067396775._2
206206 if (!(isDefined(payment.assetId)))
207207 then throw("Wrong asset attached")
208208 else {
209209 let assetId = if (if ((size(priceAssetId) > 0))
210210 then (toBase58String(value(payment.assetId)) == priceAssetId)
211211 else false)
212212 then payment.assetId
213213 else throw("Wrong asset attached")
214214 if ((artworkPrice != amount))
215215 then throw("Payment amount don't match")
216216 else $Tuple2(amount, assetId)
217217 }
218218 }
219219
220220
221221 func isEventOwner (eventId,caller) = {
222222 let eventOwner = getEventOwnerByEventId(eventId)
223223 if ((eventOwner == ""))
224224 then throw("Event not found")
225225 else (eventOwner == caller)
226226 }
227227
228228
229229 func ticketExist (caller,eventId,ticketId) = {
230230 let ticket = getStringByKey(keyTicketName(caller, eventId, ticketId))
231231 (size(ticket) != 0)
232232 }
233233
234234
235235 func eventIsCanceled (issuer,eventId) = getBooleanByKey(keyEventCanceled(issuer, eventId))
236236
237237
238238 @Callable(invoke)
239239 func setConf (key,val) = {
240240 let caller = toString(invoke.caller)
241241 if (containsElement([chris, toString(this)], caller))
242242 then if (contains(key, "conf_"))
243243 then [StringEntry(key, val)]
244244 else throw("Entries starting with conf_ only")
245245 else throw("You are not allowed to change this")
246246 }
247247
248248
249249
250250 @Callable(i)
251251 func addEvent (name,description,tags,cidDisplay,crawler,type,date) = {
252252 let $t081188167 = idCallerDate(i)
253253 let eventId = $t081188167._1
254254 let caller = $t081188167._2
255255 let addedDate = $t081188167._3
256256 let checkUser = validateUser(caller)
257257 if ((checkUser != ""))
258258 then throw(checkUser)
259259 else {
260260 let validateEvent = validateEventData(caller, cidDisplay, name, description, tags, type, date)
261261 if ((validateEvent != ""))
262262 then throw("Something went wrong!")
263263 else [IntegerEntry(keyEventAddedDate(caller, eventId), addedDate), StringEntry(keyEventDate(caller, eventId), date), StringEntry(keyEventName(caller, eventId), name), StringEntry(keyEventDesc(caller, eventId), description), StringEntry(keyEventDisplayCid(caller, eventId), cidDisplay), StringEntry(keyEventTags(caller, eventId), tags), StringEntry(keyEventCrawler(caller, eventId), crawler), StringEntry(keyEventType(caller, eventId), type), IntegerEntry(keyEventTotalTicketsIssued(caller, eventId), 0), BooleanEntry(keyEventCanceled(caller, eventId), false), StringEntry(keyEventOwnerByEventId(eventId), caller)]
264264 }
265265 }
266266
267267
268268
269269 @Callable(i)
270270 func editEvent (eventId,name,description,tags,cidDisplay,crawler,type,date) = if (!(dappRunning))
271271 then throw(maintenanceMSG)
272272 else {
273273 let caller = toBase58String(i.caller.bytes)
274274 let checkUser = validateUser(caller)
275275 if ((checkUser != ""))
276276 then throw(checkUser)
277277 else {
278278 let validateEvent = validateEventData(caller, cidDisplay, name, description, tags, type, date)
279279 if ((validateEvent != ""))
280280 then throw("Something went wrong!")
281281 else {
282282 let entryExist = getStringByKey(keyEventName(caller, eventId))
283283 if ((entryExist == ""))
284284 then throw("Entry not found")
285285 else {
286286 let flag = getStringByKey(keyEventFlag(caller, eventId))
287287 if ((flag == "ILLEGAL"))
288288 then throw("Cannot update ILLEGAL Event")
289289 else [StringEntry(keyEventName(caller, eventId), name), StringEntry(keyEventDate(caller, eventId), date), StringEntry(keyEventDesc(caller, eventId), description), StringEntry(keyEventTags(caller, eventId), tags), StringEntry(keyEventType(caller, eventId), type), StringEntry(keyEventCrawler(caller, eventId), crawler)]
290290 }
291291 }
292292 }
293293 }
294294
295295
296296
297297 @Callable(i)
298298 func deleteEvent (eventId) = {
299299 let $t01053110575 = idCallerDate(i)
300300 let id = $t01053110575._1
301301 let caller = $t01053110575._2
302302 let addedDate = $t01053110575._3
303303 let checkUser = validateUser(caller)
304304 if ((checkUser != ""))
305305 then throw(checkUser)
306306 else if (!(isEventOwner(eventId, caller)))
307307 then throw("You are not the owner of this event")
308308 else {
309309 let eventTotalNFT = getIntegerByKey(keyEventTotalTicketsIssued(caller, eventId))
310310 if ((eventTotalNFT != 0))
311311 then throw("Cannot delete event with already sold tickets")
312312 else {
313313 let totalTicketTypeForEvent = getIntegerByKey(keyEventTotalTicketTypes(caller, eventId))
314314 if ((totalTicketTypeForEvent > 0))
315315 then throw("Delete all tickets first")
316316 else [DeleteEntry(keyEventAddedDate(caller, eventId)), DeleteEntry(keyEventDate(caller, eventId)), DeleteEntry(keyEventName(caller, eventId)), DeleteEntry(keyEventDesc(caller, eventId)), DeleteEntry(keyEventDisplayCid(caller, eventId)), DeleteEntry(keyEventTags(caller, eventId)), DeleteEntry(keyEventCrawler(caller, eventId)), DeleteEntry(keyEventType(caller, eventId)), DeleteEntry(keyEventTotalTicketsIssued(caller, eventId)), DeleteEntry(keyEventCanceled(caller, eventId)), DeleteEntry(keyEventOwnerByEventId(eventId))]
317317 }
318318 }
319319 }
320320
321321
322322
323323 @Callable(i)
324324 func cancelEvent (eventId,reason) = {
325325 let $t01190411948 = idCallerDate(i)
326326 let id = $t01190411948._1
327327 let caller = $t01190411948._2
328328 let addedDate = $t01190411948._3
329329 let checkUser = validateUser(caller)
330330 if ((checkUser != ""))
331331 then throw(checkUser)
332332 else if (!(isEventOwner(eventId, caller)))
333333 then throw("You are not the owner of this event")
334334 else [BooleanEntry(keyEventCanceled(caller, eventId), true), StringEntry(keyEventCanceledReason(caller, eventId), reason)]
335335 }
336336
337337
338338
339339 @Callable(i)
340340 func flagEvent (eventId,addr,flag,note) = {
341341 let $t01238312416 = idCallerDate(i)
342342 let id = $t01238312416._1
343343 let caller = $t01238312416._2
344344 if (containsElement([chris, toString(this)], caller))
345345 then if (containsElement(["", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag))
346346 then [StringEntry(keyEventFlag(addr, eventId), flag), StringEntry(keyEventNote(addr, eventId), note)]
347347 else throw(("Unknow status " + flag))
348348 else throw("You are not allowed")
349349 }
350350
351351
352352
353353 @Callable(i)
354354 func addTicket (eventId,name,description,price,maxAvailable,MaxUse) = {
355355 let $t01291712957 = idCallerDate(i)
356356 let id = $t01291712957._1
357357 let caller = $t01291712957._2
358358 let date = $t01291712957._3
359359 let checkUser = validateUser(caller)
360360 if ((checkUser != ""))
361361 then throw(checkUser)
362362 else if (eventIsCanceled(caller, eventId))
363363 then throw("Event have been canceled")
364364 else if (!(isEventOwner(eventId, caller)))
365365 then throw("You are not the owner of this event")
366366 else {
367367 let validateTicket = validateTicketData(eventId, caller, name, description, price, maxAvailable, MaxUse)
368368 if ((validateTicket != ""))
369369 then throw("Something went wrong!")
370370 else {
371371 let totalTicketTypeForEvent = getIntegerByKey(keyEventTotalTicketTypes(caller, eventId))
372372 [StringEntry(keyTicketName(caller, eventId, id), name), IntegerEntry(keyTicketDate(caller, eventId, id), date), StringEntry(keyTicketDesc(caller, eventId, id), description), IntegerEntry(keyTicketPrice(caller, eventId, id), price), IntegerEntry(keyTicketMaxAvailable(caller, eventId, id), maxAvailable), BooleanEntry(keyTicketOnSale(caller, eventId, id), true), IntegerEntry(keyTicketMaxUse(caller, eventId, id), MaxUse), IntegerEntry(keyTicketTotalIssued(caller, eventId, id), 0), IntegerEntry(keyEventTotalTicketTypes(caller, eventId), (totalTicketTypeForEvent + 1))]
373373 }
374374 }
375375 }
376376
377377
378378
379379 @Callable(i)
380380 func editTicket (ticketId,eventId,name,description,price,maxAvailable,maxUse) = {
381381 let $t01429214332 = idCallerDate(i)
382382 let id = $t01429214332._1
383383 let caller = $t01429214332._2
384384 let date = $t01429214332._3
385385 let checkUser = validateUser(caller)
386386 if ((checkUser != ""))
387387 then throw(checkUser)
388388 else if (!(isEventOwner(eventId, caller)))
389389 then throw("You are not the owner of this event")
390390 else if (!(ticketExist(caller, eventId, ticketId)))
391391 then throw("Ticket not found")
392392 else {
393393 let validateTicket = validateTicketData(eventId, caller, name, description, price, maxAvailable, maxUse)
394394 if ((validateTicket != ""))
395395 then throw("Something went wrong!")
396396 else {
397397 let ticketSold = valueOrElse(getInteger(keyTicketSold(caller, eventId, ticketId)), 0)
398398 if ((ticketSold > maxAvailable))
399399 then throw("Max tickets available cannot be lower than amount already sold")
400400 else [StringEntry(keyTicketName(caller, eventId, ticketId), name), StringEntry(keyTicketDesc(caller, eventId, ticketId), description), IntegerEntry(keyTicketPrice(caller, eventId, ticketId), price), IntegerEntry(keyTicketMaxAvailable(caller, eventId, ticketId), maxAvailable), IntegerEntry(keyTicketMaxUse(caller, eventId, id), maxUse)]
401401 }
402402 }
403403 }
404404
405405
406406
407407 @Callable(i)
408408 func pauseTicketSale (eventId,ticketId,status) = {
409409 let $t01546115501 = idCallerDate(i)
410410 let id = $t01546115501._1
411411 let caller = $t01546115501._2
412412 let date = $t01546115501._3
413413 let checkUser = validateUser(caller)
414414 if ((checkUser != ""))
415415 then throw(checkUser)
416416 else if (!(isEventOwner(eventId, caller)))
417417 then throw("You are not the owner of this event")
418418 else [BooleanEntry(keyTicketOnSale(caller, eventId, id), status)]
419419 }
420420
421421
422422
423423 @Callable(i)
424424 func deleteTicket (ticketId,eventId) = {
425425 let $t01587515915 = idCallerDate(i)
426426 let id = $t01587515915._1
427427 let caller = $t01587515915._2
428428 let date = $t01587515915._3
429429 let checkUser = validateUser(caller)
430430 if ((checkUser != ""))
431431 then throw(checkUser)
432432 else if (!(isEventOwner(eventId, caller)))
433433 then throw("You are not the owner of this event")
434- else if (!(ticketExist(caller, eventId, ticketId)))
435- then throw("Ticket not found")
436- else {
437- let amountSold = getIntegerByKey(keyTicketSold(caller, eventId, ticketId))
438- if ((amountSold != 0))
439- then throw("Cannot delete ticket that sold already")
440- else {
441- let totalTicketTypeForEvent = getIntegerByKey(keyEventTotalTicketTypes(caller, eventId))
434+ else {
435+ let amountSold = getIntegerByKey(keyTicketSold(caller, eventId, ticketId))
436+ if ((amountSold != 0))
437+ then throw("Cannot delete ticket that sold already")
438+ else {
439+ let totalTicketTypeForEvent = getIntegerByKey(keyEventTotalTicketTypes(caller, eventId))
442440 [DeleteEntry(keyTicketName(caller, eventId, ticketId)), DeleteEntry(keyTicketDate(caller, eventId, ticketId)), DeleteEntry(keyTicketDesc(caller, eventId, ticketId)), DeleteEntry(keyTicketPrice(caller, eventId, ticketId)), DeleteEntry(keyTicketMaxAvailable(caller, eventId, ticketId)), DeleteEntry(keyTicketOnSale(caller, eventId, ticketId)), DeleteEntry(keyTicketMaxUse(caller, eventId, ticketId)), IntegerEntry(keyEventTotalTicketTypes(caller, eventId), (totalTicketTypeForEvent - 1))]
443- }
444- }
441+ }
442+ }
445443 }
446444
447445
448446
449447 @Callable(i)
450448 func buyTicket (ticketId,eventId,issuer) = {
451- let $t01707117109 = idCallerDate(i)
452- let id = $t01707117109._1
453- let caller = $t01707117109._2
454- let date = $t01707117109._3
449+ let $t01707217110 = idCallerDate(i)
450+ let id = $t01707217110._1
451+ let caller = $t01707217110._2
452+ let date = $t01707217110._3
455453 let totalNFT = valueOrElse(getIntegerByKey("total_tickets_issued"), 0)
456454 if (!(isEventOwner(eventId, issuer)))
457455 then throw("Event ID and Issuer don't match")
458456 else if (!(ticketExist(issuer, eventId, ticketId)))
459457 then throw("Ticket not found")
460458 else {
461459 let eventName = getStringByKey(keyEventName(issuer, eventId))
462460 if ((eventName == ""))
463461 then throw("Art doesn't exist")
464462 else if (eventIsCanceled(issuer, eventId))
465463 then throw("Event have been canceled")
466464 else {
467465 let isOnSale = getBooleanByKey(keyTicketOnSale(issuer, eventId, ticketId))
468466 if (!(isOnSale))
469467 then throw("Tickets not for sale")
470468 else {
471469 let amountSold = getIntegerByKey(keyTicketSold(issuer, eventId, ticketId))
472470 let ticketPrice = getIntegerByKey(keyTicketPrice(issuer, eventId, ticketId))
473471 let priceAssetId = toBase58String(signAssetId)
474- let $t01795518029 = validatePriceAssetId(i, priceAssetId, ticketPrice)
475- let amount = $t01795518029._1
476- let assetId = $t01795518029._2
472+ let $t01795618030 = validatePriceAssetId(i, priceAssetId, ticketPrice)
473+ let amount = $t01795618030._1
474+ let assetId = $t01795618030._2
477475 let maxCanSell = getIntegerByKey(keyTicketMaxAvailable(issuer, eventId, ticketId))
478476 let amountForSign = fraction(amount, signCut, 100)
479477 let amountForOrganizer = (amount - amountForSign)
480478 if ((amountSold == maxCanSell))
481479 then throw("Art sold out")
482480 else {
483481 let newAmountSold = (amountSold + 1)
484482 let issueMeta = ((((((((((("Organizer: " + issuer) + ",
485483 EventID: ") + eventId) + ",
486484 TicketID: ") + ticketId) + ",
487485 EventName: ") + eventName) + ",
488486 Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell))
489487 let issueNFT = Issue(("ST_" + toString((totalNFT + 1))), issueMeta, 1, 0, false)
490488 let idNFT = calculateAssetId(issueNFT)
491489 let sellStatus = if ((newAmountSold == maxCanSell))
492490 then false
493491 else true
494492 let receiveNFT = i.caller
495493 let soldKey = ((((((((("ticket_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + eventId) + "_") + issuer) + "_") + ticketId)
496494 let soldValue = ((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + toBase58String(idNFT))
497495 let soldData = StringEntry(soldKey, soldValue)
498496 let eventTotalNFT = getIntegerByKey(keyEventTotalTicketsIssued(issuer, eventId))
499497 let ticketTotalNFT = getIntegerByKey(keyTicketTotalIssued(issuer, eventId, ticketId))
500498 let buyRes = [IntegerEntry(keyTicketSold(issuer, eventId, ticketId), newAmountSold), StringEntry(("nft_" + toBase58String(idNFT)), soldKey), IntegerEntry("total_nft_issued", (totalNFT + 1)), IntegerEntry(keyEventTotalTicketsIssued(issuer, eventId), (eventTotalNFT + 1)), IntegerEntry(keyTicketTotalIssued(issuer, eventId, ticketId), (ticketTotalNFT + 1)), StringEntry((("ST_" + toString((totalNFT + 1))) + "_assetId"), toBase58String(idNFT)), BooleanEntry(keyTicketOnSale(issuer, eventId, ticketId), sellStatus), IntegerEntry(keyTicketAmountUsed(issuer, eventId, ticketId), 0), issueNFT, ScriptTransfer(Address(fromBase58String(issuer)), amountForOrganizer, assetId), ScriptTransfer(receiveNFT, 1, idNFT), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId)]
501499 soldData :: buyRes
502500 }
503501 }
504502 }
505503 }
506504 }
507505
508506
509507
510508 @Callable(i)
511509 func useTicket (eventId,issuer) = {
512- let $t02030820346 = idCallerDate(i)
513- let id = $t02030820346._1
514- let caller = $t02030820346._2
515- let date = $t02030820346._3
516- let $t02035220388 = isPayment(i)
517- let payment = $t02035220388._1
518- let amount = $t02035220388._2
510+ let $t02030920347 = idCallerDate(i)
511+ let id = $t02030920347._1
512+ let caller = $t02030920347._2
513+ let date = $t02030920347._3
514+ let $t02035320389 = isPayment(i)
515+ let payment = $t02035320389._1
516+ let amount = $t02035320389._2
519517 if (!(isDefined(payment.assetId)))
520518 then throw("Wrong asset attached")
521519 else {
522520 let ticketId = toBase58String(value(payment.assetId))
523521 if (!(ticketExist(issuer, eventId, ticketId)))
524522 then throw("Ticket not found")
525523 else {
526524 let amountUsed = getIntegerByKey(keyTicketAmountUsed(issuer, eventId, ticketId))
527525 let maxUsingTime = getIntegerByKey(keyTicketMaxUse(issuer, eventId, ticketId))
528526 if ((maxUsingTime == amountUsed))
529527 then throw((("Ticket used " + toString(amountUsed)) + " times already"))
530528 else [IntegerEntry(keyTicketAmountUsed(issuer, eventId, ticketId), (amountUsed + 1)), ScriptTransfer(Address(fromBase58String(caller)), 1, payment.assetId)]
531529 }
532530 }
533531 }
534532
535533

github/deemru/w8io/026f985 
81.16 ms