tx · 8EqZVdGta1TGLN8JwVJxv8PDhfCesBViuoWhKwhJfrjm

3N1RM5X2PdS1vH3vmzRrdzQDjAUjMqk2RbJ:  -0.01400000 Waves

2020.04.08 16:19 [945368] smart account 3N1RM5X2PdS1vH3vmzRrdzQDjAUjMqk2RbJ > SELF 0.00000000 Waves

{ "type": 13, "id": "8EqZVdGta1TGLN8JwVJxv8PDhfCesBViuoWhKwhJfrjm", "fee": 1400000, "feeAssetId": null, "timestamp": 1586351952040, "version": 1, "sender": "3N1RM5X2PdS1vH3vmzRrdzQDjAUjMqk2RbJ", "senderPublicKey": "5xkQSCjfQmc7gqQcXZtkcWTzv4TmPAWcc81im9ngfwK9", "proofs": [ "3WNFbcgeV3Pd3t39uPgmTayQK119VfQKTJeUpLv41LVsDVaqH9xpTHWVJ652ae2RVroZ2ZUg1mZ2H3uuKahHmGrp" ], "script": "base64:AAIDAAAAAAAAAEoIARIGCgQICAEEEgcKBQgBCAEBEgYKBAgBAQgSAwoBCBIHCgUICAEIARIFCgMIAQESBAoCCAgSBQoDCAEBEgYKBAgBCAESAwoBCAAAACoAAAAAB2FkZHJlc3MCAAAAIzNOMVJNNVgyUGRTMXZIM3ZtelJyZHpRRGpBVWpNcWsyUmJKAAAAAA5rZXlFdmVudFByZWZpeAIAAAACZV8AAAAAEmtleUV2ZW50RGF0YVByZWZpeAIAAAAFZGF0YV8AAAAAGWtleUV2ZW50VGlja2V0UHJpY2VQcmVmaXgCAAAADHRpY2tldFByaWNlXwAAAAASa2V5RXZlbnREYXRlUHJlZml4AgAAAAVkYXRlXwAAAAAWa2V5RXZlbnRBdHRlbmRlZVByZWZpeAIAAAACYV8AAAAAGGtleVByb2R1Y2VyQmFsYW5jZVByZWZpeAIAAAAIYmFsYW5jZV8AAAAAGmtleUV2ZW50QW1vdW50VGlja2V0UHJlZml4AgAAAA10aWNrZXRBbW91bnRfAAAAABZrZXlFdmVudENhbmNlbGVkUHJlZml4AgAAAAljYW5jZWxlZF8AAAAAF2tleU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QgYmFsYW5jZQMJAQAAABVnZXRFdmVudENhbmNlbGVkVmFsdWUAAAABBQAAAAVldmVudAkAAAIAAAABAgAAABdFdmVudCBoYXMgYmVlbiBjYW5jZWxlZAkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAABJnZXRFdmVudEJhbGFuY2VLZXkAAAACBQAAAA1jYWxsZXJBZGRyZXNzBQAAAAVldmVudAAAAAAAAAAAAAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAANY2FsbGVyQWRkcmVzcwkAAGUAAAACBQAAAAdiYWxhbmNlCQAAaQAAAAIJAABoAAAAAgUAAAAHYmFsYW5jZQUAAAAKY29tbWlzc2lvbgAAAAAAAAAAZAUAAAAEdW5pdAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAAB2FkZHJlc3MJAABpAAAAAgkAAGgAAAACBQAAAAdiYWxhbmNlBQAAAApjb21taXNzaW9uAAAAAAAAAABkBQAAAAR1bml0BQAAAANuaWwAAAAAxd720g==", "chainId": 84, "height": 945368, "spentComplexity": 0 } View: original | compacted Prev: GKF2r9axLKQLn1A3vtsd8meuEUqs9wsduke4MGSzBTR4 Next: DT1vkmjYxjzvjQdNvDHmxxn7GTRXPqwCAYC7yYwrNpNd Diff:
OldNewDifferences
153153 then throw("The event already exist")
154154 else if ((lastBlock.timestamp > ag))
155155 then throw("Date cannot be in the past")
156- else WriteSet([DataEntry(y(ai, A), ai), DataEntry(B(C), af), DataEntry(F(C), ag), DataEntry(N(C), ah), DataEntry(Q(C), 0)])
156+ else WriteSet([DataEntry(y(ai, A), ai), DataEntry(B(C), af), DataEntry(F(C), ag), DataEntry(N(C), ah), DataEntry(Q(C), 0), DataEntry(M(C), false)])
157157 }
158158
159159
248248
249249
250250 @Callable(ae)
251+func editEventProducer (C,av) = {
252+ let ai = toBase58String(ae.caller.bytes)
253+ if ((R(C) != ai))
254+ then throw("Event does not exist, or you don't have the credentials to perform this action")
255+ else WriteSet([DataEntry(C, av)])
256+ }
257+
258+
259+
260+@Callable(ae)
261+func editEventData (C,af,ag) = {
262+ let ai = toBase58String(ae.caller.bytes)
263+ if ((R(C) != ai))
264+ then throw("Event does not exist, or you don't have the credentials to perform this action")
265+ else if ((lastBlock.timestamp > ag))
266+ then throw("Date cannot be in the past")
267+ else if ((V(C) > ag))
268+ then throw("New date cannot be earlier that the original date")
269+ else WriteSet([DataEntry(B(C), af), DataEntry(F(C), ag)])
270+ }
271+
272+
273+
274+@Callable(ae)
251275 func refundTicket (C,ao,I,E) = {
252276 let at = toBase58String(ae.caller.bytes)
253- let av = W(at, I, E, C)
277+ let aw = W(at, I, E, C)
254278 if ((R(C) == n))
255279 then throw("The event does not exist")
256- else if ((ao > av))
280+ else if ((ao > aw))
257281 then throw("You don't have enough registered tickets with this address")
258282 else if (((lastBlock.timestamp + 15000000) > V(C)))
259283 then throw("This event has already happened")
260- else ScriptResult(WriteSet([DataEntry(G(at, I, E, C), (av - ao)), DataEntry(L(C, E), (Y(C, E) + ao))]), TransferSet([ScriptTransfer(addressFromStringValue(at), (ao * av), unit)]))
284+ else ScriptResult(WriteSet([DataEntry(G(at, I, E, C), (aw - ao)), DataEntry(L(C, E), (Y(C, E) + ao))]), TransferSet([ScriptTransfer(addressFromStringValue(at), (ao * aw), unit)]))
261285 }
262286
263287
265289 @Callable(ae)
266290 func withdraw (C) = {
267291 let an = toBase58String(ae.caller.bytes)
268- let aw = X(an, C)
292+ let ax = X(an, C)
269293 if ((R(C) != an))
270294 then throw("Event does not exist, or you don't have the credentials to perform this action")
271- else if ((0 >= aw))
295+ else if ((0 >= ax))
272296 then throw("Insufficient balance")
273297 else if (Z(C))
274298 then throw("Event has been canceled")
275- else ScriptResult(WriteSet([DataEntry(J(an, C), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(an), (aw - ((aw * o) / 100)), unit), ScriptTransfer(addressFromStringValue(a), ((aw * o) / 100), unit)]))
299+ else ScriptResult(WriteSet([DataEntry(J(an, C), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(an), (ax - ((ax * o) / 100)), unit), ScriptTransfer(addressFromStringValue(a), ((ax * o) / 100), unit)]))
276300 }
277301
278302
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
8888 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")
156- else WriteSet([DataEntry(y(ai, A), ai), DataEntry(B(C), af), DataEntry(F(C), ag), DataEntry(N(C), ah), DataEntry(Q(C), 0)])
156+ else WriteSet([DataEntry(y(ai, A), ai), DataEntry(B(C), af), DataEntry(F(C), ag), DataEntry(N(C), ah), DataEntry(Q(C), 0), DataEntry(M(C), false)])
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 = (ao * aj)
185185 if (isDefined(ap.assetId))
186186 then throw("can use WAVES only at the moment")
187187 else if ((ai == n))
188188 then throw("Event does not exist")
189189 else if ((as > ap.amount))
190190 then throw(((("You did not send enough money. You sent: " + toString(ap.amount)) + ". Expected: ") + toString(as)))
191191 else if ((ap.amount > as))
192192 then throw(((("You send too much money. You sent: " + toString(ap.amount)) + ". Total price: ") + toString(as)))
193193 else if ((0 > (ar - ao)))
194194 then throw("Not enough tickets left")
195195 else if (((lastBlock.timestamp + 15000000) > V(C)))
196196 then throw("This event has already happened")
197197 else if (Z(C))
198198 then throw("This event was canceled")
199199 else if (if (aa(C))
200200 then (I == "")
201201 else false)
202202 then throw("This event requires that you register with a personal ID")
203203 else if (((W(aq, I, E, C) + ao) > ab(C, E)))
204204 then throw("Amount of Tickets exceeds maximum amount per attendee")
205205 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)]))
206206 }
207207
208208
209209
210210 @Callable(ae)
211211 func cancelEvent (C) = {
212212 let an = toBase58String(ae.caller.bytes)
213213 if ((R(C) != an))
214214 then throw("Event does not exist, or you don't have the credentials to perform this action")
215215 else if (((lastBlock.timestamp + 15000000) > V(C)))
216216 then throw("This event has already happened")
217217 else WriteSet([DataEntry(M(C), true)])
218218 }
219219
220220
221221
222222 @Callable(ae)
223223 func checkin (C,at,ao,I,E) = {
224224 let an = toBase58String(ae.caller.bytes)
225225 if ((R(C) != an))
226226 then throw("Event does not exist, or you don't have the credentials to perform this action")
227227 else if ((ao > W(at, I, E, C)))
228228 then throw("You don't have enough tickets.")
229229 else if (Z(C))
230230 then throw("This event was canceled. You can redeem your ticket using refundTicket function")
231231 else WriteSet([DataEntry(G(at, I, E, C), (W(at, I, E, C) - ao))])
232232 }
233233
234234
235235
236236 @Callable(ae)
237237 func editEventTickets (C,E,au) = {
238238 let an = toBase58String(ae.caller.bytes)
239239 if ((R(C) != an))
240240 then throw("Event does not exist, or you don't have the credentials to perform this action")
241241 else if (((lastBlock.timestamp + 15000000) > V(C)))
242242 then throw("This event has already happened")
243243 else if (Z(C))
244244 then throw("This event was already canceled")
245245 else WriteSet([DataEntry(L(C, E), au)])
246246 }
247247
248248
249249
250250 @Callable(ae)
251+func editEventProducer (C,av) = {
252+ let ai = toBase58String(ae.caller.bytes)
253+ if ((R(C) != ai))
254+ then throw("Event does not exist, or you don't have the credentials to perform this action")
255+ else WriteSet([DataEntry(C, av)])
256+ }
257+
258+
259+
260+@Callable(ae)
261+func editEventData (C,af,ag) = {
262+ let ai = toBase58String(ae.caller.bytes)
263+ if ((R(C) != ai))
264+ then throw("Event does not exist, or you don't have the credentials to perform this action")
265+ else if ((lastBlock.timestamp > ag))
266+ then throw("Date cannot be in the past")
267+ else if ((V(C) > ag))
268+ then throw("New date cannot be earlier that the original date")
269+ else WriteSet([DataEntry(B(C), af), DataEntry(F(C), ag)])
270+ }
271+
272+
273+
274+@Callable(ae)
251275 func refundTicket (C,ao,I,E) = {
252276 let at = toBase58String(ae.caller.bytes)
253- let av = W(at, I, E, C)
277+ let aw = W(at, I, E, C)
254278 if ((R(C) == n))
255279 then throw("The event does not exist")
256- else if ((ao > av))
280+ else if ((ao > aw))
257281 then throw("You don't have enough registered tickets with this address")
258282 else if (((lastBlock.timestamp + 15000000) > V(C)))
259283 then throw("This event has already happened")
260- else ScriptResult(WriteSet([DataEntry(G(at, I, E, C), (av - ao)), DataEntry(L(C, E), (Y(C, E) + ao))]), TransferSet([ScriptTransfer(addressFromStringValue(at), (ao * av), unit)]))
284+ else ScriptResult(WriteSet([DataEntry(G(at, I, E, C), (aw - ao)), DataEntry(L(C, E), (Y(C, E) + ao))]), TransferSet([ScriptTransfer(addressFromStringValue(at), (ao * aw), unit)]))
261285 }
262286
263287
264288
265289 @Callable(ae)
266290 func withdraw (C) = {
267291 let an = toBase58String(ae.caller.bytes)
268- let aw = X(an, C)
292+ let ax = X(an, C)
269293 if ((R(C) != an))
270294 then throw("Event does not exist, or you don't have the credentials to perform this action")
271- else if ((0 >= aw))
295+ else if ((0 >= ax))
272296 then throw("Insufficient balance")
273297 else if (Z(C))
274298 then throw("Event has been canceled")
275- else ScriptResult(WriteSet([DataEntry(J(an, C), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(an), (aw - ((aw * o) / 100)), unit), ScriptTransfer(addressFromStringValue(a), ((aw * o) / 100), unit)]))
299+ else ScriptResult(WriteSet([DataEntry(J(an, C), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(an), (ax - ((ax * o) / 100)), unit), ScriptTransfer(addressFromStringValue(a), ((ax * o) / 100), unit)]))
276300 }
277301
278302

github/deemru/w8io/169f3d6 
63.86 ms