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:AAIDAAAAAAAAAFIIARIGCgQICAEEEgcKBQgBCAEBEgYKBAgBAQgSAwoBCBIICgYICAEIAQESBQoDCAEBEgQKAggIEgUKAwgIARIFCgMIAQESBgoECAEIARIDCgEIAAAALQAAAAAHYWRkcmVzcwIAAAAjM04xUk01WDJQZFMxdkgzdm16UnJkelFEakFVak1xazJSYkoAAAAADmtleUV2ZW50UHJlZml4AgAAAAJlXwAAAAASa2V5RXZlbnREYXRhUHJlZml4AgAAAAVkYXRhXwAAAAAZa2V5RXZlbnRUaWNrZXRQcmljZVByZWZpeAIAAAAMdGlja2V0UHJpY2VfAAAAABJrZXlFdmVudERhdGVQcmVmaXgCAAAABWRhdGVfAAAAABZrZXlFdmVudEF0dGVuZGVlUHJlZml4AgAAAAJhXwAAAAAYa2V5UHJvZHVjZXJCYWxhbmNlUHJlZml4AgAAAAhiYWxhbmNlXwAAAAAaa2V5RXZlbnRBbW91bnRUaWNrZXRQcmVmaXgCAAAADXRpY2tldEFtb3VudF8AAAAAFmtleUV2ZW50Q2FuY2VsZWRQcmVmaXgCAAAACWNhbmNlbGVkXwAAAAAXa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kcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAHYWRkcmVzcwkAAGkAAAACCQAAaAAAAAIFAAAAB2JhbGFuY2UFAAAACmNvbW1pc3Npb24AAAAAAAAAAGQFAAAABHVuaXQFAAAAA25pbAAAAAA31vX+", "chainId": 84, "height": 956241, "spentComplexity": 0 } View: original | compacted Prev: 42TBhB9zGF2memisS41RFxFC5JZFnooKCHZhz2a7Z3af Next: 4GvnSkhd1JcKoAc6v2i26zPRdyNRrVS33bZR66o4hEMJ Diff:
Old | New | Differences | |
---|---|---|---|
240 | 240 | then throw("You don't have enough tickets.") | |
241 | 241 | else if (ac(D)) | |
242 | 242 | 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))]) | |
246 | 244 | } | |
247 | 245 | ||
248 | 246 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "3N1RM5X2PdS1vH3vmzRrdzQDjAUjMqk2RbJ" | |
5 | 5 | ||
6 | 6 | let b = "e_" | |
7 | 7 | ||
8 | 8 | let c = "data_" | |
9 | 9 | ||
10 | 10 | let d = "ticketPrice_" | |
11 | 11 | ||
12 | 12 | let e = "date_" | |
13 | 13 | ||
14 | 14 | let f = "a_" | |
15 | 15 | ||
16 | 16 | let g = "balance_" | |
17 | 17 | ||
18 | 18 | let h = "ticketAmount_" | |
19 | 19 | ||
20 | 20 | let i = "canceled_" | |
21 | 21 | ||
22 | 22 | let j = "ticketMax_" | |
23 | 23 | ||
24 | 24 | let k = "requiresId_" | |
25 | 25 | ||
26 | 26 | let l = "ticketDescription_" | |
27 | 27 | ||
28 | 28 | let m = "tickets_" | |
29 | 29 | ||
30 | 30 | let n = "trustee_" | |
31 | 31 | ||
32 | 32 | let o = "none" | |
33 | 33 | ||
34 | 34 | let p = 5 | |
35 | 35 | ||
36 | 36 | func q (r) = { | |
37 | 37 | let s = { | |
38 | 38 | let t = getInteger(this, r) | |
39 | 39 | if ($isInstanceOf(t, "Int")) | |
40 | 40 | then { | |
41 | 41 | let u = t | |
42 | 42 | u | |
43 | 43 | } | |
44 | 44 | else 0 | |
45 | 45 | } | |
46 | 46 | s | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func v (r) = { | |
51 | 51 | let w = { | |
52 | 52 | let t = getString(this, r) | |
53 | 53 | if ($isInstanceOf(t, "String")) | |
54 | 54 | then { | |
55 | 55 | let u = t | |
56 | 56 | u | |
57 | 57 | } | |
58 | 58 | else o | |
59 | 59 | } | |
60 | 60 | w | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func x (r) = { | |
65 | 65 | let y = { | |
66 | 66 | let t = getBoolean(this, r) | |
67 | 67 | if ($isInstanceOf(t, "Boolean")) | |
68 | 68 | then { | |
69 | 69 | let u = t | |
70 | 70 | u | |
71 | 71 | } | |
72 | 72 | else false | |
73 | 73 | } | |
74 | 74 | y | |
75 | 75 | } | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func z (A,B) = (b + toBase58String(sha256(toBytes((A + B))))) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func C (D) = (c + D) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func E (D,F) = (((d + toString(F)) + "_") + D) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func G (D) = (e + D) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func H (I,J,F,D) = (((((f + toBase58String(sha256(toBytes((I + J))))) + "_") + toString(F)) + "_") + D) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func K (L,D) = (((g + L) + "_") + D) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func M (D,F) = (((h + toString(F)) + "_") + D) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func N (D) = (i + D) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func O (D) = (k + D) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func P (D,F) = (((j + toString(F)) + "_") + D) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func Q (D,F) = (((l + toString(F)) + "_") + D) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func R (D) = (m + D) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func S (D,T) = (((n + toString(T)) + "_") + D) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func U (V) = v(V) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func W (A,B) = v(z(A, B)) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func X (D,F) = q(E(D, F)) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func Y (D) = q(G(D)) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func Z (I,J,F,D) = q(H(I, J, F, D)) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func aa (L,D) = q(K(L, D)) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func ab (D,F) = q(M(D, F)) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func ac (D) = x(N(D)) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func ad (D) = x(O(D)) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func ae (D,F) = q(P(D, F)) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func af (D,F) = v(Q(D, F)) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func ag (D) = q(R(D)) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func ah (D,T) = v(S(D, T)) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | @Callable(ai) | |
157 | 157 | func createEvent (B,aj,ak,al) = { | |
158 | 158 | let am = toBase58String(ai.caller.bytes) | |
159 | 159 | let D = z(am, B) | |
160 | 160 | if ((W(am, B) != o)) | |
161 | 161 | then throw("The event already exist") | |
162 | 162 | else if ((lastBlock.timestamp > ak)) | |
163 | 163 | then throw("Date cannot be in the past") | |
164 | 164 | 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)]) | |
165 | 165 | } | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | ||
169 | 169 | @Callable(ai) | |
170 | 170 | func createEventTicket (D,an,ao,ap,aq) = { | |
171 | 171 | let ar = toBase58String(ai.caller.bytes) | |
172 | 172 | let am = U(D) | |
173 | 173 | let F = ag(D) | |
174 | 174 | if ((am != ar)) | |
175 | 175 | then throw("Event does not exist, or you don't have the credentials to perform this action") | |
176 | 176 | else if (((lastBlock.timestamp + 15000000) > Y(D))) | |
177 | 177 | then throw("This event has already happened") | |
178 | 178 | else if (ac(D)) | |
179 | 179 | then throw("This event was canceled") | |
180 | 180 | 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))]) | |
181 | 181 | } | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | ||
185 | 185 | @Callable(ai) | |
186 | 186 | func purchase (D,F,as,J) = { | |
187 | 187 | let at = extract(ai.payment) | |
188 | 188 | let au = toBase58String(ai.caller.bytes) | |
189 | 189 | let an = X(D, F) | |
190 | 190 | let am = U(D) | |
191 | 191 | let av = ab(D, F) | |
192 | 192 | let aw = (as * an) | |
193 | 193 | if (isDefined(at.assetId)) | |
194 | 194 | then throw("can use WAVES only at the moment") | |
195 | 195 | else if ((am == o)) | |
196 | 196 | then throw("Event does not exist") | |
197 | 197 | else if ((aw > at.amount)) | |
198 | 198 | then throw(((("You did not send enough money. You sent: " + toString(at.amount)) + ". Expected: ") + toString(aw))) | |
199 | 199 | else if ((at.amount > aw)) | |
200 | 200 | then throw(((("You send too much money. You sent: " + toString(at.amount)) + ". Total price: ") + toString(aw))) | |
201 | 201 | else if ((0 > (av - as))) | |
202 | 202 | then throw("Not enough tickets left") | |
203 | 203 | else if (((lastBlock.timestamp + 15000000) > Y(D))) | |
204 | 204 | then throw("This event has already happened") | |
205 | 205 | else if (ac(D)) | |
206 | 206 | then throw("This event was canceled") | |
207 | 207 | else if (if (ad(D)) | |
208 | 208 | then (J == "") | |
209 | 209 | else false) | |
210 | 210 | then throw("This event requires that you register with a personal ID") | |
211 | 211 | else if (if ((ae(D, F) > 0)) | |
212 | 212 | then ((Z(au, J, F, D) + as) > ae(D, F)) | |
213 | 213 | else false) | |
214 | 214 | then throw("Amount of Tickets exceeds maximum amount per attendee") | |
215 | 215 | 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)])) | |
216 | 216 | } | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | ||
220 | 220 | @Callable(ai) | |
221 | 221 | func cancelEvent (D) = { | |
222 | 222 | let ar = toBase58String(ai.caller.bytes) | |
223 | 223 | if ((U(D) != ar)) | |
224 | 224 | then throw("Event does not exist, or you don't have the credentials to perform this action") | |
225 | 225 | else if (((lastBlock.timestamp + 15000000) > Y(D))) | |
226 | 226 | then throw("This event has already happened") | |
227 | 227 | else WriteSet([DataEntry(N(D), true)]) | |
228 | 228 | } | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | ||
232 | 232 | @Callable(ai) | |
233 | 233 | func checkin (D,ax,as,J,F,T) = { | |
234 | 234 | let ar = toBase58String(ai.caller.bytes) | |
235 | 235 | if (if ((U(D) != ar)) | |
236 | 236 | then (ah(D, T) != ar) | |
237 | 237 | else false) | |
238 | 238 | then throw("Event does not exist, or you don't have the credentials to perform this action") | |
239 | 239 | else if ((as > Z(ax, J, F, D))) | |
240 | 240 | then throw("You don't have enough tickets.") | |
241 | 241 | else if (ac(D)) | |
242 | 242 | 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))]) | |
246 | 244 | } | |
247 | 245 | ||
248 | 246 | ||
249 | 247 | ||
250 | 248 | @Callable(ai) | |
251 | 249 | func editEventTickets (D,F,ay) = { | |
252 | 250 | let ar = toBase58String(ai.caller.bytes) | |
253 | 251 | if ((U(D) != ar)) | |
254 | 252 | then throw("Event does not exist, or you don't have the credentials to perform this action") | |
255 | 253 | else if (((lastBlock.timestamp + 15000000) > Y(D))) | |
256 | 254 | then throw("This event has already happened") | |
257 | 255 | else if (ac(D)) | |
258 | 256 | then throw("This event was already canceled") | |
259 | 257 | else WriteSet([DataEntry(M(D, F), ay)]) | |
260 | 258 | } | |
261 | 259 | ||
262 | 260 | ||
263 | 261 | ||
264 | 262 | @Callable(ai) | |
265 | 263 | func editEventProducer (D,az) = { | |
266 | 264 | let am = toBase58String(ai.caller.bytes) | |
267 | 265 | if ((U(D) != am)) | |
268 | 266 | then throw("Event does not exist, or you don't have the credentials to perform this action") | |
269 | 267 | else WriteSet([DataEntry(D, az)]) | |
270 | 268 | } | |
271 | 269 | ||
272 | 270 | ||
273 | 271 | ||
274 | 272 | @Callable(ai) | |
275 | 273 | func editEventTrustee (D,aA,T) = { | |
276 | 274 | let am = toBase58String(ai.caller.bytes) | |
277 | 275 | if ((U(D) != am)) | |
278 | 276 | then throw("Event does not exist, or you don't have the credentials to perform this action") | |
279 | 277 | else WriteSet([DataEntry(S(D, T), aA)]) | |
280 | 278 | } | |
281 | 279 | ||
282 | 280 | ||
283 | 281 | ||
284 | 282 | @Callable(ai) | |
285 | 283 | func editEventData (D,aj,ak) = { | |
286 | 284 | let am = toBase58String(ai.caller.bytes) | |
287 | 285 | if ((U(D) != am)) | |
288 | 286 | then throw("Event does not exist, or you don't have the credentials to perform this action") | |
289 | 287 | else if ((lastBlock.timestamp > ak)) | |
290 | 288 | then throw("Date cannot be in the past") | |
291 | 289 | else if ((Y(D) > ak)) | |
292 | 290 | then throw("New date cannot be earlier that the original date") | |
293 | 291 | else WriteSet([DataEntry(C(D), aj), DataEntry(G(D), ak)]) | |
294 | 292 | } | |
295 | 293 | ||
296 | 294 | ||
297 | 295 | ||
298 | 296 | @Callable(ai) | |
299 | 297 | func refundTicket (D,as,J,F) = { | |
300 | 298 | let ax = toBase58String(ai.caller.bytes) | |
301 | 299 | let aB = Z(ax, J, F, D) | |
302 | 300 | if ((U(D) == o)) | |
303 | 301 | then throw("The event does not exist") | |
304 | 302 | else if ((as > aB)) | |
305 | 303 | then throw("You don't have enough registered tickets with this address") | |
306 | 304 | else if (((lastBlock.timestamp + 10000000) > Y(D))) | |
307 | 305 | then throw("This event has already happened") | |
308 | 306 | 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)])) | |
309 | 307 | } | |
310 | 308 | ||
311 | 309 | ||
312 | 310 | ||
313 | 311 | @Callable(ai) | |
314 | 312 | func withdraw (D) = { | |
315 | 313 | let ar = toBase58String(ai.caller.bytes) | |
316 | 314 | let aC = aa(ar, D) | |
317 | 315 | if ((U(D) != ar)) | |
318 | 316 | then throw("Event does not exist, or you don't have the credentials to perform this action") | |
319 | 317 | else if ((0 >= aC)) | |
320 | 318 | then throw("Insufficient balance") | |
321 | 319 | else if ((Y(D) > (lastBlock.timestamp - 1000000))) | |
322 | 320 | then throw("Event has not yet taken place. Withdraw funds when event takes place.") | |
323 | 321 | else if (ac(D)) | |
324 | 322 | then throw("Event has been canceled") | |
325 | 323 | else ScriptResult(WriteSet([DataEntry(K(ar, D), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(ar), (aC - ((aC * p) / 100)), unit), ScriptTransfer(addressFromStringValue(a), ((aC * p) / 100), unit)])) | |
326 | 324 | } | |
327 | 325 | ||
328 | 326 |
github/deemru/w8io/169f3d6 59.10 ms ◑