tx · 7VAt1fpN3FLjhNFVPDtHgeDfYgSUqDYmDUkPG7ydZDxQ

3N1RM5X2PdS1vH3vmzRrdzQDjAUjMqk2RbJ:  -0.01400000 Waves

2020.04.03 21:25 [938345] smart account 3N1RM5X2PdS1vH3vmzRrdzQDjAUjMqk2RbJ > SELF 0.00000000 Waves

{ "type": 13, "id": "7VAt1fpN3FLjhNFVPDtHgeDfYgSUqDYmDUkPG7ydZDxQ", "fee": 1400000, "feeAssetId": null, "timestamp": 1585938350176, "version": 1, "sender": "3N1RM5X2PdS1vH3vmzRrdzQDjAUjMqk2RbJ", "senderPublicKey": "5xkQSCjfQmc7gqQcXZtkcWTzv4TmPAWcc81im9ngfwK9", "proofs": [ "61JDx8hiaPECZqMCFL2AjCbHcwpmbeVDZZaThB8bDLwCkSdNq9yRNDrz1eXdDQ13ZJrKJC7C8EMLA3AXt9vukLAw" ], "script": "base64:AAIDAAAAAAAAAD0IARIGCgQICAEEEgcKBQgBCAEBEgYKBAgBAQgSAwoBCBIHCgUICAEIARIFCgMIAQESBgoECAEIARIDCgEIAAAAKgAAAAAHYWRkcmVzcwIAAAAjM04xUk01WDJQZFMxdkgzdm16UnJkelFEakFVak1xazJSYkoAAAAADmtleUV2ZW50UHJlZml4AgAAAAJlXwAAAAASa2V5RXZlbnREYXRhUHJlZml4AgAAAAVkYXRhXwAAAAAZa2V5RXZlbnRUaWNrZXRQcmljZVByZWZpeAIAAAAMdGlja2V0UHJpY2VfAAAAABJrZXlFdmVudERhdGVQcmVmaXgCAAAABWRhdGVfAAAAABZrZXlFdmVudEF0dGVuZGVlUHJlZml4AgAAAAJhXwAAAAAYa2V5UHJvZHVjZXJCYWxhbmNlUHJlZml4AgAAAAhiYWxhbmNlXwAAAAAaa2V5RXZlbnRBbW91bnRUaWNrZXRQcmVmaXgCAAAADXRpY2tldEFtb3VudF8AAAAAFmtleUV2ZW50Q2FuY2VsZWRQcmVmaXgCAAAACWNhbmNlbGVkXwAAAAAXa2V5RXZlbnRUa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AHYmFsYW5jZQUAAAAKY29tbWlzc2lvbgAAAAAAAAAAZAUAAAAEdW5pdAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAAB2FkZHJlc3MJAABpAAAAAgkAAGgAAAACBQAAAAdiYWxhbmNlBQAAAApjb21taXNzaW9uAAAAAAAAAABkBQAAAAR1bml0BQAAAANuaWwAAAAAiJxUCw==", "chainId": 84, "height": 938345, "spentComplexity": 0 } View: original | compacted Prev: Be9uTBnFDpSxgk5ehXbeomNndcw1gZQidHS18cyEgedC Next: Dj15fd9gAnkGga7XL8m6gMr7dmYBL9AamZqEoa1dHjPM Diff:
OldNewDifferences
8585 func F (C) = (e + C)
8686
8787
88-func G (H,I,E,C) = (((((f + toBase58String(sha256(toBytes((H + I))))) + "_") + "0") + "_") + C)
88+func G (H,I,E,C) = (((((f + toBase58String(sha256(toBytes((H + I))))) + "_") + toString(E)) + "_") + C)
8989
9090
9191 func J (K,C) = (((g + K) + "_") + C)
203203 then throw("This event requires that you register with a personal ID")
204204 else if ((ab(C, E) > (W(aq, I, E, C) + ao)))
205205 then throw("Amount of Tickets exceeds maximum amount per attendee")
206- else ScriptResult(WriteSet([DataEntry(G(aq, I, E, C), (W(aq, I, E, C) + ao)), DataEntry(J(ai, C), (X(ai, C) + ap.amount)), DataEntry(L(C, E), (ar - ao))]), TransferSet([ScriptTransfer(addressFromStringValue(a), ap.amount, unit)]))
206+ else TransferSet([ScriptTransfer(addressFromStringValue(a), ap.amount, unit)])
207207 }
208208
209209
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 = "none"
3131
3232 let o = 5
3333
3434 func p (q) = {
3535 let r = {
3636 let s = getInteger(this, q)
3737 if ($isInstanceOf(s, "Int"))
3838 then {
3939 let t = s
4040 t
4141 }
4242 else 0
4343 }
4444 r
4545 }
4646
4747
4848 func u (q) = {
4949 let v = {
5050 let s = getString(this, q)
5151 if ($isInstanceOf(s, "String"))
5252 then {
5353 let t = s
5454 t
5555 }
5656 else n
5757 }
5858 v
5959 }
6060
6161
6262 func w (q) = {
6363 let x = {
6464 let s = getBoolean(this, q)
6565 if ($isInstanceOf(s, "Boolean"))
6666 then {
6767 let t = s
6868 t
6969 }
7070 else false
7171 }
7272 x
7373 }
7474
7575
7676 func y (z,A) = (b + toBase58String(sha256(toBytes((z + A)))))
7777
7878
7979 func B (C) = (c + C)
8080
8181
8282 func D (C,E) = (((d + toString(E)) + "_") + C)
8383
8484
8585 func F (C) = (e + C)
8686
8787
88-func G (H,I,E,C) = (((((f + toBase58String(sha256(toBytes((H + I))))) + "_") + "0") + "_") + C)
88+func G (H,I,E,C) = (((((f + toBase58String(sha256(toBytes((H + I))))) + "_") + toString(E)) + "_") + C)
8989
9090
9191 func J (K,C) = (((g + K) + "_") + C)
9292
9393
9494 func L (C,E) = (((h + toString(E)) + "_") + C)
9595
9696
9797 func M (C) = (i + C)
9898
9999
100100 func N (C) = (k + C)
101101
102102
103103 func O (C,E) = (((j + toString(E)) + "_") + C)
104104
105105
106106 func P (C,E) = (((l + toString(E)) + "_") + C)
107107
108108
109109 func Q (C) = (m + C)
110110
111111
112112 func R (S) = u(S)
113113
114114
115115 func T (z,A) = u(y(z, A))
116116
117117
118118 func U (C,E) = p(D(C, E))
119119
120120
121121 func V (C) = p(F(C))
122122
123123
124124 func W (H,I,E,C) = p(G(H, I, E, C))
125125
126126
127127 func X (K,C) = p(J(K, C))
128128
129129
130130 func Y (C,E) = p(L(C, E))
131131
132132
133133 func Z (C) = w(M(C))
134134
135135
136136 func aa (C) = w(N(C))
137137
138138
139139 func ab (C,E) = p(O(C, E))
140140
141141
142142 func ac (C,E) = u(P(C, E))
143143
144144
145145 func ad (C) = p(Q(C))
146146
147147
148148 @Callable(ae)
149149 func createEvent (A,af,ag,ah) = {
150150 let ai = toBase58String(ae.caller.bytes)
151151 let C = y(ai, A)
152152 if ((T(ai, A) != n))
153153 then throw("The event already exist")
154154 else if ((lastBlock.timestamp > ag))
155155 then throw("Date cannot be in the past")
156156 else WriteSet([DataEntry(y(ai, A), ai), DataEntry(B(C), af), DataEntry(F(C), ag), DataEntry(N(C), ah), DataEntry(Q(C), 0)])
157157 }
158158
159159
160160
161161 @Callable(ae)
162162 func createEventTicket (C,aj,ak,al,am) = {
163163 let an = toBase58String(ae.caller.bytes)
164164 let ai = R(C)
165165 let E = ad(C)
166166 if ((ai != an))
167167 then throw("Event does not exist, or you don't have the credentials to perform this action")
168168 else if (((lastBlock.timestamp + 15000000) > V(C)))
169169 then throw("This event has already happened")
170170 else if (Z(C))
171171 then throw("This event was canceled")
172172 else WriteSet([DataEntry(D(C, E), aj), DataEntry(L(C, E), al), DataEntry(O(C, E), am), DataEntry(P(C, E), ak), DataEntry(Q(C), (ad(C) + 1))])
173173 }
174174
175175
176176
177177 @Callable(ae)
178178 func purchase (C,E,ao,I) = {
179179 let ap = extract(ae.payment)
180180 let aq = toBase58String(ae.caller.bytes)
181181 let aj = U(C, E)
182182 let ai = R(C)
183183 let ar = Y(C, E)
184184 let as = ""
185185 let at = (ao * aj)
186186 if (isDefined(ap.assetId))
187187 then throw("can use WAVES only at the moment")
188188 else if ((ai == n))
189189 then throw("Event does not exist")
190190 else if ((at > ap.amount))
191191 then throw("You did not send enough money.")
192192 else if ((ap.amount > at))
193193 then throw("You send too much money.")
194194 else if ((0 > (ar - ao)))
195195 then throw("Not enough tickets left")
196196 else if (((lastBlock.timestamp + 15000000) > V(C)))
197197 then throw("This event has already happened")
198198 else if (Z(C))
199199 then throw("This event was canceled")
200200 else if (if (aa(C))
201201 then (I == "")
202202 else false)
203203 then throw("This event requires that you register with a personal ID")
204204 else if ((ab(C, E) > (W(aq, I, E, C) + ao)))
205205 then throw("Amount of Tickets exceeds maximum amount per attendee")
206- else ScriptResult(WriteSet([DataEntry(G(aq, I, E, C), (W(aq, I, E, C) + ao)), DataEntry(J(ai, C), (X(ai, C) + ap.amount)), DataEntry(L(C, E), (ar - ao))]), TransferSet([ScriptTransfer(addressFromStringValue(a), ap.amount, unit)]))
206+ else TransferSet([ScriptTransfer(addressFromStringValue(a), ap.amount, unit)])
207207 }
208208
209209
210210
211211 @Callable(ae)
212212 func cancelEvent (C) = {
213213 let an = toBase58String(ae.caller.bytes)
214214 if ((R(C) != an))
215215 then throw("Event does not exist, or you don't have the credentials to perform this action")
216216 else if (((lastBlock.timestamp + 15000000) > V(C)))
217217 then throw("This event has already happened")
218218 else WriteSet([DataEntry(M(C), true)])
219219 }
220220
221221
222222
223223 @Callable(ae)
224224 func checkin (C,au,ao,I,E) = {
225225 let an = toBase58String(ae.caller.bytes)
226226 if ((R(C) != an))
227227 then throw("Event does not exist, or you don't have the credentials to perform this action")
228228 else if ((ao > W(au, I, E, C)))
229229 then throw("You don't have enough tickets.")
230230 else if (Z(C))
231231 then throw("This event was canceled. You can redeem your ticket using refundTicket function")
232232 else WriteSet([DataEntry(G(au, I, E, C), (W(au, I, E, C) - ao))])
233233 }
234234
235235
236236
237237 @Callable(ae)
238238 func editEventTickets (C,E,av) = {
239239 let an = toBase58String(ae.caller.bytes)
240240 if ((R(C) != an))
241241 then throw("Event does not exist, or you don't have the credentials to perform this action")
242242 else if (((lastBlock.timestamp + 15000000) > V(C)))
243243 then throw("This event has already happened")
244244 else if (Z(C))
245245 then throw("This event was already canceled")
246246 else WriteSet([DataEntry(L(C, E), av)])
247247 }
248248
249249
250250
251251 @Callable(ae)
252252 func refundTicket (C,ao,I,E) = {
253253 let au = toBase58String(ae.caller.bytes)
254254 let aw = W(au, I, E, C)
255255 if ((R(C) == n))
256256 then throw("The event does not exist")
257257 else if ((ao > aw))
258258 then throw("You don't have enough registered tickets with this address")
259259 else if (((lastBlock.timestamp + 15000000) > V(C)))
260260 then throw("This event has already happened")
261261 else ScriptResult(WriteSet([DataEntry(G(au, I, E, C), (aw - ao))]), TransferSet([ScriptTransfer(addressFromStringValue(au), (ao * aw), unit)]))
262262 }
263263
264264
265265
266266 @Callable(ae)
267267 func withdraw (C) = {
268268 let an = toBase58String(ae.caller.bytes)
269269 let ax = X(an, C)
270270 if ((R(C) != an))
271271 then throw("Event does not exist, or you don't have the credentials to perform this action")
272272 else if ((0 >= ax))
273273 then throw("Insufficient balance")
274274 else if (Z(C))
275275 then throw("Event has been canceled")
276276 else ScriptResult(WriteSet([DataEntry(J(an, C), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(an), (ax - ((ax * o) / 100)), unit), ScriptTransfer(addressFromStringValue(a), ((ax * o) / 100), unit)]))
277277 }
278278
279279

github/deemru/w8io/169f3d6 
43.55 ms