tx · BBE5YBpt4k3iJa85swbJejghwLnZacRPeYgMzhzEJ6cc 3My9cBgDYLyeT1YF8ip9XxqwWvJMjj8WdeM: -0.01400000 Waves 2019.06.25 10:47 [557342] smart account 3My9cBgDYLyeT1YF8ip9XxqwWvJMjj8WdeM > SELF 0.00000000 Waves
{ "type": 13, "id": "BBE5YBpt4k3iJa85swbJejghwLnZacRPeYgMzhzEJ6cc", "fee": 1400000, "feeAssetId": null, "timestamp": 1561448850377, "version": 1, "sender": "3My9cBgDYLyeT1YF8ip9XxqwWvJMjj8WdeM", "senderPublicKey": "bqA3HaxNcnpEYdb6HPwTmHwT37CvHkYMre23mRonqjs", "proofs": [ "1xc3fyVG6ipJyT9PoeaLzSffRcTFpzzdkbMHuUh9dMY2idfsCdVqbEcQKaDWHaiUTR43WPb4YkyE8LHybuYVVdg" ], "script": "base64:AAIDAAAAAAAAAAAAAAA9AAAAAAljb3B5cmlnaHQCAAAAHkNvcHlyaWdodCAoYykgMjAxOSBNYURhTWEgTGFicwAAAAAHY3JlYXRvcgIAAAAjQGRhaWRhbG9zIC0gdHdpdHRlci5jb20vdHdfZGFpZGFsb3MAAAAAB2xpY2Vuc2UCAAAAC01JVCBMaWNlbnNlAAAAAAtsaWNlbnNlTGluawIAAAA/dGxkcmxlZ2FsLmNvbS9saWNlbnNlL21pdC1saWNlbnNlICwgb3BlbnNvdXJjZS5vcmcvbGljZW5zZXMvTUlUAAAAAA9zZXJ2ZXJQdWJsaWNLZXkBAAAAIJzlzXH93hFOogU95a4LIg5OvnudTvfalYSfarpp3Z09AAAAAA93YWxsZXRQdWJsaWNLZXkBAAAAII59m1WbITiydrSsh5p7DTg06jWuC97IwDX0JxhY8UwtAAAAAANmZWUAAAAAAAAHoSAAAAAACE9ORVdBVkVTAAAAAAAF9eEAAAAAAA5wZXJpb2RHYW1lUGxheQAAAAAAAAAAAgAAAAAFd2hlZWwJAARMAAAAAgIAAAABNQkABEwAAAACAgAAAAIyNAkABEwAAAACAgAAAAIxN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557342, "spentComplexity": 0 } View: original | compacted Prev: ATZKpKWh8TrcroCD62v57GHoo9BXvvqWnHyQFSiDx5Zb Next: FRKTuuhc2kBiHxtqFrQUXhPxDgFnPDx7PyDbw4hsWChi Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let copyright = "Copyright (c) 2019 MaDaMa Labs" | |
5 | 5 | ||
6 | 6 | let creator = "@daidalos - twitter.com/tw_daidalos" | |
7 | 7 | ||
8 | 8 | let license = "MIT License" | |
9 | 9 | ||
10 | 10 | let licenseLink = "tldrlegal.com/license/mit-license , opensource.org/licenses/MIT" | |
11 | 11 | ||
12 | 12 | let serverPublicKey = base58'BZTqgdB7p2YguZGnmQ8hJheuVF6zErGrr9S9ekEDxgzY' | |
13 | 13 | ||
14 | 14 | let walletPublicKey = base58'AbDyruBD8QqodWvMWRxAx8FhwRuf4cMFZu6SA1G4YwWU' | |
15 | 15 | ||
16 | 16 | let fee = 500000 | |
17 | 17 | ||
18 | 18 | let ONEWAVES = 100000000 | |
19 | 19 | ||
20 | 20 | let periodGamePlay = 2 | |
21 | 21 | ||
22 | 22 | let wheel = ["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"] | |
23 | 23 | ||
24 | 24 | let RSAPUBLIC = fromBase64String("base64:MIIBJTANBgkqhkiG9w0BAQEFAAOCARIAMIIBDQKCAQEAtObfiwWyBFpSNJZmkxlwHy5vT+Jb+Vv6f7LlhKE9wNcC0Qp0rdyMwxLpdwfuLsKbRdBEbDhpb3dz1JPJiatlhKVKUsoQ25UQu9hv2oXyyEzJx86CGQq5HOr3YGGSdJR0LKq1PhbYrNmuS6jPDYobxssXyc/txsipSGwzMgVHcqt9OSiGQySZ8/9mtv42EefzFE95wuuy42KJKG7h0DTMfFSLTpqhS/Mbp8EKPuVb1huWsMKVL9QtOPYEXa9QPZa2WBPX5Y9BI1McRQ/Wf8WwqQtARpBfSVpkKPS1Amht2fEOxSSYRqG6IUsfK8xO9hxt+3+/Op/+IFJTGcGF8BrzWQIGCPw9/u27") | |
25 | 25 | ||
26 | 26 | let gamesLabelCounter = "X_GAMESCOUNTER" | |
27 | 27 | ||
28 | 28 | let gamesLabelBetsCounter = "X_BETSCOUNTER" | |
29 | 29 | ||
30 | 30 | let gamesLabelBetsFeeMoved = "X_BETSFEEMOVED" | |
31 | 31 | ||
32 | 32 | let gamesLabelTotalAmountWin = "X_TOTALAMOUNTWIN" | |
33 | 33 | ||
34 | 34 | let gamesLabelTotalAmountBet = "X_TOTALAMOUNTBET" | |
35 | 35 | ||
36 | 36 | let gamesLabelTotalAddressBet = "X_TOTALADDRESSBET" | |
37 | 37 | ||
38 | 38 | func gamesGetCounter () = getInteger(this, gamesLabelCounter) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func gamesGetBetsCounter () = getInteger(this, gamesLabelBetsCounter) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func gamesGetBetsFeeMoved () = getInteger(this, gamesLabelBetsFeeMoved) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func gamesGetTotalAmountWin () = getInteger(this, gamesLabelTotalAmountWin) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func gamesGetTotalAmountBet () = getInteger(this, gamesLabelTotalAmountBet) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func gamesGetTotalAddressBet () = getInteger(this, gamesLabelTotalAddressBet) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func numberLabelCount (number) = ("N_" + number) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func numberGetCount (number) = getInteger(this, numberLabelCount(number)) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func gameLabelStatus (GAMESCOUNTER) = (("G_" + toString(GAMESCOUNTER)) + "_STATUS") | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func gameLabelNumber (GAMESCOUNTER) = (("G_" + toString(GAMESCOUNTER)) + "_NUMBER") | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func gameLabelMax (GAMESCOUNTER) = (("G_" + toString(GAMESCOUNTER)) + "_MAX") | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func gameLabelBets (GAMESCOUNTER) = (("G_" + toString(GAMESCOUNTER)) + "_BETS") | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func gameLabelPassed (GAMESCOUNTER) = (("G_" + toString(GAMESCOUNTER)) + "_PASSED") | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func gameLabelHeight (GAMESCOUNTER) = (("G_" + toString(GAMESCOUNTER)) + "_HEIGHT") | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func gameLabelSumSha (GAMESCOUNTER) = (("G_" + toString(GAMESCOUNTER)) + "_SUMSHA") | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func gameLabelCmbMax (GAMESCOUNTER,CMB) = ((("G_" + toString(GAMESCOUNTER)) + "_C") + CMB) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func gameGetStatus (GAMESCOUNTER) = getString(this, gameLabelStatus(GAMESCOUNTER)) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func gameGetNumber (GAMESCOUNTER) = getInteger(this, gameLabelNumber(GAMESCOUNTER)) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func gameGetMax (GAMESCOUNTER) = getInteger(this, gameLabelMax(GAMESCOUNTER)) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func gameGetBets (GAMESCOUNTER) = getInteger(this, gameLabelBets(GAMESCOUNTER)) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func gameGetPassed (GAMESCOUNTER) = getInteger(this, gameLabelPassed(GAMESCOUNTER)) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func gameGetHeight (GAMESCOUNTER) = getInteger(this, gameLabelHeight(GAMESCOUNTER)) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func gameGetSumSha (GAMESCOUNTER) = getString(this, gameLabelSumSha(GAMESCOUNTER)) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func gameGetCmbMax (GAMESCOUNTER,CMB) = getInteger(this, gameLabelCmbMax(GAMESCOUNTER, CMB)) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func betLabelStatus (idBet) = (("B_" + idBet) + "_STATUS") | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func betLabelInfo (idBet) = (("B_" + idBet) + "_INFO") | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func betGetStatus (idBet) = getString(this, betLabelStatus(idBet)) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func betGetInfo (idBet) = getString(this, betLabelInfo(idBet)) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func addressLabelWon (addr) = (("A_" + addr) + "_WON") | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func addressLabelAmount (addr) = (("A_" + addr) + "_AMOUNT") | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func addressLabelBets (addr) = (("A_" + addr) + "_BETS") | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func addressLabelHit (addr) = (("A_" + addr) + "_HIT") | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func addressGetWon (addr) = getInteger(this, addressLabelWon(addr)) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func addressGetAmount (addr) = getInteger(this, addressLabelAmount(addr)) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func addressGetBets (addr) = getInteger(this, addressLabelBets(addr)) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func addressGetHit (addr) = getInteger(this, addressLabelHit(addr)) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func pointerAddressLabel (id) = ("P_" + id) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func checkPermission (callerPublicKey) = (callerPublicKey != serverPublicKey) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func gameNewMax (win) = match gamesGetCounter() { | |
153 | 153 | case GAMESCOUNTER: Int => | |
154 | 154 | match gameGetMax(GAMESCOUNTER) { | |
155 | 155 | case CURRMAX: Int => | |
156 | 156 | let temp = (CURRMAX - win) | |
157 | 157 | if ((0 > temp)) | |
158 | 158 | then throw("BET_IS_BLOCK") | |
159 | 159 | else temp | |
160 | 160 | case _ => | |
161 | 161 | throw("GAME_NOT_FOUND") | |
162 | 162 | } | |
163 | 163 | case _ => | |
164 | 164 | throw("INIT_NEEDED") | |
165 | 165 | } | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func gameNewSumSha (txId) = match gamesGetCounter() { | |
169 | 169 | case GAMESCOUNTER: Int => | |
170 | 170 | match gameGetSumSha(GAMESCOUNTER) { | |
171 | 171 | case SUMSHA: String => | |
172 | 172 | toBase58String(sha256((fromBase58String(SUMSHA) + txId))) | |
173 | 173 | case _ => | |
174 | 174 | throw("GAME_NOT_FOUND") | |
175 | 175 | } | |
176 | 176 | case _ => | |
177 | 177 | throw("INIT_NEEDED") | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func checkIdBet (idBet) = match betGetInfo(idBet) { | |
182 | 182 | case temp: String => | |
183 | 183 | throw("PLAYER_ALREADY_DEFINED") | |
184 | 184 | case _ => | |
185 | 185 | 1 | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func checkBet (bet) = if (if (if (if (if (if ((bet == 10000000)) | |
190 | 190 | then true | |
191 | 191 | else (bet == 20000000)) | |
192 | 192 | then true | |
193 | 193 | else (bet == 50000000)) | |
194 | 194 | then true | |
195 | 195 | else (bet == 100000000)) | |
196 | 196 | then true | |
197 | 197 | else (bet == 200000000)) | |
198 | 198 | then true | |
199 | 199 | else (bet == 500000000)) | |
200 | 200 | then 1 | |
201 | 201 | else throw("BET_NOT_FOUND") | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func getCmb (cmb) = match getInteger(this, ("C" + cmb)) { | |
205 | 205 | case temp: Int => | |
206 | 206 | temp | |
207 | 207 | case _ => | |
208 | 208 | throw("CMB_NOT_FOUND") | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func allowCmbMax (gamecounter,cmb,win) = match gameGetCmbMax(gamecounter, cmb) { | |
213 | 213 | case temp: Int => | |
214 | 214 | if (((temp + win) > 20000000000)) | |
215 | 215 | then throw("CMB_MAX_WIN") | |
216 | 216 | else 1 | |
217 | 217 | case _ => | |
218 | 218 | 1 | |
219 | 219 | } | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | @Callable(i) | |
223 | 223 | func bet (id,cmb) = match gamesGetCounter() { | |
224 | 224 | case GAMESCOUNTER: Int => | |
225 | 225 | if ((id != GAMESCOUNTER)) | |
226 | 226 | then throw("GAME_ID_WRONG") | |
227 | 227 | else match gameGetStatus(GAMESCOUNTER) { | |
228 | 228 | case CURRSTATUS: String => | |
229 | 229 | if ((CURRSTATUS != "PLAY")) | |
230 | 230 | then throw("CURR_STATUS_IS_NOT_PLAY") | |
231 | 231 | else match gameGetHeight(GAMESCOUNTER) { | |
232 | 232 | case GAMEHEIGHT: Int => | |
233 | 233 | if (if ((GAMEHEIGHT != 0)) | |
234 | 234 | then (height > (GAMEHEIGHT + periodGamePlay)) | |
235 | 235 | else false) | |
236 | 236 | then throw("GAME_IS_END") | |
237 | 237 | else match gameGetBets(GAMESCOUNTER) { | |
238 | 238 | case BETS: Int => | |
239 | 239 | let idBet = ((toString(GAMESCOUNTER) + "_") + toString((BETS + 1))) | |
240 | 240 | let payment = value(i.payment) | |
241 | 241 | match payment.assetId { | |
242 | 242 | case assetId: ByteVector => | |
243 | 243 | throw("ONLY_WAVES_ACCEPTED") | |
244 | 244 | case _ => | |
245 | 245 | let amount = (payment.amount - fee) | |
246 | 246 | let win = (((checkIdBet(idBet) * checkBet(amount)) * getCmb(cmb)) * amount) | |
247 | 247 | let winmax = (win * allowCmbMax(GAMESCOUNTER, cmb, win)) | |
248 | 248 | let address = toBase58String(i.caller.bytes) | |
249 | 249 | let info = ((((((address + "||") + cmb) + "||") + toString(amount)) + "||") + toString(winmax)) | |
250 | 250 | let ADDRESSAMOUNT = match addressGetAmount(address) { | |
251 | 251 | case temp: Int => | |
252 | 252 | temp | |
253 | 253 | case _ => | |
254 | 254 | 0 | |
255 | 255 | } | |
256 | 256 | let ADDRESSBETS = match addressGetBets(address) { | |
257 | 257 | case temp: Int => | |
258 | 258 | temp | |
259 | 259 | case _ => | |
260 | 260 | 0 | |
261 | 261 | } | |
262 | 262 | let CMBMAX = match gameGetCmbMax(GAMESCOUNTER, cmb) { | |
263 | 263 | case temp: Int => | |
264 | 264 | temp | |
265 | 265 | case _ => | |
266 | 266 | 0 | |
267 | 267 | } | |
268 | 268 | let data = [DataEntry(betLabelInfo(idBet), info), DataEntry(betLabelStatus(idBet), "ACCEPT"), DataEntry(gameLabelBets(GAMESCOUNTER), (BETS + 1)), DataEntry(gameLabelHeight(GAMESCOUNTER), if ((GAMEHEIGHT == 0)) | |
269 | 269 | then height | |
270 | 270 | else GAMEHEIGHT), DataEntry(gameLabelMax(GAMESCOUNTER), gameNewMax(winmax)), DataEntry(gameLabelSumSha(GAMESCOUNTER), gameNewSumSha(i.transactionId)), DataEntry(gameLabelCmbMax(GAMESCOUNTER, cmb), (CMBMAX + winmax)), DataEntry(addressLabelAmount(address), (ADDRESSAMOUNT + amount)), DataEntry(addressLabelBets(address), (ADDRESSBETS + 1)), DataEntry(gamesLabelBetsCounter, (value(gamesGetBetsCounter()) + 1)), DataEntry(gamesLabelTotalAmountBet, (value(gamesGetTotalAmountBet()) + amount))] | |
271 | 271 | let TOTALADDRESSBET = (value(gamesGetTotalAddressBet()) + 1) | |
272 | 272 | let dataFinal = if ((ADDRESSAMOUNT == 0)) | |
273 | 273 | then [DataEntry(pointerAddressLabel(toString(TOTALADDRESSBET)), address), DataEntry(gamesLabelTotalAddressBet, TOTALADDRESSBET)] :: data | |
274 | 274 | else data | |
275 | 275 | WriteSet(dataFinal) | |
276 | 276 | } | |
277 | 277 | case _ => | |
278 | 278 | throw("GAME_NOT_FOUND") | |
279 | 279 | } | |
280 | 280 | case _ => | |
281 | 281 | throw("GAME_NOT_FOUND") | |
282 | 282 | } | |
283 | 283 | case _ => | |
284 | 284 | throw("GAME_NOT_FOUND") | |
285 | 285 | } | |
286 | 286 | case _ => | |
287 | 287 | throw("INIT_NEEDED") | |
288 | 288 | } | |
289 | 289 | ||
290 | 290 | ||
291 | 291 | ||
292 | 292 | @Callable(i) | |
293 | 293 | func getWin (BET) = if (checkPermission(i.callerPublicKey)) | |
294 | 294 | then throw("getWin_FORBBIDEN") | |
295 | 295 | else match gamesGetCounter() { | |
296 | 296 | case GAMESCOUNTER: Int => | |
297 | 297 | match gameGetStatus(GAMESCOUNTER) { | |
298 | 298 | case CURRSTATUS: String => | |
299 | 299 | if ((CURRSTATUS != "SHOW")) | |
300 | 300 | then throw("CURR_STATUS_IS_NOT_SHOW") | |
301 | 301 | else match gameGetNumber(GAMESCOUNTER) { | |
302 | 302 | case NUMBER: Int => | |
303 | 303 | let idBet = ((toString(GAMESCOUNTER) + "_") + toString(BET)) | |
304 | 304 | let numberString = (("_" + toString(NUMBER)) + "_") | |
305 | 305 | let red = "|_1_3_5_7_9_12_14_16_18_19_21_23_25_27_30_32_34_36_|" | |
306 | 306 | let black = "|_2_4_6_8_10_11_13_15_17_20_22_24_26_28_29_31_33_35_|" | |
307 | 307 | let indexRed = match indexOf(red, numberString) { | |
308 | 308 | case temp: Int => | |
309 | 309 | (temp > 0) | |
310 | 310 | case _ => | |
311 | 311 | false | |
312 | 312 | } | |
313 | 313 | let indexBlack = match indexOf(black, numberString) { | |
314 | 314 | case temp: Int => | |
315 | 315 | (temp > 0) | |
316 | 316 | case _ => | |
317 | 317 | false | |
318 | 318 | } | |
319 | 319 | let cmbRB = ("_" + (if (indexRed) | |
320 | 320 | then "RED" | |
321 | 321 | else if (indexBlack) | |
322 | 322 | then "BLACK" | |
323 | 323 | else "NDF")) | |
324 | 324 | let cmbEO = ("_" + (if (if ((0 >= NUMBER)) | |
325 | 325 | then true | |
326 | 326 | else (NUMBER > 36)) | |
327 | 327 | then "NDF" | |
328 | 328 | else if (((NUMBER % 2) == 0)) | |
329 | 329 | then "EVEN" | |
330 | 330 | else "ODD")) | |
331 | 331 | let cmbLH = ("_" + (if (if ((NUMBER >= 1)) | |
332 | 332 | then (18 >= NUMBER) | |
333 | 333 | else false) | |
334 | 334 | then "LOW" | |
335 | 335 | else if (if ((NUMBER >= 19)) | |
336 | 336 | then (36 >= NUMBER) | |
337 | 337 | else false) | |
338 | 338 | then "HIGH" | |
339 | 339 | else "NDF")) | |
340 | 340 | let cmbDZ = ("_" + (if (if ((NUMBER >= 1)) | |
341 | 341 | then (12 >= NUMBER) | |
342 | 342 | else false) | |
343 | 343 | then "DOZER1" | |
344 | 344 | else if (if ((NUMBER >= 13)) | |
345 | 345 | then (24 >= NUMBER) | |
346 | 346 | else false) | |
347 | 347 | then "DOZER2" | |
348 | 348 | else if (if ((NUMBER >= 25)) | |
349 | 349 | then (36 >= NUMBER) | |
350 | 350 | else false) | |
351 | 351 | then "DOZER3" | |
352 | 352 | else "NDF")) | |
353 | 353 | let cmbCL = ("_" + (if (if ((0 >= NUMBER)) | |
354 | 354 | then true | |
355 | 355 | else (NUMBER > 36)) | |
356 | 356 | then "NDF" | |
357 | 357 | else if (((NUMBER % 3) == 1)) | |
358 | 358 | then "COLUMN1" | |
359 | 359 | else if (((NUMBER % 3) == 2)) | |
360 | 360 | then "COLUMN2" | |
361 | 361 | else "COLUMN3")) | |
362 | 362 | let STATUS = match betGetStatus(idBet) { | |
363 | 363 | case temp: String => | |
364 | 364 | temp | |
365 | 365 | case _ => | |
366 | 366 | throw("BET_STATUS_NOT_FOUND") | |
367 | 367 | } | |
368 | 368 | let INFO = match betGetInfo(idBet) { | |
369 | 369 | case temp: String => | |
370 | 370 | temp | |
371 | 371 | case _ => | |
372 | 372 | throw("BET_INFO_NOT_FOUND") | |
373 | 373 | } | |
374 | 374 | let INFOS = split(INFO, "||") | |
375 | 375 | let ADDRESSSTRING = INFOS[0] | |
376 | 376 | let ADDRESS = value(addressFromString(ADDRESSSTRING)) | |
377 | 377 | let CMB = INFOS[1] | |
378 | 378 | let AMOUNT = value(parseInt(INFOS[2])) | |
379 | 379 | let WIN = value(parseInt(INFOS[3])) | |
380 | 380 | let ADDRESSWON = match addressGetWon(ADDRESSSTRING) { | |
381 | 381 | case temp: Int => | |
382 | 382 | temp | |
383 | 383 | case _ => | |
384 | 384 | 0 | |
385 | 385 | } | |
386 | 386 | let ADDRESSHIT = match addressGetHit(ADDRESSSTRING) { | |
387 | 387 | case temp: Int => | |
388 | 388 | temp | |
389 | 389 | case _ => | |
390 | 390 | 0 | |
391 | 391 | } | |
392 | 392 | let DATAPASSED = DataEntry(gameLabelPassed(GAMESCOUNTER), (value(gameGetPassed(GAMESCOUNTER)) + 1)) | |
393 | 393 | if (if (if (if (if ((STATUS == "ACCEPT")) | |
394 | 394 | then (CMB != "") | |
395 | 395 | else false) | |
396 | 396 | then (WIN > 0) | |
397 | 397 | else false) | |
398 | 398 | then (AMOUNT > 0) | |
399 | 399 | else false) | |
400 | 400 | then isDefined(ADDRESS) | |
401 | 401 | else false) | |
402 | 402 | then { | |
403 | 403 | let cmbIN = match indexOf((("|" + CMB) + "|"), numberString) { | |
404 | 404 | case temp: Int => | |
405 | 405 | (temp > 0) | |
406 | 406 | case _ => | |
407 | 407 | false | |
408 | 408 | } | |
409 | 409 | if (if (if (if (if (if (cmbIN) | |
410 | 410 | then true | |
411 | 411 | else (CMB == cmbRB)) | |
412 | 412 | then true | |
413 | 413 | else (CMB == cmbEO)) | |
414 | 414 | then true | |
415 | 415 | else (CMB == cmbLH)) | |
416 | 416 | then true | |
417 | 417 | else (CMB == cmbDZ)) | |
418 | 418 | then true | |
419 | 419 | else (CMB == cmbCL)) | |
420 | 420 | then ScriptResult(WriteSet([DATAPASSED, DataEntry(betLabelStatus(idBet), "WON"), DataEntry(addressLabelWon(ADDRESSSTRING), ((ADDRESSWON + WIN) + AMOUNT)), DataEntry(addressLabelHit(ADDRESSSTRING), (ADDRESSHIT + 1)), DataEntry(gamesLabelTotalAmountWin, ((value(gamesGetTotalAmountWin()) + WIN) + AMOUNT))]), TransferSet([ScriptTransfer(ADDRESS, (WIN + AMOUNT), unit)])) | |
421 | 421 | else WriteSet([DATAPASSED, DataEntry(betLabelStatus(idBet), "LOST")]) | |
422 | 422 | } | |
423 | 423 | else throw("GET_WIN_ALREADY_CALLED") | |
424 | 424 | case _ => | |
425 | 425 | throw("GAME_NOT_FOUND") | |
426 | 426 | } | |
427 | 427 | case _ => | |
428 | 428 | throw("GAME_NOT_FOUND") | |
429 | 429 | } | |
430 | 430 | case _ => | |
431 | 431 | throw("INIT_NEEDED") | |
432 | 432 | } | |
433 | 433 | ||
434 | 434 | ||
435 | 435 | ||
436 | 436 | @Callable(i) | |
437 | 437 | func addCmb (cmb,val) = if (checkPermission(i.callerPublicKey)) | |
438 | 438 | then throw("addCmb_FORBBIDEN") | |
439 | 439 | else match gamesGetCounter() { | |
440 | 440 | case GAMESCOUNTER: Int => | |
441 | 441 | if ((GAMESCOUNTER != 0)) | |
442 | 442 | then throw("INIT_ALREADY_DONE") | |
443 | 443 | else if (if (if (if (if (if (if ((val == 1)) | |
444 | 444 | then true | |
445 | 445 | else (val == 2)) | |
446 | 446 | then true | |
447 | 447 | else (val == 5)) | |
448 | 448 | then true | |
449 | 449 | else (val == 8)) | |
450 | 450 | then true | |
451 | 451 | else (val == 11)) | |
452 | 452 | then true | |
453 | 453 | else (val == 17)) | |
454 | 454 | then true | |
455 | 455 | else (val == 35)) | |
456 | 456 | then WriteSet([DataEntry(("C" + cmb), val)]) | |
457 | 457 | else throw("AMOUNT_NOT_FOUND") | |
458 | 458 | case _ => | |
459 | 459 | throw("INIT_NEEDED") | |
460 | 460 | } | |
461 | 461 | ||
462 | 462 | ||
463 | 463 | ||
464 | 464 | @Callable(i) | |
465 | 465 | func initGame () = if (checkPermission(i.callerPublicKey)) | |
466 | 466 | then throw("initGame_FORBBIDEN") | |
467 | 467 | else match gamesGetCounter() { | |
468 | 468 | case GAMESCOUNTER: Int => | |
469 | 469 | throw("INIT_ALREADY_DONE") | |
470 | 470 | case _ => | |
471 | 471 | WriteSet([DataEntry(gamesLabelCounter, 0), DataEntry(gamesLabelBetsCounter, 0), DataEntry(gamesLabelBetsFeeMoved, 0), DataEntry(gamesLabelTotalAmountWin, 0), DataEntry(gamesLabelTotalAmountBet, 0), DataEntry(gamesLabelTotalAddressBet, 0)]) | |
472 | 472 | } | |
473 | 473 | ||
474 | 474 | ||
475 | 475 | ||
476 | 476 | @Callable(i) | |
477 | 477 | func newGame () = if (checkPermission(i.callerPublicKey)) | |
478 | 478 | then throw("newGame_FORBBIDEN") | |
479 | 479 | else match gamesGetCounter() { | |
480 | 480 | case GAMESCOUNTER: Int => | |
481 | 481 | let newGameCounter = (GAMESCOUNTER + 1) | |
482 | 482 | let BETSCOUNTER = value(gamesGetBetsCounter()) | |
483 | 483 | let BETSMOVED = value(gamesGetBetsFeeMoved()) | |
484 | 484 | let gameMax = (wavesBalance(this) - ((BETSCOUNTER - BETSMOVED) * fee)) | |
485 | 485 | let halfGameMax = if (((gameMax % 2) == 1)) | |
486 | 486 | then ((gameMax - 1) / 2) | |
487 | 487 | else (gameMax / 2) | |
488 | 488 | let sendData = WriteSet([DataEntry(gamesLabelCounter, newGameCounter), DataEntry(gameLabelStatus(newGameCounter), "PLAY"), DataEntry(gameLabelMax(newGameCounter), halfGameMax), DataEntry(gameLabelBets(newGameCounter), 0), DataEntry(gameLabelPassed(newGameCounter), 0), DataEntry(gameLabelHeight(newGameCounter), 0), DataEntry(gameLabelSumSha(newGameCounter), toBase58String(sha256(i.transactionId)))]) | |
489 | 489 | if ((ONEWAVES > halfGameMax)) | |
490 | 490 | then throw("BALANCE_IS_LOW") | |
491 | 491 | else if ((GAMESCOUNTER == 0)) | |
492 | 492 | then sendData | |
493 | 493 | else { | |
494 | 494 | let CURRSTATUS = value(gameGetStatus(GAMESCOUNTER)) | |
495 | 495 | if ((CURRSTATUS != "SHOW")) | |
496 | 496 | then throw("CURR_STATUS_IS_NOT_SHOW") | |
497 | 497 | else { | |
498 | 498 | let BETS = value(gameGetBets(GAMESCOUNTER)) | |
499 | 499 | let PASSED = value(gameGetPassed(GAMESCOUNTER)) | |
500 | 500 | if ((BETS != PASSED)) | |
501 | 501 | then throw("WAIT_ALL_PASSED") | |
502 | 502 | else sendData | |
503 | 503 | } | |
504 | 504 | } | |
505 | 505 | case _ => | |
506 | 506 | throw("INIT_NEEDED") | |
507 | 507 | } | |
508 | 508 | ||
509 | 509 | ||
510 | 510 | ||
511 | 511 | @Callable(i) | |
512 | 512 | func showGame (rsaSign) = if (checkPermission(i.callerPublicKey)) | |
513 | 513 | then throw("showGame_FORBBIDEN") | |
514 | 514 | else match gamesGetCounter() { | |
515 | 515 | case GAMESCOUNTER: Int => | |
516 | 516 | match gameGetSumSha(GAMESCOUNTER) { | |
517 | 517 | case SUMSHA: String => | |
518 | 518 | let rsaSigValid = rsaVerify(SHA256, fromBase58String(SUMSHA), rsaSign, RSAPUBLIC) | |
519 | 519 | if (!(rsaSigValid)) | |
520 | 520 | then throw("INVALID_RSA_SIGN") | |
521 | 521 | else { | |
522 | 522 | let index = (toInt(sha256(rsaSign)) % 37) | |
523 | 523 | let numberString = wheel[index] | |
524 | 524 | let number = value(parseInt(numberString)) | |
525 | 525 | let numberCount = match numberGetCount(numberString) { | |
526 | 526 | case temp: Int => | |
527 | 527 | temp | |
528 | 528 | case _ => | |
529 | 529 | 0 | |
530 | 530 | } | |
531 | 531 | let CURRSTATUS = value(gameGetStatus(GAMESCOUNTER)) | |
532 | 532 | if ((CURRSTATUS != "PLAY")) | |
533 | 533 | then throw("CURR_STATUS_IS_NOT_PLAY") | |
534 | 534 | else { | |
535 | 535 | let GAMEHEIGHT = value(gameGetHeight(GAMESCOUNTER)) | |
536 | 536 | if (if ((GAMEHEIGHT == 0)) | |
537 | 537 | then true | |
538 | 538 | else ((GAMEHEIGHT + periodGamePlay) >= height)) | |
539 | 539 | then throw("GAME_IS_NOT_END") | |
540 | 540 | else WriteSet([DataEntry(gameLabelStatus(GAMESCOUNTER), "SHOW"), DataEntry(gameLabelNumber(GAMESCOUNTER), number), DataEntry(numberLabelCount(numberString), (numberCount + 1))]) | |
541 | 541 | } | |
542 | 542 | } | |
543 | 543 | case _ => | |
544 | 544 | throw("GAME_NOT_FOUND") | |
545 | 545 | } | |
546 | 546 | case _ => | |
547 | 547 | throw("INIT_NEEDED") | |
548 | 548 | } | |
549 | 549 | ||
550 | 550 | ||
551 | 551 | ||
552 | 552 | @Callable(i) | |
553 | 553 | func amountToWallet (amount) = if (checkPermission(i.callerPublicKey)) | |
554 | 554 | then throw("amountToWallet_FORBBIDEN") | |
555 | 555 | else match gamesGetCounter() { | |
556 | 556 | case GAMESCOUNTER: Int => | |
557 | 557 | if ((GAMESCOUNTER == 0)) | |
558 | 558 | then TransferSet([ScriptTransfer(addressFromPublicKey(serverPublicKey), amount, unit)]) | |
559 | 559 | else { | |
560 | 560 | let CURRSTATUS = value(gameGetStatus(GAMESCOUNTER)) | |
561 | 561 | if ((CURRSTATUS != "SHOW")) | |
562 | 562 | then throw("CURR_STATUS_IS_NOT_SHOW") | |
563 | 563 | else { | |
564 | 564 | let BETS = value(gameGetBets(GAMESCOUNTER)) | |
565 | 565 | let PASSED = value(gameGetPassed(GAMESCOUNTER)) | |
566 | 566 | if ((BETS != PASSED)) | |
567 | 567 | then throw("WAIT_ALL_PASSED") | |
568 | 568 | else TransferSet([ScriptTransfer(addressFromPublicKey(walletPublicKey), amount, unit)]) | |
569 | 569 | } | |
570 | 570 | } | |
571 | 571 | case _ => | |
572 | 572 | throw("INIT_NEEDED") | |
573 | 573 | } | |
574 | 574 | ||
575 | 575 | ||
576 | 576 | ||
577 | 577 | @Callable(i) | |
578 | 578 | func betsFeeToServer () = if (checkPermission(i.callerPublicKey)) | |
579 | 579 | then throw("betsFeeToServer_FORBBIDEN") | |
580 | 580 | else match gamesGetCounter() { | |
581 | 581 | case GAMESCOUNTER: Int => | |
582 | 582 | if ((GAMESCOUNTER == 0)) | |
583 | 583 | then throw("NO_BETS_FEE") | |
584 | 584 | else { | |
585 | 585 | let CURRSTATUS = value(gameGetStatus(GAMESCOUNTER)) | |
586 | 586 | if ((CURRSTATUS != "SHOW")) | |
587 | 587 | then throw("CURR_STATUS_IS_NOT_SHOW") | |
588 | 588 | else { | |
589 | 589 | let BETS = value(gameGetBets(GAMESCOUNTER)) | |
590 | 590 | let PASSED = value(gameGetPassed(GAMESCOUNTER)) | |
591 | 591 | if ((BETS != PASSED)) | |
592 | 592 | then throw("WAIT_ALL_PASSED") | |
593 | 593 | else { | |
594 | 594 | let BETSCOUNTER = value(gamesGetBetsCounter()) | |
595 | 595 | let BETSMOVED = value(gamesGetBetsFeeMoved()) | |
596 | 596 | ScriptResult(WriteSet([DataEntry(gamesLabelBetsFeeMoved, BETSCOUNTER)]), TransferSet([ScriptTransfer(addressFromPublicKey(serverPublicKey), ((BETSCOUNTER - BETSMOVED) * fee), unit)])) | |
597 | 597 | } | |
598 | 598 | } | |
599 | 599 | } | |
600 | 600 | case _ => | |
601 | 601 | throw("INIT_NEEDED") | |
602 | 602 | } | |
603 | 603 | ||
604 | 604 | ||
605 | 605 | @Verifier(tx) | |
606 | 606 | func verify () = if ((addressFromPublicKey(tx.senderPublicKey) == tx.sender)) | |
607 | 607 | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
608 | 608 | else false | |
609 | 609 |
github/deemru/w8io/169f3d6 89.89 ms ◑