tx · 3qYUZ3511N7uvXLVpe862BVPK9MDr6JzwcQEGnvJKF97

3N6yPEN3qNbKESnUewrj3EYVr6eLAd9AYBB:  -0.01400000 Waves

2022.10.25 11:37 [2287691] smart account 3N6yPEN3qNbKESnUewrj3EYVr6eLAd9AYBB > SELF 0.00000000 Waves

{ "type": 13, "id": "3qYUZ3511N7uvXLVpe862BVPK9MDr6JzwcQEGnvJKF97", "fee": 1400000, "feeAssetId": null, "timestamp": 1666687084585, "version": 2, "chainId": 84, "sender": "3N6yPEN3qNbKESnUewrj3EYVr6eLAd9AYBB", "senderPublicKey": "9RjLrGXy4wnGfNiZRhKSUh5wDnj5rLGPzbCE75KaVemg", "proofs": [ "3hBAk7TVDHmbvhLFrnaygW1f8NdksFUEHK9URjqd7CipodUAHco75WPXZE7KqJge58wtZFDMwpEKn6VqcSitpYfn" ], "script": "base64:BgJICAISBAoCCAgSCQoHCAgICAgICBIKCggICAgICAgICBIGCgQICAgIEgcKBQgICAEBEggKBggICAgBARIFCgMIAQQSBQoDCAgIKgAHVkVSU0lPTgIFMS4wLjABDmdldFN0cmluZ0J5S2V5AQNrZXkJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwUDa2V5AgAACHVzZXJEYXBwCQEFdmFsdWUBCQCmCAEJAQ5nZXRTdHJpbmdCeUtleQECD2NvbmZfdXNlcnNfZGFwcAALZmVlUmVjZWl2ZXIJAQ5nZXRTdHJpbmdCeUtleQECEWNvbmZfZmVlX3JlY2VpdmVyAAtzaWduQXNzZXRJZAkA2QQBCQEOZ2V0U3RyaW5nQnlLZXkBAhhjb25mX2FjY2VwdGVkX2Fzc2V0X1NJR04ABWNocmlzCQEOZ2V0U3RyaW5nQnlLZXkBAgxjb25mX2FkbWluXzEBD2dldEludGVnZXJCeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCaCAIFBHRoaXMFA2tleQAAAQ9nZXRCb29sZWFuQnlLZXkBA2tleQkBC3ZhbHVlT3JFbHNlAgkAmwgCB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dWVyBQdldmVudElkBQh0aWNrZXRJZAUNbmV3QW1vdW50U29sZAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgICBG5mdF8JANgEAQUFaWRORlQFB3NvbGRLZXkJAMwIAgkBDEludGVnZXJFbnRyeQICEHRvdGFsX25mdF9pc3N1ZWQJAGQCBQh0b3RhbE5GVAABCQDMCAIJAQxCb29sZWFuRW50cnkCCQEPa2V5VGlja2V0T25TYWxlAwUGaXNzdWVyBQdldmVudElkBQh0aWNrZXRJZAUKc2VsbFN0YXR1cwkAzAgCBQhpc3N1ZU5GVAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEJANkEAQUGaXNzdWVyBRJhbW91bnRGb3JPcmdhbml6ZXIFB2Fzc2V0SWQJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwUKcmVjZWl2ZU5GVAABBQVpZE5GVAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEJANkEAQULZmVlUmVjZWl2ZXIFDWFtb3VudEZvclNpZ24FB2Fzc2V0SWQFA25pbAkAzAgCBQhzb2xkRGF0YQUGYnV5UmVzAFh4/xk=", "height": 2287691, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: B8kSasrY3ieF7gbkMCo5bGiDtCvshSwkw1p1tmrSHe6h Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 6 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "1.0.0"
5+
6+func b (c) = valueOrElse(getString(this, c), "")
7+
8+
9+let d = value(addressFromString(b("conf_users_dapp")))
10+
11+let e = b("conf_fee_receiver")
12+
13+let f = fromBase58String(b("conf_accepted_asset_SIGN"))
14+
15+let g = b("conf_admin_1")
16+
17+func h (c) = valueOrElse(getInteger(this, c), 0)
18+
19+
20+func i (c) = valueOrElse(getBoolean(this, c), false)
21+
22+
23+let j = valueOrElse(getBoolean(d, "conf_dapp_is_running"), true)
24+
25+let k = valueOrElse(getString(d, "conf_maintenance_msg"), "")
26+
27+let l = "SUSPENDED"
28+
29+let m = "UNREGISTERED"
30+
31+func n (o) = if (contains(o, "/"))
32+ then if (if ((76 > size(o)))
33+ then (size(split(o, "/")[0]) == 59)
34+ else false)
35+ then (16 > size(split(o, "/")[1]))
36+ else false
37+ else false
38+
39+
40+let p = 2
41+
42+func q (r) = ("user_status_" + r)
43+
44+
45+func s (t) = ("event_owner_" + t)
46+
47+
48+func u (r,t) = ((("event_added_date_" + t) + "_") + r)
49+
50+
51+func v (r,t) = ((("event_date_" + t) + "_") + r)
52+
53+
54+func w (r,t) = ((("event_name_" + t) + "_") + r)
55+
56+
57+func x (r,t) = ((("event_desc_" + t) + "_") + r)
58+
59+
60+func y (r,t) = ((("event_display_cid_" + t) + "_") + r)
61+
62+
63+func z (r,t) = ((("event_tags_" + t) + "_") + r)
64+
65+
66+func A (r,t) = ((("event_flag_" + t) + "_") + r)
67+
68+
69+func B (r,t) = ((("event_note_" + t) + "_") + r)
70+
71+
72+func C (r,t) = ((("event_crawler_cid_" + t) + "_") + r)
73+
74+
75+func D (r,t) = ((("event_type_" + t) + "_") + r)
76+
77+
78+func E (r,t,F) = ((((("ticket_name_" + t) + "_") + r) + "_") + F)
79+
80+
81+func G (r,t,F) = ((((("ticket_desc_" + t) + "_") + r) + "_") + F)
82+
83+
84+func H (r,t,F) = ((((("ticket_price_" + t) + "_") + r) + "_") + F)
85+
86+
87+func I (r,t,F) = ((((("ticket_maxAvailable_" + t) + "_") + r) + "_") + F)
88+
89+
90+func J (r,t,F) = ((((("ticket_sold_" + t) + "_") + r) + "_") + F)
91+
92+
93+func K (r,t,F) = ((((("ticket_sold_" + t) + "_") + r) + "_") + F)
94+
95+
96+func L (M,N) = if ((size(M) == 0))
97+ then throw("Field cannot be is empty")
98+ else if ((size(M) > N))
99+ then throw((M + " is too long"))
100+ else true
101+
102+
103+func O (P) = (0 > P)
104+
105+
106+func Q (t) = valueOrElse(getString(this, s(t)), "")
107+
108+
109+func R (r) = {
110+ let S = valueOrElse(getString(d, q(r)), m)
111+ if ((S == m))
112+ then "Register this account first with \"Account\" tab"
113+ else if ((S == l))
114+ then "Account suspended"
115+ else ""
116+ }
117+
118+
119+func T (U) = containsElement(["online", "offline", "both"], U)
120+
121+
122+func V (r,W,X,Y,Z,U,aa) = {
123+ let ab = R(r)
124+ if ((ab != ""))
125+ then throw(ab)
126+ else if ((size(W) == 0))
127+ then throw("Display CID cannot be empty")
128+ else if (!(n(W)))
129+ then throw("Problem with CID")
130+ else if (!(L(X, 200)))
131+ then throw("100 Char. max name")
132+ else if (!(T(U)))
133+ then throw("Wrong event type")
134+ else if (!(L(Y, 1000)))
135+ then throw("1000 Char. max description")
136+ else if (!(L(aa, 1000)))
137+ then throw("1000 Char. max date")
138+ else if ((size(split(Z, ",")) > 5))
139+ then throw("5 tags max.")
140+ else ""
141+ }
142+
143+
144+func ac (t,r,X,Y,ad,ae) = {
145+ let ab = R(r)
146+ if ((ab != ""))
147+ then throw(ab)
148+ else if (!(L(X, 200)))
149+ then throw("100 Char. max name")
150+ else if (!(L(Y, 1000)))
151+ then throw("1000 Char. max description")
152+ else if (if (!(O(ad)))
153+ then true
154+ else !(O(ae)))
155+ then throw("Positive amount only")
156+ else if (!(L(Y, 1000)))
157+ then throw("1000 Char. max description")
158+ else ""
159+ }
160+
161+
162+func af (ag) = if (!(j))
163+ then throw(k)
164+ else $Tuple3(toBase58String(ag.transactionId), toBase58String(ag.caller.bytes), lastBlock.timestamp)
165+
166+
167+func ah (ag) = if ((size(ag.payments) == 0))
168+ then throw("No payment attached")
169+ else {
170+ let ai = value(ag.payments[0])
171+ let aj = value(ai.amount)
172+ $Tuple2(ai, aj)
173+ }
174+
175+
176+func ak (ag,al,am) = {
177+ let an = ah(ag)
178+ let ai = an._1
179+ let aj = an._2
180+ if (!(isDefined(ai.assetId)))
181+ then throw("Wrong asset attached")
182+ else {
183+ let ao = if (if ((size(al) > 0))
184+ then (toBase58String(value(ai.assetId)) == al)
185+ else false)
186+ then ai.assetId
187+ else throw("Wrong asset attached")
188+ if ((am != aj))
189+ then throw("Payment amount don't match")
190+ else $Tuple2(aj, ao)
191+ }
192+ }
193+
194+
195+@Callable(ap)
196+func setConf (c,aq) = {
197+ let r = toString(ap.caller)
198+ if (containsElement([g, toString(this)], r))
199+ then if (contains(c, "conf_"))
200+ then [StringEntry(c, aq)]
201+ else throw("Entries starting with conf_ only")
202+ else throw("You are not allowed to change this")
203+ }
204+
205+
206+
207+@Callable(ag)
208+func addEvent (X,Y,Z,W,ar,U,aa) = {
209+ let as = af(ag)
210+ let t = as._1
211+ let r = as._2
212+ let at = as._3
213+ let ab = R(r)
214+ if ((ab != ""))
215+ then throw(ab)
216+ else {
217+ let au = V(r, W, X, Y, Z, U, aa)
218+ if ((au != ""))
219+ then throw("Something went wrong!")
220+ else [IntegerEntry(u(r, t), at), StringEntry(v(r, t), aa), StringEntry(w(r, t), X), StringEntry(x(r, t), Y), StringEntry(y(r, t), W), StringEntry(z(r, t), Z), StringEntry(C(r, t), ar), StringEntry(D(r, t), U), StringEntry(s(t), r)]
221+ }
222+ }
223+
224+
225+
226+@Callable(ag)
227+func editEvent (t,X,Y,Z,W,ar,U,aa) = if (!(j))
228+ then throw(k)
229+ else {
230+ let r = toBase58String(ag.caller.bytes)
231+ let ab = R(r)
232+ if ((ab != ""))
233+ then throw(ab)
234+ else {
235+ let au = V(r, W, X, Y, Z, U, aa)
236+ if ((au != ""))
237+ then throw("Something went wrong!")
238+ else {
239+ let av = b(w(r, t))
240+ if ((av == ""))
241+ then throw("Entry not found")
242+ else {
243+ let aw = b(A(r, t))
244+ if ((aw == "ILLEGAL"))
245+ then throw("Cannot update ILLEGAL Event")
246+ else [StringEntry(w(r, t), X), StringEntry(v(r, t), aa), StringEntry(x(r, t), Y), StringEntry(z(r, t), Z), StringEntry(D(r, t), U), StringEntry(C(r, t), ar)]
247+ }
248+ }
249+ }
250+ }
251+
252+
253+
254+@Callable(ag)
255+func flagEvent (t,ax,aw,ay) = {
256+ let az = af(ag)
257+ let aA = az._1
258+ let r = az._2
259+ if (containsElement([g, toString(this)], r))
260+ then if (containsElement(["", "CHANGE_REQUIRED", "FLAGGED", "ILLEGAL"], aw))
261+ then [StringEntry(A(ax, t), aw), StringEntry(B(ax, t), ay)]
262+ else throw(("Unknow status " + aw))
263+ else throw("You are not allowed")
264+ }
265+
266+
267+
268+@Callable(ag)
269+func addTicket (t,X,Y,ad,ae) = {
270+ let aB = af(ag)
271+ let aA = aB._1
272+ let r = aB._2
273+ let aa = aB._3
274+ let ab = R(r)
275+ if ((ab != ""))
276+ then throw(ab)
277+ else {
278+ let aC = Q(t)
279+ if ((aC == ""))
280+ then throw("Event not found")
281+ else if ((aC != r))
282+ then throw("You are not the owner of this event")
283+ else {
284+ let aD = ac(t, r, X, Y, ad, ae)
285+ if ((aD != ""))
286+ then throw("Something went wrong!")
287+ else [StringEntry(E(r, t, aA), X), StringEntry(G(r, t, aA), Y), IntegerEntry(H(r, t, aA), ad), IntegerEntry(I(r, t, aA), ae), BooleanEntry(K(r, t, aA), true)]
288+ }
289+ }
290+ }
291+
292+
293+
294+@Callable(ag)
295+func editTicket (F,t,X,Y,ad,ae) = {
296+ let aE = af(ag)
297+ let aA = aE._1
298+ let r = aE._2
299+ let aa = aE._3
300+ let ab = R(r)
301+ if ((ab != ""))
302+ then throw(ab)
303+ else {
304+ let aC = Q(t)
305+ if ((aC == ""))
306+ then throw("Event not found")
307+ else if ((aC != r))
308+ then throw("You are not the owner of this event")
309+ else {
310+ let aF = b(E(r, t, F))
311+ if ((size(aF) == 0))
312+ then throw("Ticket not found")
313+ else {
314+ let aD = ac(t, r, X, Y, ad, ae)
315+ if ((aD != ""))
316+ then throw("Something went wrong!")
317+ else {
318+ let aG = valueOrElse(getInteger(J(r, t, F)), 0)
319+ if ((aG > ae))
320+ then throw("Max tickets available cannot be lower than amount already sold")
321+ else [StringEntry(E(r, t, F), X), StringEntry(G(r, t, F), Y), IntegerEntry(H(r, t, F), ad), IntegerEntry(I(r, t, F), ae)]
322+ }
323+ }
324+ }
325+ }
326+ }
327+
328+
329+
330+@Callable(ag)
331+func pauseTicket (t,F,aH) = {
332+ let aI = af(ag)
333+ let aA = aI._1
334+ let r = aI._2
335+ let aa = aI._3
336+ let ab = R(r)
337+ if ((ab != ""))
338+ then throw(ab)
339+ else {
340+ let aC = Q(t)
341+ if ((aC == ""))
342+ then throw("Event not found")
343+ else if ((aC != r))
344+ then throw("You are not the owner of this event")
345+ else [BooleanEntry(K(r, t, aA), aH)]
346+ }
347+ }
348+
349+
350+
351+@Callable(ag)
352+func buyTicket (F,t,aJ) = {
353+ let aK = af(ag)
354+ let aA = aK._1
355+ let r = aK._2
356+ let aa = aK._3
357+ let aL = valueOrElse(h("total_tickets_issued"), 0)
358+ let aM = Q(t)
359+ if ((aM == ""))
360+ then throw("Event not found")
361+ else if ((aM != aJ))
362+ then throw("You are not the owner of this event")
363+ else {
364+ let aF = b(E(aJ, t, F))
365+ if ((size(aF) == 0))
366+ then throw("Ticket not found")
367+ else {
368+ let aN = b(w(aJ, t))
369+ if ((aN == ""))
370+ then throw("Art doesn't exist")
371+ else {
372+ let aO = i(K(aJ, t, F))
373+ let aP = h(J(aJ, t, F))
374+ let aQ = h(H(aJ, t, F))
375+ let al = toBase58String(f)
376+ let aR = ak(ag, al, aQ)
377+ let aj = aR._1
378+ let ao = aR._2
379+ let aS = h(I(aJ, t, F))
380+ let aT = fraction(aj, p, 100)
381+ let aU = (aj - aT)
382+ if ((aP == aS))
383+ then throw("Art sold out")
384+ else {
385+ let aV = (aP + 1)
386+ let aW = ((((((((((("Organizer: " + aJ) + ",
387+ EventID: ") + t) + ",
388+ TicketID: ") + F) + ",
389+ EventName: ") + aN) + ",
390+ Issue: ") + toString(aV)) + "/") + toString(aS))
391+ let aX = Issue(("ST_" + toString((aL + 1))), aW, 1, 0, false)
392+ let aY = calculateAssetId(aX)
393+ let aZ = if (if ((aV == aS))
394+ then true
395+ else !(aO))
396+ then false
397+ else true
398+ let ba = ag.caller
399+ let bb = ((((((((("ticket_sold_" + toString(aV)) + "_of_") + toString(aS)) + "_") + t) + "_") + aJ) + "_") + F)
400+ let bc = ((((((((toString(ba) + "_") + toString(aa)) + "_") + aA) + "_") + toString(aj)) + "_") + toBase58String(aY))
401+ let bd = StringEntry(bb, bc)
402+ let be = [IntegerEntry(J(aJ, t, F), aV), StringEntry(("nft_" + toBase58String(aY)), bb), IntegerEntry("total_nft_issued", (aL + 1)), BooleanEntry(K(aJ, t, F), aZ), aX, ScriptTransfer(Address(fromBase58String(aJ)), aU, ao), ScriptTransfer(ba, 1, aY), ScriptTransfer(Address(fromBase58String(e)), aT, ao)]
403+bd :: be
404+ }
405+ }
406+ }
407+ }
408+ }
409+
410+

github/deemru/w8io/169f3d6 
43.19 ms