tx · CJygPW8yc9ysWhFTBsaCWnB8qhAdYx13yZVQTwo2fCgf 3MzkgzQJkWqyk6KB8xzy6KYydcC2kjFvadk: -0.01400000 Waves 2022.02.02 17:42 [1906106] smart account 3MzkgzQJkWqyk6KB8xzy6KYydcC2kjFvadk > SELF 0.00000000 Waves
{ "type": 13, "id": "CJygPW8yc9ysWhFTBsaCWnB8qhAdYx13yZVQTwo2fCgf", "fee": 1400000, "feeAssetId": null, "timestamp": 1643812977987, "version": 2, "chainId": 84, "sender": "3MzkgzQJkWqyk6KB8xzy6KYydcC2kjFvadk", "senderPublicKey": "D11qkqHmaoJ4tLBaUbGEouPNJtqZHE4drxNan4B6vPg8", "proofs": [ "3oE4DymCoH8wEqdAX4nhT5zhEcfr4FNneyM5Xjef5ULtBpJpN1KZkLipLFxF2Ymk5rJvXDespGQxRvLt6axNeDRx" ], "script": "base64:AAIFAAAAAAAAAEQIAhIAEgASBwoFAQEBAQgSCgoIAQEBAQEBAQQSAwoBARIKCggBAQEBAQEBCBIECgIBCBIDCgEIEgMKAQgSBAoCCAgSAAAAAFUAAAAADmZhcm1pbmdBZGRyZXNzAQAAABoBVPI2OcArysfSHWdY6vW8njYvqXogIGoz0wAAAAAVcmFyaXR5UHJvdmlkZXJBZGRyZXNzAQAAABoBVPqvXAIOK77VhJOb48rzK/MJjwrn6vR1pAAAAAAKYmV0QXNzZXRJZAEAAAAgkJ3QE4VGK0Dk/9PluCIdvVWCTuvM4GFKRaRd95QRhFEAAAAADnRpY2tldHNBZGRyZXNzAQAAABoBVKAOMFKzrNSxblMUh4oVbiEq5OKCgGofWAAAAAAUZmVlQWdncmVnYXRvckFkZHJlc3MBAAAAGgFUVZwN5DqClIz1rUIDWpACV8amln6tN3NEAAAAAAxhZG1pbkFkZHJlc3MBAAAAGgFUVZwN5DqClIz1rUIDWpACV8amln6tN3NEAAAAAAVTTE9UUwAAAAAAAAAACgAAAAAHV0FJVElORwAAAAAAAAAACAAAAAAMc3RlcER1cmF0aW9uA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CQEAAAACIT0AAAACCQACWAAAAAEJAAH3AAAAAQkAAZsAAAABCQABLAAAAAIFAAAABW9yZGVyBQAAAARzYWx0CQEAAAATZ2V0VGFrZXJPcmRlckNvbW1pdAAAAAEFAAAABmdhbWVJZAkAAAIAAAABAgAAABtSZXZlYWwgZG9lc24ndCBtYXRjaCBjb21taXQJAAROAAAAAgkBAAAADWdldEdhbWVSZXN1bHQAAAADBQAAAAZnYW1lSWQFAAAABW9yZGVyBwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAALZ2V0T3JkZXJLZXkAAAACBQAAAAZnYW1lSWQFAAAACnBsYXllclJvbGUFAAAABW9yZGVyCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQEAAAAKZ2V0U3RlcEtleQAAAAEFAAAABmdhbWVJZAkAAGQAAAACBQAAAARzdGVwAAAAAAAAAAABBQAAAANuaWwAAAABaQEAAAAPZ2V0UHJpemVFeHBpcmVkAAAAAAQAAAANY2FsbGVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAZnYW1lSWQJAQAAABRnZXRQbGF5ZXJDdXJyZW50R2FtZQAAAAEFAAAADWNhbGxlckFkZHJlc3MDCQAAAAAAAAIFAAAABmdhbWVJZAAAAAAAAAAAAAkAAAIAAAABAgAAAB1Zb3UgZG9uJ3QgaGF2ZSBhbiBhY3RpdmUgZ2FtZQkBAAAADWdldEdhbWVSZXN1bHQAAAADBQAAAAZnYW1lSWQCAAAAAAYAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleRq/FXk=", "height": 1906106, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9vxYsfz3nfxDs6jaiQAuqJDjLQw9vuda65z94Aysu1xZ Next: FJXfwFW9xYLGvKg9VpeWbATBEa66MFre37Mv4V6VidUK Diff:
Old | New | Differences | |
---|---|---|---|
333 | 333 | @Callable(i) | |
334 | 334 | func startTournament () = if ((i.caller.bytes != adminAddress)) | |
335 | 335 | then throw("Admin only") | |
336 | - | else [IntegerEntry(getTournamentStartHeightKey(), height), IntegerEntry(getTournamentFinishHeightKey(), (height + tournamentDuration))] | |
336 | + | else if ((getTournamentStartHeight() > 0)) | |
337 | + | then throw("Aready started") | |
338 | + | else [IntegerEntry(getTournamentStartHeightKey(), height), IntegerEntry(getTournamentFinishHeightKey(), (height + tournamentDuration))] | |
337 | 339 | ||
338 | 340 | ||
339 | 341 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let farmingAddress = base58'3NBznG19rEYUAcnukTRTtwJHBVKQLbobVdC' | |
5 | 5 | ||
6 | 6 | let rarityProviderAddress = base58'3NCman4dCzk1HWWU4DPTr5rsbhvuUCwwUZh' | |
7 | 7 | ||
8 | 8 | let betAssetId = base58'AjXHBGsVDeXETQPk3qH4CPbZdfXPyNo5XoBx7jVbtwWG' | |
9 | 9 | ||
10 | 10 | let ticketsAddress = base58'3N4WNtTySg6yVzp58h2dwrLtpP353yVoUco' | |
11 | 11 | ||
12 | 12 | let feeAggregatorAddress = base58'3MwikA4opnqZMGVriWzH8Gq2CJXuaVBdboH' | |
13 | 13 | ||
14 | 14 | let adminAddress = base58'3MwikA4opnqZMGVriWzH8Gq2CJXuaVBdboH' | |
15 | 15 | ||
16 | 16 | let SLOTS = 10 | |
17 | 17 | ||
18 | 18 | let WAITING = 8 | |
19 | 19 | ||
20 | 20 | let stepDuration = 5 | |
21 | 21 | ||
22 | 22 | let feePercent = 15 | |
23 | 23 | ||
24 | 24 | let tournamentDuration = 20 | |
25 | 25 | ||
26 | 26 | let warmUpDuration = 5 | |
27 | 27 | ||
28 | 28 | let clutchDuration = 5 | |
29 | 29 | ||
30 | 30 | let warmUpBet = 5000000 | |
31 | 31 | ||
32 | 32 | let mainBet = 20000000 | |
33 | 33 | ||
34 | 34 | let clutchBet = 50000000 | |
35 | 35 | ||
36 | 36 | func tryGetInteger (key) = match getInteger(this, key) { | |
37 | 37 | case b: Int => | |
38 | 38 | b | |
39 | 39 | case _ => | |
40 | 40 | 0 | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func tryGetString (key) = match getString(this, key) { | |
45 | 45 | case a: String => | |
46 | 46 | a | |
47 | 47 | case _ => | |
48 | 48 | "" | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func tryGetBoolean (key) = match getBoolean(this, key) { | |
53 | 53 | case b: Boolean => | |
54 | 54 | b | |
55 | 55 | case _ => | |
56 | 56 | false | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func getTournamentStartHeightKey () = "tournamentStartHeight" | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func getTournamentStartHeight () = tryGetInteger(getTournamentStartHeightKey()) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func getTournamentFinishHeightKey () = "tournamentFinishHeight" | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func getTournamentFinishHeight () = tryGetInteger(getTournamentFinishHeightKey()) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func getNextGameId () = { | |
73 | 73 | let nextId = tryGetInteger("nextGameId") | |
74 | 74 | if ((nextId == 0)) | |
75 | 75 | then 1 | |
76 | 76 | else nextId | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func getPlayerCurrentGameKey (playerAddress) = (playerAddress + "_currentGame") | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func getPlayerCurrentGame (playerAddress) = tryGetInteger(getPlayerCurrentGameKey(playerAddress)) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func getSlotKey (slot) = ("slot" + toString(slot)) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func getSlot (slot) = tryGetInteger(getSlotKey(slot)) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func getPlayerRoleKey (gameId,playerAddress) = ((("game" + toString(gameId)) + "_") + playerAddress) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func getPlayerRole (gameId,playerAddress) = tryGetString(getPlayerRoleKey(gameId, playerAddress)) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func getMakerKey (gameId) = (("game" + toString(gameId)) + "_maker") | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func getMaker (gameId) = tryGetString(getMakerKey(gameId)) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func getTakerKey (gameId) = (("game" + toString(gameId)) + "_taker") | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func getTaker (gameId) = tryGetString(getTakerKey(gameId)) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func getTakerSkipReplaceKey (gameId) = (("game" + toString(gameId)) + "_taker_skipReplace") | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func getTakerSkipReplace (gameId) = tryGetBoolean(getTakerSkipReplaceKey(gameId)) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func getBetKey (gameId) = (("game" + toString(gameId)) + "_bet") | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func getBet (gameId) = tryGetInteger(getBetKey(gameId)) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func getWaitingExpirationHeightKey (gameId) = (("game" + toString(gameId)) + "_waitingExpirationHeight") | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func getWaitingExpirationHeight (gameId) = tryGetInteger(getWaitingExpirationHeightKey(gameId)) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func getExpirationHeightKey (gameId) = (("game" + toString(gameId)) + "_expirationHeight") | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func getExpirationHeight (gameId) = tryGetInteger(getExpirationHeightKey(gameId)) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func getRangesKey (gameId) = (("game" + toString(gameId)) + "_ranges") | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func getRanges (gameId) = tryGetString(getRangesKey(gameId)) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func getMakerRandomsCommitKey (gameId) = (("game" + toString(gameId)) + "_maker_randomsCommit") | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func getMakerRandomsCommit (gameId) = tryGetString(getMakerRandomsCommitKey(gameId)) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func getRandomsKey (gameId,playerRole) = (((("game" + toString(gameId)) + "_") + playerRole) + "_randoms") | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func getRandoms (gameId,playerRole) = tryGetString(getRandomsKey(gameId, playerRole)) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func getStepKey (gameId) = (("game" + toString(gameId)) + "_step") | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func getStep (gameId) = tryGetInteger(getStepKey(gameId)) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func getRaritiesKey (gameId,playerRole) = (((("game" + toString(gameId)) + "_") + playerRole) + "_rarities") | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func getRarities (gameId,playerRole) = tryGetString(getRaritiesKey(gameId, playerRole)) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func getReplacedPositionKey (gameId,playerRole) = (((("game" + toString(gameId)) + "_") + playerRole) + "_replacedPosition") | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func getReplacedPosition (gameId,playerRole) = tryGetInteger(getReplacedPositionKey(gameId, playerRole)) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func getDuckIdKey (gameId,playerRole) = (((("game" + toString(gameId)) + "_") + playerRole) + "_duckId") | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func getDuckId (gameId,playerRole) = tryGetString(getDuckIdKey(gameId, playerRole)) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func getTakerOrderCommitKey (gameId) = (("game" + toString(gameId)) + "_taker_orderCommit") | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func getTakerOrderCommit (gameId) = tryGetString(getTakerOrderCommitKey(gameId)) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func getOrderKey (gameId,playerRole) = (((("game" + toString(gameId)) + "_") + playerRole) + "_order") | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func getOrder (gameId,playerRole) = tryGetString(getOrderKey(gameId, playerRole)) | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func getPlayerResultKey (gameId,playerAddress) = (((("game" + toString(gameId)) + "_") + playerAddress) + "_result") | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func getPlayerResult (gameId,playerAddress) = tryGetString(getPlayerResultKey(gameId, playerAddress)) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func getPlayerPrizeKey (gameId,playerAddress) = (((("game" + toString(gameId)) + "_") + playerAddress) + "_prize") | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func getPlayerPrize (gameId,playerAddress) = tryGetInteger(getPlayerPrizeKey(gameId, playerAddress)) | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func getPlayerWinsKey (playerAddress) = (playerAddress + "_wins") | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func getPlayerWins (playerAddress) = tryGetInteger(getPlayerWinsKey(playerAddress)) | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | func getPlayerLosesKey (playerAddress) = (playerAddress + "_loses") | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func getPlayerLoses (playerAddress) = tryGetInteger(getPlayerLosesKey(playerAddress)) | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func getPlayerDrawsKey (playerAddress) = (playerAddress + "_draws") | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func getPlayerDraws (playerAddress) = tryGetInteger(getPlayerDrawsKey(playerAddress)) | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func getPlayerPnLKey (playerAddress) = (playerAddress + "_PnL") | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func getPlayerPnL (playerAddress) = tryGetInteger(getPlayerPnLKey(playerAddress)) | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func getGamesPlayedKey () = "gamesPlayed" | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | func getGamesPlayed () = tryGetInteger(getGamesPlayedKey()) | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func getTotalFeeKey () = "totalFee" | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | func getTotalFee () = tryGetInteger(getTotalFeeKey()) | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func getFarmingPower (address,assetId) = match getInteger(Address(farmingAddress), (((("address_" + address) + "_asset_") + assetId) + "_farmingPower")) { | |
237 | 237 | case fp: Int => | |
238 | 238 | fp | |
239 | 239 | case _ => | |
240 | 240 | 0 | |
241 | 241 | } | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | func checkDuckOwner (ownerAddress,assetId) = if ((assetBalance(ownerAddress, assetId) > 0)) | |
245 | 245 | then true | |
246 | 246 | else (getFarmingPower(toBase58String(ownerAddress.bytes), toBase58String(assetId)) > 0) | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | let RANGES = [[2, 3, 4, 5, 6, 7, 8, 9], [11, 12, 13, 14, 15, 16, 17, 18, 19, 20], [21, 22, 23, 24, 25, 26, 27, 28, 30], [31, 33, 35, 37, 40], [44, 50, 57, 70, 100]] | |
250 | 250 | ||
251 | 251 | func getRandomRarity (random,range) = { | |
252 | 252 | let randomIdx = (random % size(RANGES[(range - 1)])) | |
253 | 253 | RANGES[(range - 1)][randomIdx] | |
254 | 254 | } | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | func hasTicket (address) = match getBoolean(Address(ticketsAddress), address) { | |
258 | 258 | case b: Boolean => | |
259 | 259 | b | |
260 | 260 | case _ => | |
261 | 261 | false | |
262 | 262 | } | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func getBetAmount () = if (((getTournamentStartHeight() + warmUpDuration) > height)) | |
266 | 266 | then warmUpBet | |
267 | 267 | else if (((getTournamentFinishHeight() - clutchDuration) > height)) | |
268 | 268 | then mainBet | |
269 | 269 | else clutchBet | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | func getScore (a,b) = if ((a > b)) | |
273 | 273 | then 1 | |
274 | 274 | else if ((b > a)) | |
275 | 275 | then -1 | |
276 | 276 | else 0 | |
277 | 277 | ||
278 | 278 | ||
279 | 279 | func getWinner (gameId,takerOrderStr,expired) = if (expired) | |
280 | 280 | then { | |
281 | 281 | let step = getStep(gameId) | |
282 | 282 | let expirationHeight = getExpirationHeight(gameId) | |
283 | 283 | if ((step == 0)) | |
284 | 284 | then throw("Game is not started") | |
285 | 285 | else if ((expirationHeight > height)) | |
286 | 286 | then throw("Game is not expired") | |
287 | 287 | else if (if ((step == 1)) | |
288 | 288 | then true | |
289 | 289 | else (step == 4)) | |
290 | 290 | then "taker" | |
291 | 291 | else "maker" | |
292 | 292 | } | |
293 | 293 | else { | |
294 | 294 | let mo = split(getOrder(gameId, "maker"), "|") | |
295 | 295 | let makerOrder = [parseIntValue(mo[0]), parseIntValue(mo[1]), parseIntValue(mo[2])] | |
296 | 296 | let to = split(takerOrderStr, "|") | |
297 | 297 | let takerOrder = [parseIntValue(to[0]), parseIntValue(to[1]), parseIntValue(to[2])] | |
298 | 298 | let mr = split(getRarities(gameId, "maker"), "|") | |
299 | 299 | let makerRarities = [parseIntValue(mr[0]), parseIntValue(mr[1]), parseIntValue(mr[2])] | |
300 | 300 | let tr = split(getRarities(gameId, "taker"), "|") | |
301 | 301 | let takerRarities = [parseIntValue(tr[0]), parseIntValue(tr[1]), parseIntValue(tr[2])] | |
302 | 302 | let makerScore = ((getScore(makerRarities[(makerOrder[0] - 1)], takerRarities[(takerOrder[0] - 1)]) + getScore(makerRarities[(makerOrder[1] - 1)], takerRarities[(takerOrder[1] - 1)])) + getScore(makerRarities[(makerOrder[2] - 1)], takerRarities[(takerOrder[2] - 1)])) | |
303 | 303 | if ((makerScore > 0)) | |
304 | 304 | then "maker" | |
305 | 305 | else if ((0 > makerScore)) | |
306 | 306 | then "taker" | |
307 | 307 | else "draw" | |
308 | 308 | } | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | func getGameResult (gameId,takerOrder,expired) = { | |
312 | 312 | let bet = getBet(gameId) | |
313 | 313 | let makerAddress = getMaker(gameId) | |
314 | 314 | let takerAddress = getTaker(gameId) | |
315 | 315 | let winner = getWinner(gameId, takerOrder, expired) | |
316 | 316 | let winnerAddress = if ((winner == "maker")) | |
317 | 317 | then makerAddress | |
318 | 318 | else if ((winner == "taker")) | |
319 | 319 | then takerAddress | |
320 | 320 | else "" | |
321 | 321 | let loserAddress = if ((winner == "taker")) | |
322 | 322 | then makerAddress | |
323 | 323 | else if ((winner == "maker")) | |
324 | 324 | then takerAddress | |
325 | 325 | else "" | |
326 | 326 | let fee = fraction(bet, feePercent, 100) | |
327 | 327 | if ((winnerAddress != "")) | |
328 | 328 | then [IntegerEntry(getPlayerCurrentGameKey(winnerAddress), 0), IntegerEntry(getPlayerCurrentGameKey(loserAddress), 0), IntegerEntry(getPlayerWinsKey(winnerAddress), (getPlayerWins(winnerAddress) + 1)), IntegerEntry(getPlayerLosesKey(loserAddress), (getPlayerLoses(loserAddress) + 1)), StringEntry(getPlayerResultKey(gameId, winnerAddress), "win"), StringEntry(getPlayerResultKey(gameId, loserAddress), "lose"), IntegerEntry(getPlayerPrizeKey(gameId, winnerAddress), (bet - fee)), IntegerEntry(getPlayerPrizeKey(gameId, loserAddress), -(bet)), IntegerEntry(getPlayerPnLKey(winnerAddress), ((getPlayerPnL(winnerAddress) + bet) - fee)), IntegerEntry(getPlayerPnLKey(loserAddress), (getPlayerPnL(loserAddress) - bet)), IntegerEntry(getTotalFeeKey(), (getTotalFee() + fee)), ScriptTransfer(Address(fromBase58String(winnerAddress)), ((bet * 2) - fee), betAssetId), ScriptTransfer(Address(feeAggregatorAddress), fee, betAssetId)] | |
329 | 329 | else [IntegerEntry(getPlayerCurrentGameKey(makerAddress), 0), IntegerEntry(getPlayerCurrentGameKey(takerAddress), 0), IntegerEntry(getPlayerDrawsKey(makerAddress), (getPlayerDraws(makerAddress) + 1)), IntegerEntry(getPlayerDrawsKey(takerAddress), (getPlayerDraws(takerAddress) + 1)), StringEntry(getPlayerResultKey(gameId, makerAddress), "draw"), StringEntry(getPlayerResultKey(gameId, takerAddress), "draw"), IntegerEntry(getPlayerPrizeKey(gameId, makerAddress), 0), IntegerEntry(getPlayerPrizeKey(gameId, takerAddress), 0), ScriptTransfer(Address(fromBase58String(makerAddress)), bet, betAssetId), ScriptTransfer(Address(fromBase58String(takerAddress)), bet, betAssetId)] | |
330 | 330 | } | |
331 | 331 | ||
332 | 332 | ||
333 | 333 | @Callable(i) | |
334 | 334 | func startTournament () = if ((i.caller.bytes != adminAddress)) | |
335 | 335 | then throw("Admin only") | |
336 | - | else [IntegerEntry(getTournamentStartHeightKey(), height), IntegerEntry(getTournamentFinishHeightKey(), (height + tournamentDuration))] | |
336 | + | else if ((getTournamentStartHeight() > 0)) | |
337 | + | then throw("Aready started") | |
338 | + | else [IntegerEntry(getTournamentStartHeightKey(), height), IntegerEntry(getTournamentFinishHeightKey(), (height + tournamentDuration))] | |
337 | 339 | ||
338 | 340 | ||
339 | 341 | ||
340 | 342 | @Callable(i) | |
341 | 343 | func getBetAmountCallable () = $Tuple2(nil, getBetAmount()) | |
342 | 344 | ||
343 | 345 | ||
344 | 346 | ||
345 | 347 | @Callable(i) | |
346 | 348 | func makeGame (slot,worstRange,mediumRange,bestRange,randomsCommit) = { | |
347 | 349 | let callerAddress = toBase58String(i.caller.bytes) | |
348 | 350 | let slotGameId = getSlot(slot) | |
349 | 351 | let payment = value(i.payments[0]) | |
350 | 352 | let bet = payment.amount | |
351 | 353 | let gameId = getNextGameId() | |
352 | 354 | if (!(hasTicket(callerAddress))) | |
353 | 355 | then throw("You don't have a ticket") | |
354 | 356 | else if ((getTournamentStartHeight() == 0)) | |
355 | 357 | then throw("Tournament is not started") | |
356 | 358 | else if ((height > getTournamentFinishHeight())) | |
357 | 359 | then throw("Tournament is finished") | |
358 | 360 | else if ((getPlayerCurrentGame(callerAddress) != 0)) | |
359 | 361 | then throw("You already have an active game") | |
360 | 362 | else if (if ((0 > slot)) | |
361 | 363 | then true | |
362 | 364 | else (slot >= SLOTS)) | |
363 | 365 | then throw("Invalid slot") | |
364 | 366 | else if ((slotGameId != 0)) | |
365 | 367 | then throw("This slot is busy") | |
366 | 368 | else if ((payment.assetId != betAssetId)) | |
367 | 369 | then throw(("You can attach only tokens with the following asset id - " + toBase58String(betAssetId))) | |
368 | 370 | else if ((bet != getBetAmount())) | |
369 | 371 | then throw("Wrong bet amount") | |
370 | 372 | else if (if ((1 > worstRange)) | |
371 | 373 | then true | |
372 | 374 | else (worstRange > 5)) | |
373 | 375 | then throw("Invalid range for the worst duck") | |
374 | 376 | else if (if ((1 > mediumRange)) | |
375 | 377 | then true | |
376 | 378 | else (mediumRange > 5)) | |
377 | 379 | then throw("Invalid range for the medium duck") | |
378 | 380 | else if (if ((1 > bestRange)) | |
379 | 381 | then true | |
380 | 382 | else (bestRange > 5)) | |
381 | 383 | then throw("Invalid range for the best duck") | |
382 | 384 | else if ((worstRange > mediumRange)) | |
383 | 385 | then throw("The medium range can't be less than the worst one") | |
384 | 386 | else if ((mediumRange > bestRange)) | |
385 | 387 | then throw("The best range can't be worse than the medium one") | |
386 | 388 | else [IntegerEntry(getPlayerCurrentGameKey(callerAddress), gameId), StringEntry(getMakerKey(gameId), callerAddress), StringEntry(getPlayerRoleKey(gameId, callerAddress), "maker"), IntegerEntry(getBetKey(gameId), bet), StringEntry(getRangesKey(gameId), ((((toString(worstRange) + "|") + toString(mediumRange)) + "|") + toString(bestRange))), StringEntry(getMakerRandomsCommitKey(gameId), randomsCommit), IntegerEntry(getWaitingExpirationHeightKey(gameId), (height + WAITING)), IntegerEntry(getSlotKey(slot), gameId), IntegerEntry("nextGameId", (gameId + 1))] | |
387 | 389 | } | |
388 | 390 | ||
389 | 391 | ||
390 | 392 | ||
391 | 393 | @Callable(i) | |
392 | 394 | func takeGame (slot,random1,random2,random3,random4,random5,random6,skipReplace) = { | |
393 | 395 | let callerAddress = toBase58String(i.caller.bytes) | |
394 | 396 | let gameId = getSlot(slot) | |
395 | 397 | let payment = value(i.payments[0]) | |
396 | 398 | let randoms = ((((((((((toString(random1) + "|") + toString(random2)) + "|") + toString(random3)) + "|") + toString(random4)) + "|") + toString(random5)) + "|") + toString(random6)) | |
397 | 399 | if (!(hasTicket(callerAddress))) | |
398 | 400 | then throw("You don't have a ticket") | |
399 | 401 | else if ((getPlayerCurrentGame(callerAddress) != 0)) | |
400 | 402 | then throw("You already have an active game") | |
401 | 403 | else if (if ((0 > slot)) | |
402 | 404 | then true | |
403 | 405 | else (slot >= SLOTS)) | |
404 | 406 | then throw("Invalid slot") | |
405 | 407 | else if ((getSlot(slot) == 0)) | |
406 | 408 | then throw("This slot is empty") | |
407 | 409 | else if ((payment.assetId != betAssetId)) | |
408 | 410 | then throw(("You can attach only tokens with the following asset id - " + toBase58String(betAssetId))) | |
409 | 411 | else if ((payment.amount != getBet(gameId))) | |
410 | 412 | then throw("Wrong bet amount") | |
411 | 413 | else if ((height >= getWaitingExpirationHeight(gameId))) | |
412 | 414 | then throw("This game is expired") | |
413 | 415 | else if (if ((0 > random1)) | |
414 | 416 | then true | |
415 | 417 | else (random1 > 1000000000000)) | |
416 | 418 | then throw("Invalid random1") | |
417 | 419 | else if (if ((0 > random2)) | |
418 | 420 | then true | |
419 | 421 | else (random2 > 1000000000000)) | |
420 | 422 | then throw("Invalid random2") | |
421 | 423 | else if (if ((0 > random3)) | |
422 | 424 | then true | |
423 | 425 | else (random3 > 1000000000000)) | |
424 | 426 | then throw("Invalid random3") | |
425 | 427 | else if (if ((0 > random4)) | |
426 | 428 | then true | |
427 | 429 | else (random4 > 1000000000000)) | |
428 | 430 | then throw("Invalid random4") | |
429 | 431 | else if (if ((0 > random5)) | |
430 | 432 | then true | |
431 | 433 | else (random5 > 1000000000000)) | |
432 | 434 | then throw("Invalid random5") | |
433 | 435 | else if (if ((0 > random6)) | |
434 | 436 | then true | |
435 | 437 | else (random6 > 1000000000000)) | |
436 | 438 | then throw("Invalid random6") | |
437 | 439 | else [IntegerEntry(getPlayerCurrentGameKey(callerAddress), gameId), StringEntry(getTakerKey(gameId), callerAddress), StringEntry(getPlayerRoleKey(gameId, callerAddress), "taker"), StringEntry(getRandomsKey(gameId, "taker"), randoms), BooleanEntry(getTakerSkipReplaceKey(gameId), skipReplace), IntegerEntry(getStepKey(gameId), 1), IntegerEntry(getExpirationHeightKey(gameId), (height + stepDuration)), IntegerEntry(getSlotKey(slot), 0), IntegerEntry("gamesPlayed", (getGamesPlayed() + 1))] | |
438 | 440 | } | |
439 | 441 | ||
440 | 442 | ||
441 | 443 | ||
442 | 444 | @Callable(i) | |
443 | 445 | func kickGame (slot) = { | |
444 | 446 | let callerAddress = toBase58String(i.caller.bytes) | |
445 | 447 | let gameId = getSlot(slot) | |
446 | 448 | let maker = getMaker(gameId) | |
447 | 449 | if (if ((0 > slot)) | |
448 | 450 | then true | |
449 | 451 | else (slot >= SLOTS)) | |
450 | 452 | then throw("Invalid slot") | |
451 | 453 | else if ((gameId == 0)) | |
452 | 454 | then throw("Slot is empty") | |
453 | 455 | else if (if ((callerAddress != maker)) | |
454 | 456 | then (getWaitingExpirationHeight(gameId) > height) | |
455 | 457 | else false) | |
456 | 458 | then throw("Waiting is not finished yet") | |
457 | 459 | else [IntegerEntry(getPlayerCurrentGameKey(maker), 0), IntegerEntry(getSlotKey(slot), 0), ScriptTransfer(Address(fromBase58String(maker)), getBet(gameId), betAssetId)] | |
458 | 460 | } | |
459 | 461 | ||
460 | 462 | ||
461 | 463 | ||
462 | 464 | @Callable(i) | |
463 | 465 | func replaceMaker (random1,random2,random3,random4,random5,random6,replacePosition,duckId) = { | |
464 | 466 | let callerAddress = toBase58String(i.caller.bytes) | |
465 | 467 | let gameId = getPlayerCurrentGame(callerAddress) | |
466 | 468 | let playerRole = getPlayerRole(gameId, callerAddress) | |
467 | 469 | let step = getStep(gameId) | |
468 | 470 | let rangesRaw = split(getRanges(gameId), "|") | |
469 | 471 | let ranges = [parseIntValue(rangesRaw[0]), parseIntValue(rangesRaw[1]), parseIntValue(rangesRaw[2])] | |
470 | 472 | let makerRandomsCommit = getMakerRandomsCommit(gameId) | |
471 | 473 | let makerRandomsStr = ((((((((((toString(random1) + "|") + toString(random2)) + "|") + toString(random3)) + "|") + toString(random4)) + "|") + toString(random5)) + "|") + toString(random6)) | |
472 | 474 | let takerRandoms = split(getRandoms(gameId, "taker"), "|") | |
473 | 475 | let replaceRarity = if (if (if ((replacePosition == 1)) | |
474 | 476 | then true | |
475 | 477 | else (replacePosition == 2)) | |
476 | 478 | then true | |
477 | 479 | else (replacePosition == 3)) | |
478 | 480 | then { | |
479 | 481 | let invokeRes = invoke(Address(rarityProviderAddress), "getAssetRarity", [duckId], nil) | |
480 | 482 | if ((invokeRes == invokeRes)) | |
481 | 483 | then { | |
482 | 484 | let rarity = match invokeRes { | |
483 | 485 | case r: Int => | |
484 | 486 | r | |
485 | 487 | case _ => | |
486 | 488 | throw("Incorrect invoke result") | |
487 | 489 | } | |
488 | 490 | let replaceRange = ranges[(replacePosition - 1)] | |
489 | 491 | if (!(checkDuckOwner(i.caller, fromBase58String(duckId)))) | |
490 | 492 | then throw((("Asset " + duckId) + " doesn't belong to you")) | |
491 | 493 | else if (if ((5 > replaceRange)) | |
492 | 494 | then if ((rarity > (replaceRange * 10))) | |
493 | 495 | then true | |
494 | 496 | else (((replaceRange - 1) * 10) >= rarity) | |
495 | 497 | else false) | |
496 | 498 | then throw("Duck doesn't fit rarity range") | |
497 | 499 | else if (if ((replaceRange == 5)) | |
498 | 500 | then (40 >= rarity) | |
499 | 501 | else false) | |
500 | 502 | then throw("Duck doesn't fit rarity replaceRange") | |
501 | 503 | else rarity | |
502 | 504 | } | |
503 | 505 | else throw("Strict value is not equal to itself.") | |
504 | 506 | } | |
505 | 507 | else 0 | |
506 | 508 | let worstRarityMaker = if ((replacePosition == 1)) | |
507 | 509 | then replaceRarity | |
508 | 510 | else getRandomRarity((random1 + parseIntValue(takerRandoms[0])), ranges[0]) | |
509 | 511 | let mediumRarityMaker = if ((replacePosition == 2)) | |
510 | 512 | then replaceRarity | |
511 | 513 | else getRandomRarity((random2 + parseIntValue(takerRandoms[1])), ranges[1]) | |
512 | 514 | let bestRarityMaker = if ((replacePosition == 3)) | |
513 | 515 | then replaceRarity | |
514 | 516 | else getRandomRarity((random3 + parseIntValue(takerRandoms[2])), ranges[2]) | |
515 | 517 | let worstRarityTaker = getRandomRarity((random4 + parseIntValue(takerRandoms[3])), ranges[0]) | |
516 | 518 | let mediumRarityTaker = getRandomRarity((random5 + parseIntValue(takerRandoms[4])), ranges[1]) | |
517 | 519 | let bestRarityTaker = getRandomRarity((random6 + parseIntValue(takerRandoms[5])), ranges[2]) | |
518 | 520 | let nextStep = if (getTakerSkipReplace(gameId)) | |
519 | 521 | then (step + 2) | |
520 | 522 | else (step + 1) | |
521 | 523 | if ((gameId == 0)) | |
522 | 524 | then throw("You don't have an active game") | |
523 | 525 | else if ((playerRole != "maker")) | |
524 | 526 | then throw("Only maker can call this method") | |
525 | 527 | else if ((1 > step)) | |
526 | 528 | then throw("Game is not started") | |
527 | 529 | else if ((step > 1)) | |
528 | 530 | then throw("This step is finished") | |
529 | 531 | else if (if ((0 > random1)) | |
530 | 532 | then true | |
531 | 533 | else (random1 > 1000000000000)) | |
532 | 534 | then throw("Invalid random1") | |
533 | 535 | else if (if ((0 > random2)) | |
534 | 536 | then true | |
535 | 537 | else (random2 > 1000000000000)) | |
536 | 538 | then throw("Invalid random2") | |
537 | 539 | else if (if ((0 > random3)) | |
538 | 540 | then true | |
539 | 541 | else (random3 > 1000000000000)) | |
540 | 542 | then throw("Invalid random3") | |
541 | 543 | else if (if ((0 > random4)) | |
542 | 544 | then true | |
543 | 545 | else (random4 > 1000000000000)) | |
544 | 546 | then throw("Invalid random4") | |
545 | 547 | else if (if ((0 > random5)) | |
546 | 548 | then true | |
547 | 549 | else (random5 > 1000000000000)) | |
548 | 550 | then throw("Invalid random5") | |
549 | 551 | else if (if ((0 > random6)) | |
550 | 552 | then true | |
551 | 553 | else (random6 > 1000000000000)) | |
552 | 554 | then throw("Invalid random6") | |
553 | 555 | else if ((toBase58String(sha256(toBytes(makerRandomsStr))) != makerRandomsCommit)) | |
554 | 556 | then throw("Randoms don't match commit") | |
555 | 557 | else [StringEntry(getRandomsKey(gameId, "maker"), makerRandomsStr), StringEntry(getRaritiesKey(gameId, "maker"), ((((toString(worstRarityMaker) + "|") + toString(mediumRarityMaker)) + "|") + toString(bestRarityMaker))), IntegerEntry(getReplacedPositionKey(gameId, "maker"), replacePosition), StringEntry(getDuckIdKey(gameId, "maker"), duckId), StringEntry(getRaritiesKey(gameId, "taker"), ((((toString(worstRarityTaker) + "|") + toString(mediumRarityTaker)) + "|") + toString(bestRarityTaker))), IntegerEntry(getStepKey(gameId), nextStep), IntegerEntry(getExpirationHeightKey(gameId), (height + stepDuration))] | |
556 | 558 | } | |
557 | 559 | ||
558 | 560 | ||
559 | 561 | ||
560 | 562 | @Callable(i) | |
561 | 563 | func replaceTaker (replacePosition,duckId) = { | |
562 | 564 | let callerAddress = toBase58String(i.caller.bytes) | |
563 | 565 | let gameId = getPlayerCurrentGame(callerAddress) | |
564 | 566 | let playerRole = getPlayerRole(gameId, callerAddress) | |
565 | 567 | let step = getStep(gameId) | |
566 | 568 | let replaceRarity = if (if (if ((replacePosition == 1)) | |
567 | 569 | then true | |
568 | 570 | else (replacePosition == 2)) | |
569 | 571 | then true | |
570 | 572 | else (replacePosition == 3)) | |
571 | 573 | then { | |
572 | 574 | let invokeRes = invoke(Address(rarityProviderAddress), "getAssetRarity", [duckId], nil) | |
573 | 575 | if ((invokeRes == invokeRes)) | |
574 | 576 | then { | |
575 | 577 | let rarity = match invokeRes { | |
576 | 578 | case r: Int => | |
577 | 579 | r | |
578 | 580 | case _ => | |
579 | 581 | throw("Incorrect invoke result") | |
580 | 582 | } | |
581 | 583 | let rangesRaw = split(getRanges(gameId), "|") | |
582 | 584 | let ranges = [parseIntValue(rangesRaw[0]), parseIntValue(rangesRaw[1]), parseIntValue(rangesRaw[2])] | |
583 | 585 | let replaceRange = ranges[(replacePosition - 1)] | |
584 | 586 | if (!(checkDuckOwner(i.caller, fromBase58String(duckId)))) | |
585 | 587 | then throw((("Asset " + duckId) + " doesn't belong to you")) | |
586 | 588 | else if (if ((5 > replaceRange)) | |
587 | 589 | then if ((rarity > (replaceRange * 10))) | |
588 | 590 | then true | |
589 | 591 | else (((replaceRange - 1) * 10) >= rarity) | |
590 | 592 | else false) | |
591 | 593 | then throw("Duck doesn't fit rarity range") | |
592 | 594 | else if (if ((replaceRange == 5)) | |
593 | 595 | then (40 >= rarity) | |
594 | 596 | else false) | |
595 | 597 | then throw("Duck doesn't fit rarity replaceRange") | |
596 | 598 | else rarity | |
597 | 599 | } | |
598 | 600 | else throw("Strict value is not equal to itself.") | |
599 | 601 | } | |
600 | 602 | else 0 | |
601 | 603 | let rarities = split(getRarities(gameId, "taker"), "|") | |
602 | 604 | let newRarities = (((nil :+ (if ((replacePosition == 1)) | |
603 | 605 | then toString(replaceRarity) | |
604 | 606 | else rarities[0])) :+ (if ((replacePosition == 2)) | |
605 | 607 | then toString(replaceRarity) | |
606 | 608 | else rarities[1])) :+ (if ((replacePosition == 3)) | |
607 | 609 | then toString(replaceRarity) | |
608 | 610 | else rarities[2])) | |
609 | 611 | if ((gameId == 0)) | |
610 | 612 | then throw("You don't have an active game") | |
611 | 613 | else if ((playerRole != "taker")) | |
612 | 614 | then throw("Only taker can call this method") | |
613 | 615 | else if ((2 > step)) | |
614 | 616 | then throw("This step is not started") | |
615 | 617 | else if ((step > 2)) | |
616 | 618 | then throw("This step is finished") | |
617 | 619 | else [StringEntry(getRaritiesKey(gameId, "taker"), ((((newRarities[0] + "|") + newRarities[1]) + "|") + newRarities[2])), IntegerEntry(getReplacedPositionKey(gameId, "taker"), replacePosition), StringEntry(getDuckIdKey(gameId, "taker"), duckId), IntegerEntry(getStepKey(gameId), (step + 1)), IntegerEntry(getExpirationHeightKey(gameId), (height + stepDuration))] | |
618 | 620 | } | |
619 | 621 | ||
620 | 622 | ||
621 | 623 | ||
622 | 624 | @Callable(i) | |
623 | 625 | func commitOrderTaker (orderCommit) = { | |
624 | 626 | let callerAddress = toBase58String(i.caller.bytes) | |
625 | 627 | let gameId = getPlayerCurrentGame(callerAddress) | |
626 | 628 | let playerRole = getPlayerRole(gameId, callerAddress) | |
627 | 629 | let step = getStep(gameId) | |
628 | 630 | if ((gameId == 0)) | |
629 | 631 | then throw("You don't have an active game") | |
630 | 632 | else if ((playerRole != "taker")) | |
631 | 633 | then throw("Only taker can call this method") | |
632 | 634 | else if ((3 > step)) | |
633 | 635 | then throw("This step is not started") | |
634 | 636 | else if ((step > 3)) | |
635 | 637 | then throw("This step is finished") | |
636 | 638 | else [StringEntry(getTakerOrderCommitKey(gameId), orderCommit), IntegerEntry(getStepKey(gameId), (step + 1)), IntegerEntry(getExpirationHeightKey(gameId), (height + stepDuration))] | |
637 | 639 | } | |
638 | 640 | ||
639 | 641 | ||
640 | 642 | ||
641 | 643 | @Callable(i) | |
642 | 644 | func setOrderMaker (order) = { | |
643 | 645 | let callerAddress = toBase58String(i.caller.bytes) | |
644 | 646 | let gameId = getPlayerCurrentGame(callerAddress) | |
645 | 647 | let playerRole = getPlayerRole(gameId, callerAddress) | |
646 | 648 | let step = getStep(gameId) | |
647 | 649 | if ((gameId == 0)) | |
648 | 650 | then throw("You don't have an active game") | |
649 | 651 | else if ((playerRole != "maker")) | |
650 | 652 | then throw("Only maker can call this method") | |
651 | 653 | else if ((4 > step)) | |
652 | 654 | then throw("This step is not started") | |
653 | 655 | else if ((step > 4)) | |
654 | 656 | then throw("This step is finished") | |
655 | 657 | else if (if (if (if (if (if ((order != "1|2|3")) | |
656 | 658 | then (order != "1|3|2") | |
657 | 659 | else false) | |
658 | 660 | then (order != "2|1|3") | |
659 | 661 | else false) | |
660 | 662 | then (order != "2|3|1") | |
661 | 663 | else false) | |
662 | 664 | then (order != "3|1|2") | |
663 | 665 | else false) | |
664 | 666 | then (order != "3|2|1") | |
665 | 667 | else false) | |
666 | 668 | then throw("Invalid order data") | |
667 | 669 | else [StringEntry(getOrderKey(gameId, playerRole), order), IntegerEntry(getStepKey(gameId), (step + 1)), IntegerEntry(getExpirationHeightKey(gameId), (height + stepDuration))] | |
668 | 670 | } | |
669 | 671 | ||
670 | 672 | ||
671 | 673 | ||
672 | 674 | @Callable(i) | |
673 | 675 | func revealOrderTaker (order,salt) = { | |
674 | 676 | let callerAddress = toBase58String(i.caller.bytes) | |
675 | 677 | let gameId = getPlayerCurrentGame(callerAddress) | |
676 | 678 | let playerRole = getPlayerRole(gameId, callerAddress) | |
677 | 679 | let step = getStep(gameId) | |
678 | 680 | if ((gameId == 0)) | |
679 | 681 | then throw("You don't have an active game") | |
680 | 682 | else if ((playerRole != "taker")) | |
681 | 683 | then throw("Only taker can call this method") | |
682 | 684 | else if ((5 > step)) | |
683 | 685 | then throw("This step is not started") | |
684 | 686 | else if (if (if (if (if (if ((order != "1|2|3")) | |
685 | 687 | then (order != "1|3|2") | |
686 | 688 | else false) | |
687 | 689 | then (order != "2|1|3") | |
688 | 690 | else false) | |
689 | 691 | then (order != "2|3|1") | |
690 | 692 | else false) | |
691 | 693 | then (order != "3|1|2") | |
692 | 694 | else false) | |
693 | 695 | then (order != "3|2|1") | |
694 | 696 | else false) | |
695 | 697 | then throw("Invalid order data") | |
696 | 698 | else if ((toBase58String(sha256(toBytes((order + salt)))) != getTakerOrderCommit(gameId))) | |
697 | 699 | then throw("Reveal doesn't match commit") | |
698 | 700 | else (getGameResult(gameId, order, false) ++ [StringEntry(getOrderKey(gameId, playerRole), order), IntegerEntry(getStepKey(gameId), (step + 1))]) | |
699 | 701 | } | |
700 | 702 | ||
701 | 703 | ||
702 | 704 | ||
703 | 705 | @Callable(i) | |
704 | 706 | func getPrizeExpired () = { | |
705 | 707 | let callerAddress = toBase58String(i.caller.bytes) | |
706 | 708 | let gameId = getPlayerCurrentGame(callerAddress) | |
707 | 709 | if ((gameId == 0)) | |
708 | 710 | then throw("You don't have an active game") | |
709 | 711 | else getGameResult(gameId, "", true) | |
710 | 712 | } | |
711 | 713 | ||
712 | 714 | ||
713 | 715 | @Verifier(tx) | |
714 | 716 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
715 | 717 |
github/deemru/w8io/026f985 77.43 ms ◑