tx · 6zsrhn4zLxcsCNUaFAMVZPyJtt8uqVneXpo2G6t48Yir

3MzkgzQJkWqyk6KB8xzy6KYydcC2kjFvadk:  -0.01400000 Waves

2022.02.02 18:06 [1906132] smart account 3MzkgzQJkWqyk6KB8xzy6KYydcC2kjFvadk > SELF 0.00000000 Waves

{ "type": 13, "id": "6zsrhn4zLxcsCNUaFAMVZPyJtt8uqVneXpo2G6t48Yir", "fee": 1400000, "feeAssetId": null, "timestamp": 1643814371938, "version": 2, "chainId": 84, "sender": "3MzkgzQJkWqyk6KB8xzy6KYydcC2kjFvadk", "senderPublicKey": "D11qkqHmaoJ4tLBaUbGEouPNJtqZHE4drxNan4B6vPg8", "proofs": [ "3mQ3Sk5gH8ejjhytmamS8z6uj2CN3E5KsDrQfPeUxutQjdmVxBNDZkwfbAPRoPnLz7CMefeZxNq5Kq9AcLNicBpL" ], "script": "base64:AAIFAAAAAAAAAEQIAhIAEgASBwoFAQEBAQgSCgoIAQEBAQEBAQQSAwoBARIKCggBAQEBAQEBCBIECgIBCBIDCgEIEgMKAQgSBAoCCAgSAAAAAFUAAAAADmZhcm1pbmdBZGRyZXNzAQAAABoBVPI2OcArysfSHWdY6vW8njYvqXogIGoz0wAAAAAVcmFyaXR5UHJvdmlkZXJBZGRyZXNzAQAAABoBVPqvXAIOK77VhJOb48rzK/MJjwrn6vR1pAAAAAAKYmV0QXNzZXRJZAEAAAAgkJ3QE4VGK0Dk/9PluCIdvVWCTuvM4GFKRaRd95QRhFEAAAAADnRpY2tldHNBZGRyZXNzAQAAABoBVKAOMFKzrNSxblMUh4oVbiEq5OKCgGofWAAAAAAUZmVlQWdncmVnYXRvckFkZHJlc3MBAAAAGgFUVZwN5DqClIz1rUIDWpACV8amln6tN3NEAAAAAAxhZG1pbkFkZHJlc3MBAAAAGgFUVZwN5DqClIz1rUIDWpACV8amln6tN3NEAAAAAAVTTE9UUwAAAAAAAAAACgAAAAAHV0FJVElORwAAAAAAAAAACAAAAAAMc3RlcER1cmF0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g9VpeWbATBEa66MFre37Mv4V6VidUK Next: none Diff:
OldNewDifferences
334334 func startTournament () = if ((i.caller.bytes != adminAddress))
335335 then throw("Admin only")
336336 else if ((getTournamentStartHeight() > 0))
337- then throw("Aready started")
337+ then throw("Already started")
338338 else [IntegerEntry(getTournamentStartHeightKey(), height), IntegerEntry(getTournamentFinishHeightKey(), (height + tournamentDuration))]
339339
340340
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")
336336 else if ((getTournamentStartHeight() > 0))
337- then throw("Aready started")
337+ then throw("Already started")
338338 else [IntegerEntry(getTournamentStartHeightKey(), height), IntegerEntry(getTournamentFinishHeightKey(), (height + tournamentDuration))]
339339
340340
341341
342342 @Callable(i)
343343 func getBetAmountCallable () = $Tuple2(nil, getBetAmount())
344344
345345
346346
347347 @Callable(i)
348348 func makeGame (slot,worstRange,mediumRange,bestRange,randomsCommit) = {
349349 let callerAddress = toBase58String(i.caller.bytes)
350350 let slotGameId = getSlot(slot)
351351 let payment = value(i.payments[0])
352352 let bet = payment.amount
353353 let gameId = getNextGameId()
354354 if (!(hasTicket(callerAddress)))
355355 then throw("You don't have a ticket")
356356 else if ((getTournamentStartHeight() == 0))
357357 then throw("Tournament is not started")
358358 else if ((height > getTournamentFinishHeight()))
359359 then throw("Tournament is finished")
360360 else if ((getPlayerCurrentGame(callerAddress) != 0))
361361 then throw("You already have an active game")
362362 else if (if ((0 > slot))
363363 then true
364364 else (slot >= SLOTS))
365365 then throw("Invalid slot")
366366 else if ((slotGameId != 0))
367367 then throw("This slot is busy")
368368 else if ((payment.assetId != betAssetId))
369369 then throw(("You can attach only tokens with the following asset id - " + toBase58String(betAssetId)))
370370 else if ((bet != getBetAmount()))
371371 then throw("Wrong bet amount")
372372 else if (if ((1 > worstRange))
373373 then true
374374 else (worstRange > 5))
375375 then throw("Invalid range for the worst duck")
376376 else if (if ((1 > mediumRange))
377377 then true
378378 else (mediumRange > 5))
379379 then throw("Invalid range for the medium duck")
380380 else if (if ((1 > bestRange))
381381 then true
382382 else (bestRange > 5))
383383 then throw("Invalid range for the best duck")
384384 else if ((worstRange > mediumRange))
385385 then throw("The medium range can't be less than the worst one")
386386 else if ((mediumRange > bestRange))
387387 then throw("The best range can't be worse than the medium one")
388388 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))]
389389 }
390390
391391
392392
393393 @Callable(i)
394394 func takeGame (slot,random1,random2,random3,random4,random5,random6,skipReplace) = {
395395 let callerAddress = toBase58String(i.caller.bytes)
396396 let gameId = getSlot(slot)
397397 let payment = value(i.payments[0])
398398 let randoms = ((((((((((toString(random1) + "|") + toString(random2)) + "|") + toString(random3)) + "|") + toString(random4)) + "|") + toString(random5)) + "|") + toString(random6))
399399 if (!(hasTicket(callerAddress)))
400400 then throw("You don't have a ticket")
401401 else if ((getPlayerCurrentGame(callerAddress) != 0))
402402 then throw("You already have an active game")
403403 else if (if ((0 > slot))
404404 then true
405405 else (slot >= SLOTS))
406406 then throw("Invalid slot")
407407 else if ((getSlot(slot) == 0))
408408 then throw("This slot is empty")
409409 else if ((payment.assetId != betAssetId))
410410 then throw(("You can attach only tokens with the following asset id - " + toBase58String(betAssetId)))
411411 else if ((payment.amount != getBet(gameId)))
412412 then throw("Wrong bet amount")
413413 else if ((height >= getWaitingExpirationHeight(gameId)))
414414 then throw("This game is expired")
415415 else if (if ((0 > random1))
416416 then true
417417 else (random1 > 1000000000000))
418418 then throw("Invalid random1")
419419 else if (if ((0 > random2))
420420 then true
421421 else (random2 > 1000000000000))
422422 then throw("Invalid random2")
423423 else if (if ((0 > random3))
424424 then true
425425 else (random3 > 1000000000000))
426426 then throw("Invalid random3")
427427 else if (if ((0 > random4))
428428 then true
429429 else (random4 > 1000000000000))
430430 then throw("Invalid random4")
431431 else if (if ((0 > random5))
432432 then true
433433 else (random5 > 1000000000000))
434434 then throw("Invalid random5")
435435 else if (if ((0 > random6))
436436 then true
437437 else (random6 > 1000000000000))
438438 then throw("Invalid random6")
439439 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))]
440440 }
441441
442442
443443
444444 @Callable(i)
445445 func kickGame (slot) = {
446446 let callerAddress = toBase58String(i.caller.bytes)
447447 let gameId = getSlot(slot)
448448 let maker = getMaker(gameId)
449449 if (if ((0 > slot))
450450 then true
451451 else (slot >= SLOTS))
452452 then throw("Invalid slot")
453453 else if ((gameId == 0))
454454 then throw("Slot is empty")
455455 else if (if ((callerAddress != maker))
456456 then (getWaitingExpirationHeight(gameId) > height)
457457 else false)
458458 then throw("Waiting is not finished yet")
459459 else [IntegerEntry(getPlayerCurrentGameKey(maker), 0), IntegerEntry(getSlotKey(slot), 0), ScriptTransfer(Address(fromBase58String(maker)), getBet(gameId), betAssetId)]
460460 }
461461
462462
463463
464464 @Callable(i)
465465 func replaceMaker (random1,random2,random3,random4,random5,random6,replacePosition,duckId) = {
466466 let callerAddress = toBase58String(i.caller.bytes)
467467 let gameId = getPlayerCurrentGame(callerAddress)
468468 let playerRole = getPlayerRole(gameId, callerAddress)
469469 let step = getStep(gameId)
470470 let rangesRaw = split(getRanges(gameId), "|")
471471 let ranges = [parseIntValue(rangesRaw[0]), parseIntValue(rangesRaw[1]), parseIntValue(rangesRaw[2])]
472472 let makerRandomsCommit = getMakerRandomsCommit(gameId)
473473 let makerRandomsStr = ((((((((((toString(random1) + "|") + toString(random2)) + "|") + toString(random3)) + "|") + toString(random4)) + "|") + toString(random5)) + "|") + toString(random6))
474474 let takerRandoms = split(getRandoms(gameId, "taker"), "|")
475475 let replaceRarity = if (if (if ((replacePosition == 1))
476476 then true
477477 else (replacePosition == 2))
478478 then true
479479 else (replacePosition == 3))
480480 then {
481481 let invokeRes = invoke(Address(rarityProviderAddress), "getAssetRarity", [duckId], nil)
482482 if ((invokeRes == invokeRes))
483483 then {
484484 let rarity = match invokeRes {
485485 case r: Int =>
486486 r
487487 case _ =>
488488 throw("Incorrect invoke result")
489489 }
490490 let replaceRange = ranges[(replacePosition - 1)]
491491 if (!(checkDuckOwner(i.caller, fromBase58String(duckId))))
492492 then throw((("Asset " + duckId) + " doesn't belong to you"))
493493 else if (if ((5 > replaceRange))
494494 then if ((rarity > (replaceRange * 10)))
495495 then true
496496 else (((replaceRange - 1) * 10) >= rarity)
497497 else false)
498498 then throw("Duck doesn't fit rarity range")
499499 else if (if ((replaceRange == 5))
500500 then (40 >= rarity)
501501 else false)
502502 then throw("Duck doesn't fit rarity replaceRange")
503503 else rarity
504504 }
505505 else throw("Strict value is not equal to itself.")
506506 }
507507 else 0
508508 let worstRarityMaker = if ((replacePosition == 1))
509509 then replaceRarity
510510 else getRandomRarity((random1 + parseIntValue(takerRandoms[0])), ranges[0])
511511 let mediumRarityMaker = if ((replacePosition == 2))
512512 then replaceRarity
513513 else getRandomRarity((random2 + parseIntValue(takerRandoms[1])), ranges[1])
514514 let bestRarityMaker = if ((replacePosition == 3))
515515 then replaceRarity
516516 else getRandomRarity((random3 + parseIntValue(takerRandoms[2])), ranges[2])
517517 let worstRarityTaker = getRandomRarity((random4 + parseIntValue(takerRandoms[3])), ranges[0])
518518 let mediumRarityTaker = getRandomRarity((random5 + parseIntValue(takerRandoms[4])), ranges[1])
519519 let bestRarityTaker = getRandomRarity((random6 + parseIntValue(takerRandoms[5])), ranges[2])
520520 let nextStep = if (getTakerSkipReplace(gameId))
521521 then (step + 2)
522522 else (step + 1)
523523 if ((gameId == 0))
524524 then throw("You don't have an active game")
525525 else if ((playerRole != "maker"))
526526 then throw("Only maker can call this method")
527527 else if ((1 > step))
528528 then throw("Game is not started")
529529 else if ((step > 1))
530530 then throw("This step is finished")
531531 else if (if ((0 > random1))
532532 then true
533533 else (random1 > 1000000000000))
534534 then throw("Invalid random1")
535535 else if (if ((0 > random2))
536536 then true
537537 else (random2 > 1000000000000))
538538 then throw("Invalid random2")
539539 else if (if ((0 > random3))
540540 then true
541541 else (random3 > 1000000000000))
542542 then throw("Invalid random3")
543543 else if (if ((0 > random4))
544544 then true
545545 else (random4 > 1000000000000))
546546 then throw("Invalid random4")
547547 else if (if ((0 > random5))
548548 then true
549549 else (random5 > 1000000000000))
550550 then throw("Invalid random5")
551551 else if (if ((0 > random6))
552552 then true
553553 else (random6 > 1000000000000))
554554 then throw("Invalid random6")
555555 else if ((toBase58String(sha256(toBytes(makerRandomsStr))) != makerRandomsCommit))
556556 then throw("Randoms don't match commit")
557557 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))]
558558 }
559559
560560
561561
562562 @Callable(i)
563563 func replaceTaker (replacePosition,duckId) = {
564564 let callerAddress = toBase58String(i.caller.bytes)
565565 let gameId = getPlayerCurrentGame(callerAddress)
566566 let playerRole = getPlayerRole(gameId, callerAddress)
567567 let step = getStep(gameId)
568568 let replaceRarity = if (if (if ((replacePosition == 1))
569569 then true
570570 else (replacePosition == 2))
571571 then true
572572 else (replacePosition == 3))
573573 then {
574574 let invokeRes = invoke(Address(rarityProviderAddress), "getAssetRarity", [duckId], nil)
575575 if ((invokeRes == invokeRes))
576576 then {
577577 let rarity = match invokeRes {
578578 case r: Int =>
579579 r
580580 case _ =>
581581 throw("Incorrect invoke result")
582582 }
583583 let rangesRaw = split(getRanges(gameId), "|")
584584 let ranges = [parseIntValue(rangesRaw[0]), parseIntValue(rangesRaw[1]), parseIntValue(rangesRaw[2])]
585585 let replaceRange = ranges[(replacePosition - 1)]
586586 if (!(checkDuckOwner(i.caller, fromBase58String(duckId))))
587587 then throw((("Asset " + duckId) + " doesn't belong to you"))
588588 else if (if ((5 > replaceRange))
589589 then if ((rarity > (replaceRange * 10)))
590590 then true
591591 else (((replaceRange - 1) * 10) >= rarity)
592592 else false)
593593 then throw("Duck doesn't fit rarity range")
594594 else if (if ((replaceRange == 5))
595595 then (40 >= rarity)
596596 else false)
597597 then throw("Duck doesn't fit rarity replaceRange")
598598 else rarity
599599 }
600600 else throw("Strict value is not equal to itself.")
601601 }
602602 else 0
603603 let rarities = split(getRarities(gameId, "taker"), "|")
604604 let newRarities = (((nil :+ (if ((replacePosition == 1))
605605 then toString(replaceRarity)
606606 else rarities[0])) :+ (if ((replacePosition == 2))
607607 then toString(replaceRarity)
608608 else rarities[1])) :+ (if ((replacePosition == 3))
609609 then toString(replaceRarity)
610610 else rarities[2]))
611611 if ((gameId == 0))
612612 then throw("You don't have an active game")
613613 else if ((playerRole != "taker"))
614614 then throw("Only taker can call this method")
615615 else if ((2 > step))
616616 then throw("This step is not started")
617617 else if ((step > 2))
618618 then throw("This step is finished")
619619 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))]
620620 }
621621
622622
623623
624624 @Callable(i)
625625 func commitOrderTaker (orderCommit) = {
626626 let callerAddress = toBase58String(i.caller.bytes)
627627 let gameId = getPlayerCurrentGame(callerAddress)
628628 let playerRole = getPlayerRole(gameId, callerAddress)
629629 let step = getStep(gameId)
630630 if ((gameId == 0))
631631 then throw("You don't have an active game")
632632 else if ((playerRole != "taker"))
633633 then throw("Only taker can call this method")
634634 else if ((3 > step))
635635 then throw("This step is not started")
636636 else if ((step > 3))
637637 then throw("This step is finished")
638638 else [StringEntry(getTakerOrderCommitKey(gameId), orderCommit), IntegerEntry(getStepKey(gameId), (step + 1)), IntegerEntry(getExpirationHeightKey(gameId), (height + stepDuration))]
639639 }
640640
641641
642642
643643 @Callable(i)
644644 func setOrderMaker (order) = {
645645 let callerAddress = toBase58String(i.caller.bytes)
646646 let gameId = getPlayerCurrentGame(callerAddress)
647647 let playerRole = getPlayerRole(gameId, callerAddress)
648648 let step = getStep(gameId)
649649 if ((gameId == 0))
650650 then throw("You don't have an active game")
651651 else if ((playerRole != "maker"))
652652 then throw("Only maker can call this method")
653653 else if ((4 > step))
654654 then throw("This step is not started")
655655 else if ((step > 4))
656656 then throw("This step is finished")
657657 else if (if (if (if (if (if ((order != "1|2|3"))
658658 then (order != "1|3|2")
659659 else false)
660660 then (order != "2|1|3")
661661 else false)
662662 then (order != "2|3|1")
663663 else false)
664664 then (order != "3|1|2")
665665 else false)
666666 then (order != "3|2|1")
667667 else false)
668668 then throw("Invalid order data")
669669 else [StringEntry(getOrderKey(gameId, playerRole), order), IntegerEntry(getStepKey(gameId), (step + 1)), IntegerEntry(getExpirationHeightKey(gameId), (height + stepDuration))]
670670 }
671671
672672
673673
674674 @Callable(i)
675675 func revealOrderTaker (order,salt) = {
676676 let callerAddress = toBase58String(i.caller.bytes)
677677 let gameId = getPlayerCurrentGame(callerAddress)
678678 let playerRole = getPlayerRole(gameId, callerAddress)
679679 let step = getStep(gameId)
680680 if ((gameId == 0))
681681 then throw("You don't have an active game")
682682 else if ((playerRole != "taker"))
683683 then throw("Only taker can call this method")
684684 else if ((5 > step))
685685 then throw("This step is not started")
686686 else if (if (if (if (if (if ((order != "1|2|3"))
687687 then (order != "1|3|2")
688688 else false)
689689 then (order != "2|1|3")
690690 else false)
691691 then (order != "2|3|1")
692692 else false)
693693 then (order != "3|1|2")
694694 else false)
695695 then (order != "3|2|1")
696696 else false)
697697 then throw("Invalid order data")
698698 else if ((toBase58String(sha256(toBytes((order + salt)))) != getTakerOrderCommit(gameId)))
699699 then throw("Reveal doesn't match commit")
700700 else (getGameResult(gameId, order, false) ++ [StringEntry(getOrderKey(gameId, playerRole), order), IntegerEntry(getStepKey(gameId), (step + 1))])
701701 }
702702
703703
704704
705705 @Callable(i)
706706 func getPrizeExpired () = {
707707 let callerAddress = toBase58String(i.caller.bytes)
708708 let gameId = getPlayerCurrentGame(callerAddress)
709709 if ((gameId == 0))
710710 then throw("You don't have an active game")
711711 else getGameResult(gameId, "", true)
712712 }
713713
714714
715715 @Verifier(tx)
716716 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
717717

github/deemru/w8io/169f3d6 
99.96 ms