tx · HKddHDnoRE9Zimb73MYxvLtkcfh2VQXyiXpV1GpotPWh

3MuUX82xyULepVCWFG2TfkTDN55b1BVP6k2:  -0.01900000 Waves

2022.10.29 09:16 [2293330] smart account 3MuUX82xyULepVCWFG2TfkTDN55b1BVP6k2 > SELF 0.00000000 Waves

{ "type": 13, "id": "HKddHDnoRE9Zimb73MYxvLtkcfh2VQXyiXpV1GpotPWh", "fee": 1900000, "feeAssetId": null, "timestamp": 1667024216657, "version": 2, "chainId": 84, "sender": "3MuUX82xyULepVCWFG2TfkTDN55b1BVP6k2", "senderPublicKey": "FnsRT7dPTyP4iE8WcdhA2hdnaAv31CwhetpiFYgKBtoQ", "proofs": [ "57Kjey8fKH5tXVNFqUDAjXdzxarof58dQ4FgisJe6zZ8vKZjaYa8NnNt5GLH1iWMjpHjfs6pHZunnzqaZ2844DM9" ], "script": "base64:BgJgCAISBAoCCAgSCAoGCAgICAgIEgkKBwgICAgICAgSAwoBCBIECgIICBIGCgQICAgIEggKBggICAEBARIJCgcICAgIAQEBEgUKAwgIBBIECgIICBIFCgMICAgSABIDCgEINAAHVkVSU0lPTgIFMS4wLjABDmdldFN0cmluZ0J5S2V5AQNrZXkJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwUDa2V5AgAACHVzZXJEYXBwCQEFdmFsdWUBCQCmCAEJAQ5nZXRTdHJpbmdCeUtleQECD2NvbmZfdXNlcnNfZGFwcAALZmVlUmVjZWl2ZXIJAQ5nZXRTdHJpbmdCeUtleQECEWNvbmZfZmVlX3JlY2VpdmVyAAtzaWduQXNzZXRJZAkA2QQBCQEOZ2V0U3RyaW5nQnlLZXkBAhhjb25mX2FjY2VwdGVkX2Fzc2V0X1NJR04ABWNocmlzCQEOZ2V0U3RyaW5nQnlLZXkBAgxjb25mX2FkbWluXzEBD2dldEludGVnZXJCeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCaCAIFBHRoaXMFA2tleQAAAQ9nZXRCb29sZWFuQnlLZXkBA2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3VudFVzZWQAAQkAzAgCCQELU3RyaW5nRW50cnkCCQEUa2V5VGlja2V0SGlzdG9yeVVzZWQEBQZpc3N1ZXIFB2V2ZW50SWQFCHRpY2tldElkCQDYBAEJAQV2YWx1ZQEIBQdwYXltZW50B2Fzc2V0SWQJAKwCAgkArAICCQCsAgIJAKwCAgkArAICCQCsAgIFAmlkAgFfBQZjYWxsZXICAV8JAKQDAQUEZGF0ZQIBXwkApAMBCQBkAgUKYW1vdW50VXNlZAABCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAQdBZGRyZXNzAQkA2QQBBQZjYWxsZXIAAQgFB3BheW1lbnQHYXNzZXRJZAUDbmlsAWkBC2RlbGV0ZUVudHJ5AQVlbnRyeQQGY2FsbGVyCQClCAEIBQFpBmNhbGxlcgMJAAACBQZjYWxsZXIFBWNocmlzCQDMCAIJAQtEZWxldGVFbnRyeQEFBWVudHJ5BQNuaWwJAAIBAgJubwCpbI1a", "height": 2293330, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: EkvifYvLBBwRzqWMEn3VZf2DAxNWwKzgY2fu4oiZ89tN Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 6 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let VERSION = "1.0.0"
5+
6+func getStringByKey (key) = valueOrElse(getString(this, key), "")
7+
8+
9+let userDapp = value(addressFromString(getStringByKey("conf_users_dapp")))
10+
11+let feeReceiver = getStringByKey("conf_fee_receiver")
12+
13+let signAssetId = fromBase58String(getStringByKey("conf_accepted_asset_SIGN"))
14+
15+let chris = getStringByKey("conf_admin_1")
16+
17+func getIntegerByKey (key) = valueOrElse(getInteger(this, key), 0)
18+
19+
20+func getBooleanByKey (key) = valueOrElse(getBoolean(this, key), false)
21+
22+
23+let dappRunning = valueOrElse(getBoolean(userDapp, "conf_dapp_is_running"), true)
24+
25+let maintenanceMSG = valueOrElse(getString(userDapp, "conf_maintenance_msg"), "")
26+
27+let userSuspended = "SUSPENDED"
28+
29+let userUnregistered = "UNREGISTERED"
30+
31+func validateCID (cid) = if (contains(cid, "/"))
32+ then if (if ((76 > size(cid)))
33+ then (size(split(cid, "/")[0]) == 59)
34+ else false)
35+ then (16 > size(split(cid, "/")[1]))
36+ else false
37+ else false
38+
39+
40+let signCut = 2
41+
42+func keyUserStatus (caller) = ("user_status_" + caller)
43+
44+
45+func keyEventOwnerByEventId (eventId) = ("get_event_owner_" + eventId)
46+
47+
48+func keyEventAddedDate (caller,eventId) = ((("event_addedDate_" + eventId) + "_") + caller)
49+
50+
51+func keyEventDate (caller,eventId) = ((("event_date_" + eventId) + "_") + caller)
52+
53+
54+func keyEventName (caller,eventId) = ((("event_name_" + eventId) + "_") + caller)
55+
56+
57+func keyEventDesc (caller,eventId) = ((("event_desc_" + eventId) + "_") + caller)
58+
59+
60+func keyEventDisplayCid (caller,eventId) = ((("event_displayCid_" + eventId) + "_") + caller)
61+
62+
63+func keyEventTags (caller,eventId) = ((("event_tags_" + eventId) + "_") + caller)
64+
65+
66+func keyEventFlag (caller,eventId) = ((("event_flag_" + eventId) + "_") + caller)
67+
68+
69+func keyEventNote (caller,eventId) = ((("event_note_" + eventId) + "_") + caller)
70+
71+
72+func keyEventCrawler (caller,eventId) = ((("event_crawlerCid_" + eventId) + "_") + caller)
73+
74+
75+func keyEventTotalTicketTypes (caller,eventId) = ((("event_totalTicketTypes_" + eventId) + "_") + caller)
76+
77+
78+func keyEventTotalTicketsIssued (caller,eventId) = ((("event_totalIssued_" + eventId) + "_") + caller)
79+
80+
81+func keyEventCanceled (caller,eventId) = ((("event_canceled_" + eventId) + "_") + caller)
82+
83+
84+func keyEventCanceledReason (caller,eventId) = ((("event_canceledReason_" + eventId) + "_") + caller)
85+
86+
87+func keyTicketName (caller,eventId,ticketId) = ((((("ticket_name_" + eventId) + "_") + caller) + "_") + ticketId)
88+
89+
90+func keyTicketDesc (caller,eventId,ticketId) = ((((("ticket_desc_" + eventId) + "_") + caller) + "_") + ticketId)
91+
92+
93+func keyTicketPrice (caller,eventId,ticketId) = ((((("ticket_price_" + eventId) + "_") + caller) + "_") + ticketId)
94+
95+
96+func keyTicketDate (caller,eventId,ticketId) = ((((("ticket_date_" + eventId) + "_") + caller) + "_") + ticketId)
97+
98+
99+func keyTicketMaxAvailable (caller,eventId,ticketId) = ((((("ticket_maxAvailable_" + eventId) + "_") + caller) + "_") + ticketId)
100+
101+
102+func keyTicketSold (caller,eventId,ticketId) = ((((("ticket_sold_" + eventId) + "_") + caller) + "_") + ticketId)
103+
104+
105+func keyTicketOnSale (caller,eventId,ticketId) = ((((("ticket_onSale_" + eventId) + "_") + caller) + "_") + ticketId)
106+
107+
108+func keyTicketAmountUsed (caller,eventId,ticketId,nftId) = ((((((("ticket_amountUsed_" + eventId) + "_") + caller) + "_") + ticketId) + "_") + nftId)
109+
110+
111+func keyTicketHistoryUsed (caller,eventId,ticketId,nftId) = ((((((("ticket_historyUsed_" + eventId) + "_") + caller) + "_") + ticketId) + "_") + nftId)
112+
113+
114+func keyTicketMaxUse (caller,eventId,ticketId) = ((((("ticket_maxUse_" + eventId) + "_") + caller) + "_") + ticketId)
115+
116+
117+func keyTicketTotalIssued (caller,eventId,ticketId) = ((((("ticket_totalIssued_" + eventId) + "_") + caller) + "_") + ticketId)
118+
119+
120+func validateString (str,max) = if ((size(str) == 0))
121+ then throw("Field cannot be is empty")
122+ else if ((size(str) > max))
123+ then throw((str + " is too long"))
124+ else true
125+
126+
127+func validateInt (num) = (0 > num)
128+
129+
130+func getEventOwnerByEventId (eventId) = valueOrElse(getString(this, keyEventOwnerByEventId(eventId)), "")
131+
132+
133+func validateUser (caller) = {
134+ let userStatus = valueOrElse(getString(userDapp, keyUserStatus(caller)), userUnregistered)
135+ if ((userStatus == userUnregistered))
136+ then "Register this account first with \"Account\" tab"
137+ else if ((userStatus == userSuspended))
138+ then "Account suspended"
139+ else ""
140+ }
141+
142+
143+func validateEventData (caller,cidDisplay,name,description,tags,date) = {
144+ let checkUser = validateUser(caller)
145+ if ((checkUser != ""))
146+ then throw(checkUser)
147+ else if ((size(cidDisplay) == 0))
148+ then throw("Display CID cannot be empty")
149+ else if (!(validateCID(cidDisplay)))
150+ then throw("Problem with CID")
151+ else if (!(validateString(name, 300)))
152+ then throw("300 Char. max name")
153+ else if (!(validateString(description, 3000)))
154+ then throw("3000 Char. max description")
155+ else if (!(validateString(date, 1000)))
156+ then throw("1000 Char. max date")
157+ else if ((size(split(tags, ",")) > 5))
158+ then throw("5 tags max.")
159+ else ""
160+ }
161+
162+
163+func validateTicketData (eventId,caller,name,description,price,maxAvailable,maxUse) = {
164+ let checkUser = validateUser(caller)
165+ if ((checkUser != ""))
166+ then throw(checkUser)
167+ else if (!(validateString(name, 200)))
168+ then throw("100 Char. max name")
169+ else if (!(validateString(description, 1000)))
170+ then throw("1000 Char. max description")
171+ else if (if (if (validateInt(price))
172+ then true
173+ else validateInt(maxUse))
174+ then true
175+ else validateInt(maxAvailable))
176+ then throw("Positive amount only")
177+ else if (!(validateString(description, 1000)))
178+ then throw("1000 Char. max description")
179+ else ""
180+ }
181+
182+
183+func idCallerDate (i) = if (!(dappRunning))
184+ then throw(maintenanceMSG)
185+ else $Tuple3(toBase58String(i.transactionId), toBase58String(i.caller.bytes), lastBlock.timestamp)
186+
187+
188+func isPayment (i) = if ((size(i.payments) == 0))
189+ then throw("No payment attached")
190+ else {
191+ let payment = value(i.payments[0])
192+ let amount = value(payment.amount)
193+ $Tuple2(payment, amount)
194+ }
195+
196+
197+func validatePriceAssetId (i,priceAssetId,artworkPrice) = {
198+ let $t066666702 = isPayment(i)
199+ let payment = $t066666702._1
200+ let amount = $t066666702._2
201+ if (!(isDefined(payment.assetId)))
202+ then throw("Wrong asset attached")
203+ else {
204+ let assetId = if (if ((size(priceAssetId) > 0))
205+ then (toBase58String(value(payment.assetId)) == priceAssetId)
206+ else false)
207+ then payment.assetId
208+ else throw("Wrong asset attached")
209+ if ((artworkPrice != amount))
210+ then throw("Payment amount don't match")
211+ else $Tuple2(amount, assetId)
212+ }
213+ }
214+
215+
216+func isEventOwner (eventId,caller) = {
217+ let eventOwner = getEventOwnerByEventId(eventId)
218+ if ((eventOwner == ""))
219+ then throw("Event not found")
220+ else (eventOwner == caller)
221+ }
222+
223+
224+func ticketExist (caller,eventId,ticketId) = {
225+ let ticket = getStringByKey(keyTicketName(caller, eventId, ticketId))
226+ (size(ticket) != 0)
227+ }
228+
229+
230+func eventIsCanceled (issuer,eventId) = getBooleanByKey(keyEventCanceled(issuer, eventId))
231+
232+
233+@Callable(invoke)
234+func setConf (key,val) = {
235+ let caller = toString(invoke.caller)
236+ if (containsElement([chris, toString(this)], caller))
237+ then if (contains(key, "conf_"))
238+ then [StringEntry(key, val)]
239+ else throw("Entries starting with conf_ only")
240+ else throw("You are not allowed to change this")
241+ }
242+
243+
244+
245+@Callable(i)
246+func addEvent (name,description,tags,cidDisplay,crawler,date) = {
247+ let $t080318080 = idCallerDate(i)
248+ let eventId = $t080318080._1
249+ let caller = $t080318080._2
250+ let addedDate = $t080318080._3
251+ let checkUser = validateUser(caller)
252+ if ((checkUser != ""))
253+ then throw(checkUser)
254+ else {
255+ let validateEvent = validateEventData(caller, cidDisplay, name, description, tags, date)
256+ if ((validateEvent != ""))
257+ then throw("Something went wrong!")
258+ 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), IntegerEntry(keyEventTotalTicketsIssued(caller, eventId), 0), BooleanEntry(keyEventCanceled(caller, eventId), false), StringEntry(keyEventOwnerByEventId(eventId), caller)]
259+ }
260+ }
261+
262+
263+
264+@Callable(i)
265+func editEvent (eventId,name,description,tags,cidDisplay,crawler,date) = if (!(dappRunning))
266+ then throw(maintenanceMSG)
267+ else {
268+ let caller = toBase58String(i.caller.bytes)
269+ let checkUser = validateUser(caller)
270+ if ((checkUser != ""))
271+ then throw(checkUser)
272+ else {
273+ let validateEvent = validateEventData(caller, cidDisplay, name, description, tags, date)
274+ if ((validateEvent != ""))
275+ then throw("Something went wrong!")
276+ else {
277+ let entryExist = getStringByKey(keyEventName(caller, eventId))
278+ if ((entryExist == ""))
279+ then throw("Entry not found")
280+ else {
281+ let flag = getStringByKey(keyEventFlag(caller, eventId))
282+ if ((flag == "ILLEGAL"))
283+ then throw("Cannot update ILLEGAL Event")
284+ else [StringEntry(keyEventName(caller, eventId), name), StringEntry(keyEventDate(caller, eventId), date), StringEntry(keyEventDesc(caller, eventId), description), StringEntry(keyEventTags(caller, eventId), tags), StringEntry(keyEventCrawler(caller, eventId), crawler)]
285+ }
286+ }
287+ }
288+ }
289+
290+
291+
292+@Callable(i)
293+func deleteEvent (eventId) = {
294+ let $t01030010344 = idCallerDate(i)
295+ let id = $t01030010344._1
296+ let caller = $t01030010344._2
297+ let addedDate = $t01030010344._3
298+ let checkUser = validateUser(caller)
299+ if ((checkUser != ""))
300+ then throw(checkUser)
301+ else if (!(isEventOwner(eventId, caller)))
302+ then throw("You are not the owner of this event")
303+ else {
304+ let eventTotalNFT = getIntegerByKey(keyEventTotalTicketsIssued(caller, eventId))
305+ if ((eventTotalNFT != 0))
306+ then throw("Cannot delete event with already sold tickets")
307+ else {
308+ let totalTicketTypeForEvent = getIntegerByKey(keyEventTotalTicketTypes(caller, eventId))
309+ if ((totalTicketTypeForEvent > 0))
310+ then throw("Delete all tickets first")
311+ 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(keyEventTotalTicketsIssued(caller, eventId)), DeleteEntry(keyEventCanceled(caller, eventId)), DeleteEntry(keyEventOwnerByEventId(eventId)), DeleteEntry(keyEventTotalTicketTypes(caller, eventId))]
312+ }
313+ }
314+ }
315+
316+
317+
318+@Callable(i)
319+func cancelEvent (eventId,reason) = {
320+ let $t01168511729 = idCallerDate(i)
321+ let id = $t01168511729._1
322+ let caller = $t01168511729._2
323+ let addedDate = $t01168511729._3
324+ let checkUser = validateUser(caller)
325+ if ((checkUser != ""))
326+ then throw(checkUser)
327+ else if (!(isEventOwner(eventId, caller)))
328+ then throw("You are not the owner of this event")
329+ else [BooleanEntry(keyEventCanceled(caller, eventId), true), StringEntry(keyEventCanceledReason(caller, eventId), reason)]
330+ }
331+
332+
333+
334+@Callable(i)
335+func flagEvent (eventId,addr,flag,note) = {
336+ let $t01216412197 = idCallerDate(i)
337+ let id = $t01216412197._1
338+ let caller = $t01216412197._2
339+ if (containsElement([chris, toString(this)], caller))
340+ then if (containsElement(["", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], flag))
341+ then [StringEntry(keyEventFlag(addr, eventId), flag), StringEntry(keyEventNote(addr, eventId), note)]
342+ else throw(("Unknow status " + flag))
343+ else throw("You are not allowed")
344+ }
345+
346+
347+
348+@Callable(i)
349+func addTicket (eventId,name,description,price,maxAvailable,MaxUse) = {
350+ let $t01269812738 = idCallerDate(i)
351+ let id = $t01269812738._1
352+ let caller = $t01269812738._2
353+ let date = $t01269812738._3
354+ let checkUser = validateUser(caller)
355+ if ((checkUser != ""))
356+ then throw(checkUser)
357+ else if (eventIsCanceled(caller, eventId))
358+ then throw("Event have been canceled")
359+ else if (!(isEventOwner(eventId, caller)))
360+ then throw("You are not the owner of this event")
361+ else {
362+ let validateTicket = validateTicketData(eventId, caller, name, description, price, maxAvailable, MaxUse)
363+ if ((validateTicket != ""))
364+ then throw("Something went wrong!")
365+ else {
366+ let totalTicketTypeForEvent = getIntegerByKey(keyEventTotalTicketTypes(caller, eventId))
367+[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))]
368+ }
369+ }
370+ }
371+
372+
373+
374+@Callable(i)
375+func editTicket (ticketId,eventId,name,description,price,maxAvailable,maxUse) = {
376+ let $t01425014290 = idCallerDate(i)
377+ let id = $t01425014290._1
378+ let caller = $t01425014290._2
379+ let date = $t01425014290._3
380+ let checkUser = validateUser(caller)
381+ if ((checkUser != ""))
382+ then throw(checkUser)
383+ else if (!(isEventOwner(eventId, caller)))
384+ then throw("You are not the owner of this event")
385+ else if (!(ticketExist(caller, eventId, ticketId)))
386+ then throw("Ticket not found")
387+ else {
388+ let validateTicket = validateTicketData(eventId, caller, name, description, price, maxAvailable, maxUse)
389+ if ((validateTicket != ""))
390+ then throw("Something went wrong!")
391+ else {
392+ let ticketSold = valueOrElse(getInteger(keyTicketSold(caller, eventId, ticketId)), 0)
393+ if ((ticketSold > maxAvailable))
394+ then throw("Max tickets available cannot be lower than amount already sold")
395+ 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, ticketId), maxUse)]
396+ }
397+ }
398+ }
399+
400+
401+
402+@Callable(i)
403+func pauseTicketSale (eventId,ticketId,status) = {
404+ let $t01542815468 = idCallerDate(i)
405+ let id = $t01542815468._1
406+ let caller = $t01542815468._2
407+ let date = $t01542815468._3
408+ let checkUser = validateUser(caller)
409+ if ((checkUser != ""))
410+ then throw(checkUser)
411+ else if (!(isEventOwner(eventId, caller)))
412+ then throw("You are not the owner of this event")
413+ else if (!(ticketExist(caller, eventId, ticketId)))
414+ then throw("Ticket not found")
415+ else [BooleanEntry(keyTicketOnSale(caller, eventId, ticketId), status)]
416+ }
417+
418+
419+
420+@Callable(i)
421+func deleteTicket (ticketId,eventId) = {
422+ let $t01593115971 = idCallerDate(i)
423+ let id = $t01593115971._1
424+ let caller = $t01593115971._2
425+ let date = $t01593115971._3
426+ let checkUser = validateUser(caller)
427+ if ((checkUser != ""))
428+ then throw(checkUser)
429+ else if (!(isEventOwner(eventId, caller)))
430+ then throw("You are not the owner of this event")
431+ else if (!(ticketExist(caller, eventId, ticketId)))
432+ then throw("Ticket not found")
433+ else {
434+ let amountSold = getIntegerByKey(keyTicketSold(caller, eventId, ticketId))
435+ if ((amountSold != 0))
436+ then throw("Cannot delete ticket that sold already")
437+ else {
438+ let totalTicketTypeForEvent = getIntegerByKey(keyEventTotalTicketTypes(caller, eventId))
439+[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)), DeleteEntry(keyTicketTotalIssued(caller, eventId, ticketId)), IntegerEntry(keyEventTotalTicketTypes(caller, eventId), (totalTicketTypeForEvent - 1))]
440+ }
441+ }
442+ }
443+
444+
445+
446+@Callable(i)
447+func buyTicket (ticketId,eventId,issuer) = {
448+ let $t01719517233 = idCallerDate(i)
449+ let id = $t01719517233._1
450+ let caller = $t01719517233._2
451+ let date = $t01719517233._3
452+ let totalNFT = valueOrElse(getIntegerByKey("total_tickets_issued"), 0)
453+ if (!(isEventOwner(eventId, issuer)))
454+ then throw("Event ID and Issuer don't match")
455+ else if (!(ticketExist(issuer, eventId, ticketId)))
456+ then throw("Ticket not found")
457+ else {
458+ let eventName = getStringByKey(keyEventName(issuer, eventId))
459+ if ((eventName == ""))
460+ then throw("Art doesn't exist")
461+ else if (eventIsCanceled(issuer, eventId))
462+ then throw("Event have been canceled")
463+ else {
464+ let isOnSale = getBooleanByKey(keyTicketOnSale(issuer, eventId, ticketId))
465+ if (!(isOnSale))
466+ then throw("Tickets not for sale")
467+ else {
468+ let amountSold = getIntegerByKey(keyTicketSold(issuer, eventId, ticketId))
469+ let ticketPrice = getIntegerByKey(keyTicketPrice(issuer, eventId, ticketId))
470+ let priceAssetId = toBase58String(signAssetId)
471+ let $t01807918153 = validatePriceAssetId(i, priceAssetId, ticketPrice)
472+ let amount = $t01807918153._1
473+ let assetId = $t01807918153._2
474+ let maxCanSell = getIntegerByKey(keyTicketMaxAvailable(issuer, eventId, ticketId))
475+ let amountForSign = fraction(amount, signCut, 100)
476+ let amountForOrganizer = (amount - amountForSign)
477+ if ((amountSold == maxCanSell))
478+ then throw("Art sold out")
479+ else {
480+ let newAmountSold = (amountSold + 1)
481+ let issueMeta = ((((((((((("Organizer: " + issuer) + ",
482+ EventID: ") + eventId) + ",
483+ TicketID: ") + ticketId) + ",
484+ EventName: ") + eventName) + ",
485+ Issue: ") + toString(newAmountSold)) + "/") + toString(maxCanSell))
486+ let issueNFT = Issue(("ST_" + toString((totalNFT + 1))), issueMeta, 1, 0, false)
487+ let idNFT = calculateAssetId(issueNFT)
488+ let sellStatus = if ((newAmountSold == maxCanSell))
489+ then false
490+ else true
491+ let receiveNFT = i.caller
492+ let soldKey = ((((((((("ticket_sold_" + toString(newAmountSold)) + "_of_") + toString(maxCanSell)) + "_") + eventId) + "_") + issuer) + "_") + ticketId)
493+ let soldValue = ((((((((toString(receiveNFT) + "_") + toString(date)) + "_") + id) + "_") + toString(amount)) + "_") + toBase58String(idNFT))
494+ let soldData = StringEntry(soldKey, soldValue)
495+ let eventTotalNFT = getIntegerByKey(keyEventTotalTicketsIssued(issuer, eventId))
496+ let ticketTotalNFT = getIntegerByKey(keyTicketTotalIssued(issuer, eventId, ticketId))
497+ let buyRes = [IntegerEntry(keyTicketSold(issuer, eventId, ticketId), newAmountSold), StringEntry(("nft_" + toBase58String(idNFT)), soldKey), IntegerEntry("total_tickets_issued", (totalNFT + 1)), IntegerEntry(keyEventTotalTicketsIssued(issuer, eventId), (eventTotalNFT + 1)), IntegerEntry(keyTicketTotalIssued(issuer, eventId, ticketId), (ticketTotalNFT + 1)), StringEntry((("ST_" + toString((totalNFT + 1))) + "_assetId"), ((ticketId + "_") + toBase58String(idNFT))), BooleanEntry(keyTicketOnSale(issuer, eventId, ticketId), sellStatus), IntegerEntry(keyTicketAmountUsed(issuer, eventId, ticketId, toBase58String(idNFT)), 0), issueNFT, ScriptTransfer(Address(fromBase58String(issuer)), amountForOrganizer, assetId), ScriptTransfer(receiveNFT, 1, idNFT), ScriptTransfer(Address(fromBase58String(feeReceiver)), amountForSign, assetId)]
498+soldData :: buyRes
499+ }
500+ }
501+ }
502+ }
503+ }
504+
505+
506+
507+@Callable(i)
508+func useTicket () = {
509+ let $t02042620464 = idCallerDate(i)
510+ let id = $t02042620464._1
511+ let caller = $t02042620464._2
512+ let date = $t02042620464._3
513+ let $t02047020506 = isPayment(i)
514+ let payment = $t02047020506._1
515+ let amount = $t02047020506._2
516+ if (!(isDefined(payment.assetId)))
517+ then throw("Wrong asset attached")
518+ else {
519+ let eventData = getStringByKey(("nft_" + toBase58String(value(payment.assetId))))
520+ if ((size(eventData) == 0))
521+ then throw("Something went wrong")
522+ else {
523+ let eventDataArr = split(eventData, "_")
524+ let issuer = eventDataArr[6]
525+ let eventId = eventDataArr[5]
526+ let ticketId = eventDataArr[7]
527+ if (!(ticketExist(issuer, eventId, ticketId)))
528+ then throw("Ticket not found")
529+ else {
530+ let amountUsed = getIntegerByKey(keyTicketAmountUsed(issuer, eventId, ticketId, toBase58String(value(payment.assetId))))
531+ let maxUsingTime = getIntegerByKey(keyTicketMaxUse(issuer, eventId, ticketId))
532+ if ((maxUsingTime == amountUsed))
533+ then throw((("Ticket used " + toString(amountUsed)) + " times already"))
534+ else [IntegerEntry(keyTicketAmountUsed(issuer, eventId, ticketId, toBase58String(value(payment.assetId))), (amountUsed + 1)), StringEntry(keyTicketHistoryUsed(issuer, eventId, ticketId, toBase58String(value(payment.assetId))), ((((((id + "_") + caller) + "_") + toString(date)) + "_") + toString((amountUsed + 1)))), ScriptTransfer(Address(fromBase58String(caller)), 1, payment.assetId)]
535+ }
536+ }
537+ }
538+ }
539+
540+
541+
542+@Callable(i)
543+func deleteEntry (entry) = {
544+ let caller = toString(i.caller)
545+ if ((caller == chris))
546+ then [DeleteEntry(entry)]
547+ else throw("no")
548+ }
549+
550+

github/deemru/w8io/169f3d6 
46.34 ms