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