tx · H7R8ek1rEaDTsiSKZsSEACQ4Cx6rsukA7ecwmDEUYxzF 3N8yhbgiVQSoN23tkgVCbyJm7mcUkAkZUnT: -0.01000000 Waves 2021.07.30 07:20 [1635879] smart account 3N8yhbgiVQSoN23tkgVCbyJm7mcUkAkZUnT > SELF 0.00000000 Waves
{ "type": 13, "id": "H7R8ek1rEaDTsiSKZsSEACQ4Cx6rsukA7ecwmDEUYxzF", "fee": 1000000, "feeAssetId": null, "timestamp": 1627618868578, "version": 2, "chainId": 84, "sender": "3N8yhbgiVQSoN23tkgVCbyJm7mcUkAkZUnT", "senderPublicKey": "CuwzjevdV5RCgwvv5RmXDzzqYaRvw3V21dJL7FH9gpLj", "proofs": [ "4dJheNxEF8fXJExgh3NJ5VsHagq6ZRSxQyUxZVRtuRQGea2RTMcDLRHrRewxeBcgzzystHKxoTdd8aXS1xLtcLA4" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAAAAAABAAAAA2ludgEAAAAEcGxheQAAAAIAAAAEY2FyZAAAAAVjbGFzcwQAAAANdHJhbnNhY3Rpb25JZAkAAlgAAAABCAUAAAADaW52AAAADXRyYW5zYWN0aW9uSWQEAAAACmN1cnJlbnRLZXkIBQAAAANpbnYAAAAGY2FsbGVyBAAAAAlwYXlBbW91bnQJAQAAAAV2YWx1ZQAAAAEICQABkQAAAAIIBQAAAANpbnYAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BAAAAA9jdXJyZW50S2V5Qnl0ZXMJAAJYAAAAAQgIBQAAAANpbnYAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAhjYXJkTmFtZQkAASwAAAACCQABLAAAAAIFAAAABWNsYXNzAgAAAAFfBQAAAARjYXJkBAAAABVjYXJkTmFtZUN1cnJlbnRQbGF5ZXIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAFY2xhc3MCAAAAAV8FAAAABGNhcmQCAAAAAV8FAAAAD2N1cnJlbnRLZX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iAiBQAAAA5jYXJkSW5UaGVBcmVuYQIAAAAWIiwgImFyZW5hQ2FyZFNjb3JlIjogIgkAAaQAAAABBQAAAA5hcmVuYUNhcmRTY29yZQIAAAAOIiwgIndpbm5lciI6ICIFAAAABndpbm5lcgIAAAATIiwgIndpbm5pbmdDYXJkIjogIgUAAAALd2lubmluZ0NhcmQCAAAAECIsICJkZWZlYXRlZCI6ICIFAAAACGRlZmVhdGVkAgAAABQiLCAiZGVmZWF0ZWRDYXJkIjogIgUAAAAMZGVmZWF0ZWRDYXJkAgAAACQiLCAicG9pbnRzUmVtYWluaW5nT25XaW5uaW5nQ2FyZCI6ICIJAAGkAAAAAQUAAAAccG9pbnRzUmVtYWluaW5nT25XaW5uaW5nQ2FyZAIAAAACIn0JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAAdzdGF0dXNfBQAAABVjYXJkTmFtZUN1cnJlbnRQbGF5ZXICAAAABFVzZWQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQIAAABaaGlzdG9yeV8zTjE1YlBSdFgxMjdNWEozVEF1ZXJSYmRnbU5KUHJHcmJqNl9GcldCUzNidTdkSnVVSGRneHRiY3ZBV25xTHhIdHRGTW02TU5iTUt2Y3JacV83CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAApoaXN0b3JpY0lkBQAAAA1uZXdIaXN0b3JpY0lkBQAAAANuaWwAAAAAZ+/tcQ==", "height": 1635879, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: H4QMRfqZxrp21s4E51Xp3AWq5hmfXSdohpNQXRWFFJyJ Next: Dy26oLihexz5CWTUWpjNWKC4oa8QB2FQRenbodPD3vL Diff:
Old | New | Differences | |
---|---|---|---|
269 | 269 | then StringEntry(((("status_" + class) + "_900_") + currentKeyBytes), "") | |
270 | 270 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
271 | 271 | then StringEntry(((("status_" + class) + "_1000_") + currentKeyBytes), "") | |
272 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + 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)) + "\"}")), StringEntry(("status_" + cardNameCurrentPlayer), "Used"), IntegerEntry("historicId", newHistoricId)] | |
272 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + 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)) + "\"}")), StringEntry(("status_" + cardNameCurrentPlayer), "Used"), DeleteEntry("history_3N15bPRtX127MXJ3TAuerRbdgmNJPrGrbj6_FrWBS3bu7dJuUHdgxtbcvAWnqLxHttFMm6MNbMKvcrZq_7"), IntegerEntry("historicId", newHistoricId)] | |
273 | 273 | } | |
274 | 274 | } | |
275 | 275 |
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 undead = base58'AYNhdXWw3qmAWqkJMQfKyLBRQpkaPPkP8jjNzMb8V5cd' | |
15 | 15 | let cardsGame = ["Undead_100", "Undead_200", "Undead_300", "Undead_400", "Undead_500", "Undead_600", "Undead_700", "Undead_800", "Undead_900", "Undead_1000"] | |
16 | 16 | let classGame = ["Undead"] | |
17 | 17 | let assetsGame = ["AYNhdXWw3qmAWqkJMQfKyLBRQpkaPPkP8jjNzMb8V5cd"] | |
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_waves_" + 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_waves_" + 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 | 148 | let statusCards = [statusCard1, statusCard2, statusCard3, statusCard4, statusCard5, statusCard6, statusCard7, statusCard8, statusCard9, statusCard10] | |
149 | 149 | func foldFunc (acc,e) = (acc + e) | |
150 | 150 | ||
151 | 151 | let resultVerifyStatusCards = { | |
152 | 152 | let $list49464980 = statusCards | |
153 | 153 | let $size49464980 = size($list49464980) | |
154 | 154 | let $acc049464980 = 0 | |
155 | 155 | if (($size49464980 == 0)) | |
156 | 156 | then $acc049464980 | |
157 | 157 | else { | |
158 | 158 | let $acc149464980 = foldFunc($acc049464980, $list49464980[0]) | |
159 | 159 | if (($size49464980 == 1)) | |
160 | 160 | then $acc149464980 | |
161 | 161 | else { | |
162 | 162 | let $acc249464980 = foldFunc($acc149464980, $list49464980[1]) | |
163 | 163 | if (($size49464980 == 2)) | |
164 | 164 | then $acc249464980 | |
165 | 165 | else { | |
166 | 166 | let $acc349464980 = foldFunc($acc249464980, $list49464980[2]) | |
167 | 167 | if (($size49464980 == 3)) | |
168 | 168 | then $acc349464980 | |
169 | 169 | else { | |
170 | 170 | let $acc449464980 = foldFunc($acc349464980, $list49464980[3]) | |
171 | 171 | if (($size49464980 == 4)) | |
172 | 172 | then $acc449464980 | |
173 | 173 | else { | |
174 | 174 | let $acc549464980 = foldFunc($acc449464980, $list49464980[4]) | |
175 | 175 | if (($size49464980 == 5)) | |
176 | 176 | then $acc549464980 | |
177 | 177 | else { | |
178 | 178 | let $acc649464980 = foldFunc($acc549464980, $list49464980[5]) | |
179 | 179 | if (($size49464980 == 6)) | |
180 | 180 | then $acc649464980 | |
181 | 181 | else { | |
182 | 182 | let $acc749464980 = foldFunc($acc649464980, $list49464980[6]) | |
183 | 183 | if (($size49464980 == 7)) | |
184 | 184 | then $acc749464980 | |
185 | 185 | else { | |
186 | 186 | let $acc849464980 = foldFunc($acc749464980, $list49464980[7]) | |
187 | 187 | if (($size49464980 == 8)) | |
188 | 188 | then $acc849464980 | |
189 | 189 | else { | |
190 | 190 | let $acc949464980 = foldFunc($acc849464980, $list49464980[8]) | |
191 | 191 | if (($size49464980 == 9)) | |
192 | 192 | then $acc949464980 | |
193 | 193 | else { | |
194 | 194 | let $acc1049464980 = foldFunc($acc949464980, $list49464980[9]) | |
195 | 195 | if (($size49464980 == 10)) | |
196 | 196 | then $acc1049464980 | |
197 | 197 | else { | |
198 | 198 | let $acc1149464980 = foldFunc($acc1049464980, $list49464980[10]) | |
199 | 199 | throw("List size exceed 10") | |
200 | 200 | } | |
201 | 201 | } | |
202 | 202 | } | |
203 | 203 | } | |
204 | 204 | } | |
205 | 205 | } | |
206 | 206 | } | |
207 | 207 | } | |
208 | 208 | } | |
209 | 209 | } | |
210 | 210 | } | |
211 | 211 | } | |
212 | 212 | if (if (!(containsElement(classGame, class))) | |
213 | 213 | then true | |
214 | 214 | else !(containsElement(cardsGame, cardName))) | |
215 | 215 | then throw("A classe enviada não existe no game! Por favor verifique suas cartas!") | |
216 | 216 | else if ((payAmount != 10000000)) | |
217 | 217 | then throw("Cada jogada possui um valor fixo de 0.1 waves.") | |
218 | 218 | else if ((0 >= assetBalance(currentKey, undead))) | |
219 | 219 | then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.") | |
220 | 220 | else if (if ((cardInTheArena == "")) | |
221 | 221 | then true | |
222 | 222 | else (playerInTheArena == "")) | |
223 | 223 | then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")] | |
224 | 224 | else if ((currentCardStatus == "Used")) | |
225 | 225 | then throw("Esta carta já foi utilizada! Utilize todas as cartas do deck para esta ser liberada novamente!") | |
226 | 226 | else { | |
227 | 227 | let winner = if ((currentCardScore > arenaCardScore)) | |
228 | 228 | then currentKeyBytes | |
229 | 229 | else playerInTheArena | |
230 | 230 | let defeated = if ((arenaCardScore > currentCardScore)) | |
231 | 231 | then currentKeyBytes | |
232 | 232 | else if ((currentCardScore > arenaCardScore)) | |
233 | 233 | then playerInTheArena | |
234 | 234 | else currentKeyBytes | |
235 | 235 | let winningCard = if ((currentCardScore > arenaCardScore)) | |
236 | 236 | then cardName | |
237 | 237 | else cardInTheArena | |
238 | 238 | let defeatedCard = if ((arenaCardScore > currentCardScore)) | |
239 | 239 | then cardName | |
240 | 240 | else if ((currentCardScore > arenaCardScore)) | |
241 | 241 | then cardInTheArena | |
242 | 242 | else currentKeyBytes | |
243 | 243 | let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore)) | |
244 | 244 | then (currentCardScore - arenaCardScore) | |
245 | 245 | else (arenaCardScore - currentCardScore) | |
246 | 246 | let rewardValue = if ((winner == currentKeyBytes)) | |
247 | 247 | then ((((payAmount * 19) / 10) / 2) + currentPlayerBalance) | |
248 | 248 | else if ((winner == playerInTheArena)) | |
249 | 249 | then ((((payAmount * 19) / 10) / 2) + arenaPlayerBalance) | |
250 | 250 | else throw("Código 010105. Contate o suporte!") | |
251 | 251 | let newHistoricId = (historicId + 1) | |
252 | 252 | [StringEntry("playerInTheArena", winner), StringEntry("cardInTheArena", winningCard), IntegerEntry("arenaCardScore", pointsRemainingOnWinningCard), if ((resultVerifyStatusCards == 9)) | |
253 | 253 | then StringEntry(((("status_" + class) + "_100_") + currentKeyBytes), "") | |
254 | 254 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
255 | 255 | then StringEntry(((("status_" + class) + "_200_") + currentKeyBytes), "") | |
256 | 256 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
257 | 257 | then StringEntry(((("status_" + class) + "_300_") + currentKeyBytes), "") | |
258 | 258 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
259 | 259 | then StringEntry(((("status_" + class) + "_400_") + currentKeyBytes), "") | |
260 | 260 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
261 | 261 | then StringEntry(((("status_" + class) + "_500_") + currentKeyBytes), "") | |
262 | 262 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
263 | 263 | then StringEntry(((("status_" + class) + "_600_") + currentKeyBytes), "") | |
264 | 264 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
265 | 265 | then StringEntry(((("status_" + class) + "_700_") + currentKeyBytes), "") | |
266 | 266 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
267 | 267 | then StringEntry(((("status_" + class) + "_800_") + currentKeyBytes), "") | |
268 | 268 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
269 | 269 | then StringEntry(((("status_" + class) + "_900_") + currentKeyBytes), "") | |
270 | 270 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
271 | 271 | then StringEntry(((("status_" + class) + "_1000_") + currentKeyBytes), "") | |
272 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + 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)) + "\"}")), StringEntry(("status_" + cardNameCurrentPlayer), "Used"), IntegerEntry("historicId", newHistoricId)] | |
272 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + 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)) + "\"}")), StringEntry(("status_" + cardNameCurrentPlayer), "Used"), DeleteEntry("history_3N15bPRtX127MXJ3TAuerRbdgmNJPrGrbj6_FrWBS3bu7dJuUHdgxtbcvAWnqLxHttFMm6MNbMKvcrZq_7"), IntegerEntry("historicId", newHistoricId)] | |
273 | 273 | } | |
274 | 274 | } | |
275 | 275 | ||
276 | 276 |
github/deemru/w8io/169f3d6 51.62 ms ◑