tx · FCk9jqnhrbfpy4RAE5C7kahBzZGftQw7rKWw6f78ZH27 3Mt6NEJ6ZK6TFZs14tvnR5iAgemnomy2m1V: -0.01700000 Waves 2022.09.13 12:06 [2227124] smart account 3Mt6NEJ6ZK6TFZs14tvnR5iAgemnomy2m1V > SELF 0.00000000 Waves
{ "type": 13, "id": "FCk9jqnhrbfpy4RAE5C7kahBzZGftQw7rKWw6f78ZH27", "fee": 1700000, "feeAssetId": null, "timestamp": 1663059992532, "version": 2, "chainId": 84, "sender": "3Mt6NEJ6ZK6TFZs14tvnR5iAgemnomy2m1V", "senderPublicKey": "5f9EawB8nxaLg7KKhyqV2RDBMwRBG6o69D8zc9myAzrY", "proofs": [ "2Q3bNvzYfk3NWwtA44CtWCxjHke1wa6MmtkcpGKygQu5ihkriWjfQEwtZjtLLLQVFUAzUfjFBtto77QqEFXLph1c" ], "script": "base64:AAIFAAAAAAAAAB0IAhIAEgASBAoCCAESAwoBCBIECgIIARIECgIICAAAACwAAAAABXdoZWVsCQAETAAAAAIAAAAAAAAAAAUJAARMAAAAAgAAAAAAAAAAGAkABEwAAAACAAAAAAAAAAAQCQAETAAAAAIAAAAAAAAAACEJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAAUCQAETAAAAAIAAAAAAAAAAA4JAARMAAAAAgAAAAAAAAAAHwkABEwAAAACAAAAAAAAAAAJCQAETAAAAAIAAAAAAAAAABYJAARMAAAAAgAAAAAAAAAAEgkABEwAAAACAAAAAAAAAAAdCQAETAAAAAIAAAAAAAAAAAcJAARMAAAAAgAAAAAAAAAAHAkABEwAAAACAAAAAAAAAAAMCQAETAAAAAIAAAAAAAAAACMJAARMAAAAAgAAAAAAAAAAAwkABEwAAAACAAAAAAAAAAAaCQAETAAAAAIAAAAAAAAAAAAJAARMAAAAAgAAAAAAAAAAIAkABEwAAAACAAAAAAAAAAAPCQAETAAAAAIAAAAAAAAAABMJAARMAAAAAgAAAAAAAAAABAkABEwAAAACAAAAAAAAAA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AAAAiE9AAAAAgUAAAAFc3RhdGUAAAAAAAAAAAEJAAACAAAAAQIAAAAYR2FtZSBoYXMgdG8gYmUgZmluaXNoZWQuCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAEmdhbWVSU0FQdWJsaWNMYWJlbAUAAAAOcGFyYW1ldGVyVmFsdWUFAAAAA25pbAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAABJnYW1lUlNBUHVibGljTGFiZWwFAAAADnBhcmFtZXRlclZhbHVlBQAAAANuaWwJAAACAAAAAQIAAAAdR2FtZSBuZWVkcyB0byBiZSBpbml0aWFsaXplZC4JAAACAAAAAQIAAABJU2V0dGluZyBub3QgZm91bmQuIEFsbG93ZWQ6IGNoYW5nZU1heCwgY2hhbmdlTWluLCBjaGFuZ2VSU0EsIGNoYW5nZVB1YktleQAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5Dx/p9Q==", "height": 2227124, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 59pAUTAXhHGoTvkSJCWrRWBHbWcfBUyoUbn84kR1cMPG Next: GYW4ctUkrBUmdcoyoM6uiZaZBx36b6r48sjM95DTuRZF Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = | |
4 | + | let a = [5, 24, 16, 33, 1, 20, 14, 31, 9, 22, 18, 29, 7, 28, 12, 35, 3, 26, 0, 32, 15, 19, 4, 21, 2, 25, 17, 34, 6, 27, 13, 36, 11, 30, 8, 23, 10] | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = [2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35] | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = [1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30, 32, 34, 36] | |
9 | 9 | ||
10 | - | let d = | |
10 | + | let d = [1, 4, 7, 10, 13, 16, 19, 22, 25, 28, 31, 34] | |
11 | 11 | ||
12 | - | let e = | |
12 | + | let e = [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35] | |
13 | 13 | ||
14 | - | let f = | |
14 | + | let f = [3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36] | |
15 | 15 | ||
16 | - | let g = " | |
16 | + | let g = fromBase58String("<game-master-public-key>") | |
17 | 17 | ||
18 | - | let h = "G_ | |
18 | + | let h = "G_GAMESCOUNTER" | |
19 | 19 | ||
20 | - | let i = "G_ | |
20 | + | let i = "G_TOTALBETS" | |
21 | 21 | ||
22 | - | let j = "G_ | |
22 | + | let j = "G_PROCESSEDBETS" | |
23 | 23 | ||
24 | - | func k (l) = (("G_" + toString(l)) + "_RESULT") | |
24 | + | let k = "G_MINBET" | |
25 | + | ||
26 | + | let l = "G_MAXBET" | |
27 | + | ||
28 | + | let m = "G_RSAPUBLIC" | |
29 | + | ||
30 | + | let n = "G_GAMEMASTER_PUBLIC_KEY" | |
31 | + | ||
32 | + | let o = "G_TOKENID" | |
33 | + | ||
34 | + | func p () = getInteger(this, h) | |
25 | 35 | ||
26 | 36 | ||
27 | - | func | |
37 | + | func q () = getInteger(this, i) | |
28 | 38 | ||
29 | 39 | ||
30 | - | func | |
40 | + | func r () = getInteger(this, j) | |
31 | 41 | ||
32 | 42 | ||
33 | - | func | |
43 | + | func s () = getIntegerValue(this, k) | |
34 | 44 | ||
35 | 45 | ||
36 | - | func | |
46 | + | func t () = getIntegerValue(this, l) | |
37 | 47 | ||
38 | 48 | ||
39 | - | func | |
49 | + | func u () = getStringValue(this, m) | |
40 | 50 | ||
41 | 51 | ||
42 | - | func | |
52 | + | func v () = fromBase64String(u()) | |
43 | 53 | ||
44 | 54 | ||
45 | - | func u () = getInteger(this, f) | |
46 | - | ||
47 | - | ||
48 | - | func v () = getInteger(this, g) | |
49 | - | ||
50 | - | ||
51 | - | func w () = getInteger(this, h) | |
52 | - | ||
53 | - | ||
54 | - | func x () = getInteger(this, i) | |
55 | - | ||
56 | - | ||
57 | - | func y () = getInteger(this, j) | |
58 | - | ||
59 | - | ||
60 | - | func z (l) = getStringValue(this, k(l)) | |
61 | - | ||
62 | - | ||
63 | - | func A (n) = getStringValue(this, m(n)) | |
64 | - | ||
65 | - | ||
66 | - | func B (p) = getStringValue(this, o(p)) | |
67 | - | ||
68 | - | ||
69 | - | func C () = { | |
70 | - | let D = getString(this, a) | |
71 | - | if ($isInstanceOf(D, "String")) | |
55 | + | func w () = { | |
56 | + | let x = getString(this, o) | |
57 | + | if ($isInstanceOf(x, "String")) | |
72 | 58 | then { | |
73 | - | let | |
74 | - | if (( | |
59 | + | let y = x | |
60 | + | if ((y == "")) | |
75 | 61 | then unit | |
76 | - | else fromBase58String( | |
62 | + | else fromBase58String(y) | |
77 | 63 | } | |
78 | 64 | else unit | |
79 | 65 | } | |
80 | 66 | ||
81 | 67 | ||
82 | - | @Callable(F) | |
83 | - | func initGame () = [IntegerEntry(b, 0), IntegerEntry(c, 0), IntegerEntry(d, 10000000), IntegerEntry(e, 0), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(h, 0), IntegerEntry(i, 0), IntegerEntry(j, 0)] | |
68 | + | func z (A) = (("B_" + toString(A)) + "_BETDETAILS") | |
69 | + | ||
70 | + | ||
71 | + | func B (A) = (("B_" + toString(A)) + "_WINSTATE") | |
72 | + | ||
73 | + | ||
74 | + | func C (A) = (("B_" + toString(A)) + "_WINAMOUNT") | |
75 | + | ||
76 | + | ||
77 | + | func D (A) = (("B_" + toString(A)) + "_GAME") | |
78 | + | ||
79 | + | ||
80 | + | func E (A) = (("B_" + toString(A)) + "_PAYOUT") | |
81 | + | ||
82 | + | ||
83 | + | func F (A) = getStringValue(this, z(A)) | |
84 | + | ||
85 | + | ||
86 | + | func G (A) = getIntegerValue(this, D(A)) | |
87 | + | ||
88 | + | ||
89 | + | func H (I) = (("G_" + toString(I)) + "_STATE") | |
90 | + | ||
91 | + | ||
92 | + | func J (I) = (("G_" + toString(I)) + "_STARTHEIGHT") | |
93 | + | ||
94 | + | ||
95 | + | func K (I) = (("G_" + toString(I)) + "_ENDHEIGHT") | |
96 | + | ||
97 | + | ||
98 | + | func L (I) = (("G_" + toString(I)) + "_SUMSHA") | |
99 | + | ||
100 | + | ||
101 | + | func M (I) = (("G_" + toString(I)) + "_RESULT") | |
102 | + | ||
103 | + | ||
104 | + | func N (I) = (("G_" + toString(I)) + "_RANDOMHASH") | |
105 | + | ||
106 | + | ||
107 | + | func O (I) = getInteger(this, H(I)) | |
108 | + | ||
109 | + | ||
110 | + | func P (I) = getInteger(this, K(I)) | |
111 | + | ||
112 | + | ||
113 | + | func Q (I) = getString(this, L(I)) | |
114 | + | ||
115 | + | ||
116 | + | func R (I) = getIntegerValue(this, M(I)) | |
117 | + | ||
118 | + | ||
119 | + | func S (T) = (T != g) | |
120 | + | ||
121 | + | ||
122 | + | func U (V) = (V == unit) | |
123 | + | ||
124 | + | ||
125 | + | func W (X) = if ((X == 1)) | |
126 | + | then 36 | |
127 | + | else if ((X == 2)) | |
128 | + | then 18 | |
129 | + | else if ((X == 3)) | |
130 | + | then 12 | |
131 | + | else if ((X == 4)) | |
132 | + | then 9 | |
133 | + | else if ((X == 5)) | |
134 | + | then 7 | |
135 | + | else if ((X == 6)) | |
136 | + | then 6 | |
137 | + | else 0 | |
138 | + | ||
139 | + | ||
140 | + | func Y (Z,aa) = { | |
141 | + | let ab = split(Z, "-") | |
142 | + | let ac = value(parseInt(ab[1])) | |
143 | + | let ad = ab[2] | |
144 | + | if ((ad == "numbers")) | |
145 | + | then { | |
146 | + | let ae = removeByIndex(removeByIndex(removeByIndex(ab, 0), 0), 0) | |
147 | + | if (containsElement(ae, toString(aa))) | |
148 | + | then (ac * W(size(ae))) | |
149 | + | else 0 | |
150 | + | } | |
151 | + | else if ((ad == "color")) | |
152 | + | then if ((ab[3] == "red")) | |
153 | + | then if (containsElement(c, aa)) | |
154 | + | then (ac * 2) | |
155 | + | else 0 | |
156 | + | else if (containsElement(b, aa)) | |
157 | + | then (ac * 2) | |
158 | + | else 0 | |
159 | + | else if ((ad == "column")) | |
160 | + | then if ((ab[3] == "1")) | |
161 | + | then if (containsElement(d, aa)) | |
162 | + | then (ac * 3) | |
163 | + | else 0 | |
164 | + | else if ((ab[3] == "2")) | |
165 | + | then if (containsElement(e, aa)) | |
166 | + | then (ac * 3) | |
167 | + | else 0 | |
168 | + | else if ((ab[3] == "3")) | |
169 | + | then if (containsElement(f, aa)) | |
170 | + | then (ac * 3) | |
171 | + | else 0 | |
172 | + | else 0 | |
173 | + | else if ((ad == "dozen")) | |
174 | + | then if ((ab[3] == "1")) | |
175 | + | then if (if ((aa >= 1)) | |
176 | + | then (12 >= aa) | |
177 | + | else false) | |
178 | + | then (ac * 3) | |
179 | + | else 0 | |
180 | + | else if ((ab[3] == "2")) | |
181 | + | then if (if ((aa >= 13)) | |
182 | + | then (24 >= aa) | |
183 | + | else false) | |
184 | + | then (ac * 3) | |
185 | + | else 0 | |
186 | + | else if ((ab[3] == "3")) | |
187 | + | then if (if ((aa >= 25)) | |
188 | + | then (36 >= aa) | |
189 | + | else false) | |
190 | + | then (ac * 3) | |
191 | + | else 0 | |
192 | + | else 0 | |
193 | + | else if ((ad == "oddeven")) | |
194 | + | then if ((aa == 0)) | |
195 | + | then 0 | |
196 | + | else if ((ab[3] == "even")) | |
197 | + | then if (if (((aa % 2) == 0)) | |
198 | + | then (aa != 0) | |
199 | + | else false) | |
200 | + | then (ac * 2) | |
201 | + | else 0 | |
202 | + | else if (((aa % 2) == 1)) | |
203 | + | then (ac * 2) | |
204 | + | else 0 | |
205 | + | else if ((ad == "lowhigh")) | |
206 | + | then if ((aa == 0)) | |
207 | + | then 0 | |
208 | + | else if ((ab[3] == "low")) | |
209 | + | then if (if ((aa >= 1)) | |
210 | + | then (18 >= aa) | |
211 | + | else false) | |
212 | + | then (ac * 2) | |
213 | + | else 0 | |
214 | + | else if (if ((aa >= 19)) | |
215 | + | then (36 >= aa) | |
216 | + | else false) | |
217 | + | then (ac * 2) | |
218 | + | else 0 | |
219 | + | else 0 | |
220 | + | } | |
221 | + | ||
222 | + | ||
223 | + | @Callable(af) | |
224 | + | func processNextBet () = if (S(af.callerPublicKey)) | |
225 | + | then throw("processNextBet_FORBBIDEN") | |
226 | + | else { | |
227 | + | let x = q() | |
228 | + | if ($isInstanceOf(x, "Int")) | |
229 | + | then { | |
230 | + | let ag = x | |
231 | + | let ah = r() | |
232 | + | if ($isInstanceOf(ah, "Int")) | |
233 | + | then { | |
234 | + | let ai = ah | |
235 | + | let aj = (ai + 1) | |
236 | + | if ((aj > ag)) | |
237 | + | then throw("Next bet has not been placed.") | |
238 | + | else { | |
239 | + | let I = G(aj) | |
240 | + | let ak = O(I) | |
241 | + | if ($isInstanceOf(ak, "Int")) | |
242 | + | then { | |
243 | + | let al = ak | |
244 | + | if ((al == 1)) | |
245 | + | then { | |
246 | + | let aa = R(I) | |
247 | + | let am = F(aj) | |
248 | + | let an = split(am, "-")[0] | |
249 | + | let ao = value(addressFromString(an)) | |
250 | + | let ap = Y(am, aa) | |
251 | + | [ScriptTransfer(ao, ap, w()), IntegerEntry(j, (ai + 1)), IntegerEntry(E(aj), ap)] | |
252 | + | } | |
253 | + | else throw("Game has not finished.") | |
254 | + | } | |
255 | + | else throw("Game does not exist or has already ended.") | |
256 | + | } | |
257 | + | } | |
258 | + | else throw("Game has not been initialized, next bets not found") | |
259 | + | } | |
260 | + | else throw("Game has not been initialized, total bets not found") | |
261 | + | } | |
84 | 262 | ||
85 | 263 | ||
86 | 264 | ||
87 | - | @Callable(F) | |
88 | - | func startGame () = { | |
89 | - | let D = u() | |
90 | - | if ($isInstanceOf(D, "Int")) | |
91 | - | then { | |
92 | - | let G = D | |
93 | - | let H = (G + 1) | |
94 | - | [IntegerEntry(f, H)] | |
265 | + | @Callable(af) | |
266 | + | func initGame () = if (S(af.callerPublicKey)) | |
267 | + | then throw("initGame_FORBBIDEN") | |
268 | + | else { | |
269 | + | let x = p() | |
270 | + | if ($isInstanceOf(x, "Int")) | |
271 | + | then { | |
272 | + | let aq = x | |
273 | + | throw("INIT_ALREADY_DONE") | |
274 | + | } | |
275 | + | else [IntegerEntry(h, 0), IntegerEntry(i, 0), IntegerEntry(j, 0), IntegerEntry(k, 100000000), IntegerEntry(l, 2500000000), StringEntry(m, "base64:<gameRSAPublicLabel>"), StringEntry(o, "")] | |
276 | + | } | |
277 | + | ||
278 | + | ||
279 | + | ||
280 | + | @Callable(af) | |
281 | + | func startGame (ar,as) = if (S(af.callerPublicKey)) | |
282 | + | then throw("startGame_FORBBIDEN") | |
283 | + | else { | |
284 | + | let x = p() | |
285 | + | if ($isInstanceOf(x, "Int")) | |
286 | + | then { | |
287 | + | let aq = x | |
288 | + | let at = (aq + 1) | |
289 | + | if ((aq > 0)) | |
290 | + | then { | |
291 | + | let ah = O(aq) | |
292 | + | if ($isInstanceOf(ah, "Int")) | |
293 | + | then { | |
294 | + | let au = ah | |
295 | + | if ((au == 0)) | |
296 | + | then throw("Last game has not finished yet.") | |
297 | + | else [IntegerEntry(h, at), IntegerEntry(J(at), lastBlock.height), IntegerEntry(K(at), (height + as)), IntegerEntry(H(at), 0), StringEntry(L(at), toBase58String(sha256(fromBase64String(ar))))] | |
298 | + | } | |
299 | + | else throw("Game state not found.") | |
300 | + | } | |
301 | + | else [IntegerEntry(h, at), IntegerEntry(J(at), lastBlock.height), IntegerEntry(K(at), (height + as)), IntegerEntry(H(at), 0), StringEntry(L(at), toBase58String(sha256(fromBase64String(ar))))] | |
302 | + | } | |
303 | + | else throw("INIT_NEEDED") | |
304 | + | } | |
305 | + | ||
306 | + | ||
307 | + | ||
308 | + | @Callable(af) | |
309 | + | func placeBet (Z) = { | |
310 | + | let av = w() | |
311 | + | if ((af.feeAssetId != av)) | |
312 | + | then throw("Fee is not in correct assetId") | |
313 | + | else { | |
314 | + | let ab = split(Z, "-") | |
315 | + | let ad = ab[0] | |
316 | + | if (if (if (if (if (if ((ad != "numbers")) | |
317 | + | then (ad != "column") | |
318 | + | else false) | |
319 | + | then (ad != "color") | |
320 | + | else false) | |
321 | + | then (ad != "dozen") | |
322 | + | else false) | |
323 | + | then (ad != "oddeven") | |
324 | + | else false) | |
325 | + | then (ad != "lowhigh") | |
326 | + | else false) | |
327 | + | then throw("Bet type is not valid.") | |
328 | + | else { | |
329 | + | let x = p() | |
330 | + | if ($isInstanceOf(x, "Int")) | |
331 | + | then { | |
332 | + | let aq = x | |
333 | + | let ah = O(aq) | |
334 | + | if ($isInstanceOf(ah, "Int")) | |
335 | + | then { | |
336 | + | let al = ah | |
337 | + | if ((al == 1)) | |
338 | + | then throw("Game is finished and next game has not started.") | |
339 | + | else if ((size(af.payments) != 1)) | |
340 | + | then throw("Payment not attached or there is more then one payment") | |
341 | + | else { | |
342 | + | let aw = af.payments[0] | |
343 | + | let ax = aw.amount | |
344 | + | if (if (if ((value(t()) >= ax)) | |
345 | + | then (ax >= value(s())) | |
346 | + | else false) | |
347 | + | then (af.payments[0].assetId == av) | |
348 | + | else false) | |
349 | + | then { | |
350 | + | let ak = P(aq) | |
351 | + | if ($isInstanceOf(ak, "Int")) | |
352 | + | then { | |
353 | + | let ay = ak | |
354 | + | if ((ay > height)) | |
355 | + | then { | |
356 | + | let az = q() | |
357 | + | if ($isInstanceOf(az, "Int")) | |
358 | + | then { | |
359 | + | let ag = az | |
360 | + | let aA = (ag + 1) | |
361 | + | if ((av == unit)) | |
362 | + | then [IntegerEntry(i, (ag + 1)), StringEntry(z(aA), ((((toBase58String(af.caller.bytes) + "-") + toString(ax)) + "-") + Z)), IntegerEntry(D(aA), aq)] | |
363 | + | else [IntegerEntry(i, (ag + 1)), StringEntry(z(aA), ((((toBase58String(af.caller.bytes) + "-") + toString(ax)) + "-") + Z)), IntegerEntry(D(aA), aq)] | |
364 | + | } | |
365 | + | else throw("Game has not been initalized.") | |
366 | + | } | |
367 | + | else throw("Game has already exceeded betting round") | |
368 | + | } | |
369 | + | else throw("End height has not been defined.") | |
370 | + | } | |
371 | + | else throw((((((("Bet (" + toString(ax)) + ") is greater than maximum bet (") + toString(t())) + "), lower than minimum (") + toString(s())) + ") or payment is not in correct assetId.")) | |
372 | + | } | |
373 | + | } | |
374 | + | else throw("Game does not exist or has already ended.") | |
375 | + | } | |
376 | + | else throw("Game needs to be initialized.") | |
377 | + | } | |
95 | 378 | } | |
96 | - | else throw("Game has not been initialized, total games not found") | |
97 | 379 | } | |
98 | 380 | ||
99 | 381 | ||
100 | 382 | ||
101 | - | @Callable(F) | |
102 | - | func placeBet () = { | |
103 | - | let D = u() | |
104 | - | if ($isInstanceOf(D, "Int")) | |
105 | - | then { | |
106 | - | let G = D | |
107 | - | let I = v() | |
108 | - | if ($isInstanceOf(I, "Int")) | |
109 | - | then { | |
110 | - | let J = I | |
111 | - | let K = (J + 1) | |
112 | - | let L = "1,2,3" | |
113 | - | [IntegerEntry(g, K), StringEntry(m(K), ((("G" + toString(G)) + "-") + L))] | |
114 | - | } | |
115 | - | else throw("Game has not been initialized, total bets not found") | |
116 | - | } | |
117 | - | else throw("Game has not been initialized, total games not found") | |
118 | - | } | |
383 | + | @Callable(af) | |
384 | + | func endGame (aB,I) = if (S(af.callerPublicKey)) | |
385 | + | then throw("endGame_FORBBIDEN") | |
386 | + | else { | |
387 | + | let x = O(I) | |
388 | + | if ($isInstanceOf(x, "Int")) | |
389 | + | then { | |
390 | + | let al = x | |
391 | + | if ((al == 1)) | |
392 | + | then throw("Game is finished") | |
393 | + | else { | |
394 | + | let ah = P(I) | |
395 | + | if ($isInstanceOf(ah, "Int")) | |
396 | + | then { | |
397 | + | let aC = ah | |
398 | + | if ((aC > height)) | |
399 | + | then throw(("Not enough blocks have past since game has started, game ends at block " + toString(aC))) | |
400 | + | else { | |
401 | + | let ak = Q(I) | |
402 | + | if ($isInstanceOf(ak, "String")) | |
403 | + | then { | |
404 | + | let aD = ak | |
405 | + | let aE = fromBase64String(aB) | |
406 | + | let aF = rsaVerify(SHA256, fromBase58String(aD), aE, v()) | |
407 | + | let az = blockInfoByHeight(aC) | |
408 | + | if ($isInstanceOf(az, "BlockInfo")) | |
409 | + | then { | |
410 | + | let aG = az | |
411 | + | let ar = sha256((take(aE, 32) + take(aG.generationSignature, 32))) | |
412 | + | if (!(aF)) | |
413 | + | then throw("INVALID_RSA_SIGN") | |
414 | + | else { | |
415 | + | let aH = a[((toInt(ar) + value(I)) % 37)] | |
416 | + | [IntegerEntry(H(I), 1), IntegerEntry(M(I), aH), StringEntry(N(I), toBase64String(ar))] | |
417 | + | } | |
418 | + | } | |
419 | + | else throw("Last block does not exist.") | |
420 | + | } | |
421 | + | else throw("SHA does not exist") | |
422 | + | } | |
423 | + | } | |
424 | + | else throw("Cannot get game height.") | |
425 | + | } | |
426 | + | } | |
427 | + | else throw("Game does not exist or has already ended") | |
428 | + | } | |
119 | 429 | ||
120 | 430 | ||
121 | 431 | ||
122 | - | @Callable( | |
123 | - | func | |
124 | - | | |
125 | - | if ( | |
432 | + | @Callable(af) | |
433 | + | func setParameter (aI,aJ) = if (S(af.callerPublicKey)) | |
434 | + | then throw("setParameter_FORBBIDEN") | |
435 | + | else if ((aI == "changeMax")) | |
126 | 436 | then { | |
127 | - | let G = D | |
128 | - | [StringEntry(k(G), ((("G" + toString(G)) + "-") + "1,2,3"))] | |
437 | + | let aK = parseIntValue(aJ) | |
438 | + | let aL = s() | |
439 | + | if ((0 > aK)) | |
440 | + | then throw("value cannot be lower than 0") | |
441 | + | else if ((aL >= aK)) | |
442 | + | then throw((("value cannot be lower or equal than min bet (" + toString(aL)) + ")")) | |
443 | + | else [IntegerEntry(l, aK)] | |
129 | 444 | } | |
130 | - | else throw("Game has not been initialized, total games not found") | |
131 | - | } | |
445 | + | else if ((aI == "changeMin")) | |
446 | + | then { | |
447 | + | let aK = t() | |
448 | + | let aL = parseIntValue(aJ) | |
449 | + | if ((0 > aL)) | |
450 | + | then throw("value cannot be lower than 0") | |
451 | + | else if ((aL >= aK)) | |
452 | + | then throw((("value cannot be greater or equal than min bet (" + toString(aK)) + ")")) | |
453 | + | else [IntegerEntry(k, aL)] | |
454 | + | } | |
455 | + | else if ((aI == "changeRSA")) | |
456 | + | then { | |
457 | + | let x = p() | |
458 | + | if ($isInstanceOf(x, "Int")) | |
459 | + | then { | |
460 | + | let aq = x | |
461 | + | let ah = O(aq) | |
462 | + | if ($isInstanceOf(ah, "Int")) | |
463 | + | then { | |
464 | + | let al = ah | |
465 | + | if ((al != 1)) | |
466 | + | then throw("Game has to be finished.") | |
467 | + | else [StringEntry(m, aJ)] | |
468 | + | } | |
469 | + | else [StringEntry(m, aJ)] | |
470 | + | } | |
471 | + | else throw("Game needs to be initialized.") | |
472 | + | } | |
473 | + | else throw("Setting not found. Allowed: changeMax, changeMin, changeRSA, changePubKey") | |
132 | 474 | ||
133 | 475 | ||
134 | - | ||
135 | - | @Callable(F) | |
136 | - | func processNextBet () = { | |
137 | - | let D = v() | |
138 | - | if ($isInstanceOf(D, "Int")) | |
139 | - | then { | |
140 | - | let J = D | |
141 | - | let I = w() | |
142 | - | if ($isInstanceOf(I, "Int")) | |
143 | - | then { | |
144 | - | let M = I | |
145 | - | let N = (M + 1) | |
146 | - | if ((N > J)) | |
147 | - | then throw("Next bet has not been placed.") | |
148 | - | else { | |
149 | - | let O = u() | |
150 | - | if ($isInstanceOf(O, "Int")) | |
151 | - | then { | |
152 | - | let l = O | |
153 | - | let P = x() | |
154 | - | if ($isInstanceOf(P, "Int")) | |
155 | - | then { | |
156 | - | let Q = P | |
157 | - | let R = z(l) | |
158 | - | let S = A(N) | |
159 | - | if ((S == R)) | |
160 | - | then { | |
161 | - | let T = (Q + 1) | |
162 | - | [IntegerEntry(h, N), IntegerEntry(i, (Q + 1)), StringEntry(o(T), toBase58String(F.caller.bytes))] | |
163 | - | } | |
164 | - | else [IntegerEntry(h, N)] | |
165 | - | } | |
166 | - | else throw("Game has not been initialized, total winners not found") | |
167 | - | } | |
168 | - | else throw("Game has not been initialized, total games not found") | |
169 | - | } | |
170 | - | } | |
171 | - | else throw("Game has not been initialized, total processed bets not found") | |
172 | - | } | |
173 | - | else throw("Game has not been initialized, total bets not found") | |
174 | - | } | |
175 | - | ||
176 | - | ||
177 | - | ||
178 | - | @Callable(F) | |
179 | - | func calculatePrize () = { | |
180 | - | let D = x() | |
181 | - | if ($isInstanceOf(D, "Int")) | |
182 | - | then { | |
183 | - | let Q = D | |
184 | - | if ((Q == 0)) | |
185 | - | then throw("There are no winners this round.") | |
186 | - | else { | |
187 | - | let I = s() | |
188 | - | if ($isInstanceOf(I, "Int")) | |
189 | - | then { | |
190 | - | let U = I | |
191 | - | let V = s() | |
192 | - | let W = (U / Q) | |
193 | - | [IntegerEntry(e, W)] | |
194 | - | } | |
195 | - | else throw("Game has not been initialized, total games not found") | |
196 | - | } | |
197 | - | } | |
198 | - | else throw("Game has not been initialized, total winners not found") | |
199 | - | } | |
200 | - | ||
201 | - | ||
202 | - | ||
203 | - | @Callable(F) | |
204 | - | func processNextWinner () = { | |
205 | - | let D = x() | |
206 | - | if ($isInstanceOf(D, "Int")) | |
207 | - | then { | |
208 | - | let X = D | |
209 | - | if ((X == 0)) | |
210 | - | then throw("There are no winners this round.") | |
211 | - | else { | |
212 | - | let I = y() | |
213 | - | if ($isInstanceOf(I, "Int")) | |
214 | - | then { | |
215 | - | let Y = I | |
216 | - | let Z = (Y + 1) | |
217 | - | if ((Z > X)) | |
218 | - | then throw("No more winners to be processed.") | |
219 | - | else { | |
220 | - | let O = t() | |
221 | - | if ($isInstanceOf(O, "Int")) | |
222 | - | then { | |
223 | - | let W = O | |
224 | - | let aa = B(Z) | |
225 | - | let ab = value(addressFromString(aa)) | |
226 | - | let ac = t() | |
227 | - | [ScriptTransfer(ab, W, C())] | |
228 | - | } | |
229 | - | else throw("Game has not been initialized, prize share amount not found") | |
230 | - | } | |
231 | - | } | |
232 | - | else throw("Game has not been initialized, total processed winners not found") | |
233 | - | } | |
234 | - | } | |
235 | - | else throw("Game has not been initialized, total winners not found") | |
236 | - | } | |
237 | - | ||
476 | + | @Verifier(aM) | |
477 | + | func aN () = sigVerify(aM.bodyBytes, aM.proofs[0], aM.senderPublicKey) | |
238 | 478 |
github/deemru/w8io/169f3d6 55.15 ms ◑