tx · E9YJ1dw9CAidsCpsrLaABE3zMMMsJmnDetUsvSpQjD3k

3N1RM5X2PdS1vH3vmzRrdzQDjAUjMqk2RbJ:  -0.01400000 Waves

2020.04.16 02:45 [956241] smart account 3N1RM5X2PdS1vH3vmzRrdzQDjAUjMqk2RbJ > SELF 0.00000000 Waves

{ "type": 13, "id": "E9YJ1dw9CAidsCpsrLaABE3zMMMsJmnDetUsvSpQjD3k", "fee": 1400000, "feeAssetId": null, "timestamp": 1586994332969, "version": 1, "sender": "3N1RM5X2PdS1vH3vmzRrdzQDjAUjMqk2RbJ", "senderPublicKey": "5xkQSCjfQmc7gqQcXZtkcWTzv4TmPAWcc81im9ngfwK9", "proofs": [ "2JALH8UAVuGfepyJSQTECakvzMQHFpQaiy3dG4gwR8hc15N5ffxLRLxfkWPpMocwFYaYHexYnHCSGvkS5XkKAVtU" ], "script": "base64:AAIDAAAAAAAAAFIIARIGCgQICAEEEgcKBQgBCAEBEgYKBAgBAQgSAwoBCBIICgYICAEIAQESBQoDCAEBEgQKAggIEgUKAwgIARIFCgMIAQESBgoECAEIARIDCgEIAAAALQAAAAAHYWRkcmVzcwIAAAAjM04xUk01WDJQZFMxdkgzdm16UnJkelFEakFVak1xazJSYkoAAAAADmtleUV2ZW50UHJlZml4AgAAAAJlXwAAAAASa2V5RXZlbnREYXRhUHJlZml4AgAAAAVkYXRhXwAAAAAZa2V5RXZlbnRUaWNrZXRQcmljZVByZWZpeAIAAAAMdGlja2V0UHJpY2VfAAAAABJrZXlFdmVudERhdGVQcmVmaXgCAAAABWRhdGVfAAAAABZrZXlFdmVudEF0dGVuZGVlUHJlZml4AgAAAAJhXwAAAAAYa2V5UHJvZHVjZXJCYWxhbmNlUHJlZml4AgAAAAhiYWxhbmNlXwAAAAAaa2V5RXZlbnRBbW91bnRUaWNrZXRQcmVmaXgCAAAADXRpY2tldEFtb3VudF8AAAAAFmtleUV2ZW50Q2FuY2VsZWRQcmVmaXgCAAAACWNhbmNlbGVkXwAAAAAX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RkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAHYWRkcmVzcwkAAGkAAAACCQAAaAAAAAIFAAAAB2JhbGFuY2UFAAAACmNvbW1pc3Npb24AAAAAAAAAAGQFAAAABHVuaXQFAAAAA25pbAAAAAA31vX+", "chainId": 84, "height": 956241, "spentComplexity": 0 } View: original | compacted Prev: 42TBhB9zGF2memisS41RFxFC5JZFnooKCHZhz2a7Z3af Next: 4GvnSkhd1JcKoAc6v2i26zPRdyNRrVS33bZR66o4hEMJ Diff:
OldNewDifferences
240240 then throw("You don't have enough tickets.")
241241 else if (ac(D))
242242 then throw("This event was canceled. You can redeem your ticket using refundTicket function")
243- else if ((Y(D) > (lastBlock.timestamp + 15000000)))
244- then throw("This event has not yet happened")
245- else WriteSet([DataEntry(H(ax, J, F, D), (Z(ax, J, F, D) - as))])
243+ else WriteSet([DataEntry(H(ax, J, F, D), (Z(ax, J, F, D) - as))])
246244 }
247245
248246
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "3N1RM5X2PdS1vH3vmzRrdzQDjAUjMqk2RbJ"
55
66 let b = "e_"
77
88 let c = "data_"
99
1010 let d = "ticketPrice_"
1111
1212 let e = "date_"
1313
1414 let f = "a_"
1515
1616 let g = "balance_"
1717
1818 let h = "ticketAmount_"
1919
2020 let i = "canceled_"
2121
2222 let j = "ticketMax_"
2323
2424 let k = "requiresId_"
2525
2626 let l = "ticketDescription_"
2727
2828 let m = "tickets_"
2929
3030 let n = "trustee_"
3131
3232 let o = "none"
3333
3434 let p = 5
3535
3636 func q (r) = {
3737 let s = {
3838 let t = getInteger(this, r)
3939 if ($isInstanceOf(t, "Int"))
4040 then {
4141 let u = t
4242 u
4343 }
4444 else 0
4545 }
4646 s
4747 }
4848
4949
5050 func v (r) = {
5151 let w = {
5252 let t = getString(this, r)
5353 if ($isInstanceOf(t, "String"))
5454 then {
5555 let u = t
5656 u
5757 }
5858 else o
5959 }
6060 w
6161 }
6262
6363
6464 func x (r) = {
6565 let y = {
6666 let t = getBoolean(this, r)
6767 if ($isInstanceOf(t, "Boolean"))
6868 then {
6969 let u = t
7070 u
7171 }
7272 else false
7373 }
7474 y
7575 }
7676
7777
7878 func z (A,B) = (b + toBase58String(sha256(toBytes((A + B)))))
7979
8080
8181 func C (D) = (c + D)
8282
8383
8484 func E (D,F) = (((d + toString(F)) + "_") + D)
8585
8686
8787 func G (D) = (e + D)
8888
8989
9090 func H (I,J,F,D) = (((((f + toBase58String(sha256(toBytes((I + J))))) + "_") + toString(F)) + "_") + D)
9191
9292
9393 func K (L,D) = (((g + L) + "_") + D)
9494
9595
9696 func M (D,F) = (((h + toString(F)) + "_") + D)
9797
9898
9999 func N (D) = (i + D)
100100
101101
102102 func O (D) = (k + D)
103103
104104
105105 func P (D,F) = (((j + toString(F)) + "_") + D)
106106
107107
108108 func Q (D,F) = (((l + toString(F)) + "_") + D)
109109
110110
111111 func R (D) = (m + D)
112112
113113
114114 func S (D,T) = (((n + toString(T)) + "_") + D)
115115
116116
117117 func U (V) = v(V)
118118
119119
120120 func W (A,B) = v(z(A, B))
121121
122122
123123 func X (D,F) = q(E(D, F))
124124
125125
126126 func Y (D) = q(G(D))
127127
128128
129129 func Z (I,J,F,D) = q(H(I, J, F, D))
130130
131131
132132 func aa (L,D) = q(K(L, D))
133133
134134
135135 func ab (D,F) = q(M(D, F))
136136
137137
138138 func ac (D) = x(N(D))
139139
140140
141141 func ad (D) = x(O(D))
142142
143143
144144 func ae (D,F) = q(P(D, F))
145145
146146
147147 func af (D,F) = v(Q(D, F))
148148
149149
150150 func ag (D) = q(R(D))
151151
152152
153153 func ah (D,T) = v(S(D, T))
154154
155155
156156 @Callable(ai)
157157 func createEvent (B,aj,ak,al) = {
158158 let am = toBase58String(ai.caller.bytes)
159159 let D = z(am, B)
160160 if ((W(am, B) != o))
161161 then throw("The event already exist")
162162 else if ((lastBlock.timestamp > ak))
163163 then throw("Date cannot be in the past")
164164 else WriteSet([DataEntry(z(am, B), am), DataEntry(C(D), aj), DataEntry(G(D), ak), DataEntry(O(D), al), DataEntry(R(D), 0), DataEntry(N(D), false), DataEntry(S(D, 0), am)])
165165 }
166166
167167
168168
169169 @Callable(ai)
170170 func createEventTicket (D,an,ao,ap,aq) = {
171171 let ar = toBase58String(ai.caller.bytes)
172172 let am = U(D)
173173 let F = ag(D)
174174 if ((am != ar))
175175 then throw("Event does not exist, or you don't have the credentials to perform this action")
176176 else if (((lastBlock.timestamp + 15000000) > Y(D)))
177177 then throw("This event has already happened")
178178 else if (ac(D))
179179 then throw("This event was canceled")
180180 else WriteSet([DataEntry(E(D, F), an), DataEntry(M(D, F), ap), DataEntry(P(D, F), aq), DataEntry(Q(D, F), ao), DataEntry(R(D), (ag(D) + 1))])
181181 }
182182
183183
184184
185185 @Callable(ai)
186186 func purchase (D,F,as,J) = {
187187 let at = extract(ai.payment)
188188 let au = toBase58String(ai.caller.bytes)
189189 let an = X(D, F)
190190 let am = U(D)
191191 let av = ab(D, F)
192192 let aw = (as * an)
193193 if (isDefined(at.assetId))
194194 then throw("can use WAVES only at the moment")
195195 else if ((am == o))
196196 then throw("Event does not exist")
197197 else if ((aw > at.amount))
198198 then throw(((("You did not send enough money. You sent: " + toString(at.amount)) + ". Expected: ") + toString(aw)))
199199 else if ((at.amount > aw))
200200 then throw(((("You send too much money. You sent: " + toString(at.amount)) + ". Total price: ") + toString(aw)))
201201 else if ((0 > (av - as)))
202202 then throw("Not enough tickets left")
203203 else if (((lastBlock.timestamp + 15000000) > Y(D)))
204204 then throw("This event has already happened")
205205 else if (ac(D))
206206 then throw("This event was canceled")
207207 else if (if (ad(D))
208208 then (J == "")
209209 else false)
210210 then throw("This event requires that you register with a personal ID")
211211 else if (if ((ae(D, F) > 0))
212212 then ((Z(au, J, F, D) + as) > ae(D, F))
213213 else false)
214214 then throw("Amount of Tickets exceeds maximum amount per attendee")
215215 else ScriptResult(WriteSet([DataEntry(H(au, J, F, D), (Z(au, J, F, D) + as)), DataEntry(K(am, D), (aa(am, D) + at.amount)), DataEntry(M(D, F), (av - as))]), TransferSet([ScriptTransfer(addressFromStringValue(a), at.amount, unit)]))
216216 }
217217
218218
219219
220220 @Callable(ai)
221221 func cancelEvent (D) = {
222222 let ar = toBase58String(ai.caller.bytes)
223223 if ((U(D) != ar))
224224 then throw("Event does not exist, or you don't have the credentials to perform this action")
225225 else if (((lastBlock.timestamp + 15000000) > Y(D)))
226226 then throw("This event has already happened")
227227 else WriteSet([DataEntry(N(D), true)])
228228 }
229229
230230
231231
232232 @Callable(ai)
233233 func checkin (D,ax,as,J,F,T) = {
234234 let ar = toBase58String(ai.caller.bytes)
235235 if (if ((U(D) != ar))
236236 then (ah(D, T) != ar)
237237 else false)
238238 then throw("Event does not exist, or you don't have the credentials to perform this action")
239239 else if ((as > Z(ax, J, F, D)))
240240 then throw("You don't have enough tickets.")
241241 else if (ac(D))
242242 then throw("This event was canceled. You can redeem your ticket using refundTicket function")
243- else if ((Y(D) > (lastBlock.timestamp + 15000000)))
244- then throw("This event has not yet happened")
245- else WriteSet([DataEntry(H(ax, J, F, D), (Z(ax, J, F, D) - as))])
243+ else WriteSet([DataEntry(H(ax, J, F, D), (Z(ax, J, F, D) - as))])
246244 }
247245
248246
249247
250248 @Callable(ai)
251249 func editEventTickets (D,F,ay) = {
252250 let ar = toBase58String(ai.caller.bytes)
253251 if ((U(D) != ar))
254252 then throw("Event does not exist, or you don't have the credentials to perform this action")
255253 else if (((lastBlock.timestamp + 15000000) > Y(D)))
256254 then throw("This event has already happened")
257255 else if (ac(D))
258256 then throw("This event was already canceled")
259257 else WriteSet([DataEntry(M(D, F), ay)])
260258 }
261259
262260
263261
264262 @Callable(ai)
265263 func editEventProducer (D,az) = {
266264 let am = toBase58String(ai.caller.bytes)
267265 if ((U(D) != am))
268266 then throw("Event does not exist, or you don't have the credentials to perform this action")
269267 else WriteSet([DataEntry(D, az)])
270268 }
271269
272270
273271
274272 @Callable(ai)
275273 func editEventTrustee (D,aA,T) = {
276274 let am = toBase58String(ai.caller.bytes)
277275 if ((U(D) != am))
278276 then throw("Event does not exist, or you don't have the credentials to perform this action")
279277 else WriteSet([DataEntry(S(D, T), aA)])
280278 }
281279
282280
283281
284282 @Callable(ai)
285283 func editEventData (D,aj,ak) = {
286284 let am = toBase58String(ai.caller.bytes)
287285 if ((U(D) != am))
288286 then throw("Event does not exist, or you don't have the credentials to perform this action")
289287 else if ((lastBlock.timestamp > ak))
290288 then throw("Date cannot be in the past")
291289 else if ((Y(D) > ak))
292290 then throw("New date cannot be earlier that the original date")
293291 else WriteSet([DataEntry(C(D), aj), DataEntry(G(D), ak)])
294292 }
295293
296294
297295
298296 @Callable(ai)
299297 func refundTicket (D,as,J,F) = {
300298 let ax = toBase58String(ai.caller.bytes)
301299 let aB = Z(ax, J, F, D)
302300 if ((U(D) == o))
303301 then throw("The event does not exist")
304302 else if ((as > aB))
305303 then throw("You don't have enough registered tickets with this address")
306304 else if (((lastBlock.timestamp + 10000000) > Y(D)))
307305 then throw("This event has already happened")
308306 else ScriptResult(WriteSet([DataEntry(H(ax, J, F, D), (aB - as)), DataEntry(M(D, F), (ab(D, F) + as))]), TransferSet([ScriptTransfer(addressFromStringValue(ax), (as * aB), unit)]))
309307 }
310308
311309
312310
313311 @Callable(ai)
314312 func withdraw (D) = {
315313 let ar = toBase58String(ai.caller.bytes)
316314 let aC = aa(ar, D)
317315 if ((U(D) != ar))
318316 then throw("Event does not exist, or you don't have the credentials to perform this action")
319317 else if ((0 >= aC))
320318 then throw("Insufficient balance")
321319 else if ((Y(D) > (lastBlock.timestamp - 1000000)))
322320 then throw("Event has not yet taken place. Withdraw funds when event takes place.")
323321 else if (ac(D))
324322 then throw("Event has been canceled")
325323 else ScriptResult(WriteSet([DataEntry(K(ar, D), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(ar), (aC - ((aC * p) / 100)), unit), ScriptTransfer(addressFromStringValue(a), ((aC * p) / 100), unit)]))
326324 }
327325
328326

github/deemru/w8io/169f3d6 
59.10 ms