tx · 3t6nwNCUtoKAnLsmFiEFAaR4VXsNf3GbBh75aNBj28i5

3MtHYn3dDpoVUf6FNzwXU8k1cqH3KMxgNFP:  -0.01400000 Waves

2021.12.27 05:41 [1852075] smart account 3MtHYn3dDpoVUf6FNzwXU8k1cqH3KMxgNFP > SELF 0.00000000 Waves

{ "type": 13, "id": "3t6nwNCUtoKAnLsmFiEFAaR4VXsNf3GbBh75aNBj28i5", "fee": 1400000, "feeAssetId": null, "timestamp": 1640572935328, "version": 2, "chainId": 84, "sender": "3MtHYn3dDpoVUf6FNzwXU8k1cqH3KMxgNFP", "senderPublicKey": "CERNwqnHFnGf66rmS4s5mpWEPxv5RMqg2rSKPJCCgTbQ", "proofs": [ "fKtaLArom8VxjtLYM7MCWNHGhEPXPvtwhonti1GuXfptZxgnwq6mzMTWKruvX2nTfjTsuaTWpQSPhTX2BNc95Qt" ], "script": "base64:AAIFAAAAAAAAABwIAhIMCgoICAEBAQEYCAgIEgMKAQgSBQoDCAgIAAAAGQAAAAASc3lzdGVtQXNzZXRJZEJ5dGVzAQAAACBl2/7IbWHpVuwmUYs5w8vx8CJaoK7/XpSEcwFpn5187QAAAAAbZmFjdG9yeUNvbnRyYWN0QWRkcmVzc0J5dGVzAQAAABoBVKSIz4/LrUrKgYcmdcl3OfutIPleSLVTRQAAAAAiY3JlYXRlRXZlbnRNaW5pbWFsU2VydmljZUZlZUFtb3VudAAAAAAAAAAACgAAAAAgZWRpdEV2ZW50TWluaW1hbFNlcnZpY2VGZWVBbW91bnQAAAAAAAAAABQAAAAAEGtleURhdGFTZXBhcmF0b3ICAAAAAToAAAAAEnZhbHVlRGF0YVNlcGFyYXRvcgIAAAACX18BAAAAEnVuc2FmZUdldEFzc2V0QnlJZAAAAAEAAAAHYXNzZXRJZAQAAAAHJG1hdGNoMAkAA+wAAAABBQAAAAdhc3NldElkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAVBc3NldAQAAAAFYXNzZXQFAAAAByRtYXRjaDAFAAA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RTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tledfA9Kg=", "height": 1852075, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BYeDwbUtqHoSEJiGELua9fcbtxzLq4PHc6rQGsNkjeW8 Next: 3zk2Wuz5T6cJzBPxtXF52Jfq6jSnT6B14SpXR2V87M7G Diff:
OldNewDifferences
7171
7272 func C (D,E,F,G,H,I,J,K,L,M,N) = {
7373 let O = {
74- let i = J
75- if ($isInstanceOf(i, "Int"))
74+ let i = L
75+ if ($isInstanceOf(i, "String"))
7676 then {
7777 let O = i
78- toString(O)
78+ O
7979 }
8080 else ""
8181 }
8282 let P = {
83- let i = K
83+ let i = M
8484 if ($isInstanceOf(i, "String"))
8585 then {
8686 let P = i
8989 else ""
9090 }
9191 let Q = {
92- let i = L
92+ let i = N
9393 if ($isInstanceOf(i, "String"))
9494 then {
9595 let Q = i
9797 }
9898 else ""
9999 }
100- let R = {
101- let i = M
102- if ($isInstanceOf(i, "String"))
103- then {
104- let R = i
105- R
106- }
107- else ""
108- }
109- let S = {
110- let i = N
111- if ($isInstanceOf(i, "Int"))
112- then {
113- let S = i
114- toString(S)
115- }
116- else ""
117- }
118- makeString([toString(D), E, F, toString(G), toString(H), makeString(I, ","), O, P, Q, R, S], f)
100+ makeString([toString(D), E, F, toString(G), toString(H), toString(I), toString(J), makeString(K, ","), O, P, Q], f)
119101 }
120102
121103
122-func T (U) = {
123- let V = split(U, f)
124- let D = addressFromString(V[0])
125- let E = V[1]
126- let F = V[2]
127- let G = parseIntValue(V[3])
128- let H = parseIntValue(V[4])
129- let I = split(V[5], ",")
130- let J = parseInt(V[6])
131- let K = if ((V[7] == ""))
104+func R (S) = {
105+ let T = split(S, f)
106+ let D = addressFromString(T[0])
107+ let E = T[1]
108+ let F = T[2]
109+ let G = parseIntValue(T[3])
110+ let H = parseInt(T[4])
111+ let I = parseIntValue(T[5])
112+ let J = parseIntValue(T[6])
113+ let K = split(T[7], ",")
114+ let L = if ((T[8] == ""))
132115 then unit
133- else V[7]
134- let L = if ((V[8] == ""))
116+ else T[8]
117+ let M = if ((T[9] == ""))
135118 then unit
136- else V[8]
137- let M = if ((V[9] == ""))
119+ else T[9]
120+ let N = if ((T[10] == ""))
138121 then unit
139- else V[9]
140- let N = parseInt(V[10])
122+ else T[10]
141123 $Tuple11(D, E, F, G, H, I, J, K, L, M, N)
142124 }
143125
144126
145-func W (B) = {
146- let X = A(B)
147- let V = {
148- let i = getString(X)
127+func U (B) = {
128+ let V = A(B)
129+ let T = {
130+ let i = getString(V)
149131 if ($isInstanceOf(i, "String"))
150132 then {
151- let Y = i
152- Y
133+ let W = i
134+ W
153135 }
154136 else throw("Specified event not found")
155137 }
156- T(V)
138+ R(T)
157139 }
158140
159141
160-func Z (B) = makeString(["event", B, "ticket_count"], e)
142+func X (B) = makeString(["event", B, "ticket_count"], e)
161143
162144
163-func aa (B,ab) = makeString(["ticket", B, toString(ab)], e)
145+func Y (B,Z) = makeString(["ticket", B, toString(Z)], e)
164146
165147
166-func ac (ad) = makeString(["ticket", ad, "data"], f)
148+func aa (ab) = makeString(["ticket", ab, "data"], f)
167149
168150
169-func ae (af,ag,ah,ai) = makeString([toBase58String(af), toString(ag), if (isDefined(ah))
170- then toBase58String(value(ah))
171- else "", if (isDefined(ai))
172- then toBase58String(value(ai))
151+func ac (ad,ae,af,ag) = makeString([toBase58String(ad), toString(ae), if (isDefined(af))
152+ then toBase58String(value(af))
153+ else "", if (isDefined(ag))
154+ then toBase58String(value(ag))
173155 else ""], f)
174156
175157
176-func aj (U) = {
177- let ak = split(U, f)
178- let af = fromBase58String(ak[0])
179- let ag = parseIntValue(ak[1])
180- let al = {
181- let i = ak[2]
158+func ah (S) = {
159+ let ai = split(S, f)
160+ let ad = fromBase58String(ai[0])
161+ let ae = parseIntValue(ai[1])
162+ let aj = {
163+ let i = ai[2]
182164 if ($isInstanceOf(i, "String"))
183165 then {
184- let Y = i
185- fromBase58String(Y)
166+ let W = i
167+ fromBase58String(W)
186168 }
187169 else unit
188170 }
189- let am = {
190- let i = ak[3]
171+ let ak = {
172+ let i = ai[3]
191173 if ($isInstanceOf(i, "String"))
192174 then {
193- let Y = i
194- fromBase58String(Y)
175+ let W = i
176+ fromBase58String(W)
195177 }
196178 else unit
197179 }
198- $Tuple4(af, ag, al, am)
180+ $Tuple4(ad, ae, aj, ak)
199181 }
200182
201183
202-func an (ad) = {
203- let ao = ac(ad)
204- let ak = {
205- let i = getString(ao)
184+func al (ab) = {
185+ let am = aa(ab)
186+ let ai = {
187+ let i = getString(am)
206188 if ($isInstanceOf(i, "String"))
207189 then {
208- let Y = i
209- Y
190+ let W = i
191+ W
210192 }
211193 else throw("Specified ticket not found")
212194 }
213- aj(ak)
195+ ah(ai)
214196 }
215197
216198
217-func ap (ad) = {
218- let aq = split(ad, e)
219- addressFromStringValue(aq[3])
199+func an (ab) = {
200+ let ao = split(ab, e)
201+ addressFromStringValue(ao[3])
220202 }
221203
222204
223-func ar (j) = if (if ((j.decimals == 0))
205+func ap (j) = if (if ((j.decimals == 0))
224206 then true
225207 else (j.quantity == 1))
226208 then true
228210
229211
230212 @Callable(w)
231-func createEvent (E,F,G,H,I,as,P,Q,R,S) = {
232- let at = g(a)
213+func createEvent (E,F,G,aq,I,J,K,O,P,Q) = {
214+ let ar = g(a)
233215 if ((1 > size(w.payments)))
234216 then throw("You have to send service fee as payment")
235217 else {
237219 if (isDefined(o("Create event", q, c)))
238220 then throw("Reached unreachable state")
239221 else {
240- let au = x(w.caller)
241- let av = y(w.caller, au)
222+ let as = x(w.caller)
223+ let at = y(w.caller, as)
242224 if ((G > height))
243225 then throw("Event start height has to be from the future")
244- else if ((0 > H))
245- then throw("Ticket price has to be zero or positive number")
246- else {
247- let aw = {
248- let i = as
249- if ($isInstanceOf(i, "Int"))
250- then {
251- let ax = i
252- if ((1 > ax))
253- then throw("Event duration has to be positive number")
254- else ax
255- }
256- else unit
257- }
258- let ay = {
259- let i = S
260- if ($isInstanceOf(i, "Int"))
261- then {
262- let az = i
263- if ((1 > az))
264- then throw("Event ticket count has to be positive number")
265- else az
266- }
267- else unit
268- }
269-[IntegerEntry(t(w.caller), au), StringEntry(A(av), C(w.caller, E, F, G, H, I, aw, P, Q, R, ay))]
270- }
226+ else if ((1 > aq))
227+ then throw("Event duration has to be positive number")
228+ else if ((0 > I))
229+ then throw("Ticket price has to be zero or positive number")
230+ else if ((1 > J))
231+ then throw("Ticket count has to be positive number")
232+ else [IntegerEntry(t(w.caller), as), StringEntry(A(at), C(w.caller, E, F, G, aq, I, J, K, O, P, Q))]
271233 }
272234 }
273235 }
276238
277239 @Callable(w)
278240 func buyTicket (B) = {
279- let at = g(a)
241+ let ar = g(a)
280242 if ((1 > size(w.payments)))
281243 then throw("You have to attach the ticket payment")
282244 else {
283- let aA = w.payments[0]
284- let s = toBase58String(at.id)
285- if (!(k(aA.assetId, s)))
245+ let au = w.payments[0]
246+ let s = toBase58String(ar.id)
247+ if (!(k(au.assetId, s)))
286248 then throw(("Ticket payment has to be in system asset " + s))
287249 else {
288- let V = W(B)
289- let aB = Z(B)
290- let aC = {
291- let i = getInteger(aB)
250+ let T = U(B)
251+ let av = X(B)
252+ let aw = {
253+ let i = getInteger(av)
292254 if ($isInstanceOf(i, "Int"))
293255 then {
294- let aD = i
295- aD
256+ let ax = i
257+ ax
296258 }
297259 else 0
298260 }
299- let N = V._11
300- if (if (isDefined(N))
301- then (aC >= value(N))
302- else false)
261+ let J = T._7
262+ if ((aw >= J))
303263 then throw("All the tickets are sold out")
304264 else {
305- let aE = aa(B, w.caller)
306- if (isDefined(getString(aE)))
265+ let ay = Y(B, w.caller)
266+ if (isDefined(getString(ay)))
307267 then throw("You already have a ticket")
308268 else {
309- let aF = V._5
310- if ((aF > aA.amount))
311- then throw(("Attached ticket payment amount is less then event ticket price " + toString(aF)))
312- else [IntegerEntry(aB, (aC + 1)), StringEntry(aE, ae(w.transactionId, aA.amount, unit, unit))]
269+ let az = T._6
270+ if ((az > au.amount))
271+ then throw(("Attached ticket payment amount is less then event ticket price " + toString(az)))
272+ else [IntegerEntry(av, (aw + 1)), StringEntry(ay, ac(w.transactionId, au.amount, unit, unit))]
313273 }
314274 }
315275 }
319279
320280
321281 @Callable(w)
322-func giveBitographForTicket (ad,aG,aH) = if (!(isDefined(getString(ad))))
282+func giveBitographForTicket (ab,aA,aB) = if (!(isDefined(getString(ab))))
323283 then throw("Ticket does not exists")
324284 else {
325- let ak = an(ad)
326- let am = ak._4
327- if (isDefined(am))
328- then throw((("There is bitograph " + toBase58String(value(am))) + " that has already been given for the ticket"))
285+ let ai = al(ab)
286+ let ak = ai._4
287+ if (isDefined(ak))
288+ then throw((("There is bitograph " + toBase58String(value(ak))) + " that has already been given for the ticket"))
329289 else {
330- let aI = ap(ad)
331- let aJ = invoke(Address(b), "createBitograph", [aG, aH], nil)
332- if ((aJ == aJ))
290+ let aC = an(ab)
291+ let aD = invoke(Address(b), "createBitograph", [aA, aB], nil)
292+ if ((aD == aD))
333293 then {
334- let aK = {
335- let i = aJ
294+ let aE = {
295+ let i = aD
336296 if ($isInstanceOf(i, "ByteVector"))
337297 then {
338- let aL = i
339- aL
298+ let aF = i
299+ aF
340300 }
341301 else throw("Error occurred while creating a bitograph")
342302 }
343-[ScriptTransfer(aI, 1, aK), StringEntry(ad, ae(ak._1, ak._2, w.transactionId, aK))]
303+[ScriptTransfer(aC, 1, aE), StringEntry(ab, ac(ai._1, ai._2, w.transactionId, aE))]
344304 }
345305 else throw("Strict value is not equal to itself.")
346306 }
347307 }
348308
349309
350-@Verifier(aM)
351-func aN () = sigVerify(aM.bodyBytes, aM.proofs[0], aM.senderPublicKey)
310+@Verifier(aG)
311+func aH () = sigVerify(aG.bodyBytes, aG.proofs[0], aG.senderPublicKey)
352312
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'7rck4P88F6QZEjJdU5uN56xCudCSAPYhoQJ4PJ9Wrnkc'
55
66 let b = base58'3N4v4VAHbK5das4wB5QGripYbQFJ3PaB75e'
77
88 let c = 10
99
1010 let d = 20
1111
1212 let e = ":"
1313
1414 let f = "__"
1515
1616 func g (h) = {
1717 let i = assetInfo(h)
1818 if ($isInstanceOf(i, "Asset"))
1919 then {
2020 let j = i
2121 j
2222 }
2323 else throw("Specified asset does not exist")
2424 }
2525
2626
2727 func k (l,m) = {
2828 let n = if (isDefined(l))
2929 then toBase58String(value(l))
3030 else "WAVES"
3131 if ((n != m))
3232 then false
3333 else true
3434 }
3535
3636
3737 func o (p,q,r) = {
3838 let s = toBase58String(a)
3939 if (!(k(q.assetId, s)))
4040 then throw(((p + " requires service fee payment in the system asset ") + s))
4141 else if (if ((r > q.amount))
4242 then true
4343 else (q.amount > r))
4444 then throw((("Attached service fee payment amount is not equal to required service fee (" + toString(r)) + ")"))
4545 else unit
4646 }
4747
4848
4949 func t (u) = makeString([toString(u), "last_event_idx"], e)
5050
5151
5252 func v (u) = {
5353 let i = getInteger(this, t(u))
5454 if ($isInstanceOf(i, "Int"))
5555 then {
5656 let w = i
5757 w
5858 }
5959 else 1
6060 }
6161
6262
6363 func x (u) = (v(u) + 1)
6464
6565
6666 func y (u,z) = makeString([toString(u), toString(z)], e)
6767
6868
6969 func A (B) = makeString(["event", B, "data"], e)
7070
7171
7272 func C (D,E,F,G,H,I,J,K,L,M,N) = {
7373 let O = {
74- let i = J
75- if ($isInstanceOf(i, "Int"))
74+ let i = L
75+ if ($isInstanceOf(i, "String"))
7676 then {
7777 let O = i
78- toString(O)
78+ O
7979 }
8080 else ""
8181 }
8282 let P = {
83- let i = K
83+ let i = M
8484 if ($isInstanceOf(i, "String"))
8585 then {
8686 let P = i
8787 P
8888 }
8989 else ""
9090 }
9191 let Q = {
92- let i = L
92+ let i = N
9393 if ($isInstanceOf(i, "String"))
9494 then {
9595 let Q = i
9696 Q
9797 }
9898 else ""
9999 }
100- let R = {
101- let i = M
102- if ($isInstanceOf(i, "String"))
103- then {
104- let R = i
105- R
106- }
107- else ""
108- }
109- let S = {
110- let i = N
111- if ($isInstanceOf(i, "Int"))
112- then {
113- let S = i
114- toString(S)
115- }
116- else ""
117- }
118- makeString([toString(D), E, F, toString(G), toString(H), makeString(I, ","), O, P, Q, R, S], f)
100+ makeString([toString(D), E, F, toString(G), toString(H), toString(I), toString(J), makeString(K, ","), O, P, Q], f)
119101 }
120102
121103
122-func T (U) = {
123- let V = split(U, f)
124- let D = addressFromString(V[0])
125- let E = V[1]
126- let F = V[2]
127- let G = parseIntValue(V[3])
128- let H = parseIntValue(V[4])
129- let I = split(V[5], ",")
130- let J = parseInt(V[6])
131- let K = if ((V[7] == ""))
104+func R (S) = {
105+ let T = split(S, f)
106+ let D = addressFromString(T[0])
107+ let E = T[1]
108+ let F = T[2]
109+ let G = parseIntValue(T[3])
110+ let H = parseInt(T[4])
111+ let I = parseIntValue(T[5])
112+ let J = parseIntValue(T[6])
113+ let K = split(T[7], ",")
114+ let L = if ((T[8] == ""))
132115 then unit
133- else V[7]
134- let L = if ((V[8] == ""))
116+ else T[8]
117+ let M = if ((T[9] == ""))
135118 then unit
136- else V[8]
137- let M = if ((V[9] == ""))
119+ else T[9]
120+ let N = if ((T[10] == ""))
138121 then unit
139- else V[9]
140- let N = parseInt(V[10])
122+ else T[10]
141123 $Tuple11(D, E, F, G, H, I, J, K, L, M, N)
142124 }
143125
144126
145-func W (B) = {
146- let X = A(B)
147- let V = {
148- let i = getString(X)
127+func U (B) = {
128+ let V = A(B)
129+ let T = {
130+ let i = getString(V)
149131 if ($isInstanceOf(i, "String"))
150132 then {
151- let Y = i
152- Y
133+ let W = i
134+ W
153135 }
154136 else throw("Specified event not found")
155137 }
156- T(V)
138+ R(T)
157139 }
158140
159141
160-func Z (B) = makeString(["event", B, "ticket_count"], e)
142+func X (B) = makeString(["event", B, "ticket_count"], e)
161143
162144
163-func aa (B,ab) = makeString(["ticket", B, toString(ab)], e)
145+func Y (B,Z) = makeString(["ticket", B, toString(Z)], e)
164146
165147
166-func ac (ad) = makeString(["ticket", ad, "data"], f)
148+func aa (ab) = makeString(["ticket", ab, "data"], f)
167149
168150
169-func ae (af,ag,ah,ai) = makeString([toBase58String(af), toString(ag), if (isDefined(ah))
170- then toBase58String(value(ah))
171- else "", if (isDefined(ai))
172- then toBase58String(value(ai))
151+func ac (ad,ae,af,ag) = makeString([toBase58String(ad), toString(ae), if (isDefined(af))
152+ then toBase58String(value(af))
153+ else "", if (isDefined(ag))
154+ then toBase58String(value(ag))
173155 else ""], f)
174156
175157
176-func aj (U) = {
177- let ak = split(U, f)
178- let af = fromBase58String(ak[0])
179- let ag = parseIntValue(ak[1])
180- let al = {
181- let i = ak[2]
158+func ah (S) = {
159+ let ai = split(S, f)
160+ let ad = fromBase58String(ai[0])
161+ let ae = parseIntValue(ai[1])
162+ let aj = {
163+ let i = ai[2]
182164 if ($isInstanceOf(i, "String"))
183165 then {
184- let Y = i
185- fromBase58String(Y)
166+ let W = i
167+ fromBase58String(W)
186168 }
187169 else unit
188170 }
189- let am = {
190- let i = ak[3]
171+ let ak = {
172+ let i = ai[3]
191173 if ($isInstanceOf(i, "String"))
192174 then {
193- let Y = i
194- fromBase58String(Y)
175+ let W = i
176+ fromBase58String(W)
195177 }
196178 else unit
197179 }
198- $Tuple4(af, ag, al, am)
180+ $Tuple4(ad, ae, aj, ak)
199181 }
200182
201183
202-func an (ad) = {
203- let ao = ac(ad)
204- let ak = {
205- let i = getString(ao)
184+func al (ab) = {
185+ let am = aa(ab)
186+ let ai = {
187+ let i = getString(am)
206188 if ($isInstanceOf(i, "String"))
207189 then {
208- let Y = i
209- Y
190+ let W = i
191+ W
210192 }
211193 else throw("Specified ticket not found")
212194 }
213- aj(ak)
195+ ah(ai)
214196 }
215197
216198
217-func ap (ad) = {
218- let aq = split(ad, e)
219- addressFromStringValue(aq[3])
199+func an (ab) = {
200+ let ao = split(ab, e)
201+ addressFromStringValue(ao[3])
220202 }
221203
222204
223-func ar (j) = if (if ((j.decimals == 0))
205+func ap (j) = if (if ((j.decimals == 0))
224206 then true
225207 else (j.quantity == 1))
226208 then true
227209 else !(j.reissuable)
228210
229211
230212 @Callable(w)
231-func createEvent (E,F,G,H,I,as,P,Q,R,S) = {
232- let at = g(a)
213+func createEvent (E,F,G,aq,I,J,K,O,P,Q) = {
214+ let ar = g(a)
233215 if ((1 > size(w.payments)))
234216 then throw("You have to send service fee as payment")
235217 else {
236218 let q = w.payments[1]
237219 if (isDefined(o("Create event", q, c)))
238220 then throw("Reached unreachable state")
239221 else {
240- let au = x(w.caller)
241- let av = y(w.caller, au)
222+ let as = x(w.caller)
223+ let at = y(w.caller, as)
242224 if ((G > height))
243225 then throw("Event start height has to be from the future")
244- else if ((0 > H))
245- then throw("Ticket price has to be zero or positive number")
246- else {
247- let aw = {
248- let i = as
249- if ($isInstanceOf(i, "Int"))
250- then {
251- let ax = i
252- if ((1 > ax))
253- then throw("Event duration has to be positive number")
254- else ax
255- }
256- else unit
257- }
258- let ay = {
259- let i = S
260- if ($isInstanceOf(i, "Int"))
261- then {
262- let az = i
263- if ((1 > az))
264- then throw("Event ticket count has to be positive number")
265- else az
266- }
267- else unit
268- }
269-[IntegerEntry(t(w.caller), au), StringEntry(A(av), C(w.caller, E, F, G, H, I, aw, P, Q, R, ay))]
270- }
226+ else if ((1 > aq))
227+ then throw("Event duration has to be positive number")
228+ else if ((0 > I))
229+ then throw("Ticket price has to be zero or positive number")
230+ else if ((1 > J))
231+ then throw("Ticket count has to be positive number")
232+ else [IntegerEntry(t(w.caller), as), StringEntry(A(at), C(w.caller, E, F, G, aq, I, J, K, O, P, Q))]
271233 }
272234 }
273235 }
274236
275237
276238
277239 @Callable(w)
278240 func buyTicket (B) = {
279- let at = g(a)
241+ let ar = g(a)
280242 if ((1 > size(w.payments)))
281243 then throw("You have to attach the ticket payment")
282244 else {
283- let aA = w.payments[0]
284- let s = toBase58String(at.id)
285- if (!(k(aA.assetId, s)))
245+ let au = w.payments[0]
246+ let s = toBase58String(ar.id)
247+ if (!(k(au.assetId, s)))
286248 then throw(("Ticket payment has to be in system asset " + s))
287249 else {
288- let V = W(B)
289- let aB = Z(B)
290- let aC = {
291- let i = getInteger(aB)
250+ let T = U(B)
251+ let av = X(B)
252+ let aw = {
253+ let i = getInteger(av)
292254 if ($isInstanceOf(i, "Int"))
293255 then {
294- let aD = i
295- aD
256+ let ax = i
257+ ax
296258 }
297259 else 0
298260 }
299- let N = V._11
300- if (if (isDefined(N))
301- then (aC >= value(N))
302- else false)
261+ let J = T._7
262+ if ((aw >= J))
303263 then throw("All the tickets are sold out")
304264 else {
305- let aE = aa(B, w.caller)
306- if (isDefined(getString(aE)))
265+ let ay = Y(B, w.caller)
266+ if (isDefined(getString(ay)))
307267 then throw("You already have a ticket")
308268 else {
309- let aF = V._5
310- if ((aF > aA.amount))
311- then throw(("Attached ticket payment amount is less then event ticket price " + toString(aF)))
312- else [IntegerEntry(aB, (aC + 1)), StringEntry(aE, ae(w.transactionId, aA.amount, unit, unit))]
269+ let az = T._6
270+ if ((az > au.amount))
271+ then throw(("Attached ticket payment amount is less then event ticket price " + toString(az)))
272+ else [IntegerEntry(av, (aw + 1)), StringEntry(ay, ac(w.transactionId, au.amount, unit, unit))]
313273 }
314274 }
315275 }
316276 }
317277 }
318278
319279
320280
321281 @Callable(w)
322-func giveBitographForTicket (ad,aG,aH) = if (!(isDefined(getString(ad))))
282+func giveBitographForTicket (ab,aA,aB) = if (!(isDefined(getString(ab))))
323283 then throw("Ticket does not exists")
324284 else {
325- let ak = an(ad)
326- let am = ak._4
327- if (isDefined(am))
328- then throw((("There is bitograph " + toBase58String(value(am))) + " that has already been given for the ticket"))
285+ let ai = al(ab)
286+ let ak = ai._4
287+ if (isDefined(ak))
288+ then throw((("There is bitograph " + toBase58String(value(ak))) + " that has already been given for the ticket"))
329289 else {
330- let aI = ap(ad)
331- let aJ = invoke(Address(b), "createBitograph", [aG, aH], nil)
332- if ((aJ == aJ))
290+ let aC = an(ab)
291+ let aD = invoke(Address(b), "createBitograph", [aA, aB], nil)
292+ if ((aD == aD))
333293 then {
334- let aK = {
335- let i = aJ
294+ let aE = {
295+ let i = aD
336296 if ($isInstanceOf(i, "ByteVector"))
337297 then {
338- let aL = i
339- aL
298+ let aF = i
299+ aF
340300 }
341301 else throw("Error occurred while creating a bitograph")
342302 }
343-[ScriptTransfer(aI, 1, aK), StringEntry(ad, ae(ak._1, ak._2, w.transactionId, aK))]
303+[ScriptTransfer(aC, 1, aE), StringEntry(ab, ac(ai._1, ai._2, w.transactionId, aE))]
344304 }
345305 else throw("Strict value is not equal to itself.")
346306 }
347307 }
348308
349309
350-@Verifier(aM)
351-func aN () = sigVerify(aM.bodyBytes, aM.proofs[0], aM.senderPublicKey)
310+@Verifier(aG)
311+func aH () = sigVerify(aG.bodyBytes, aG.proofs[0], aG.senderPublicKey)
352312

github/deemru/w8io/026f985 
72.25 ms