tx · DisqMyKBvz6QnzsR7Hjp2F4vrNrE7TB1RNm9KTjansmD

3N5V44AAww1zE6Eb9TnJ3LBbJp9XzNkxB4a:  -0.01900000 Waves

2022.11.05 04:57 [2303169] smart account 3N5V44AAww1zE6Eb9TnJ3LBbJp9XzNkxB4a > SELF 0.00000000 Waves

{ "type": 13, "id": "DisqMyKBvz6QnzsR7Hjp2F4vrNrE7TB1RNm9KTjansmD", "fee": 1900000, "feeAssetId": null, "timestamp": 1667613419197, "version": 2, "chainId": 84, "sender": "3N5V44AAww1zE6Eb9TnJ3LBbJp9XzNkxB4a", "senderPublicKey": "FdBAJSP4WaWUkAzitoyP9FLTP1CP4GNeToRb7L8DcZq", "proofs": [ "qj9hCuBb1mqRsozrcQMJwJB9Dhkx14na5DfnAb2i8P1k2kVCNfQxvkxakcus1DYw5hkcCF2gcVuJzFRnZh7vUME" ], "script": "base64:BgJiCAISBAoCCAgSCAoGCAgICAgIEgkKBwgICAgICAgSAwoBCBIECgIICBIGCgQICAgIEgkKBwgICAEBAQESCgoICAgICAEBAQESBQoDCAgEEgQKAggIEgUKAwgICBIAEgMKAQg0AAdWRVJTSU9OAgUxLjAuMAEOZ2V0U3RyaW5nQnlLZXkBA2tleQkBC3ZhbHVlT3JFbHNlAgkAnQgCBQR0aGlzBQNrZXkCAAAIdXNlckRhcHAJAQV2YWx1ZQEJAKYIAQkBDmdldFN0cmluZ0J5S2V5AQIPY29uZl91c2Vyc19kYXBwAAtmZWVSZWNlaXZlcgkBDmdldFN0cmluZ0J5S2V5AQIRY29uZl9mZWVfcmVjZWl2ZXIAC3NpZ25Bc3NldElkCQDZBAEJAQ5nZXRTdHJpbmdCeUtleQECGGNvbmZfYWNjZXB0ZWRfYXNzZXRfU0lHTgAFY2hyaXMJAQ5nZXRTdHJpbmdCeUtleQECDGNvbmZfYWRtaW5fMQEPZ2V0SW50ZWdlckJ5S2V5AQNrZXkJAQt2YWx1ZU9yRWxzZQIJAJoIAgUEdGhpcwUDa2V5AAAB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1lbnQHYXNzZXRJZAQMbWF4VXNpbmdUaW1lCQEPZ2V0SW50ZWdlckJ5S2V5AQkBD2tleVRpY2tldE1heFVzZQMFBmlzc3VlcgUHZXZlbnRJZAUIdGlja2V0SWQDCQAAAgUMbWF4VXNpbmdUaW1lBQphbW91bnRVc2VkCQACAQkArAICCQCsAgICDFRpY2tldCB1c2VkIAkApAMBBQphbW91bnRVc2VkAg4gdGltZXMgYWxyZWFkeQkAzAgCCQEMSW50ZWdlckVudHJ5AgkBE2tleVRpY2tldEFtb3VudFVzZWQEBQZpc3N1ZXIFB2V2ZW50SWQFCHRpY2tldElkCQDYBAEJAQV2YWx1ZQEIBQdwYXltZW50B2Fzc2V0SWQJAGQCBQphbW91bnRVc2VkAAEJAMwIAgkBC1N0cmluZ0VudHJ5AgkBFGtleVRpY2tldEhpc3RvcnlVc2VkBQUGaXNzdWVyBQdldmVudElkBQh0aWNrZXRJZAkA2AQBCQEFdmFsdWUBCAUHcGF5bWVudAdhc3NldElkCQCkAwEJAGQCBQphbW91bnRVc2VkAAEJAKwCAgkArAICCQCsAgIJAKwCAgkArAICCQCsAgIFAmlkAgFfBQZjYWxsZXICAV8JAKQDAQUEZGF0ZQIBXwkApAMBCQBkAgUKYW1vdW50VXNlZAABCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAQdBZGRyZXNzAQkA2QQBBQZjYWxsZXIAAQgFB3BheW1lbnQHYXNzZXRJZAUDbmlsAWkBC2RlbGV0ZUVudHJ5AQVlbnRyeQQGY2FsbGVyCQClCAEIBQFpBmNhbGxlcgMJAAACBQZjYWxsZXIFBWNocmlzCQDMCAIJAQtEZWxldGVFbnRyeQEFBWVudHJ5BQNuaWwJAAIBAgJubwAXtu9s", "height": 2303169, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 4sMqMuxBS2WBiSH1vwNrhXDJ5E4WakhhZdxfg98oEmwY 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 keyTicketOnSale (caller,eventId,ticketId) = ((((("ticket_onSale_" + eventId) + "_") + caller) + "_") + ticketId)
103+
104+
105+func keyTicketAmountUsed (caller,eventId,ticketId,nftId) = ((((((("ticket_amountUsed_" + eventId) + "_") + caller) + "_") + ticketId) + "_") + nftId)
106+
107+
108+func keyTicketHistoryUsed (caller,eventId,ticketId,nftId,usageIndex) = ((((((((("ticket_historyUsed_" + eventId) + "_") + caller) + "_") + ticketId) + "_") + nftId) + "_") + usageIndex)
109+
110+
111+func keyTicketMaxUse (caller,eventId,ticketId) = ((((("ticket_maxUse_" + eventId) + "_") + caller) + "_") + ticketId)
112+
113+
114+func keyTicketTotalIssued (caller,eventId,ticketId) = ((((("ticket_totalIssued_" + eventId) + "_") + caller) + "_") + ticketId)
115+
116+
117+func keyTicketRoyalty (caller,eventId,ticketId) = ((((("ticket_royalties_" + 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 $t067086744 = isPayment(i)
199+ let payment = $t067086744._1
200+ let amount = $t067086744._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 $t080738122 = idCallerDate(i)
248+ let eventId = $t080738122._1
249+ let caller = $t080738122._2
250+ let addedDate = $t080738122._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 $t01034210386 = idCallerDate(i)
295+ let id = $t01034210386._1
296+ let caller = $t01034210386._2
297+ let addedDate = $t01034210386._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 $t01172711771 = idCallerDate(i)
321+ let id = $t01172711771._1
322+ let caller = $t01172711771._2
323+ let addedDate = $t01172711771._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 $t01220612239 = idCallerDate(i)
337+ let id = $t01220612239._1
338+ let caller = $t01220612239._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,Royalties) = {
350+ let $t01275612796 = idCallerDate(i)
351+ let id = $t01275612796._1
352+ let caller = $t01275612796._2
353+ let date = $t01275612796._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)), IntegerEntry(keyTicketRoyalty(caller, eventId, id), Royalties)]
368+ }
369+ }
370+ }
371+
372+
373+
374+@Callable(i)
375+func editTicket (ticketId,eventId,name,description,price,maxAvailable,maxUse,Royalties) = {
376+ let $t01439414434 = idCallerDate(i)
377+ let id = $t01439414434._1
378+ let caller = $t01439414434._2
379+ let date = $t01439414434._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(keyTicketTotalIssued(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), IntegerEntry(keyTicketRoyalty(caller, eventId, id), Royalties)]
396+ }
397+ }
398+ }
399+
400+
401+
402+@Callable(i)
403+func pauseTicketSale (eventId,ticketId,status) = {
404+ let $t01564915689 = idCallerDate(i)
405+ let id = $t01564915689._1
406+ let caller = $t01564915689._2
407+ let date = $t01564915689._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 $t01615216192 = idCallerDate(i)
423+ let id = $t01615216192._1
424+ let caller = $t01615216192._2
425+ let date = $t01615216192._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(keyTicketTotalIssued(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)), DeleteEntry(keyTicketRoyalty(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 $t01749317531 = idCallerDate(i)
449+ let id = $t01749317531._1
450+ let caller = $t01749317531._2
451+ let date = $t01749317531._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(keyTicketTotalIssued(issuer, eventId, ticketId))
469+ let ticketPrice = getIntegerByKey(keyTicketPrice(issuer, eventId, ticketId))
470+ let priceAssetId = toBase58String(signAssetId)
471+ let $t01838418458 = validatePriceAssetId(i, priceAssetId, ticketPrice)
472+ let amount = $t01838418458._1
473+ let assetId = $t01838418458._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)) + "_") + ticketId) + "_") + eventId) + "_") + issuer) + "_") + toBase58String(idNFT))
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 = [StringEntry(("nft_" + toBase58String(idNFT)), soldKey), IntegerEntry("total_tickets_issued", (totalNFT + 1)), IntegerEntry(keyEventTotalTicketsIssued(issuer, eventId), (eventTotalNFT + 1)), IntegerEntry(keyTicketTotalIssued(issuer, eventId, ticketId), newAmountSold), 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 $t02061820656 = idCallerDate(i)
510+ let id = $t02061820656._1
511+ let caller = $t02061820656._2
512+ let date = $t02061820656._3
513+ let $t02066220698 = isPayment(i)
514+ let payment = $t02066220698._1
515+ let amount = $t02066220698._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)), toString((amountUsed + 1))), ((((((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 
41.55 ms