tx · 7V63JkuyuLrNTcnEwdvCsCRQsZE3Uo2xj8fYyed5qgTB 3NBXer7qR9yJh6bkDDMK1fWcMYyVgAMhGFX: -0.01000000 Waves 2021.08.12 18:51 [1655354] smart account 3NBXer7qR9yJh6bkDDMK1fWcMYyVgAMhGFX > SELF 0.00000000 Waves
{ "type": 13, "id": "7V63JkuyuLrNTcnEwdvCsCRQsZE3Uo2xj8fYyed5qgTB", "fee": 1000000, "feeAssetId": null, "timestamp": 1628783555183, "version": 2, "chainId": 84, "sender": "3NBXer7qR9yJh6bkDDMK1fWcMYyVgAMhGFX", "senderPublicKey": "FzLqgx3z1ige5YuhjR5esJe6Ug78Eq1Nwezof8APt4h4", "proofs": [ "5hbi8TyW6FvwHfZraxhMUsbUbxyRA6HtrD9Y5MHEE8Lh4Xhx8PcAuwNtNoiB6UFkUQH9U1dPWbhXHXDuLWhucWEE" ], "script": "base64:AAIFAAAAAAAABTIIAhIECgIICBoJCgJhMRIDaW52GgoKAmEyEgRjYXJkGgsKAmEzEgVjbGFzcxoTCgJhNBINdHJhbnNhY3Rpb25JZBoQCgJhNRIKY3VycmVudEtleRoPCgJhNhIJcGF5QW1vdW50GhUKAmE3Eg9jdXJyZW50S2V5Qnl0ZXMaDgoCYTgSCGNhcmROYW1lGhsKAmE5EhVjYXJkTmFtZUN1cnJlbnRQbGF5ZXIaEQoCYjESC2NhcmRzT3JhY2xlGg8KAmIyEgljYXJkc0dhbWUaDwoCYjMSCWNsYXNzR2FtZRoQCgJiNBIKYXNzZXRzR2FtZRoQCgJiNRIKaGlzdG9yaWNJZBoNCgJiNhIHJG1hdGNoMBoHCgJiNxIBdBoXCgJiOBIRY3VycmVudENhcmRTdGF0dXMaFgoCYjkSEGN1cnJlbnRDYXJkU2NvcmUaHQoCYzESF2N1cnJlbnRLZXlQbGF5ZXJCYWxhbmNlGhoKAmMyEhRjdXJyZW50UGxheWVyQmFsYW5jZRoWCgJjMxIQcGxheWVySW5UaGVBcmVuYRobCgJjNBIVY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MCAAAAECIsICJ1c2VkQ2FyZCI6ICIFAAAAAmE4AgAAABYiLCAiY2FyZEluVGhlQXJlbmEiOiAiBQAAAAJjNgIAAAAWIiwgImFyZW5hQ2FyZFNjb3JlIjogIgkAAaQAAAABBQAAAAJjNwIAAAAOIiwgIndpbm5lciI6ICIFAAAAAmc0AgAAABMiLCAid2lubmluZ0NhcmQiOiAiBQAAAAJnNgIAAAAQIiwgImRlZmVhdGVkIjogIgUAAAACZzUCAAAAFCIsICJkZWZlYXRlZENhcmQiOiAiBQAAAAJnNwIAAAAkIiwgInBvaW50c1JlbWFpbmluZ09uV2lubmluZ0NhcmQiOiAiCQABpAAAAAEFAAAAAmc4AgAAABEiLCAid2luUmV3YXJkIjogIgkAAaQAAAABBQAAAAJnOQIAAAAUIiwgImRlZmVhdFJld2FyZCI6ICIJAAGkAAAAAQUAAAACaDICAAAAAiJ9CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgIAAAAHc3RhdHVzXwUAAAACYTkCAAAABFVzZWQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAACmhpc3RvcmljSWQFAAAAAmgzBQAAAANuaWwAAAAAAAGljA==", "height": 1655354, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BK89JUcw4wdjkLSYmFHSSG2RmP5GxL2g91QpqhwgbtkZ Next: none Diff:
Old | New | Differences | |
---|---|---|---|
227 | 227 | else if (if ((card == "Withdraw")) | |
228 | 228 | then (class == "Rewards") | |
229 | 229 | else false) | |
230 | - | then [ScriptTransfer(currentKey, currentPlayerBalance, unit)] | |
230 | + | then [ScriptTransfer(currentKey, currentPlayerBalance, unit), DeleteEntry(("balance_reward_" + currentKeyBytes))] | |
231 | 231 | else if (if (if ((card == "Buy Cards")) | |
232 | 232 | then (payAmount == 100000000) | |
233 | 233 | else false) |
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 | 148 | let verifyCards = match getBoolean(this, ("purchased_item_cards_vol01_" + currentKeyBytes)) { | |
149 | 149 | case t: Boolean => | |
150 | 150 | t | |
151 | 151 | case _ => | |
152 | 152 | false | |
153 | 153 | } | |
154 | 154 | let tokenBalance = match getInteger(this, ("token_balance_" + currentKeyBytes)) { | |
155 | 155 | case t: Int => | |
156 | 156 | t | |
157 | 157 | case _ => | |
158 | 158 | 0 | |
159 | 159 | } | |
160 | 160 | let newTokenPurchase = (inv.payments[0].amount * 10000) | |
161 | 161 | let statusCards = [statusCard1, statusCard2, statusCard3, statusCard4, statusCard5, statusCard6, statusCard7, statusCard8, statusCard9, statusCard10] | |
162 | 162 | func foldFunc (acc,e) = (acc + e) | |
163 | 163 | ||
164 | 164 | let resultVerifyStatusCards = { | |
165 | 165 | let $list53405374 = statusCards | |
166 | 166 | let $size53405374 = size($list53405374) | |
167 | 167 | let $acc053405374 = 0 | |
168 | 168 | if (($size53405374 == 0)) | |
169 | 169 | then $acc053405374 | |
170 | 170 | else { | |
171 | 171 | let $acc153405374 = foldFunc($acc053405374, $list53405374[0]) | |
172 | 172 | if (($size53405374 == 1)) | |
173 | 173 | then $acc153405374 | |
174 | 174 | else { | |
175 | 175 | let $acc253405374 = foldFunc($acc153405374, $list53405374[1]) | |
176 | 176 | if (($size53405374 == 2)) | |
177 | 177 | then $acc253405374 | |
178 | 178 | else { | |
179 | 179 | let $acc353405374 = foldFunc($acc253405374, $list53405374[2]) | |
180 | 180 | if (($size53405374 == 3)) | |
181 | 181 | then $acc353405374 | |
182 | 182 | else { | |
183 | 183 | let $acc453405374 = foldFunc($acc353405374, $list53405374[3]) | |
184 | 184 | if (($size53405374 == 4)) | |
185 | 185 | then $acc453405374 | |
186 | 186 | else { | |
187 | 187 | let $acc553405374 = foldFunc($acc453405374, $list53405374[4]) | |
188 | 188 | if (($size53405374 == 5)) | |
189 | 189 | then $acc553405374 | |
190 | 190 | else { | |
191 | 191 | let $acc653405374 = foldFunc($acc553405374, $list53405374[5]) | |
192 | 192 | if (($size53405374 == 6)) | |
193 | 193 | then $acc653405374 | |
194 | 194 | else { | |
195 | 195 | let $acc753405374 = foldFunc($acc653405374, $list53405374[6]) | |
196 | 196 | if (($size53405374 == 7)) | |
197 | 197 | then $acc753405374 | |
198 | 198 | else { | |
199 | 199 | let $acc853405374 = foldFunc($acc753405374, $list53405374[7]) | |
200 | 200 | if (($size53405374 == 8)) | |
201 | 201 | then $acc853405374 | |
202 | 202 | else { | |
203 | 203 | let $acc953405374 = foldFunc($acc853405374, $list53405374[8]) | |
204 | 204 | if (($size53405374 == 9)) | |
205 | 205 | then $acc953405374 | |
206 | 206 | else { | |
207 | 207 | let $acc1053405374 = foldFunc($acc953405374, $list53405374[9]) | |
208 | 208 | if (($size53405374 == 10)) | |
209 | 209 | then $acc1053405374 | |
210 | 210 | else { | |
211 | 211 | let $acc1153405374 = foldFunc($acc1053405374, $list53405374[10]) | |
212 | 212 | throw("List size exceed 10") | |
213 | 213 | } | |
214 | 214 | } | |
215 | 215 | } | |
216 | 216 | } | |
217 | 217 | } | |
218 | 218 | } | |
219 | 219 | } | |
220 | 220 | } | |
221 | 221 | } | |
222 | 222 | } | |
223 | 223 | } | |
224 | 224 | } | |
225 | 225 | if ((class == "Tokens Oracle Arena")) | |
226 | 226 | then [IntegerEntry(((("token_balance_" + currentKeyBytes) + "_") + transactionId), newTokenPurchase)] | |
227 | 227 | else if (if ((card == "Withdraw")) | |
228 | 228 | then (class == "Rewards") | |
229 | 229 | else false) | |
230 | - | then [ScriptTransfer(currentKey, currentPlayerBalance, unit)] | |
230 | + | then [ScriptTransfer(currentKey, currentPlayerBalance, unit), DeleteEntry(("balance_reward_" + currentKeyBytes))] | |
231 | 231 | else if (if (if ((card == "Buy Cards")) | |
232 | 232 | then (payAmount == 100000000) | |
233 | 233 | else false) | |
234 | 234 | then !(verifyCards) | |
235 | 235 | else false) | |
236 | 236 | then [BooleanEntry(("purchased_item_cards_vol01_" + currentKeyBytes), true)] | |
237 | 237 | else if (if (if ((card == "Buy Cards")) | |
238 | 238 | then (payAmount == 100000000) | |
239 | 239 | else false) | |
240 | 240 | then verifyCards | |
241 | 241 | else false) | |
242 | 242 | then throw("You have already purchased this item on the marketplace.") | |
243 | 243 | else if (if (!(containsElement(classGame, class))) | |
244 | 244 | then true | |
245 | 245 | else !(containsElement(cardsGame, cardName))) | |
246 | 246 | then throw("The card sent does not exist in the game! Please check your cards!") | |
247 | 247 | else if ((payAmount != 10000000)) | |
248 | 248 | then throw("Each move has a fixed value of 1 token.") | |
249 | 249 | else if (!(verifyCards)) | |
250 | 250 | then throw("You must have the cards in your wallet! Get it on the marketplace!") | |
251 | 251 | else if (if ((cardInTheArena == "")) | |
252 | 252 | then true | |
253 | 253 | else (playerInTheArena == "")) | |
254 | 254 | then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")] | |
255 | 255 | else if ((currentCardStatus == "Used")) | |
256 | 256 | then throw("This card has already been used! Use all the cards in the deck to unlock it again!") | |
257 | 257 | else { | |
258 | 258 | let winner = if ((currentCardScore > arenaCardScore)) | |
259 | 259 | then currentKeyBytes | |
260 | 260 | else playerInTheArena | |
261 | 261 | let defeated = if ((arenaCardScore > currentCardScore)) | |
262 | 262 | then currentKeyBytes | |
263 | 263 | else if ((currentCardScore > arenaCardScore)) | |
264 | 264 | then playerInTheArena | |
265 | 265 | else currentKeyBytes | |
266 | 266 | let winningCard = if ((currentCardScore > arenaCardScore)) | |
267 | 267 | then cardName | |
268 | 268 | else cardInTheArena | |
269 | 269 | let defeatedCard = if ((arenaCardScore > currentCardScore)) | |
270 | 270 | then cardName | |
271 | 271 | else if ((currentCardScore > arenaCardScore)) | |
272 | 272 | then cardInTheArena | |
273 | 273 | else currentKeyBytes | |
274 | 274 | let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore)) | |
275 | 275 | then (currentCardScore - arenaCardScore) | |
276 | 276 | else (arenaCardScore - currentCardScore) | |
277 | 277 | let winReward = if ((currentCardScore > arenaCardScore)) | |
278 | 278 | then payAmount | |
279 | 279 | else (payAmount / 2) | |
280 | 280 | let rewardValue = if ((winner == currentKeyBytes)) | |
281 | 281 | then (winReward + currentPlayerBalance) | |
282 | 282 | else if ((winner == playerInTheArena)) | |
283 | 283 | then (winReward + arenaPlayerBalance) | |
284 | 284 | else throw("Código 010105. Contate o suporte!") | |
285 | 285 | let defeatReward = 0 | |
286 | 286 | let newHistoricId = (historicId + 1) | |
287 | 287 | [StringEntry("playerInTheArena", winner), StringEntry("cardInTheArena", winningCard), IntegerEntry("arenaCardScore", pointsRemainingOnWinningCard), if ((resultVerifyStatusCards == 9)) | |
288 | 288 | then StringEntry(((("status_" + class) + "_100_") + currentKeyBytes), "") | |
289 | 289 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
290 | 290 | then StringEntry(((("status_" + class) + "_200_") + currentKeyBytes), "") | |
291 | 291 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
292 | 292 | then StringEntry(((("status_" + class) + "_300_") + currentKeyBytes), "") | |
293 | 293 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
294 | 294 | then StringEntry(((("status_" + class) + "_400_") + currentKeyBytes), "") | |
295 | 295 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
296 | 296 | then StringEntry(((("status_" + class) + "_500_") + currentKeyBytes), "") | |
297 | 297 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
298 | 298 | then StringEntry(((("status_" + class) + "_600_") + currentKeyBytes), "") | |
299 | 299 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
300 | 300 | then StringEntry(((("status_" + class) + "_700_") + currentKeyBytes), "") | |
301 | 301 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
302 | 302 | then StringEntry(((("status_" + class) + "_800_") + currentKeyBytes), "") | |
303 | 303 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
304 | 304 | then StringEntry(((("status_" + class) + "_900_") + currentKeyBytes), "") | |
305 | 305 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
306 | 306 | then StringEntry(((("status_" + class) + "_1000_") + currentKeyBytes), "") | |
307 | 307 | 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)] | |
308 | 308 | } | |
309 | 309 | } | |
310 | 310 | ||
311 | 311 |
github/deemru/w8io/169f3d6 101.06 ms ◑