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/9PluCIdvVWCTuvM4GFKRaRd95QRhFEAAAAADnRpY2tldHNBZGRyZXNzAQAAABoBVKAOMFKzrNSxblMUh4oVbiEq5OKCgGofWAAAAAAUZmVlQWdncmVnYXRvckFkZHJlc3MBAAAAGgFUVZwN5DqClIz1rUIDWpACV8amln6tN3NEAAAAAAxhZG1pbkFkZHJlc3MBAAAAGgFUVZwN5DqClIz1rUIDWpACV8amln6tN3NEAAAAAAVTTE9UUwAAAAAAAAAACgAAAAAHV0FJVElORwAAAAAAAAAACAAAAAAMc3RlcER1cmF0aW9u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DCQEAAAACIT0AAAACCQACWAAAAAEJAAH3AAAAAQkAAZsAAAABCQABLAAAAAIFAAAABW9yZGVyBQAAAARzYWx0CQEAAAATZ2V0VGFrZXJPcmRlckNvbW1pdAAAAAEFAAAABmdhbWVJZAkAAAIAAAABAgAAABtSZXZlYWwgZG9lc24ndCBtYXRjaCBjb21taXQJAAROAAAAAgkBAAAADWdldEdhbWVSZXN1bHQAAAADBQAAAAZnYW1lSWQFAAAABW9yZGVyBwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAALZ2V0T3JkZXJLZXkAAAACBQAAAAZnYW1lSWQFAAAACnBsYXllclJvbGUFAAAABW9yZGVyCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQEAAAAKZ2V0U3RlcEtleQAAAAEFAAAABmdhbWVJZAkAAGQAAAACBQAAAARzdGVwAAAAAAAAAAABBQAAAANuaWwAAAABaQEAAAAPZ2V0UHJpemVFeHBpcmVkAAAAAAQAAAANY2FsbGVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAZnYW1lSWQJAQAAABRnZXRQbGF5ZXJDdXJyZW50R2FtZQAAAAEFAAAADWNhbGxlckFkZHJlc3MDCQAAAAAAAAIFAAAABmdhbWVJZAAAAAAAAAAAAAkAAAIAAAABAgAAAB1Zb3UgZG9uJ3QgaGF2ZSBhbiBhY3RpdmUgZ2FtZQkBAAAADWdldEdhbWVSZXN1bHQAAAADBQAAAAZnYW1lSWQCAAAAAAYAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleRq/FXk=", "height": 1906106, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9vxYsfz3nfxDs6jaiQAuqJDjLQw9vuda65z94Aysu1xZ Next: FJXfwFW9xYLGvKg9VpeWbATBEa66MFre37Mv4V6VidUK Diff:
OldNewDifferences
333333 @Callable(i)
334334 func startTournament () = if ((i.caller.bytes != adminAddress))
335335 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))]
337339
338340
339341
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let farmingAddress = base58'3NBznG19rEYUAcnukTRTtwJHBVKQLbobVdC'
55
66 let rarityProviderAddress = base58'3NCman4dCzk1HWWU4DPTr5rsbhvuUCwwUZh'
77
88 let betAssetId = base58'AjXHBGsVDeXETQPk3qH4CPbZdfXPyNo5XoBx7jVbtwWG'
99
1010 let ticketsAddress = base58'3N4WNtTySg6yVzp58h2dwrLtpP353yVoUco'
1111
1212 let feeAggregatorAddress = base58'3MwikA4opnqZMGVriWzH8Gq2CJXuaVBdboH'
1313
1414 let adminAddress = base58'3MwikA4opnqZMGVriWzH8Gq2CJXuaVBdboH'
1515
1616 let SLOTS = 10
1717
1818 let WAITING = 8
1919
2020 let stepDuration = 5
2121
2222 let feePercent = 15
2323
2424 let tournamentDuration = 20
2525
2626 let warmUpDuration = 5
2727
2828 let clutchDuration = 5
2929
3030 let warmUpBet = 5000000
3131
3232 let mainBet = 20000000
3333
3434 let clutchBet = 50000000
3535
3636 func tryGetInteger (key) = match getInteger(this, key) {
3737 case b: Int =>
3838 b
3939 case _ =>
4040 0
4141 }
4242
4343
4444 func tryGetString (key) = match getString(this, key) {
4545 case a: String =>
4646 a
4747 case _ =>
4848 ""
4949 }
5050
5151
5252 func tryGetBoolean (key) = match getBoolean(this, key) {
5353 case b: Boolean =>
5454 b
5555 case _ =>
5656 false
5757 }
5858
5959
6060 func getTournamentStartHeightKey () = "tournamentStartHeight"
6161
6262
6363 func getTournamentStartHeight () = tryGetInteger(getTournamentStartHeightKey())
6464
6565
6666 func getTournamentFinishHeightKey () = "tournamentFinishHeight"
6767
6868
6969 func getTournamentFinishHeight () = tryGetInteger(getTournamentFinishHeightKey())
7070
7171
7272 func getNextGameId () = {
7373 let nextId = tryGetInteger("nextGameId")
7474 if ((nextId == 0))
7575 then 1
7676 else nextId
7777 }
7878
7979
8080 func getPlayerCurrentGameKey (playerAddress) = (playerAddress + "_currentGame")
8181
8282
8383 func getPlayerCurrentGame (playerAddress) = tryGetInteger(getPlayerCurrentGameKey(playerAddress))
8484
8585
8686 func getSlotKey (slot) = ("slot" + toString(slot))
8787
8888
8989 func getSlot (slot) = tryGetInteger(getSlotKey(slot))
9090
9191
9292 func getPlayerRoleKey (gameId,playerAddress) = ((("game" + toString(gameId)) + "_") + playerAddress)
9393
9494
9595 func getPlayerRole (gameId,playerAddress) = tryGetString(getPlayerRoleKey(gameId, playerAddress))
9696
9797
9898 func getMakerKey (gameId) = (("game" + toString(gameId)) + "_maker")
9999
100100
101101 func getMaker (gameId) = tryGetString(getMakerKey(gameId))
102102
103103
104104 func getTakerKey (gameId) = (("game" + toString(gameId)) + "_taker")
105105
106106
107107 func getTaker (gameId) = tryGetString(getTakerKey(gameId))
108108
109109
110110 func getTakerSkipReplaceKey (gameId) = (("game" + toString(gameId)) + "_taker_skipReplace")
111111
112112
113113 func getTakerSkipReplace (gameId) = tryGetBoolean(getTakerSkipReplaceKey(gameId))
114114
115115
116116 func getBetKey (gameId) = (("game" + toString(gameId)) + "_bet")
117117
118118
119119 func getBet (gameId) = tryGetInteger(getBetKey(gameId))
120120
121121
122122 func getWaitingExpirationHeightKey (gameId) = (("game" + toString(gameId)) + "_waitingExpirationHeight")
123123
124124
125125 func getWaitingExpirationHeight (gameId) = tryGetInteger(getWaitingExpirationHeightKey(gameId))
126126
127127
128128 func getExpirationHeightKey (gameId) = (("game" + toString(gameId)) + "_expirationHeight")
129129
130130
131131 func getExpirationHeight (gameId) = tryGetInteger(getExpirationHeightKey(gameId))
132132
133133
134134 func getRangesKey (gameId) = (("game" + toString(gameId)) + "_ranges")
135135
136136
137137 func getRanges (gameId) = tryGetString(getRangesKey(gameId))
138138
139139
140140 func getMakerRandomsCommitKey (gameId) = (("game" + toString(gameId)) + "_maker_randomsCommit")
141141
142142
143143 func getMakerRandomsCommit (gameId) = tryGetString(getMakerRandomsCommitKey(gameId))
144144
145145
146146 func getRandomsKey (gameId,playerRole) = (((("game" + toString(gameId)) + "_") + playerRole) + "_randoms")
147147
148148
149149 func getRandoms (gameId,playerRole) = tryGetString(getRandomsKey(gameId, playerRole))
150150
151151
152152 func getStepKey (gameId) = (("game" + toString(gameId)) + "_step")
153153
154154
155155 func getStep (gameId) = tryGetInteger(getStepKey(gameId))
156156
157157
158158 func getRaritiesKey (gameId,playerRole) = (((("game" + toString(gameId)) + "_") + playerRole) + "_rarities")
159159
160160
161161 func getRarities (gameId,playerRole) = tryGetString(getRaritiesKey(gameId, playerRole))
162162
163163
164164 func getReplacedPositionKey (gameId,playerRole) = (((("game" + toString(gameId)) + "_") + playerRole) + "_replacedPosition")
165165
166166
167167 func getReplacedPosition (gameId,playerRole) = tryGetInteger(getReplacedPositionKey(gameId, playerRole))
168168
169169
170170 func getDuckIdKey (gameId,playerRole) = (((("game" + toString(gameId)) + "_") + playerRole) + "_duckId")
171171
172172
173173 func getDuckId (gameId,playerRole) = tryGetString(getDuckIdKey(gameId, playerRole))
174174
175175
176176 func getTakerOrderCommitKey (gameId) = (("game" + toString(gameId)) + "_taker_orderCommit")
177177
178178
179179 func getTakerOrderCommit (gameId) = tryGetString(getTakerOrderCommitKey(gameId))
180180
181181
182182 func getOrderKey (gameId,playerRole) = (((("game" + toString(gameId)) + "_") + playerRole) + "_order")
183183
184184
185185 func getOrder (gameId,playerRole) = tryGetString(getOrderKey(gameId, playerRole))
186186
187187
188188 func getPlayerResultKey (gameId,playerAddress) = (((("game" + toString(gameId)) + "_") + playerAddress) + "_result")
189189
190190
191191 func getPlayerResult (gameId,playerAddress) = tryGetString(getPlayerResultKey(gameId, playerAddress))
192192
193193
194194 func getPlayerPrizeKey (gameId,playerAddress) = (((("game" + toString(gameId)) + "_") + playerAddress) + "_prize")
195195
196196
197197 func getPlayerPrize (gameId,playerAddress) = tryGetInteger(getPlayerPrizeKey(gameId, playerAddress))
198198
199199
200200 func getPlayerWinsKey (playerAddress) = (playerAddress + "_wins")
201201
202202
203203 func getPlayerWins (playerAddress) = tryGetInteger(getPlayerWinsKey(playerAddress))
204204
205205
206206 func getPlayerLosesKey (playerAddress) = (playerAddress + "_loses")
207207
208208
209209 func getPlayerLoses (playerAddress) = tryGetInteger(getPlayerLosesKey(playerAddress))
210210
211211
212212 func getPlayerDrawsKey (playerAddress) = (playerAddress + "_draws")
213213
214214
215215 func getPlayerDraws (playerAddress) = tryGetInteger(getPlayerDrawsKey(playerAddress))
216216
217217
218218 func getPlayerPnLKey (playerAddress) = (playerAddress + "_PnL")
219219
220220
221221 func getPlayerPnL (playerAddress) = tryGetInteger(getPlayerPnLKey(playerAddress))
222222
223223
224224 func getGamesPlayedKey () = "gamesPlayed"
225225
226226
227227 func getGamesPlayed () = tryGetInteger(getGamesPlayedKey())
228228
229229
230230 func getTotalFeeKey () = "totalFee"
231231
232232
233233 func getTotalFee () = tryGetInteger(getTotalFeeKey())
234234
235235
236236 func getFarmingPower (address,assetId) = match getInteger(Address(farmingAddress), (((("address_" + address) + "_asset_") + assetId) + "_farmingPower")) {
237237 case fp: Int =>
238238 fp
239239 case _ =>
240240 0
241241 }
242242
243243
244244 func checkDuckOwner (ownerAddress,assetId) = if ((assetBalance(ownerAddress, assetId) > 0))
245245 then true
246246 else (getFarmingPower(toBase58String(ownerAddress.bytes), toBase58String(assetId)) > 0)
247247
248248
249249 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]]
250250
251251 func getRandomRarity (random,range) = {
252252 let randomIdx = (random % size(RANGES[(range - 1)]))
253253 RANGES[(range - 1)][randomIdx]
254254 }
255255
256256
257257 func hasTicket (address) = match getBoolean(Address(ticketsAddress), address) {
258258 case b: Boolean =>
259259 b
260260 case _ =>
261261 false
262262 }
263263
264264
265265 func getBetAmount () = if (((getTournamentStartHeight() + warmUpDuration) > height))
266266 then warmUpBet
267267 else if (((getTournamentFinishHeight() - clutchDuration) > height))
268268 then mainBet
269269 else clutchBet
270270
271271
272272 func getScore (a,b) = if ((a > b))
273273 then 1
274274 else if ((b > a))
275275 then -1
276276 else 0
277277
278278
279279 func getWinner (gameId,takerOrderStr,expired) = if (expired)
280280 then {
281281 let step = getStep(gameId)
282282 let expirationHeight = getExpirationHeight(gameId)
283283 if ((step == 0))
284284 then throw("Game is not started")
285285 else if ((expirationHeight > height))
286286 then throw("Game is not expired")
287287 else if (if ((step == 1))
288288 then true
289289 else (step == 4))
290290 then "taker"
291291 else "maker"
292292 }
293293 else {
294294 let mo = split(getOrder(gameId, "maker"), "|")
295295 let makerOrder = [parseIntValue(mo[0]), parseIntValue(mo[1]), parseIntValue(mo[2])]
296296 let to = split(takerOrderStr, "|")
297297 let takerOrder = [parseIntValue(to[0]), parseIntValue(to[1]), parseIntValue(to[2])]
298298 let mr = split(getRarities(gameId, "maker"), "|")
299299 let makerRarities = [parseIntValue(mr[0]), parseIntValue(mr[1]), parseIntValue(mr[2])]
300300 let tr = split(getRarities(gameId, "taker"), "|")
301301 let takerRarities = [parseIntValue(tr[0]), parseIntValue(tr[1]), parseIntValue(tr[2])]
302302 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)]))
303303 if ((makerScore > 0))
304304 then "maker"
305305 else if ((0 > makerScore))
306306 then "taker"
307307 else "draw"
308308 }
309309
310310
311311 func getGameResult (gameId,takerOrder,expired) = {
312312 let bet = getBet(gameId)
313313 let makerAddress = getMaker(gameId)
314314 let takerAddress = getTaker(gameId)
315315 let winner = getWinner(gameId, takerOrder, expired)
316316 let winnerAddress = if ((winner == "maker"))
317317 then makerAddress
318318 else if ((winner == "taker"))
319319 then takerAddress
320320 else ""
321321 let loserAddress = if ((winner == "taker"))
322322 then makerAddress
323323 else if ((winner == "maker"))
324324 then takerAddress
325325 else ""
326326 let fee = fraction(bet, feePercent, 100)
327327 if ((winnerAddress != ""))
328328 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)]
329329 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)]
330330 }
331331
332332
333333 @Callable(i)
334334 func startTournament () = if ((i.caller.bytes != adminAddress))
335335 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))]
337339
338340
339341
340342 @Callable(i)
341343 func getBetAmountCallable () = $Tuple2(nil, getBetAmount())
342344
343345
344346
345347 @Callable(i)
346348 func makeGame (slot,worstRange,mediumRange,bestRange,randomsCommit) = {
347349 let callerAddress = toBase58String(i.caller.bytes)
348350 let slotGameId = getSlot(slot)
349351 let payment = value(i.payments[0])
350352 let bet = payment.amount
351353 let gameId = getNextGameId()
352354 if (!(hasTicket(callerAddress)))
353355 then throw("You don't have a ticket")
354356 else if ((getTournamentStartHeight() == 0))
355357 then throw("Tournament is not started")
356358 else if ((height > getTournamentFinishHeight()))
357359 then throw("Tournament is finished")
358360 else if ((getPlayerCurrentGame(callerAddress) != 0))
359361 then throw("You already have an active game")
360362 else if (if ((0 > slot))
361363 then true
362364 else (slot >= SLOTS))
363365 then throw("Invalid slot")
364366 else if ((slotGameId != 0))
365367 then throw("This slot is busy")
366368 else if ((payment.assetId != betAssetId))
367369 then throw(("You can attach only tokens with the following asset id - " + toBase58String(betAssetId)))
368370 else if ((bet != getBetAmount()))
369371 then throw("Wrong bet amount")
370372 else if (if ((1 > worstRange))
371373 then true
372374 else (worstRange > 5))
373375 then throw("Invalid range for the worst duck")
374376 else if (if ((1 > mediumRange))
375377 then true
376378 else (mediumRange > 5))
377379 then throw("Invalid range for the medium duck")
378380 else if (if ((1 > bestRange))
379381 then true
380382 else (bestRange > 5))
381383 then throw("Invalid range for the best duck")
382384 else if ((worstRange > mediumRange))
383385 then throw("The medium range can't be less than the worst one")
384386 else if ((mediumRange > bestRange))
385387 then throw("The best range can't be worse than the medium one")
386388 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))]
387389 }
388390
389391
390392
391393 @Callable(i)
392394 func takeGame (slot,random1,random2,random3,random4,random5,random6,skipReplace) = {
393395 let callerAddress = toBase58String(i.caller.bytes)
394396 let gameId = getSlot(slot)
395397 let payment = value(i.payments[0])
396398 let randoms = ((((((((((toString(random1) + "|") + toString(random2)) + "|") + toString(random3)) + "|") + toString(random4)) + "|") + toString(random5)) + "|") + toString(random6))
397399 if (!(hasTicket(callerAddress)))
398400 then throw("You don't have a ticket")
399401 else if ((getPlayerCurrentGame(callerAddress) != 0))
400402 then throw("You already have an active game")
401403 else if (if ((0 > slot))
402404 then true
403405 else (slot >= SLOTS))
404406 then throw("Invalid slot")
405407 else if ((getSlot(slot) == 0))
406408 then throw("This slot is empty")
407409 else if ((payment.assetId != betAssetId))
408410 then throw(("You can attach only tokens with the following asset id - " + toBase58String(betAssetId)))
409411 else if ((payment.amount != getBet(gameId)))
410412 then throw("Wrong bet amount")
411413 else if ((height >= getWaitingExpirationHeight(gameId)))
412414 then throw("This game is expired")
413415 else if (if ((0 > random1))
414416 then true
415417 else (random1 > 1000000000000))
416418 then throw("Invalid random1")
417419 else if (if ((0 > random2))
418420 then true
419421 else (random2 > 1000000000000))
420422 then throw("Invalid random2")
421423 else if (if ((0 > random3))
422424 then true
423425 else (random3 > 1000000000000))
424426 then throw("Invalid random3")
425427 else if (if ((0 > random4))
426428 then true
427429 else (random4 > 1000000000000))
428430 then throw("Invalid random4")
429431 else if (if ((0 > random5))
430432 then true
431433 else (random5 > 1000000000000))
432434 then throw("Invalid random5")
433435 else if (if ((0 > random6))
434436 then true
435437 else (random6 > 1000000000000))
436438 then throw("Invalid random6")
437439 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))]
438440 }
439441
440442
441443
442444 @Callable(i)
443445 func kickGame (slot) = {
444446 let callerAddress = toBase58String(i.caller.bytes)
445447 let gameId = getSlot(slot)
446448 let maker = getMaker(gameId)
447449 if (if ((0 > slot))
448450 then true
449451 else (slot >= SLOTS))
450452 then throw("Invalid slot")
451453 else if ((gameId == 0))
452454 then throw("Slot is empty")
453455 else if (if ((callerAddress != maker))
454456 then (getWaitingExpirationHeight(gameId) > height)
455457 else false)
456458 then throw("Waiting is not finished yet")
457459 else [IntegerEntry(getPlayerCurrentGameKey(maker), 0), IntegerEntry(getSlotKey(slot), 0), ScriptTransfer(Address(fromBase58String(maker)), getBet(gameId), betAssetId)]
458460 }
459461
460462
461463
462464 @Callable(i)
463465 func replaceMaker (random1,random2,random3,random4,random5,random6,replacePosition,duckId) = {
464466 let callerAddress = toBase58String(i.caller.bytes)
465467 let gameId = getPlayerCurrentGame(callerAddress)
466468 let playerRole = getPlayerRole(gameId, callerAddress)
467469 let step = getStep(gameId)
468470 let rangesRaw = split(getRanges(gameId), "|")
469471 let ranges = [parseIntValue(rangesRaw[0]), parseIntValue(rangesRaw[1]), parseIntValue(rangesRaw[2])]
470472 let makerRandomsCommit = getMakerRandomsCommit(gameId)
471473 let makerRandomsStr = ((((((((((toString(random1) + "|") + toString(random2)) + "|") + toString(random3)) + "|") + toString(random4)) + "|") + toString(random5)) + "|") + toString(random6))
472474 let takerRandoms = split(getRandoms(gameId, "taker"), "|")
473475 let replaceRarity = if (if (if ((replacePosition == 1))
474476 then true
475477 else (replacePosition == 2))
476478 then true
477479 else (replacePosition == 3))
478480 then {
479481 let invokeRes = invoke(Address(rarityProviderAddress), "getAssetRarity", [duckId], nil)
480482 if ((invokeRes == invokeRes))
481483 then {
482484 let rarity = match invokeRes {
483485 case r: Int =>
484486 r
485487 case _ =>
486488 throw("Incorrect invoke result")
487489 }
488490 let replaceRange = ranges[(replacePosition - 1)]
489491 if (!(checkDuckOwner(i.caller, fromBase58String(duckId))))
490492 then throw((("Asset " + duckId) + " doesn't belong to you"))
491493 else if (if ((5 > replaceRange))
492494 then if ((rarity > (replaceRange * 10)))
493495 then true
494496 else (((replaceRange - 1) * 10) >= rarity)
495497 else false)
496498 then throw("Duck doesn't fit rarity range")
497499 else if (if ((replaceRange == 5))
498500 then (40 >= rarity)
499501 else false)
500502 then throw("Duck doesn't fit rarity replaceRange")
501503 else rarity
502504 }
503505 else throw("Strict value is not equal to itself.")
504506 }
505507 else 0
506508 let worstRarityMaker = if ((replacePosition == 1))
507509 then replaceRarity
508510 else getRandomRarity((random1 + parseIntValue(takerRandoms[0])), ranges[0])
509511 let mediumRarityMaker = if ((replacePosition == 2))
510512 then replaceRarity
511513 else getRandomRarity((random2 + parseIntValue(takerRandoms[1])), ranges[1])
512514 let bestRarityMaker = if ((replacePosition == 3))
513515 then replaceRarity
514516 else getRandomRarity((random3 + parseIntValue(takerRandoms[2])), ranges[2])
515517 let worstRarityTaker = getRandomRarity((random4 + parseIntValue(takerRandoms[3])), ranges[0])
516518 let mediumRarityTaker = getRandomRarity((random5 + parseIntValue(takerRandoms[4])), ranges[1])
517519 let bestRarityTaker = getRandomRarity((random6 + parseIntValue(takerRandoms[5])), ranges[2])
518520 let nextStep = if (getTakerSkipReplace(gameId))
519521 then (step + 2)
520522 else (step + 1)
521523 if ((gameId == 0))
522524 then throw("You don't have an active game")
523525 else if ((playerRole != "maker"))
524526 then throw("Only maker can call this method")
525527 else if ((1 > step))
526528 then throw("Game is not started")
527529 else if ((step > 1))
528530 then throw("This step is finished")
529531 else if (if ((0 > random1))
530532 then true
531533 else (random1 > 1000000000000))
532534 then throw("Invalid random1")
533535 else if (if ((0 > random2))
534536 then true
535537 else (random2 > 1000000000000))
536538 then throw("Invalid random2")
537539 else if (if ((0 > random3))
538540 then true
539541 else (random3 > 1000000000000))
540542 then throw("Invalid random3")
541543 else if (if ((0 > random4))
542544 then true
543545 else (random4 > 1000000000000))
544546 then throw("Invalid random4")
545547 else if (if ((0 > random5))
546548 then true
547549 else (random5 > 1000000000000))
548550 then throw("Invalid random5")
549551 else if (if ((0 > random6))
550552 then true
551553 else (random6 > 1000000000000))
552554 then throw("Invalid random6")
553555 else if ((toBase58String(sha256(toBytes(makerRandomsStr))) != makerRandomsCommit))
554556 then throw("Randoms don't match commit")
555557 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))]
556558 }
557559
558560
559561
560562 @Callable(i)
561563 func replaceTaker (replacePosition,duckId) = {
562564 let callerAddress = toBase58String(i.caller.bytes)
563565 let gameId = getPlayerCurrentGame(callerAddress)
564566 let playerRole = getPlayerRole(gameId, callerAddress)
565567 let step = getStep(gameId)
566568 let replaceRarity = if (if (if ((replacePosition == 1))
567569 then true
568570 else (replacePosition == 2))
569571 then true
570572 else (replacePosition == 3))
571573 then {
572574 let invokeRes = invoke(Address(rarityProviderAddress), "getAssetRarity", [duckId], nil)
573575 if ((invokeRes == invokeRes))
574576 then {
575577 let rarity = match invokeRes {
576578 case r: Int =>
577579 r
578580 case _ =>
579581 throw("Incorrect invoke result")
580582 }
581583 let rangesRaw = split(getRanges(gameId), "|")
582584 let ranges = [parseIntValue(rangesRaw[0]), parseIntValue(rangesRaw[1]), parseIntValue(rangesRaw[2])]
583585 let replaceRange = ranges[(replacePosition - 1)]
584586 if (!(checkDuckOwner(i.caller, fromBase58String(duckId))))
585587 then throw((("Asset " + duckId) + " doesn't belong to you"))
586588 else if (if ((5 > replaceRange))
587589 then if ((rarity > (replaceRange * 10)))
588590 then true
589591 else (((replaceRange - 1) * 10) >= rarity)
590592 else false)
591593 then throw("Duck doesn't fit rarity range")
592594 else if (if ((replaceRange == 5))
593595 then (40 >= rarity)
594596 else false)
595597 then throw("Duck doesn't fit rarity replaceRange")
596598 else rarity
597599 }
598600 else throw("Strict value is not equal to itself.")
599601 }
600602 else 0
601603 let rarities = split(getRarities(gameId, "taker"), "|")
602604 let newRarities = (((nil :+ (if ((replacePosition == 1))
603605 then toString(replaceRarity)
604606 else rarities[0])) :+ (if ((replacePosition == 2))
605607 then toString(replaceRarity)
606608 else rarities[1])) :+ (if ((replacePosition == 3))
607609 then toString(replaceRarity)
608610 else rarities[2]))
609611 if ((gameId == 0))
610612 then throw("You don't have an active game")
611613 else if ((playerRole != "taker"))
612614 then throw("Only taker can call this method")
613615 else if ((2 > step))
614616 then throw("This step is not started")
615617 else if ((step > 2))
616618 then throw("This step is finished")
617619 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))]
618620 }
619621
620622
621623
622624 @Callable(i)
623625 func commitOrderTaker (orderCommit) = {
624626 let callerAddress = toBase58String(i.caller.bytes)
625627 let gameId = getPlayerCurrentGame(callerAddress)
626628 let playerRole = getPlayerRole(gameId, callerAddress)
627629 let step = getStep(gameId)
628630 if ((gameId == 0))
629631 then throw("You don't have an active game")
630632 else if ((playerRole != "taker"))
631633 then throw("Only taker can call this method")
632634 else if ((3 > step))
633635 then throw("This step is not started")
634636 else if ((step > 3))
635637 then throw("This step is finished")
636638 else [StringEntry(getTakerOrderCommitKey(gameId), orderCommit), IntegerEntry(getStepKey(gameId), (step + 1)), IntegerEntry(getExpirationHeightKey(gameId), (height + stepDuration))]
637639 }
638640
639641
640642
641643 @Callable(i)
642644 func setOrderMaker (order) = {
643645 let callerAddress = toBase58String(i.caller.bytes)
644646 let gameId = getPlayerCurrentGame(callerAddress)
645647 let playerRole = getPlayerRole(gameId, callerAddress)
646648 let step = getStep(gameId)
647649 if ((gameId == 0))
648650 then throw("You don't have an active game")
649651 else if ((playerRole != "maker"))
650652 then throw("Only maker can call this method")
651653 else if ((4 > step))
652654 then throw("This step is not started")
653655 else if ((step > 4))
654656 then throw("This step is finished")
655657 else if (if (if (if (if (if ((order != "1|2|3"))
656658 then (order != "1|3|2")
657659 else false)
658660 then (order != "2|1|3")
659661 else false)
660662 then (order != "2|3|1")
661663 else false)
662664 then (order != "3|1|2")
663665 else false)
664666 then (order != "3|2|1")
665667 else false)
666668 then throw("Invalid order data")
667669 else [StringEntry(getOrderKey(gameId, playerRole), order), IntegerEntry(getStepKey(gameId), (step + 1)), IntegerEntry(getExpirationHeightKey(gameId), (height + stepDuration))]
668670 }
669671
670672
671673
672674 @Callable(i)
673675 func revealOrderTaker (order,salt) = {
674676 let callerAddress = toBase58String(i.caller.bytes)
675677 let gameId = getPlayerCurrentGame(callerAddress)
676678 let playerRole = getPlayerRole(gameId, callerAddress)
677679 let step = getStep(gameId)
678680 if ((gameId == 0))
679681 then throw("You don't have an active game")
680682 else if ((playerRole != "taker"))
681683 then throw("Only taker can call this method")
682684 else if ((5 > step))
683685 then throw("This step is not started")
684686 else if (if (if (if (if (if ((order != "1|2|3"))
685687 then (order != "1|3|2")
686688 else false)
687689 then (order != "2|1|3")
688690 else false)
689691 then (order != "2|3|1")
690692 else false)
691693 then (order != "3|1|2")
692694 else false)
693695 then (order != "3|2|1")
694696 else false)
695697 then throw("Invalid order data")
696698 else if ((toBase58String(sha256(toBytes((order + salt)))) != getTakerOrderCommit(gameId)))
697699 then throw("Reveal doesn't match commit")
698700 else (getGameResult(gameId, order, false) ++ [StringEntry(getOrderKey(gameId, playerRole), order), IntegerEntry(getStepKey(gameId), (step + 1))])
699701 }
700702
701703
702704
703705 @Callable(i)
704706 func getPrizeExpired () = {
705707 let callerAddress = toBase58String(i.caller.bytes)
706708 let gameId = getPlayerCurrentGame(callerAddress)
707709 if ((gameId == 0))
708710 then throw("You don't have an active game")
709711 else getGameResult(gameId, "", true)
710712 }
711713
712714
713715 @Verifier(tx)
714716 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
715717

github/deemru/w8io/026f985 
77.43 ms