tx · H8fveYRAvpgVBoWD9KnHuWeMZiDoQfVWno5VgwDQNYsi 3MvCLdwRiQSNrhgumfFunsbyUJUw6ViTMwB: -0.05000000 Waves 2021.08.19 23:13 [1665698] smart account 3MvCLdwRiQSNrhgumfFunsbyUJUw6ViTMwB > SELF 0.00000000 Waves
{ "type": 13, "id": "H8fveYRAvpgVBoWD9KnHuWeMZiDoQfVWno5VgwDQNYsi", "fee": 5000000, "feeAssetId": null, "timestamp": 1629404005918, "version": 2, "chainId": 84, "sender": "3MvCLdwRiQSNrhgumfFunsbyUJUw6ViTMwB", "senderPublicKey": "9Vbnf3b9hhuCerzPXf38mLo8mUGTPNVW3jtQRbymjaSw", "proofs": [ "39PrX4GXkYYjY5Qzv5H9GAUpy4AVKicJMru51KH7MmY5ahhr1HY2bT59hJJR5a3iZgKbciYbjZ81aCmnywbJQRtu" ], "script": "base64:AAIFAAAAAAAAADoIAhIGCgQBAQEBEgMKAQESAwoBARIDCgEBEgMKAQESAwoBARIECgIBCBIFCgMBCAgSAwoBARIDCgEBAAAALAAAAAAQaW5jdWJhdG9yQWRkcmVzcwEAAAAaAVQu1YzRxAHn1ekAzs1AJJ6xFAc06V7PK6oAAAAADmJyZWVkZXJBZGRyZXNzAQAAABoBVC7VjNHEAefV6QDOzUAknrEUBzTpXs8rqgAAAAAOZmFybWluZ0FkZHJlc3MBAAAAGgFU8jY5wCvKx9IdZ1jq9byeNi+peiAgajPTAAAAAAtlZ2dzQXNzZXRJZAEAAAAgJQJlzPcEaMi+AVmReOVYWjhmFBOtSkxKt/4FF0gXFoMAAAAACG1ha2VyRmVlAAAAAAAAAAABAAAAAAh0YWtlckZlZQAAAAAAAAAAAQAAAAAFU0xPVFMAAAAAAAAAAAoAAAAAB1dBSVRJTkcAAAAAAAAAAAUAAAAADHN0ZXBEdXJhdGlvbgAAAAAAAAAAAwEAAAANdHJ5R2V0SW50ZWdlcgAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRo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BpcmVkAAAAAQUAAAAIZ2FtZVN0ZXAJAAACAAAAAQIAAAAWSW52YWxpZCBjYWxsZXIgYWRkcmVzcwAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V59c3EZw==", "height": 1665698, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BPGo8qUvMF5T7MunpBFCoRcWvzUhxfCAUPtFu9Et3Pgc Next: DJJFE6k83nSDLzHbsbHfStV2aCsxg92EUc3aAjKENj7u Diff:
Old | New | Differences | |
---|---|---|---|
290 | 290 | then throw("This game is started") | |
291 | 291 | else { | |
292 | 292 | let aD = A(z) | |
293 | - | [IntegerEntry(s(aD), 0), IntegerEntry(v(w), 0), ScriptTransfer(Address( | |
293 | + | [IntegerEntry(s(aD), 0), IntegerEntry(v(w), 0), ScriptTransfer(Address(fromBase58String(aD)), (E(z) + e), d)] | |
294 | 294 | } | |
295 | 295 | } | |
296 | 296 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'3MtBigTsaeevrcJAEwVcr4quwkqcrtnjoAh' | |
5 | 5 | ||
6 | 6 | let b = base58'3MtBigTsaeevrcJAEwVcr4quwkqcrtnjoAh' | |
7 | 7 | ||
8 | 8 | let c = base58'3NBznG19rEYUAcnukTRTtwJHBVKQLbobVdC' | |
9 | 9 | ||
10 | 10 | let d = base58'3VUCuh9dWqe54SdzzNUkXhFXpc8UQynnJVh42B7MjNzN' | |
11 | 11 | ||
12 | 12 | let e = 1 | |
13 | 13 | ||
14 | 14 | let f = 1 | |
15 | 15 | ||
16 | 16 | let g = 10 | |
17 | 17 | ||
18 | 18 | let h = 5 | |
19 | 19 | ||
20 | 20 | let i = 3 | |
21 | 21 | ||
22 | 22 | func j (k) = { | |
23 | 23 | let l = getInteger(this, k) | |
24 | 24 | if ($isInstanceOf(l, "Int")) | |
25 | 25 | then { | |
26 | 26 | let m = l | |
27 | 27 | m | |
28 | 28 | } | |
29 | 29 | else 0 | |
30 | 30 | } | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func n (k) = { | |
34 | 34 | let l = getString(this, k) | |
35 | 35 | if ($isInstanceOf(l, "String")) | |
36 | 36 | then { | |
37 | 37 | let o = l | |
38 | 38 | o | |
39 | 39 | } | |
40 | 40 | else "" | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func p (k) = { | |
45 | 45 | let l = getBoolean(this, k) | |
46 | 46 | if ($isInstanceOf(l, "Boolean")) | |
47 | 47 | then { | |
48 | 48 | let m = l | |
49 | 49 | m | |
50 | 50 | } | |
51 | 51 | else false | |
52 | 52 | } | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func q () = { | |
56 | 56 | let r = j("next_game_id") | |
57 | 57 | if ((r == 0)) | |
58 | 58 | then 1 | |
59 | 59 | else r | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func s (t) = ("current_game_" + t) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func u (t) = j(s(t)) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func v (w) = ("slot_" + toString(w)) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func x (w) = j(v(w)) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func y (z) = (("game_" + toString(z)) + "_maker") | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func A (z) = n(y(z)) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func B (z) = (("game_" + toString(z)) + "_taker") | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func C (z) = n(B(z)) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func D (z) = (("game_" + toString(z)) + "_bet_eggs") | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func E (z) = j(D(z)) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func F (z) = (("game_" + toString(z)) + "_waiting_end_height") | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func G (z) = j(F(z)) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func H (z) = (("game_" + toString(z)) + "_over_height") | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func I (z) = j(F(z)) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func J (z,K) = ((("game_" + toString(z)) + "_rarityRange_") + K) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func L (z,K) = j(J(z, K)) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func M (z) = (("game_" + toString(z)) + "_step") | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func N (z) = j(M(z)) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func O (z,P,K) = (((((("game_" + toString(z)) + "_") + P) + "_") + K) + "Rarity") | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func Q (z,P,K) = j(O(z, P, K)) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func R (z,P) = (((("game_" + toString(z)) + "_") + P) + "_commit") | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func S (z,P) = n(R(z, P)) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func T (z,P) = (((("game_" + toString(z)) + "_") + P) + "_duckOrder") | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func U (z,P) = n(T(z, P)) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func V (z,P) = (((("game_" + toString(z)) + "_") + P) + "_withdrawStatus") | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func W (z,P) = p(V(z, P)) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func X (z,Y,Z,aa,ab,K,ac) = { | |
142 | 142 | let ad = L(z, K) | |
143 | 143 | if (if (if (if ((ad == 5)) | |
144 | 144 | then (40 > ab) | |
145 | 145 | else false) | |
146 | 146 | then true | |
147 | 147 | else (ab >= (ad * 10))) | |
148 | 148 | then true | |
149 | 149 | else (((ad - 1) * 10) > ab)) | |
150 | 150 | then throw("This duck doesn't fit the rarity range") | |
151 | 151 | else [IntegerEntry(O(z, Y, K), ab), IntegerEntry(M(z), (ac + 1)), IntegerEntry(H(z), (height + i)), ScriptTransfer(Z, 1, aa)] | |
152 | 152 | } | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func ae (o,m) = if ((o > m)) | |
156 | 156 | then 1 | |
157 | 157 | else if ((m > o)) | |
158 | 158 | then -1 | |
159 | 159 | else 0 | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func af (z) = { | |
163 | 163 | let ag = split(U(z, "maker"), ",") | |
164 | 164 | let ah = split(U(z, "taker"), ",") | |
165 | 165 | let ai = Q(z, "maker", ag[0]) | |
166 | 166 | let aj = Q(z, "maker", ag[1]) | |
167 | 167 | let ak = Q(z, "maker", ag[2]) | |
168 | 168 | let al = Q(z, "taker", ag[0]) | |
169 | 169 | let am = Q(z, "taker", ag[1]) | |
170 | 170 | let an = Q(z, "taker", ag[2]) | |
171 | 171 | let ao = ((ae(ai, al) + ae(aj, am)) + ae(ak, an)) | |
172 | 172 | if ((ao > 0)) | |
173 | 173 | then "maker" | |
174 | 174 | else if ((0 > ao)) | |
175 | 175 | then "taker" | |
176 | 176 | else "draw" | |
177 | 177 | } | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func ap (aq) = if (if (if (if (if ((aq == 0)) | |
181 | 181 | then true | |
182 | 182 | else (aq == 3)) | |
183 | 183 | then true | |
184 | 184 | else (aq == 4)) | |
185 | 185 | then true | |
186 | 186 | else (aq == 7)) | |
187 | 187 | then true | |
188 | 188 | else (aq == 9)) | |
189 | 189 | then "maker" | |
190 | 190 | else if (if (if (if (if ((aq == 1)) | |
191 | 191 | then true | |
192 | 192 | else (aq == 2)) | |
193 | 193 | then true | |
194 | 194 | else (aq == 5)) | |
195 | 195 | then true | |
196 | 196 | else (aq == 6)) | |
197 | 197 | then true | |
198 | 198 | else (aq == 8)) | |
199 | 199 | then "taker" | |
200 | 200 | else "draw" | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func ar (z,Z,Y,as) = { | |
204 | 204 | let at = A(z) | |
205 | 205 | let au = C(z) | |
206 | 206 | if (W(z, Y)) | |
207 | 207 | then throw("You have already got the prize") | |
208 | 208 | else if ((as == Y)) | |
209 | 209 | then [IntegerEntry(s(at), 0), IntegerEntry(s(au), 0), BooleanEntry(V(z, Y), true), ScriptTransfer(Z, (E(z) * 2), d)] | |
210 | 210 | else if ((as == "draw")) | |
211 | 211 | then if ((Y == "maker")) | |
212 | 212 | then [IntegerEntry(s(at), 0), BooleanEntry(V(z, Y), true), ScriptTransfer(Z, E(z), d)] | |
213 | 213 | else [IntegerEntry(s(au), 0), BooleanEntry(V(z, Y), true), ScriptTransfer(Z, E(z), d)] | |
214 | 214 | else throw("You lose and don't have any prize") | |
215 | 215 | } | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | @Callable(av) | |
219 | 219 | func makeGame (w,aw,ax,ay) = { | |
220 | 220 | let az = toBase58String(av.caller.bytes) | |
221 | 221 | let aA = x(w) | |
222 | 222 | let aB = value(av.payments[0]) | |
223 | 223 | let aC = (aB.amount - e) | |
224 | 224 | let z = q() | |
225 | 225 | if ((aB.assetId != d)) | |
226 | 226 | then throw(("You can attach only EGGs with the following asset id: " + toBase58String(d))) | |
227 | 227 | else if ((0 >= aC)) | |
228 | 228 | then throw("Not enough EGGs") | |
229 | 229 | else if ((u(az) != 0)) | |
230 | 230 | then throw("You already have an active game") | |
231 | 231 | else if (if ((0 > w)) | |
232 | 232 | then true | |
233 | 233 | else (w >= g)) | |
234 | 234 | then throw("Invalid slot") | |
235 | 235 | else if ((aA != 0)) | |
236 | 236 | then throw("This slot is busy") | |
237 | 237 | else if (if ((1 > aw)) | |
238 | 238 | then true | |
239 | 239 | else (aw > 5)) | |
240 | 240 | then throw("Invalid rarity range for the worst duck") | |
241 | 241 | else if (if ((1 > ax)) | |
242 | 242 | then true | |
243 | 243 | else (ax > 5)) | |
244 | 244 | then throw("Invalid rarity range for the medium duck") | |
245 | 245 | else if (if ((1 > ay)) | |
246 | 246 | then true | |
247 | 247 | else (ay > 5)) | |
248 | 248 | then throw("Invalid rarity range for the best duck") | |
249 | 249 | else if ((aw >= ax)) | |
250 | 250 | then throw("The medium duck must be better than the worst one") | |
251 | 251 | else if ((ax >= ay)) | |
252 | 252 | then throw("The best duck must be better than the medium one") | |
253 | 253 | else [IntegerEntry(s(az), z), StringEntry(y(z), az), IntegerEntry(D(z), aC), IntegerEntry(J(z, "worst"), aw), IntegerEntry(J(z, "medium"), ax), IntegerEntry(J(z, "best"), ay), IntegerEntry(F(z), (height + h)), IntegerEntry(v(w), z), IntegerEntry("next_game_id", (z + 1))] | |
254 | 254 | } | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | ||
258 | 258 | @Callable(av) | |
259 | 259 | func takeGame (w) = { | |
260 | 260 | let az = toBase58String(av.caller.bytes) | |
261 | 261 | let z = x(w) | |
262 | 262 | let aB = value(av.payments[0]) | |
263 | 263 | if ((x(w) == 0)) | |
264 | 264 | then throw("This slot is empty") | |
265 | 265 | else if ((aB.assetId != d)) | |
266 | 266 | then throw(("You can attach only EGG tokens with the following asset id: " + toBase58String(d))) | |
267 | 267 | else if ((aB.amount != (E(z) + f))) | |
268 | 268 | then throw("Insufficient eggs amount") | |
269 | 269 | else if ((C(z) != "")) | |
270 | 270 | then throw("This game is already taken") | |
271 | 271 | else if ((height >= G(z))) | |
272 | 272 | then throw("This game is expired") | |
273 | 273 | else [IntegerEntry(s(az), z), StringEntry(B(z), az), IntegerEntry(H(z), (height + i)), IntegerEntry(v(w), 0)] | |
274 | 274 | } | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | ||
278 | 278 | @Callable(av) | |
279 | 279 | func kickGame (w) = { | |
280 | 280 | let z = x(w) | |
281 | 281 | if (if ((0 > w)) | |
282 | 282 | then true | |
283 | 283 | else (w >= g)) | |
284 | 284 | then throw("Invalid slot") | |
285 | 285 | else if ((z == 0)) | |
286 | 286 | then throw("Slot is empty") | |
287 | 287 | else if ((G(z) > height)) | |
288 | 288 | then throw("Waiting is not finished yet") | |
289 | 289 | else if ((C(z) != "")) | |
290 | 290 | then throw("This game is started") | |
291 | 291 | else { | |
292 | 292 | let aD = A(z) | |
293 | - | [IntegerEntry(s(aD), 0), IntegerEntry(v(w), 0), ScriptTransfer(Address( | |
293 | + | [IntegerEntry(s(aD), 0), IntegerEntry(v(w), 0), ScriptTransfer(Address(fromBase58String(aD)), (E(z) + e), d)] | |
294 | 294 | } | |
295 | 295 | } | |
296 | 296 | ||
297 | 297 | ||
298 | 298 | ||
299 | 299 | @Callable(av) | |
300 | 300 | func pickWorstDuck (z) = { | |
301 | 301 | let az = toBase58String(av.caller.bytes) | |
302 | 302 | let aa = value(value(av.payments[0]).assetId) | |
303 | 303 | let aq = N(z) | |
304 | 304 | if (if ((value(assetInfo(aa)).issuer != Address(b))) | |
305 | 305 | then (value(assetInfo(aa)).issuer != Address(a)) | |
306 | 306 | else false) | |
307 | 307 | then throw("Invalid NFT") | |
308 | 308 | else if ((aq == 0)) | |
309 | 309 | then if ((az != C(z))) | |
310 | 310 | then throw("It is the taker's turn to pick now") | |
311 | 311 | else { | |
312 | 312 | let aE = invoke(Address(c), "getAssetRarityCallable", [aa], nil) | |
313 | 313 | if ((aE == aE)) | |
314 | 314 | then { | |
315 | 315 | let ab = { | |
316 | 316 | let l = aE | |
317 | 317 | if ($isInstanceOf(l, "Int")) | |
318 | 318 | then { | |
319 | 319 | let aF = l | |
320 | 320 | aF | |
321 | 321 | } | |
322 | 322 | else throw("Incorrect invoke result") | |
323 | 323 | } | |
324 | 324 | X(z, "taker", av.caller, aa, ab, "worst", 0) | |
325 | 325 | } | |
326 | 326 | else throw("Strict value is not equal to itself.") | |
327 | 327 | } | |
328 | 328 | else if ((aq == 1)) | |
329 | 329 | then if ((az != A(z))) | |
330 | 330 | then throw("It is the maker's turn to pick now") | |
331 | 331 | else { | |
332 | 332 | let aE = invoke(Address(c), "getAssetRarityCallable", [aa], nil) | |
333 | 333 | if ((aE == aE)) | |
334 | 334 | then { | |
335 | 335 | let ab = { | |
336 | 336 | let l = aE | |
337 | 337 | if ($isInstanceOf(l, "Int")) | |
338 | 338 | then { | |
339 | 339 | let aF = l | |
340 | 340 | aF | |
341 | 341 | } | |
342 | 342 | else throw("Incorrect invoke result") | |
343 | 343 | } | |
344 | 344 | X(z, "maker", av.caller, aa, ab, "worst", 1) | |
345 | 345 | } | |
346 | 346 | else throw("Strict value is not equal to itself.") | |
347 | 347 | } | |
348 | 348 | else throw("The worst duck has already been picked") | |
349 | 349 | } | |
350 | 350 | ||
351 | 351 | ||
352 | 352 | ||
353 | 353 | @Callable(av) | |
354 | 354 | func pickMediumtDuck (z) = { | |
355 | 355 | let az = toBase58String(av.caller.bytes) | |
356 | 356 | let aa = value(value(av.payments[0]).assetId) | |
357 | 357 | let aq = N(z) | |
358 | 358 | if (if ((value(assetInfo(aa)).issuer != Address(b))) | |
359 | 359 | then (value(assetInfo(aa)).issuer != Address(a)) | |
360 | 360 | else false) | |
361 | 361 | then throw("Invalid NFT") | |
362 | 362 | else if ((2 > aq)) | |
363 | 363 | then throw("The medium duck must be picked after the worst one") | |
364 | 364 | else if ((aq == 2)) | |
365 | 365 | then if ((az != A(z))) | |
366 | 366 | then throw("It is the maker's turn to pick now") | |
367 | 367 | else { | |
368 | 368 | let aE = invoke(Address(c), "getAssetRarityCallable", [aa], nil) | |
369 | 369 | if ((aE == aE)) | |
370 | 370 | then { | |
371 | 371 | let ab = { | |
372 | 372 | let l = aE | |
373 | 373 | if ($isInstanceOf(l, "Int")) | |
374 | 374 | then { | |
375 | 375 | let aF = l | |
376 | 376 | aF | |
377 | 377 | } | |
378 | 378 | else throw("Incorrect invoke result") | |
379 | 379 | } | |
380 | 380 | X(z, "maker", av.caller, aa, ab, "medium", 2) | |
381 | 381 | } | |
382 | 382 | else throw("Strict value is not equal to itself.") | |
383 | 383 | } | |
384 | 384 | else if ((aq == 3)) | |
385 | 385 | then if ((az != C(z))) | |
386 | 386 | then throw("It is the taker's turn to pick now") | |
387 | 387 | else { | |
388 | 388 | let aE = invoke(Address(c), "getAssetRarityCallable", [aa], nil) | |
389 | 389 | if ((aE == aE)) | |
390 | 390 | then { | |
391 | 391 | let ab = { | |
392 | 392 | let l = aE | |
393 | 393 | if ($isInstanceOf(l, "Int")) | |
394 | 394 | then { | |
395 | 395 | let aF = l | |
396 | 396 | aF | |
397 | 397 | } | |
398 | 398 | else throw("Incorrect invoke result") | |
399 | 399 | } | |
400 | 400 | X(z, "taker", av.caller, aa, ab, "medium", 3) | |
401 | 401 | } | |
402 | 402 | else throw("Strict value is not equal to itself.") | |
403 | 403 | } | |
404 | 404 | else throw("The medium duck has already been picked") | |
405 | 405 | } | |
406 | 406 | ||
407 | 407 | ||
408 | 408 | ||
409 | 409 | @Callable(av) | |
410 | 410 | func pickBestDuck (z) = { | |
411 | 411 | let az = toBase58String(av.caller.bytes) | |
412 | 412 | let aa = value(value(av.payments[0]).assetId) | |
413 | 413 | let aq = N(z) | |
414 | 414 | if (if ((value(assetInfo(aa)).issuer != Address(b))) | |
415 | 415 | then (value(assetInfo(aa)).issuer != Address(a)) | |
416 | 416 | else false) | |
417 | 417 | then throw("Invalid NFT") | |
418 | 418 | else if ((4 > aq)) | |
419 | 419 | then throw("The best duck must be picked after the worst and the medium ones") | |
420 | 420 | else if ((aq == 4)) | |
421 | 421 | then if ((az != C(z))) | |
422 | 422 | then throw("It is the taker's turn to pick now") | |
423 | 423 | else { | |
424 | 424 | let aE = invoke(Address(c), "getAssetRarityCallable", [aa], nil) | |
425 | 425 | if ((aE == aE)) | |
426 | 426 | then { | |
427 | 427 | let ab = { | |
428 | 428 | let l = aE | |
429 | 429 | if ($isInstanceOf(l, "Int")) | |
430 | 430 | then { | |
431 | 431 | let aF = l | |
432 | 432 | aF | |
433 | 433 | } | |
434 | 434 | else throw("Incorrect invoke result") | |
435 | 435 | } | |
436 | 436 | X(z, "taker", av.caller, aa, ab, "best", 4) | |
437 | 437 | } | |
438 | 438 | else throw("Strict value is not equal to itself.") | |
439 | 439 | } | |
440 | 440 | else if ((aq == 5)) | |
441 | 441 | then if ((az != A(z))) | |
442 | 442 | then throw("It is the maker's turn to pick now") | |
443 | 443 | else { | |
444 | 444 | let aE = invoke(Address(c), "getAssetRarityCallable", [aa], nil) | |
445 | 445 | if ((aE == aE)) | |
446 | 446 | then { | |
447 | 447 | let ab = { | |
448 | 448 | let l = aE | |
449 | 449 | if ($isInstanceOf(l, "Int")) | |
450 | 450 | then { | |
451 | 451 | let aF = l | |
452 | 452 | aF | |
453 | 453 | } | |
454 | 454 | else throw("Incorrect invoke result") | |
455 | 455 | } | |
456 | 456 | X(z, "maker", av.caller, aa, ab, "best", 5) | |
457 | 457 | } | |
458 | 458 | else throw("Strict value is not equal to itself.") | |
459 | 459 | } | |
460 | 460 | else throw("The best duck has already been picked") | |
461 | 461 | } | |
462 | 462 | ||
463 | 463 | ||
464 | 464 | ||
465 | 465 | @Callable(av) | |
466 | 466 | func commit (z,aG) = { | |
467 | 467 | let az = toBase58String(av.caller.bytes) | |
468 | 468 | let aq = N(z) | |
469 | 469 | if ((6 > aq)) | |
470 | 470 | then throw("Ducks hasn't been picked yet") | |
471 | 471 | else if ((aq == 6)) | |
472 | 472 | then if ((az != A(z))) | |
473 | 473 | then throw("It is the maker's turn to commit now") | |
474 | 474 | else [StringEntry(R(z, "maker"), aG), IntegerEntry(M(z), (aq + 1)), IntegerEntry(H(z), (height + i))] | |
475 | 475 | else if ((aq == 7)) | |
476 | 476 | then if ((az != C(z))) | |
477 | 477 | then throw("It is the taker's turn to commit now") | |
478 | 478 | else [StringEntry(R(z, "taker"), aG), IntegerEntry(M(z), (aq + 1)), IntegerEntry(H(z), (height + i))] | |
479 | 479 | else throw("Commit is finished") | |
480 | 480 | } | |
481 | 481 | ||
482 | 482 | ||
483 | 483 | ||
484 | 484 | @Callable(av) | |
485 | 485 | func reveal (z,aH,aI) = { | |
486 | 486 | let az = toBase58String(av.caller.bytes) | |
487 | 487 | let aq = N(z) | |
488 | 488 | if ((8 > aq)) | |
489 | 489 | then throw("Reveal is not started") | |
490 | 490 | else if (if (if (if (if (if ((aH != "worst,medium,best")) | |
491 | 491 | then true | |
492 | 492 | else (aH != "worst,best,medium")) | |
493 | 493 | then true | |
494 | 494 | else (aH != "medium,worst,best")) | |
495 | 495 | then true | |
496 | 496 | else (aH != "medium,best,worst")) | |
497 | 497 | then true | |
498 | 498 | else (aH != "best,worst,medium")) | |
499 | 499 | then true | |
500 | 500 | else (aH != "best,medium,worst")) | |
501 | 501 | then throw("Invalid duckOrder") | |
502 | 502 | else if ((aq == 8)) | |
503 | 503 | then if ((az != A(z))) | |
504 | 504 | then throw("It is the maker's turn to reveal now") | |
505 | 505 | else if ((toBase58String(sha256(toBytes((aH + aI)))) != S(z, "maker"))) | |
506 | 506 | then throw("reveal data is not valid") | |
507 | 507 | else [StringEntry(T(z, "maker"), aH), IntegerEntry(M(z), (aq + 1)), IntegerEntry(H(z), (height + i))] | |
508 | 508 | else if ((aq == 9)) | |
509 | 509 | then if ((az != C(z))) | |
510 | 510 | then throw("It is the taker's turn to reveal now") | |
511 | 511 | else if ((toBase58String(sha256(toBytes((aH + aI)))) != S(z, "taker"))) | |
512 | 512 | then throw("reveal data is not valid") | |
513 | 513 | else [StringEntry(T(z, "taker"), aH), IntegerEntry(M(z), (aq + 1)), IntegerEntry(H(z), (height + i))] | |
514 | 514 | else throw("Reveal is finished") | |
515 | 515 | } | |
516 | 516 | ||
517 | 517 | ||
518 | 518 | ||
519 | 519 | @Callable(av) | |
520 | 520 | func getPrize (z) = { | |
521 | 521 | let az = toBase58String(av.caller.bytes) | |
522 | 522 | let aq = N(z) | |
523 | 523 | if ((aq != 10)) | |
524 | 524 | then throw("Game is not finished") | |
525 | 525 | else if ((az == A(z))) | |
526 | 526 | then ar(z, av.caller, "maker", af(z)) | |
527 | 527 | else if ((az == C(z))) | |
528 | 528 | then ar(z, av.caller, "taker", af(z)) | |
529 | 529 | else throw("Invalid caller address") | |
530 | 530 | } | |
531 | 531 | ||
532 | 532 | ||
533 | 533 | ||
534 | 534 | @Callable(av) | |
535 | 535 | func getPrizeExpired (z) = { | |
536 | 536 | let az = toBase58String(av.caller.bytes) | |
537 | 537 | let aq = N(z) | |
538 | 538 | if ((aq == 10)) | |
539 | 539 | then throw("Game is finished, call getPrize instead") | |
540 | 540 | else if ((I(z) > height)) | |
541 | 541 | then throw("Game is not expired") | |
542 | 542 | else if ((az == A(z))) | |
543 | 543 | then ar(z, av.caller, "maker", ap(aq)) | |
544 | 544 | else if ((az == C(z))) | |
545 | 545 | then ar(z, av.caller, "taker", ap(aq)) | |
546 | 546 | else throw("Invalid caller address") | |
547 | 547 | } | |
548 | 548 | ||
549 | 549 | ||
550 | 550 | @Verifier(aJ) | |
551 | 551 | func aK () = sigVerify(aJ.bodyBytes, aJ.proofs[0], aJ.senderPublicKey) | |
552 | 552 |
github/deemru/w8io/026f985 57.02 ms ◑