tx · GhHrynfZe6Vj6jEJBtt9u2is6mRpBGjvRh5nbrhNvkJf 3NBXer7qR9yJh6bkDDMK1fWcMYyVgAMhGFX: -0.01000000 Waves 2021.08.12 02:13 [1654357] smart account 3NBXer7qR9yJh6bkDDMK1fWcMYyVgAMhGFX > SELF 0.00000000 Waves
{ "type": 13, "id": "GhHrynfZe6Vj6jEJBtt9u2is6mRpBGjvRh5nbrhNvkJf", "fee": 1000000, "feeAssetId": null, "timestamp": 1628723675130, "version": 2, "chainId": 84, "sender": "3NBXer7qR9yJh6bkDDMK1fWcMYyVgAMhGFX", "senderPublicKey": "FzLqgx3z1ige5YuhjR5esJe6Ug78Eq1Nwezof8APt4h4", "proofs": [ "MT6bDymLyBegLetajyawHan3T3XW83m6B2KsCvYdmEkEhDJHN6JZzYFdxAdhMkvNhUfySLiB2CR6QAKYaC3Eg2H" ], "script": "base64:AAIFAAAAAAAABTIIAhIECgIICBoJCgJhMRIDaW52GgoKAmEyEgRjYXJkGgsKAmEzEgVjbGFzcxoTCgJhNBINdHJhbnNhY3Rpb25JZBoQCgJhNRIKY3VycmVudEtleRoPCgJhNhIJcGF5QW1vdW50GhUKAmE3Eg9jdXJyZW50S2V5Qnl0ZXMaDgoCYTgSCGNhcmROYW1lGhsKAmE5EhVjYXJkTmFtZUN1cnJlbnRQbGF5ZXIaEQoCYjESC2NhcmRzT3JhY2xlGg8KAmIyEgljYXJkc0dhbWUaDwoCYjMSCWNsYXNzR2FtZRoQCgJiNBIKYXNzZXRzR2FtZRoQCgJiNRIKaGlzdG9yaWNJZBoNCgJiNhIHJG1hdGNoMBoHCgJiNxIBdBoXCgJiOBIRY3VycmVudENhcmRTdGF0dXMaFgoCYjkSEGN1cnJlbnRDYXJkU2NvcmUaHQoCYzESF2N1cnJlbnRLZXlQbGF5ZXJCYWxhbmNlGhoKAmMyEhRjdXJyZW50UGxheWVyQmFsYW5jZRoWCgJjMxIQcGxheWVySW5UaGVBcmVuYRobCgJjNBIVYXJlbmFLZXl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QAAAAJnNQIAAAAUIiwgImRlZmVhdGVkQ2FyZCI6ICIFAAAAAmc3AgAAACQiLCAicG9pbnRzUmVtYWluaW5nT25XaW5uaW5nQ2FyZCI6ICIJAAGkAAAAAQUAAAACZzgCAAAAESIsICJ3aW5SZXdhcmQiOiAiCQABpAAAAAEFAAAAAmc5AgAAABQiLCAiZGVmZWF0UmV3YXJkIjogIgkAAaQAAAABBQAAAAJoMgIAAAACIn0JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAAdzdGF0dXNfBQAAAAJhOQIAAAAEVXNlZAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAKaGlzdG9yaWNJZAUAAAACaDMFAAAAA25pbAAAAAD9c9an", "height": 1654357, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2BAXbGdusgB8mbzauhAhpRt3HuUCMMdpyjAPgkgYtoAk Next: Y9qUuDb96d7XgQdbShUT8N4xDiX7WuoXWRxfyPhvtLG Diff:
Old | New | Differences | |
---|---|---|---|
145 | 145 | } == "Used")) | |
146 | 146 | then 1 | |
147 | 147 | else 0 | |
148 | + | let verifyCards = match getBoolean(this, ("buy_cards_vol01_" + currentKeyBytes)) { | |
149 | + | case t: Boolean => | |
150 | + | t | |
151 | + | case _ => | |
152 | + | false | |
153 | + | } | |
148 | 154 | let tokenBalance = match getInteger(this, ("token_balance_" + currentKeyBytes)) { | |
149 | 155 | case t: Int => | |
150 | 156 | t | |
156 | 162 | func foldFunc (acc,e) = (acc + e) | |
157 | 163 | ||
158 | 164 | let resultVerifyStatusCards = { | |
159 | - | let $ | |
160 | - | let $ | |
161 | - | let $ | |
162 | - | if (($ | |
163 | - | then $ | |
165 | + | let $list53295363 = statusCards | |
166 | + | let $size53295363 = size($list53295363) | |
167 | + | let $acc053295363 = 0 | |
168 | + | if (($size53295363 == 0)) | |
169 | + | then $acc053295363 | |
164 | 170 | else { | |
165 | - | let $ | |
166 | - | if (($ | |
167 | - | then $ | |
171 | + | let $acc153295363 = foldFunc($acc053295363, $list53295363[0]) | |
172 | + | if (($size53295363 == 1)) | |
173 | + | then $acc153295363 | |
168 | 174 | else { | |
169 | - | let $ | |
170 | - | if (($ | |
171 | - | then $ | |
175 | + | let $acc253295363 = foldFunc($acc153295363, $list53295363[1]) | |
176 | + | if (($size53295363 == 2)) | |
177 | + | then $acc253295363 | |
172 | 178 | else { | |
173 | - | let $ | |
174 | - | if (($ | |
175 | - | then $ | |
179 | + | let $acc353295363 = foldFunc($acc253295363, $list53295363[2]) | |
180 | + | if (($size53295363 == 3)) | |
181 | + | then $acc353295363 | |
176 | 182 | else { | |
177 | - | let $ | |
178 | - | if (($ | |
179 | - | then $ | |
183 | + | let $acc453295363 = foldFunc($acc353295363, $list53295363[3]) | |
184 | + | if (($size53295363 == 4)) | |
185 | + | then $acc453295363 | |
180 | 186 | else { | |
181 | - | let $ | |
182 | - | if (($ | |
183 | - | then $ | |
187 | + | let $acc553295363 = foldFunc($acc453295363, $list53295363[4]) | |
188 | + | if (($size53295363 == 5)) | |
189 | + | then $acc553295363 | |
184 | 190 | else { | |
185 | - | let $ | |
186 | - | if (($ | |
187 | - | then $ | |
191 | + | let $acc653295363 = foldFunc($acc553295363, $list53295363[5]) | |
192 | + | if (($size53295363 == 6)) | |
193 | + | then $acc653295363 | |
188 | 194 | else { | |
189 | - | let $ | |
190 | - | if (($ | |
191 | - | then $ | |
195 | + | let $acc753295363 = foldFunc($acc653295363, $list53295363[6]) | |
196 | + | if (($size53295363 == 7)) | |
197 | + | then $acc753295363 | |
192 | 198 | else { | |
193 | - | let $ | |
194 | - | if (($ | |
195 | - | then $ | |
199 | + | let $acc853295363 = foldFunc($acc753295363, $list53295363[7]) | |
200 | + | if (($size53295363 == 8)) | |
201 | + | then $acc853295363 | |
196 | 202 | else { | |
197 | - | let $ | |
198 | - | if (($ | |
199 | - | then $ | |
203 | + | let $acc953295363 = foldFunc($acc853295363, $list53295363[8]) | |
204 | + | if (($size53295363 == 9)) | |
205 | + | then $acc953295363 | |
200 | 206 | else { | |
201 | - | let $ | |
202 | - | if (($ | |
203 | - | then $ | |
207 | + | let $acc1053295363 = foldFunc($acc953295363, $list53295363[9]) | |
208 | + | if (($size53295363 == 10)) | |
209 | + | then $acc1053295363 | |
204 | 210 | else { | |
205 | - | let $ | |
211 | + | let $acc1153295363 = foldFunc($acc1053295363, $list53295363[10]) | |
206 | 212 | throw("List size exceed 10") | |
207 | 213 | } | |
208 | 214 | } | |
218 | 224 | } | |
219 | 225 | if ((class == "Tokens Oracle Arena")) | |
220 | 226 | then [IntegerEntry(((("token_balance_" + currentKeyBytes) + "_") + transactionId), newTokenPurchase)] | |
221 | - | else if (if ((card == "Buy Cards")) | |
227 | + | else if (if (if ((card == "Buy Cards")) | |
222 | 228 | then (payAmount == 100000000) | |
223 | 229 | else false) | |
224 | - | then [ScriptTransfer(currentKey, 10, cardsOracle)] | |
225 | - | else if (if (!(containsElement(classGame, class))) | |
226 | - | then true | |
227 | - | else !(containsElement(cardsGame, cardName))) | |
228 | - | then throw("The card sent does not exist in the game! Please check your cards!") | |
229 | - | else if ((payAmount != 10000000)) | |
230 | - | then throw("Each move has a fixed value of 1 token.") | |
231 | - | else if ((0 >= assetBalance(currentKey, cardsOracle))) | |
232 | - | then throw("You must have the cards in your wallet! Get it on the marketplace!") | |
233 | - | else if (if ((cardInTheArena == "")) | |
234 | - | then true | |
235 | - | else (playerInTheArena == "")) | |
236 | - | then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")] | |
237 | - | else if ((currentCardStatus == "Used")) | |
238 | - | then throw("This card has already been used! Use all the cards in the deck to unlock it again!") | |
239 | - | else { | |
240 | - | let winner = if ((currentCardScore > arenaCardScore)) | |
241 | - | then currentKeyBytes | |
242 | - | else playerInTheArena | |
243 | - | let defeated = if ((arenaCardScore > currentCardScore)) | |
244 | - | then currentKeyBytes | |
245 | - | else if ((currentCardScore > arenaCardScore)) | |
246 | - | then playerInTheArena | |
247 | - | else currentKeyBytes | |
248 | - | let winningCard = if ((currentCardScore > arenaCardScore)) | |
249 | - | then cardName | |
250 | - | else cardInTheArena | |
251 | - | let defeatedCard = if ((arenaCardScore > currentCardScore)) | |
252 | - | then cardName | |
253 | - | else if ((currentCardScore > arenaCardScore)) | |
254 | - | then cardInTheArena | |
255 | - | else currentKeyBytes | |
256 | - | let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore)) | |
257 | - | then (currentCardScore - arenaCardScore) | |
258 | - | else (arenaCardScore - currentCardScore) | |
259 | - | let winReward = if ((currentCardScore > arenaCardScore)) | |
260 | - | then payAmount | |
261 | - | else (payAmount / 2) | |
262 | - | let rewardValue = if ((winner == currentKeyBytes)) | |
263 | - | then (winReward + currentPlayerBalance) | |
264 | - | else if ((winner == playerInTheArena)) | |
265 | - | then (winReward + arenaPlayerBalance) | |
266 | - | else throw("Código 010105. Contate o suporte!") | |
267 | - | let defeatReward = 0 | |
268 | - | let newHistoricId = (historicId + 1) | |
230 | + | then !(verifyCards) | |
231 | + | else false) | |
232 | + | then [BooleanEntry(("buy_cards_vol01_" + currentKeyBytes), true)] | |
233 | + | else if (if (if ((card == "Buy Cards")) | |
234 | + | then (payAmount == 100000000) | |
235 | + | else false) | |
236 | + | then !(verifyCards) | |
237 | + | else false) | |
238 | + | then throw("You have already purchased this item on the marketplace.") | |
239 | + | else if (if (!(containsElement(classGame, class))) | |
240 | + | then true | |
241 | + | else !(containsElement(cardsGame, cardName))) | |
242 | + | then throw("The card sent does not exist in the game! Please check your cards!") | |
243 | + | else if ((payAmount != 10000000)) | |
244 | + | then throw("Each move has a fixed value of 1 token.") | |
245 | + | else if ((0 >= assetBalance(currentKey, cardsOracle))) | |
246 | + | then throw("You must have the cards in your wallet! Get it on the marketplace!") | |
247 | + | else if (if ((cardInTheArena == "")) | |
248 | + | then true | |
249 | + | else (playerInTheArena == "")) | |
250 | + | then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")] | |
251 | + | else if ((currentCardStatus == "Used")) | |
252 | + | then throw("This card has already been used! Use all the cards in the deck to unlock it again!") | |
253 | + | else { | |
254 | + | let winner = if ((currentCardScore > arenaCardScore)) | |
255 | + | then currentKeyBytes | |
256 | + | else playerInTheArena | |
257 | + | let defeated = if ((arenaCardScore > currentCardScore)) | |
258 | + | then currentKeyBytes | |
259 | + | else if ((currentCardScore > arenaCardScore)) | |
260 | + | then playerInTheArena | |
261 | + | else currentKeyBytes | |
262 | + | let winningCard = if ((currentCardScore > arenaCardScore)) | |
263 | + | then cardName | |
264 | + | else cardInTheArena | |
265 | + | let defeatedCard = if ((arenaCardScore > currentCardScore)) | |
266 | + | then cardName | |
267 | + | else if ((currentCardScore > arenaCardScore)) | |
268 | + | then cardInTheArena | |
269 | + | else currentKeyBytes | |
270 | + | let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore)) | |
271 | + | then (currentCardScore - arenaCardScore) | |
272 | + | else (arenaCardScore - currentCardScore) | |
273 | + | let winReward = if ((currentCardScore > arenaCardScore)) | |
274 | + | then payAmount | |
275 | + | else (payAmount / 2) | |
276 | + | let rewardValue = if ((winner == currentKeyBytes)) | |
277 | + | then (winReward + currentPlayerBalance) | |
278 | + | else if ((winner == playerInTheArena)) | |
279 | + | then (winReward + arenaPlayerBalance) | |
280 | + | else throw("Código 010105. Contate o suporte!") | |
281 | + | let defeatReward = 0 | |
282 | + | let newHistoricId = (historicId + 1) | |
269 | 283 | [StringEntry("playerInTheArena", winner), StringEntry("cardInTheArena", winningCard), IntegerEntry("arenaCardScore", pointsRemainingOnWinningCard), if ((resultVerifyStatusCards == 9)) | |
270 | - | then StringEntry(((("status_" + class) + "_100_") + currentKeyBytes), "") | |
271 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
272 | - | then StringEntry(((("status_" + class) + "_200_") + currentKeyBytes), "") | |
273 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
274 | - | then StringEntry(((("status_" + class) + "_300_") + currentKeyBytes), "") | |
275 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
276 | - | then StringEntry(((("status_" + class) + "_400_") + currentKeyBytes), "") | |
277 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
278 | - | then StringEntry(((("status_" + class) + "_500_") + currentKeyBytes), "") | |
279 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
280 | - | then StringEntry(((("status_" + class) + "_600_") + currentKeyBytes), "") | |
281 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
282 | - | then StringEntry(((("status_" + class) + "_700_") + currentKeyBytes), "") | |
283 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
284 | - | then StringEntry(((("status_" + class) + "_800_") + currentKeyBytes), "") | |
285 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
286 | - | then StringEntry(((("status_" + class) + "_900_") + currentKeyBytes), "") | |
287 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
288 | - | then StringEntry(((("status_" + class) + "_1000_") + currentKeyBytes), "") | |
289 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_reward_" + winner), rewardValue), StringEntry(((((((("history_" + currentKeyBytes) + "_") + playerInTheArena) + "_") + transactionId) + "_") + toString(newHistoricId)), (((((((((((((((((((((((((((("{\"historicId\": \"" + toString(newHistoricId)) + "\", \"transactionId\": \"") + transactionId) + "\", \"playerAttack\": \"") + currentKeyBytes) + "\", \"playerInTheArena\": \"") + playerInTheArena) + "\", \"usedCard\": \"") + cardName) + "\", \"cardInTheArena\": \"") + cardInTheArena) + "\", \"arenaCardScore\": \"") + toString(arenaCardScore)) + "\", \"winner\": \"") + winner) + "\", \"winningCard\": \"") + winningCard) + "\", \"defeated\": \"") + defeated) + "\", \"defeatedCard\": \"") + defeatedCard) + "\", \"pointsRemainingOnWinningCard\": \"") + toString(pointsRemainingOnWinningCard)) + "\", \"winReward\": \"") + toString(winReward)) + "\", \"defeatReward\": \"") + toString(defeatReward)) + "\"}")), StringEntry(("status_" + cardNameCurrentPlayer), "Used"), IntegerEntry("historicId", newHistoricId)] | |
290 | - | } | |
284 | + | then StringEntry(((("status_" + class) + "_100_") + currentKeyBytes), "") | |
285 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
286 | + | then StringEntry(((("status_" + class) + "_200_") + currentKeyBytes), "") | |
287 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
288 | + | then StringEntry(((("status_" + class) + "_300_") + currentKeyBytes), "") | |
289 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
290 | + | then StringEntry(((("status_" + class) + "_400_") + currentKeyBytes), "") | |
291 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
292 | + | then StringEntry(((("status_" + class) + "_500_") + currentKeyBytes), "") | |
293 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
294 | + | then StringEntry(((("status_" + class) + "_600_") + currentKeyBytes), "") | |
295 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
296 | + | then StringEntry(((("status_" + class) + "_700_") + currentKeyBytes), "") | |
297 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
298 | + | then StringEntry(((("status_" + class) + "_800_") + currentKeyBytes), "") | |
299 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
300 | + | then StringEntry(((("status_" + class) + "_900_") + currentKeyBytes), "") | |
301 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
302 | + | then StringEntry(((("status_" + class) + "_1000_") + currentKeyBytes), "") | |
303 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_reward_" + winner), rewardValue), StringEntry(((((((("history_" + currentKeyBytes) + "_") + playerInTheArena) + "_") + transactionId) + "_") + toString(newHistoricId)), (((((((((((((((((((((((((((("{\"historicId\": \"" + toString(newHistoricId)) + "\", \"transactionId\": \"") + transactionId) + "\", \"playerAttack\": \"") + currentKeyBytes) + "\", \"playerInTheArena\": \"") + playerInTheArena) + "\", \"usedCard\": \"") + cardName) + "\", \"cardInTheArena\": \"") + cardInTheArena) + "\", \"arenaCardScore\": \"") + toString(arenaCardScore)) + "\", \"winner\": \"") + winner) + "\", \"winningCard\": \"") + winningCard) + "\", \"defeated\": \"") + defeated) + "\", \"defeatedCard\": \"") + defeatedCard) + "\", \"pointsRemainingOnWinningCard\": \"") + toString(pointsRemainingOnWinningCard)) + "\", \"winReward\": \"") + toString(winReward)) + "\", \"defeatReward\": \"") + toString(defeatReward)) + "\"}")), StringEntry(("status_" + cardNameCurrentPlayer), "Used"), IntegerEntry("historicId", newHistoricId)] | |
304 | + | } | |
291 | 305 | } | |
292 | 306 | ||
293 | 307 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(inv) | |
7 | 7 | func play (card,class) = { | |
8 | 8 | let transactionId = toBase58String(inv.transactionId) | |
9 | 9 | let currentKey = inv.caller | |
10 | 10 | let payAmount = value(inv.payments[0].amount) | |
11 | 11 | let currentKeyBytes = toBase58String(inv.caller.bytes) | |
12 | 12 | let cardName = ((class + "_") + card) | |
13 | 13 | let cardNameCurrentPlayer = ((((class + "_") + card) + "_") + currentKeyBytes) | |
14 | 14 | let cardsOracle = base58'CRsDX3VXierYph4hHHpVTUz7DAMPioK633YNjrdCHPef' | |
15 | 15 | let cardsGame = ["Card_100", "Card_200", "Card_300", "Card_400", "Card_500", "Card_600", "Card_700", "Card_800", "Card_900", "Card_1000"] | |
16 | 16 | let classGame = ["Card"] | |
17 | 17 | let assetsGame = ["CRsDX3VXierYph4hHHpVTUz7DAMPioK633YNjrdCHPef"] | |
18 | 18 | let historicId = match getInteger(this, "historicId") { | |
19 | 19 | case t: Int => | |
20 | 20 | t | |
21 | 21 | case _ => | |
22 | 22 | 0 | |
23 | 23 | } | |
24 | 24 | let currentCardStatus = match getString(this, ("status_" + cardNameCurrentPlayer)) { | |
25 | 25 | case t: String => | |
26 | 26 | t | |
27 | 27 | case _ => | |
28 | 28 | "" | |
29 | 29 | } | |
30 | 30 | let currentCardScore = match getInteger(this, cardName) { | |
31 | 31 | case t: Int => | |
32 | 32 | t | |
33 | 33 | case _ => | |
34 | 34 | 0 | |
35 | 35 | } | |
36 | 36 | let currentKeyPlayerBalance = ("balance_reward_" + currentKeyBytes) | |
37 | 37 | let currentPlayerBalance = match getInteger(this, currentKeyPlayerBalance) { | |
38 | 38 | case t: Int => | |
39 | 39 | t | |
40 | 40 | case _ => | |
41 | 41 | 0 | |
42 | 42 | } | |
43 | 43 | let playerInTheArena = match getString(this, "playerInTheArena") { | |
44 | 44 | case t: String => | |
45 | 45 | t | |
46 | 46 | case _ => | |
47 | 47 | "" | |
48 | 48 | } | |
49 | 49 | let arenaKeyPlayerBalance = ("balance_reward_" + playerInTheArena) | |
50 | 50 | let arenaPlayerBalance = match getInteger(this, arenaKeyPlayerBalance) { | |
51 | 51 | case t: Int => | |
52 | 52 | t | |
53 | 53 | case _ => | |
54 | 54 | 0 | |
55 | 55 | } | |
56 | 56 | let cardInTheArena = match getString(this, "cardInTheArena") { | |
57 | 57 | case t: String => | |
58 | 58 | t | |
59 | 59 | case _ => | |
60 | 60 | "" | |
61 | 61 | } | |
62 | 62 | let arenaCardScore = match getInteger(this, "arenaCardScore") { | |
63 | 63 | case t: Int => | |
64 | 64 | t | |
65 | 65 | case _ => | |
66 | 66 | 0 | |
67 | 67 | } | |
68 | 68 | let statusCard1 = if (( match getString(this, ((("status_" + class) + "_100_") + currentKeyBytes)) { | |
69 | 69 | case t: String => | |
70 | 70 | t | |
71 | 71 | case _ => | |
72 | 72 | "" | |
73 | 73 | } == "Used")) | |
74 | 74 | then 1 | |
75 | 75 | else 0 | |
76 | 76 | let statusCard2 = if (( match getString(this, ((("status_" + class) + "_200_") + currentKeyBytes)) { | |
77 | 77 | case t: String => | |
78 | 78 | t | |
79 | 79 | case _ => | |
80 | 80 | "" | |
81 | 81 | } == "Used")) | |
82 | 82 | then 1 | |
83 | 83 | else 0 | |
84 | 84 | let statusCard3 = if (( match getString(this, ((("status_" + class) + "_300_") + currentKeyBytes)) { | |
85 | 85 | case t: String => | |
86 | 86 | t | |
87 | 87 | case _ => | |
88 | 88 | "" | |
89 | 89 | } == "Used")) | |
90 | 90 | then 1 | |
91 | 91 | else 0 | |
92 | 92 | let statusCard4 = if (( match getString(this, ((("status_" + class) + "_400_") + currentKeyBytes)) { | |
93 | 93 | case t: String => | |
94 | 94 | t | |
95 | 95 | case _ => | |
96 | 96 | "" | |
97 | 97 | } == "Used")) | |
98 | 98 | then 1 | |
99 | 99 | else 0 | |
100 | 100 | let statusCard5 = if (( match getString(this, ((("status_" + class) + "_500_") + currentKeyBytes)) { | |
101 | 101 | case t: String => | |
102 | 102 | t | |
103 | 103 | case _ => | |
104 | 104 | "" | |
105 | 105 | } == "Used")) | |
106 | 106 | then 1 | |
107 | 107 | else 0 | |
108 | 108 | let statusCard6 = if (( match getString(this, ((("status_" + class) + "_600_") + currentKeyBytes)) { | |
109 | 109 | case t: String => | |
110 | 110 | t | |
111 | 111 | case _ => | |
112 | 112 | "" | |
113 | 113 | } == "Used")) | |
114 | 114 | then 1 | |
115 | 115 | else 0 | |
116 | 116 | let statusCard7 = if (( match getString(this, ((("status_" + class) + "_700_") + currentKeyBytes)) { | |
117 | 117 | case t: String => | |
118 | 118 | t | |
119 | 119 | case _ => | |
120 | 120 | "" | |
121 | 121 | } == "Used")) | |
122 | 122 | then 1 | |
123 | 123 | else 0 | |
124 | 124 | let statusCard8 = if (( match getString(this, ((("status_" + class) + "_800_") + currentKeyBytes)) { | |
125 | 125 | case t: String => | |
126 | 126 | t | |
127 | 127 | case _ => | |
128 | 128 | "" | |
129 | 129 | } == "Used")) | |
130 | 130 | then 1 | |
131 | 131 | else 0 | |
132 | 132 | let statusCard9 = if (( match getString(this, ((("status_" + class) + "_900_") + currentKeyBytes)) { | |
133 | 133 | case t: String => | |
134 | 134 | t | |
135 | 135 | case _ => | |
136 | 136 | "" | |
137 | 137 | } == "Used")) | |
138 | 138 | then 1 | |
139 | 139 | else 0 | |
140 | 140 | let statusCard10 = if (( match getString(this, ((("status_" + class) + "_1000_") + currentKeyBytes)) { | |
141 | 141 | case t: String => | |
142 | 142 | t | |
143 | 143 | case _ => | |
144 | 144 | "" | |
145 | 145 | } == "Used")) | |
146 | 146 | then 1 | |
147 | 147 | else 0 | |
148 | + | let verifyCards = match getBoolean(this, ("buy_cards_vol01_" + currentKeyBytes)) { | |
149 | + | case t: Boolean => | |
150 | + | t | |
151 | + | case _ => | |
152 | + | false | |
153 | + | } | |
148 | 154 | let tokenBalance = match getInteger(this, ("token_balance_" + currentKeyBytes)) { | |
149 | 155 | case t: Int => | |
150 | 156 | t | |
151 | 157 | case _ => | |
152 | 158 | 0 | |
153 | 159 | } | |
154 | 160 | let newTokenPurchase = (inv.payments[0].amount * 10000) | |
155 | 161 | let statusCards = [statusCard1, statusCard2, statusCard3, statusCard4, statusCard5, statusCard6, statusCard7, statusCard8, statusCard9, statusCard10] | |
156 | 162 | func foldFunc (acc,e) = (acc + e) | |
157 | 163 | ||
158 | 164 | let resultVerifyStatusCards = { | |
159 | - | let $ | |
160 | - | let $ | |
161 | - | let $ | |
162 | - | if (($ | |
163 | - | then $ | |
165 | + | let $list53295363 = statusCards | |
166 | + | let $size53295363 = size($list53295363) | |
167 | + | let $acc053295363 = 0 | |
168 | + | if (($size53295363 == 0)) | |
169 | + | then $acc053295363 | |
164 | 170 | else { | |
165 | - | let $ | |
166 | - | if (($ | |
167 | - | then $ | |
171 | + | let $acc153295363 = foldFunc($acc053295363, $list53295363[0]) | |
172 | + | if (($size53295363 == 1)) | |
173 | + | then $acc153295363 | |
168 | 174 | else { | |
169 | - | let $ | |
170 | - | if (($ | |
171 | - | then $ | |
175 | + | let $acc253295363 = foldFunc($acc153295363, $list53295363[1]) | |
176 | + | if (($size53295363 == 2)) | |
177 | + | then $acc253295363 | |
172 | 178 | else { | |
173 | - | let $ | |
174 | - | if (($ | |
175 | - | then $ | |
179 | + | let $acc353295363 = foldFunc($acc253295363, $list53295363[2]) | |
180 | + | if (($size53295363 == 3)) | |
181 | + | then $acc353295363 | |
176 | 182 | else { | |
177 | - | let $ | |
178 | - | if (($ | |
179 | - | then $ | |
183 | + | let $acc453295363 = foldFunc($acc353295363, $list53295363[3]) | |
184 | + | if (($size53295363 == 4)) | |
185 | + | then $acc453295363 | |
180 | 186 | else { | |
181 | - | let $ | |
182 | - | if (($ | |
183 | - | then $ | |
187 | + | let $acc553295363 = foldFunc($acc453295363, $list53295363[4]) | |
188 | + | if (($size53295363 == 5)) | |
189 | + | then $acc553295363 | |
184 | 190 | else { | |
185 | - | let $ | |
186 | - | if (($ | |
187 | - | then $ | |
191 | + | let $acc653295363 = foldFunc($acc553295363, $list53295363[5]) | |
192 | + | if (($size53295363 == 6)) | |
193 | + | then $acc653295363 | |
188 | 194 | else { | |
189 | - | let $ | |
190 | - | if (($ | |
191 | - | then $ | |
195 | + | let $acc753295363 = foldFunc($acc653295363, $list53295363[6]) | |
196 | + | if (($size53295363 == 7)) | |
197 | + | then $acc753295363 | |
192 | 198 | else { | |
193 | - | let $ | |
194 | - | if (($ | |
195 | - | then $ | |
199 | + | let $acc853295363 = foldFunc($acc753295363, $list53295363[7]) | |
200 | + | if (($size53295363 == 8)) | |
201 | + | then $acc853295363 | |
196 | 202 | else { | |
197 | - | let $ | |
198 | - | if (($ | |
199 | - | then $ | |
203 | + | let $acc953295363 = foldFunc($acc853295363, $list53295363[8]) | |
204 | + | if (($size53295363 == 9)) | |
205 | + | then $acc953295363 | |
200 | 206 | else { | |
201 | - | let $ | |
202 | - | if (($ | |
203 | - | then $ | |
207 | + | let $acc1053295363 = foldFunc($acc953295363, $list53295363[9]) | |
208 | + | if (($size53295363 == 10)) | |
209 | + | then $acc1053295363 | |
204 | 210 | else { | |
205 | - | let $ | |
211 | + | let $acc1153295363 = foldFunc($acc1053295363, $list53295363[10]) | |
206 | 212 | throw("List size exceed 10") | |
207 | 213 | } | |
208 | 214 | } | |
209 | 215 | } | |
210 | 216 | } | |
211 | 217 | } | |
212 | 218 | } | |
213 | 219 | } | |
214 | 220 | } | |
215 | 221 | } | |
216 | 222 | } | |
217 | 223 | } | |
218 | 224 | } | |
219 | 225 | if ((class == "Tokens Oracle Arena")) | |
220 | 226 | then [IntegerEntry(((("token_balance_" + currentKeyBytes) + "_") + transactionId), newTokenPurchase)] | |
221 | - | else if (if ((card == "Buy Cards")) | |
227 | + | else if (if (if ((card == "Buy Cards")) | |
222 | 228 | then (payAmount == 100000000) | |
223 | 229 | else false) | |
224 | - | then [ScriptTransfer(currentKey, 10, cardsOracle)] | |
225 | - | else if (if (!(containsElement(classGame, class))) | |
226 | - | then true | |
227 | - | else !(containsElement(cardsGame, cardName))) | |
228 | - | then throw("The card sent does not exist in the game! Please check your cards!") | |
229 | - | else if ((payAmount != 10000000)) | |
230 | - | then throw("Each move has a fixed value of 1 token.") | |
231 | - | else if ((0 >= assetBalance(currentKey, cardsOracle))) | |
232 | - | then throw("You must have the cards in your wallet! Get it on the marketplace!") | |
233 | - | else if (if ((cardInTheArena == "")) | |
234 | - | then true | |
235 | - | else (playerInTheArena == "")) | |
236 | - | then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")] | |
237 | - | else if ((currentCardStatus == "Used")) | |
238 | - | then throw("This card has already been used! Use all the cards in the deck to unlock it again!") | |
239 | - | else { | |
240 | - | let winner = if ((currentCardScore > arenaCardScore)) | |
241 | - | then currentKeyBytes | |
242 | - | else playerInTheArena | |
243 | - | let defeated = if ((arenaCardScore > currentCardScore)) | |
244 | - | then currentKeyBytes | |
245 | - | else if ((currentCardScore > arenaCardScore)) | |
246 | - | then playerInTheArena | |
247 | - | else currentKeyBytes | |
248 | - | let winningCard = if ((currentCardScore > arenaCardScore)) | |
249 | - | then cardName | |
250 | - | else cardInTheArena | |
251 | - | let defeatedCard = if ((arenaCardScore > currentCardScore)) | |
252 | - | then cardName | |
253 | - | else if ((currentCardScore > arenaCardScore)) | |
254 | - | then cardInTheArena | |
255 | - | else currentKeyBytes | |
256 | - | let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore)) | |
257 | - | then (currentCardScore - arenaCardScore) | |
258 | - | else (arenaCardScore - currentCardScore) | |
259 | - | let winReward = if ((currentCardScore > arenaCardScore)) | |
260 | - | then payAmount | |
261 | - | else (payAmount / 2) | |
262 | - | let rewardValue = if ((winner == currentKeyBytes)) | |
263 | - | then (winReward + currentPlayerBalance) | |
264 | - | else if ((winner == playerInTheArena)) | |
265 | - | then (winReward + arenaPlayerBalance) | |
266 | - | else throw("Código 010105. Contate o suporte!") | |
267 | - | let defeatReward = 0 | |
268 | - | let newHistoricId = (historicId + 1) | |
230 | + | then !(verifyCards) | |
231 | + | else false) | |
232 | + | then [BooleanEntry(("buy_cards_vol01_" + currentKeyBytes), true)] | |
233 | + | else if (if (if ((card == "Buy Cards")) | |
234 | + | then (payAmount == 100000000) | |
235 | + | else false) | |
236 | + | then !(verifyCards) | |
237 | + | else false) | |
238 | + | then throw("You have already purchased this item on the marketplace.") | |
239 | + | else if (if (!(containsElement(classGame, class))) | |
240 | + | then true | |
241 | + | else !(containsElement(cardsGame, cardName))) | |
242 | + | then throw("The card sent does not exist in the game! Please check your cards!") | |
243 | + | else if ((payAmount != 10000000)) | |
244 | + | then throw("Each move has a fixed value of 1 token.") | |
245 | + | else if ((0 >= assetBalance(currentKey, cardsOracle))) | |
246 | + | then throw("You must have the cards in your wallet! Get it on the marketplace!") | |
247 | + | else if (if ((cardInTheArena == "")) | |
248 | + | then true | |
249 | + | else (playerInTheArena == "")) | |
250 | + | then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")] | |
251 | + | else if ((currentCardStatus == "Used")) | |
252 | + | then throw("This card has already been used! Use all the cards in the deck to unlock it again!") | |
253 | + | else { | |
254 | + | let winner = if ((currentCardScore > arenaCardScore)) | |
255 | + | then currentKeyBytes | |
256 | + | else playerInTheArena | |
257 | + | let defeated = if ((arenaCardScore > currentCardScore)) | |
258 | + | then currentKeyBytes | |
259 | + | else if ((currentCardScore > arenaCardScore)) | |
260 | + | then playerInTheArena | |
261 | + | else currentKeyBytes | |
262 | + | let winningCard = if ((currentCardScore > arenaCardScore)) | |
263 | + | then cardName | |
264 | + | else cardInTheArena | |
265 | + | let defeatedCard = if ((arenaCardScore > currentCardScore)) | |
266 | + | then cardName | |
267 | + | else if ((currentCardScore > arenaCardScore)) | |
268 | + | then cardInTheArena | |
269 | + | else currentKeyBytes | |
270 | + | let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore)) | |
271 | + | then (currentCardScore - arenaCardScore) | |
272 | + | else (arenaCardScore - currentCardScore) | |
273 | + | let winReward = if ((currentCardScore > arenaCardScore)) | |
274 | + | then payAmount | |
275 | + | else (payAmount / 2) | |
276 | + | let rewardValue = if ((winner == currentKeyBytes)) | |
277 | + | then (winReward + currentPlayerBalance) | |
278 | + | else if ((winner == playerInTheArena)) | |
279 | + | then (winReward + arenaPlayerBalance) | |
280 | + | else throw("Código 010105. Contate o suporte!") | |
281 | + | let defeatReward = 0 | |
282 | + | let newHistoricId = (historicId + 1) | |
269 | 283 | [StringEntry("playerInTheArena", winner), StringEntry("cardInTheArena", winningCard), IntegerEntry("arenaCardScore", pointsRemainingOnWinningCard), if ((resultVerifyStatusCards == 9)) | |
270 | - | then StringEntry(((("status_" + class) + "_100_") + currentKeyBytes), "") | |
271 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
272 | - | then StringEntry(((("status_" + class) + "_200_") + currentKeyBytes), "") | |
273 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
274 | - | then StringEntry(((("status_" + class) + "_300_") + currentKeyBytes), "") | |
275 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
276 | - | then StringEntry(((("status_" + class) + "_400_") + currentKeyBytes), "") | |
277 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
278 | - | then StringEntry(((("status_" + class) + "_500_") + currentKeyBytes), "") | |
279 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
280 | - | then StringEntry(((("status_" + class) + "_600_") + currentKeyBytes), "") | |
281 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
282 | - | then StringEntry(((("status_" + class) + "_700_") + currentKeyBytes), "") | |
283 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
284 | - | then StringEntry(((("status_" + class) + "_800_") + currentKeyBytes), "") | |
285 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
286 | - | then StringEntry(((("status_" + class) + "_900_") + currentKeyBytes), "") | |
287 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
288 | - | then StringEntry(((("status_" + class) + "_1000_") + currentKeyBytes), "") | |
289 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_reward_" + winner), rewardValue), StringEntry(((((((("history_" + currentKeyBytes) + "_") + playerInTheArena) + "_") + transactionId) + "_") + toString(newHistoricId)), (((((((((((((((((((((((((((("{\"historicId\": \"" + toString(newHistoricId)) + "\", \"transactionId\": \"") + transactionId) + "\", \"playerAttack\": \"") + currentKeyBytes) + "\", \"playerInTheArena\": \"") + playerInTheArena) + "\", \"usedCard\": \"") + cardName) + "\", \"cardInTheArena\": \"") + cardInTheArena) + "\", \"arenaCardScore\": \"") + toString(arenaCardScore)) + "\", \"winner\": \"") + winner) + "\", \"winningCard\": \"") + winningCard) + "\", \"defeated\": \"") + defeated) + "\", \"defeatedCard\": \"") + defeatedCard) + "\", \"pointsRemainingOnWinningCard\": \"") + toString(pointsRemainingOnWinningCard)) + "\", \"winReward\": \"") + toString(winReward)) + "\", \"defeatReward\": \"") + toString(defeatReward)) + "\"}")), StringEntry(("status_" + cardNameCurrentPlayer), "Used"), IntegerEntry("historicId", newHistoricId)] | |
290 | - | } | |
284 | + | then StringEntry(((("status_" + class) + "_100_") + currentKeyBytes), "") | |
285 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
286 | + | then StringEntry(((("status_" + class) + "_200_") + currentKeyBytes), "") | |
287 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
288 | + | then StringEntry(((("status_" + class) + "_300_") + currentKeyBytes), "") | |
289 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
290 | + | then StringEntry(((("status_" + class) + "_400_") + currentKeyBytes), "") | |
291 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
292 | + | then StringEntry(((("status_" + class) + "_500_") + currentKeyBytes), "") | |
293 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
294 | + | then StringEntry(((("status_" + class) + "_600_") + currentKeyBytes), "") | |
295 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
296 | + | then StringEntry(((("status_" + class) + "_700_") + currentKeyBytes), "") | |
297 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
298 | + | then StringEntry(((("status_" + class) + "_800_") + currentKeyBytes), "") | |
299 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
300 | + | then StringEntry(((("status_" + class) + "_900_") + currentKeyBytes), "") | |
301 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
302 | + | then StringEntry(((("status_" + class) + "_1000_") + currentKeyBytes), "") | |
303 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_reward_" + winner), rewardValue), StringEntry(((((((("history_" + currentKeyBytes) + "_") + playerInTheArena) + "_") + transactionId) + "_") + toString(newHistoricId)), (((((((((((((((((((((((((((("{\"historicId\": \"" + toString(newHistoricId)) + "\", \"transactionId\": \"") + transactionId) + "\", \"playerAttack\": \"") + currentKeyBytes) + "\", \"playerInTheArena\": \"") + playerInTheArena) + "\", \"usedCard\": \"") + cardName) + "\", \"cardInTheArena\": \"") + cardInTheArena) + "\", \"arenaCardScore\": \"") + toString(arenaCardScore)) + "\", \"winner\": \"") + winner) + "\", \"winningCard\": \"") + winningCard) + "\", \"defeated\": \"") + defeated) + "\", \"defeatedCard\": \"") + defeatedCard) + "\", \"pointsRemainingOnWinningCard\": \"") + toString(pointsRemainingOnWinningCard)) + "\", \"winReward\": \"") + toString(winReward)) + "\", \"defeatReward\": \"") + toString(defeatReward)) + "\"}")), StringEntry(("status_" + cardNameCurrentPlayer), "Used"), IntegerEntry("historicId", newHistoricId)] | |
304 | + | } | |
291 | 305 | } | |
292 | 306 | ||
293 | 307 |
github/deemru/w8io/169f3d6 117.20 ms ◑![]()