tx · 4FNAn1uTq1yUXueTwnJsP6qaq4o2EYTJw9pq3CRiPdrN 3MxUatsqdn9o8DKxmh5vp6Y2vb3Zok12wrv: -0.01400000 Waves 2019.11.05 15:39 [751606] smart account 3MxUatsqdn9o8DKxmh5vp6Y2vb3Zok12wrv > SELF 0.00000000 Waves
{ "type": 13, "id": "4FNAn1uTq1yUXueTwnJsP6qaq4o2EYTJw9pq3CRiPdrN", "fee": 1400000, "feeAssetId": null, "timestamp": 1572957596880, "version": 1, "sender": "3MxUatsqdn9o8DKxmh5vp6Y2vb3Zok12wrv", "senderPublicKey": "GyH41mG6hmFF9GeLfvkDzfZZ1CNGMNR4RMQFrxcHkS8k", "proofs": [ "43YBWboYxzCKtMwt2LrprWQJmAMMKyoDDrF6tG9iMjPdF1YbZFBAnRwDv5GwLu9n3AbU2zVcoVRmtrFXik3UDfRs" ], "script": "base64:AAIDAAAAAAAAABAIARIAEgMKAQgSBQoDCAEBAAAAAAAAAAMAAAABaQEAAAAGY3JlYXRlAAAAAAQAAAADcG10CAUAAAABaQAAAAdwYXltZW50BAAAAAZhbW91bnQEAAAAByRtYXRjaDAFAAAAA3BtdAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQXR0YWNoZWRQYXltZW50BAAAAAFwBQAAAAckbWF0Y2gwCAUAAAABcAAAAAZhbW91bnQAAAAAAAAAAAAEAAAAB2Fzc2V0SWQEAAAAByRtYXRjaDAFAAAAA3BtdAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQXR0YWNoZWRQYXltZW50BAAAAAFwBQAAAAckbWF0Y2gwBAAAAAckbWF0Y2gxCAUAAAABcAAAAAdhc3NldElkAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAAApCeXRlVmVjdG9yBAAAAAFiBQAAAAckbWF0Y2gxCQACWAAAAAEFAAAAAWICAAAABVdBVkVTAgAAAAVXQVZFUwQAAAAJaW5pdENlbGxzCQABLAAAAAICAAAAcG5ubm5ubm5ubm5ubm5ubm5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} View: original | compacted Prev: HuHAD4EcWTGEfkn7rJGHat1i9pJU6hMYFZJY1wouyVyp Next: none Diff:
Old | New | Differences | |
---|---|---|---|
28 | 28 | } | |
29 | 29 | else "WAVES" | |
30 | 30 | } | |
31 | - | else " | |
31 | + | else "WAVES" | |
32 | 32 | } | |
33 | 33 | let i = ("nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn" + "nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn") | |
34 | 34 | let j = toBase58String(a.transactionId) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func create () = { | |
8 | 8 | let b = a.payment | |
9 | 9 | let c = { | |
10 | 10 | let d = b | |
11 | 11 | if ($isInstanceOf(d, "AttachedPayment")) | |
12 | 12 | then { | |
13 | 13 | let e = d | |
14 | 14 | e.amount | |
15 | 15 | } | |
16 | 16 | else 0 | |
17 | 17 | } | |
18 | 18 | let f = { | |
19 | 19 | let d = b | |
20 | 20 | if ($isInstanceOf(d, "AttachedPayment")) | |
21 | 21 | then { | |
22 | 22 | let e = d | |
23 | 23 | let g = e.assetId | |
24 | 24 | if ($isInstanceOf(g, "ByteVector")) | |
25 | 25 | then { | |
26 | 26 | let h = g | |
27 | 27 | toBase58String(h) | |
28 | 28 | } | |
29 | 29 | else "WAVES" | |
30 | 30 | } | |
31 | - | else " | |
31 | + | else "WAVES" | |
32 | 32 | } | |
33 | 33 | let i = ("nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn" + "nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn") | |
34 | 34 | let j = toBase58String(a.transactionId) | |
35 | 35 | let k = toBase58String(a.caller.bytes) | |
36 | 36 | let l = (((((((((i + ":wait:") + k) + ":unit:") + toString(c)) + ":") + f) + ":") + k) + ":1:unit") | |
37 | 37 | WriteSet([DataEntry(("game:" + j), l)]) | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | ||
42 | 42 | @Callable(a) | |
43 | 43 | func join (j) = { | |
44 | 44 | let l = valueOrErrorMessage(getString(this, ("game:" + j)), "Invalid game id") | |
45 | 45 | let m = split(l, ":") | |
46 | 46 | if ((m[1] != "wait")) | |
47 | 47 | then throw("The game is already running or completed") | |
48 | 48 | else if ((m[2] == toBase58String(a.caller.bytes))) | |
49 | 49 | then throw("You can't play with yourself") | |
50 | 50 | else { | |
51 | 51 | let b = a.payment | |
52 | 52 | let n = { | |
53 | 53 | let d = b | |
54 | 54 | if ($isInstanceOf(d, "AttachedPayment")) | |
55 | 55 | then { | |
56 | 56 | let e = d | |
57 | 57 | e.amount | |
58 | 58 | } | |
59 | 59 | else 0 | |
60 | 60 | } | |
61 | 61 | let o = { | |
62 | 62 | let d = b | |
63 | 63 | if ($isInstanceOf(d, "AttachedPayment")) | |
64 | 64 | then { | |
65 | 65 | let e = d | |
66 | 66 | let g = e.assetId | |
67 | 67 | if ($isInstanceOf(g, "ByteVector")) | |
68 | 68 | then { | |
69 | 69 | let h = g | |
70 | 70 | toBase58String(h) | |
71 | 71 | } | |
72 | 72 | else "WAVES" | |
73 | 73 | } | |
74 | 74 | else "WAVES" | |
75 | 75 | } | |
76 | 76 | if (if ((n != parseInt(m[4]))) | |
77 | 77 | then true | |
78 | 78 | else (o != m[5])) | |
79 | 79 | then throw("Invalid game payment") | |
80 | 80 | else { | |
81 | 81 | let p = ((((((((((((((m[0] + ":play:") + m[2]) + ":") + toBase58String(a.caller.bytes)) + ":") + m[4]) + ":") + m[5]) + ":") + m[6]) + ":") + m[7]) + ":") + m[8]) | |
82 | 82 | WriteSet([DataEntry(("game:" + j), p)]) | |
83 | 83 | } | |
84 | 84 | } | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | ||
89 | 89 | @Callable(a) | |
90 | 90 | func move (j,q,r) = { | |
91 | 91 | let l = valueOrErrorMessage(getString(this, ("game:" + j)), "Invalid game id") | |
92 | 92 | let m = split(l, ":") | |
93 | 93 | let s = m[0] | |
94 | 94 | let t = m[1] | |
95 | 95 | let u = addressFromStringValue(m[2]) | |
96 | 96 | let v = addressFromStringValue(m[3]) | |
97 | 97 | let c = parseIntValue(m[4]) | |
98 | 98 | let w = if ((m[5] == "WAVES")) | |
99 | 99 | then unit | |
100 | 100 | else fromBase58String(m[5]) | |
101 | 101 | let x = addressFromString(m[6]) | |
102 | 102 | let y = parseIntValue(m[7]) | |
103 | 103 | if (if ((a.caller != u)) | |
104 | 104 | then (a.caller != v) | |
105 | 105 | else false) | |
106 | 106 | then throw("You aren't a game member") | |
107 | 107 | else if ((t != "play")) | |
108 | 108 | then throw("The game is not started or completed") | |
109 | 109 | else { | |
110 | 110 | let z = if ((x == u)) | |
111 | 111 | then "b" | |
112 | 112 | else if ((x == v)) | |
113 | 113 | then "w" | |
114 | 114 | else throw("Invalid move address") | |
115 | 115 | if ((x != a.caller)) | |
116 | 116 | then throw("Not your turn") | |
117 | 117 | else if ((takeRight(take(s, (((q * 15) + r) + 1)), 1) != "n")) | |
118 | 118 | then throw("The cell is occupied") | |
119 | 119 | else if (if (if (if ((q > 14)) | |
120 | 120 | then true | |
121 | 121 | else (0 > q)) | |
122 | 122 | then true | |
123 | 123 | else (r > 14)) | |
124 | 124 | then true | |
125 | 125 | else (0 > r)) | |
126 | 126 | then throw("Out of bounds") | |
127 | 127 | else { | |
128 | 128 | let A = ((take(s, ((q * 15) + r)) + z) + takeRight(s, (size(s) - (((q * 15) + r) + 1)))) | |
129 | 129 | let B = ((((((((((((((((((((((((((((((((((((if ((r >= 4)) | |
130 | 130 | then takeRight(take(A, (((q * 15) + (r - 4)) + 1)), 1) | |
131 | 131 | else "") + (if ((r >= 3)) | |
132 | 132 | then takeRight(take(A, (((q * 15) + (r - 3)) + 1)), 1) | |
133 | 133 | else "")) + (if ((r >= 2)) | |
134 | 134 | then takeRight(take(A, (((q * 15) + (r - 2)) + 1)), 1) | |
135 | 135 | else "")) + (if ((r >= 1)) | |
136 | 136 | then takeRight(take(A, (((q * 15) + (r - 1)) + 1)), 1) | |
137 | 137 | else "")) + takeRight(take(A, (((q * 15) + r) + 1)), 1)) + (if ((13 >= r)) | |
138 | 138 | then takeRight(take(A, (((q * 15) + (r + 1)) + 1)), 1) | |
139 | 139 | else "")) + (if ((12 >= r)) | |
140 | 140 | then takeRight(take(A, (((q * 15) + (r + 2)) + 1)), 1) | |
141 | 141 | else "")) + (if ((11 >= r)) | |
142 | 142 | then takeRight(take(A, (((q * 15) + (r + 3)) + 1)), 1) | |
143 | 143 | else "")) + (if ((10 >= r)) | |
144 | 144 | then takeRight(take(A, (((q * 15) + (r + 4)) + 1)), 1) | |
145 | 145 | else "")) + (if ((q >= 4)) | |
146 | 146 | then takeRight(take(A, ((((q - 4) * 15) + r) + 1)), 1) | |
147 | 147 | else "")) + (if ((q >= 3)) | |
148 | 148 | then takeRight(take(A, ((((q - 3) * 15) + r) + 1)), 1) | |
149 | 149 | else "")) + (if ((q >= 2)) | |
150 | 150 | then takeRight(take(A, ((((q - 2) * 15) + r) + 1)), 1) | |
151 | 151 | else "")) + (if ((q >= 1)) | |
152 | 152 | then takeRight(take(A, ((((q - 1) * 15) + r) + 1)), 1) | |
153 | 153 | else "")) + takeRight(take(A, (((q * 15) + r) + 1)), 1)) + (if ((13 >= q)) | |
154 | 154 | then takeRight(take(A, ((((q + 1) * 15) + r) + 1)), 1) | |
155 | 155 | else "")) + (if ((12 >= q)) | |
156 | 156 | then takeRight(take(A, ((((q + 2) * 15) + r) + 1)), 1) | |
157 | 157 | else "")) + (if ((11 >= q)) | |
158 | 158 | then takeRight(take(A, ((((q + 3) * 15) + r) + 1)), 1) | |
159 | 159 | else "")) + (if ((10 >= q)) | |
160 | 160 | then takeRight(take(A, ((((q + 4) * 15) + r) + 1)), 1) | |
161 | 161 | else "")) + (if (if ((q >= 4)) | |
162 | 162 | then (10 >= r) | |
163 | 163 | else false) | |
164 | 164 | then takeRight(take(A, ((((q - 4) * 15) + (r + 4)) + 1)), 1) | |
165 | 165 | else "")) + (if (if ((q >= 3)) | |
166 | 166 | then (11 >= r) | |
167 | 167 | else false) | |
168 | 168 | then takeRight(take(A, ((((q - 3) * 15) + (r + 3)) + 1)), 1) | |
169 | 169 | else "")) + (if (if ((q >= 2)) | |
170 | 170 | then (12 >= r) | |
171 | 171 | else false) | |
172 | 172 | then takeRight(take(A, ((((q - 2) * 15) + (r + 2)) + 1)), 1) | |
173 | 173 | else "")) + (if (if ((q >= 1)) | |
174 | 174 | then (13 >= r) | |
175 | 175 | else false) | |
176 | 176 | then takeRight(take(A, ((((q - 1) * 15) + (r + 1)) + 1)), 1) | |
177 | 177 | else "")) + takeRight(take(A, (((q * 15) + r) + 1)), 1)) + (if (if ((13 >= q)) | |
178 | 178 | then (r >= 1) | |
179 | 179 | else false) | |
180 | 180 | then takeRight(take(A, ((((q + 1) * 15) + (r - 1)) + 1)), 1) | |
181 | 181 | else "")) + (if (if ((12 >= q)) | |
182 | 182 | then (r >= 2) | |
183 | 183 | else false) | |
184 | 184 | then takeRight(take(A, ((((q + 2) * 15) + (r - 2)) + 1)), 1) | |
185 | 185 | else "")) + (if (if ((11 >= q)) | |
186 | 186 | then (r >= 3) | |
187 | 187 | else false) | |
188 | 188 | then takeRight(take(A, ((((q + 3) * 15) + (r - 3)) + 1)), 1) | |
189 | 189 | else "")) + (if (if ((10 >= q)) | |
190 | 190 | then (r >= 4) | |
191 | 191 | else false) | |
192 | 192 | then takeRight(take(A, ((((q + 4) * 15) + (r - 4)) + 1)), 1) | |
193 | 193 | else "")) + (if (if ((q >= 4)) | |
194 | 194 | then (r >= 4) | |
195 | 195 | else false) | |
196 | 196 | then takeRight(take(A, ((((q - 4) * 15) + (r - 4)) + 1)), 1) | |
197 | 197 | else "")) + (if (if ((q >= 3)) | |
198 | 198 | then (r >= 3) | |
199 | 199 | else false) | |
200 | 200 | then takeRight(take(A, ((((q - 3) * 15) + (r - 3)) + 1)), 1) | |
201 | 201 | else "")) + (if (if ((q >= 2)) | |
202 | 202 | then (r >= 2) | |
203 | 203 | else false) | |
204 | 204 | then takeRight(take(A, ((((q - 2) * 15) + (r - 2)) + 1)), 1) | |
205 | 205 | else "")) + (if (if ((q >= 1)) | |
206 | 206 | then (r >= 1) | |
207 | 207 | else false) | |
208 | 208 | then takeRight(take(A, ((((q - 1) * 15) + (r - 1)) + 1)), 1) | |
209 | 209 | else "")) + takeRight(take(A, (((q * 15) + r) + 1)), 1)) + (if (if ((13 >= q)) | |
210 | 210 | then (13 >= r) | |
211 | 211 | else false) | |
212 | 212 | then takeRight(take(A, ((((q + 1) * 15) + (r + 1)) + 1)), 1) | |
213 | 213 | else "")) + (if (if ((12 >= q)) | |
214 | 214 | then (12 >= r) | |
215 | 215 | else false) | |
216 | 216 | then takeRight(take(A, ((((q + 2) * 15) + (r + 2)) + 1)), 1) | |
217 | 217 | else "")) + (if (if ((11 >= q)) | |
218 | 218 | then (11 >= r) | |
219 | 219 | else false) | |
220 | 220 | then takeRight(take(A, ((((q + 3) * 15) + (r + 3)) + 1)), 1) | |
221 | 221 | else "")) + (if (if ((10 >= q)) | |
222 | 222 | then (10 >= r) | |
223 | 223 | else false) | |
224 | 224 | then takeRight(take(A, ((((q + 4) * 15) + (r + 4)) + 1)), 1) | |
225 | 225 | else "")) | |
226 | 226 | if (if ((z != "b")) | |
227 | 227 | then (z != "w") | |
228 | 228 | else false) | |
229 | 229 | then throw("invalid color in check function") | |
230 | 230 | else { | |
231 | 231 | let C = { | |
232 | 232 | let d = indexOf(B, ((((z + z) + z) + z) + z)) | |
233 | 233 | if ($isInstanceOf(d, "Int")) | |
234 | 234 | then true | |
235 | 235 | else false | |
236 | 236 | } | |
237 | 237 | let D = (y == 225) | |
238 | 238 | let E = if ((x == u)) | |
239 | 239 | then v | |
240 | 240 | else if ((x == v)) | |
241 | 241 | then u | |
242 | 242 | else throw("Invalid move address") | |
243 | 243 | let p = ((((((((((((((((A + ":") + (if (if (C) | |
244 | 244 | then true | |
245 | 245 | else D) | |
246 | 246 | then "over" | |
247 | 247 | else m[1])) + ":") + m[2]) + ":") + m[3]) + ":") + m[4]) + ":") + m[5]) + ":") + (if (if (C) | |
248 | 248 | then true | |
249 | 249 | else D) | |
250 | 250 | then m[6] | |
251 | 251 | else toString(E))) + ":") + (if (if (C) | |
252 | 252 | then true | |
253 | 253 | else D) | |
254 | 254 | then m[7] | |
255 | 255 | else toString((y + 1)))) + ":") + (if (C) | |
256 | 256 | then toBase58String(a.caller.bytes) | |
257 | 257 | else m[8])) | |
258 | 258 | let F = if (if (C) | |
259 | 259 | then (c > 0) | |
260 | 260 | else false) | |
261 | 261 | then [ScriptTransfer(a.caller, (c * 2), w)] | |
262 | 262 | else if (if (D) | |
263 | 263 | then (c > 0) | |
264 | 264 | else false) | |
265 | 265 | then [ScriptTransfer(u, c, w), ScriptTransfer(v, c, w)] | |
266 | 266 | else nil | |
267 | 267 | ScriptResult(WriteSet([DataEntry(("game:" + j), p)]), TransferSet(F)) | |
268 | 268 | } | |
269 | 269 | } | |
270 | 270 | } | |
271 | 271 | } | |
272 | 272 | ||
273 | 273 |
github/deemru/w8io/026f985 85.36 ms ◑