tx · BcUeLAMoa43odQ5xV8nNd7JpLfSjopbhQR4tkBJsTEKZ 3Mr1J95HgTFuj93Uh61WS1PBrxc5hSx5uE5: -0.05000000 Waves 2024.07.28 13:08 [3213793] smart account 3Mr1J95HgTFuj93Uh61WS1PBrxc5hSx5uE5 > SELF 0.00000000 Waves
{ "type": 13, "id": "BcUeLAMoa43odQ5xV8nNd7JpLfSjopbhQR4tkBJsTEKZ", "fee": 5000000, "feeAssetId": null, "timestamp": 1722161393973, "version": 2, "chainId": 84, "sender": "3Mr1J95HgTFuj93Uh61WS1PBrxc5hSx5uE5", "senderPublicKey": "DhKSnv34wE65np8uDd8E6ygEbNsn6fHx9p7q4hJTcgRw", "proofs": [ "jCbY4234J6WDdpBoM8qTxPauqNWXGKcwTHbcA2Dv7ZsAbxS8dG8eUyezMERb1CfdSeRDWkQeYaUUDtmBYRgmhNJ" ], "script": "base64:AAIFAAAAAAAAAA0IAhIDCgEIEgQKAggIAAAACQAAAAAMQkFJX0NPTlRSQUNUAgAAACMzTjl0S2l4enFUWVduRVhReHJEUTVwQlRHdlFkNnNGc3ZtVgAAAAAMQkFJX0FTU0VUX0lEAQAAACCT4XI4cQSbauiaYx8EJLdkU5csPrxmC4N0r2i7JI3iQgAAAAAGUExBWUVSAgAAAAExAAAAAAJBSQIAAAABMgAAAAAOV0lOTklOR19BTU9VTlQAAAAAAAX14QABAAAABmNoYXJBdAAAAAIAAAADc3RyAAAAAWkJAAGRAAAAAgkABLUAAAACBQAAAANzdHICAAAAAAUAAAABaQEAAAASY2hlY2tJZk1vdmVJc1ZhbGlkAAAAAgAAAAZnYW1lSWQAAAAFYm9hcmQEAAAADGN1cnJlbnRCb2FyZAQAAAAHJG1hdGNoMAkABCIAAAABCQABLAAAAAICAAAADWN1cnJlbnRCb2FyZF8FAAAABmdhbWVJZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFzBQAAAAckbWF0Y2gwBQAAAAFzAgAAAAkwMDAwMD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AARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAA1jdXJyZW50Qm9hcmRfBQAAAAZnYW1lSWQFAAAABWJvYXJkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgIAAAAKaW5pdGlhdG9yXwUAAAAGZ2FtZUlkCQAEJQAAAAEFAAAABnNlbmRlcgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAAB3dpbm5lcl8FAAAABmdhbWVJZAIAAAAEbm9uZQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAADG5leHRfcGxheWVyXwUAAAAGZ2FtZUlkBQAAAAJBSQUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5ZCy9ig==", "height": 3213793, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 67HYTywb5xb6UbqiL2hAjR4pbjX8uMjcmhsXVJYqcuLj Next: CponxQq2DtHDkhASbYhDHwcU39mgie1y4qrUZcjzeqUS Diff:
Old | New | Differences | |
---|---|---|---|
328 | 328 | else { | |
329 | 329 | let av = invoke(Address(fromBase58String(a)), "registerTaskCallback", [((j + "_") + k), "tictactoe", "callback"], [AttachedPayment(b, 10000000)]) | |
330 | 330 | if ((av == av)) | |
331 | - | then [StringEntry(("currentBoard_" + j), k), StringEntry(("initiator_" + j), toString(aq)), StringEntry(("next_player_" + j), d)] | |
331 | + | then [StringEntry(("currentBoard_" + j), k), StringEntry(("initiator_" + j), toString(aq)), StringEntry(("winner_" + j), "none"), StringEntry(("next_player_" + j), d)] | |
332 | 332 | else throw("Strict value is not equal to itself.") | |
333 | 333 | } | |
334 | 334 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "3N9tKixzqTYWnEXQxrDQ5pBTGvQd6sFsvmV" | |
5 | 5 | ||
6 | 6 | let b = base58'AxGKQRxKo4F2EbhrRq6N2tdLsxtMnpzQsS4QemV6V1W1' | |
7 | 7 | ||
8 | 8 | let c = "1" | |
9 | 9 | ||
10 | 10 | let d = "2" | |
11 | 11 | ||
12 | 12 | let e = 100000000 | |
13 | 13 | ||
14 | 14 | func f (g,h) = split(g, "")[h] | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func i (j,k) = { | |
18 | 18 | let l = { | |
19 | 19 | let m = getString(("currentBoard_" + j)) | |
20 | 20 | if ($isInstanceOf(m, "String")) | |
21 | 21 | then { | |
22 | 22 | let n = m | |
23 | 23 | n | |
24 | 24 | } | |
25 | 25 | else "000000000" | |
26 | 26 | } | |
27 | 27 | let o = if ((f(k, 0) != f(l, 0))) | |
28 | 28 | then 1 | |
29 | 29 | else 0 | |
30 | 30 | let p = if ((f(k, 1) != f(l, 1))) | |
31 | 31 | then 1 | |
32 | 32 | else 0 | |
33 | 33 | let q = if ((f(k, 2) != f(l, 2))) | |
34 | 34 | then 1 | |
35 | 35 | else 0 | |
36 | 36 | let r = if ((f(k, 3) != f(l, 3))) | |
37 | 37 | then 1 | |
38 | 38 | else 0 | |
39 | 39 | let s = if ((f(k, 4) != f(l, 4))) | |
40 | 40 | then 1 | |
41 | 41 | else 0 | |
42 | 42 | let t = if ((f(k, 5) != f(l, 5))) | |
43 | 43 | then 1 | |
44 | 44 | else 0 | |
45 | 45 | let u = if ((f(k, 6) != f(l, 6))) | |
46 | 46 | then 1 | |
47 | 47 | else 0 | |
48 | 48 | let v = if ((f(k, 7) != f(l, 7))) | |
49 | 49 | then 1 | |
50 | 50 | else 0 | |
51 | 51 | let w = if ((f(k, 8) != f(l, 8))) | |
52 | 52 | then 1 | |
53 | 53 | else 0 | |
54 | 54 | let x = if (if ((f(k, 0) == f(l, 0))) | |
55 | 55 | then true | |
56 | 56 | else (f(l, 0) == "0")) | |
57 | 57 | then true | |
58 | 58 | else false | |
59 | 59 | let y = if (if ((f(k, 1) == f(l, 1))) | |
60 | 60 | then true | |
61 | 61 | else (f(l, 1) == "0")) | |
62 | 62 | then true | |
63 | 63 | else false | |
64 | 64 | let z = if (if ((f(k, 2) == f(l, 2))) | |
65 | 65 | then true | |
66 | 66 | else (f(l, 2) == "0")) | |
67 | 67 | then true | |
68 | 68 | else false | |
69 | 69 | let A = if (if ((f(k, 3) == f(l, 3))) | |
70 | 70 | then true | |
71 | 71 | else (f(l, 3) == "0")) | |
72 | 72 | then true | |
73 | 73 | else false | |
74 | 74 | let B = if (if ((f(k, 4) == f(l, 4))) | |
75 | 75 | then true | |
76 | 76 | else (f(l, 4) == "0")) | |
77 | 77 | then true | |
78 | 78 | else false | |
79 | 79 | let C = if (if ((f(k, 5) == f(l, 5))) | |
80 | 80 | then true | |
81 | 81 | else (f(l, 5) == "0")) | |
82 | 82 | then true | |
83 | 83 | else false | |
84 | 84 | let D = if (if ((f(k, 6) == f(l, 6))) | |
85 | 85 | then true | |
86 | 86 | else (f(l, 6) == "0")) | |
87 | 87 | then true | |
88 | 88 | else false | |
89 | 89 | let E = if (if ((f(k, 7) == f(l, 7))) | |
90 | 90 | then true | |
91 | 91 | else (f(l, 7) == "0")) | |
92 | 92 | then true | |
93 | 93 | else false | |
94 | 94 | let F = if (if ((f(k, 8) == f(l, 8))) | |
95 | 95 | then true | |
96 | 96 | else (f(l, 8) == "0")) | |
97 | 97 | then true | |
98 | 98 | else false | |
99 | 99 | let G = if (if (if (if (if (if (if (if (x) | |
100 | 100 | then y | |
101 | 101 | else false) | |
102 | 102 | then z | |
103 | 103 | else false) | |
104 | 104 | then A | |
105 | 105 | else false) | |
106 | 106 | then B | |
107 | 107 | else false) | |
108 | 108 | then C | |
109 | 109 | else false) | |
110 | 110 | then D | |
111 | 111 | else false) | |
112 | 112 | then E | |
113 | 113 | else false) | |
114 | 114 | then F | |
115 | 115 | else false | |
116 | 116 | let H = ((((((((o + p) + q) + r) + s) + t) + u) + v) + w) | |
117 | 117 | let I = (1 >= H) | |
118 | 118 | if ((H > 1)) | |
119 | 119 | then throw("More than move made!") | |
120 | 120 | else if (!(G)) | |
121 | 121 | then throw("Former position overwritten!") | |
122 | 122 | else if (G) | |
123 | 123 | then I | |
124 | 124 | else false | |
125 | 125 | } | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func J (j,k,K) = { | |
129 | 129 | let l = { | |
130 | 130 | let m = getString(("currentBoard_" + j)) | |
131 | 131 | if ($isInstanceOf(m, "String")) | |
132 | 132 | then { | |
133 | 133 | let n = m | |
134 | 134 | n | |
135 | 135 | } | |
136 | 136 | else "000000000" | |
137 | 137 | } | |
138 | 138 | let L = [[0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 3, 6], [1, 4, 7], [2, 5, 8], [0, 4, 8], [2, 4, 6]] | |
139 | 139 | let M = if (if ((f(k, L[0][0]) == K)) | |
140 | 140 | then (f(k, L[0][1]) == K) | |
141 | 141 | else false) | |
142 | 142 | then (f(k, L[0][2]) == K) | |
143 | 143 | else false | |
144 | 144 | let N = if (if ((f(k, L[1][0]) == K)) | |
145 | 145 | then (f(k, L[1][1]) == K) | |
146 | 146 | else false) | |
147 | 147 | then (f(k, L[1][2]) == K) | |
148 | 148 | else false | |
149 | 149 | let O = if (if ((f(k, L[2][0]) == K)) | |
150 | 150 | then (f(k, L[2][1]) == K) | |
151 | 151 | else false) | |
152 | 152 | then (f(k, L[2][2]) == K) | |
153 | 153 | else false | |
154 | 154 | let P = if (if ((f(k, L[3][0]) == K)) | |
155 | 155 | then (f(k, L[3][1]) == K) | |
156 | 156 | else false) | |
157 | 157 | then (f(k, L[3][2]) == K) | |
158 | 158 | else false | |
159 | 159 | let Q = if (if ((f(k, L[4][0]) == K)) | |
160 | 160 | then (f(k, L[4][1]) == K) | |
161 | 161 | else false) | |
162 | 162 | then (f(k, L[4][2]) == K) | |
163 | 163 | else false | |
164 | 164 | let R = if (if ((f(k, L[5][0]) == K)) | |
165 | 165 | then (f(k, L[5][1]) == K) | |
166 | 166 | else false) | |
167 | 167 | then (f(k, L[5][2]) == K) | |
168 | 168 | else false | |
169 | 169 | let S = if (if ((f(k, L[6][0]) == K)) | |
170 | 170 | then (f(k, L[6][1]) == K) | |
171 | 171 | else false) | |
172 | 172 | then (f(k, L[6][2]) == K) | |
173 | 173 | else false | |
174 | 174 | let T = if (if ((f(k, L[7][0]) == K)) | |
175 | 175 | then (f(k, L[7][1]) == K) | |
176 | 176 | else false) | |
177 | 177 | then (f(k, L[7][2]) == K) | |
178 | 178 | else false | |
179 | 179 | if (if (if (if (if (if (if (M) | |
180 | 180 | then true | |
181 | 181 | else N) | |
182 | 182 | then true | |
183 | 183 | else O) | |
184 | 184 | then true | |
185 | 185 | else P) | |
186 | 186 | then true | |
187 | 187 | else N) | |
188 | 188 | then true | |
189 | 189 | else R) | |
190 | 190 | then true | |
191 | 191 | else S) | |
192 | 192 | then true | |
193 | 193 | else T | |
194 | 194 | } | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func U (k) = { | |
198 | 198 | let V = if ((f(k, 0) == "0")) | |
199 | 199 | then 1 | |
200 | 200 | else 0 | |
201 | 201 | let W = if ((f(k, 1) == "0")) | |
202 | 202 | then 1 | |
203 | 203 | else 0 | |
204 | 204 | let X = if ((f(k, 2) == "0")) | |
205 | 205 | then 1 | |
206 | 206 | else 0 | |
207 | 207 | let Y = if ((f(k, 3) == "0")) | |
208 | 208 | then 1 | |
209 | 209 | else 0 | |
210 | 210 | let Z = if ((f(k, 4) == "0")) | |
211 | 211 | then 1 | |
212 | 212 | else 0 | |
213 | 213 | let aa = if ((f(k, 5) == "0")) | |
214 | 214 | then 1 | |
215 | 215 | else 0 | |
216 | 216 | let ab = if ((f(k, 6) == "0")) | |
217 | 217 | then 1 | |
218 | 218 | else 0 | |
219 | 219 | let ac = if ((f(k, 7) == "0")) | |
220 | 220 | then 1 | |
221 | 221 | else 0 | |
222 | 222 | let ad = if ((f(k, 8) == "0")) | |
223 | 223 | then 1 | |
224 | 224 | else 0 | |
225 | 225 | ((((((((V + W) + X) + Y) + Z) + aa) + ab) + ac) + ad) | |
226 | 226 | } | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | @Callable(h) | |
230 | 230 | func callback (ae) = { | |
231 | 231 | let af = split(ae, "_") | |
232 | 232 | let j = af[0] | |
233 | 233 | let k = af[1] | |
234 | 234 | let ag = { | |
235 | 235 | let m = getString(("next_player_" + j)) | |
236 | 236 | if ($isInstanceOf(m, "String")) | |
237 | 237 | then { | |
238 | 238 | let n = m | |
239 | 239 | n | |
240 | 240 | } | |
241 | 241 | else "" | |
242 | 242 | } | |
243 | 243 | let ah = i(j, k) | |
244 | 244 | if (!(ah)) | |
245 | 245 | then throw("Illegal move!") | |
246 | 246 | else if ((ag != d)) | |
247 | 247 | then throw("Player has to move first!") | |
248 | 248 | else { | |
249 | 249 | let ai = J(j, k, d) | |
250 | 250 | if (ai) | |
251 | 251 | then [StringEntry(("currentBoard_" + j), k), StringEntry(("winner_" + j), "ai")] | |
252 | 252 | else [StringEntry(("currentBoard_" + j), k), StringEntry(("next_player_" + j), c)] | |
253 | 253 | } | |
254 | 254 | } | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | ||
258 | 258 | @Callable(h) | |
259 | 259 | func playTTT (aj,k) = { | |
260 | 260 | let ak = size(h.payments) | |
261 | 261 | if ((ak != 1)) | |
262 | 262 | then throw("Payment necessary!") | |
263 | 263 | else { | |
264 | 264 | let al = h.payments[0] | |
265 | 265 | let am = al.amount | |
266 | 266 | let an = al.assetId | |
267 | 267 | let ao = { | |
268 | 268 | let m = getInteger(Address(fromBase58String(a)), "price_tictactoe") | |
269 | 269 | if ($isInstanceOf(m, "Int")) | |
270 | 270 | then { | |
271 | 271 | let ap = m | |
272 | 272 | ap | |
273 | 273 | } | |
274 | 274 | else 0 | |
275 | 275 | } | |
276 | 276 | if (if ((an != b)) | |
277 | 277 | then true | |
278 | 278 | else (ao > am)) | |
279 | 279 | then throw("Payment of the minimal BAI amount necessary!") | |
280 | 280 | else { | |
281 | 281 | let aq = h.caller | |
282 | 282 | let j = if ((size(aj) == 0)) | |
283 | 283 | then toBase58String(h.transactionId) | |
284 | 284 | else aj | |
285 | 285 | let ag = { | |
286 | 286 | let m = getString(("next_player_" + j)) | |
287 | 287 | if ($isInstanceOf(m, "String")) | |
288 | 288 | then { | |
289 | 289 | let n = m | |
290 | 290 | n | |
291 | 291 | } | |
292 | 292 | else c | |
293 | 293 | } | |
294 | 294 | if ((ag != c)) | |
295 | 295 | then throw("AI hast to move first!") | |
296 | 296 | else { | |
297 | 297 | let l = { | |
298 | 298 | let m = getString(("currentBoard_" + j)) | |
299 | 299 | if ($isInstanceOf(m, "String")) | |
300 | 300 | then { | |
301 | 301 | let n = m | |
302 | 302 | n | |
303 | 303 | } | |
304 | 304 | else k | |
305 | 305 | } | |
306 | 306 | let ar = { | |
307 | 307 | let m = getString(("initiator_" + j)) | |
308 | 308 | if ($isInstanceOf(m, "String")) | |
309 | 309 | then { | |
310 | 310 | let n = m | |
311 | 311 | n | |
312 | 312 | } | |
313 | 313 | else toString(aq) | |
314 | 314 | } | |
315 | 315 | if ((toString(aq) != ar)) | |
316 | 316 | then throw("Only initiator is allowed to make moves!") | |
317 | 317 | else { | |
318 | 318 | let as = i(j, k) | |
319 | 319 | if (!(as)) | |
320 | 320 | then throw("Illegal move!") | |
321 | 321 | else { | |
322 | 322 | let at = J(j, k, c) | |
323 | 323 | let au = U(k) | |
324 | 324 | if (at) | |
325 | 325 | then [StringEntry(("currentBoard_" + j), k), StringEntry(("winner_" + j), "player"), ScriptTransfer(aq, e, b)] | |
326 | 326 | else if ((au == 0)) | |
327 | 327 | then [StringEntry(("currentBoard_" + j), k), StringEntry(("winner_" + j), "draw")] | |
328 | 328 | else { | |
329 | 329 | let av = invoke(Address(fromBase58String(a)), "registerTaskCallback", [((j + "_") + k), "tictactoe", "callback"], [AttachedPayment(b, 10000000)]) | |
330 | 330 | if ((av == av)) | |
331 | - | then [StringEntry(("currentBoard_" + j), k), StringEntry(("initiator_" + j), toString(aq)), StringEntry(("next_player_" + j), d)] | |
331 | + | then [StringEntry(("currentBoard_" + j), k), StringEntry(("initiator_" + j), toString(aq)), StringEntry(("winner_" + j), "none"), StringEntry(("next_player_" + j), d)] | |
332 | 332 | else throw("Strict value is not equal to itself.") | |
333 | 333 | } | |
334 | 334 | } | |
335 | 335 | } | |
336 | 336 | } | |
337 | 337 | } | |
338 | 338 | } | |
339 | 339 | } | |
340 | 340 | ||
341 | 341 | ||
342 | 342 | @Verifier(aw) | |
343 | 343 | func ax () = sigVerify(aw.bodyBytes, aw.proofs[0], aw.senderPublicKey) | |
344 | 344 |
github/deemru/w8io/026f985 53.87 ms ◑