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