tx · Y4n6CNaHLGhmgic5CfGH5Ux1MEDL2j2swvX64QS4odX 3MvCLdwRiQSNrhgumfFunsbyUJUw6ViTMwB: -0.05000000 Waves 2021.08.19 15:35 [1665244] smart account 3MvCLdwRiQSNrhgumfFunsbyUJUw6ViTMwB > SELF 0.00000000 Waves
{ "type": 13, "id": "Y4n6CNaHLGhmgic5CfGH5Ux1MEDL2j2swvX64QS4odX", "fee": 5000000, "feeAssetId": null, "timestamp": 1629376587097, "version": 2, "chainId": 84, "sender": "3MvCLdwRiQSNrhgumfFunsbyUJUw6ViTMwB", "senderPublicKey": "9Vbnf3b9hhuCerzPXf38mLo8mUGTPNVW3jtQRbymjaSw", "proofs": [ "2BBpkKLBnFJNzF74RhDuhLYFgH9BQG8BRN1oTtCBSHDh1Ti7A7mWLXpNWbppNbh7BNdDzVKF3KtzzAZMhAEmHxrP" ], "script": "base64:AAIFAAAAAAAAADoIAhIGCgQBAQEBEgMKAQESAwoBARIDCgEBEgMKAQESAwoBARIECgIBCBIFCgMBCAgSAwoBARIDCgEBAAAALAAAAAAQaW5jdWJhdG9yQWRkcmVzcwEAAAAaAVQu1YzRxAHn1ekAzs1AJJ6xFAc06V7PK6oAAAAADmJyZWVkZXJBZGRyZXNzAQAAABoBVC7VjNHEAefV6QDOzUAknrEUBzTpXs8rqgAAAAAOZmFybWluZ0FkZHJlc3MBAAAAGgFU8jY5wCvKx9IdZ1jq9byeNi+peiAgajPTAAAAAAtlZ2dzQXNzZXRJZAEAAAAgJQJlzPcEaMi+AVmReOVYWjhmFBOtSkxKt/4FF0gXFoMAAAAACG1ha2VyRmVlAAAAAAAAAAABAAAAAAh0YWtlckZlZQAAAAAAAAAAAQAAAAAFU0xPVFMAAAAAAAAAAAoAAAAAB1dBSVRJTkcAAAAAAAAAAAUAAAAADHN0ZXBEdXJhdGlvbgAAAAAAAAAAAwEAAAANdHJ5R2V0SW50ZWdlcgAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAAB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QAAAAlzZW5kUHJpemUAAAAEBQAAAAZnYW1lSWQIBQAAAAFpAAAABmNhbGxlcgIAAAAFbWFrZXIJAQAAABBnZXRXaW5uZXJFeHBpcmVkAAAAAQUAAAAIZ2FtZVN0ZXADCQAAAAAAAAIFAAAADWNhbGxlckFkZHJlc3MJAQAAAAxnZXRHYW1lVGFrZXIAAAABBQAAAAZnYW1lSWQJAQAAAAlzZW5kUHJpemUAAAAEBQAAAAZnYW1lSWQIBQAAAAFpAAAABmNhbGxlcgIAAAAFdGFrZXIJAQAAABBnZXRXaW5uZXJFeHBpcmVkAAAAAQUAAAAIZ2FtZVN0ZXAJAAACAAAAAQIAAAAWSW52YWxpZCBjYWxsZXIgYWRkcmVzcwAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5GsaIKA==", "height": 1665244, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CBwC6AtuALBkQ92ondLn5A3mtvhJ5UGhbJwNHYZ29pDv Next: GZimgHcdbPNpBBjH8Pque7HKwwUd7FMekniimPBTyazv Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = base58' | |
4 | + | let a = base58'3MtBigTsaeevrcJAEwVcr4quwkqcrtnjoAh' | |
5 | 5 | ||
6 | - | let b = base58' | |
6 | + | let b = base58'3MtBigTsaeevrcJAEwVcr4quwkqcrtnjoAh' | |
7 | 7 | ||
8 | - | let c = base58'' | |
8 | + | let c = base58'3NBznG19rEYUAcnukTRTtwJHBVKQLbobVdC' | |
9 | 9 | ||
10 | - | let d = base58' | |
10 | + | let d = base58'3VUCuh9dWqe54SdzzNUkXhFXpc8UQynnJVh42B7MjNzN' | |
11 | 11 | ||
12 | 12 | let e = 1 | |
13 | 13 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = base58' | |
4 | + | let a = base58'3MtBigTsaeevrcJAEwVcr4quwkqcrtnjoAh' | |
5 | 5 | ||
6 | - | let b = base58' | |
6 | + | let b = base58'3MtBigTsaeevrcJAEwVcr4quwkqcrtnjoAh' | |
7 | 7 | ||
8 | - | let c = base58'' | |
8 | + | let c = base58'3NBznG19rEYUAcnukTRTtwJHBVKQLbobVdC' | |
9 | 9 | ||
10 | - | let d = base58' | |
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) = if (W(z, Y)) | |
204 | 204 | then throw("You have already got the prize") | |
205 | 205 | else if ((as == Y)) | |
206 | 206 | then [BooleanEntry(V(z, Y), true), ScriptTransfer(Z, (E(z) * 2), d)] | |
207 | 207 | else if ((as == "draw")) | |
208 | 208 | then [BooleanEntry(V(z, Y), true), ScriptTransfer(Z, E(z), d)] | |
209 | 209 | else throw("You lose and don't have any prize") | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | @Callable(at) | |
213 | 213 | func makeGame (w,au,av,aw) = { | |
214 | 214 | let ax = toBase58String(at.caller.bytes) | |
215 | 215 | let ay = x(w) | |
216 | 216 | let az = value(at.payments[0]) | |
217 | 217 | let aA = (az.amount - e) | |
218 | 218 | let z = q() | |
219 | 219 | if ((az.assetId != d)) | |
220 | 220 | then throw(("You can attach only EGGs with the following asset id: " + toBase58String(d))) | |
221 | 221 | else if ((0 > aA)) | |
222 | 222 | then throw("Not enough EGGs") | |
223 | 223 | else if ((aA == 0)) | |
224 | 224 | then throw("You can't bet 0 EGGs") | |
225 | 225 | else if ((u(ax) != 0)) | |
226 | 226 | then throw("You already have an active game") | |
227 | 227 | else if (if ((0 > w)) | |
228 | 228 | then true | |
229 | 229 | else (w >= g)) | |
230 | 230 | then throw("Invalid slot") | |
231 | 231 | else if ((ay != 0)) | |
232 | 232 | then throw("This slot is busy") | |
233 | 233 | else if (if ((1 > au)) | |
234 | 234 | then true | |
235 | 235 | else (au > 5)) | |
236 | 236 | then throw("Insufficient rarity range for the worst duck") | |
237 | 237 | else if (if ((1 > av)) | |
238 | 238 | then true | |
239 | 239 | else (av > 5)) | |
240 | 240 | then throw("Insufficient rarity range for the medium duck") | |
241 | 241 | else if (if ((1 > aw)) | |
242 | 242 | then true | |
243 | 243 | else (aw > 5)) | |
244 | 244 | then throw("Insufficient rarity range for the best duck") | |
245 | 245 | else if ((au >= av)) | |
246 | 246 | then throw("The medium duck must be better than the worst one") | |
247 | 247 | else if ((av >= aw)) | |
248 | 248 | then throw("The best duck must be better than the medium one") | |
249 | 249 | else [IntegerEntry(s(ax), z), StringEntry(y(z), ax), IntegerEntry(D(z), aA), IntegerEntry(J(z, "worst"), au), IntegerEntry(J(z, "medium"), av), IntegerEntry(J(z, "best"), aw), IntegerEntry(F(z), (height + h)), IntegerEntry(v(w), z), IntegerEntry("next_game_id", (z + 1))] | |
250 | 250 | } | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | ||
254 | 254 | @Callable(at) | |
255 | 255 | func takeGame (w) = { | |
256 | 256 | let ax = toBase58String(at.caller.bytes) | |
257 | 257 | let z = x(w) | |
258 | 258 | let az = value(at.payments[0]) | |
259 | 259 | if ((x(w) == 0)) | |
260 | 260 | then throw("This slot is empty") | |
261 | 261 | else if ((az.assetId != d)) | |
262 | 262 | then throw(("You can attach only EGG tokens with the following asset id: " + toBase58String(d))) | |
263 | 263 | else if ((az.amount != (E(z) + f))) | |
264 | 264 | then throw("Insufficient eggs amount") | |
265 | 265 | else if ((C(z) != "")) | |
266 | 266 | then throw("This game is already taken") | |
267 | 267 | else if ((height >= G(z))) | |
268 | 268 | then throw("This game is expired") | |
269 | 269 | else [IntegerEntry(s(ax), z), StringEntry(B(z), ax), IntegerEntry(H(z), (height + i)), IntegerEntry(v(w), 0)] | |
270 | 270 | } | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | ||
274 | 274 | @Callable(at) | |
275 | 275 | func kickGame (w) = { | |
276 | 276 | let z = x(w) | |
277 | 277 | if (if ((0 > w)) | |
278 | 278 | then true | |
279 | 279 | else (w >= g)) | |
280 | 280 | then throw("Invalid slot") | |
281 | 281 | else if ((z == 0)) | |
282 | 282 | then throw("Slot is empty") | |
283 | 283 | else if ((G(z) > height)) | |
284 | 284 | then throw("Waiting is not finished yet") | |
285 | 285 | else if ((C(z) != "")) | |
286 | 286 | then throw("This game is started") | |
287 | 287 | else { | |
288 | 288 | let aB = A(z) | |
289 | 289 | [IntegerEntry(s(aB), 0), IntegerEntry(v(w), 0), ScriptTransfer(Address(toBytes(aB)), (E(z) + e), d)] | |
290 | 290 | } | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | ||
295 | 295 | @Callable(at) | |
296 | 296 | func pickWorstDuck (z) = { | |
297 | 297 | let ax = toBase58String(at.caller.bytes) | |
298 | 298 | let aa = value(value(at.payments[0]).assetId) | |
299 | 299 | let aq = N(z) | |
300 | 300 | if (if ((value(assetInfo(aa)).issuer != Address(b))) | |
301 | 301 | then (value(assetInfo(aa)).issuer != Address(a)) | |
302 | 302 | else false) | |
303 | 303 | then throw("Invalid NFT") | |
304 | 304 | else if ((aq == 0)) | |
305 | 305 | then if ((ax != C(z))) | |
306 | 306 | then throw("It is the taker's turn to pick now") | |
307 | 307 | else { | |
308 | 308 | let aC = invoke(Address(c), "getAssetRarityCallable", [aa], nil) | |
309 | 309 | if ((aC == aC)) | |
310 | 310 | then { | |
311 | 311 | let ab = { | |
312 | 312 | let l = aC | |
313 | 313 | if ($isInstanceOf(l, "Int")) | |
314 | 314 | then { | |
315 | 315 | let aD = l | |
316 | 316 | aD | |
317 | 317 | } | |
318 | 318 | else throw("Incorrect invoke result") | |
319 | 319 | } | |
320 | 320 | X(z, "taker", at.caller, aa, ab, "worst", 0) | |
321 | 321 | } | |
322 | 322 | else throw("Strict value is not equal to itself.") | |
323 | 323 | } | |
324 | 324 | else if ((aq == 1)) | |
325 | 325 | then if ((ax != A(z))) | |
326 | 326 | then throw("It is the maker's turn to pick now") | |
327 | 327 | else { | |
328 | 328 | let aC = invoke(Address(c), "getAssetRarityCallable", [aa], nil) | |
329 | 329 | if ((aC == aC)) | |
330 | 330 | then { | |
331 | 331 | let ab = { | |
332 | 332 | let l = aC | |
333 | 333 | if ($isInstanceOf(l, "Int")) | |
334 | 334 | then { | |
335 | 335 | let aD = l | |
336 | 336 | aD | |
337 | 337 | } | |
338 | 338 | else throw("Incorrect invoke result") | |
339 | 339 | } | |
340 | 340 | X(z, "maker", at.caller, aa, ab, "worst", 1) | |
341 | 341 | } | |
342 | 342 | else throw("Strict value is not equal to itself.") | |
343 | 343 | } | |
344 | 344 | else throw("The worst duck has already been picked") | |
345 | 345 | } | |
346 | 346 | ||
347 | 347 | ||
348 | 348 | ||
349 | 349 | @Callable(at) | |
350 | 350 | func pickMediumtDuck (z) = { | |
351 | 351 | let ax = toBase58String(at.caller.bytes) | |
352 | 352 | let aa = value(value(at.payments[0]).assetId) | |
353 | 353 | let aq = N(z) | |
354 | 354 | if (if ((value(assetInfo(aa)).issuer != Address(b))) | |
355 | 355 | then (value(assetInfo(aa)).issuer != Address(a)) | |
356 | 356 | else false) | |
357 | 357 | then throw("Invalid NFT") | |
358 | 358 | else if ((2 > aq)) | |
359 | 359 | then throw("The medium duck must be picked after the worst one") | |
360 | 360 | else if ((aq == 2)) | |
361 | 361 | then if ((ax != A(z))) | |
362 | 362 | then throw("It is the maker's turn to pick now") | |
363 | 363 | else { | |
364 | 364 | let aC = invoke(Address(c), "getAssetRarityCallable", [aa], nil) | |
365 | 365 | if ((aC == aC)) | |
366 | 366 | then { | |
367 | 367 | let ab = { | |
368 | 368 | let l = aC | |
369 | 369 | if ($isInstanceOf(l, "Int")) | |
370 | 370 | then { | |
371 | 371 | let aD = l | |
372 | 372 | aD | |
373 | 373 | } | |
374 | 374 | else throw("Incorrect invoke result") | |
375 | 375 | } | |
376 | 376 | X(z, "maker", at.caller, aa, ab, "medium", 2) | |
377 | 377 | } | |
378 | 378 | else throw("Strict value is not equal to itself.") | |
379 | 379 | } | |
380 | 380 | else if ((aq == 3)) | |
381 | 381 | then if ((ax != C(z))) | |
382 | 382 | then throw("It is the taker's turn to pick now") | |
383 | 383 | else { | |
384 | 384 | let aC = invoke(Address(c), "getAssetRarityCallable", [aa], nil) | |
385 | 385 | if ((aC == aC)) | |
386 | 386 | then { | |
387 | 387 | let ab = { | |
388 | 388 | let l = aC | |
389 | 389 | if ($isInstanceOf(l, "Int")) | |
390 | 390 | then { | |
391 | 391 | let aD = l | |
392 | 392 | aD | |
393 | 393 | } | |
394 | 394 | else throw("Incorrect invoke result") | |
395 | 395 | } | |
396 | 396 | X(z, "taker", at.caller, aa, ab, "medium", 3) | |
397 | 397 | } | |
398 | 398 | else throw("Strict value is not equal to itself.") | |
399 | 399 | } | |
400 | 400 | else throw("The medium duck has already been picked") | |
401 | 401 | } | |
402 | 402 | ||
403 | 403 | ||
404 | 404 | ||
405 | 405 | @Callable(at) | |
406 | 406 | func pickBestDuck (z) = { | |
407 | 407 | let ax = toBase58String(at.caller.bytes) | |
408 | 408 | let aa = value(value(at.payments[0]).assetId) | |
409 | 409 | let aq = N(z) | |
410 | 410 | if (if ((value(assetInfo(aa)).issuer != Address(b))) | |
411 | 411 | then (value(assetInfo(aa)).issuer != Address(a)) | |
412 | 412 | else false) | |
413 | 413 | then throw("Invalid NFT") | |
414 | 414 | else if ((4 > aq)) | |
415 | 415 | then throw("The best duck must be picked after the worst and the medium ones") | |
416 | 416 | else if ((aq == 4)) | |
417 | 417 | then if ((ax != C(z))) | |
418 | 418 | then throw("It is the taker's turn to pick now") | |
419 | 419 | else { | |
420 | 420 | let aC = invoke(Address(c), "getAssetRarityCallable", [aa], nil) | |
421 | 421 | if ((aC == aC)) | |
422 | 422 | then { | |
423 | 423 | let ab = { | |
424 | 424 | let l = aC | |
425 | 425 | if ($isInstanceOf(l, "Int")) | |
426 | 426 | then { | |
427 | 427 | let aD = l | |
428 | 428 | aD | |
429 | 429 | } | |
430 | 430 | else throw("Incorrect invoke result") | |
431 | 431 | } | |
432 | 432 | X(z, "taker", at.caller, aa, ab, "best", 4) | |
433 | 433 | } | |
434 | 434 | else throw("Strict value is not equal to itself.") | |
435 | 435 | } | |
436 | 436 | else if ((aq == 5)) | |
437 | 437 | then if ((ax != A(z))) | |
438 | 438 | then throw("It is the maker's turn to pick now") | |
439 | 439 | else { | |
440 | 440 | let aC = invoke(Address(c), "getAssetRarityCallable", [aa], nil) | |
441 | 441 | if ((aC == aC)) | |
442 | 442 | then { | |
443 | 443 | let ab = { | |
444 | 444 | let l = aC | |
445 | 445 | if ($isInstanceOf(l, "Int")) | |
446 | 446 | then { | |
447 | 447 | let aD = l | |
448 | 448 | aD | |
449 | 449 | } | |
450 | 450 | else throw("Incorrect invoke result") | |
451 | 451 | } | |
452 | 452 | X(z, "maker", at.caller, aa, ab, "best", 5) | |
453 | 453 | } | |
454 | 454 | else throw("Strict value is not equal to itself.") | |
455 | 455 | } | |
456 | 456 | else throw("The best duck has already been picked") | |
457 | 457 | } | |
458 | 458 | ||
459 | 459 | ||
460 | 460 | ||
461 | 461 | @Callable(at) | |
462 | 462 | func commit (z,aE) = { | |
463 | 463 | let ax = toBase58String(at.caller.bytes) | |
464 | 464 | let aq = N(z) | |
465 | 465 | if ((6 > aq)) | |
466 | 466 | then throw("Ducks hasn't been picked yet") | |
467 | 467 | else if ((aq == 6)) | |
468 | 468 | then if ((ax != A(z))) | |
469 | 469 | then throw("It is the maker's turn to commit now") | |
470 | 470 | else [StringEntry(R(z, "maker"), aE), IntegerEntry(M(z), (aq + 1)), IntegerEntry(H(z), (height + i))] | |
471 | 471 | else if ((aq == 7)) | |
472 | 472 | then if ((ax != C(z))) | |
473 | 473 | then throw("It is the taker's turn to commit now") | |
474 | 474 | else [StringEntry(R(z, "taker"), aE), IntegerEntry(M(z), (aq + 1)), IntegerEntry(H(z), (height + i))] | |
475 | 475 | else throw("Commit is finished") | |
476 | 476 | } | |
477 | 477 | ||
478 | 478 | ||
479 | 479 | ||
480 | 480 | @Callable(at) | |
481 | 481 | func reveal (z,aF,aG) = { | |
482 | 482 | let ax = toBase58String(at.caller.bytes) | |
483 | 483 | let aq = N(z) | |
484 | 484 | if ((8 > aq)) | |
485 | 485 | then throw("Reveal is not started") | |
486 | 486 | else if (if (if (if (if (if ((aF != "worst,medium,best")) | |
487 | 487 | then true | |
488 | 488 | else (aF != "worst,best,medium")) | |
489 | 489 | then true | |
490 | 490 | else (aF != "medium,worst,best")) | |
491 | 491 | then true | |
492 | 492 | else (aF != "medium,best,worst")) | |
493 | 493 | then true | |
494 | 494 | else (aF != "best,worst,medium")) | |
495 | 495 | then true | |
496 | 496 | else (aF != "best,medium,worst")) | |
497 | 497 | then throw("Invalid duckOrder") | |
498 | 498 | else if ((aq == 8)) | |
499 | 499 | then if ((ax != A(z))) | |
500 | 500 | then throw("It is the maker's turn to reveal now") | |
501 | 501 | else if ((toBase58String(sha256(toBytes((aF + aG)))) != S(z, "maker"))) | |
502 | 502 | then throw("reveal data is not valid") | |
503 | 503 | else [StringEntry(T(z, "maker"), aF), IntegerEntry(M(z), (aq + 1)), IntegerEntry(H(z), (height + i))] | |
504 | 504 | else if ((aq == 9)) | |
505 | 505 | then if ((ax != C(z))) | |
506 | 506 | then throw("It is the taker's turn to reveal now") | |
507 | 507 | else if ((toBase58String(sha256(toBytes((aF + aG)))) != S(z, "taker"))) | |
508 | 508 | then throw("reveal data is not valid") | |
509 | 509 | else [StringEntry(T(z, "taker"), aF), IntegerEntry(M(z), (aq + 1)), IntegerEntry(H(z), (height + i))] | |
510 | 510 | else throw("Reveal is finished") | |
511 | 511 | } | |
512 | 512 | ||
513 | 513 | ||
514 | 514 | ||
515 | 515 | @Callable(at) | |
516 | 516 | func getPrize (z) = { | |
517 | 517 | let ax = toBase58String(at.caller.bytes) | |
518 | 518 | let aq = N(z) | |
519 | 519 | if ((aq != 10)) | |
520 | 520 | then throw("Game is not finished") | |
521 | 521 | else if ((ax == A(z))) | |
522 | 522 | then ar(z, at.caller, "maker", af(z)) | |
523 | 523 | else if ((ax == C(z))) | |
524 | 524 | then ar(z, at.caller, "taker", af(z)) | |
525 | 525 | else throw("Invalid caller address") | |
526 | 526 | } | |
527 | 527 | ||
528 | 528 | ||
529 | 529 | ||
530 | 530 | @Callable(at) | |
531 | 531 | func getPrizeExpired (z) = { | |
532 | 532 | let ax = toBase58String(at.caller.bytes) | |
533 | 533 | let aq = N(z) | |
534 | 534 | if ((aq == 10)) | |
535 | 535 | then throw("Game is finished, call getPrize instead") | |
536 | 536 | else if ((I(z) > height)) | |
537 | 537 | then throw("Game is not expired") | |
538 | 538 | else if ((ax == A(z))) | |
539 | 539 | then ar(z, at.caller, "maker", ap(aq)) | |
540 | 540 | else if ((ax == C(z))) | |
541 | 541 | then ar(z, at.caller, "taker", ap(aq)) | |
542 | 542 | else throw("Invalid caller address") | |
543 | 543 | } | |
544 | 544 | ||
545 | 545 | ||
546 | 546 | @Verifier(aH) | |
547 | 547 | func aI () = sigVerify(aH.bodyBytes, aH.proofs[0], aH.senderPublicKey) | |
548 | 548 |
github/deemru/w8io/169f3d6 67.27 ms ◑